/* Desktop retains its independent panes. Phones use one natural document scroll. */
.timeline-map-dock,.timeline-filter-disclosure{display:contents}
.timeline-filter-disclosure>summary,.timeline-mobile-tabs,.timeline-map-interact,.timeline-map-notes{display:none}
.timeline-choice-mode>:not(.timeline-place-choices){display:none!important}
.timeline-place-choices{display:grid;align-content:start;gap:10px;min-width:0}
.timeline-place-choices h3{margin:0;color:var(--gold-light);font:600 1.2em/1.35 Georgia,serif}
.timeline-place-choices button{min-height:44px;max-width:100%;padding:12px;border:1px solid var(--hairline);border-radius:12px;background:var(--bg-deep);color:var(--cream);font:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
body.fc-timeline-experience .timeline-mobile{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column;gap:12px;overflow:visible!important;margin-top:18px;scroll-margin-top:calc(var(--timeline-menu-height,64px) + 12px)}
.timeline-mobile [data-timeline-pane-grid],.timeline-mobile .main-col,.timeline-mobile .rail,.timeline-mobile .history-browser,.timeline-mobile #historyDirectory{display:contents!important}
.timeline-mobile .timeline-filter-disclosure{display:block;order:0;margin:0}
.timeline-mobile .timeline-filter-disclosure>summary,.timeline-mobile .timeline-map-notes>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:600;color:var(--gold-light)}
body.fc-timeline-experience .timeline-mobile .controls{position:static!important;height:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;margin:0;padding:8px 0;border:0;border-radius:0;background:none}
.timeline-mobile .era-pills{max-height:none!important;overflow:visible!important}
body.fc-timeline-experience .timeline-mobile [data-timeline-pane]{position:relative!important;inset:auto!important;width:auto!important;min-width:0;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;scrollbar-gutter:auto;margin:0!important}
.timeline-mobile [data-timeline-pane="events"],.timeline-mobile [data-timeline-pane="detail"],.timeline-mobile [data-timeline-pane="timeline"]{order:3;padding:8px;scroll-margin-top:calc(var(--timeline-menu-height,64px) + var(--timeline-dock-height,240px) + 12px)}
.timeline-mobile #eventDirectory{display:grid;align-content:start}
.timeline-mobile .history-reading .timeline{margin-top:0}
.timeline-mobile .timeline-map-dock{display:block;order:1;position:sticky;top:var(--timeline-menu-height,64px);z-index:100;background:var(--bg,#142a35);padding:6px 0;align-self:stretch}
.timeline-mobile .timeline-map-dock [data-timeline-pane="map"]{display:block!important}
body.fc-timeline-experience .timeline-mobile .timeline-map-dock [data-timeline-pane="map"]{overflow:hidden!important}
.timeline-mobile #map,.timeline-mobile #historyMapCanvas{height:clamp(100px,24svh,190px)!important;min-height:0!important;width:100%;flex:none!important}
.timeline-mobile .timeline-map-passive .leaflet-container{touch-action:pan-y!important}
.timeline-mobile .timeline-map-interact{display:block;min-height:44px;width:100%;font:inherit;font-size:.9em;line-height:1.3;color:var(--cream);border:1px solid var(--hairline);border-radius:10px;background:var(--bg-deep);cursor:pointer;margin:6px 0}
.timeline-mobile .timeline-map-interact[aria-pressed="true"]{background:var(--gold);color:#182d35}
.timeline-mobile .timeline-mobile-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.timeline-mobile-tabs button{appearance:none;flex:1 1 auto;min-height:44px;min-width:0;padding:8px 10px;border:1px solid var(--hairline);border-radius:12px;background:var(--bg-deep);color:var(--cream);font:inherit;font-size:.9em;line-height:1.25;white-space:normal;word-break:normal;cursor:pointer}
.timeline-mobile-tabs button[aria-pressed="true"]{background:var(--gold);color:#182d35}
.timeline-mobile .timeline-map-notes:not([hidden]){display:block;order:2}
.timeline-mobile .timeline-map-notes .history-map-copy{max-height:none!important;overflow:visible!important;padding:8px 0;display:block}
.timeline-mobile .timeline-map-notes #historyMapStatus{max-height:none;overflow:visible;margin:8px 0}
.timeline-mobile[data-mobile-view="events"] [data-timeline-pane="detail"],.timeline-mobile[data-mobile-view="events"] [data-timeline-pane="timeline"],.timeline-mobile[data-mobile-view="story"] [data-timeline-pane="events"]{display:none!important}
.timeline-mobile[data-mobile-view="story"] [data-timeline-pane="detail"],.timeline-mobile[data-mobile-view="story"] [data-timeline-pane="timeline"]{display:block!important}
.timeline-mobile .detail-panel{transform:none!important;opacity:1!important;pointer-events:auto!important;transition:none!important}
.timeline-mobile #detail-close,.fc-timeline-experience .sheet,.fc-timeline-experience .mobile-sheet{display:none!important}
.timeline-mobile.timeline-map-collapsed .timeline-map-dock [data-timeline-pane="map"],.timeline-mobile.timeline-map-collapsed .timeline-map-interact{display:none!important}
.timeline-mobile .timeline-map-unavailable{position:static}
.timeline-mobile .timeline-map-unavailable #map{height:auto!important;min-height:0!important}
.timeline-mobile .timeline-map-unavailable #map:has(>.leaflet-container):has(>.map-fallback){height:240px!important;min-height:240px!important}
.timeline-mobile .timeline-map-unavailable #map:has(>.map-fallback)>[hidden]{display:none!important}
.timeline-mobile .timeline-map-unavailable #mapFallback{position:static!important;padding:16px}
.timeline-mobile .timeline-map-unavailable .timeline-map-interact{display:none}
.timeline-mobile .timeline-map-unavailable:has(#mapFallback:not([hidden])) #map:not(:has(.map-fallback)){display:none}
@media(max-width:1020px){body.fc-timeline-experience nav[data-focuschrist-header="standard"]{position:sticky!important;top:0!important;z-index:1100}}
@media(max-height:560px){.timeline-mobile #map,.timeline-mobile #historyMapCanvas{height:100px!important}.timeline-mobile .timeline-map-dock{position:static}}

.timeline-mobile .history-reading .event{scroll-margin-top:calc(var(--timeline-menu-height,64px) + var(--timeline-dock-height,240px) + 12px)}

.timeline-mobile .timeline-map-unavailable [data-timeline-pane="map"]:has(#historyMapCanvas[hidden]){display:none!important}

.timeline-mobile [data-timeline-pane="events"] button,.timeline-mobile .timeline-group-nav button{scroll-margin-top:calc(var(--timeline-menu-height,64px) + var(--timeline-dock-height,240px) + 12px)}

.timeline-group-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;min-width:0}
.timeline-group-nav p{flex-basis:100%;margin:0;font-weight:600}
.timeline-group-nav button{min-height:44px;max-width:100%;padding:10px 12px;border:1px solid var(--fc-line-strong);border-radius:12px;background:var(--fc-bg-deep);color:var(--fc-cream);font:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.timeline-group-nav button:disabled{opacity:.5;cursor:default}
.timeline-group-active #prevBtn,.timeline-group-active #nextBtn{display:none}

/* The Americas diagram has no Earth coordinates; preserve its complete composition. */
.internal-map-view[hidden]{display:none!important}
.internal-map-view{position:absolute;inset:0;z-index:500;display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--bg-deep,#10252d);min-height:0}
.internal-map-image{display:block;flex:1;min-height:0;text-align:center}
.internal-map-image img{width:100%;height:100%;object-fit:contain;display:block}
.internal-map-actions{display:flex;flex-direction:column;gap:6px;flex:none;font-size:13px;line-height:1.35;color:var(--cream)}
.internal-map-actions button{min-height:44px;flex-shrink:0;padding:8px 12px;font:inherit;color:var(--cream);background:var(--warm);border:1px solid var(--gold);border-radius:12px;cursor:pointer}
.life-internal-view #map,.life-internal-view>.map-pin-note,.life-internal-view>#mapFallback{visibility:hidden}
.life-internal-active .timeline-map-interact{display:none!important}
.timeline-mobile .internal-map-view{position:relative;inset:auto;padding:6px;gap:4px;flex-direction:row}
.timeline-mobile .life-internal-view #map{display:none!important}
.timeline-mobile .internal-map-image{height:clamp(100px,24svh,190px);flex:1 1 40%}
.timeline-mobile .internal-map-actions{flex:1 1 60%;justify-content:center;font-size:12px}

/* Timeline-only header: retain enlarged text and reserve separate pointer targets. */
@media(max-width:1020px){
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"]{height:auto!important;column-gap:12px!important;box-sizing:border-box}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"] .nav-logo{flex:none;width:max-content;max-width:100%;overflow-wrap:anywhere}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"] .hamburger-wrap{display:flex!important;align-items:center;gap:8px;min-width:96px}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"] .fc-search-trigger{position:relative!important;inset:auto!important;transform:none!important;width:44px;min-width:44px;min-height:44px;padding:0!important}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"] .hamburger{box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;margin:0!important}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"].timeline-header-wrap{flex-wrap:wrap!important;row-gap:8px!important}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"].timeline-header-wrap .nav-logo{flex-basis:100%;width:auto}
 body.fc-timeline-experience .nav[data-focuschrist-header="standard"].timeline-header-wrap .hamburger-wrap{margin-left:auto}
}

body.fc-timeline-experience .timeline-map-attribution{float:none;clear:both;position:static;box-sizing:border-box;flex:0 0 auto;margin:0!important;padding:6px 8px;width:100%;max-width:100%;font-size:1em;line-height:1.35;white-space:normal;overflow-wrap:anywhere;background:var(--fc-bg-deep,#10252d);color:var(--fc-cream,#f5efdf)}
body.fc-timeline-experience .timeline-map-attribution a{color:var(--fc-gold,#f0c36a)}
.life-internal-view .timeline-map-attribution{display:none}

/* Count/unit badges grow with user text while retaining their geographic anchor. */
body.fc-timeline-experience .history-map-pin,
body.fc-timeline-experience .handcart-cluster{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:max-content;height:auto;min-width:44px;min-height:44px;padding:4px 8px;border-radius:999px;white-space:nowrap}
body.fc-timeline-experience .handcart-cluster{line-height:1.2}
body.fc-timeline-experience .history-map-pin{min-width:58px}
body.fc-timeline-experience .history-map-pin small,
body.fc-timeline-experience .handcart-cluster small{white-space:nowrap}

/* Full journey numbers stay on one line at enlarged text sizes. */
body.fc-timeline-experience .leaflet-marker-icon .pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:max-content;height:auto;min-width:30px;min-height:30px;padding:3px;border-radius:50%;white-space:nowrap;overflow-wrap:normal;line-height:1.2}
body.fc-timeline-experience .handcart-pin-icon .pin{min-width:44px;min-height:44px}
body.fc-timeline-experience .handcart-pin-icon .pin > *{transform:none;white-space:nowrap}

body.fc-timeline-experience .life-cluster-icon .handcart-cluster{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#8d601e;color:#fff;border:2px solid #fff6dd;font:700 16px/1.2 "Segoe UI",sans-serif;box-shadow:0 2px 7px #17333d88}
body.fc-timeline-experience .life-cluster-icon .handcart-cluster small{font:600 9px/1.2 "Segoe UI",sans-serif}
body.fc-timeline-experience .life-cluster-icon.is-selected .handcart-cluster,
body.fc-timeline-experience .life-cluster-icon .handcart-cluster.is-selected{border-color:#f0c36a;box-shadow:0 0 0 3px rgba(240,195,106,.4),0 2px 7px #17333d88}
