/* Fonts (self-hosted, OFL; see fonts/OFL.txt): Plus Jakarta Sans for text, Outfit for titles, JetBrains Mono for numbers. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

/*
  v9 "Mountain dashboard" (owner chose design A, 2026-11-16): paper page, navy forecast panel, ice blue for snow,
  amber for the snow level. Colour only means something. Text never below 12px in charts, 14px elsewhere.
  trackthesnow brand (owner, 2026-11-20): cyan = snow, amber = alerts and favourites only, matte hairline cards,
  Light / Dark (html.dark, set by js/theme.js before the first paint). Dark values are at the end of this file.
*/
:root {
  --ink: #0f172a; --night: #192e46; --deep: #11243a; --paper: #eef3f7; --white: #fff;
  --ice: #38bdf8; --amber: #f59e0b; --muted: #5b6b7e; --line: #d9e2ea; --blue: #0369a1; --warn: #b42318;
  --cyan: #0ea5e9; --cyan-ink: #0369a1; --amber-ink: #b45309;   /* cyan = snow; amber = alerts and favourites */
  --r: 6px; --tap: 44px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Outfit", system-ui, sans-serif;                        /* titles and headlines */
  --mono: "JetBrains Mono", ui-monospace, monospace;             /* numbers */
  --glass: rgb(255 255 255 / 0.78);                               /* matte light cards with a hairline */
  --glass-hi: inset 0 0 0 1px #dde6ee;
  --glass-sh: 0 1px 2px rgb(15 23 42 / 0.04), 0 6px 18px rgb(15 23 42 / 0.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.45 var(--font); font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 3px; }
b { font-weight: 600; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid #b66c20; outline-offset: 3px; }
.muted { color: var(--muted); }
.src { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }
.tag.stale { background: #f6e3cf; color: #8a4b12; padding: 0 4px; border-radius: 3px; font-size: 0.875rem; }
.feed-down { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-top: 20px; }
.wrap { max-width: 1184px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 700px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- masthead: frost glass; trackthesnow mark + wordmark, "Powered by SideBox Studios" under it;
   Light/Dark and units on the right (app view moves both into the menu) ---------- */
.mast { position: sticky; top: 0; z-index: 20; background: rgb(250 252 254 / 0.76); color: var(--ink); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.mast-in { height: 64px; display: flex; align-items: center; gap: 10px; }
.tts-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-right: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 22px var(--num); letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.brand span span { font-weight: 400; color: var(--muted); }
.tts-by { margin-left: 44px; font: 500 10.5px/1 var(--font); color: var(--muted); white-space: nowrap; }
.tts-by b { font-weight: 600; color: var(--ink); }
.units { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.mast .units { background: rgb(255 255 255 / 0.6); }
.units button { background: none; border: 0; color: var(--muted); border-radius: 3px; padding: 6px 10px; min-height: 36px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.units button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .mast-in { flex-wrap: wrap; gap: 0 6px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .brand span span { display: none; }
  .tts-by { margin-left: 36px; font-size: 9.5px; }
  .mast .units button { padding: 0 7px; font-size: 12px; }
  .mast .tts-theme button { width: 30px; padding: 0; font-size: 0; }
  .mast .tts-theme button::before { content: ""; display: block; width: 15px; height: 15px; margin: auto; background: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
  .mast .tts-theme [data-theme="light"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cg stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 1.5v3M12 19.5v3M1.5 12h3M19.5 12h3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M4.6 19.4l2.1-2.1M17.3 6.7l2.1-2.1'/%3E%3C/g%3E%3C/svg%3E"); }
  .mast .tts-theme [data-theme="dark"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* ---------- intro ---------- */
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding: 26px 0 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
h1 { font: 600 60px/1 var(--num); letter-spacing: -0.03em; }
.change { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: var(--tap); padding: 0 16px 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.change:hover { background: var(--ink); color: #fff; }
.change .chev { font-size: 18px; line-height: 1; margin-top: -4px; }
.sic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
.actions { display: flex; gap: 8px; }
.action { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid #b6c3cf; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 16px; background: #fff; }
.action.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; font-size: 15px; }
.ground { display: flex; gap: 8px; align-items: flex-start; }
.ground .sic { margin-top: 2px; color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; color: #40566b; }
.chip a { text-decoration: none; }
.chip.warn, .chip.warn b { color: var(--warn); }
@media (max-width: 700px) {
  h1 { font-size: 46px; }
  .actions { width: 100%; }
  .action { flex: 1; justify-content: center; min-height: 44px; font-size: 15px; padding: 0 10px; }
  .status { display: grid; font-size: 14px; }
  .chips { display: grid; gap: 4px; }
}

/* ---------- forecast panel ---------- */
.panel { background: var(--night); color: #fff; border-radius: 11px; overflow: hidden; }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.srcb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.badge { background: var(--ice); color: var(--ink); font-size: 12px; letter-spacing: 1px; font-weight: 600; border-radius: 3px; padding: 4px 8px; }
.srci { font-size: 14px; color: #c3d1df; }
.range { display: flex; background: var(--deep); border: 1px solid #496178; border-radius: 5px; padding: 3px; }
.range button { border: 0; background: transparent; color: #c5d5e4; border-radius: 3px; padding: 4px 12px; min-height: 36px; font-weight: 500; }
.range button[aria-pressed="true"] { background: #dceaf5; color: var(--ink); }
.p-lead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 24px 8px; }
.total { display: flex; align-items: center; gap: 14px; }
.big { font: 500 56px/1 var(--mono); letter-spacing: -0.05em; }
.big small { font: 400 20px var(--font); margin-left: 10px; letter-spacing: 0; }
.tl { font-size: 15px; font-weight: 500; color: #c4d4e4; line-height: 1.25; }
.tl b { color: #fff; font-weight: 500; }
.outlook { text-align: right; font-size: 19px; font-weight: 500; }
.outlook small { display: block; font-size: 14px; color: #b8cbdc; font-weight: 400; margin-top: 2px; }
.scroll { overflow-x: auto; padding: 0 0 4px 16px; scrollbar-color: #66829b var(--night); }
.dz-wrap { position: relative; }
.dbtns { display: flex; }
.dbtn { flex: none; min-height: 40px; border: 0; border-radius: 4px; background: transparent; color: #d6e5f1; font-weight: 600; font-size: 15px; padding: 0; }
.dbtn span { font-weight: 400; opacity: 0.65; }
.dbtn.far { color: #9db3c7; }
.dbtn[aria-pressed="true"] { background: #355473; color: #fff; box-shadow: inset 0 -3px 0 var(--ice); }
.dz { display: block; font-family: var(--font); }
.dz-sel { fill: #2c4864; opacity: 0.5; }
.dz-col { stroke: #68819a; stroke-opacity: 0.16; }
.dz-far { fill: #0d1d2f; opacity: 0.35; }
.dz-rule { stroke: #3c526a; }
.dz-bar { fill: var(--ice); }
.dz-bar.part { fill: none; stroke: var(--ice); stroke-dasharray: 3 2; }
.dz-band { fill: none; stroke: var(--ice); stroke-opacity: 0.6; stroke-dasharray: 3 3; }
.dz-mid { stroke: var(--ice); stroke-width: 2.5; }
.dz-zero { stroke: #698098; stroke-width: 2; }
.dz-mtn { fill: #6c91b3; opacity: 0.14; }
.dz-elev { stroke: #849bb0; stroke-dasharray: 3 5; stroke-opacity: 0.6; }
.dz-level { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linejoin: round; }
.dz-below { fill: var(--amber); }
.dz-freeze { stroke: #8caac4; stroke-dasharray: 3 5; stroke-opacity: 0.6; }
.dz-temp { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; }
.dz-tband { fill: var(--ice); opacity: 0.18; stroke: var(--ice); stroke-opacity: 0.35; stroke-dasharray: 3 3; }
.dz-hilo { stroke: var(--ice); stroke-width: 3; stroke-opacity: 0.45; stroke-linecap: round; }
.dl { fill: #b9ccdd; font-size: 13px; }
.dl.lab { fill: #dfebf5; font-weight: 500; }
.dl.sub { fill: #a3b8cb; font-size: 12px; }
.dl.amber { fill: var(--amber); font-size: 11px; font-weight: 600; letter-spacing: 0.7px; }
.dl.amber-s { fill: #f6cb8d; font-size: 12px; }
.dl.ice { fill: var(--ice); font-size: 11px; font-weight: 600; letter-spacing: 0.7px; }
.dv { fill: #fff; font: 500 17px var(--mono); letter-spacing: -0.05em; }
.dv.far { fill: #9db3c7; }
.dp { fill: #c9d8e5; font-size: 14px; }
.dt { fill: #dce9f4; font-size: 14px; }
.dt.far { fill: #9db3c7; }
.swipe { margin: 2px 16px 0; font-size: 13px; color: #c4d2df; }
.story { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 8px 24px 18px; padding-top: 12px; border-top: 1px solid #3c526a; font-size: 15px; color: #e3edf5; }
.story .muted { color: #b8cbdc; font-size: 14px; }
.story .muted a { color: #dce9f4; }
.meta { margin-top: 8px; padding-left: 14px; font-size: 12px; color: #9fb4c8; }
.c-good { color: #a8e0b4; } .c-fair { color: var(--amber); } .c-low { color: #f2a7a0; }
@media (max-width: 700px) {
  .p-top { padding: 16px 16px 0; }
  .p-lead { padding: 10px 16px 6px; align-items: flex-start; }
  .outlook { font-size: 15px; max-width: 150px; }
  .outlook small { font-size: 12px; }
  .scroll { padding-left: 8px; }
  .dbtn { font-size: 14px; line-height: 1.15; padding: 4px 0; }
  .dbtn span { display: block; }
  .story { margin: 8px 16px 16px; }
}
@media (max-width: 640px) { .tl { font-size: 13px; white-space: nowrap; } }

/* ---------- section heads ---------- */
.sh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.sh h2 { font: 600 30px/1.05 var(--num); letter-spacing: -0.01em; }
.sh p { font-size: 14px; color: var(--muted); }
.mtn, .cams, .hist { margin-top: 30px; }

/* ---------- on the mountain: three cards ---------- */
.st-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border-radius: 8px; }
.st-col { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; min-width: 0; }
.st-col + .st-col { border-left: 1px solid var(--line); }
.st-lv { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.st-t { display: flex; align-items: baseline; gap: 2px; font: 500 38px/1.05 var(--mono); letter-spacing: -0.03em; }
.st-t small { font: 400 15px var(--font); color: var(--muted); }
.st-n { font-size: 14px; line-height: 1.35; }
.st-where { font-size: 12px; color: var(--muted); margin-top: 2px; }
.more-st { margin-top: 8px; font-size: 15px; }
.more-st summary { cursor: pointer; font-weight: 600; color: var(--blue); min-height: var(--tap); display: flex; align-items: center; }
.more-st ul { list-style: none; margin: 0; padding: 0; }
.more-st li { padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .st-col { padding: 8px 10px; } .st-t { font-size: 30px; } .st-n { font-size: 13px; } .st-where { font-size: 11px; } }

/* ---------- cameras: full width ---------- */
.cam-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cam { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.cam-f { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #d6e0e8; }
.cam-f img, .cam-blank { display: block; width: 100%; height: 100%; object-fit: cover; }
.cam-blank { background: linear-gradient(160deg, #3b4b5a, #1c2731); }
.cam-f.cam-live { aspect-ratio: 16 / 9; }
.cam-road { margin-top: 14px; }
.cam-live iframe { display: block; width: 100%; height: 100%; border: 0; background: #1c2731; }
.live-dot { color: #c0392b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cam-off { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 14px; }
.cam-tag { position: absolute; top: 7px; right: 8px; padding: 2px 6px; border-radius: 3px; background: #142b40; color: #fff; font-size: 11px; letter-spacing: 0.4px; }
.cam-tag.live { left: 8px; right: auto; top: auto; bottom: 8px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.65); }
.cam-c { display: block; font-size: 14px; font-weight: 500; margin-top: 6px; line-height: 1.3; }
.cam-more { margin-top: 12px; font-size: 15px; }
@media (max-width: 700px) { .cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- this date, other seasons ---------- */
.hist { background: #fff; border-radius: 8px; padding: 20px; }

/* ---------- community + sponsor ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; align-items: stretch; }
.community { padding: 16px; border: 1px dashed #9fb0c0; border-radius: 8px; }
.community .sec-head { display: flex; gap: 10px; align-items: baseline; }
.community h2 { font: 600 24px var(--num); letter-spacing: -0.01em; }
.community p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sponsor { display: flex; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sp-label { font-size: 12px; color: var(--muted); }
.sponsor a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; text-decoration: none; }
.sponsor img { display: block; height: 48px; width: auto; }
.sp-text { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* ---------- footer: "Where the numbers come from" folded into a small link; camera credits stay visible ---------- */
.method { padding: 10px 0 24px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.method summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: 12.5px; list-style: none; }
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: "›"; font-size: 15px; transition: transform 0.15s; }
.method details[open] summary { margin-bottom: 10px; color: var(--ink); }
.method details[open] summary::after { transform: rotate(90deg); }
.method dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; margin: 0; max-width: 900px; }
.method dt { font-weight: 600; color: var(--ink); }
.method dd { margin: 0; }
.method .credits { margin-top: 12px; font-size: 11.5px; }
@media (max-width: 640px) { .method dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .method dd { margin-bottom: 8px; } }
.credits { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- avalanche colours (North American scale, always with words) ---------- */
.danger { display: inline-block; padding: 0 6px; border-radius: 3px; font-weight: 600; border: 1px solid var(--line); }
.d-low { background: #50b848; color: #111; } .d-moderate { background: #fff200; color: #111; }
.d-considerable { background: #f7941e; color: #111; } .d-high { background: #ed1c24; color: #fff; } .d-extreme { background: #231f20; color: #fff; }

/* ---------- dialogs: resort list and cameras ---------- */
#resort-dialog { width: min(520px, 94vw); max-height: 86vh; padding: 0 0 12px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); }
#resort-dialog::backdrop, #cam-dialog::backdrop { background: rgb(0 0 0 / 0.55); }
#resort-dialog .src { padding: 0 16px; }
.rd-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.rd-head h2 { font: 600 24px var(--num); letter-spacing: -0.01em; }
.rd-group { margin: 14px 16px 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.rd-list { list-style: none; margin: 0; padding: 0 8px; }
.rd-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 17px; font-weight: 500; text-align: left; text-decoration: none; }
.rd-item:hover, .rd-item:focus-visible { background: var(--paper); }
.rd-item[aria-current="page"] { background: #dceaf5; }
.rd-snow { font: 500 18px var(--mono); letter-spacing: -0.03em; color: var(--muted); white-space: nowrap; }
.rd-snow.has { color: var(--blue); }
.rd-snow small { font: 500 12px var(--font); }
.u { margin-left: 2px; font-size: 0.85em; }
#cam-dialog { width: min(960px, 96vw); padding: 0; border: 0; border-radius: 8px; background: #fff; }
#cam-dialog img { display: block; width: 100%; height: auto; }
#cam-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
#cam-dialog .src { padding: 0 12px 12px; }
.cd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 4px 12px; }
.cd-close { min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; }

/* forecast vs what fell */
.verify { margin-top: 30px; background: #fff; border-radius: 8px; padding: 20px; }
.vstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.vstats > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #f2f5f8; border-radius: 6px; }
.vstats > div > b { font: 500 26px/1.1 var(--mono); letter-spacing: -0.03em; }
.vstats > div > span { font-size: 14px; line-height: 1.3; }
.vstats > div > small { color: var(--muted); font-size: 12px; }
.vkey { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 8px; align-items: center; }
.vkey i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.vkey i.fc, .vb.fc { background: #fff; border: 2px solid #142b40; }
.vkey i.ob, .vb.ob { background: #2f7fd1; border: 2px solid #2f7fd1; }
.vcols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.vc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.vbars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 150px; width: 100%; padding-top: 16px; }
.vb { position: relative; width: 42%; max-width: 18px; border-radius: 2px 2px 0 0; box-sizing: border-box; }
.vb i { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 500 11px/1.3 var(--mono); font-style: normal; white-space: nowrap; }
.vb.fc i { color: #142b40; } .vb.ob i { color: #2f7fd1; bottom: calc(100% + 0px); }
.vd { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.vm { font-weight: 700; font-size: 14px; } .vm.ok { color: #1d8a4e; } .vm.no { color: #c0392b; }
@media (max-width: 700px) {
  .vstats { grid-template-columns: minmax(0, 1fr); gap: 8px; } .vstats > div { display: grid; grid-template-columns: 90px 1fr; column-gap: 10px; } .vstats > div > b { grid-row: span 2; }
  .vstats > div > b { font-size: 20px; } .vcols { gap: 2px; } .vbars { height: 120px; } .vcols { grid-auto-columns: 30px; } .vb i { font-size: 10px; } .vd { font-size: 10px; } .vmsum { flex-basis: 100%; }
}
.vscroll { overflow-x: auto; padding-bottom: 4px; }
.vc.none .vd { opacity: 0.5; } .vc.none .vm { color: var(--muted); }
.vc.pow .vd { color: #142b40; font-weight: 700; }
.vbars.dry i { display: none; }
.vswipe { display: none; }
@media (max-width: 700px) { .vswipe { display: inline; } }

/* opening and closing */
.sdates { margin-top: 30px; background: #fff; border-radius: 8px; padding: 20px; }
.skey { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* dashboard v10: deepsnow-inspired storm labels, rain zone, weather words */
.dv.small { fill: #a9bfd2; font-weight: 500; }
.dv.big { fill: #fff; font-size: 18px; }
.dv.far.big { fill: #c3d4e3; }
.dz-wet { fill: #ff9a5c; opacity: 0.08; }
.dl.rain { fill: #ffb27f; font-size: 11px; font-weight: 600; }
.dz-storm { fill: var(--ice); opacity: 0.1; }
.dz-pill { fill: #2f7fd1; } .dz-pill.far { fill: #3c5873; }
.dl.pill { fill: #fff; font-size: 11px; font-weight: 600; } .dl.pill.far { fill: #dce9f4; }
.dz-rainzone { fill: #ff9a5c; opacity: 0.22; }
.dz-level.cold { stroke: var(--ice); }
.dt.warm { fill: #ffb27f; font-weight: 600; } .dt.cold { fill: #b9d6ef; }
.dwx { display: flex; margin-bottom: 2px; }
.dwx span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; color: #c9d8e5; padding: 2px 0 4px; }
.dwx span.far { opacity: 0.7; }
.dwx .ic { width: 20px; height: 20px; }
.dwx i { font-style: normal; }
.dwx .ic-snow { color: var(--ice); } .dwx .ic-rain, .dwx .ic-mix { color: #ffb27f; } .dwx .ic-sun, .dwx .ic-partly { color: #ffd479; } .dwx .ic-cloud, .dwx .ic-fog { color: #a9bfd2; }
.dz-snowz { fill: var(--ice); opacity: 0.85; } .dz-rainz { fill: #ff9a5c; opacity: 0.85; } .dz-mixz { fill: #c9a6d8; opacity: 0.6; }
.dz-snowz.dry, .dz-rainz.dry { opacity: 0.25; } .dz-snowz.far, .dz-rainz.far, .dz-mixz.far { opacity: 0.3; }

/* compact day line under the chart */
.story .s-day { font-size: 16px; }
.story .conf { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgb(255 255 255 / 0.08); }
.story .meta { margin-left: auto; font-size: 12px; opacity: 0.75; }
.lg-snow { fill: var(--ice); } .lg-rain { fill: #ffb27f; }
.stab { border-collapse: collapse; margin-top: 8px; font-size: 14px; width: 100%; max-width: 520px; }
.stab th, .stab td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #e3e8ee; white-space: nowrap; }
.stab th { font-size: 12px; color: var(--muted); font-weight: 600; }
.stab td:last-child, .stab th:last-child { text-align: right; }

/* snow on the ground, season by season */
.hscroll { overflow-x: auto; }
.hchart { display: block; cursor: crosshair; }
.hg { stroke: #e3e8ee; } .hgl { font-size: 11px; fill: #6b7c8d; }
.hmed { fill: none; stroke: #5b6f83; stroke-width: 1.5; stroke-dasharray: 5 4; }
.hday { stroke: #142b40; stroke-opacity: 0.35; }
.hcur { fill: none; stroke: #142b40; stroke-width: 3.2; }
.hkey { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 6px; align-items: center; }
.hkey span::before { content: ""; display: inline-block; width: 16px; height: 3px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.hkey .k-cur::before { background: #142b40; height: 4px; } .hkey .k-med::before { border-top: 2px dashed #5b6f83; height: 0; }
.hkey .k-mid::before { background: #b9c9d8; height: 10px; } .hkey .k-range::before { background: #e3eaf1; height: 10px; }
.hreset { font: 600 13px inherit; color: var(--blue); background: none; border: 1px solid #c9d3dd; border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.hread { font-size: 15px; margin-bottom: 6px; line-height: 1.45; }
.dz-snow { fill: #9fd0f5; } .dz-mix { fill: #b99be0; } .dz-rain { fill: #f2a167; }
.dz-snow.far, .dz-mix.far, .dz-rain.far { opacity: 0.35; }
.lg-mix { fill: #b99be0; }
.sbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; background: #f2f5f8; border-radius: 8px; }
.sdate, .spast { padding: 12px 16px; min-width: 0; }
.sdate + .sdate, .spast { border-left: 1px solid #dde4eb; }
.sdate { display: flex; flex-direction: column; gap: 2px; }
.sdate .k { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sdate b { font: 500 30px/1.1 var(--mono); letter-spacing: -0.03em; margin-bottom: 2px; }
.sdate small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.spast .stab { margin-top: 0; }
.stab-btn { margin-top: 6px; font: 600 13px inherit; color: var(--blue); background: none; border: 0; padding: 2px 0; cursor: pointer; }
@media (max-width: 760px) { .sbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .spast { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #dde4eb; } }
.hrange { fill: #e3eaf1; } .hmid { fill: #b9c9d8; opacity: 0.8; }
.hpick { fill: none; stroke: #e07b39; stroke-width: 2.2; }
.hsel { font-size: 13px; color: var(--muted); } .hsel select { font: 600 14px inherit; padding: 3px 6px; margin-left: 4px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; color: #142b40; }
.hpow { font-size: 14px; margin-bottom: 4px; }

/* "?" help: inline button, floating tip */
.qm { display: inline-block; vertical-align: middle; margin-left: 6px; }
.qm-b { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; display: grid; place-items: center; font: 700 12px/1 var(--font); cursor: help; opacity: 0.6; letter-spacing: 0; text-transform: none; }
.qm-b:hover, .qm-b[aria-expanded="true"] { opacity: 1; }
.qm-tip { position: fixed; z-index: 100; width: min(320px, calc(100vw - 16px)); padding: 10px 12px; background: #fff; color: #1d2b38; border: 1px solid #d5dee7; border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); font: 400 13px/1.45 var(--font); }
.qm-tip p + p { margin-top: 6px; }
.pl.snow { fill: #a9d6f7; } .pl.rain { fill: #f6b37e; } .pl.mix { fill: #c7b0ea; } .pl.far { opacity: 0.45; }
.pt { fill: #10263a; font: 600 11px var(--num); letter-spacing: -0.01em; } .pt.s { font-weight: 500; font-size: 9.5px; }
.th { fill: #ffd2a8; font: 500 16px var(--mono); } text.tl { fill: #a9d6f7; font: 500 15px var(--mono); } .th.far, .tl.far { opacity: 0.6; }

/* forecast vs what fell, season view */
.vtop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 12px; font-size: 14px; }
.vsel { font-size: 14px; color: var(--muted); }
.vstats > div { position: relative; }
.vstats span .qm { color: var(--muted); }
.vcum { display: block; }
.vband { fill: transparent; cursor: pointer; } .vband.alt { fill: #f5f8fb; } .vband:hover { fill: #e8f0f8; }
.vl-fc { fill: none; stroke: #142b40; stroke-width: 2; stroke-dasharray: 6 4; }
.vl-ob { fill: none; stroke: #2f7fd1; stroke-width: 3; }
.vend { font: 600 12px var(--font); } .vend.fc { fill: #142b40; } .vend.ob { fill: #2f7fd1; }
.vkey i.l { height: 3px; border: 0; border-radius: 2px; } .vkey i.fc.l { background: repeating-linear-gradient(90deg, #142b40 0 5px, transparent 5px 8px); } .vkey i.ob.l { background: #2f7fd1; }
.vmonths { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vmo { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 10px; border: 1px solid #d5dee7; border-radius: 8px; background: #fff; cursor: pointer; font: 13px/1.3 var(--font); color: #1d2b38; }
.vmo b { font-size: 14px; } .vmo span { color: var(--muted); font-size: 12px; }
.vmo.on { border-color: #2f7fd1; background: #eef5fc; } .vmo.back { justify-content: center; font-weight: 600; color: var(--blue); }
.vsel select, .hsel select { font: 600 15px/1.2 inherit; padding: 4px 8px; margin-left: 6px; border: 1px solid #c9d3dd; border-radius: 6px; background: #fff; color: #142b40; }

/* temperature now: one compact box, Base → Mid → Top */
.now { background: #fff; border-radius: 8px; padding: 6px 4px 6px; }
.now-head { display: flex; align-items: center; gap: 4px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.now-head .qm { margin-left: 2px; } .now-head .qm-b { width: 15px; height: 15px; font-size: 10px; border-width: 1.2px; }
.now-row { display: flex; }
.now-c { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 2px 12px; text-align: center; }
.now-c + .now-c { border-left: 1px solid var(--line); }
.now-l { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.now-t { font: 500 26px/1.1 var(--mono); letter-spacing: -0.03em; }
.now-k { font-size: 11px; color: #33475b; white-space: nowrap; }
@media (max-width: 640px) { .now { width: 100%; } .now-c { flex: 1; min-width: 0; padding: 2px 4px; } .now-t { font-size: 24px; } }
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.hstats > div { display: flex; flex-direction: column; padding: 8px 12px; background: #f2f5f8; border-radius: 6px; }
.hstats span { font-size: 12px; color: var(--muted); } .hstats b { font: 500 22px/1.15 var(--mono); letter-spacing: -0.03em; } .hstats small { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hmost { fill: none; stroke: #2f7fd1; stroke-width: 1.8; } .hleast { fill: none; stroke: #e07b39; stroke-width: 1.8; }
.hpick { fill: none; stroke: #7a4fc4; stroke-width: 2.2; }
.hkey .k-most::before { background: #2f7fd1; } .hkey .k-least::before { background: #e07b39; } .hkey .k-range::before { background: #dfe7ef; height: 10px; }
.vearly { font-size: 15px; margin: 4px 0 10px; }
.vcols.early { grid-auto-columns: 64px; justify-content: start; }
.cam-group + .cam-group { margin-top: 18px; }
.cam-group h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; } .cam-group h3 .muted { font-weight: 400; font-size: 13px; }

/* ---------- trackthesnow brand (owner, 2026-11-20): matte hairline cards, neutral chrome ----------
   Replaces v13's frosted cards and marigold accent. Cyan means snow; amber is kept for alerts and favourites. */
.now, .st-panel, .hist, .verify, .sdates, .sponsor, .feed-down {
  background: var(--glass); border: 0; border-radius: 16px; box-shadow: var(--glass-hi), var(--glass-sh);
}
.sh h2 { padding-bottom: 8px; }

/* Mountain report | Lift status: one bar with a thin divider */
.actions {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; border-radius: 16px;
  background: var(--glass); box-shadow: var(--glass-hi), var(--glass-sh);
}
.actions .action, .actions .action.primary {
  display: grid; grid-auto-flow: column; place-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 0; border-radius: 16px; background: none; color: #193247; font-weight: 600; text-decoration: none;
}
.actions .action span { color: var(--muted); }
.actions .action:hover { background: #fff; }
.actions .action + .action { position: relative; }
.actions .action + .action::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgb(25 50 71 / 16%); }
.actions .action:focus-visible { outline: 2px solid #245579; outline-offset: -3px; border-radius: 12px; }

.change { border: 0; background: var(--glass); box-shadow: var(--glass-hi), var(--glass-sh); }
.change:hover { background: #fff; color: var(--ink); }
.stab-btn, .verify a, .sdates a, .hist a { color: var(--cyan-ink); }

/* stat tiles, help buttons, "Show all" */
.hstats > div, .sbox { background: rgb(255 255 255 / 55%); }
.hstats > div, .sbox .sdate { box-shadow: inset 0 0 0 1px var(--line); }
.sbox .sdate { padding-left: 12px; }
.qm-b:hover, .qm-b:focus-visible, .qm-b[aria-expanded="true"] { border-color: var(--cyan); background: rgb(14 165 233 / 14%); }
.stab-btn { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.stab-btn:hover { background: #fff; }

/* season pickers: a light pill with a cyan chevron (website and app view) */
.vsel, .hsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.vsel select, .hsel select {
  -webkit-appearance: none; appearance: none; margin: 0; min-height: 36px; padding: 0 34px 0 14px;
  font: 600 14px/1 var(--font); color: var(--ink); border: 0; border-radius: 999px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230369a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 12px 8px no-repeat,
    linear-gradient(135deg, rgb(255 255 255 / 85%), rgb(217 235 248 / 55%));
  box-shadow: 0 2px 8px rgb(22 49 72 / 8%), inset 0 0 0 1px var(--line);
}
.vsel select:hover, .hsel select:hover { box-shadow: 0 2px 8px rgb(22 49 72 / 8%), inset 0 0 0 1.5px var(--cyan); }
.vsel select:focus-visible, .hsel select:focus-visible { outline: 2px solid #245579; outline-offset: 2px; }

/* forecast chart: keep the swipe scrollbar clear of the low temperatures (owner, 2026-11-19) */
.scroll { padding-bottom: 14px; scrollbar-width: thin; }
.scroll::-webkit-scrollbar { height: 6px; }
.scroll::-webkit-scrollbar-thumb { border-radius: 3px; background: rgb(192 224 246 / 0.35); }
.scroll::-webkit-scrollbar-track { background: transparent; }
.srci:empty { display: none; }
/* ---------- radar & snow map (js/snowmap.js; experimental) ---------- */
.smap { margin-top: 30px; background: var(--glass); border-radius: 8px; padding: 20px; box-shadow: var(--glass-hi), var(--glass-sh); }
.smap-head { align-items: center; }
.smap-exp { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e6f0f8; color: var(--blue); font: 600 13px/1.6 var(--font); vertical-align: middle; }
.smap-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.smap-modes button { min-height: 40px; padding: 0 14px; border: 1px solid #b6c3cf; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.smap-modes button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.smap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; margin-bottom: 10px; }
.smap-legend .g { display: inline-block; width: 64px; height: 10px; border-radius: 5px; margin-left: 6px; vertical-align: middle; }
.smap-legend .bins { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: 6px; vertical-align: middle; }
.smap-legend .b { display: inline-flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.2; }
.smap-legend .b i { display: block; width: 30px; height: 10px; }
.smap-frame { position: relative; height: 540px; border-radius: 8px; overflow: hidden; background: #e7ecf0; }
.smap-frame > .smap-map { width: 100%; height: 100%; }  /* maplibregl-map makes it position: relative */
.smap-status { position: absolute; z-index: 3; left: 12px; top: 12px; right: 60px; max-width: 420px; background: #fff; border-radius: 6px; padding: 8px 12px; font-size: 14px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.15); }
.smap-tl { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(620px, calc(100% - 20px)); background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgb(0 0 0 / 0.18); padding: 10px 16px 6px; }
.smap-tl-top { display: flex; align-items: center; gap: 12px; }
.smap-play { flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.smap-when { flex: 1; font: 600 20px/1.1 var(--num); }
.smap-kind { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e6f0f8; color: var(--blue); white-space: nowrap; }
.smap-kind.fc { background: #eef6e8; color: #2f6b2a; }
.smap-track { position: relative; margin: 12px 0 0; }
.smap-slider { width: 100%; margin: 0; accent-color: var(--ink); min-height: 28px; }
.smap-now { position: absolute; top: -12px; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; pointer-events: none; }
.smap-ticks { position: relative; height: 18px; font-size: 12px; color: var(--muted); }
.smap-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.smap-full { position: absolute; z-index: 2; right: 10px; top: 96px; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #b6c3cf; border-radius: 6px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.smap-pin { padding: 5px 8px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 600 13px/1 var(--font); white-space: nowrap; box-shadow: 0 1px 4px rgb(0 0 0 / 0.3); }
.smap-pin.sel { background: var(--blue); }
.smap-pin.dot { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; font-size: 0; }
.smap-lv { border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.smap-lv th, .smap-lv td { padding: 4px 14px 4px 0; text-align: left; }
.smap-lv td { font: 500 18px/1.2 var(--mono); letter-spacing: -0.03em; }
.smap-lv thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.smap-src { margin-top: 10px; }
.maplibregl-popup-content { font: 15px/1.35 var(--font); color: var(--ink); padding: 10px 12px; }
.maplibregl-popup-content .big { font: 500 22px/1.1 var(--mono); letter-spacing: -0.03em; }
.maplibregl-popup-content .smap-lv { margin-top: 6px; font-size: 14px; }
.maplibregl-popup-content p { margin-top: 4px; font-size: 14px; }
@media (max-width: 700px) {
  .smap { padding: 14px; }
  .smap-frame { height: 460px; }
  .smap-when { font-size: 17px; }
}

/* full-map page (map.html) */
.smap-page main { max-width: none; padding: 0; }
.smap-page .smap { margin: 0; border-radius: 0; padding: 12px 16px 16px; box-shadow: none; }
.smap-full-page .smap-frame { height: calc(100dvh - 64px - 200px); min-height: 400px; }
@media (max-width: 700px) { .smap-full-page .smap-frame { height: calc(100dvh - 64px - 250px); } }

/* phones (website and app): full-width Temperature now whatever the road line's length; Whistler's longer
   "Environment Canada" header and Summit/Mid/Base switch stack instead of squeezing (owner, 2026-11-19) */
@media (max-width: 640px) {
  .status { grid-template-columns: minmax(0, 1fr); }
  .p-top { flex-wrap: wrap; row-gap: 10px; }
  .badge { white-space: nowrap; }
  .p-top .range { width: 100%; }
  .p-top .range button { flex: 1; }
}
.tl-src { white-space: nowrap; }
.tl-src .srci { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.tl-src .qm-b { width: 20px; height: 20px; min-height: 0; font-size: 12px; }

/* Resort picker: search (2026-11 expansion) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rd-search { display: block; position: sticky; top: 57px; z-index: 1; padding: 10px 16px 6px; background: #fff; }
.rd-search input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: 500 16px var(--font); color: var(--ink); background: #fff; }
.rd-search input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* Temperature now: forecast estimate where no station reads that level (lighter, labelled "estimate") */
.now-c.est .now-t { color: var(--muted); }
.now-c.est .now-k { font-style: italic; color: var(--muted); }

/* ---------- crawlable pages (pipeline/seo.py prerender inside #app, the static resort list, about, 404) ----------
   app.js replaces .pre with the live page; visitors without JavaScript, search engines and AI assistants read it. */
.pre { padding: 26px 0 20px; max-width: 900px; }
.pre h1 { margin-bottom: 10px; }
.pre > p { margin-top: 8px; }
.pre-total { font-size: 18px; }
.pre-big { font: 500 40px/1 var(--mono); letter-spacing: -0.03em; margin-right: 4px; }
.pre-days { border-collapse: collapse; margin-top: 16px; width: 100%; max-width: 640px; font-size: 15px; }
.pre-days caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 6px; }
.pre-days th, .pre-days td { text-align: left; font-weight: 400; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.pre-days thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
.pre-days td:nth-child(2), .pre-days td:nth-child(3) { font-family: var(--mono); white-space: nowrap; }
.pre-days tr.far { color: var(--muted); }
.pre .src { max-width: 760px; }
.pre-links { font-size: 15px; }
.pre a, .doc a { color: var(--blue); }
@media (max-width: 700px) { .pre h1 { font-size: 42px; } }
.site-foot { padding-bottom: 28px; }
.site-index { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-index h2 { font: 600 14px var(--font); color: var(--muted); margin-bottom: 8px; }
.site-index h3 { font-size: 12px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.si-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; }
.site-index ul { list-style: none; margin: 0; padding: 0; line-height: 1.75; }
.site-index a { color: var(--muted); text-decoration: none; }
.site-index a:hover { color: var(--ink); text-decoration: underline; }
.site-index > p { margin-top: 14px; }
.doc { padding-top: 26px; padding-bottom: 40px; }
.doc article { max-width: 760px; }
.doc h1 { font-size: 44px; margin-bottom: 12px; }
.doc article h2 { font: 600 22px var(--num); margin: 28px 0 6px; }
.doc article p, .doc article li, .doc article dd { line-height: 1.55; }
.doc-lead { font-size: 19px; }
.doc-dl { margin: 0; }
.doc-dl dt { font-weight: 600; margin-top: 14px; }
.doc-dl dd { margin: 2px 0 0; }
.doc article ul { margin: 0; padding-left: 20px; }
.doc article li + li { margin-top: 6px; }
.doc code { font: 500 0.9em var(--mono); }
.doc .site-index { margin-top: 44px; }

/* ---------- Dark mode (trackthesnow, owner 2026-11-20) ----------
   html.dark is set by js/theme.js before the first paint (Light by default; remembered as localStorage "tts-theme";
   ?theme=dark|light overrides). The navy forecast panel stays as it is in both modes. */
html.dark {
  --paper: #0a1120; --ink: #e6edf5; --muted: #8494a8; --line: #1e2a3e; --blue: #38bdf8; --cyan-ink: #38bdf8; --amber-ink: #fbbf24;
  --glass: #111b2d; --glass-hi: inset 0 0 0 1px #1e2a3e; --glass-sh: none;
  color-scheme: dark;
}
html.dark .mast { background: rgb(10 17 32 / 0.78); }
html.dark .mast .units { background: rgb(17 27 45 / 0.8); }
html.dark .units button[aria-pressed="true"] { background: var(--ink); color: #0a1120; }
html.dark a, html.dark .chip a { color: var(--ink); }
html.dark .stab-btn, html.dark .verify a, html.dark .sdates a, html.dark .hist a { color: var(--cyan-ink); }
html.dark .now-k, html.dark .chip, html.dark .av-hint { color: var(--muted); }
html.dark .change, html.dark .actions, html.dark .actions .action { background: #111b2d; color: var(--ink); }
html.dark .change:hover, html.dark .actions .action:hover, html.dark .stab-btn:hover { background: #162238; }
html.dark .actions .action + .action::before { background: #1e2a3e; }
html.dark .panel { box-shadow: inset 0 0 0 1px #1e2a3e; }
html.dark .hstats > div, html.dark .sbox, html.dark .vstats > div { background: #162238; }
html.dark .sdate + .sdate, html.dark .spast { border-color: var(--line); }
html.dark .stab th, html.dark .stab td { border-color: var(--line); }
html.dark #resort-dialog, html.dark #cam-dialog, html.dark .rd-head, html.dark .rd-search, html.dark .qm-tip { background: #111b2d; color: var(--ink); }
html.dark .qm-tip { border-color: var(--line); }
html.dark .rd-item { color: var(--ink); }
html.dark .rd-item[aria-current="page"] { background: #162238; }
html.dark .pre a, html.dark .doc a { color: var(--blue); }
html.dark .site-index a { color: var(--muted); }
html.dark .site-index a:hover { color: var(--ink); }
html.dark .rd-search input, html.dark .cd-close, html.dark .hreset { background: #162238; color: var(--ink); border-color: var(--line); }
html.dark .vsel select, html.dark .hsel select {
  color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 12px 8px no-repeat, #162238;
}
html.dark .vmo { background: #162238; color: var(--ink); border-color: var(--line); }
html.dark .vmo.on { background: #12304a; border-color: var(--cyan); }
html.dark .vkey i.fc, html.dark .vb.fc { background: #111b2d; border-color: var(--ink); }
html.dark .vb.fc i, html.dark .vc.pow .vd { color: var(--ink); }
html.dark .vl-fc { stroke: var(--ink); } html.dark .vend.fc { fill: var(--ink); }
html.dark .vkey i.fc.l { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 8px); }
html.dark .vband.alt { fill: #0e1729; } html.dark .vband:hover { fill: #162238; }
html.dark .hg { stroke: var(--line); } html.dark .hgl { fill: var(--muted); }
html.dark .hrange { fill: #16233a; } html.dark .hmid { fill: #24364f; }
html.dark .hcur, html.dark .hday { stroke: var(--ink); }
html.dark .hkey .k-cur::before { background: var(--ink); } html.dark .hkey .k-range::before { background: #16233a; } html.dark .hkey .k-mid::before { background: #24364f; }
html.dark .sponsor img { filter: invert(1) hue-rotate(180deg); }
html.dark .cam-f { background: #162238; }
html.dark .smap-frame, html.dark .smap-kind { background: #162238; }
html.dark .smap-modes button, html.dark .smap-full { background: #162238; color: var(--ink); border-color: var(--line); }
html.dark .smap-modes button[aria-pressed="true"] { background: var(--ink); color: #0a1120; border-color: var(--ink); }
html.dark .smap-tl, html.dark .smap-status { background: #111b2d; }
html.dark .smap-play { background: var(--ink); color: #0a1120; }
html.dark .smap-pin { background: #0f172a; color: #fff; }
html.dark .smap-pin.sel { background: #0369a1; }
html.dark .maplibregl-popup-content { background: #111b2d; }
html.dark .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, html.dark .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, html.dark .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #111b2d; }
html.dark .maplibregl-popup-anchor-top .maplibregl-popup-tip, html.dark .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, html.dark .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #111b2d; }
html.dark .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #111b2d; }
html.dark .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #111b2d; }
