/* Bangkok, in water — a city model with the instruments of a survey desk. */
html:has(.wc-page) { scroll-snap-type:none; overflow:hidden; }
body.ww.wc-page {
    --wc-ground:#f3f1ea;
    --wc-surface:#f8f6ef;
    --wc-ink:#172b2d;
    --wc-soft:#5a6866;
    --wc-aqua:#295ddb;
    --wc-water:#e6eafa;
    --wc-line:#172b2d30;
    --wc-veil:rgba(243,241,234,.94);
    --wc-hover:#172b2d09;
    --wc-edge:28px;
    --wc-footer-h:35px;
    --wc-ribbon-h:160px;
    margin:0; padding:0; height:100dvh; min-height:0; overflow:hidden;
    background:var(--wc-ground); color:var(--wc-ink); font-size:17px;
    font-variant-numeric:tabular-nums;
}
.wc-page button,.wc-page input,.wc-page select { font:inherit; }
.wc-page button,.wc-page a { -webkit-tap-highlight-color:transparent; }
.wc-page button { cursor:pointer; }
.wc-page button:disabled { cursor:wait; opacity:.45; }
.wc-page [hidden] { display:none!important; }
.wc-page :focus-visible { outline:2px solid var(--wc-aqua); outline-offset:4px; }
.wc-page button,.wc-page select,.wc-page input { border-radius:2px; }
.wc-page button { transition:background .18s,color .18s,border-color .18s,transform .18s; }
.wc-page button:active:not(:disabled) { transform:translateY(1px); }
.wc-page .skip { border-radius:2px; background:var(--wc-aqua); }

/* A single uninterrupted viewport. The canvas remains draggable between tools. */
.wc-workspace,.wc-world { position:fixed; inset:0; width:100%; height:100dvh; min-height:0; }
.wc-workspace { overflow:hidden; }
.wc-world { isolation:isolate; background:var(--wc-ground); }
.wc-world:before {
    content:''; position:absolute; z-index:1; top:0; left:0; width:min(560px,48vw); height:470px;
    background:radial-gradient(ellipse at 0 0,var(--wc-ground) 14%,var(--wc-veil) 40%,transparent 73%);
    pointer-events:none;
}
.wc-stage { position:absolute; inset:0; overflow:hidden; }
.wc-stage canvas { display:block; width:100%; height:100%; touch-action:none; outline-offset:-4px!important; }

/* The masthead and utility line behave like the margin of a city atlas. */
.wc-page .wc-header {
    position:fixed; z-index:5; top:20px; left:var(--wc-edge); right:var(--wc-edge);
    display:flex; align-items:flex-start; justify-content:space-between; gap:24px;
    height:auto; padding:0; border:0; pointer-events:none;
}
.wc-brand {
    display:inline-flex; align-items:center; gap:9px; width:fit-content; pointer-events:auto;
    text-decoration:none; color:var(--wc-ink)!important; font-size:19px; line-height:1.05;
}
.wc-brand img { width:27px; height:27px; }
.wc-brand b { font-weight:700; }
.wc-brand small { display:block; margin-top:6px; color:var(--wc-soft); font-size:8px; letter-spacing:.14em; }
.wc-header-end { display:flex; align-items:center; gap:22px; pointer-events:auto; background:var(--wc-veil); padding:0 10px; }
.wc-feed { display:flex; align-items:center; gap:7px; color:var(--wc-soft); font-size:12px; white-space:nowrap; }
.wc-feed>i { display:block; width:5px; height:5px; background:var(--ok); }
.wc-feed.is-stale>i { background:var(--warn); }
.wc-browse-toggle,.wc-back {
    display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px;
    border:0; border-bottom:1px solid var(--wc-ink); background:none;
    color:var(--wc-ink)!important; text-decoration:none; padding:5px 0; font-size:14px;
}
.wc-browse-toggle:hover,.wc-back:hover { color:var(--wc-aqua)!important; border-color:var(--wc-aqua); }
.wc-back { border-bottom:0; color:var(--wc-soft)!important; background:none; }
.wc-back i { font-size:17px; }
.wc-intro {
    position:absolute; z-index:3; top:108px; left:var(--wc-edge); width:350px;
    pointer-events:none; transform-origin:top left; transition:transform .6s var(--ease),opacity .5s;
}
.wc-eyebrow { color:var(--wc-soft); font-size:10px; line-height:1.5; letter-spacing:.12em; }
.wc-intro .wc-eyebrow { margin-bottom:17px; }
.wc-intro h1 {
    margin:0; font-size:clamp(62px,5.8vw,94px); line-height:1.03; letter-spacing:-.055em;
    font-weight:400; color:var(--wc-ink); text-wrap:nowrap;
}
.wc-intro h1 em { display:block; font-style:normal; color:var(--wc-aqua); padding-bottom:.04em; }
.wc-intro h1:after { content:''; display:block; width:47px; height:2px; background:var(--wc-aqua); margin-top:22px; }
.wc-intro-copy { max-width:270px; margin-top:13px!important; color:var(--wc-soft); font-size:14px; line-height:1.6; }
.wc-statbar { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 19px; margin-top:17px; pointer-events:none; transition:opacity .35s; }
.wc-stat { display:flex; align-items:baseline; gap:5px; color:var(--wc-soft); white-space:nowrap; }
.wc-stat strong { font-size:18px; line-height:1; font-weight:400; color:var(--wc-ink); }
.wc-stat span { font-size:11px; }
.wc-stat strong.wc-critical { color:var(--crit); }
.wc-stat strong.wc-warning { color:var(--warn); }
.wc-page.is-exploring .wc-intro { transform:translateY(-15px) scale(.66); opacity:.85; }
.wc-page.is-exploring .wc-intro-copy { display:none; }
.wc-page.is-exploring .wc-statbar { opacity:0; visibility:hidden; }

/* Two measurement modes, intentionally closer to a switch than a navigation card. */
.wc-modes {
    position:absolute; z-index:4; top:96px; right:var(--wc-edge);
    display:flex; width:fit-content; gap:0; padding:0; background:var(--wc-veil);
    border-top:1px solid var(--wc-line); border-bottom:1px solid var(--wc-line); border-radius:0;
}
.wc-modes button {
    position:relative; display:flex; align-items:center; gap:9px; min-height:50px; padding:10px 19px;
    border:0; border-radius:0; background:none; color:var(--wc-soft); font-size:17px; white-space:nowrap;
}
.wc-modes button+button { border-left:1px solid var(--wc-line); }
.wc-modes button span { margin-right:2px; font-size:10px; align-self:flex-start; padding-top:2px; opacity:.55; }
.wc-modes button:after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:var(--wc-aqua); transform:scaleX(0); transform-origin:left; transition:transform .25s var(--ease); }
.wc-modes button.is-active { color:var(--wc-aqua); }
.wc-modes button.is-active:after { transform:scaleX(1); }
.wc-modes button:hover { background:var(--wc-hover); }

/* Camera tools sit just above the ruler of live measurements. */
.wc-world-bottom {
    position:absolute; z-index:4; left:var(--wc-edge); right:var(--wc-edge);
    bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 19px);
    display:grid; grid-template-columns:max-content 1fr max-content; align-items:end; gap:6px 20px; pointer-events:none;
}
.wc-world-tools { grid-column:1; grid-row:1; display:flex; align-items:center; width:fit-content; gap:0; pointer-events:auto; background:var(--wc-veil); border:1px solid var(--wc-line); }
.wc-world-tools button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:8px 13px; border:0; border-radius:0; background:none; color:var(--wc-ink); font-size:13px; white-space:nowrap; }
.wc-world-tools button+button { border-left:1px solid var(--wc-line); }
.wc-world-tools button:hover { color:var(--wc-aqua); background:var(--wc-hover); }
.wc-world-tools #wcMotion { width:42px; padding:0; }
.wc-world-tools #wcMotion span { display:none; }
.wc-world-tools #wcMotion[aria-pressed="false"] { color:var(--wc-aqua); }
.wc-drag-hint { position:absolute; bottom:calc(100% + 7px); left:0; font-size:11px; color:var(--wc-soft); }
.wc-drag-hint i { margin-right:5px; }
.wc-explore { grid-column:3; grid-row:1; display:flex; justify-content:center; align-items:center; gap:14px; min-height:44px; padding:8px 15px; border:1px solid var(--wc-aqua); border-radius:2px; background:var(--wc-aqua); color:#fff; pointer-events:auto; font-size:14px!important; }
.wc-explore span { display:flex; align-items:center; gap:8px; }
.wc-explore:hover { background:color-mix(in srgb,var(--wc-aqua),var(--wc-ink) 15%); }
.wc-explore>i { font-size:15px; }
.wc-legend { grid-column:2; grid-row:1; justify-self:end; align-self:center; display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:7px 15px; padding:5px 8px; color:var(--wc-ink); background:var(--wc-veil); font-size:11px; }
.wc-legend>span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.wc-dot { display:inline-block; width:6px; height:6px; flex-shrink:0; border-radius:50%; background:var(--ok); }
.wc-warn { background:var(--warn); }.wc-crit { background:var(--crit); }.wc-off,.wc-unk { background:var(--off); }
.wc-water-key>i { width:15px; height:2px; background:var(--wc-aqua); }
.wc-map-note { grid-column:1/-1; grid-row:2; justify-self:start; color:var(--wc-soft); background:var(--wc-veil); padding:2px 5px; font-size:10px; line-height:1.4; }
.wc-map-selection { position:absolute; z-index:4; left:var(--wc-edge); top:260px; max-width:min(410px,calc(100% - 56px)); color:var(--wc-ink); font-size:15px; line-height:1.5; padding:9px 12px; border-left:3px solid var(--wc-aqua); background:var(--wc-veil); pointer-events:none; }

/* A continuous measurement ribbon: identity / reading / section / history. */
.wc-detail {
    position:absolute; z-index:4; left:var(--wc-edge); right:var(--wc-edge); bottom:var(--wc-footer-h);
    display:grid; grid-template-columns:minmax(200px,1.35fr) minmax(210px,1.1fr) minmax(210px,1fr) minmax(185px,1fr);
    align-items:center; min-height:var(--wc-ribbon-h); padding:17px 0 13px;
    border-top:2px solid var(--wc-ink); background:var(--wc-veil); backdrop-filter:blur(16px);
}
.wc-detail>div { min-width:0; padding:0 22px; }
.wc-detail>div:first-child { padding-left:18px; }
.wc-detail>div+div { border-left:1px solid var(--wc-line); }
.wc-detail>div:last-child { padding-right:18px; }
.wc-detail-top { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-bottom:8px; }
.wc-detail-top .wc-eyebrow { font-size:9px; letter-spacing:.1em; }
.wc-state { display:inline-flex; align-items:center; gap:5px; color:var(--wc-soft); font-size:11px; line-height:1.4; white-space:nowrap; }
.wc-state:before { content:''; width:5px; height:5px; display:block; background:var(--ok); }
.wc-state[data-level="crit"] { color:var(--crit); }.wc-state[data-level="crit"]:before { background:var(--crit); }
.wc-state[data-level="warn"] { color:var(--warn); }.wc-state[data-level="warn"]:before { background:var(--warn); }
.wc-state[data-level="off"]:before,.wc-state[data-level="unk"]:before { background:var(--off); }
.wc-detail h2 { color:var(--wc-ink); font-size:23px; line-height:1.25; font-weight:400; letter-spacing:-.015em; text-wrap:pretty; }
.wc-station-meta { color:var(--wc-soft); font-size:12px; line-height:1.4; margin-top:7px!important; }
.wc-insight { color:var(--wc-ink); font-size:17px; line-height:1.4; }
.wc-reading { display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px; margin-top:5px; }
.wc-reading>span:first-child { color:var(--wc-aqua); font-size:48px; line-height:1.05; letter-spacing:-.045em; white-space:nowrap; }
.wc-reading>div { display:flex; flex-direction:column; padding-top:3px; }
.wc-reading b { color:var(--wc-ink); font-size:13px; font-weight:400; }
.wc-reading small { color:var(--wc-soft); font-size:10px; line-height:1.3; }
.wc-reading .wc-trend { width:100%; color:var(--wc-soft); font-size:11px; line-height:1.35; }
.wc-trend.is-up { color:var(--rise); }.wc-trend.is-down { color:var(--fall); }
.wc-page[data-mode="flow"] .wc-reading>span:first-child { font-size:42px; }
.wc-diagram { margin:0 -8px; }
.wc-diagram>svg { display:block; width:100%; height:auto; max-height:123px; margin:0; overflow:visible; --wc-water:var(--wc-aqua); }
.wc-section-note { display:none; }
.wc-spark-head { display:flex; justify-content:space-between; gap:8px; color:var(--wc-soft); font-size:11px; line-height:1.4; }
.wc-spark-head small { font-size:10px; }
.wc-spark { height:35px; margin:8px 0 9px; }
.wc-spark svg { display:block; width:100%; height:100%; margin:0; --wc-water:var(--wc-aqua); }
.wc-station-foot { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; color:var(--wc-soft); font-size:10px; line-height:1.5; }
.wc-station-foot a { flex-shrink:0; color:var(--wc-soft); text-decoration:none; }
.wc-station-foot a:hover { color:var(--wc-aqua); text-decoration:underline; text-underline-offset:3px; }

/* Labels follow the map's drawing language, not a collection of floating cards. */
.wc-scene-label {
    position:absolute; z-index:2; max-width:200px; padding:3px 6px;
    border:0; border-radius:2px; background:var(--wc-veil); color:var(--wc-ink);
    font:12px/1.4 var(--font); white-space:nowrap; pointer-events:none;
    overflow:hidden; text-overflow:ellipsis;
}
.wc-scene-label.is-district { padding:2px 4px; background:color-mix(in srgb,var(--wc-ground),transparent 14%); font-size:11px; color:var(--wc-soft); }
.wc-scene-label.is-landmark { border-left:2px solid var(--wc-ink); font-size:11px; padding-left:5px; }
.wc-scene-label.is-waterway { color:var(--wc-aqua); border-bottom:1px solid color-mix(in srgb,var(--wc-aqua),transparent 45%); }
.wc-scene-label.is-river { font-size:13px; }
.wc-scene-label.is-selected { color:#fff; background:var(--wc-aqua); font-size:13px; padding:5px 8px; }

/* Search is a temporary drawer, leaving the city intact at rest. */
.wc-drawer-backdrop { position:fixed; z-index:7; inset:0; background:#07101852; backdrop-filter:blur(2px); animation:wc-fade .22s both; }
.wc-drawer {
    position:fixed; z-index:8; top:20px; right:var(--wc-edge); bottom:calc(var(--wc-footer-h) + 16px);
    display:flex; flex-direction:column; width:min(470px,calc(100vw - 56px)); min-height:0; padding:27px 28px 0;
    background:var(--wc-surface); color:var(--wc-ink); border-top:3px solid var(--wc-aqua); border-radius:2px;
    box-shadow:-12px 0 50px #08181720; animation:wc-drawer-in .38s var(--ease-out) both;
}
.wc-browse-heading { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.wc-browse-heading>div { flex:1; }
.wc-browse-heading h2 { font-size:27px; font-weight:400; line-height:1.3; color:var(--wc-ink); }
.wc-browse-heading>span { color:var(--wc-soft); font-size:12px; margin-left:auto; }
.wc-drawer-close { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border:0; background:none; color:var(--wc-ink); font-size:20px!important; margin:-8px -9px -8px 3px; }
.wc-drawer-close:hover { background:var(--wc-hover); }
.wc-drawer-intro { color:var(--wc-soft); font-size:14px; line-height:1.5; margin-bottom:21px!important; }
.wc-drawer-intro>span { display:inline-block; margin-left:8px; padding-left:8px; border-left:1px solid var(--wc-line); font-size:11px; }
.wc-canal-picker { display:flex; align-items:center; gap:10px; width:100%; color:var(--wc-aqua); border-bottom:1px solid var(--wc-line); padding:0 1px; margin-bottom:15px; }
.wc-canal-picker select { width:100%; min-width:0; min-height:44px; padding:8px 18px 8px 0; border:0; background:transparent; color:var(--wc-ink); font-size:16px; cursor:pointer; }
.wc-canal-picker option { background:var(--wc-surface); color:var(--wc-ink); }
.wc-canal-picker:focus-within { border-color:var(--wc-aqua); }
.wc-search { display:flex; align-items:center; gap:11px; padding:9px 12px; border:1px solid var(--wc-line); border-radius:2px; color:var(--wc-soft); }
.wc-search input { width:100%; min-width:0; padding:0; border:0; outline:0!important; background:none; color:var(--wc-ink); font-size:17px; line-height:1.5; min-height:27px; }
.wc-search:focus-within { border-color:var(--wc-aqua); outline:1px solid var(--wc-aqua); }
.wc-search input::placeholder { color:var(--wc-soft); opacity:.85; }
.wc-filters { display:flex; flex-shrink:0; gap:15px; padding:10px 0 0; margin-bottom:4px; border-bottom:1px solid var(--wc-line); }
.wc-filters button { min-height:44px; padding:4px 0; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--wc-soft); font-size:13px; white-space:nowrap; }
.wc-filters button.is-active { color:var(--wc-aqua); border-bottom-color:var(--wc-aqua); }
.wc-filters button:hover { color:var(--wc-ink); }
.wc-station-list { min-height:0; overflow:auto; overscroll-behavior:contain; margin:0 -10px; padding:0 10px 20px; scrollbar-width:thin; scrollbar-color:var(--wc-line) transparent; }
.wc-station-row { display:flex; align-items:center; gap:11px; width:100%; min-height:65px; padding:12px 0; border:0; border-bottom:1px solid var(--wc-line); border-radius:0!important; background:none; color:var(--wc-ink); text-align:left; }
.wc-station-row>span { flex:1; min-width:0; }
.wc-station-row strong { display:block; font-size:17px; line-height:1.35; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wc-station-row small { display:block; margin-top:3px; color:var(--wc-soft); font-size:11px; line-height:1.35; }
.wc-station-row>b { font-size:21px; font-weight:400; white-space:nowrap; }
.wc-station-row:hover { background:var(--wc-hover); }
.wc-station-row.is-selected { color:var(--wc-aqua); }
.wc-empty { color:var(--wc-soft); font-size:15px; padding:24px 0; }

/* Attribution and the explanatory note remain reachable without competing with data. */
.wc-footer { position:fixed; z-index:5; bottom:0; left:var(--wc-edge); right:var(--wc-edge); height:var(--wc-footer-h); display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--wc-soft); font-size:10px; background:var(--wc-ground); }
.wc-footer>p { display:flex; align-items:center; flex-wrap:wrap; gap:0; }
.wc-footer-divider { margin:0 9px; }
.wc-map-credit { color:var(--wc-soft)!important; white-space:nowrap; text-decoration:none; }
.wc-map-credit:hover { color:var(--wc-aqua)!important; text-decoration:underline; }
.wc-footer details { position:relative; }
.wc-footer summary { min-height:35px; display:flex; align-items:center; gap:6px; cursor:pointer; list-style:none; white-space:nowrap; }
.wc-footer summary::-webkit-details-marker { display:none; }
.wc-explainer { position:absolute; right:0; bottom:calc(var(--wc-footer-h) + 4px); width:min(520px,calc(100vw - 56px)); max-height:calc(100dvh - 90px); overflow:auto; padding:23px 26px; border-top:2px solid var(--wc-ink); background:var(--wc-surface); box-shadow:0 -8px 30px #09182420; color:var(--wc-ink); font-size:14px; line-height:1.7; }
.wc-explainer h2 { font-size:24px; font-weight:400; margin-bottom:12px; color:var(--wc-ink); }
.wc-explainer p+p { margin-top:13px; }
.wc-explainer a { color:var(--wc-aqua); }
.wc-loading { position:absolute; z-index:3; top:44%; left:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:19px; color:var(--wc-soft); pointer-events:none; font-size:14px; }
.wc-loader-water { display:block; width:110px; height:3px; overflow:hidden; background:var(--wc-line); }
.wc-loader-water:after { content:''; display:block; width:40%; height:100%; background:var(--wc-aqua); animation:wc-loading 1.7s var(--ease) infinite; }
.wc-scene-error { position:absolute; z-index:4; top:45%; left:50%; transform:translate(-50%,-50%); width:min(350px,calc(100% - 36px)); padding:24px; background:var(--wc-surface); border-top:3px solid var(--wc-aqua); text-align:center; }
.wc-scene-error>i { display:block; font-size:29px; margin-bottom:12px; }.wc-scene-error p { margin:10px 0; font-size:14px; }.wc-scene-error a { color:var(--wc-aqua); }
.wc-announcement { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.wc-noscript { position:fixed; z-index:10; top:30%; left:10%; right:10%; padding:30px; background:var(--wc-surface); border-top:3px solid var(--wc-aqua); }

.wc-current { animation:wc-current 2s linear infinite; }
.wc-water-wave { animation:wc-ripple 4s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
.wc-diagram-still .wc-current { animation:none; }
.wc-page[data-motion="off"] :is(.wc-current,.wc-water-wave),.wc-page[data-hidden="true"] :is(.wc-current,.wc-water-wave) { animation-play-state:paused!important; }
.wc-page[data-motion="off"] :is(.wc-drawer,.wc-drawer-backdrop),.wc-page[data-hidden="true"] :is(.wc-drawer,.wc-drawer-backdrop) { animation:none; opacity:1; transform:none; }
.wc-page[data-motion="off"] .wc-loader-water:after,.wc-page[data-hidden="true"] .wc-loader-water:after { animation:none; transform:none; }
@keyframes wc-current { to { stroke-dashoffset:-58; } }
@keyframes wc-ripple { 50% { opacity:.4; transform:translateX(8px); } }
@keyframes wc-loading { from { transform:translateX(-100%); } to { transform:translateX(350%); } }
@keyframes wc-fade { from { opacity:0; } to { opacity:1; } }
@keyframes wc-drawer-in { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

@media (prefers-color-scheme:dark) {
    body.ww.wc-page { --wc-ground:#0d161c; --wc-surface:#172027; --wc-ink:#eeede5; --wc-soft:#9aa7ab; --wc-aqua:#82a7ff; --wc-water:#202e4a; --wc-line:#eeede530; --wc-veil:rgba(13,22,28,.93); --wc-hover:#eeede509; }
    .wc-explore,.wc-scene-label.is-selected { color:#101d37; }
}
@media (min-width:1600px) {
    body.ww.wc-page { --wc-edge:40px; --wc-ribbon-h:180px; }
    .wc-intro { top:125px; }.wc-statbar { top:430px; }
    .wc-detail>div { padding:0 34px; }.wc-detail h2 { font-size:27px; }.wc-reading>span:first-child { font-size:58px; }.wc-insight { font-size:20px; }.wc-diagram>svg { max-height:145px; }
}
@media (max-width:1150px) and (min-width:761px) {
    body.ww.wc-page { --wc-edge:24px; --wc-ribbon-h:156px; }
    .wc-header-end { gap:17px; }.wc-feed { display:none; }
    .wc-intro { width:290px; top:107px; }.wc-intro h1 { font-size:66px; }.wc-statbar { top:358px; }
    .wc-detail { grid-template-columns:minmax(190px,1.2fr) minmax(185px,1fr) minmax(190px,1fr); }
    .wc-detail>div { padding:0 17px; }.wc-detail-visual { display:none; }.wc-detail h2 { font-size:22px; }.wc-reading>span:first-child { font-size:45px; }
    .wc-world-bottom { gap:6px 13px; }.wc-legend { gap:5px 10px; max-width:280px; }.wc-explore { padding:8px 11px; }
    .wc-drag-hint { display:none; }
}
@media (max-width:760px) {
    body.ww.wc-page { --wc-edge:16px; --wc-footer-h:31px; --wc-ribbon-h:203px; font-size:16px; }
    .wc-page .wc-header { top:max(15px,env(safe-area-inset-top)); gap:15px; }
    .wc-brand { font-size:16px; gap:7px; }.wc-brand img { width:24px; height:24px; }.wc-brand small { font-size:6px; margin-top:5px; letter-spacing:.1em; }
    .wc-header-end { gap:14px; padding:0 7px; }.wc-feed { display:none; }.wc-browse-toggle { min-height:44px; padding:0 0 2px; font-size:13px; gap:6px; }.wc-back { min-height:44px; }.wc-back span { display:none; }.wc-back i { font-size:16px; }
    .wc-world:before { width:100%; height:270px; background:linear-gradient(180deg,var(--wc-ground) 0,var(--wc-veil) 18%,transparent 100%); }
    .wc-intro { top:83px; width:210px; }.wc-intro .wc-eyebrow { font-size:8px; margin-bottom:12px; letter-spacing:.07em; }.wc-intro h1 { font-size:45px; line-height:1.05; letter-spacing:-.04em; }.wc-intro h1:after { margin-top:12px; width:29px; height:1px; }.wc-intro-copy { max-width:195px; margin-top:9px!important; font-size:12px; line-height:1.5; }
    .wc-page.is-exploring .wc-intro { transform:translateY(-4px) scale(.76); }
    .wc-statbar { gap:6px 10px; margin-top:12px; }.wc-stat strong { font-size:14px; }.wc-stat span { font-size:10px; }
    .wc-modes { top:80px; right:16px; display:flex; flex-direction:column; width:126px; border-top:1px solid var(--wc-line); }
    .wc-modes button { min-height:44px; padding:8px 10px; font-size:14px; gap:7px; }.wc-modes button+button { border-left:0; border-top:1px solid var(--wc-line); }.wc-modes button span { display:none; }.wc-modes button:after { top:0; bottom:0; left:0; right:auto; height:auto; width:2px; transform:scaleY(0); transform-origin:top; }.wc-modes button.is-active:after { transform:scaleY(1); }
    .wc-world-bottom { bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 12px); grid-template-columns:1fr max-content; gap:5px 10px; }
    .wc-world-tools { grid-column:1; grid-row:1; }.wc-world-tools button { min-height:44px; padding:7px 9px; gap:5px; font-size:12px; }.wc-world-tools #wcMotion { width:44px; }.wc-drag-hint { display:none; }
    .wc-explore { grid-column:2; grid-row:1; min-height:44px; padding:7px 10px; font-size:12px!important; gap:5px; }.wc-explore span { gap:5px; }.wc-explore>i { display:none; }
    .wc-legend { grid-column:1/-1; grid-row:2; justify-self:start; justify-content:flex-start; gap:5px 12px; padding:3px 5px; font-size:9px; }.wc-dot { width:5px; height:5px; }.wc-map-note { display:none; }
    .wc-map-selection { top:227px; left:16px; max-width:calc(100% - 32px); font-size:12px; padding:7px 10px; }
    .wc-detail { grid-template-columns:minmax(0,1.13fr) minmax(0,1fr); grid-template-rows:auto auto; align-content:center; align-items:start; column-gap:0; row-gap:11px; padding:12px 0 10px; }
    .wc-detail>div { padding:0 12px; }.wc-detail>div:first-child { padding-left:12px; }.wc-detail>div:last-child { padding-left:12px; padding-right:12px; }.wc-detail>div+div { border-left:0; }
    .wc-detail-identity { grid-column:1; grid-row:1; }.wc-detail-reading { grid-column:2; grid-row:1; border-left:1px solid var(--wc-line)!important; }
    .wc-detail-top { gap:6px; margin-bottom:7px; }.wc-detail-top .wc-eyebrow { display:none; }.wc-state { font-size:10px; }
    .wc-detail h2 { font-size:20px; line-height:1.25; }.wc-station-meta { font-size:10px; margin-top:5px!important; }
    .wc-insight { font-size:13px; line-height:1.4; }.wc-reading { margin-top:4px; gap:2px 6px; }.wc-reading>span:first-child { font-size:39px; }.wc-reading>div { padding-top:3px; }.wc-reading b { font-size:10px; }.wc-reading small { display:none; }.wc-reading .wc-trend { font-size:10px; }
    .wc-page[data-mode="flow"] .wc-reading>span:first-child { font-size:34px; }
    .wc-detail-visual { display:none; }
    .wc-detail-history { grid-column:1/-1; grid-row:2; display:flex; align-items:end; gap:16px; }
    .wc-spark-wrap { flex:1; min-width:0; }.wc-spark-head { font-size:9px; }.wc-spark-head small { font-size:9px; }.wc-spark { height:21px; margin:4px 0 0; }
    .wc-station-foot { flex:0 0 46%; flex-direction:column; align-items:flex-end; gap:1px; text-align:right; font-size:11px; line-height:1.5; }
    .wc-scene-label { max-width:165px; font-size:10px; padding:2px 4px; }.wc-scene-label.is-selected { font-size:11px; padding:4px 6px; }.wc-scene-label.is-river { font-size:11px; }.wc-scene-label.is-district,.wc-scene-label.is-landmark { font-size:10px; }
    .wc-footer { font-size:8px; gap:8px; }.wc-footer-divider { margin:0 4px; }.wc-footer>p>span:not(#wcFreshness):not(.wc-footer-divider) { display:none; }.wc-footer>p>.wc-footer-divider { display:none; }.wc-footer>p { gap:7px; }.wc-footer summary { min-height:31px; gap:4px; }.wc-footer summary i { font-size:10px; }
    .wc-explainer { width:calc(100vw - 32px); padding:20px; font-size:13px; }.wc-explainer h2 { font-size:22px; }
    .wc-drawer { top:auto; bottom:0; left:0; right:0; width:100%; height:min(78dvh,680px); padding:20px 20px env(safe-area-inset-bottom); border-radius:3px 3px 0 0; }
    .wc-drawer:before { content:''; display:block; position:absolute; width:32px; height:2px; background:var(--wc-line); top:7px; left:calc(50% - 16px); }
    .wc-browse-heading h2 { font-size:25px; }.wc-drawer-intro { font-size:12px; margin-bottom:13px!important; }.wc-canal-picker { margin-bottom:12px; }.wc-canal-picker select { font-size:16px; }.wc-filters { gap:16px; }.wc-filters button { font-size:12px; }.wc-station-row strong { font-size:16px; }.wc-station-row>b { font-size:19px; }
    .wc-loading { top:43%; width:210px; font-size:12px; }
}
@media (max-width:370px) {
    body.ww.wc-page { --wc-edge:12px; --wc-ribbon-h:204px; }
    .wc-header-end { gap:10px; }.wc-brand small { display:none; }.wc-brand { font-size:15px; }.wc-intro { width:175px; }.wc-intro h1 { font-size:39px; }.wc-intro .wc-eyebrow { font-size:7px; }.wc-intro-copy { max-width:165px; }.wc-modes { right:12px; width:114px; }.wc-modes button { font-size:13px; padding-left:8px; }
    .wc-world-tools button { padding:7px 7px; font-size:11px; }.wc-world-tools button i { display:none; }.wc-world-tools #wcMotion i { display:block; }.wc-world-tools #wcMotion { width:44px; }.wc-explore { font-size:11px!important; padding:7px 8px; }
    .wc-detail h2 { font-size:18px; }.wc-detail>div { padding-left:9px; padding-right:9px; }.wc-reading>span:first-child { font-size:35px; }.wc-page[data-mode="flow"] .wc-reading>span:first-child { font-size:30px; }.wc-insight { font-size:12px; }.wc-footer { font-size:7px; }.wc-legend { gap:4px 9px; }
}
@media (max-height:650px) and (min-width:761px) {
    body.ww.wc-page { --wc-ribbon-h:135px; }
    .wc-page .wc-header { top:12px; }.wc-intro { top:80px; transform:scale(.78); }.wc-page.is-exploring .wc-intro { transform:translateY(-10px) scale(.55); }.wc-modes { top:73px; }.wc-statbar { display:none; }
    .wc-detail { padding:11px 0; }.wc-detail h2 { font-size:21px; }.wc-reading>span:first-child { font-size:40px; }.wc-insight { font-size:15px; }.wc-diagram>svg { max-height:105px; }.wc-world-bottom { bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 12px); }
}
@media (max-height:650px) and (max-width:760px) {
    body.ww.wc-page { --wc-ribbon-h:152px; }
    .wc-intro { top:69px; transform:scale(.8); }.wc-page.is-exploring .wc-intro { transform:translateY(-5px) scale(.64); }.wc-modes { top:69px; }.wc-statbar { display:none; }
    .wc-detail { padding:9px 0; row-gap:7px; }.wc-detail h2 { font-size:17px; }.wc-reading>span:first-child { font-size:32px; }.wc-insight { font-size:12px; }.wc-station-meta { margin-top:3px!important; }.wc-spark { height:14px; }.wc-legend { display:none; }
    .wc-map-selection { top:180px; }.wc-scene-error { top:38%; }
}
@media (prefers-reduced-motion:reduce) {
    .wc-page *, .wc-page *:before,.wc-page *:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Keep the frame and its content clear of both device edges and internal rules. */
body.ww.wc-page {
    --wc-left:max(var(--wc-edge),env(safe-area-inset-left));
    --wc-right:max(var(--wc-edge),env(safe-area-inset-right));
    --wc-footer-h:calc(44px + env(safe-area-inset-bottom));
}
.wc-page .wc-header,.wc-world-bottom,.wc-detail,.wc-footer { left:var(--wc-left); right:var(--wc-right); }
.wc-page .wc-header { top:max(20px,calc(env(safe-area-inset-top) + 10px)); }
.wc-brand { min-height:44px; }
.wc-header-end { padding:4px 12px; }
.wc-browse-toggle,.wc-back { min-height:44px; }
.wc-back { min-width:44px; }
.wc-intro,.wc-map-selection { left:var(--wc-left); }
.wc-modes { right:var(--wc-right); }
.wc-detail { padding-top:19px; padding-bottom:17px; }
.wc-detail>div { padding-left:24px; padding-right:24px; }
.wc-detail>div:first-child { padding-left:24px; }
.wc-detail>div:last-child { padding-right:24px; }
.wc-world-tools :is(#wcMotion,#wcReplayIntro) { width:44px; flex-shrink:0; padding:0; }
.wc-world-tools :is(#wcMotion,#wcReplayIntro) span { display:none; }
.wc-world-tools #wcReplayIntro i { display:block; }
.wc-legend { padding:7px 10px; }
.wc-map-note { padding:4px 8px; }
.wc-footer { padding:0 4px env(safe-area-inset-bottom); }
.wc-footer summary { min-height:44px; padding:0 4px; }
.wc-drawer { top:max(20px,calc(env(safe-area-inset-top) + 10px)); right:var(--wc-right); padding:28px 28px 12px; }
.wc-drawer-close { margin:0; flex-shrink:0; }
.wc-browse-heading { align-items:flex-start; }
.wc-canal-picker { padding-left:4px; padding-right:4px; }
.wc-station-row { padding-left:4px; padding-right:4px; }

/* The camera flies in WebGL. These few drawing marks accompany its three phases. */
.wc-page.is-scene-loading :is(.wc-intro,.wc-modes,.wc-world-bottom,.wc-detail) { visibility:hidden; }
.wc-page.is-scene-loading .wc-world:before { opacity:0; }
.wc-flight { position:absolute; inset:0; z-index:6; pointer-events:none; }
.wc-flight-story {
    position:absolute; bottom:calc(var(--wc-footer-h) + 24px); left:var(--wc-left);
    width:min(390px,calc(100vw - var(--wc-left) - var(--wc-right))); padding:20px;
    color:var(--wc-ink); background:var(--wc-veil); border-left:1px solid var(--wc-line);
}
.wc-flight-route { display:block; width:246px; max-width:100%; height:66px; margin:0 0 20px; overflow:visible; color:var(--wc-aqua); }
.wc-flight-bank { fill:none; stroke:var(--wc-line); stroke-width:1; vector-effect:non-scaling-stroke; }
.wc-flight-line { fill:none; stroke:var(--wc-aqua); stroke-width:1.6; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:calc(1 - var(--wc-flight-progress,0)); vector-effect:non-scaling-stroke; }
.wc-flight-dot { fill:var(--wc-ground); stroke:var(--wc-aqua); stroke-width:1.2; vector-effect:non-scaling-stroke; }
.wc-flight-kicker { display:block; margin-bottom:9px!important; font-size:9px; line-height:1.5; letter-spacing:.14em; color:var(--wc-soft); }
#wcFlightCaption { display:block; color:var(--wc-ink); font-size:28px; line-height:1.25; font-weight:400; letter-spacing:-.02em; text-wrap:balance; }
.wc-flight-progress { display:block; position:relative; height:1px; margin-top:19px; background:var(--wc-line); overflow:hidden; }
.wc-flight-progress:after { content:''; position:absolute; inset:0; background:var(--wc-aqua); transform:scaleX(var(--wc-flight-progress,0)); transform-origin:left; }
.wc-flight-actions {
    position:absolute; right:var(--wc-right); bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 84px);
    padding:20px; pointer-events:auto; background:var(--wc-veil);
}
#wcSkipIntro { display:flex; align-items:center; justify-content:center; gap:20px; min-height:44px; padding:8px 15px; border:1px solid var(--wc-aqua); background:none; color:var(--wc-aqua); font-size:15px; }
#wcSkipIntro:hover { background:var(--wc-aqua); color:var(--wc-ground); }
.wc-page.is-intro :is(.wc-detail,.wc-modes,.wc-world-bottom,.wc-map-selection) { visibility:hidden; opacity:0; }
.wc-page.is-intro .wc-world:before { transition:opacity .8s var(--ease); }
.wc-page.is-intro[data-intro-phase="approach"] .wc-world:before { opacity:0; transition:none; }
.wc-page.is-intro .wc-intro { opacity:0; visibility:hidden; transition:none; }
.wc-page.is-intro .wc-flight-story { animation:wc-flight-story-in .8s var(--ease-out) both; }
.wc-page.is-intro[data-intro-phase="river"] .wc-intro { visibility:visible; opacity:1; animation:wc-flight-title-in .9s var(--ease-out) both; }
.wc-page.is-intro[data-intro-phase="reveal"] .wc-intro { visibility:visible; opacity:1; }
.wc-page.is-intro[data-intro-phase="reveal"] .wc-flight-story { visibility:hidden; opacity:0; animation:none; }
.wc-page.is-intro[data-intro-phase="reveal"] :is(.wc-detail,.wc-modes,.wc-world-bottom) { visibility:visible; opacity:1; animation:wc-flight-instruments-in .75s var(--ease-out) both; }
.wc-page.is-intro[data-intro-phase="reveal"] .wc-modes { animation-delay:.08s; }
.wc-page.is-intro[data-intro-phase="reveal"] .wc-world-bottom { animation-delay:.16s; }
@keyframes wc-flight-story-in { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
@keyframes wc-flight-title-in { from { opacity:0; translate:0 18px; } to { opacity:1; translate:0 0; } }
@keyframes wc-flight-instruments-in { from { opacity:0; translate:0 14px; } to { opacity:1; translate:0 0; } }

@media (max-width:1150px) and (min-width:761px) {
    .wc-detail>div { padding-left:20px; padding-right:20px; }
    .wc-detail>div:first-child { padding-left:20px; }.wc-detail>div:last-child { padding-right:20px; }
    .wc-world-bottom { grid-template-columns:max-content 1fr max-content; column-gap:12px; }
    .wc-legend { font-size:10px; gap:5px 9px; }
}
@media (max-width:760px) {
    body.ww.wc-page { --wc-edge:16px; --wc-footer-h:calc(44px + env(safe-area-inset-bottom)); }
    .wc-page .wc-header { top:max(14px,calc(env(safe-area-inset-top) + 8px)); gap:10px; }
    .wc-header-end { padding:3px 8px; gap:8px; }
    .wc-back { width:44px; }
    .wc-detail { padding-top:15px; padding-bottom:14px; }
    .wc-detail>div,.wc-detail>div:first-child,.wc-detail>div:last-child { padding-left:16px; padding-right:16px; }
    .wc-world-tools button { padding-left:8px; padding-right:8px; }
    .wc-world-tools #wcHome { padding-left:9px; padding-right:9px; }
    .wc-world-tools #wcHome i { display:none; }
    .wc-world-bottom { column-gap:8px; }
    .wc-explore { padding-left:8px; padding-right:8px; font-size:11px!important; }
    .wc-legend { padding:5px 7px; }
    .wc-footer { font-size:9px; gap:5px; padding-left:0; padding-right:0; }
    .wc-footer>p { min-width:0; gap:1px 7px; line-height:1.4; }
    .wc-footer summary { min-height:44px; padding-left:4px; padding-right:2px; }
    .wc-explainer { bottom:calc(44px + env(safe-area-inset-bottom)); }
    .wc-drawer { top:auto; left:0; right:0; padding:24px max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); }
    .wc-flight-story { bottom:calc(var(--wc-footer-h) + 16px); width:min(310px,calc(100vw - var(--wc-left) - var(--wc-right))); padding:16px; }
    .wc-flight-route { width:205px; height:51px; margin-bottom:13px; }
    .wc-flight-kicker { font-size:8px; letter-spacing:.095em; margin-bottom:7px!important; }
    #wcFlightCaption { font-size:24px; }
    .wc-flight-progress { margin-top:15px; }
    .wc-flight-actions { bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 85px); padding:16px; }
    #wcSkipIntro { min-height:44px; padding:8px 12px; font-size:14px; gap:14px; }
}
@media (max-width:370px) {
    .wc-brand { font-size:14px; gap:5px; }.wc-brand img { width:22px; height:22px; }
    .wc-header-end { gap:4px; padding-left:6px; padding-right:4px; }
    .wc-browse-toggle { font-size:12px; gap:5px; }.wc-back { width:44px; }
    .wc-world-tools button { padding-left:7px; padding-right:7px; }
    .wc-world-tools #wcHome { padding-left:7px; padding-right:7px; }
    .wc-world-tools { grid-column:1/-1; grid-row:1; }
    .wc-explore { grid-column:2; grid-row:2; max-width:110px; font-size:10px!important; line-height:1.3; padding-left:7px; padding-right:7px; }
    .wc-legend { grid-column:1; grid-row:2; align-self:center; max-width:166px; gap:4px 8px; }
    .wc-detail>div,.wc-detail>div:first-child,.wc-detail>div:last-child { padding-left:14px; padding-right:14px; }
    .wc-footer { font-size:9px; }
    .wc-flight-story { padding:16px; }.wc-flight-actions { padding:16px; }
}
@media (max-height:650px) {
    .wc-page .wc-header { top:max(12px,calc(env(safe-area-inset-top) + 6px)); }
    .wc-detail { padding-top:13px; padding-bottom:12px; }
    .wc-flight-story { bottom:calc(var(--wc-footer-h) + 14px); padding:20px; }
    .wc-flight-route { height:43px; margin-bottom:12px; }
    #wcFlightCaption { font-size:24px; }
    .wc-flight-actions { bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 64px); }
}
@media (max-height:740px) and (min-width:761px) {
    .wc-intro { top:88px; }
    .wc-intro .wc-eyebrow { margin-bottom:12px; }
    .wc-intro h1 { font-size:58px; }
    .wc-intro h1:after { margin-top:16px; }
    .wc-intro-copy { margin-top:10px!important; font-size:13px; }
    .wc-statbar { display:none; }
}
@media (max-height:650px) and (max-width:760px) {
    .wc-flight-story { width:250px; padding:16px; }.wc-flight-route { width:180px; height:35px; }
    .wc-flight-actions { bottom:calc(var(--wc-footer-h) + var(--wc-detail-height,var(--wc-ribbon-h)) + 55px); }
    #wcFlightCaption { font-size:21px; }.wc-flight-kicker { font-size:7px; }
}
/* Interface visibility never depends on an animation finishing or on a running clock. */
.wc-page.is-intro[data-motion="off"] :is(.wc-intro,.wc-detail,.wc-modes,.wc-world-bottom),
.wc-page.is-intro[data-hidden="true"] :is(.wc-intro,.wc-detail,.wc-modes,.wc-world-bottom) { animation:none; visibility:visible; opacity:1; translate:none; }
.wc-page.is-intro[data-motion="off"] .wc-flight-story,.wc-page.is-intro[data-hidden="true"] .wc-flight-story { animation:none; }
.wc-page.has-scene-error :is(.wc-world-bottom,.wc-intro,.wc-map-selection) { display:none; }
.wc-page.has-scene-error .wc-world:before { opacity:0; }
.wc-page.has-scene-error .wc-scene-error { top:calc((100% - var(--wc-footer-h) - var(--wc-detail-height,var(--wc-ribbon-h)) + 176px)/2); }
@media (max-width:760px) {
    .wc-page.has-scene-error .wc-scene-error { padding:18px 20px; font-size:15px; }
    .wc-page.has-scene-error .wc-scene-error>i { display:none; }
    .wc-page.has-scene-error .wc-scene-error p { margin:8px 0; font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
    .wc-page.is-intro :is(.wc-intro,.wc-detail,.wc-modes,.wc-world-bottom) { animation:none!important; translate:none; }
    .wc-flight-story,.wc-flight-line,.wc-flight-actions { animation:none!important; transition:none!important; }
}
