/* The map has its own full-width chapter, outside the reading column. */
#calling .calling-map{--casals-map-ink:#f4ead6;--casals-map-muted:#d2c3a9;--casals-map-accent:#dfc59e;box-sizing:border-box;width:100%;max-width:none;margin:52px 0 64px;padding:0;color:var(--casals-map-ink);background:#07120b}
.calling-map:focus,.calling-map:focus-visible{outline:none}
.calling-map [hidden]{display:none!important}
#calling .calling-map .casals-map-heading{position:static;inset:auto;display:block;box-sizing:border-box;width:100%;height:auto;min-height:0;margin:0;padding:32px clamp(22px,4.5vw,100px) 26px;background:transparent;color:inherit;z-index:auto}
#calling .calling-map .casals-map-heading h3{margin:0 0 8px;font-size:clamp(28px,2.6vw,42px);line-height:1.2}
#calling .calling-map .casals-map-heading p{margin:0;color:var(--casals-map-muted);font-size:16px;line-height:1.5;letter-spacing:.03em}
.calling-map .casals-map-stage{position:relative;isolation:isolate;contain:layout paint;box-sizing:border-box;width:100%;max-width:none;margin:0;aspect-ratio:16/9;overflow:hidden;background:#07120b;border-block:1px solid rgba(223,197,158,.22)}
.calling-map .casals-map-poster-link{position:absolute;inset:0;display:block;color:var(--casals-map-ink);text-decoration:none}
.calling-map .casals-map-poster,.calling-map .casals-map-journey>svg{display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.calling-map[data-map-journey-visible="true"] .casals-map-poster{visibility:hidden}
.calling-map .casals-map-journey{position:absolute;inset:0;pointer-events:none;overflow:hidden;background:#07120b}
.calling-map .casals-map-open-cue{position:absolute;z-index:2;right:clamp(18px,3vw,54px);bottom:clamp(18px,3vw,54px);display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;background:rgba(6,16,10,.93);border:1px solid rgba(223,197,158,.65);font-size:16px;line-height:1.4;box-shadow:0 3px 20px #0005}
.calling-map[data-map-state="playing"] .casals-map-open-cue,.calling-map[data-map-state="loading"] .casals-map-open-cue{opacity:0}
.calling-map .casals-map-poster-link:focus-visible .casals-map-open-cue,.calling-map .casals-map-poster-link:hover .casals-map-open-cue{opacity:1}
.calling-map .casals-map-progress{position:absolute;z-index:3;inset:auto 0 0;display:block;width:100%;height:3px;border:0;margin:0;background:#25362b;accent-color:#d8b57f;pointer-events:none}
.calling-map .casals-map-progress::-webkit-progress-bar{background:#25362b}
.calling-map .casals-map-progress::-webkit-progress-value{background:#d8b57f}
.calling-map .casals-map-progress::-moz-progress-bar{background:#d8b57f}
.calling-map .casals-map-controls{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;width:100%;max-width:none;margin:0;padding:18px clamp(22px,4.5vw,100px) 24px}
.calling-map :is(.casals-map-controls button,.casals-map-controls a,.casals-map-dialog button,.casals-map-original){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:9px 16px;border:1px solid rgba(223,197,158,.4);border-radius:2px;background:rgba(6,16,10,.94);color:var(--casals-map-ink);font:inherit;font-size:16px;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer;touch-action:manipulation}
.calling-map .casals-map-explore{margin-left:auto;border-color:rgba(223,197,158,.7);color:var(--casals-map-accent)}
.calling-map :is(button,a):focus-visible{outline:2px solid var(--casals-map-accent);outline-offset:4px}
.calling-map :is(.casals-map-controls button,.casals-map-controls a,.casals-map-dialog button,.casals-map-original):hover{background:#233226;border-color:#dfc59e}
/* The canvas fills the viewport; its controls float over the outer edges. */
.calling-map .casals-map-dialog{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#07120b;color:var(--casals-map-ink);overflow:hidden;overscroll-behavior:contain;isolation:isolate}
.calling-map .casals-map-dialog:not([open]){display:none}
.calling-map .casals-map-dialog[open]{display:block}
.calling-map .casals-map-dialog::backdrop{background:#020805f7}
body:has(.casals-map-dialog[open]){overflow:hidden}
.calling-map .casals-map-viewport{position:absolute;inset:0;overflow:hidden;background:#07120b;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;outline-offset:-3px}
.calling-map .casals-map-viewport:focus-visible{outline:2px solid var(--casals-map-accent)}
.calling-map .casals-map-viewport[data-dragging]{cursor:grabbing}
/* Resize the SVG itself when zooming. A CSS scale would cache a soft bitmap. */
.calling-map .casals-map-image{position:absolute;top:0;left:0;display:block;max-width:none!important;max-height:none!important;margin:0;transform-origin:0 0;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.calling-map .casals-map-dialog[data-map-loading] .casals-map-image{opacity:0}
.calling-map .casals-map-load-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;max-width:100%;margin:0;padding:24px;font-size:16px;line-height:1.6;text-align:center;color:var(--casals-map-muted);pointer-events:none}
#calling .calling-map .casals-map-dialog-heading{position:absolute;inset:max(16px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) auto max(22px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:20px;width:auto;height:auto;min-height:0;min-width:0;margin:0;padding:0;background:transparent;color:inherit;z-index:2;pointer-events:none}
#calling .calling-map .casals-map-dialog-heading h2{margin:0;padding:7px 12px;font-size:clamp(22px,1.7vw,30px);line-height:1.2;color:#f4ead6;background:rgba(6,16,10,.88);text-shadow:0 2px 8px #0009;pointer-events:auto}
.calling-map .casals-map-close{flex:none;pointer-events:auto}
.calling-map .casals-map-views{position:absolute;z-index:2;top:max(74px,calc(env(safe-area-inset-top) + 58px));left:max(22px,env(safe-area-inset-left));right:90px;display:flex;gap:8px;flex-wrap:wrap;pointer-events:none}
.calling-map .casals-map-views button{pointer-events:auto}
.calling-map .casals-map-views button[aria-pressed="true"]{color:#fff2da;border-color:#d7b889;background:rgba(71,58,36,.97)}
#calling .calling-map .casals-map-dialog-footer{position:absolute;z-index:2;inset:auto max(22px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;box-sizing:border-box;width:auto;max-width:none;margin:0;padding:0;background:transparent;border:0;pointer-events:none}
.calling-map .casals-map-dialog-footer>*{pointer-events:auto}
.calling-map .casals-map-zoom-controls{display:flex;align-items:center;gap:6px;padding:4px;background:rgba(6,16,10,.94);border:1px solid rgba(223,197,158,.35)}
.calling-map .casals-map-zoom-value{min-width:55px;font-size:16px;line-height:1.4;text-align:center;color:var(--casals-map-muted);font-variant-numeric:tabular-nums}
.calling-map .casals-map-zoom-controls :is(.casals-map-zoom-in,.casals-map-zoom-out){font-size:24px;padding:4px 10px}
.calling-map .casals-map-dialog button:disabled{opacity:.4;cursor:default}
#calling .calling-map .casals-map-instructions{margin:0;padding:10px 14px;max-width:470px;font-size:14px;line-height:1.4;text-align:left;color:var(--casals-map-muted);background:rgba(6,16,10,.94)}
.calling-map .casals-map-original{font-size:14px}
.calling-map .casals-map-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;border:0!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:760px){
 #calling .calling-map{margin:36px 0 44px}
 #calling .calling-map .casals-map-heading{padding:24px 22px 18px}
 .calling-map .casals-map-controls{padding:14px 22px 20px;gap:10px}
 .calling-map .casals-map-open-cue{right:12px;bottom:12px;padding:8px 12px;font-size:14px}
 #calling .calling-map .casals-map-dialog-heading{inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) auto max(12px,env(safe-area-inset-left));gap:12px}
 #calling .calling-map .casals-map-dialog-heading h2{font-size:21px;max-width:250px}
 .calling-map .casals-map-views{top:max(78px,calc(env(safe-area-inset-top) + 66px));left:max(12px,env(safe-area-inset-left));right:12px;gap:6px}
 .calling-map .casals-map-views button{font-size:14px;padding:8px 11px}
 #calling .calling-map .casals-map-dialog-footer{inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:8px}
 #calling .calling-map .casals-map-instructions{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;padding:0}
 .calling-map .casals-map-original{font-size:14px;padding:9px 10px}
}
@media(max-width:420px){
 .calling-map .casals-map-controls :is(button,a){font-size:14px;padding:9px 12px}
 .calling-map .casals-map-zoom-controls{gap:3px;padding:3px}
 .calling-map .casals-map-zoom-value{min-width:44px;font-size:14px}
 .calling-map .casals-map-zoom-controls button{padding-inline:10px}
 .calling-map .casals-map-original{min-width:0;min-height:44px;padding:8px;font-size:13px}
}
@media(max-height:560px){
 #calling .calling-map .casals-map-dialog-heading h2{display:none}
 #calling .calling-map .casals-map-dialog-heading{justify-content:flex-end;top:10px;right:12px}
 .calling-map .casals-map-views{top:10px;left:12px;right:100px;gap:6px}
 .calling-map .casals-map-views button{font-size:14px;padding:7px 12px}
 #calling .calling-map .casals-map-dialog-footer{bottom:10px}
 #calling .calling-map .casals-map-instructions{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;padding:0}
}
@media(prefers-reduced-motion:reduce){.calling-map *{scroll-behavior:auto!important}}
