/* No top layer or backdrop: the selected map geometry and controls remain usable. */
.map-and-card{min-width:0}
.map-and-card.has-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(17rem,26rem);gap:10px;align-items:start}
.map-and-card .stage{min-width:0}
#placePopup{background:var(--field-paper);color:var(--field-ink);border:1px solid var(--field-navy);border-top-width:5px}
#placePopup .small{color:var(--field-accent);margin:0}#placePopup h2{font:600 1.65rem/1.15 var(--head)}#placePopup p{line-height:1.5}#placePopup a{font-weight:600}
#placePopup[open]{position:relative;inset:auto;width:100%;min-width:0;max-width:none;margin:0;max-height:min(74vh,800px);overflow:auto;overscroll-behavior:contain;padding:12px 16px;border-radius:3px;box-shadow:none;overflow-wrap:anywhere}
#placePopup header{display:flex;align-items:center;justify-content:space-between;gap:6px}
#placePopup h2{margin:.25rem 0 .65rem}
#placePopup header button,#placePopup #placeMore{min-height:44px}
#placePopup .civic-badge{display:grid;gap:2px;justify-items:start;position:static;max-width:100%;width:100%;margin:0 0 .25rem;padding:.5rem .7rem;box-shadow:none}
#placePopup .civic-badge strong{font-size:1rem}
#placePopup .civic-badge span{font-size:.8rem}
#placePopup .civic-top{flex-wrap:wrap;align-items:center}
#placePopup .civic-top h3{font:600 1.12rem/1.3 var(--head);margin:0}
#placePopup a{display:inline;min-height:0}
#placePopup #placeMore:not([hidden]){display:inline-flex;align-items:center}
#placePopup figure{display:block;margin:.4rem 0 .65rem}
#placePopup figure img{display:block;width:100%;height:auto;max-width:100%}
#placePopup figcaption{display:block;margin:.35rem 0 0;color:var(--field-context-text);line-height:1.35}
#placePopup figcaption,#placeOutline,#placePopup .civic-source{font-size:.8rem}
#placeFacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.5rem .7rem;margin:.9rem 0}#placeFacts div{border-top:1px solid var(--field-rule);padding-top:.3rem}#placeFacts dt{color:var(--field-navy);font-size:.78rem}#placeFacts dd{margin:.15rem 0;line-height:1.3}
#placePopup [hidden]{display:none!important}
@media(max-width:850px){
 .map-and-card.has-card{display:block}
 .map-and-card.has-card .stage{height:36dvh;min-height:165px;max-height:340px}
 #placePopup[open]{margin-top:6px;padding:8px 12px;max-height:none;overflow:visible}
}

/* Desktop: a full-width, uncropped plate with its complete credit directly below. */
@media(min-width:851px){
 #placePopup[open]{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
 #placePopup #placeExcerpt{margin:.5rem 0;line-height:1.4}
 #placePopup #placeFacts{margin:.6rem 0;gap:.3rem .7rem}
}
#placePopup #placeMore{border-block-start:1px solid var(--field-rule);margin-top:.5rem}
