/* Chrome for the map: a forecast strip, one summary sheet, a map key and a playback bar.
   Palette: bone surfaces, spruce ink, corn for the selected state, plum for lead figures. */
:root {
  --bone: #f6f2e7; --bone-2: #ece7d8; --ink: #12302b; --ink-2: #3d5550; --ink-3: #526460; --hair: rgba(18, 48, 43, .14);
  --corn: #f2b72e; --corn-ink: #2a2206; --plum: #8a2a66; --teal: #1f7f8c; --ok: #2f9e62; --no: #b9b3a2;
  --warn-bg: #ffe9a6; --warn-ink: #4a3600;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lift: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 30px rgba(8, 28, 24, .28), 0 2px 6px rgba(8, 28, 24, .18);
  --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #16303a; color: var(--ink); font: 14px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
#map { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
#map.drag { cursor: grabbing; }
#gl, #sky, #labels, #wshed, #water, #waterlabels { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--corn); outline-offset: 2px; }

/* ---------- forecast strip ---------- */
.forecast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; max-width: calc(100vw - 28px); }
.days { display: flex; gap: 6px; padding: 6px; background: var(--bone); border-radius: 22px; box-shadow: var(--lift); }
.day { display: grid; grid-template-columns: auto 30px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 96px; padding: 7px 10px 7px 13px; border: 0; border-radius: 16px; background: transparent; text-align: left; transition: background .15s; }
.day:hover { background: var(--bone-2); }
.day .dow { font: 600 15px/1.1 var(--display); letter-spacing: -.01em; }
.day .to { grid-column: 1; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.day .arrow { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--bone-2); color: var(--ink); }
.day .arrow path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.day[aria-pressed="true"] .to { color: rgba(246, 242, 231, .86); }
.day[aria-pressed="true"] .arrow { background: var(--corn); color: var(--corn-ink); }
.times { display: flex; gap: 2px; padding: 4px; background: rgba(18, 48, 43, .96); border-radius: 999px; box-shadow: 0 6px 18px rgba(8, 28, 24, .3); backdrop-filter: blur(8px); }
.times button { display: inline-flex; align-items: center; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: rgba(246, 242, 231, .9); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.times button:hover { background: rgba(246, 242, 231, .12); }
.times button[aria-pressed="true"] { background: var(--corn); color: var(--corn-ink); font-weight: 600; }
.times button:disabled { opacity: .35; cursor: default; }

/* ---------- summary sheet ---------- */
.sheet { position: fixed; top: 14px; left: 14px; width: min(332px, calc(100vw - 28px)); max-height: calc(100vh - 28px - 208px); display: flex; flex-direction: column; background: var(--bone); border-radius: var(--r); box-shadow: var(--lift); z-index: 2; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 12px 8px 18px; }
h1 { font: 700 21px/1.05 var(--display); letter-spacing: -.02em; margin: 0; }
.place { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.fold { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bone-2); display: grid; place-items: center; transition: transform .2s; }
.sheet.folded .fold { transform: rotate(180deg); }
.notice { margin: 0 10px; padding: 7px 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 11px; font-size: 12px; line-height: 1.35; }
.notice a { color: inherit; font-weight: 600; }
.sheet-body { overflow: auto; padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.sheet.folded .sheet-body { display: none; }
body:has(#icons:not([hidden])) .sheet { max-height: calc(100vh - 28px - 266px); } /* the key grows when crop badges are listed */
.when { font: 600 13px/1.2 var(--text); color: var(--ink-3); margin: 0 0 3px; }
.headline { font: 700 26px/1.04 var(--display); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.lede { margin: 7px 0 0; color: var(--ink-2); font-size: 13.5px; }
.headline .nw { white-space: nowrap; } /* a share never sits alone on a line */
.headline .pc { font: 800 1.45em/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.headline .pc.in { color: var(--plum); } .headline .pc.out { color: var(--ink-2); font-weight: 700; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fig { background: var(--bone-2); border-radius: 13px; padding: 9px 11px 8px; }
.fig b { display: block; font: 700 22px/1 var(--display); letter-spacing: -.02em; color: var(--plum); font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.25; color: var(--ink-2); }

.impact h2 { font: 700 16px/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 2px; }
.impact .unit { font-size: 11.5px; color: var(--ink-3); margin: 0 0 6px; }
.impact table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.impact thead th { font-size: 11px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 0 0 4px 8px; white-space: nowrap; }
.impact tbody th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 4px 0; }
.impact td { text-align: right; padding: 4px 0 4px 8px; font-weight: 500; }
.impact tbody tr + tr th, .impact tbody tr + tr td { border-top: 1px solid var(--hair); }
.impact tr.people th, .impact tr.people td { font-weight: 600; color: var(--ink); }
.impact tr.sum th, .impact tr.sum td { font-weight: 600; color: var(--plum); }
.impact[hidden] { display: none; }
.fine { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.impact .fine { margin-top: 8px; }
.credits { font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }
.credits summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.credits p { margin: 6px 0 0; }
.credits a { color: inherit; }

/* ---------- map key ---------- */
.key { position: fixed; left: 14px; bottom: 14px; width: min(332px, calc(100vw - 28px)); background: var(--bone); border-radius: var(--r); box-shadow: var(--lift); padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 9px; z-index: 2; }
.key-row { display: flex; flex-direction: column; gap: 6px; }
#fracs button:first-child { flex: 2.6 1 0; }
.seg { display: flex; flex: 1; background: var(--bone-2); border-radius: 11px; padding: 3px; }
.seg button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 8px; background: transparent; padding: 5px 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(8, 28, 24, .22); }
.scale .bar { display: grid; grid-template-columns: repeat(5, 1fr); height: 12px; border-radius: 6px; overflow: hidden; }
.scale .ticks { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 3px; }
.scale .cap { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.scale .dots { display: inline-flex; gap: 9px; white-space: nowrap; }
.scale .dots span { display: inline-flex; align-items: center; gap: 4px; }
.scale .dots i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.icons { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--ink-2); padding-top: 8px; border-top: 1px solid var(--hair); }
.icons span { display: inline-flex; align-items: center; gap: 4px; }
.icons img { display: block; }
.icons[hidden] { display: none; }

/* ---------- playback ---------- */
.transport { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(620px, calc(100vw - 28px - 2 * 346px)); min-width: 320px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: rgba(18, 48, 43, .92); color: var(--bone); border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: 0 10px 30px rgba(8, 28, 24, .35); backdrop-filter: blur(8px); z-index: 2; }
#play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--corn); color: var(--corn-ink); display: grid; place-items: center; }
#play:hover { background: #ffc94a; }
#scrub { width: 100%; height: 22px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; }
#scrub::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--corn) var(--pos, 100%), rgba(246, 242, 231, .26) var(--pos, 100%)); }
#scrub::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(246, 242, 231, .26); }
#scrub::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--corn); }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--bone); border: 3px solid var(--corn); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
#scrub::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 3px solid var(--corn); }
#clock { font: 600 13px/1.2 var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
#clock small { display: block; font-weight: 400; font-size: 11.5px; color: rgba(246, 242, 231, .82); }
#clock .rate { color: var(--corn); font-weight: 500; }

.zoomctl { position: fixed; right: 14px; top: 14px; display: flex; flex-direction: column; background: var(--bone); border-radius: 14px; box-shadow: var(--lift); overflow: hidden; z-index: 2; }
.zoomctl button { width: 40px; height: 38px; border: 0; background: transparent; font: 600 19px/1 var(--display); display: grid; place-items: center; }
.zoomctl button + button { border-top: 1px solid var(--hair); }
.zoomctl button:hover { background: var(--bone-2); }

#tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--bone); font-size: 12.5px; line-height: 1.4; padding: 9px 12px; border-radius: 13px; max-width: 300px; z-index: 5; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
#tip strong { font-weight: 600; }
#tip hr { border: 0; border-top: 1px solid rgba(246, 242, 231, .2); margin: 7px 0; }
#tip .dim { color: rgba(246, 242, 231, .78); }
#loading { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); background: var(--ink); color: var(--bone); border-radius: 999px; padding: 10px 20px; font: 600 15px var(--display); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); z-index: 4; }
#loading[hidden] { display: none; }

@media (max-width: 1180px) {
  .forecast { left: auto; right: 64px; transform: none; align-items: flex-end; }
  .day { min-width: 0; padding: 6px 8px 6px 10px; } .day .to { display: none; }
  .transport { left: auto; right: 14px; transform: none; width: min(520px, calc(100vw - 28px - 346px)); }
}
/* Phone: the map first. A compact forecast strip at the top that scrolls sideways; at the bottom, the playback bar under
   the thumb, the key above it, and the summary as a bottom sheet that opens folded to its headline. The stack is measured
   in app.js (--key-h), so the panels never overlap; the unofficial-estimate notice stays on the sheet, folded or not. */
@media (max-width: 760px) {
  .forecast { top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; transform: none; align-items: stretch; gap: 6px; max-width: none; }
  .days, .times { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
  .days::-webkit-scrollbar, .times::-webkit-scrollbar { display: none; }
  .days { gap: 4px; padding: 4px 26px 4px 4px; border-radius: 16px; }
  .day { flex: none; min-width: 0; grid-template-columns: auto 26px; grid-template-rows: auto; column-gap: 6px; padding: 5px 6px 5px 10px; border-radius: 12px; scroll-snap-align: start; min-height: 40px; }
  .day .dow { font-size: 14px; white-space: nowrap; } .day .to { display: none; }
  .day .arrow { grid-row: 1; width: 26px; height: 26px; padding: 4px; }
  .times { gap: 2px; padding: 3px 26px 3px 3px; justify-content: flex-start; }
  .times button { flex: none; min-height: 34px; padding: 4px 12px; scroll-snap-align: start; }
  .zoomctl { top: calc(110px + env(safe-area-inset-top)); right: 8px; border-radius: 12px; }
  .zoomctl button { width: 40px; height: 40px; }
  .transport { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); transform: none; width: auto; min-width: 0; gap: 10px; padding: 5px 14px 5px 5px; }
  #play { width: 46px; height: 46px; }
  #scrub { height: 34px; }
  #scrub::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; }
  #clock { font-size: 12.5px; } #clock .ago, #clock .sep { display: none; }
  .key { left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; padding: 7px 10px 8px; gap: 6px; border-radius: 14px; }
  .key .cap .dots, .icons { display: none; }
  .key-row { display: none; }
  body:has(.sheet:not(.folded)) .key-row { display: flex; }
  .seg button { min-height: 32px; }
  .sheet { top: auto; left: 8px; right: 8px; width: auto; bottom: calc(76px + var(--key-h, 52px) + env(safe-area-inset-bottom)); max-height: calc(100vh - 240px - 82px - var(--key-h, 52px) - env(safe-area-inset-top)); border-radius: 16px; }
  .sheet-head { padding: 9px 8px 6px 14px; align-items: center; }
  h1 { font-size: 16px; } .place { display: none; }
  .fold { width: 36px; height: 36px; transform: rotate(180deg); } .sheet.folded .fold { transform: none; }
  .notice { margin: 0 8px; padding: 6px 9px; font-size: 11.5px; }
  .sheet-body { padding: 10px 14px 14px; gap: 12px; }
  .headline { font-size: 19px; line-height: 1.12; }
  .sheet.folded .sheet-body { display: flex; overflow: hidden; padding: 7px 14px 10px; }
  .sheet.folded .sheet-body > :not(#facts), .sheet.folded #facts > :not(.headline) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* sky layer (map/sky.js): its switch sits in the zoom stack; off = struck through */
#skybtn[aria-pressed="false"] { opacity: .45; }

/* ===== Crops 2026, likely outlets and "Into the food supply" (map/foodchain.js) ===== */
.impact-head { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 4px; }
.seg.yr { flex: none; padding: 2px; border-radius: 9px; }
.impact sup { font-size: 11px; line-height: 0; color: var(--ink-3); margin-left: 1px; }
.seg.yr button { padding: 3px 7px; font-size: 11.5px; border-radius: 7px; }
.impact .q { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.impact tr.weak td { color: var(--ink-2); font-weight: 400; }
.impact tr.green th, .impact tr.green td { color: #2b6a3f; font-weight: 600; border-top: 1px solid var(--hair); }
.impact .fine.est a, .food a { color: inherit; font-weight: 500; }
.icons .icons-note { flex-basis: 100%; color: var(--ink-3); font-size: 11px; }
.food h2 { font: 700 16px/1.1 var(--display); letter-spacing: -.01em; margin: 0; }
.food[hidden] { display: none; }
.food summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 22px; column-gap: 8px; align-items: start; }
.food summary::-webkit-details-marker { display: none; }
.food summary::after { content: ""; grid-column: 2; grid-row: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--bone-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%2312302b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.food details[open] summary::after { transform: rotate(180deg); }
.food summary h2 { grid-column: 1; }
.food .food-sum { grid-column: 1 / span 2; display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.food .food-body { display: flex; flex-direction: column; gap: 8px; margin-top: 9px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.food .food-body p { margin: 0; }
.food .food-body b { color: var(--ink); font-weight: 600; }
.food .unit { font-size: 11.5px; color: var(--ink-3); margin: 0 0 4px; }
.food .fc-caveat { background: var(--bone-2); border-radius: 10px; padding: 6px 9px; color: var(--ink); }
.food h3 { font: 600 13px/1.25 var(--display); margin: 4px 0 0; color: var(--ink); }
.fc-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.fc-table thead th { font-size: 11px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 0 0 4px 6px; vertical-align: bottom; line-height: 1.2; white-space: nowrap; }
.fc-table thead th:first-child { text-align: left; padding-left: 0; }
.fc-table tbody th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 4px 0; line-height: 1.25; }
.fc-table td { text-align: right; padding: 4px 0 4px 6px; font-weight: 500; color: var(--ink); white-space: nowrap; vertical-align: top; }
.fc-table tbody tr + tr:not(.alt) th, .fc-table tbody tr + tr:not(.alt) td { border-top: 1px solid var(--hair); }
.fc-table tr.hit th, .fc-table tr.hit td { color: var(--plum); font-weight: 600; }
.fc-table tr.alt th, .fc-table tr.alt td { padding-top: 0; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.fc-table tr.alt th { padding-left: 10px; }
.fc-dest { margin: 0; padding: 0 0 0 16px; }
.fc-dest li + li { margin-top: 2px; }
#tip .ol { display: inline-block; padding-left: 8px; }
@media (max-width: 760px) {
  #tip { max-height: calc(100vh - 16px); overflow: hidden; font-size: 12px; line-height: 1.35; padding: 8px 10px; }
  .sheet.folded #food { display: none; }
  /* the open sheet stops below the zoom buttons (they end about 278 px down) */
  .sheet { max-height: calc(100vh - 360px - var(--key-h, 52px) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
@media (min-width: 761px) { /* the sheet stops above the key, however tall the key grows (crop badges listed) */
  .sheet, body:has(#icons:not([hidden])) .sheet { max-height: calc(100vh - 42px - var(--key-h, 208px)); }
}
/* ===== end crops 2026, outlets, food supply ===== */

/* ===== In the water (water.js, watersheds-layer.js) ===== */
/* Water.CSS (water.js), kept here too: the site's content security policy blocks a <style> added by script */
.w-legend{font:12px "Figtree", system-ui, sans-serif;color:#12302b;width:250px}.w-lt{font:600 14px "Bricolage Grotesque", "Figtree", system-ui, sans-serif}.w-lc{color:#3d5550;margin:1px 0 6px}
  .w-bar{position:relative;height:10px;border-radius:5px;border:1px solid #12302b}.w-bar i{position:absolute;top:-4px;bottom:-4px;width:2px;background:#12302b;border-radius:1px}
  .w-ticks{position:relative;height:15px;margin-top:2px;font-size:11px;color:#3d5550}.w-ticks span{position:absolute;transform:translateX(-50%)}.w-ticks span:first-child{transform:none}.w-ticks span:last-child{transform:translateX(-100%)}
  .w-loading{animation:wpulse 1.4s ease-in-out infinite}@keyframes wpulse{50%{opacity:.55}}@media (prefers-reduced-motion:reduce){.w-loading{animation:none}}.w-empty{margin-top:6px;padding:6px 8px;border-radius:6px;background:#ece7d8;color:#12302b;font-size:11.5px}.w-lref{margin-top:4px;font-size:11px;color:#3d5550}.w-ln{margin-top:4px;font-size:11px;color:#4d605b}
  .w-tip{font:12.5px "Figtree", system-ui, sans-serif;color:#12302b;max-width:300px;line-height:1.4}.w-h{font:600 15px "Bricolage Grotesque", "Figtree", system-ui, sans-serif}.w-sub{color:#6f827d;font-size:11.5px;margin-bottom:3px}.w-case{display:inline-block;background:#ffe9a6;color:#4a3600;border-radius:4px;padding:0 5px;font-size:11px;margin:2px 0}
  .w-note{color:#6f827d;font-size:11.5px;margin-top:3px}.w-ref{margin-top:5px;padding-top:4px;border-top:1px solid rgba(18,48,43,.14);color:#3d5550;font-size:11.5px}
  .w-time{font:12px "Figtree", system-ui, sans-serif;color:#12302b;user-select:none}.w-trk{position:relative;height:34px;cursor:pointer}.w-rail{position:absolute;left:0;right:0;top:13px;height:8px;border-radius:4px;background:#ece7d8;border:1px solid rgba(18,48,43,.25)}
  .w-cloud{position:absolute;top:13px;height:8px;border-radius:4px 0 0 4px;background:repeating-linear-gradient(135deg,#12302b 0 2px,transparent 2px 5px);opacity:.45}
  .w-fill{position:absolute;left:0;top:13px;height:8px;border-radius:4px;background:#1f7f8c;opacity:.85}.w-thumb{position:absolute;top:8px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#f6f2e7;border:2px solid #12302b;box-shadow:0 1px 3px rgba(80,50,30,.4)}
  .w-day{position:absolute;top:24px;font-size:11px;color:#6f827d;transform:translateX(2px)}.w-dt{position:absolute;top:11px;width:1px;height:12px;background:rgba(18,48,43,.35)}
  .w-mk{position:absolute;top:4px;width:7px;height:7px;margin-left:-3.5px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#12302b}.w-mk.peak{background:#f6f2e7;border:1.5px solid #12302b;width:5px;height:5px}
  .w-tl{display:flex;gap:8px;align-items:center;margin-bottom:2px}.w-tl button{font:600 12px "Figtree", system-ui, sans-serif;border:1px solid rgba(18,48,43,.3);background:#f6f2e7;border-radius:6px;padding:2px 8px;cursor:pointer}.w-now{font:600 13px "Bricolage Grotesque", "Figtree", system-ui, sans-serif}.w-rel{color:#6f827d}
#wshed[hidden], #water[hidden], #waterlabels[hidden] { display: none; }
.transport.water { grid-template-columns: 1fr; border-radius: 18px; padding: 8px 16px 6px; }
.transport.water > #play, .transport.water > #scrub, .transport.water > #clock { display: none; }
.transport.water .w-time { color: var(--bone); }
.transport.water .w-now { color: var(--bone); } .transport.water .w-rel, .transport.water .w-day { color: rgba(246, 242, 231, .72); }
.transport.water .w-tl button { background: var(--bone); color: var(--ink); border: 0; }
.transport.water .w-rail { background: rgba(246, 242, 231, .22); border-color: rgba(246, 242, 231, .3); }
.transport.water .w-fill { background: var(--corn); opacity: .9; } .transport.water .w-cloud { background: repeating-linear-gradient(135deg, rgba(246,242,231,.8) 0 2px, transparent 2px 5px); opacity: .5; }
.transport.water .w-dt { background: rgba(246, 242, 231, .35); } .transport.water .w-mk { background: var(--bone); } .transport.water .w-mk.peak { background: transparent; border-color: var(--bone); }
.transport.water .w-thumb { background: var(--bone); border-color: var(--corn); }
.watersum h2 { font-size: 15px; margin: 10px 0 4px; } .watersum p { margin: 4px 0; font-size: 13.5px; line-height: 1.45; }
.watersum ul { margin: 4px 0 6px; padding-left: 18px; font-size: 13px; } .watersum .cases { margin: 6px 0; }
.ws-legend { margin-top: 8px; } .ws-lt { font: 600 13px var(--display, inherit); } .ws-bar { display: grid; grid-template-columns: repeat(5, 1fr); height: 10px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(18,48,43,.5); }
.ws-bar i { opacity: .8; } .ws-ticks { display: grid; grid-template-columns: repeat(5, 1fr) auto; font-size: 10.5px; color: var(--ink-2); margin-top: 2px; } .ws-ln { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 760px) { .water-mode .key { bottom: calc(104px + env(safe-area-inset-bottom)); } .water-mode .sheet { bottom: calc(110px + var(--key-h, 52px) + env(safe-area-inset-bottom)); max-height: calc(100vh - 240px - 116px - var(--key-h, 52px) - env(safe-area-inset-top)); } .transport.water { padding: 5px 12px 3px; } .key .w-ln, .key .ws-ln, .key .w-lc { display: none; } .key .w-lref { font-size: 11px; margin-top: 2px; } .key .w-legend { width: auto; } .key .ws-legend { margin-top: 4px; } }
.ws-ticks { font-size: 11px; } .ws-ln { color: var(--ink-2); }
/* ===== end In the water ===== */

/* ===== Hover card and pinned-place panel (map/detail.js) ===== */
#tip .tl { display: block; }
#tip .tip-hint { margin-top: 5px; font-size: 11.5px; color: rgba(246, 242, 231, .72); }
#tip.touch { pointer-events: auto; }
#tip .tip-more { display: block; width: 100%; min-height: 38px; margin-top: 8px; border: 0; border-radius: 10px; background: var(--corn); color: var(--corn-ink); font-size: 13px; font-weight: 600; }
.chip { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(246, 242, 231, .6); }
.detail { position: fixed; right: 14px; top: 184px; width: min(344px, calc(100vw - 28px)); max-height: calc(100vh - 198px); display: flex; flex-direction: column; background: var(--bone); border-radius: var(--r); box-shadow: var(--lift); z-index: 2; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.detail.open { opacity: 1; transform: none; }
.detail[hidden] { display: none; }
.detail-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 12px 8px 18px; }
.detail-hd { flex: 1; min-width: 0; }
.detail h2 { font: 700 19px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.detail h2:focus { outline: none; }
.detail h2:focus-visible { outline: 3px solid var(--corn); outline-offset: 2px; }
.detail-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.detail-close, .detail-grow { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bone-2); color: var(--ink); display: grid; place-items: center; }
.detail-close:hover, .detail-grow:hover { background: #e3ddcb; }
.detail-grow { display: none; transition: transform .2s; }
.detail-body { overflow: auto; padding: 4px 18px 12px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: var(--ink-2); }
.dsec h3 { font: 700 15px/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 5px; color: var(--ink); }
.dsec p { margin: 0 0 5px; line-height: 1.42; }
.dsec p:last-child { margin-bottom: 0; }
.dsec strong { color: var(--ink); font-weight: 600; }
.dsec .dim, .dsec .dim2 { color: var(--ink-3); }
.dsec .fine { margin-top: 2px; }
.dsec .band { color: var(--ink); font-weight: 500; }
.dsec .chip { box-shadow: 0 0 0 1px rgba(18, 48, 43, .25); }
.dtab { width: 100%; border-collapse: collapse; margin: 2px 0 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dtab thead th { padding: 0 0 4px 8px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); text-align: right; white-space: nowrap; }
.dtab tbody th { padding: 5px 0; font-weight: 400; color: var(--ink-2); text-align: left; line-height: 1.25; }
.dtab .u { display: block; font-size: 11.5px; color: var(--ink-3); }
.dtab td { padding: 5px 0 5px 8px; font-weight: 500; color: var(--ink); text-align: right; vertical-align: top; white-space: nowrap; }
.dtab tbody tr + tr th, .dtab tbody tr + tr td { border-top: 1px solid var(--hair); }
.dtab .on { color: var(--plum); font-weight: 700; }
.dtab thead .on { font-weight: 600; }
.dsec[data-id="outlets"] p > br { display: none; }
.dsec[data-id="outlets"] .dol { display: block; padding: 3px 0; }
.dsec[data-id="outlets"] .dol + .dol { border-top: 1px solid var(--hair); }
.dsec[data-id="outlets"] p > .dim { display: block; margin-top: 5px; font-size: 12px; }
.detail-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 18px 14px; border-top: 1px solid var(--hair); }
.detail-copy { border: 0; border-radius: 11px; background: var(--bone-2); padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.detail-copy:hover { background: #e3ddcb; }
.detail-copied { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
@media (max-width: 1180px) { .detail { max-height: calc(100vh - 184px - 84px); } } /* the playback bar moves to the bottom right */
@media (max-width: 760px) { /* a bottom sheet resting on the folded summary, so its notice stays in view; toggles taller */
  .detail { top: auto; left: 8px; right: 8px; width: auto; bottom: var(--detail-bottom, 236px); height: min(34vh, calc(100vh - var(--detail-bottom, 236px) - 292px - env(safe-area-inset-top))); max-height: none; border-radius: 16px; z-index: 3; transform: translateY(12px); }
  .detail.tall { height: calc(100vh - var(--detail-bottom, 236px) - 116px - env(safe-area-inset-top)); }
  body:has(.detail.tall:not([hidden])) .zoomctl { display: none; }
  .detail-grow { display: grid; }
  .detail.tall .detail-grow { transform: rotate(180deg); }
  .detail-head { align-items: center; padding: 9px 8px 6px 14px; }
  .detail h2 { font-size: 16px; }
  .detail-sub { font-size: 12px; }
  .detail-close, .detail-grow { width: 36px; height: 36px; }
  .detail-body { padding: 2px 14px 10px; gap: 12px; }
  .detail-foot { padding: 6px 14px 9px; }
  #tip.touch { max-width: min(300px, calc(100vw - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .detail, .detail.open { transition: none; transform: none; } }
/* ===== end hover card and pinned-place panel ===== */

/* ===== opening (intro.js): the still of the whole map and the clouds over it =====
   The still sits exactly where the map will draw the wide art with the opening camera (app.js home(), fitZoom()):
   --z is 470 km at the opening zoom; the art is 9,081 x 6,447 pixels of 160 m, with the plant at (4540.5, 3223). */
#still { --z: min(100vw, 100vh * 1.197941); --px: 50vw; --py: calc(50vh - 70px); position: fixed; left: calc(var(--px) - var(--z) * 1.545702); top: calc(var(--py) - var(--z) * 1.097191); width: calc(var(--z) * 3.091404); height: calc(var(--z) * 2.194723); max-width: none; pointer-events: none; user-select: none; }
@supports (height: 100dvh) { #still { --z: min(100vw, 100dvh * 1.197941); --py: calc(50dvh - 70px); } }
@media (min-width: 720.02px) { #still { --px: calc(50vw + 150px); --py: 50vh; } @supports (height: 100dvh) { #still { --py: 50dvh; } } }
#intro { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; contain: strict; } /* its sky tint is set by intro.js only when the clouds are shown (?intro=1) */
#intro canvas { position: absolute; will-change: transform, opacity; }
#load-status { pointer-events: none; }
.days:empty, .times:empty { display: none; }
.key:has(#legend:empty) { visibility: hidden; }
#sky.waiting { opacity: 0; } #sky { transition: opacity 1.2s ease-out; } /* the forecast sky comes in gently when its file arrives */
@media (prefers-reduced-motion: reduce) { #sky { transition: none; } }
/* the play button while the particle animation is on its way: a ring that fills */
#play { position: relative; }
#play.busy::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--corn) calc(var(--got, 0) * 1%), rgba(246, 242, 231, .28) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
#play[aria-busy="true"] svg { opacity: .55; }
/* ===== end opening ===== */


/* ===== About (about.js), the "Unofficial estimate" tag and the short links to About ===== */
.sheet-meta { display: flex; align-items: center; gap: 12px; margin: 7px 0 0; font-size: 12.5px; }
.sheet-meta a { display: inline-flex; align-items: center; min-height: 26px; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.sheet-meta .est { padding: 0 10px; border-radius: 999px; background: var(--bone-2); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.sheet-meta .est:hover { background: #e3ddcb; }
.impact tr.grp th { padding: 11px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.impact tr.grp + tr th, .impact tr.grp + tr td { border-top: 0; }
.impact .next h3 { font: 600 13px/1.25 var(--display); margin: 10px 0 3px; color: var(--ink); } .impact .next p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.why { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.why a { color: inherit; text-underline-offset: 2px; }
.about { position: fixed; inset: 0; width: min(900px, calc(100vw - 28px)); height: calc(100vh - 28px); height: calc(100dvh - 28px); max-width: none; max-height: none; margin: 14px auto; padding: 0; border: 0; background: var(--bone); color: var(--ink); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; }
.about[open] { display: flex; flex-direction: column; }
.about::backdrop { background: rgba(12, 34, 30, .62); }
.ab-head { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 14px 32px; border-bottom: 1px solid var(--hair); }
.ab-head h1 { font-size: 26px; }
.about h1:focus, .about h2:focus, .about h3:focus { outline: none; }
.about h1:focus-visible, .about h2:focus-visible, .about h3:focus-visible { outline: none; }
.ab-scroll:focus-visible { outline: 3px solid var(--corn); outline-offset: -3px; }
.ab-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bone-2); color: var(--ink); display: grid; place-items: center; }
.ab-close:hover { background: #e3ddcb; }
.ab-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 212px 1fr; }
.ab-nav { display: flex; flex-direction: column; gap: 2px; padding: 26px 8px 26px 20px; }
.ab-nav a { padding: 6px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.ab-nav a:hover { background: var(--bone-2); }
.ab-nav a[aria-current] { background: var(--bone-2); color: var(--ink); font-weight: 600; }
.ab-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 64px 28px; }
.ab-text { max-width: 31.3em; font-size: 16px; line-height: 1.58; color: var(--ink-2); }
.ab-text section + section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hair); }
.ab-text h2 { font: 700 28px/1.1 var(--display); letter-spacing: -.022em; margin: 0 0 14px; color: var(--ink); text-wrap: balance; }
.ab-text h3 { font: 700 18px/1.25 var(--display); letter-spacing: -.01em; margin: 30px 0 6px; color: var(--ink); }
.ab-text p { margin: 0 0 12px; text-wrap: pretty; }
.ab-text .ab-lead { font-size: 18px; line-height: 1.45; color: var(--ink); margin-bottom: 18px; }
.ab-text a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.ab-text ul { margin: 0; padding-left: 20px; } .ab-text li + li { margin-top: 6px; }
.ab-text [id^="about-"] { scroll-margin-top: 22px; }
.ab-live:empty { display: none; }
.ab-text[data-engine-shown="5"] [data-engine="4"], .ab-text[data-engine-shown="4"] [data-engine="5"] { display: none; }
.ab-official { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.ab-official a { display: block; padding: 14px 18px 15px; border-radius: 14px; background: var(--ink); color: var(--bone); text-decoration: none; }
.ab-official a:hover { background: #1c443d; }
.ab-official b { display: block; font: 700 19px/1.2 var(--display); letter-spacing: -.01em; text-decoration: underline; text-decoration-color: var(--corn); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ab-official span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: rgba(246, 242, 231, .86); font-weight: 400; }
.ab-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 4px 0 8px; }
.ab-bars p { margin: 0 0 5px; font-size: 13.5px; color: var(--ink-2); }
.ab-bar, .ab-ticks { display: grid; grid-template-columns: repeat(5, 1fr); }
.ab-bar { height: 14px; border-radius: 7px; overflow: hidden; }
.ab-ticks { margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab-cut { margin: 6px 0 30px; }
.ab-cut-in { position: relative; }
.ab-cut svg { display: block; width: 62%; height: auto; overflow: visible; }
.ab-cut svg * { vector-effect: non-scaling-stroke; }
.ab-cut .sh { fill: rgba(246, 242, 231, .8); } .ab-cut .rim { fill: none; stroke: #12302b; stroke-width: 1.4; stroke-linejoin: round; }
.ab-cut .side { fill: #7a6244; stroke: #12302b; stroke-width: 1.4; stroke-linejoin: round; }
.ab-cut .ink { fill: none; stroke: rgba(18, 48, 43, .42); stroke-width: .8; }
.ab-cut .water { fill: none; stroke: #1f6d8c; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; } .ab-cut .thin { stroke-width: 3; } .ab-cut .faint { stroke-width: 1.4; }
.ab-cut ol { list-style: none; margin: 0; padding: 0; }
.ab-cut li { position: absolute; left: 61%; right: 0; top: calc(21.3% + var(--i) * 16.78%); padding-left: 44px; transform: translateY(-.75em); font-size: 13.5px; line-height: 1.35; margin: 0 !important; }
.ab-cut li::before { content: ""; position: absolute; left: 0; top: .68em; width: 36px; border-top: 1.4px solid var(--ink); }
.ab-cut li b { display: block; font: 700 15px/1.3 var(--display); color: var(--ink); } .ab-cut li span { display: block; }
.ab-cut figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.ab-text dl { margin: 0; } .ab-text dt { font-weight: 600; color: var(--ink); margin-top: 16px; } .ab-text dd { margin: 2px 0 0; max-width: 33em; font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) {
  .sheet-meta { margin-top: 4px; gap: 10px; } .sheet-meta a { min-height: 28px; }
  .about { width: 100vw; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
  .ab-head { padding: calc(8px + env(safe-area-inset-top)) 8px 6px 18px; border-bottom: 0; } .ab-head h1 { font-size: 22px; }
  .ab-close { width: 44px; height: 44px; }
  .ab-main { display: flex; flex-direction: column; }
  .ab-nav { flex: none; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0 12px 8px; border-bottom: 1px solid var(--hair); } .ab-nav::-webkit-scrollbar { display: none; }
  .ab-nav a { flex: none; min-height: 40px; display: flex; align-items: center; padding: 0 12px; }
  .ab-scroll { flex: 1; min-height: 0; padding: 20px 18px calc(48px + env(safe-area-inset-bottom)); }
  .ab-text h2 { font-size: 25px; }
  .ab-text section + section { margin-top: 44px; padding-top: 32px; }
  .ab-official, .ab-bars { grid-template-columns: 1fr; } .ab-bars { gap: 8px; }
  .ab-cut svg { width: 60%; } .ab-cut li { left: 58%; padding-left: 20px; font-size: 12px; line-height: 1.25; } .ab-cut li::before { width: 15px; } .ab-cut li b { font-size: 14px; } .ab-cut li span { display: none; }
}
/* ===== end About ===== */
/* ===== Water, on by default (waterways.js): its part of the key ===== */
.wkey { padding-top: 8px; border-top: 1px solid var(--hair); font-size: 11.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.wkey[hidden] { display: none; }
.whead { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 12.5px; color: var(--ink); }
#wswitch { position: relative; width: 36px; height: 20px; padding: 0; border: 0; border-radius: 10px; background: #7d8a85; }
#wswitch::after { content: ""; position: absolute; inset: -10px; }
#wswitch i { position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bone); transition: transform .15s; }
#wswitch[aria-checked="true"] { background: var(--ink); } #wswitch[aria-checked="true"] i { transform: translateX(16px); background: var(--corn); }
.wramps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wramp { display: grid; grid-template-columns: 1fr auto; gap: 2px 4px; }
.wramp .wt { white-space: nowrap; } .wu { grid-column: 2; grid-row: 1; color: var(--ink-3); white-space: nowrap; }
.wbar { grid-column: 1 / -1; display: flex; height: 9px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(18, 48, 43, .45); } .wbar i { flex: 1; }
.wticks { grid-column: 1 / -1; display: flex; font-size: 11px; font-variant-numeric: tabular-nums; } .wticks span { flex: 1; }
.wnote { margin: 0; font-size: 11px; line-height: 1.3; color: var(--ink-3); }
@media (max-width: 760px) { .wkey { padding-top: 5px; } .wkey .wramps, .wkey .wlong { display: none; } .sheet:not(.folded) ~ .key .wramps { display: grid; } }
/* ===== end Water, on by default ===== */

/* ---- site links (About, the author): in the header beside the zoom buttons, or in the footer corner (?nav=header|footer while the owner decides) ---- */
.sitenav { position: fixed; z-index: 2; display: flex; align-items: center; gap: 16px; font: 600 13px/1 var(--text); white-space: nowrap; }
.sitenav a { color: var(--ink); text-decoration: none; } .sitenav a:hover { text-decoration: underline; text-decoration-color: var(--corn); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body[data-nav="header"] .sitenav { top: 14px; right: 66px; height: 38px; padding: 0 16px; background: var(--bone); border-radius: 999px; box-shadow: var(--lift); }
body[data-nav="footer"] .sitenav { right: 14px; bottom: 12px; padding: 8px 13px; background: rgba(246, 242, 231, .92); border-radius: 999px; font-weight: 500; font-size: 12.5px; box-shadow: 0 2px 8px rgba(8, 28, 24, .25); }
@media (max-width: 720px) { .sitenav { display: none; } }
.sitenav .x { display: grid; place-items: center; width: 22px; height: 22px; }
/* ===== One timeline: the dust run and the days after (timeline.js) ===== */
.scrubwrap { position: relative; min-width: 0; --joint: 100%; }
.scrubwrap.two { padding-bottom: 13px; }
.scrubwrap.two::after { content: ""; position: absolute; left: var(--joint); top: 3px; height: 16px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(246, 242, 231, .85); pointer-events: none; }
.scrubwrap.two #scrub { --later: rgba(95, 202, 114, .42); display: block; }
.scrubwrap.two #scrub::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--corn) var(--pos, 100%), transparent var(--pos, 100%)), linear-gradient(90deg, rgba(246, 242, 231, .26) var(--joint), var(--later) var(--joint)); }
.scrubwrap.two #scrub::-moz-range-track { background: linear-gradient(90deg, rgba(246, 242, 231, .26) var(--joint), var(--later) var(--joint)); }
.segs { position: absolute; left: 0; right: 0; bottom: -3px; height: 16px; }
.segs[hidden] { display: none; }
.segs button { position: absolute; top: 0; padding: 0; border: 0; background: none; font-size: 11px; line-height: 16px; color: rgba(246, 242, 231, .78); white-space: nowrap; overflow: hidden; text-align: left; }
.segs button::after { content: ""; position: absolute; inset: -2px 0 -8px; }
.segs button:first-child { left: 0; width: calc(var(--joint) - 5px); } .segs button:last-child { left: calc(var(--joint) + 5px); right: 0; }
.segs button[aria-pressed="true"] { color: var(--bone); font-weight: 600; }
@media (max-width: 760px) { .scrubwrap.two { padding-bottom: 8px; } .scrubwrap.two::after { top: 8px; height: 18px; } .segs { bottom: -2px; } .segs button:first-child { text-overflow: clip; } .scrubwrap.later .segs button:first-child { width: max-content; overflow: visible; font-size: 11px; } .scrubwrap.later .segs button:last-child { left: max(calc(var(--joint) + 5px), 62px); } }
@media (max-width: 760px) { #clock small { white-space: normal; line-height: 1.15; } }
/* ===== end one timeline ===== */

/* QA D7: between 1181 and 1330 px the centred day strip would reach the sheet's fold button. D6: short phone-width windows (browser
   zoom 200%): the sheet keeps its title, the tag and a few lines, over the strip if need be. */
@media (min-width: 1181px) and (max-width: 1330px) { .forecast { left: auto; right: 64px; transform: none; align-items: flex-end; } }
.sheet-head { flex: none; }
@media (max-width: 760px) and (max-height: 560px) { .sheet:not(.folded) { max-height: max(150px, calc(100vh - 360px - var(--key-h, 52px))); z-index: 4; } .key-row { display: none !important; } body:has(.sheet:not(.folded)) .zoomctl { display: none; } }

/* ---- the playback bar keeps one width: the clock column is fixed, so its changing text cannot resize the scrubber under the
   pointer (that made the handle jump between "first day" and "days after" while dragging) ---- */
/* the jolt when playback starts from time zero: the map's canvases only, slightly enlarged so no edge shows */
@keyframes quake { 0%, 100% { transform: none; } 15% { transform: translate(-.8px, .6px) scale(1.0015); } 35% { transform: translate(.7px, -.5px) scale(1.0015); } 55% { transform: translate(-.5px, -.3px) scale(1.001); } 75% { transform: translate(.3px, .2px) scale(1.0005); } }
body.quake #map, body.quake #sky, body.quake #gl, body.quake #wshed, body.quake #water, body.quake #labels, body.quake #waterlabels { animation: quake .35s linear 1; }
@media (prefers-reduced-motion: reduce) { body.quake canvas { animation: none !important; } }
.transport:not(.water) { grid-template-columns: 44px minmax(0, 1fr) 218px; }
#clock { min-width: 0; overflow: hidden; text-overflow: ellipsis; } #clock small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .transport:not(.water) { grid-template-columns: 44px minmax(0, 1fr) 132px; } }
