/* IS Necropol 3.34: MemoriaMap-inspired information hierarchy, not its visual assets or code.
   Single design authority for this page. All rules scoped to v334. */
.cemr-record-v334{--cemr334-text:#24342a;--cemr334-green:#385942;--cemr334-muted:#667369;--cemr334-line:#dfe5dd;--cemr334-soft:#f4f6f2;--cemr334-cream:#f8f8f5;max-width:1320px!important;margin:20px auto 56px!important;padding:0 clamp(14px,2.3vw,34px)!important;color:var(--cemr334-text)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.cemr-record-v334 *,.cemr-record-v334 *::before,.cemr-record-v334 *::after{box-sizing:border-box}
.cemr-record-v334 .cemr334-breadcrumb{margin:0 0 12px!important;font-size:13px!important}
.cemr-record-v334 .cemr334-hero{display:flex!important;justify-content:space-between;align-items:flex-start;gap:20px;padding:25px 30px!important;background:#fff;border:1px solid var(--cemr334-line);box-shadow:0 2px 10px #1f35220a;border-radius:16px;margin:0 0 16px!important;min-width:0}
.cemr-record-v334 .cemr334-identity{min-width:0;flex:1}
.cemr-record-v334 .cemr334-overline{display:flex;flex-wrap:wrap;gap:9px;align-items:center;color:#617268;font-size:11px;font-weight:750;letter-spacing:.085em;text-transform:uppercase;margin-bottom:12px}
.cemr-record-v334 .cemr334-record-id{letter-spacing:0;text-transform:none;background:#edf2ed;border-radius:5px;padding:3px 8px;color:#49644f;font-size:12px}
.cemr-record-v334 .cemr334-hero h1{margin:0!important;max-width:790px!important;font-weight:770!important;line-height:1.19!important;letter-spacing:-.025em;font-size:clamp(25px,2.7vw,38px)!important;color:var(--cemr334-text);overflow-wrap:anywhere}
.cemr-record-v334 .cemr334-dates{font-size:20px;line-height:1.35;margin:6px 0 0;color:#4b574f}
.cemr-record-v334 .cemr334-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0 0}
.cemr-record-v334 .cemr334-kind{background:#e9efe9;color:#355b40;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:750}
.cemr-record-v334 .cemr334-summary{color:var(--cemr334-muted);font-size:12px;line-height:1.5}
.cemr-record-v334 .cemr334-place{display:flex;flex-wrap:wrap;gap:10px 17px;align-items:center;border-top:1px solid var(--cemr334-line);margin-top:20px;padding-top:15px;color:#4b5e51;font-size:14px}
.cemr-record-v334 .cemr334-cemetery{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.cemr-record-v334 .cemr334-cemetery>span:first-child{font-size:23px;color:#4f785e;line-height:1}
.cemr-record-v334 .cemr334-sep{color:#b0b8af}
.cemr-record-v334 .cemr334-number{padding:6px 10px;background:var(--cemr334-soft);border-radius:7px;color:#304236;font-weight:680;font-size:13px;white-space:nowrap}
.cemr-record-v334 .cemr334-hero-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-content:flex-start;min-width:235px;max-width:335px}
.cemr-record-v334 .cemr334-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;border:1px solid #d9e2d9;background:white;padding:10px 12px;color:#375641;text-decoration:none!important;font-size:12px;font-weight:700;cursor:pointer;min-height:40px;line-height:1.2;font-family:inherit;white-space:nowrap}
.cemr-record-v334 .cemr334-action:hover,.cemr-record-v334 .cemr334-action:focus-visible{background:#edf3ed;color:#304a38}
.cemr-record-v334 .cemr334-action-primary{background:var(--cemr334-green);color:white;border-color:var(--cemr334-green)}
.cemr-record-v334 .cemr334-action-primary:hover{background:#2b4634;color:white}
.cemr-record-v334 .cemr334-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:16px;align-items:start;margin:0 0 18px}
.cemr-record-v334 .cemr334-primary{display:flex;flex-direction:column;min-width:0;gap:16px}
.cemr-record-v334 .cemr334-panel,.cemr-record-v334 .cemr334-map-card{background:#fff;border:1px solid var(--cemr334-line);border-radius:15px;padding:16px!important;min-width:0;box-shadow:0 2px 10px #24382607}
.cemr-record-v334 .cemr334-panel-head,.cemr-record-v334 .cemr334-map-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 13px}
.cemr-record-v334 .cemr334-panel-head h2,.cemr-record-v334 .cemr334-map-head h2{font-size:17px!important;font-weight:770!important;line-height:1.35!important;margin:0!important;color:#2e4335}
.cemr-record-v334 .cemr334-panel-head>span,.cemr-record-v334 .cemr334-map-head>span{color:#65786a;font-size:12px;white-space:normal;text-align:right}
.cemr-record-v334 .cemr334-total-note{background:#f4f6f2;border-radius:8px;padding:10px 12px;margin:0 0 8px;font-size:13px;color:#566c59}
.cemr-record-v334 .cemr334-people{list-style:none!important;margin:0!important;padding:0!important}
.cemr-record-v334 .cemr334-people li{list-style:none!important;padding:11px 2px!important;margin:0!important;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:4px;border-bottom:1px solid #e8eee7;align-items:baseline}
.cemr-record-v334 .cemr334-people li:last-child{border-bottom:0}
.cemr-record-v334 .cemr334-person-name{font-size:15px;font-weight:725;line-height:1.35;overflow-wrap:anywhere}
.cemr-record-v334 .cemr334-person-years{font-size:13px;color:#66716b;font-variant-numeric:tabular-nums;white-space:nowrap}
.cemr-record-v334 .cemr334-person-note{grid-column:1 / -1;color:#68786d;font-size:12px;white-space:pre-wrap}
.cemr-record-v334 .cemr334-extra-people{margin-top:6px;border-top:1px solid var(--cemr334-line)}
.cemr-record-v334 .cemr334-extra-people summary{cursor:pointer;padding:11px 3px;font-size:13px;color:#345f42;font-weight:750}
.cemr-record-v334 .cemr334-empty-small{font-size:13px;color:var(--cemr334-muted)}
.cemr-record-v334 .cemr334-photo-main{display:flex!important;align-items:center!important;justify-content:center!important;height:auto!important;min-height:230px!important;max-height:500px!important;background:#f2f3ef!important;overflow:hidden;border-radius:10px;position:relative}
.cemr-record-v334 .cemr334-photo-main img{display:block!important;height:auto!important;width:auto!important;max-width:100%!important;max-height:500px!important;object-fit:contain!important;margin:auto!important}
.cemr-record-v334 .cemr334-photo-zoom{position:absolute;bottom:12px;right:12px;border-radius:7px;padding:7px 10px;background:#fffefaee;color:#2f4c3a;font-size:12px;font-weight:750}
.cemr-record-v334 .cemr334-photo-thumbs{margin:9px 0 0!important;display:flex;gap:8px;flex-wrap:wrap}
.cemr-record-v334 .cemr334-photo-thumbs a{width:65px;height:62px;flex:none}
.cemr-record-v334 .cemr334-photo-empty{background:#f3f6f1;min-height:215px;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:#627368}
.cemr-record-v334 .cemr334-photo-empty>span{font-size:36px}
.cemr-record-v334 .cemr334-photo-empty small{font-size:12px;max-width:290px}
.cemr-record-v334 .cemr334-characteristics .cemr29-facts{margin:0!important}
.cemr-record-v334 .cemr334-characteristics .cemr29-facts>div{padding:8px 0;grid-template-columns:minmax(110px,37%) minmax(0,1fr)}
.cemr-record-v334 .cemr334-map-card{position:sticky;top:16px;scroll-margin-top:18px}
.cemr-record-v334 .cemr334-map-wrap{min-width:0;width:100%;height:560px!important;min-height:0!important;overflow:hidden;border-radius:10px;background:#e6ebe3}
.cemr-record-v334 .cemr334-map-wrap>.cemr-map,.cemr-record-v334 .cemr334-map-wrap .cemr-map{height:560px!important;min-height:0!important;width:100%!important}
.cemr-record-v334 .cemr334-map-footer{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;font-size:13px;margin-top:11px}
.cemr-record-v334 .cemr334-map-footer a{color:#335941;text-decoration:none;font-weight:720}
.cemr-record-v334 .cemr334-map-caution{margin:10px 0 0;padding:9px 12px;background:#f8f4e9;border-radius:7px;color:#6a604e;font-size:12px;line-height:1.45}
.cemr-record-v334 .cemr334-map-empty{min-height:270px;border-radius:10px;background:#f3f5f1;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;text-align:center;padding:24px;color:#657467}
.cemr-record-v334 .cemr334-map-empty>span{font-size:39px}
.cemr-record-v334 .cemr334-map-empty p{margin:0;font-size:13px;max-width:320px}
.cemr-record-v334 .cemr334-content--no-map{grid-template-columns:minmax(0,1fr) minmax(0,.72fr)}
.cemr-record-v334 .cemr334-archive{background:#fff;border:1px solid var(--cemr334-line);border-radius:15px;margin:17px 0;padding:24px;min-width:0}
.cemr-record-v334 .cemr334-archive-heading>span{font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#6e806f}
.cemr-record-v334 .cemr334-archive-heading h2{margin:6px 0 18px;font-size:21px;font-weight:780;color:#26382e}
.cemr-record-v334 .cemr334-documents{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;align-items:start}
.cemr-record-v334 .cemr334-documents .cemr29-section,.cemr-record-v334 .cemr334-documents .cemr334-source-panel{margin:0!important;padding:15px!important;border:1px solid var(--cemr334-line)!important;border-radius:10px!important;background:#fff!important;min-width:0;box-shadow:none!important}
.cemr-record-v334 .cemr334-documents .cemr29-section h3{font-size:17px;margin:0 0 13px}
.cemr-record-v334 .cemr334-documents .cemr29-inscription-text{unicode-bidi:plaintext;overflow-wrap:anywhere;white-space:pre-wrap}
.cemr-record-v334 .cemr334-documents .cemr29-prewrap{overflow-wrap:anywhere}
.cemr-record-v334 :is(a,button,summary):focus-visible{outline:3px solid #9d8442;outline-offset:3px}
@media(min-width:821px){.cemr-record-v334 .cemr334-map-card{max-height:calc(100vh - 32px);overflow:auto}}
@media(max-width:1000px){.cemr-record-v334 .cemr334-hero{flex-direction:column}.cemr-record-v334 .cemr334-hero-actions{max-width:none;min-width:0;justify-content:flex-start}.cemr-record-v334 .cemr334-map-wrap,.cemr-record-v334 .cemr334-map-wrap>.cemr-map,.cemr-record-v334 .cemr334-map-wrap .cemr-map{height:440px!important}}
@media(max-width:820px){.cemr-record-v334 .cemr334-content,.cemr-record-v334 .cemr334-content--no-map{grid-template-columns:minmax(0,1fr)!important}.cemr-record-v334 .cemr334-map-card{position:static;order:0}.cemr-record-v334 .cemr334-primary{order:1}.cemr-record-v334 .cemr334-map-wrap,.cemr-record-v334 .cemr334-map-wrap>.cemr-map,.cemr-record-v334 .cemr334-map-wrap .cemr-map{height:340px!important}.cemr-record-v334 .cemr334-documents{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:520px){.cemr-record-v334 .cemr334-hero{padding:19px 16px!important}.cemr-record-v334 .cemr334-hero h1{font-size:clamp(25px,7vw,33px)!important}.cemr-record-v334 .cemr334-action{flex:1 1 calc(50% - 8px);justify-content:center;padding:10px 8px}.cemr-record-v334 .cemr334-panel,.cemr-record-v334 .cemr334-map-card{padding:13px!important}.cemr-record-v334 .cemr334-people li{grid-template-columns:minmax(0,1fr);gap:3px}.cemr-record-v334 .cemr334-person-years{white-space:normal}.cemr-record-v334 .cemr334-archive{padding:16px}.cemr-record-v334 .cemr334-map-wrap,.cemr-record-v334 .cemr334-map-wrap>.cemr-map,.cemr-record-v334 .cemr334-map-wrap .cemr-map{height:300px!important}}
@media print{.cemr-record-v334 .cemr334-hero-actions,.cemr-record-v334 .cemr334-map-card{display:none!important}.cemr-record-v334 .cemr334-content{display:block!important}.cemr-record-v334 .cemr334-documents{display:block!important}.cemr-record-v334 .cemr334-archive{page-break-inside:avoid}.cemr-record-v334 .cemr334-photos{page-break-inside:avoid}}

/* For records without photographs the map should not create a tall empty rail. */
.cemr-record-v334 .cemr334-content--no-photo .cemr334-map-wrap,.cemr-record-v334 .cemr334-content--no-photo .cemr334-map-wrap>.cemr-map,.cemr-record-v334 .cemr334-content--no-photo .cemr334-map-wrap .cemr-map{height:370px!important}
@media(max-width:520px){.cemr-record-v334 .cemr334-content--no-photo .cemr334-map-wrap,.cemr-record-v334 .cemr334-content--no-photo .cemr334-map-wrap>.cemr-map,.cemr-record-v334 .cemr334-content--no-photo .cemr334-map-wrap .cemr-map{height:300px!important}}
