/* 3.8.1 — cohesive grave record; all content stays in two columns. */
.cemr-record--integrated{max-width:1220px;margin-inline:auto;--cemr-card-line:#e5e9e3;--cemr-card-green:#304c37}
.cemr-record--integrated .cemr-record__intro{display:grid;grid-template-columns:minmax(0,43%) minmax(0,57%);gap:clamp(18px,2.4vw,32px);align-items:start;margin:0}
.cemr-record--integrated .cemr-record__visual,.cemr-record--integrated .cemr-record__information{min-width:0;display:flex;flex-direction:column;gap:16px}
.cemr-record--integrated .cemr-photo-frame{padding:0;border:0;box-shadow:none;background:#f1f3ef;border-radius:12px;overflow:hidden}
.cemr-record--integrated .cemr-photo-frame__link{min-height:0;max-height:520px;border:0;background:#f1f3ef;border-radius:12px}
.cemr-record--integrated .cemr-photo-frame__image{max-height:520px;object-fit:contain}
.cemr-record--integrated .cemr-photo-frame figcaption{background:white;text-align:left;color:#778276;padding:9px 0}
.cemr-record--integrated .cemr-record__summary{padding:0;background:none;border:0;box-shadow:none}
.cemr-record--integrated .cemr-section{margin:0;padding:0 0 15px;border:0;border-bottom:1px solid var(--cemr-card-line);background:none;box-shadow:none;border-radius:0}
.cemr-record--integrated .cemr-section h2{font-size:17px;line-height:1.35;margin:0 0 9px;color:#283c2d}
.cemr-record--integrated .cemr-section--map{order:1}
.cemr-record--integrated .cemr-record__summary{order:0}
.cemr-record--integrated .cemr-section--persons{order:2}
.cemr-record--integrated .cemr-section--inscription{order:3}
.cemr-record--integrated .cemr-section--facts{order:5}
.cemr-record--integrated .cemr-section--notes{order:6}
.cemr-record--integrated .cemr-section--map .cemr-map{height:265px!important;border-radius:10px;overflow:hidden}
.cemr-record--integrated .cemr-section--map .leaflet-tooltip{display:none!important}
.cemr-record--integrated .cemr-section--map .leaflet-container{isolation:isolate}
.cemr-record--integrated .cemr-section--gallery{padding:0;border:0}
.cemr-record--integrated .cemr-photo-gallery{display:flex;gap:8px;overflow-x:auto}
.cemr-record--integrated .cemr-photo-gallery figure{flex:0 0 96px;margin:0}
.cemr-record--integrated .cemr-photo-gallery img{width:96px;height:88px;object-fit:cover;border-radius:7px}
.cemr-record--integrated .cemr-section--notes .cemr-notes{overflow-wrap:anywhere}
.cemr-record--integrated .cemr-record__information .cemr-section:last-child{border-bottom:0}
@media(max-width:760px){.cemr-record--integrated .cemr-record__intro{grid-template-columns:minmax(0,1fr);gap:18px}.cemr-record--integrated .cemr-photo-frame__link{max-height:420px}.cemr-record--integrated .cemr-photo-frame__image{max-height:420px}.cemr-record--integrated .cemr-section--map .cemr-map{height:245px!important}}
@media print{.cemr-record--integrated .cemr-record__intro{grid-template-columns:42% 58%;gap:14px}.cemr-record--integrated .cemr-section--map{display:none}}

/* 3.8.2: native accessible expand/collapse, no additional full-width section. */
.cemr-record--integrated .cemr-sources-list{margin:8px 0 0;padding-left:1.5em;display:grid;gap:8px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.cemr-record--integrated .cemr-sources-list li{padding-left:3px}
.cemr-record--integrated .cemr-sources-more,.cemr-record--integrated .cemr-inscription-more{margin-top:10px}
.cemr-record--integrated .cemr-sources-more summary,.cemr-record--integrated .cemr-inscription-more summary{display:list-item;cursor:pointer;color:#304c37;font-size:14px;font-weight:600;padding:8px 0;list-style-position:inside}
.cemr-record--integrated .cemr-sources-more[open]{border-top:1px solid #e5e9e3}
.cemr-record--integrated .cemr-sources-more[open] .cemr-sources-list{max-height:420px;overflow-y:auto;overscroll-behavior:contain;padding-right:8px}
.cemr-record--integrated .cemr-sources-more summary:focus-visible,.cemr-record--integrated .cemr-inscription-more summary:focus-visible{outline:2px solid #304c37;outline-offset:3px;border-radius:3px}
@media print{.cemr-record--integrated .cemr-sources-more .cemr-sources-list{max-height:none!important;overflow:visible!important}.cemr-record--integrated .cemr-sources-preview{display:none}.cemr-record--integrated .cemr-sources-more,.cemr-record--integrated .cemr-inscription-more{display:block}.cemr-record--integrated .cemr-sources-more summary,.cemr-record--integrated .cemr-inscription-more summary{display:none}}

/* 3.15: nearby graves are part of the information column, not a full-width footer. */
.cemr-record--integrated .cemr-section--nearby{order:2}
.cemr-record--integrated .cemr-section--persons{order:3}
.cemr-record--integrated .cemr-section--inscription{order:4}
.cemr-record--integrated .cemr-nearby-list{display:grid;gap:6px}
.cemr-record--integrated .cemr-nearby-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px;border-radius:8px;color:inherit;text-decoration:none;background:#f6f8f5}
.cemr-record--integrated .cemr-nearby-item:hover{background:#eaf0e9}
.cemr-record--integrated .cemr-nearby-photo{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#e6ebe4;overflow:hidden}
.cemr-record--integrated .cemr-nearby-photo img{width:100%;height:100%;object-fit:cover}
.cemr-record--integrated .cemr-nearby-title{font-size:13px;font-weight:600;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.cemr-record--integrated .cemr-nearby-distance{font-size:12px;color:#66776b;white-space:nowrap}
.cemr-record--integrated .cemr-nearby-note{font-size:11px;color:#778276;line-height:1.5;margin:8px 0 0}
