/* Source-based Mulpula maps. Scoped to preserve the existing website layout. */
.mulpula-map { margin: 0 0 34px; min-width: 0; scroll-margin-top: 112px; }
.mulpula-map [hidden], .map-switch[hidden] { display: none !important; }
.mulpula-map-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.map-eyebrow { color:var(--slate); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; font-weight:750; margin:0 0 5px; }
.mulpula-map h3 { font-size:clamp(1.15rem,2vw,1.45rem); line-height:1.2; margin:0; }
.map-expand { flex:none; display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:8px 0 8px 12px; font-size:.875rem; font-weight:700; }
.map-expand span { font-size:1.4rem; }
.map-expand:hover { color:var(--lime-ink); }
.map-switch { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:0 0 14px; }
.map-switch button { appearance:none; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--slate); font:inherit; font-size:.94rem; font-weight:650; cursor:pointer; padding:10px 16px; min-height:46px; }
.map-switch button:first-child { padding-left:0; padding-right:20px; }
.map-switch button[aria-pressed="true"] { border-bottom-color:var(--lime-ink); color:var(--ink); }
.map-image-link { display:block; cursor:zoom-in; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:#e5f3f0; }
.mulpula-map-image { display:block; width:100%; height:auto; }
.map-symbols { display:flex; flex-wrap:wrap; gap:9px 20px; padding:15px 0; border-bottom:1px solid var(--line); font-size:.875rem; color:var(--slate); }
.map-symbols > span { display:inline-flex; align-items:center; gap:8px; }
.map-swatch { display:inline-block; width:24px; height:0; border-top:3px solid; flex:none; }
.source-outline { border-color:#10161a; }
.source-structure { border-color:#d28520; }
.source-target { border-color:#aef03e; height:5px; background:#aef03e; outline:1px solid #10161a; border-radius:2px; }
.map-explanations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px; margin:18px 0 0; }
.map-explanations dt { display:flex; align-items:baseline; gap:8px; font-size:.94rem; line-height:1.4; font-weight:700; }
.map-explanations b { display:inline-block; flex:none; color:var(--lime-ink); font-size:.85rem; white-space:nowrap; }
.map-explanations dd { margin:5px 0 0; color:var(--slate); font-size:.875rem; line-height:1.5; }
.map-scale { margin-top:18px; font-size:.875rem; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.map-scale summary { cursor:pointer; font-weight:650; min-height:44px; padding:11px 0; }
.map-scale > div { display:flex; align-items:center; gap:22px; padding:4px 0 18px; }
.map-scale img { width:84px; height:auto; flex:none; }
.map-scale p { margin:0; color:var(--slate); }
.mulpula-map figcaption { margin-top:16px; color:var(--slate); font-size:.81rem; line-height:1.6; }
.map-dialog { position:fixed; inset:0; width:min(1200px,calc(100vw - 48px)); height:calc(100dvh - 48px); max-width:none; max-height:none; padding:0; border:1px solid #cad4d5; border-radius:10px; margin:auto; background:#f4f6f5; color:#10161a; box-shadow:0 20px 80px #0007; }
.map-dialog[open] { display:flex; flex-direction:column; }
.map-dialog::backdrop { background:rgba(8,16,20,.82); }
.map-dialog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; background:#fff; border-bottom:1px solid #d3dcde; }
.map-dialog-toolbar h2 { margin:0; font-size:1.2rem; line-height:1.3; letter-spacing:0; }
.map-dialog button { font:inherit; font-size:.94rem; font-weight:650; border:1px solid #cad4d5; background:#fff; color:#10161a; cursor:pointer; min-width:44px; min-height:44px; padding:8px 13px; border-radius:5px; }
.map-dialog button:hover { background:#e9eef1; }
.map-dialog button:disabled { opacity:.4; cursor:default; }
.map-dialog button:focus-visible, .map-viewport:focus-visible { outline:3px solid #4e7a12; outline-offset:-3px; }
.map-close { white-space:nowrap; }
.map-close span { font-size:1.3rem; margin-left:7px; }
.map-zoom-controls { display:flex; align-items:center; gap:8px; padding:10px 20px; flex-wrap:wrap; }
.map-zoom-controls output { font-size:.875rem; min-width:45px; text-align:center; }
.map-zoom-controls > span { font-size:.81rem; color:#47616b; margin-left:auto; }
.map-viewport { overflow:auto; flex:1; min-height:0; background:#dce6e7; overscroll-behavior:contain; touch-action:none; cursor:grab; }
.map-viewport.dragging { cursor:grabbing; }
.map-canvas { position:relative; min-width:100%; min-height:100%; display:grid; place-items:center; }
.map-canvas img { display:block; max-width:none; flex:none; user-select:none; -webkit-user-drag:none; }
.map-dialog-credit { padding:10px 20px; margin:0; font-size:.75rem; color:#47616b; }
body.map-is-open { overflow:hidden; }
@media (max-width:600px) {
  .map-explanations { grid-template-columns:1fr; gap:15px; }
  .mulpula-map-heading { gap:10px; }
  .map-eyebrow { font-size:.72rem; }
  .map-symbols { gap:9px 14px; }
  .map-dialog { width:100%; height:100dvh; border:0; border-radius:0; }
  .map-dialog-toolbar { padding:10px 14px; }
  .map-dialog-toolbar h2 { font-size:1.02rem; }
  .map-zoom-controls { padding:9px 14px; }
  .map-zoom-controls > span { width:100%; margin:0; }
  .map-dialog-credit { padding:9px 14px max(9px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { .map-viewport { scroll-behavior:auto; } }
@media print { .map-expand,.map-switch,.map-dialog { display:none!important; } .mulpula-map { break-inside:avoid; } }

/* Interactive model added in v6. Existing maps remain intact. */
.mulpula-3d-frame { display:block; width:100%; height:650px; border:1px solid #233640; border-radius:8px; background:#06111e; }
.model-context { font-size:.82rem; line-height:1.55; color:var(--slate); margin:12px 0 0; }
.model-caption { margin-top:5px; }
.map-switch { flex-wrap:wrap; }
.map-switch button { padding-left:12px; padding-right:12px; }
.mulpula-map.model-fullscreen .mulpula-3d-frame { position:fixed; inset:0; width:100vw; height:100dvh; z-index:10000; border:0; border-radius:0; }
body.model-fullscreen-open { overflow:hidden; }
@media (max-width:600px) { .mulpula-3d-frame { height:570px; } .map-switch button { font-size:.81rem; padding:10px 9px; } }

.interpretation-heading{margin:22px 0 12px;font-size:15px;color:var(--ink,#243a42)}
