/* Powder Alert. One system: 4px spacing grid, three radii, SF on Apple
   devices (Inter elsewhere), quiet labels, hairlines instead of borders. */

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;

  --bg: #f2f3f5;
  --card: #ffffff;
  --fill: rgba(118, 128, 150, 0.1);
  --fill-strong: rgba(118, 128, 150, 0.18);
  --hairline: rgba(15, 23, 42, 0.08);
  --ink: #0b1220;
  --ink-2: #4a5263;
  --ink-3: #626a7b;
  --accent: #1f6fd1;
  --accent-tint: rgba(31, 111, 209, 0.1);
  --warn: #c2410c;
  --warn-tint: rgba(234, 88, 12, 0.12);
  --danger: #c0262d;
  --danger-tint: rgba(220, 38, 38, 0.1);
  --good: #15803d;
  --hatch: rgba(0, 0, 0, 0.16);
  --shadow: 0 1px 1px rgba(15, 23, 42, 0.03), 0 6px 24px -6px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 2px 2px rgba(15, 23, 42, 0.04), 0 14px 36px -10px rgba(15, 23, 42, 0.18);

  /* Sequential blue: less to more */
  --s0: #eceef2; --s0-ink: #4a5263;
  --s1: #d4e6fc; --s1-ink: #0b1220;
  --s2: #a7cbf5; --s2-ink: #0b1220;
  --s3: #5c9de8; --s3-ink: #0b1220;
  --s4: #276cc1; --s4-ink: #ffffff;
  --s5: #10437f; --s5-ink: #ffffff;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #0a0e17;
    --card: #131a26;
    --fill: rgba(148, 163, 194, 0.1);
    --fill-strong: rgba(148, 163, 194, 0.18);
    --hairline: rgba(226, 232, 240, 0.08);
    --ink: #eef1f6; --ink-2: #b6bdcb; --ink-3: #8790a3;
    --accent: #7db6f5; --accent-tint: rgba(125, 182, 245, 0.14);
    --warn: #fb923c; --warn-tint: rgba(251, 146, 60, 0.14);
    --danger: #f87171; --danger-tint: rgba(248, 113, 113, 0.14);
    --good: #4ade80;
    --hatch: rgba(255, 255, 255, 0.2);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 28px -10px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    --s0: #1a2232; --s0-ink: #a3abbd;
    --s1: #143b6f; --s1-ink: #eef1f6;
    --s2: #1d5dac; --s2-ink: #eef1f6;
    --s3: #2b79d7; --s3-ink: #ffffff;
    --s4: #6ea8ed; --s4-ink: #0b1220;
    --s5: #b9d5f7; --s5-ink: #0b1220;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e17; --card: #131a26; --fill: rgba(148, 163, 194, 0.1); --fill-strong: rgba(148, 163, 194, 0.18);
  --hairline: rgba(226, 232, 240, 0.08); --ink: #eef1f6; --ink-2: #b6bdcb; --ink-3: #8790a3;
  --accent: #7db6f5; --accent-tint: rgba(125, 182, 245, 0.14); --warn: #fb923c; --warn-tint: rgba(251, 146, 60, 0.14);
  --danger: #f87171; --danger-tint: rgba(248, 113, 113, 0.14); --good: #4ade80; --hatch: rgba(255, 255, 255, 0.2);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 28px -10px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  --s0: #1a2232; --s0-ink: #a3abbd; --s1: #143b6f; --s1-ink: #eef1f6; --s2: #1d5dac; --s2-ink: #eef1f6;
  --s3: #2b79d7; --s3-ink: #ffffff; --s4: #6ea8ed; --s4-ink: #0b1220; --s5: #b9d5f7; --s5-ink: #0b1220;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.47 var(--font); letter-spacing: -0.006em;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, select { font: inherit; letter-spacing: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- nav: frosted, sticks to the top ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  padding-top: env(safe-area-inset-top);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  /* Nearly solid, so numbers scrolling under it don't show through the title and buttons. */
  background: rgba(10, 18, 36, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.12);
}
.nav-in { height: 56px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 17px/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 20px; }
.tabs { display: inline-flex; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.tabs a { color: rgba(235, 242, 255, 0.78); font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 8px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tabs .short { display: none; }
@media (hover: hover) { .tabs a:hover { text-decoration: none; color: #fff; } }
.tabs a[aria-current="true"] { background: rgba(255, 255, 255, 0.2); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.updated { margin-left: auto; font-size: 12px; color: rgba(225, 235, 255, 0.55); }

/* ---------- hero: night sky over the ridgeline ---------- */
.hero {
  position: relative; overflow: hidden; color: #eef4ff;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(120, 170, 255, 0.3), transparent 62%),
    radial-gradient(760px 420px at 0% 0%, rgba(80, 120, 220, 0.22), transparent 60%),
    linear-gradient(180deg, #060b19 0%, #0c1834 55%, #17325c 100%);
  padding: calc(104px + env(safe-area-inset-top)) 0 150px;
}
.snow, .snow::before, .snow::after {
  position: absolute; inset: -200px 0 0 0; pointer-events: none; content: "";
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 90px 120px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(2px 2px at 160px 60px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 230px 170px, rgba(255, 255, 255, 0.4), transparent 60%);
  background-size: 260px 200px;
  animation: fall 16s linear infinite;
}
.snow::before { background-size: 340px 280px; animation-duration: 26s; opacity: 0.55; inset: 0; }
.snow::after { background-size: 190px 150px; animation-duration: 11s; opacity: 0.3; inset: 0; }
@keyframes fall { to { transform: translateY(200px); } }
.ridge { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 152px; display: block; pointer-events: none; }
.ridge .far { fill: #1f3b68; opacity: 0.7; }
.ridge .near { fill: var(--bg); }

/* A headline with nothing beside it (Plan, Resorts): a shorter band, not a tall empty one. */
@media (min-width: 821px) {
  .hero:has(.watch:empty) { padding-top: calc(88px + env(safe-area-inset-top)); padding-bottom: 104px; }
  .hero:has(.watch:empty) .ridge { height: 104px; }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.call { min-width: 0; }
.eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: #a8d4ff; letter-spacing: -0.01em; }
.eyebrow .dot { display: none; }
.eyebrow .back { color: inherit; }
.call h1 {
  margin: 0 0 14px; font: 700 clamp(34px, 5.6vw, 60px)/1.03 var(--font-display);
  letter-spacing: -0.035em; text-wrap: balance;
}
.call h1 em { font-style: normal; background: linear-gradient(92deg, #ffffff 10%, #a8d4ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.call-sub { margin: 0 0 24px; max-width: 560px; color: rgba(225, 235, 255, 0.72); font-size: 17px; line-height: 1.45; letter-spacing: -0.012em; }

/* glass widgets */
.glass, .stat, .tile, .hero-chart {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.18), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  border-radius: var(--r-md);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; max-width: 760px; }
.stats:has(> .stat:nth-child(3):last-child), .stats:has(> .stat[hidden]:last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; min-width: 0; }
.stat > div:last-child { min-width: 0; }
.stats:has(> .stat:nth-child(5)) { max-width: 940px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Wider screens: as many tiles a row as fit at a readable width, so words wrap between words
   ("Last 7 days" over "17\" reported") instead of breaking inside one ("reporte/d"). Phones keep two. */
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats:has(> .stat:nth-child(3):last-child), .stats:has(> .stat[hidden]:last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Five tiles (resort pages): two rows that both fill, three over two, never three and a gap. */
.stats:has(> .stat:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats:has(> .stat:nth-child(5)) > .stat { grid-column: span 2; }
.stats:has(> .stat:nth-child(5)) > .stat:nth-child(n + 4) { grid-column: span 3; }
@media (min-width: 1280px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats:has(> .stat:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats:has(> .stat:nth-child(5)) > .stat, .stats:has(> .stat:nth-child(5)) > .stat:nth-child(n + 4) { grid-column: auto; }
}
.stat[hidden] { display: none; }
a.stat { transition: background 0.2s, transform 0.2s var(--ease); }
a.stat:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; transform: translateY(-1px); }
.stat > svg { width: 20px; height: 20px; flex: none; color: #a8d4ff; }
.stat > .wx { width: 28px; height: 28px; }
.stat .k { font-size: 12px; color: rgba(225, 235, 255, 0.6); font-weight: 500; }
.stat .v { font: 600 19px/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.stat .v small { display: block; margin-top: 2px; font: 400 12px/1.2 var(--font); color: rgba(225, 235, 255, 0.62); letter-spacing: 0; }

.ring {
  --p: 0; --rc: #a8d4ff; width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
}
.ring > b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0e1b38; font: 600 16px/1 var(--font-display); letter-spacing: -0.02em; text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 500; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.15s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: #fff; color: #0b1630; }
.btn svg { width: 16px; height: 16px; }

.hero-links { margin: 0 0 16px; }
.hero-chart { margin-top: 0; padding: 14px 16px 10px; max-width: 680px; }
.hc-head { display: flex; justify-content: space-between; font-size: 12px; color: rgba(225, 235, 255, 0.55); margin-bottom: 8px; }

.watch { display: grid; gap: 10px; }
/* Overview on wide screens: the right-hand cards line up with the stats and the chart, top and bottom. */
@media (min-width: 821px) {
  .hero-grid:has(> .call > .hero-chart) { align-items: start; row-gap: 0; }
  .hero-grid:has(> .call > .hero-chart) > .call { display: contents; }
  .hero-grid:has(> .call > .hero-chart) > .call > * { grid-column: 1; }
  .hero-grid:has(> .call > .hero-chart) .stats, .hero-grid:has(> .call > .hero-chart) .hero-chart { max-width: none; }
  .hero-grid:has(> .call > .hero-chart) > .watch { grid-column: 2; grid-row: 2 / span 2; align-self: stretch; grid-auto-rows: 1fr; }
  /* Left column: two tiles a row until there's room for all four in one, never three and a straggler. */
  .hero-grid:has(> .call > .hero-chart) .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid:has(> .call > .hero-chart) .stats:has(> .stat[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid:has(> .call > .hero-chart) .call h1 { font-size: clamp(34px, 4.4vw, 60px); }
}
@media (min-width: 1280px) {
  .hero-grid:has(> .call > .hero-chart) .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tile { padding: 16px 18px; }
.tile.on { background: linear-gradient(140deg, rgba(168, 212, 255, 0.24), rgba(168, 212, 255, 0.06)); }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: rgba(225, 235, 255, 0.65); }
.t-big { margin-top: 4px; font: 700 28px/1.1 var(--font-display); letter-spacing: -0.03em; }
.t-big small { font: 400 15px var(--font); color: rgba(225, 235, 255, 0.7); letter-spacing: 0; }
.t-sub { margin-top: 2px; font-size: 13px; color: rgba(225, 235, 255, 0.55); }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); white-space: nowrap; }
.tile.on .pill { background: #a8d4ff; color: #0b1630; }
.more { margin-top: 10px; font-size: 13px; }
.more summary { cursor: pointer; color: rgba(225, 235, 255, 0.7); font-weight: 500; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " \203A"; display: inline-block; transition: transform 0.2s; }
.more[open] summary::after { transform: rotate(90deg); }
.bars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.bars li { display: grid; grid-template-columns: 88px 1fr 48px; align-items: center; gap: 10px; color: rgba(225, 235, 255, 0.6); }
.bars .bt { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bars .bt span { display: block; height: 100%; border-radius: 3px; background: rgba(168, 212, 255, 0.4); }
.bars .bv { text-align: right; }
.bars li.hot { color: #fff; }
.bars li.hot .bt span { background: #a8d4ff; }

/* ---------- sections and cards ---------- */
main { position: relative; margin-top: -24px; padding-bottom: 56px; }
.sec { margin-bottom: 40px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 4px 14px; }
.sec-h h2 { margin: 0; font: 700 24px/1.15 var(--font-display); letter-spacing: -0.025em; }
.sec-h p { margin: 4px 0 0; font-size: 15px; color: var(--ink-3); max-width: 640px; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.card.flush { padding: 18px 0 16px; }
.state { padding: 40px 18px; text-align: center; color: var(--ink-3); }
.muted-p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.legend-inline { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sub-h { margin: 0 0 10px; font: 600 15px var(--font-display); letter-spacing: -0.01em; }
.k { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pad { padding: 0; }

/* reveal on scroll */
/* Sections used to fade in on scroll; it made them look dim while scrolling, so they now just show. */
.sec.reveal, .sec.reveal.in { opacity: 1; transform: none; }

/* segmented control, iOS style */
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--fill); }
.seg button { padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-i { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.chip-i b { color: var(--ink); font-weight: 600; }
.chip-i svg { width: 13px; height: 13px; }
.chip-i .wx { width: 16px; height: 16px; }
.chip-i.fresh { background: var(--accent-tint); }
.chip-i.warn { background: var(--danger-tint); color: var(--danger); }
.chip-i.warn b { color: var(--danger); }
.chip-i.closed { color: var(--ink-3); }

/* score rings on light surfaces */
.ring.sm { width: 44px; height: 44px; background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--fill-strong) 0); }
.ring.sm > b { width: 36px; height: 36px; background: var(--card); color: var(--ink); font-size: 15px; }
.r0 { --rc: var(--ink-3); } .r1 { --rc: var(--s2); } .r2 { --rc: var(--s2); } .r3 { --rc: var(--s3); } .r4 { --rc: var(--s4); } .r5 { --rc: var(--s5); }
.wx { width: 22px; height: 22px; flex: none; vertical-align: middle; }

/* snow-quality tags */
.q { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.q-blower { background: rgba(56, 160, 255, 0.16); color: #1366b8; }
.q-light { background: rgba(99, 132, 255, 0.14); color: #3451b2; }
.q-classic { background: var(--fill); color: var(--ink-2); }
.q-dense { background: var(--warn-tint); color: var(--warn); }
.q-wet { background: var(--danger-tint); color: var(--danger); }
:root[data-theme="dark"] .q-blower, :root[data-theme="dark"] .q-light { color: #a8d4ff; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .q-blower, :root:where(:not([data-theme="light"])) .q-light { color: #a8d4ff; } }

/* resort logos: app-icon tiles */
.logo { --s: 32px; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.26); background: #fff; box-shadow: 0 0 0 0.5px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.08); overflow: hidden; }
.logo img { width: 78%; height: 78%; object-fit: contain; }
.logo.sm { --s: 22px; }
.logo.lg { --s: 56px; }
.logo.mono { background: #12305a; color: #fff; font: 700 calc(var(--s) * 0.38) var(--font-display); letter-spacing: -0.03em; }
.call .logo.lg { margin-bottom: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }

/* ---------- charts ---------- */
.chart .spark { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: 3px; height: 52px; align-items: end; }
.chart.tall .spark { height: 104px; }
.sb { height: 100%; display: flex; align-items: flex-end; border-radius: 5px; position: relative; cursor: crosshair; transition: background 0.15s; }
.sb i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: var(--s3); transition: filter 0.15s; }
.sb.past i { background: var(--s2); }
.sb::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--fill-strong); }
.sb:hover { background: var(--accent-tint); }
.sb.sel i { background: var(--accent); }
.sb.sel::before { background: var(--accent); height: 3px; }
.letters { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: 3px; margin-top: 5px; font-size: 10px; color: var(--ink-3); text-align: center; }
.letters span.now { color: var(--ink); font-weight: 600; }
.letters span.sel { color: var(--accent); font-weight: 700; }
.chart.dark .sb i { background: #a8d4ff; }
.chart.dark .sb.past i { background: rgba(168, 212, 255, 0.4); }
.chart.dark .sb::before { background: rgba(255, 255, 255, 0.12); }
.chart.dark .sb:hover { background: rgba(255, 255, 255, 0.08); }
.chart.dark .letters { color: rgba(225, 235, 255, 0.5); }
.chart.dark .letters span.now { color: #fff; }

.b0 { background: var(--s0); color: var(--s0-ink); }
.b1 { background: var(--s1); color: var(--s1-ink); }
.b2 { background: var(--s2); color: var(--s2-ink); }
.b3 { background: var(--s3); color: var(--s3-ink); }
.b4 { background: var(--s4); color: var(--s4-ink); font-weight: 600; }
.b5 { background: var(--s5); color: var(--s5-ink); font-weight: 700; }

#tip {
  position: fixed; z-index: 30; pointer-events: none; display: none; max-width: 360px;
  padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.4;
  background: rgba(20, 26, 40, 0.88); color: #f1f5fb;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
}
#tip b { display: block; font-size: 13px; }
#tip .muted { color: rgba(241, 245, 251, 0.6); }
#tip table { min-width: 0; padding: 0; border-spacing: 0; margin-top: 4px; }
#tip td { font-size: 12px; padding: 0; }
#tip td + td { text-align: right; padding-left: 12px; }
/* Score tooltip: name and score on top, then five fact tiles rated good to bad (web/day-facts.ts). */
#tip .tip-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#tip .tip-h .muted { display: block; font-size: 11.5px; }
#tip .tip-sc { flex: none; padding: 3px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--rc); color: #fff; }
#tip .tip-sc.r0, #tip .tip-sc.r1 { color: #0e1b38; }
#tip .fts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 336px; max-width: 100%; margin-top: 10px; }
#tip .ft { display: flex; flex-direction: column; gap: 1px; padding: 0 6px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
#tip .ft i { display: block; height: 3px; margin: 0 -6px 5px; background: rgba(255, 255, 255, 0.25); }
#tip .ft-k { font-size: 10.5px; color: rgba(241, 245, 251, 0.65); }
#tip .ft b { font-size: 14px; white-space: nowrap; }
#tip .ft-w { font-size: 11px; font-weight: 600; color: rgba(241, 245, 251, 0.65); }
#tip .ft.good i { background: #5ad38a; } #tip .ft.good .ft-w { color: #5ad38a; }
#tip .ft.ok i { background: #f2c14e; } #tip .ft.ok .ft-w { color: #f2c14e; }
#tip .ft.bad i { background: #ff7b72; } #tip .ft.bad .ft-w { color: #ff7b72; }
#tip .ft-note { display: block; margin-top: 8px; color: rgba(241, 245, 251, 0.75); }

/* ---------- powder chase ---------- */
.chase.quiet { padding: 18px 24px; }
.chase.quiet .muted-p { margin: 0; }
.chase-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-bottom: 20px; }
.chase-call, .chase-total { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); }
.chase-call { background: linear-gradient(140deg, var(--accent-tint), var(--fill)); }
.chase-call > b, .chase-total > b { font: 700 24px/1.15 var(--font-display); letter-spacing: -0.025em; }
.chase-call span:last-child, .chase-total span:last-child { font-size: 13px; color: var(--ink-2); }
.chase-days { display: flex; gap: 8px; }
.cd { border: 0; font-family: inherit; cursor: pointer; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border-radius: var(--r-md); background: var(--fill); color: inherit; font-size: 12px; font-weight: 500; transition: transform 0.2s var(--ease); }
.cd:hover { text-decoration: none; transform: translateY(-1px); }
.cd.on { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cd small { color: var(--ink-3); font-weight: 400; }
.cd .ring.sm b { background: var(--card); }
.heat { display: grid; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.hrow { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; color: inherit; }
.hrow:hover { text-decoration: none; }
.hrow:hover .hl b { color: var(--accent); }
.hl { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; font-size: 12px; line-height: 1.3; }
.hl .logo { grid-row: span 2; }
.hl b { font-weight: 600; font-size: 13px; }
.hl span { color: var(--ink-3); }
.hcells { display: grid; grid-template-columns: repeat(var(--n), minmax(9px, 1fr)); gap: 2px; min-width: 0; }
.hc { height: 24px; border-radius: 4px; position: relative; cursor: crosshair; }
.hc.night::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; border-radius: 0 0 4px 4px; background: rgba(60, 80, 140, 0.35); pointer-events: none; }
.hc.day0 { box-shadow: -2px 0 0 0 var(--ink-3); }
.hc.dim { opacity: 0.35; }
.hc.sel { outline: 1px solid rgba(80, 140, 255, 0.35); outline-offset: -1px; }
.hrow.head .hcells { align-items: end; }
.th { font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: visible; height: 14px; }
.th b { color: var(--ink); font-weight: 600; }

/* crowds */
.crowd { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: help; background: var(--fill); color: var(--ink-2); }
.crowd svg { width: 13px; height: 13px; }
.crowd-quiet { color: var(--good); background: rgba(34, 197, 94, 0.12); }
.crowd-busy { color: var(--warn); background: var(--warn-tint); }
.crowd-packed { color: var(--danger); background: var(--danger-tint); }
.trip .nm .crowd { margin-left: 6px; font-size: 11px; padding: 2px 7px; vertical-align: 1px; }
.wday .crowd { font-size: 11px; padding: 2px 7px; }

/* model agreement */
.conf { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: var(--fill); color: var(--ink-2); cursor: help; }
.conf i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.conf-high { color: var(--good); background: rgba(34, 197, 94, 0.12); }
.conf-medium { color: var(--warn); background: var(--warn-tint); }
.conf-low { color: var(--danger); background: var(--danger-tint); }
/* Three or more days out: no confidence claim, so no traffic-light color. */
.conf-early { color: var(--ink-2); background: var(--fill); }
.models-h { margin-top: 26px; }
.models { display: grid; gap: 4px; }
.mrow { display: grid; grid-template-columns: 140px 1fr 190px; gap: 14px; align-items: center; min-height: 40px; }
.mrow.solo { margin-top: 16px; grid-template-columns: 170px 1fr 190px; }
.ml { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ml b { font-weight: 600; }
.mr { text-align: right; }
.mdots { position: relative; height: 26px; border-radius: 13px; background: var(--fill); }
.mrange { position: absolute; top: 9px; height: 8px; border-radius: 4px; background: var(--accent-tint); }
.mdot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); z-index: 1; cursor: help; }
.mdot b { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 600; color: var(--ink-3); white-space: nowrap; opacity: 0; transition: opacity 0.15s; }
.mdots:hover .mdot b { opacity: 1; }
.mdot.nws { background: var(--ink); }

/* ---------- behind the forecast (resort page) ---------- */
.src-card { display: grid; gap: 0; }
.src-block + .src-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.src-big { margin: 0; font-size: 15px; color: var(--ink-2); }
.src-big b { font: 600 22px var(--font-display); color: var(--ink); letter-spacing: -0.02em; margin-right: 2px; }
.src-likely { color: var(--ink); }
.src-card .mrow.solo { margin: 14px 0 0; grid-template-columns: 90px 1fr 110px; }
.src-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.src-stats > div { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.src-stats b { font: 600 19px var(--font-display); letter-spacing: -0.02em; }
.afd-list, .afd-warn { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.afd-warn { margin-bottom: 12px; padding: 10px 12px 10px 28px; border-radius: 12px; background: var(--warn-tint); color: var(--ink); font-size: 14px; }
.src-card .legend-inline a { color: inherit; text-decoration: underline; }
.src-card .legend-inline { display: block; }
.src-list { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-2); }
.src-list span { background: var(--fill); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.src-list b { font-weight: 600; color: var(--ink); margin-right: 2px; }
@media (max-width: 600px) {
  .src-card .mrow.solo { grid-template-columns: 1fr; gap: 6px; }
  .src-card .mrow.solo .mr { text-align: left; }
}

/* ---------- trip planner ---------- */
.trip-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.select {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  padding: 8px 34px 8px 14px; border-radius: 10px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a8293' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.select:hover { background-color: var(--fill-strong); }
.trip-days { display: flex; gap: 6px; flex-wrap: wrap; }
.trip-days button { border: 0; cursor: pointer; padding: 7px 12px; border-radius: 10px; background: var(--fill); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.trip-days button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.trip-best { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); background: linear-gradient(140deg, var(--accent-tint), var(--fill)); margin-bottom: 14px; }
.trip-best > div > b { font: 600 18px/1.3 var(--font-display); letter-spacing: -0.015em; }
.trip-best p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.trip-best .ring.sm { width: 56px; height: 56px; }
.trip-best .ring.sm b { width: 46px; height: 46px; font-size: 18px; background: var(--card); }
.trips { list-style: none; margin: 0; padding: 0; }
.trip { display: grid; grid-template-columns: 36px minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)) 48px; gap: 12px; align-items: center; padding: 11px 0; border-top: 0.5px solid var(--hairline); font-size: 14px; }
.trip:first-child { border-top: 0; }
.trip[data-pick] { cursor: pointer; border-radius: 10px; transition: background 0.15s; }
.trip[data-pick]:hover { background: var(--fill); }
.trip.picked { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.trip.head { font-size: 12px; color: var(--ink-3); font-weight: 500; padding-top: 0; }
.trip .n { color: var(--ink-3); font-size: 13px; text-align: center; }
.trip .nm a b { font-weight: 600; }
.trip .nm small { display: block; font-size: 12px; color: var(--ink-3); }
.trip .v small { display: block; font-size: 12px; color: var(--ink-3); }
.trip .v .late { color: var(--warn); }
.trip.off { opacity: 0.55; }
.trip .ring.sm { width: 40px; height: 40px; }
.trip .ring.sm b { width: 32px; height: 32px; font-size: 14px; }

/* ---------- day by day ---------- */
.d-dow { display: block; font-size: 14px; font-weight: 600; }
.d-date { display: block; font-size: 12px; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lbl-pill { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--rc); }
.lbl-pill.r0, .lbl-pill.r1, .lbl-pill.r2 { color: var(--ink); background: var(--s1); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 14px 18px 2px; }
.rc { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--r-md); background: var(--fill); transition: background 0.2s, transform 0.2s var(--ease); }
.rc:hover { background: var(--fill-strong); }
.rc.top { background: linear-gradient(160deg, var(--accent-tint), var(--fill) 70%); }
.rc.off { opacity: 0.55; }
.rc header { display: flex; align-items: center; gap: 10px; }
.rank { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--fill-strong); color: var(--ink-2); }
.rc.top .rank { background: var(--accent); color: #fff; }
.rn { flex: 1; min-width: 0; }
.rn h4 { margin: 0; font: 600 16px var(--font-display); letter-spacing: -0.015em; }
.rn h4 a { color: inherit; }
.pass { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.rc .ring.sm b { background: var(--card); }
.rc .why { margin: 0; font-size: 12px; color: var(--ink-3); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.acts a, .acts button {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink); font-size: 12px; font-weight: 500; box-shadow: 0 0 0 0.5px var(--hairline);
  transition: background 0.2s, color 0.2s;
}
.acts a:hover, .acts button:hover { text-decoration: none; color: var(--accent); }
.acts button[aria-expanded="true"] { background: var(--accent); color: #fff; }
.acts svg { width: 14px; height: 14px; }

/* ---------- this week grid ---------- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 660px; padding: 0 15px; }
th, td { font-size: 13px; }
thead th { padding: 0 2px 6px; color: var(--ink-3); font-weight: 400; text-align: center; white-space: nowrap; }
thead th .dow { display: block; color: var(--ink-2); font-weight: 600; }
thead th.resort-h { text-align: left; padding-left: 0; }
tbody th { position: sticky; left: 0; z-index: 1; padding: 0 10px 0 0; background: var(--card); text-align: left; font-weight: 600; white-space: nowrap; }
tbody th a { color: var(--ink); }
.gr { display: flex; align-items: center; gap: 10px; }
.nm-short { display: none; }
td.cell { position: relative; height: 40px; min-width: 52px; border-radius: 8px; text-align: center; cursor: default; }
td.cell.today { opacity: 0.55; }
td.cell.blackout::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px); pointer-events: none; }
td.num { padding: 0 2px 0 10px; text-align: right; font-weight: 600; white-space: nowrap; }
td.night { padding: 0 8px; text-align: center; white-space: nowrap; color: var(--ink-2); }
td.night.hit { color: var(--good); font-weight: 600; }
thead th.night-h, thead th.num-h { color: var(--ink-2); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 22px 0; font-size: 12px; color: var(--ink-3); }
.legend .ramp { display: inline-flex; gap: 2px; align-items: center; }
.legend .sw { display: inline-block; width: 30px; height: 14px; border-radius: 4px; font-size: 10px; text-align: center; line-height: 14px; }
.legend .hatched { position: relative; background: var(--s0); }
.legend .hatched::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 6px); }

/* ---------- roads ---------- */
.rt-now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.rtn { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); }
.rtn span { font-size: 12px; color: var(--ink-3); }
.rtn b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.rtn small { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rtn.b2 small, .rtn.b3 small { color: #b26b00; }
.rtn.b4 small, .rtn.b5 small, .rtn.b6 small { color: #c2372b; }
.alerts.compact { margin: 16px 0 6px; }
.ok-line { margin: 16px 0 6px; font-size: 14px; color: var(--ink-2); }
.more-cond.inline { display: inline; }
#roads .more-cond { margin: 10px 0 0; }
#roads .sub-h { margin-top: 22px; }
.roads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.alerts, .goi { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.al { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; font-size: 14px; }
.al b { font-weight: 500; }
.al small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); }
.al-k { padding: 3px 0; border-radius: 6px; background: var(--fill); color: var(--ink-2); font-size: 11px; font-weight: 600; text-align: center; }
.al-closure .al-k { background: var(--danger-tint); color: var(--danger); }
.al-chainLaw .al-k, .al-jam .al-k { background: var(--warn-tint); color: var(--warn); }
.more-cond { margin: 4px 0 10px; font-size: 14px; }
.more-cond summary { cursor: pointer; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.goi li { display: grid; grid-template-columns: 108px 1fr; gap: 12px; font-size: 14px; }
.goi b { font-weight: 600; }
.goi span { color: var(--ink-2); }
.cam-map { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 500; }
.curve-block { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; margin: 8px 0; }
.cb-l { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.curve { min-width: 0; }
.cv-row, .cv-labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.cv { height: 30px; border-radius: 6px; display: grid; place-items: center; cursor: crosshair; }
.cv i { font-style: normal; font-size: 10px; font-weight: 600; }
.cv.mark { box-shadow: inset 0 0 0 2px var(--accent); }
.cv-labels span { font-size: 10px; color: var(--ink-3); white-space: nowrap; }

.tt { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
.tt li { display: grid; grid-template-columns: 52px 1fr auto 64px; gap: 12px; align-items: center; padding: 8px 0; border-top: 0.5px solid var(--hairline); font-size: 14px; }
.tt li:first-child { border-top: 0; }
.tt-dir { font-size: 12px; color: var(--ink-3); }
.tt-x { text-align: center; padding: 3px 0; border-radius: 8px; font-size: 12px; font-weight: 600; }

/* ---------- accuracy ---------- */
.acc { width: 100%; min-width: 0; padding: 0; border-collapse: collapse; font-size: 14px; }
.acc th, .acc td { padding: 9px 10px 9px 0; border-top: 0.5px solid var(--hairline); text-align: left; font-weight: 400; }
.acc thead th { border-top: 0; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.acc th a { color: var(--ink); font-weight: 500; }
.acc-bars { width: 36%; }
.ab { display: block; height: 5px; margin: 2px 0; border-radius: 3px; }
.ab.rep { background: var(--accent); }
.ab.fc { background: var(--s2); }
.legend-inline .ab { display: inline-block; width: 18px; }

/* ---------- resorts ---------- */
.resort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rtile {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg);
  background: var(--card); color: inherit; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rtile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rt-head { display: flex; justify-content: space-between; gap: 8px; }
.rt-name { display: block; font: 600 17px var(--font-display); letter-spacing: -0.015em; }
.rt-rings { display: flex; gap: 8px; }
.rt-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mini small { font-size: 11px; color: var(--ink-3); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 6px; border-radius: var(--r-md); background: var(--fill); text-align: center; }
.wday.best { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.wday .ring.sm b { background: var(--card); }
.wday .wx { width: 28px; height: 28px; }
.wl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.wv { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-2); }
.wv svg { width: 12px; height: 12px; }
.wv.warn { color: var(--danger); font-weight: 600; }
.lifts { display: flex; flex-wrap: wrap; gap: 6px; }
.lift { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--fill); font-size: 13px; }
.lift i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.lift.open i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.lift.hold i { background: #f59e0b; }
.lift.scheduled i { background: var(--s3); }
.lift.closed { color: var(--ink-3); }

/* season */
.season-rows { display: grid; gap: 2px; }
.srow { display: grid; grid-template-columns: 22px 100px 1fr 120px 120px 170px; gap: 12px; align-items: center; padding: 8px 0; border-top: 0.5px solid var(--hairline); color: inherit; font-size: 13px; }
.srow:first-child { border-top: 0; }
.srow:hover { text-decoration: none; }
.srow:hover .sn { color: var(--accent); }
.sn { font-weight: 600; }
.sbar { position: relative; height: 10px; border-radius: 5px; background: var(--fill); }
.sfill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.sfill.below { background: var(--s2); }
.sfill.near { background: var(--s3); }
.sfill.above { background: var(--s4); }
.snorm { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: 0.55; z-index: 1; }
.sv { color: var(--ink-3); white-space: nowrap; }
.sv b { color: var(--ink); font-weight: 600; }
.season-chart { width: 100%; height: auto; display: block; }
.sc-t { font-size: 10px; fill: var(--ink-3); }
.sc-g { stroke: var(--hairline); stroke-width: 1; }
.sc-band { fill: var(--accent-tint); }
.sc-avg { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sc-now { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.sc-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.lk { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; }
.lk.now { background: var(--accent); }
.lk.avg { background: var(--ink-3); }
.lk.band { height: 8px; background: var(--accent-tint); }

/* road cams */
.cam-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#resort-page .cam-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cam { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-md); background: #0d1a36; }
.cam img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.cam:hover img { transform: scale(1.03); }
.cam span { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 6px; padding: 18px 10px 7px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.cam span b { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-size: 10px; }
.cam-none { margin: 0; font-size: 13px; color: var(--ink-3); }
.cams-panel:not([hidden]) { margin-top: 2px; }

footer { padding: 8px 4px 0; font-size: 12px; color: var(--ink-3); }
footer p { margin: 4px 0; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { padding-bottom: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .week-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 96px; overflow-x: auto; }
  .roads-grid { grid-template-columns: 1fr; }
  .rt-now { grid-template-columns: 1fr 1fr; }
  .curve-block { grid-template-columns: 1fr; gap: 6px; }
  .cv i { display: none; }
  .chase-top { grid-template-columns: 1fr 1fr; }
  .chase-days { grid-column: 1 / -1; }
  .hrow { grid-template-columns: 86px 1fr; gap: 8px; }
  .hcells { grid-template-columns: repeat(var(--n), minmax(7px, 1fr)); }
  .trip { grid-template-columns: 34px minmax(0, 1fr) 44px; row-gap: 4px; column-gap: 10px; }
  .stats:has(> .stat:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two a row: the fifth tile takes the whole last row instead of sitting alone on the left. */
  .stats:has(> .stat:nth-child(5)) > .stat, .stats:has(> .stat:nth-child(5)) > .stat:nth-child(n + 4) { grid-column: auto; }
  .stats:has(> .stat:nth-child(5)) > .stat:nth-child(5):last-child { grid-column: 1 / -1; }
  .trip .n { align-self: start; padding-top: 2px; }
  .trip .v { display: none; }
  .trip .v.keep { display: block; grid-column: 2 / 3; grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .trip .v.keep small { display: inline; margin-left: 4px; }
  .trip .ring { grid-column: 3; grid-row: 1 / span 2; }
  .cv-labels .odd { visibility: hidden; }
  .trip.head { display: none; }
  .updated { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-in { gap: 10px; }
  .brand span, .brand { font-size: 0; gap: 0; }
  .brand svg { width: 42px; height: 22px; }
  .tabs { flex: 1; justify-content: space-between; }
  .tabs a { padding: 6px 10px; }
  .tabs .full { display: none; }
  .tabs .short { display: inline; }
  .stat { padding: 10px 12px; gap: 10px; }
  .stat .ring { width: 40px; height: 40px; }
  .stat .ring > b { width: 33px; height: 33px; font-size: 14px; }
  .stat .v { font-size: 17px; }
  .card { padding: 18px; border-radius: 20px; }
  .card.flush { padding: 14px 0 12px; }
  .cards-grid { grid-template-columns: 1fr; padding: 12px 14px 2px; }
  .legend { padding: 12px 16px 0; }
  .sec-h h2 { font-size: 22px; }
  .stats, .stats:has(> .stat:nth-child(3):last-child), .stats:has(> .stat[hidden]:last-child) { grid-template-columns: 1fr 1fr; }
  #resort-page .cam-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table { min-width: 0; padding: 0 8px; }
  th, td { font-size: 12px; }
  td.cell { height: 34px; min-width: 30px; }
  tbody th { max-width: 96px; padding-right: 6px; white-space: normal; line-height: 1.2; }
  .trip-controls { gap: 12px; }
  .mrow, .mrow.solo { grid-template-columns: 1fr; gap: 6px; }
  .srow { grid-template-columns: 22px 1fr auto; row-gap: 6px; }
  .srow .sbar { grid-column: 1 / -1; order: 5; }
  .srow .sv { display: none; }
  .srow .sv-pct { display: block; }
  .mr { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .snow, .snow::before, .snow::after { animation: none; }
  .sec.reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Your mountains sheet ---------- */
.nav-set { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; flex: none; }
.nav-set:hover { background: rgba(255, 255, 255, 0.2); }
.nav-set svg { width: 17px; height: 17px; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.sec-h .btn, .sheet .btn, .map-h .btn, .ml-h .btn { background: var(--fill); color: var(--ink); }
.sec-h .btn:hover, .sheet .btn:hover, .map-h .btn:hover, .ml-h .btn:hover { background: var(--fill-strong); }
.sec-h .btn.primary, .sheet .btn.primary { background: var(--accent); color: #fff; }
.state-h { margin: 18px 0 10px; }
.sheet { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.sheet::backdrop { background: rgba(6, 11, 25, 0.5); backdrop-filter: blur(4px); }
.sheet-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 0.5px solid var(--hairline); }
.sheet-h h2 { margin: 0; font: 600 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.sheet-b { padding: 4px 20px 24px; }
.set-sec { padding: 16px 0; border-bottom: 0.5px solid var(--hairline); }
.set-sec:last-child { border-bottom: 0; }
.set-sec h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.set-sec h3 .k { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.zip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.zip-now { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; margin-right: auto; }
.zip-now svg { width: 16px; height: 16px; color: var(--accent); }
.zip-row input { width: 110px; padding: 8px 12px; border-radius: 10px; border: 0.5px solid var(--hairline); background: var(--fill); color: var(--ink); font: inherit; font-size: 15px; }
.zip-msg { min-height: 1em; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip-btn { border: 0; padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.chip-btn:hover { background: var(--fill-strong); }
.set-state { margin: 16px 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.pick { list-style: none; margin: 0; padding: 0; }
.pick label { display: grid; grid-template-columns: 20px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; cursor: pointer; }
.pick label:hover { background: var(--fill); }
.pick input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.pk-n { display: flex; flex-direction: column; min-width: 0; }
.pk-n b { font-weight: 500; font-size: 14px; }
.pk-n small { font-size: 12px; color: var(--ink-3); overflow-wrap: break-word; }
.pk-d { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}

.curve { position: relative; }
.cv-quiet { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: grid; place-items: center; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.trip-warn { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--warn-tint); color: var(--warn); font-size: 14px; font-weight: 500; }
.acc-h { margin: 26px 0 4px; font-size: 15px; font-weight: 600; }
.acc.skill th small { margin-left: 6px; color: var(--ink-3); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.acc.skill tr.best th { font-weight: 600; }
.canyons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 8px; }
.canyon { padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); min-width: 0; }
.canyon.warn { box-shadow: inset 3px 0 0 #b26b00; }
.canyon.closed { box-shadow: inset 3px 0 0 #c2372b; }
.cy-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cy-h small { display: block; color: var(--ink-3); font-size: 12px; }
.cy-t { text-align: right; flex: none; }
.cy-t b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.cy-t small { display: block; color: var(--ink-3); font-size: 11px; }
.cy-s { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.canyon.warn .cy-s { color: #b26b00; }
.canyon.closed .cy-s { color: #c2372b; }
.cy-n { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--ink-2); }
.cy-n li + li { margin-top: 3px; }
.cam-h { margin: 4px 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.cam-h ~ .cam-h { margin-top: 16px; }

/* ---------- Your mountains: passes, states, resorts ---------- */
.set-sec h3 { display: flex; align-items: center; gap: 8px; }
.step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: 11px; font-weight: 700; }
.set-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.set-acts { display: flex; gap: 6px; }
.pass-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ptile, .stile, .rpick { position: relative; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; background: var(--fill); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.15s, background 0.15s, transform 0.1s; }
.ptile:active, .stile:active, .rpick:active { transform: scale(0.98); }
.ptile:hover, .stile:hover, .rpick:hover { background: var(--fill-strong); }
.ptile[aria-pressed="true"], .stile[aria-pressed="true"], .rpick[aria-pressed="true"] { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ptile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 14px; min-width: 0; }
.ptile b, .stile b { font-size: 14px; font-weight: 600; margin-top: 8px; }
.ptile small, .stile small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.pm { display: inline-grid; place-items: center; height: 30px; min-width: 56px; padding: 0 10px; border-radius: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.14em; }
.pm-ikon { background: #0c0c0c; color: #fff; letter-spacing: 0.22em; }
.pm-epic { background: linear-gradient(135deg, #0d2c54, #1c4f8c); color: #fff; font-style: italic; letter-spacing: 0.1em; }
.pm-ind { background: linear-gradient(135deg, #2d7d6f, #4fae9b); color: #fff; }
.pm-ind svg { width: 16px; height: 16px; }
.pm-all { background: var(--ink); color: var(--card); }
.ptile[aria-pressed="false"] .pm { opacity: 0.45; filter: grayscale(0.6); }
.state-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stile { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 12px 12px; border-radius: 14px; min-width: 0; }
.stile svg { width: 100%; height: 96px; }
.stile path { fill: var(--card); stroke: var(--ink-3); stroke-width: 1.2; stroke-linejoin: round; transition: fill 0.15s, stroke 0.15s; }
.stile[aria-pressed="true"] path { fill: color-mix(in srgb, var(--accent) 16%, var(--card)); stroke: var(--accent); }
.stile circle { fill: var(--ink-3); opacity: 0.5; }
.stile circle.on { fill: var(--accent); opacity: 1; stroke: var(--card); stroke-width: 1; }
.stile .home { fill: #e0533d; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rpick { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.rpick .pk-n b { font-size: 14px; font-weight: 500; }
.tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tick svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.rpick[aria-pressed="true"] .tick { background: var(--accent); box-shadow: none; }
.rpick[aria-pressed="true"] .tick svg { opacity: 1; }
:root[data-theme="dark"] .rpick[aria-pressed="true"] .tick svg { stroke: #0a0e17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rpick[aria-pressed="true"] .tick svg { stroke: #0a0e17; } }
@media (max-width: 640px) {
  .pass-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: 1fr; }
  .stile svg { height: 64px; }
  .stile { padding: 10px; }
}
:root[data-theme="dark"] .sheet .btn.primary { color: #0a0e17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sheet .btn.primary { color: #0a0e17; } }

/* ---------- phone tab bar ---------- */
.tabs .ti { display: none; }
@media (max-width: 600px) {
  .tabs {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-radius: 0;
    background: rgba(10, 18, 36, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -0.5px 0 rgba(255, 255, 255, 0.14);
  }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: rgba(225, 235, 255, 0.62); border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .tabs a[aria-current="true"] { background: none; box-shadow: none; color: #ffffff; font-weight: 600; }
  /* The icon sits in a soft pill that lights up for the page you're on. */
  .tabs .ti { display: block; width: 22px; height: 22px; padding: 4px 18px; box-sizing: content-box; border-radius: 15px; transition: background 0.2s, color 0.2s; }
  .tabs a[aria-current="true"] .ti { background: rgba(168, 212, 255, 0.14); color: #a8d4ff; }
  .tabs a:active .ti { background: rgba(168, 212, 255, 0.12); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nav-in { justify-content: space-between; }
  .brand { font-size: 17px; gap: 8px; }
}

/* ---------- Tomorrow card ---------- */
.next-sec { margin-top: -96px; position: relative; z-index: 2; }
.card.next { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 24px 26px; }
.nx-eye { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.nx-eye span { color: var(--ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.nx-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.nx-name h2 { margin: 0; font: 700 clamp(24px, 3.2vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.nx-name h2 a { color: var(--ink); }
.nx-name p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.nx-pick .ring.big { width: 68px; height: 68px; }
.nx-pick .ring.big > b { width: 56px; height: 56px; font-size: 24px; }
.nx-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 20px 0 18px; }
.nf { display: flex; gap: 8px; padding: 12px; border-radius: 14px; background: var(--fill); min-width: 0; }
.nf > svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.nf > div { display: flex; flex-direction: column; min-width: 0; }
.nf .k { font-size: 11.5px; color: var(--ink-3); }
.nf b { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: break-word; }
.nf b small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.nf > div > small { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
.nf.warn { background: var(--warn-tint); }
.nf.warn > svg, .nf.warn b { color: var(--warn); }
.card.next .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card.next .btn { background: var(--fill); color: var(--ink); }
.card.next .btn.primary { background: var(--accent); color: #fff; }
.nx-side { border-left: 0.5px solid var(--hairline); padding-left: 24px; display: flex; flex-direction: column; gap: 4px; }
.nx-side .k { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.nx-alt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 12px; color: var(--ink); }
.nx-alt:hover { background: var(--fill); text-decoration: none; }
.nx-alt span { display: flex; flex-direction: column; min-width: 0; }
.nx-alt b { font-size: 14px; font-weight: 550; }
.nx-alt small { font-size: 12px; color: var(--ink-3); overflow-wrap: break-word; }
@media (max-width: 900px) {
  .card.next { grid-template-columns: 1fr; gap: 18px; }
  .nx-side { border-left: 0; padding-left: 0; border-top: 0.5px solid var(--hairline); padding-top: 14px; }
  .nx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-facts .nf:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .next-sec { margin-top: -84px; }
  .card.next { padding: 18px; }
  .nx-pick { gap: 12px; }
  .nx-pick .logo.lg { display: none; }
  .nx-pick { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- folded chips ---------- */
.chip-more { margin: -4px 0 2px; }
.chip-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 2px 0; }
.chip-more summary::-webkit-details-marker { display: none; }
.chip-more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.chip-more[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.chip-more .chips { margin-top: 8px; }

/* ---------- Resorts map ---------- */
.map-card { margin-bottom: 22px; }
.lmap { --s0: #eceef2; --s0-ink: #4a5263; --s1: #d4e6fc; --s1-ink: #0b1220; --s2: #a7cbf5; --s2-ink: #0b1220; --s3: #5c9de8; --s3-ink: #0b1220; --s4: #276cc1; --s4-ink: #ffffff; --s5: #10437f; --s5-ink: #ffffff; }
/* The basemap is light in both themes, so the dots keep the light palette. */
.lmap { height: 460px; border-radius: 14px; overflow: hidden; background: var(--fill); z-index: 0; }
@media (max-width: 600px) { .lmap { height: 360px; } }
.lmap .leaflet-control-attribution { font-size: 10px; }
:root[data-theme="dark"] .lmap .leaflet-tile-pane { filter: brightness(0.82) saturate(0.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lmap .leaflet-tile-pane { filter: brightness(0.82) saturate(0.85); } }
.pin-wrap { background: none; border: 0; }
.pin { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); font: 700 12px/1 var(--font); text-decoration: none; cursor: pointer; padding: 0; }
.pin:hover { text-decoration: none; transform: scale(1.08); }
.pin.off { background: #9aa3b5; width: 14px; height: 14px; inset: 7px; }
.pin.grp { font-size: 13px; }
.pin.grp i { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #0b1220; color: #fff; font: 700 10.5px/18px var(--font); font-style: normal; border: 1.5px solid #fff; }
.pin-l { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 12.5px/1 var(--font); color: #0b1220; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; pointer-events: none; }
.pin-l.r { left: 34px; } .pin-l.l { right: 34px; }
.pin-home { display: block; width: 12px; height: 12px; background: #e0533d; border: 2px solid #fff; transform: rotate(45deg); border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.map-list:empty { display: none; }
.map-list { margin-top: 12px; }
.ml-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.ml-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ml-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--fill); color: var(--ink); font-size: 14px; }
.ml-row:hover { text-decoration: none; background: var(--fill-strong); }
.map-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.map-key { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.map-key i { width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.map-key i.b1 { background: var(--s1); } .map-key i.b3 { background: var(--s3); } .map-key i.b4 { background: var(--s4); } .map-key i.b5 { background: var(--s5); }

/* ---------- webcam hero on resort pages ---------- */
.hero::after { content: ""; position: absolute; inset: 0; background: var(--cam) center / cover no-repeat; opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.hero.has-cam::after { opacity: 1; }
.hero.has-cam::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 11, 25, 0.55) 0%, rgba(6, 11, 25, 0.35) 40%, rgba(6, 11, 25, 0.8) 85%); }
.hero.has-cam .hero-grid, .hero.has-cam .ridge { z-index: 2; }
.hero.has-cam .ridge .far { opacity: 0; }
.hero.has-cam .snow { display: none; }
.cam-credit { display: none; }
.hero.has-cam .cam-credit { display: block; position: absolute; z-index: 2; right: 20px; bottom: 120px; font-size: 11px; color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }

/* ---------- loading placeholders and motion ---------- */
.skel { border-radius: 16px; background: linear-gradient(100deg, var(--fill) 30%, var(--fill-strong) 50%, var(--fill) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel-card { height: 260px; }
.skel-next { height: 220px; }
.skel-rows { display: grid; gap: 8px; padding: 6px 18px 12px; }
.skel-rows .skel { height: 34px; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes rise { from { opacity: 0.4; } to { opacity: 1; } }
#overview:not([hidden]), #page-trip:not([hidden]), #resort-page:not([hidden]) { animation: rise 0.15s ease-out backwards; }
.cards-grid > .rc { animation: rise 0.4s var(--ease) both; }
.cards-grid > .rc:nth-child(2) { animation-delay: 40ms; } .cards-grid > .rc:nth-child(3) { animation-delay: 80ms; } .cards-grid > .rc:nth-child(n+4) { animation-delay: 120ms; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  .skel, #overview, #page-chase, #page-trip, #resort-page, .cards-grid > .rc { animation: none !important; }
  .hero::after { transition: none; }
}
@media (max-width: 600px) {
  /* A blurred nav would trap the fixed tab bar inside it, so phones get a solid one. */
  .nav, .nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.scrolled { background: rgba(10, 18, 36, 0.96); }
}

/* ---------- picker: regions and search ---------- */
.region { margin-top: 12px; }
.region-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.region-h .chip-btn { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 4px 10px; }
.region .state-tiles { margin-top: 0; }
.stile.plain { justify-content: flex-end; min-height: 92px; }
.st-code { font: 800 26px/1 var(--font-display); letter-spacing: 0.02em; color: var(--ink-3); opacity: 0.55; }
.stile[aria-pressed="true"] .st-code { color: var(--accent); opacity: 1; }
.more-regions { margin-top: 14px; }
.more-regions > summary { cursor: pointer; list-style: none; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 14px; font-weight: 600; }
.more-regions > summary::-webkit-details-marker { display: none; }
.more-regions > summary span { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.rsearch { width: 100%; margin: 8px 0 4px; padding: 10px 14px; border-radius: 12px; border: 0.5px solid var(--hairline); background: var(--fill); color: var(--ink); font: inherit; font-size: 15px; }
.rsearch:focus { outline: 2px solid var(--accent); outline-offset: 0; }
@media (max-width: 640px) { .state-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stile.plain { min-height: 78px; } .st-code { font-size: 22px; } }

/* ---------- day by day: the pick, then a compact list ---------- */
.day-pick { padding: 16px 18px 6px; }
.day-pick .nx-eye { margin: 0 0 2px; font-size: 11px; }
.day-pick .nx-name h3 { margin: 0; font: 700 22px/1.15 var(--font-display); letter-spacing: -0.02em; }
.day-pick .nx-name h3 a { color: var(--ink); }
.day-pick .nx-facts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 14px 0 12px; }
.day-pick .nf { padding: 10px; }
.day-pick .nf b { font-size: 16px; }
.day-pick .actions { display: flex; gap: 8px; }
.day-pick .btn { background: var(--fill); color: var(--ink); }
.day-pick .btn.primary { background: var(--accent); color: #fff; }
@media (max-width: 600px) {
  .day-pick { padding: 14px 14px 4px; }
  .day-pick .nx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-pick .nx-pick .logo.lg { display: inline-grid; width: 40px; height: 40px; }
  .day-pick .nx-pick { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ---------- next storm (was Powder chase) ---------- */
.heat.clipped .hrow.extra { display: none; }
.heat-more { margin-top: 8px; }
.chase-days { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }

/* ---------- This Week on a phone: a compact heatmap, every day on screen ---------- */
@media (max-width: 600px) {
  #grid td.night, #grid th.night-h, #grid td.num, #grid th.num-h { display: none; }
  #grid .gr .logo, #grid .gr .pass { display: none; }
  #grid .nm-full { display: none; }
  #grid .nm-short { display: inline; }
  #grid table { border-spacing: 2px; padding: 0 6px; }
  #grid tbody th { max-width: 76px; font-size: 12px; padding-right: 4px; overflow-wrap: break-word; }
  #grid td.cell { height: 32px; min-width: 0; border-radius: 6px; font-size: 12px; }
  #grid thead th { font-size: 11px; padding-bottom: 4px; }
}
.day-pick .nx-facts .nf:first-child { grid-column: auto; }

/* ---------- plan ---------- */
.trip-days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.trip-days button { flex: none; }
.trip-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; align-items: end; }
.trip-controls .select { width: 100%; min-width: 0; }
.trip-best { display: block; padding: 16px; }
.tb-h { display: flex; align-items: center; gap: 12px; }
.tb-h small { display: block; font-size: 12px; color: var(--ink-3); }
.tb-h b { font: 650 20px/1.2 var(--font-display); letter-spacing: -0.015em; }
.tl { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: relative; }
.tl li { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-radius: 10px; background: var(--card); text-align: center; }
.tl small { font-size: 11px; color: var(--ink-3); }
.tl b { font-size: 15px; font-weight: 650; }
.tb-sub { margin: 0; font-size: 13px; color: var(--ink-2); }
.trips { display: flex; flex-direction: column; }
details.trip { display: block; padding: 0; border-top: 0.5px solid var(--hairline); }
.trip-h { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 4px; cursor: pointer; list-style: none; border-radius: 12px; }
.trip-h::-webkit-details-marker { display: none; }
.trip-h:hover, details.trip[open] .trip-h { background: var(--fill); }
.trip-h .nm b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: break-word; }
.trip-h .nm small { display: block; font-size: 12.5px; color: var(--ink-3); }
details.trip.off .trip-h { opacity: 0.6; }
.trip-b { padding: 6px 4px 14px; }
.trip-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trip-facts span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--fill); }
.trip-facts small { font-size: 11px; color: var(--ink-3); }
.trip-facts b { font-size: 15px; }
.trip-why { margin: 8px 0; font-size: 12.5px; color: var(--ink-3); }
.trip-b .actions { display: flex; gap: 8px; }
.trip-b .btn { background: var(--fill); color: var(--ink); }
@media (max-width: 600px) {
  .trip-controls { gap: 8px; }
  .trip-controls .field > span { font-size: 11px; }
  .tl b { font-size: 14px; }
}
.trip-controls .select { padding-left: 10px; padding-right: 24px; font-size: 14px; background-position: right 8px center; text-overflow: ellipsis; }

/* ---------- resorts list ---------- */
.rl-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.seg.sm button { padding: 5px 10px; font-size: 12.5px; }
.rl-card { padding: 4px 8px; }
.rl-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; border-top: 0.5px solid var(--hairline); }
.rl-row:first-child { border-top: 0; }
.rl { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px 10px 0; color: var(--ink); }
.rl:hover { text-decoration: none; }
.rl-n { display: flex; flex-direction: column; min-width: 0; }
.rl-n b { font-size: 15px; font-weight: 600; overflow-wrap: break-word; }
.rl-n small { font-size: 12.5px; color: var(--ink-3); }
.star { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-3); padding: 6px 4px; }
.star.on { color: #f2b707; }

/* ---------- map: full screen on phones ---------- */
.map-full-btn { border: 0; background: var(--fill); color: var(--ink-2); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; margin-left: auto; }
.map-full-btn svg { width: 18px; height: 18px; }
.map-card.full { position: fixed; inset: 0; z-index: 80; margin: 0; border-radius: 0; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); }
.map-card.full .lmap { flex: 1; height: auto; }
.map-card.full .map-list { max-height: 34vh; overflow: auto; }
body.map-open { overflow: hidden; }
body.map-open .tabs { display: none; }
.map-h { flex-wrap: nowrap; }
.map-h .seg { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.map-h .seg button { flex: none; }

/* ---------- resort page extras, first-visit welcome ---------- */
.hero-flag { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 170, 60, 0.18); color: #ffcf8a; font-size: 13px; font-weight: 600; }
.hours-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: rgba(235, 242, 255, 0.85); font-size: 13px; }
.hours-chip svg { width: 15px; height: 15px; }
.star-btn.on { color: #f2b707; }
.welcome { margin: 0 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--accent-tint); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.call .actions { flex-wrap: wrap; }
.roads-days { display: flex; overflow-x: auto; scrollbar-width: none; margin: 4px 0 10px; max-width: 100%; }
.roads-days button { flex: none; }

/* Comfortable tap targets on phones. */
@media (max-width: 600px) {
  .seg button, .seg.sm button, .trip-days button, .chip-btn { min-height: 38px; }
  .trip-h, .rl { min-height: 48px; }
  .star { min-width: 36px; min-height: 40px; }
}

/* Tab icons: outline when idle, the logo's filled layered peaks and carved track when active. */
.tabs .ti .f { display: none; }
.tabs a[aria-current="true"] .ti .o { display: none; }
.tabs a[aria-current="true"] .ti .f { display: inline; }

/* Map layers: scores, radar, storms, snow depth */
.map-modes { margin-bottom: 8px; display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.map-modes button { flex: 1 0 auto; }
.radar-ctl { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.radar-ctl[hidden] { display: none; }
.map-legend { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.map-legend:empty { display: none; }
.map-legend .rk { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-left: 4px; }
.map-legend .rk.lt { background: #4cd964; }
.map-legend .rk.md { background: #f5d020; }
.map-legend .rk.hv { background: #e8382f; }
.map-card.full .map-legend { margin-bottom: 4px; }
.map-h .seg[hidden] { display: none; }
.radar-ctl span { white-space: nowrap; }
.map-legend .lk-line { display: inline-block; width: 14px; height: 0; border-top: 2.5px solid var(--c); vertical-align: 3px; margin-left: 4px; }

/* The plain-English read on the storm, under the headline */
.call-read { margin: 0 0 24px; max-width: 600px; color: rgba(225, 235, 255, 0.82); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty; }
.call-sub:has(+ .call-read) { margin-bottom: 10px; }
@media (max-width: 600px) { .call-read { font-size: 15px; } }

/* Base vs summit table on resort pages */
.bs-wrap { overflow-x: auto; }
.bs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.bs th, .bs td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.18)); vertical-align: middle; }
.bs tbody tr:last-child th, .bs tbody tr:last-child td { border-bottom: none; }
.bs thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.bs tbody th { font-weight: 600; white-space: nowrap; }
.bs td b { font-weight: 600; margin-right: 8px; }
.bs td small { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.bs-note { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.bs-note.rain { background: rgba(43, 121, 215, 0.14); color: #2b79d7; }
@media (max-width: 600px) { .bs td small { display: block; } .bs { font-size: 14px; } }

/* Phones keep :hover after a tap; don't let it look like a selection. */
@media (hover: none) {
  .tabs a:hover { color: rgba(225, 235, 255, 0.62); }
  .tabs a[aria-current="true"]:hover { color: #fff; }
}

/* Buttons inside light cards (webcam links and the like) were white on white. */
.card .actions .btn:not(.primary) { background: var(--fill); color: var(--ink); }
.card .actions .btn:not(.primary):hover { background: var(--fill-strong); }
.tb-tip { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-tip .btn { background: var(--accent); color: #fff; }
.cv-say { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }
.letters span { overflow: hidden; white-space: nowrap; }
.sb { position: relative; }
.sb em { position: absolute; left: 0; right: 0; bottom: calc(var(--h, 0%) + 2px); font: 600 10px/1 var(--font); font-style: normal; text-align: center; color: var(--ink-2); pointer-events: none; }
.chart.dark .sb em { color: rgba(235, 242, 255, 0.85); }
.trips-h { margin: 14px 4px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }

/* "Alert at 6 in" is a label, not a button. */
.pill { background: none; border: 1px solid rgba(255, 255, 255, 0.18); }
.lift-sum { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.lift-sum b { color: var(--ink); }
#grid td.cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tag-ticket{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;background:color-mix(in srgb,var(--warn,#c77700) 16%,transparent);color:var(--ink);vertical-align:1px}
.epic-full{display:flex;gap:8px;align-items:center;margin-top:10px}
.pass-help{margin-top:8px}
.tb-road{margin:8px 0 0;padding:8px 10px;border-radius:10px;font-size:13px;background:color-mix(in srgb,var(--warn,#c77700) 14%,transparent)}
/* The sheet's header and Done stay on screen at any zoom; only the body scrolls. */
.sheet[open] { display: flex; flex-direction: column; overflow: hidden; max-height: min(86dvh, 900px); }
.sheet-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) { .sheet[open] { max-height: 92dvh; } }
.tabs a, .tabs .ti { transition: none; }
/* Its own layer, so the highlight repaints at once under the blurred header (Chrome otherwise waits for a scroll). */
.tabs { transform: translateZ(0); }
.hero.cam-off::after { transition: none; }
/* Map pins stay under the sticky header. */
.leaflet-container { isolation: isolate; z-index: 0; }
.pill.quiet { border: 0; background: none; padding: 0; font-weight: 500; color: var(--ink-3); }
.mr { list-style: none; margin: 0; padding: 0; }
.mr-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 0.5px solid var(--hairline); }
.mr-row:last-child { border-bottom: 0; }
.mr-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mr-n small { color: var(--ink-3); }
.mr-v { text-align: right; font-size: 14px; }
.mr-v .warn { color: var(--warn, #c77700); }
@media (max-width: 640px) { .mr-row { flex-direction: column; align-items: flex-start; } .mr-v { text-align: left; } }
/* Large text or zoomed-in phones (about 150%): one column, and labels wrap instead of cutting off. */
@media (max-width: 340px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .k, .stat .v, .stat small, .nx-name h3, .nx-eye, .pk-n b, .pk-n small, .rl-n b, .rl-n small, .nf b, .nf small, .tb-h b, .tb-h small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .nx-facts { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr 1fr; }
  .sheet-h { padding: 12px 14px; }
  .sheet-b { padding: 4px 14px 20px; }
  .trip-controls { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .day-pick .nx-facts, .nx-facts { grid-template-columns: 1fr; }
  .nx-facts .nf:first-child { grid-column: auto; }
  .nf b, .nf small, .nf .k { white-space: normal; overflow: visible; text-overflow: clip; }
}
#overview.is-loading > .sec, #overview.is-loading #cards { opacity: 0.3; pointer-events: none; transition: opacity 0.2s; }
.models-more { margin-top: 10px; }
.models-more summary { cursor: pointer; font-size: 13px; color: var(--ink-3); padding: 6px 0; }
.nx-facts { gap: 6px; margin: 14px 0 12px; }
.nf { padding: 10px; }
.trip-resorts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.trip-resorts button { border: 1px solid var(--hairline); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 500 14px/1.2 var(--font-body, inherit); cursor: pointer; }
.trip-resorts button small { color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.trip-resorts button[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.trip-resorts button[aria-pressed="true"] small { color: inherit; opacity: 0.75; }
/* Nothing wide (a strip, a table, a photo) can pull the page sideways on a phone; those scroll inside their own box. */
html, body { overflow-x: clip; max-width: 100%; }
main, .hero, #resort-page, #overview, #page-trip { overflow-x: clip; }
.week-strip, .bs-wrap, .scroll, #days, .trip-days { overscroll-behavior-x: contain; }
/* Which version of a pass: two cards that open under the pass you picked. */
.pass-kinds { display: grid; gap: 12px; margin-top: 12px; animation: kinds-in 0.2s var(--ease, ease-out); }
.pass-kind .pk-h { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.pk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ptile.kind b { margin-top: 6px; }
.ptile.kind small { white-space: normal; }
.ptile.kind[aria-pressed="false"] .pm { opacity: 0.45; filter: grayscale(0.6); }
@keyframes kinds-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pass-kinds { animation: none; } }
/* Plan: mountains as a swipeable row of cards (logo, name, score), the pick first. */
.trip-resorts { display: none; }
.pick-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 10px -2px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.pick-strip::-webkit-scrollbar { display: none; }
.pk-card { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; min-width: 168px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--fill); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.15s, background 0.15s; }
.pk-card:hover { background: var(--fill-strong); }
.pk-card[aria-pressed="true"] { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pk-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pk-txt b { font-size: 14px; font-weight: 600; overflow-wrap: break-word; }
.pk-txt small { font-size: 12px; color: var(--ink-3); }

/* iPhone zooms in on any text field under 16px when you tap it, and stays
   zoomed and shifted sideways after. 16px on touch screens stops that. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea, .select, .rsearch, .zip-row input { font-size: 16px !important; }
}

/* ---------- powder alerts ---------- */
.alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.alert-row > span { font-size: 14px; color: var(--ink-2); }
.alert-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-chips .chip-btn.on { background: var(--accent); color: #fff; }
/* Dark theme: the light accent needs dark text, like the Done and Set buttons (white on it is 2.1 to 1). */
:root[data-theme="dark"] .alert-chips .chip-btn.on { color: #0a0e17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert-chips .chip-btn.on { color: #0a0e17; } }
#alerts-sec .chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 10px; }
#alerts-sec .zip-row { gap: 8px; }
.alert-steps { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pill-btn { border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.zip-row input[type="checkbox"] { width: auto; padding: 0; }

/* ---------- home screen app: navy to the very top ---------- */
/* The page canvas (what shows when you pull past the top) is navy, and the
   strip behind the clock and battery is always solid navy. */
html { background: #060b19; }
.nav::before { content: ""; position: absolute; inset: 0 0 auto; height: env(safe-area-inset-top); background: #060b19; }
@media (display-mode: standalone) {
  .nav.scrolled { background: rgba(8, 14, 30, 0.94); }
}
.nav-bell { margin-left: 0; }
.nav-bell.on { background: #a8d4ff; color: #0b1630; }
.updated + .nav-bell { margin-left: auto; }
.nav-bell + .nav-set { margin-left: 8px; }

/* ---------- pull down to refresh (home screen app) ---------- */
.ptr {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 6px); z-index: 40;
  width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  background: #fff; color: #0f1a33; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-60px); opacity: 0; pointer-events: none;
}
.ptr svg { width: 18px; height: 18px; transition: transform 0.15s; }
.ptr.ready svg { transform: rotate(180deg); }
.ptr.spin svg { animation: ptr-spin 0.8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   iPhone feel: dark all the way, tighter type, iOS tab bar, collapsing title,
   sheets with a grab handle, short page slides, press feedback.
   ========================================================================= */
.nav-title { display: none; }
.grab { display: none; }

@media (max-width: 600px) {
  /* One dark look: navy-black page, slightly lifted cards. */
  :root[data-theme="dark"] { --bg: #070c18; --card: #111a2b; --fill: rgba(148, 163, 194, 0.12); --fill-strong: rgba(148, 163, 194, 0.2); }
  body { -webkit-tap-highlight-color: transparent; }

  /* Tighter type. */
  .hero { padding: calc(68px + env(safe-area-inset-top)) 0 104px; }
  .eyebrow { font-size: 13px; margin-bottom: 6px; }
  .call h1 { font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 10px; }
  .call-sub, .call-read { font-size: 15px; line-height: 1.42; margin-bottom: 18px; }
  .sec-h h2 { font-size: 20px; letter-spacing: -0.02em; }
  .sec-h p { font-size: 13px; }
  .card { padding: 16px; border-radius: 18px; }
  .stat .v { font-size: 16px; }
  .stat .k { font-size: 11px; }
  .nx-name h2 { font-size: 22px; }
  .nf b { font-size: 16px; }
  .sheet-h h2 { font-size: 17px; }
  b, .v, .ring b, .nf b { font-variant-numeric: tabular-nums; }

  /* Top bar: logo at the top of the page; scrolled, a small centered title. */
  .nav-in { height: 48px; position: relative; }
  .brand, .nav-set { transition: opacity 0.2s; }
  .nav-title {
    display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    max-width: 64%; text-align: center; line-height: 1.1;
    font: 600 17px/1 var(--font-display); letter-spacing: -0.01em; color: #fff;
    opacity: 0; transition: opacity 0.2s; pointer-events: none;
  }
  .nav.scrolled .nav-title { opacity: 1; }
  .nav.scrolled .brand { opacity: 0; pointer-events: none; }
  .nav.scrolled { background: rgba(8, 13, 27, 0.86); box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.1); }
  .nav-set { width: 32px; height: 32px; position: relative; }
  /* A 44px tap target around the 32px button. */
  .nav-set::after { content: ""; position: absolute; inset: -6px; }

  /* iOS tab bar: plain icons and small labels, tinted when selected, no pill. */
  .tabs { padding: 7px 0 calc(2px + env(safe-area-inset-bottom)); background: rgba(8, 13, 27, 0.8); box-shadow: 0 -0.5px 0 rgba(255, 255, 255, 0.12); }
  .tabs a { gap: 3px; padding: 0 0 4px; font-size: 10px; font-weight: 500; letter-spacing: 0.01em; color: rgba(235, 240, 255, 0.55); border-radius: 0; }
  .tabs a[aria-current="true"] { color: #a8d4ff; font-weight: 600; }
  .tabs .ti { width: 26px; height: 26px; padding: 0; border-radius: 0; }
  .tabs a[aria-current="true"] .ti, .tabs a:active .ti { background: none; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

  /* Sheets: slide up, grab handle, drag the top bar down to close. */
  .sheet[open] { animation: sheet-up 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); border-radius: 14px 14px 0 0; }
  .sheet-h { padding-top: 18px; touch-action: none; }
  .grab { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill-strong); }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* Page changes: a short slide in, iOS style. */
.in-fwd { animation: in-fwd 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.in-back { animation: in-back 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.in-fade { animation: in-fade 0.2s ease-out; }
@keyframes in-fwd { from { transform: translateX(36px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes in-back { from { transform: translateX(-36px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes in-fade { from { opacity: 0.5; } to { opacity: 1; } }

/* Press feedback on anything you tap, and strips that snap into place. */
@media (hover: none) {
  .btn, .chip-btn, .pk-card, .stat.link, .day, .nav-set, .ptile, .stile, .rpick, .rl-row, .trip-days button, .roads-days button, .nx-alt, .card a.card, .cam {
    transition: transform 0.12s ease-out, background 0.15s, box-shadow 0.15s;
  }
  .btn:active, .chip-btn:active, .pk-card:active, .stat.link:active, .day:active, .nav-set:active, .ptile:active, .stile:active, .rpick:active, .rl-row:active, .trip-days button:active, .roads-days button:active, .nx-alt:active, .cam:active {
    transform: scale(0.96);
  }
  .pick-strip { scroll-snap-type: x mandatory; scroll-padding-inline: 2px; }
  .trip-days, .roads-days, .chase-days { scroll-snap-type: x mandatory; }
  .trip-days > *, .roads-days > *, .chase-days > * { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .in-fwd, .in-back, .in-fade, .sheet[open] { animation: none; }
}
/* Light blue buttons on the dark theme get dark text, so they stay readable. */
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .btn.primary * { color: #0a0e17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .btn.primary * { color: #0a0e17; } }
#alerts-sec .chk { align-items: flex-start; line-height: 1.35; }
#alerts-sec .chk input { margin-top: 2px; flex: none; }
.alert-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }

/* The bell opens the sheet with only alerts in it; the sheet's own title says what it is. */
.alerts-only #alerts-sec { border-top: 0; margin-top: 0; padding-top: 8px; }
.alerts-only #alerts-sec > h3 { display: none; }
#set-title:focus { outline: none; }
.install-sheet .ic { display: inline-flex; vertical-align: -4px; color: var(--accent, #2f6fd6); }

/* Condensed pass picker: smaller tiles, and pass versions as a chip row. */
.ptile { padding: 10px 12px; }
.ptile b { margin-top: 6px; }
.pass-kinds { gap: 4px; margin-top: 10px; }
.pass-kind .alert-row { margin: 0; }
.pk-note { margin: 2px 0 6px; font-size: 12.5px; color: var(--ink-3); }

/* Their own layers, like the tab bar: iPhone's full-screen app otherwise draws the
   top bar soft on first paint and only sharpens it after a scroll. (Not on .nav
   itself: a transform there would trap the fixed tab bar inside it.) */
.brand, .nav-set { transform: translateZ(0); }

/* ---------- polish: a little more glow, depth and motion ---------- */

/* Score rings fill up when they appear, and the good days glow. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring.fill { animation: ring-in 0.9s var(--ease) both; }
@keyframes ring-in { from { --p: 0; } }
.ring.r4, .ring.r5 { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rc) 45%, transparent)); }
.ring.sm.r5 > b { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 14%, var(--card)), var(--card) 70%); }

/* The night sky drifts slowly behind the headline. */
.hero { background-size: 160% 160%, 160% 160%, 100% 100%; animation: aurora 28s ease-in-out infinite alternate; }
@keyframes aurora {
  0%   { background-position: 100% 0%, 0% 0%, 0 0; }
  100% { background-position: 60% 30%, 40% 20%, 0 0; }
}
.call h1 em { background-size: 200% 100%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* Glass tiles catch the light along their top edge. */
.glass, .stat, .tile, .hero-chart {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.tile.on { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 0.5px rgba(168, 212, 255, 0.25), 0 14px 40px -14px rgba(90, 150, 255, 0.45); }

/* Cards: a hairline edge and a faint top sheen, so they read as surfaces, not boxes. */
.card, .rtile {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--ink) 2.5%, transparent), transparent 120px);
  box-shadow: 0 0 0 0.5px var(--hairline), var(--shadow);
}
.rtile:hover { box-shadow: 0 0 0 0.5px var(--hairline), var(--shadow-hover); }

/* Springier hover on the things you tap. */
.rc, .day, .cd, .nx-alt, .ml-row { transition: background 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s; }
@media (hover: hover) {
  .rc:hover, .day:hover { transform: translateY(-2px); }
  .rtile:hover { transform: translateY(-3px); }
}

/* Primary button: a soft lit edge and a glow on hover. */
.btn.primary { background: linear-gradient(180deg, #ffffff, #e6efff); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 20px -8px rgba(140, 190, 255, 0.7); }
.btn.primary:hover { background: linear-gradient(180deg, #ffffff, #dbe8ff); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 28px -8px rgba(140, 190, 255, 0.9); }

/* Selected segments and the top bar feel a touch more glassy. */
@media (min-width: 601px) {
  .nav.scrolled { background: rgba(10, 18, 36, 0.55); box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.1), 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
}
@media (min-width: 601px) { .tabs a[aria-current="true"] { background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.14)); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.25); } }

/* The deepest-blue cells in the week grid get a little lift. */
td.cell.b4, td.cell.b5, .hc.b4, .hc.b5 { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.22); }
td.cell.b5 { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.3), 0 0 14px -4px color-mix(in srgb, var(--s4) 70%, transparent); }

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .ring.fill, .hero, .call h1 em { animation: none; }
}

/* ---------- phones: a crisp top ---------- */
/* At the top of the page the sky runs right up behind the clock with nothing laid over it.
   Once you scroll, the bar and the strip behind the clock turn one solid navy. No blur,
   no see-through layers, and the sky holds still (a moving sky under them looks soft). */
@media (max-width: 600px) {
  .nav::before { background: transparent; transition: background 0.2s; }
  .nav.scrolled, .nav.scrolled::before { background: #0a1224; }
  .nav.scrolled { box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.1); }
  .hero { animation: none; }
}

/* Truck-only chain and traction rules: listed, but they don't apply to a car. */
.al-trucks .al-k { background: var(--fill); color: var(--ink-2); }
.al-trucks b { font-weight: 500; color: var(--ink-2); }

/* Plan: where the times start, with a quiet link to change it. */
.tb-origin { margin: 6px 0 8px; font-size: 13px; color: var(--ink-2); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent, inherit); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tb-road small { color: var(--ink-3); font-size: 12px; }

/* Accessibility: 44px tap targets on small controls (the look stays the same), and sections
   that land below the sticky top bar when a link scrolls to them. */
.nav-set, .pill-btn, .link-btn { position: relative; }
.nav-set::before, .pill-btn::before { content: ""; position: absolute; inset: -6px; }
.pill-btn::before { inset: -14px -6px; }
.sec, [id] { scroll-margin-top: 72px; }

/* Resorts: Browse, a second list to look through without changing yours. */
.browse > summary { cursor: pointer; padding: 14px 16px; list-style: none; display: flex; gap: 8px; align-items: baseline; }
.browse > summary small { color: var(--ink-3); }
.browse[open] > summary { border-bottom: 0.5px solid var(--hairline); }
/* Browse rows have no star, so the link takes the whole row (not the 30px star column). */
.browse .rl-row { grid-template-columns: minmax(0, 1fr); }
.browse .rl { padding-left: 6px; }



/* Resort lift map (web/trailmap.ts): always night, whatever the app theme. */
.tmap-wrap { position: relative; height: 540px; margin: 6px 0 10px; border-radius: 18px; overflow: hidden; background: #0a1120; box-shadow: 0 0 0 1px rgba(125, 182, 245, 0.12), 0 24px 60px -24px rgba(3, 8, 20, 0.75); isolation: isolate; }
@media (max-width: 600px) { .tmap-wrap { height: 460px; border-radius: 14px; } }
.tmap-wrap:fullscreen { border-radius: 0; height: 100%; }
.tmap-wrap .tmap { position: absolute; inset: 0; }
.tmap-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 8, 18, 0.55)); }
.tmap .maplibregl-ctrl-group { background: rgba(14, 22, 38, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: none; border-radius: 12px; overflow: hidden; }
.tmap .maplibregl-ctrl-group button + button { border-top-color: rgba(255, 255, 255, 0.08); }
.tmap .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }
.tmap .maplibregl-ctrl-attrib { background: rgba(10, 17, 32, 0.6); color: #8f9ab0; font-size: 10px; }
.tmap .maplibregl-ctrl-attrib a { color: #b6c2d8; }
.tmap .maplibregl-ctrl-attrib-button { filter: invert(1); }
.tmap .maplibregl-cooperative-gesture-screen { background: rgba(6, 11, 23, 0.7); color: #eef1f6; font: 600 15px/1.4 var(--font); }

/* Glass panels */
.tmap-hud, .tmap-key { position: absolute; z-index: 2; color: #eef1f6; background: rgba(12, 19, 34, 0.62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.09); }
.tmap-hud { top: 14px; left: 14px; min-width: 168px; padding: 12px 14px 10px; border-radius: 14px; font-family: var(--font); pointer-events: none; }
.tmap-hud:empty { display: none; }
/* Clear of the map's buttons down the right: a long resort name ends in "...". */
.tmap-hud { max-width: calc(100% - 72px); box-sizing: border-box; }
.h-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-top { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #a9b6cc; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #39ff8f; box-shadow: 0 0 0 0 rgba(57, 255, 143, 0.6); animation: tmap-pulse 2s infinite; }
.live.off { background: #5b6578; animation: none; }
@keyframes tmap-pulse { 70% { box-shadow: 0 0 0 8px rgba(57, 255, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 255, 143, 0); } }
.h-big { display: flex; align-items: baseline; gap: 7px; margin: 4px 0 6px; }
.h-big b { font: 700 34px/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.h-big span { font-size: 13px; color: #a9b6cc; }
.h-row { display: flex; justify-content: space-between; gap: 18px; font-size: 12.5px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #a9b6cc; }
.h-row b { color: #fff; font-weight: 600; }
.h-line { display: none; }
/* Find a run or lift: a box over the top of the map. */
.tmap-find { position: absolute; z-index: 4; top: 14px; left: 50%; transform: translateX(-50%); width: min(340px, calc(100% - 120px)); border-radius: 14px; background: rgba(12, 19, 34, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); overflow: hidden; }
.tmap-find[hidden] { display: none; }
.tmap-find input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 14px; border: 0; background: transparent; color: #fff; font: 500 16px/1 var(--font); outline: none; }
.tmap-find input::placeholder { color: #8b97ad; }
.tmap-find ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.tmap-find ul:not(:empty) { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 4px 0; }
.tmap-find li { display: flex; align-items: center; gap: 9px; padding: 8px 14px; color: #eef1f6; font: 500 14px/1.3 var(--font); cursor: pointer; }
.tmap-find li[aria-selected="true"], .tmap-find li:hover { background: rgba(255, 255, 255, 0.08); }
.tmap-find li small { margin-left: auto; color: #8b97ad; font-size: 12px; }
.tmap-find li.none { color: #8b97ad; cursor: default; }
.tmap-find li i { flex: none; width: 9px; height: 9px; }
.tmap-find li i.lift { border-radius: 50%; background: #6b7488; }
.tmap-find li i.lift.open { background: #39ff8f; } .tmap-find li i.lift.hold { background: #ffb020; }
.tmap-find li i.run.easy { border-radius: 50%; background: #3ddc84; }
.tmap-find li i.run.intermediate { background: #4f9dff; border-radius: 1px; }
.tmap-find li i.run.advanced, .tmap-find li i.run.expert, .tmap-find li i.run.freeride { background: #e8edf6; transform: rotate(45deg) scale(0.85); }
.tmap .maplibregl-ctrl-group .tmap-findbtn { display: grid; place-items: center; }
.tmap-findbtn::before { content: ""; width: 14px; height: 14px; background: #eef1f6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 600px) { .tmap-find { top: 10px; left: 10px; right: 52px; width: auto; transform: none; } }
/* Phones: name and time, then one line of numbers. */
@media (max-width: 600px) {
  .tmap-hud { top: 10px; left: 10px; min-width: 0; padding: 7px 10px; border-radius: 12px; }
  .h-top { font-size: 10px; }
  .h-big, .h-row { display: none; }
  .h-line { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .h-line .warn { color: #ffc85c; }
}

.tmap-key { left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: 12px; font: 500 11.5px/1.2 var(--font); color: #c9d3e4; max-width: min(560px, calc(100% - 340px)); }
.tmap-key span { display: inline-flex; align-items: center; gap: 5px; }
.k-gap { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.14); }
.k-lift { width: 16px; height: 3px; border-radius: 2px; }
.k-lift.open { background: #39ff8f; box-shadow: 0 0 8px #39ff8f; }
.k-lift.hold { background: #ffb020; box-shadow: 0 0 8px #ffb020; }
.k-lift.closed { background: repeating-linear-gradient(90deg, #8792a8 0 4px, transparent 4px 7px); }
/* The real ski-trail signs, not colored lines. */
.k-run { width: 10px; height: 10px; display: inline-block; }
.k-run.easy { border-radius: 50%; background: #3ddc84; }
.k-run.int { background: #4f9dff; border-radius: 1px; }
.k-run.adv { width: 8px; height: 8px; background: #05070d; transform: rotate(45deg); outline: 1.5px solid rgba(255, 255, 255, 0.85); margin: 0 1px; }
.k-run.adv + .k-run.adv { margin-left: -2px; }
@media (max-width: 600px) { .tmap-key { max-width: calc(100% - 28px); bottom: 34px; } }

.tmap .maplibregl-ctrl-group .tmap-3d { color: #eef1f6; font: 800 11px/1 var(--font); letter-spacing: 0.04em; }
.tmap .maplibregl-ctrl-group .tmap-3d:hover { background: rgba(255, 255, 255, 0.08); }
.tmap-wrap .tmap .maplibregl-ctrl.maplibregl-ctrl-attrib, .tmap-wrap .tmap .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(10, 17, 32, 0.72); color: #8f9ab0; }
.tmap-wrap .tmap .maplibregl-ctrl-attrib.maplibregl-compact-show { padding-right: 28px; }

/* Labels */
.tmap-peak { display: flex; flex-direction: column; align-items: center; font-family: var(--font); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); pointer-events: none; }
.tmap-peak b { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tmap-peak span { font-size: 10.5px; color: #c9d6ea; }
.tmap-peak::after { content: ""; width: 0; height: 0; margin-top: 3px; border: 5px solid transparent; border-bottom: 7px solid #fff; border-top: 0; }
.tmap-lift { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(8, 14, 27, 0.78); border: 1px solid rgba(255, 255, 255, 0.08); color: #aab5c8; font: 600 11px/1.5 var(--font); white-space: nowrap; pointer-events: none; transition: opacity 0.25s; }
.tmap-lift i { width: 6px; height: 6px; border-radius: 50%; background: #6b7488; }
.tmap-lift.lit { color: #fff; border-color: rgba(57, 255, 143, 0.35); }
.tmap-lift i.open { background: #39ff8f; box-shadow: 0 0 6px #39ff8f; }
.tmap-lift i.hold { background: #ffb020; box-shadow: 0 0 6px #ffb020; }
.tmap-lift.hide, .tmap-peak.hide { display: none; }
.tmap-lift.clash, .tmap-peak.clash { visibility: hidden; }
/* Names wait for the first overlap check, so they never arrive in a pile. */
.tmap-wrap:not(.labels-ready) .tmap-lift, .tmap-wrap:not(.labels-ready) .tmap-peak { visibility: hidden; }

/* Popups */
.tmap-pop .maplibregl-popup-content { background: rgba(12, 19, 34, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #eef1f6; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 9px 12px; font: 13px/1.4 var(--font); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6); }
.tmap-pop .maplibregl-popup-content b { display: block; font-size: 14px; }
.tmap-pop .maplibregl-popup-tip { border-top-color: rgba(12, 19, 34, 0.92); border-bottom-color: rgba(12, 19, 34, 0.92); }
.tmap-pop .st { font-weight: 600; font-size: 12px; color: #8f9ab0; }
.tmap-pop .st.open { color: #39ff8f; }
.tmap-pop .st.hold { color: #ffb020; }
.tmap-pop .st.run.easy { color: #3ddc84; }
.tmap-pop .st.run.intermediate { color: #6aaeff; }
.tmap-pop .st.run.advanced, .tmap-pop .st.run.expert { color: #fff; }

.tmap-note:empty { display: none; }
/* The lift list under the map, folded away. */
.lift-list { margin-top: 12px; }
.lift-list > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.lift-list > summary::-webkit-details-marker { display: none; }
.lift-list > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.lift-list[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.lift-group { margin-top: 12px; }
.lift-group h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.lift-group h3 span { font-weight: 500; }
.lift-list .tmap-note { margin: 12px 0 0; font-size: 13px; }
.lift.on-map { cursor: pointer; }
.lift.on-map:hover { background: var(--fill-strong); }

/* Lift map: full screen inside the page */
.tmap-wrap.expanded { position: fixed; inset: 0; z-index: 1000; height: auto; margin: 0; border-radius: 0; box-shadow: none; }
html.tmap-lock, html.tmap-lock body { overflow: hidden; overscroll-behavior: none; }
.tmap-wrap.expanded .tmap-hud { top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
.tmap-wrap.expanded .maplibregl-ctrl-top-right { top: env(safe-area-inset-top); right: env(safe-area-inset-right); }
.tmap-wrap.expanded .tmap-key { bottom: max(14px, env(safe-area-inset-bottom)); }
.tmap .maplibregl-ctrl-group .tmap-grow { display: grid; place-items: center; }
.tmap-grow::before { content: ""; width: 14px; height: 14px; background: currentColor; color: #eef1f6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.tmap-wrap.expanded .tmap-grow::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

/* Run and lift popups: which lift a run is off, how many runs a lift serves */
.tmap-pop .sub { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; color: #a9b6cc; }
.tmap-pop .off { color: #eef1f6; white-space: nowrap; }
.tmap-pop .off i { display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 2px; border-radius: 50%; background: #6b7488; }
.tmap-pop .off i.open { background: #39ff8f; box-shadow: 0 0 5px #39ff8f; }
.tmap-pop .off i.hold { background: #ffb020; }
.k-fade { flex-basis: 100%; color: #8f9ab0; font-size: 10.5px; }

/* ---------- Snowcast Score explainer ---------- */
.ring-btn { position: relative; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; display: inline-grid; place-items: center; }
.ring-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ring-btn .ring-i { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink-3); border: 0.5px solid var(--hairline); font: italic 700 11px/1 Georgia, serif; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.ring-btn:hover .ring-i { color: var(--accent); }
.score-info { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; font: inherit; vertical-align: middle; }
.score-info svg { width: 15px; height: 15px; }
.score-info.txt { color: var(--accent); margin-left: 6px; }
.score-info.txt span { text-decoration: underline; text-underline-offset: 2px; }
.score-info:hover { color: var(--accent); }
.si-h { margin: 22px 0 8px; font: 600 15px/1.3 var(--font-display); }
.si-mine { margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--fill); }
.si-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.si-head small { display: block; color: var(--ink-3); font-size: 13px; }
.si-bands li { display: grid; grid-template-columns: 14px 76px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; border-bottom: 0.5px solid var(--hairline); }
.si-bands li:last-child { border-bottom: 0; }
.si-sw { width: 12px; height: 12px; border-radius: 50%; background: var(--rc); align-self: start; margin-top: 4px; }
.si-what li { padding: 5px 0; font-size: 14px; line-height: 1.45; }

/* Home takes a street address now, so its box gets room. */
.zip-row #zip { flex: 1 1 220px; min-width: 0; width: auto; }

/* The resort's own report in one line, under the pick and in each open row. */
.cond-line { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.cond-line svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--ink-3); }
.cond-line b { font-weight: 600; color: var(--ink); }

/* Lift map: time of day, key, snow, webcams, wind, routes */
.tmap-wrap .tmap-key { bottom: 74px; }
.tmap-wrap .tmap-key[hidden] { display: none; }
.tmap-wrap .tmap .maplibregl-ctrl-bottom-right { bottom: 62px; }
.tmap-time { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; color: #eef1f6; background: rgba(12, 19, 34, 0.68); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.09); font-family: var(--font); max-width: calc(100% - 28px); }
.tmap-wrap.expanded .tmap-time { bottom: max(14px, env(safe-area-inset-bottom)); }
.t-day { order: 1; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #a9b6cc; }
.t-seg { order: 0; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, 0.06); }
.t-seg button { border: 0; padding: 7px 12px; border-radius: 8px; background: transparent; color: #c9d3e4; font: 600 12.5px/1 var(--font); cursor: pointer; white-space: nowrap; }
.t-seg button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.t-seg button[aria-pressed="true"] { background: #ffd27a; color: #2a1c00; }
.t-seg button[data-t]:first-child[aria-pressed="true"] { background: #39ff8f; color: #06210f; }
.t-note { order: 2; font-size: 11.5px; color: #a9b6cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 600px) {
  .tmap-time { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-wrap: wrap; gap: 4px 10px; padding: 6px; }
  .t-seg { flex: 1; }
  .t-seg button { flex: 1; padding: 8px 4px; }
  .t-note { flex-basis: 100%; order: 3; padding: 0 4px 2px; }
  .t-day { order: 1; }
  .tmap-wrap .tmap-key { bottom: 96px; left: 10px; right: 10px; max-width: none; }
  .tmap-wrap .tmap .maplibregl-ctrl-bottom-right { bottom: 84px; }
}
.tmap .maplibregl-ctrl-group .tmap-keybtn, .tmap .maplibregl-ctrl-group .tmap-snow { color: #eef1f6; font: 800 10.5px/1 var(--font); letter-spacing: 0.02em; }
.tmap .maplibregl-ctrl-group .tmap-keybtn[aria-pressed="true"] { color: #39ff8f; }
.tmap-snow::before { content: "❄"; font-size: 15px; }
.tmap .maplibregl-ctrl-group .tmap-snow.on { color: #0a1120; background: #e8f1ff; }
.tmap .maplibregl-ctrl-group .tmap-snow[data-mode="next7"] { background: #7db6f5; }
.k-lift.wind { background: repeating-linear-gradient(90deg, #ffb020 0 3px, transparent 3px 6px); height: 6px; }
.k-groom { width: 16px; height: 8px; border-radius: 2px; background: repeating-linear-gradient(90deg, #dfe9ff 0 2px, #7f95b8 2px 4px); }
.tmap-lift em.wind { font-style: normal; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: rgba(255, 176, 32, 0.2); color: #ffc85c; font-size: 10px; }
.h-row.warn b { color: #ffc85c; }
.tmap-cam { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: #1f6fd1; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.tmap-cam svg { width: 16px; height: 16px; }
.tmap-pop .cam-img { display: block; width: 236px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: -2px 0 8px; border-radius: 8px; background: #0a1120; }
.tmap-pop .route b { display: inline; font-size: 12px; color: #fff; }
.tmap-pop .ok { color: #39ff8f; font-weight: 600; }
.tmap-pop .no { color: #ff8a8a; font-weight: 600; }
/* Where a run's status comes from: the resort, or the map's guess from its lifts. */
.tmap-pop small.src { color: #8b97ad; font-size: 11px; font-weight: 400; }
.tmap-wrap .maplibregl-popup.tmap-pop { z-index: 4; }
.si-cover { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-tint); font-size: 13px; line-height: 1.45; color: var(--ink); }
.si-cover b { color: var(--warn); font-weight: 600; }

/* ---------- Day by day: the answer card above the week table ---------- */
.sec-ctl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#plan .day-pick { border-bottom: 0.5px solid var(--hairline); padding-bottom: 14px; margin-bottom: 10px; }
#plan .day-pick .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }
#grid thead th .dh { width: 100%; padding: 4px 2px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
#grid thead th .dh:hover { background: var(--fill); }
#grid thead th .dh:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#grid thead th.top .dow { color: var(--accent); }
#grid thead th.sel .dh { background: var(--fill-strong); }
#grid td.cell .cb { width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: inherit; }
#grid td.cell .cb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#grid td.cell.rbest { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 600; }
#grid td.cell.sel:not(.rbest) { box-shadow: inset 0 0 0 1px var(--hairline-strong, var(--ink-3)); }
.si-line { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.si-line svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--ink-3); }
.si-line b { color: var(--ink); font-weight: 600; }
.si-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.si-acts .btn svg { width: 15px; height: 15px; }
.nx-range { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
/* A score the weather models disagree on: a small dot in the corner. */
#grid td.cell.unsure::before { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.45; pointer-events: none; }

/* ---------- Your resorts: a table on wider screens, stacked rows on phones ---------- */
.rl-head { display: none; }
.rl-c { display: none; }
@media (min-width: 720px) {
  .rl-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .rl-h { display: grid; grid-template-columns: 28px minmax(0, 1fr) 110px 110px 56px; gap: 10px; padding-right: 6px; }
  .rl-h span:last-child { text-align: center; }
  .rl-row .rl { grid-template-columns: 28px minmax(0, 1fr) 110px 110px 56px; padding: 6px 6px 6px 0; }
  .rl-c { display: block; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .rl-mob { display: none; }
  .rl .mini { justify-self: center; }
}
/* The map stays hidden until its first tiles are drawn, then fades in (web/trailmap.ts). */
.tmap-wrap .tmap { opacity: 0; transition: opacity 0.4s ease; }
.tmap-wrap.ready .tmap { opacity: 1; }
.tmap-wrap:not(.ready)::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 50% at 50% 45%, rgba(125, 182, 245, 0.12), transparent 70%); animation: tmap-breathe 1.6s ease-in-out infinite; }
@keyframes tmap-breathe { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .tmap-wrap .tmap { transition: none; } .tmap-wrap:not(.ready)::before { animation: none; } }
.tmap-lift i.unknown { background: #dfe7f5; }
/* The poster still under the live map, until it fades in (scripts/trail-posters.ts). */
.tmap-wrap { background: #0a1120 var(--poster-wide) center / cover no-repeat; }
@media (max-width: 600px) { .tmap-wrap { background-image: var(--poster-tall); } }

/* Score sheet: the same five fact tiles as the tooltip, on the light sheet (web/day-facts.ts). */
.si-bands, .si-what, .si-fts { list-style: none; margin: 0; padding: 0; }
.si-fts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.si-ft { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 8px; border-radius: 10px; background: var(--card); overflow: hidden; }
.si-ft i { display: block; height: 4px; margin: 0 -8px 6px; background: var(--fill-strong); }
.si-ft .k { font-size: 11px; color: var(--ink-3); }
.si-ft b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.si-ft .w { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.si-ft.good i { background: #22a35a; } .si-ft.good .w { color: #1b7f46; }
.si-ft.ok i { background: #e0a420; } .si-ft.ok .w { color: #8a5a00; }
.si-ft.bad i { background: #e0453b; } .si-ft.bad .w { color: #b3261e; }
:root[data-theme="dark"] .si-ft.good .w { color: #5ad38a; } :root[data-theme="dark"] .si-ft.ok .w { color: #f2c14e; } :root[data-theme="dark"] .si-ft.bad .w { color: #ff7b72; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-ft.good .w { color: #5ad38a; } :root:not([data-theme="light"]) .si-ft.ok .w { color: #f2c14e; } :root:not([data-theme="light"]) .si-ft.bad .w { color: #ff7b72; } }
.si-hold { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 480px) { .si-fts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Closed lifts' names, once you're close enough to see them, stay quiet. */
.tmap-lift:not(.lit) { opacity: 0.6; }

/* Search any resort (Resorts page) */
.rs { margin-bottom: 4px; }
.rs-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--hairline); cursor: text; }
.rs-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow); }
.rs-box svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.rs-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: 500 16px/1 var(--font); outline: none; }
.rs-box input::placeholder { color: var(--ink-3); }
.rs-hits { margin-top: 8px; }
.rs-hits[hidden] { display: none; }
.rs-hits .rl { position: relative; }
.rs-mine { margin-left: auto; flex: none; padding: 3px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.rs-none { padding: 10px 4px; margin: 0; }

/* Wind holds: a small wind mark in the corner of a score cell, and the same mark in the legend. */
td.cell.wind::before, .sw.wind-key::before {
  content: ""; position: absolute; top: 3px; left: 4px; width: 11px; height: 11px; background: currentColor; opacity: 0.9; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M3 8h11a3 3 0 1 0-3-3M3 12h16a3 3 0 1 1-3 3M3 16h8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M3 8h11a3 3 0 1 0-3-3M3 12h16a3 3 0 1 1-3 3M3 16h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sw.wind-key { position: relative; background: none; color: var(--ink-2); }
.sw.wind-key::before { inset: 0; top: 50%; left: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); }
@media (max-width: 820px) { td.cell.wind::before { top: 2px; left: 2px; width: 9px; height: 9px; } }
