/* Forecast Slopes — site stylesheet
   Light theme only. Colors mirror design/tokens.json; change both together.
   Layout: one 1360px column, panels that wrap to a single column under ~760px. */

@font-face { font-family: "Overpass"; font-weight: 400; font-display: swap; src: url("../fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 600; font-display: swap; src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-display: swap; src: url("../fonts/overpass-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 800; font-display: swap; src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 900; font-display: swap; src: url("../fonts/overpass-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-weight: 400; font-display: swap; src: url("../fonts/overpass-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-weight: 600; font-display: swap; src: url("../fonts/overpass-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #1B2733; --ink-2: #33424F; --muted: #4A5866;
  --rule: #D5DCE2; --rule-soft: #E4E9ED; --panel: #F5F7F8; --paper: #FFFFFF;
  --green: #00653A; --green-text: #00532F; --blue: #0B4F9C; --red: #C8102E; --red-text: #A10D25;
  --yellow: #FFCE00; --amber-text: #6B4E00;
  --tint-red: #FDE7EA; --tint-amber: #FFF3C4; --tint-blue: #E8F0FA; --tint-green: #E3F1E8; --tint-row: #F3F7FC;
  --rain-cell: #CFE8D2; --rain-text: #2F6B3A;
  --range: #B9CDE6; --track: #EEF2F5; --mark: #2C4A9A;
  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --serif: "Source Serif 4", Georgia, serif;
  --radius: 12px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
main.wrap { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 52px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.grow { flex: 999 1 640px; min-width: 0; }
.side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.half { flex: 1 1 460px; min-width: 0; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.brand { display: inline-flex; background: var(--green); border-radius: 7px; padding: 4px; text-decoration: none; }
.brand span { border: 2px solid #fff; border-radius: 5px; padding: 6px 14px 4px; color: #fff; font-weight: 900; font-size: 20px; letter-spacing: .06em; line-height: 1.1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav a:hover { border-bottom-color: var(--rule); color: var(--ink); }
.search { flex: 1 1 240px; display: flex; justify-content: flex-end; }
.search input { width: 100%; max-width: 340px; height: 44px; border: 1.5px solid #AEB9C2; border-radius: 8px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--paper); }
.banner-sample { background: var(--yellow); }
.banner-sample .wrap { padding-block: 8px; font-weight: 700; font-size: 14px; }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--green); text-transform: uppercase; }
.display { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; }
.lede { font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; letter-spacing: -.01em; }
.h3 { font-size: 22px; font-weight: 900; }
.sub { font-size: 15px; color: var(--ink-2); }
.caption { font-size: 14px; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }

/* ---------- panels, figures ---------- */
.panel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.panel-pad { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.panel-head { padding: 14px 18px 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.figure { margin: 0; overflow: hidden; }
.figure-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); }
.figure-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 12px 16px 14px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--muted); }
.figure img { width: 100%; height: auto; }
.placeholder-note { font-size: 13px; font-weight: 700; color: var(--amber-text); background: var(--tint-amber); padding: 2px 8px; border-radius: 4px; }

/* pill and toggle buttons */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid #AEB9C2; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.layer { border-radius: 8px; }
.layer[aria-pressed="true"] { background: var(--tint-blue); border-color: var(--blue); color: var(--blue); }

/* snow legend */
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.legend strong { color: var(--ink); }
.scale { display: inline-flex; font: 600 12px/1 var(--mono); }
.scale span { padding: 4px 7px; }
.key-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red-text); }
.key-line::before { content: ""; width: 26px; border-top: 3px dashed var(--red); }
.key-diamond { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.key-diamond::before { content: ""; width: 10px; height: 10px; background: var(--blue); transform: rotate(45deg); }

/* ---------- powder board ---------- */
.board { list-style: none; margin: 0; padding: 0 0 6px; }
.board li { border-top: 1px solid var(--rule-soft); }
.board li.is-current { background: #F3F8F5; }
.board a, .board .row-inner { display: grid; grid-template-columns: 28px 1fr 60px; gap: 4px 10px; align-items: center; padding: 11px 18px; text-decoration: none; color: var(--ink); }
.board .rank { font: 13px var(--mono); color: var(--muted); }
.board .who { display: flex; flex-direction: column; min-width: 0; }
.board .who strong { font-weight: 800; }
.board .who span { font-size: 13px; color: var(--muted); }
.board .amt { font-weight: 900; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.range { grid-column: 2 / 4; position: relative; height: 8px; background: var(--track); border-radius: 4px; }
.range .band { position: absolute; top: 0; bottom: 0; background: var(--range); border-radius: 4px; }
.range .mark { position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; background: var(--mark); border-radius: 2px; }
.board-axis { display: flex; justify-content: space-between; padding: 6px 18px 14px; font: 12px var(--mono); color: var(--muted); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.card p { font-size: 15px; color: var(--ink-2); }
.card a { font-weight: 700; font-size: 15px; margin-top: auto; }
.tag { align-self: flex-start; font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.tag-red { background: var(--tint-red); color: var(--red-text); }
.tag-amber { background: var(--tint-amber); color: var(--amber-text); }
.tag-blue { background: var(--tint-blue); color: var(--blue); }
.tag-green { background: var(--tint-green); color: var(--green-text); }
.chip { display: inline-block; font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 11px 14px; }
table.data thead th { text-align: left; font-size: 13px; letter-spacing: .06em; color: var(--muted); background: var(--panel); text-transform: uppercase; font-weight: 800; white-space: nowrap; }
table.data tbody tr { border-top: 1px solid var(--rule-soft); }
table.data tbody th { text-align: left; font-weight: 800; white-space: nowrap; }
table.data .r { text-align: right; }
table.data .c { text-align: center; }
table.data .big { font-weight: 900; font-size: 18px; }
table.data .fc { color: var(--blue); }
table.data tr.hl { background: var(--tint-row); }
.min-760 { min-width: 760px; }
.min-900 { min-width: 900px; }
.min-980 { min-width: 980px; }
.txt-red { color: var(--red-text); font-weight: 700; }
.txt-amber { color: var(--amber-text); font-weight: 700; }
.txt-blue { color: var(--blue); font-weight: 800; }
.txt-muted { color: var(--muted); }
td.warn { background: var(--tint-amber); color: var(--amber-text); font-weight: 800; }

/* ---------- states ---------- */
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chips-list a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.chips-list a span { color: var(--muted); font-weight: 600; }
.chips-list a.all { border: 1.5px solid var(--green); color: var(--green); font-weight: 800; }

/* ---------- method block ---------- */
.method-box { background: var(--panel); border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.method-box > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stats { margin: 0; flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stats dt { font-size: 14px; color: var(--muted); font-weight: 700; }
.stats dd { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- resort page ---------- */
.crumbs { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.resort-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.resort-head h1 { font-size: clamp(42px, 6vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.resort-head p { font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid #AEB9C2; color: var(--ink); background: var(--paper); text-decoration: none; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { color: #fff; }

.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.verdict > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: 1px 0 0 var(--rule-soft), 0 1px 0 var(--rule-soft); }
.verdict .k { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.verdict .k.red { color: var(--red-text); } .verdict .k.green { color: var(--green); } .verdict .k.blue { color: var(--blue); }
.verdict .v { font-size: clamp(30px, 3.4vw, 40px); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.verdict .v small { font-size: 20px; color: var(--muted); font-weight: 700; }
.verdict .n { font-size: 16px; font-weight: 700; color: var(--ink-2); }

dl.levels { margin: 0; font-variant-numeric: tabular-nums; }
dl.levels > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 18px; border-top: 1px solid var(--rule-soft); }
dl.levels dt { font-weight: 800; }
dl.levels .t { margin: 0; font-weight: 900; font-size: 22px; text-align: right; }
dl.levels .w { margin: 0; font-size: 14px; color: var(--ink-2); }
dl.levels .r { margin: 0; font-size: 14px; color: var(--ink-2); text-align: right; }
dl.trio { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }
dl.trio dt { font-size: 13px; color: var(--muted); font-weight: 700; }
dl.trio dd { margin: 0; font-size: 24px; font-weight: 900; }
ul.avy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
ul.avy li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
ul.avy .lvl { font-weight: 800; padding: 2px 10px; border-radius: 4px; }
.empty { font-size: 15px; color: var(--muted); }

/* the column heatmap */
table.column { border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
table.column th { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; padding: 2px 4px; }
table.column thead th { text-align: center; line-height: 1.2; }
table.column tbody th { text-align: right; padding-right: 8px; font-size: 13px; color: var(--ink); }
table.column td { width: 44px; min-width: 44px; height: 38px; text-align: center; font: 700 12.5px/1 var(--sans); border-radius: 3px; }
table.column td.rain { background: var(--rain-cell); color: var(--rain-text); font-size: 11px; }
table.column td.tot { background: none; font-size: 17px; font-weight: 900; color: var(--ink); width: 52px; text-align: left; padding-left: 8px; }
table.column tr.sl td { height: 26px; background: none; color: var(--red-text); font-size: 11.5px; font-weight: 800; }
table.column tr.sl th { color: var(--red-text); }
table.column .day { color: var(--ink); font-weight: 800; }

.chart svg { width: 100%; height: auto; display: block; }
.only-narrow { display: none; }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.nearby a, .nearby .row-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: var(--ink); }
.nearby .who { display: flex; flex-direction: column; }
.nearby strong { font-weight: 800; }
.nearby span { font-size: 13px; color: var(--muted); }
.nearby b { font-weight: 900; font-size: 20px; }

/* ---------- method page ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.step { flex: 1 1 280px; min-width: 0; border: 1px solid var(--rule); border-top-width: 6px; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.step .no { font: 600 13px var(--mono); }
.step ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.step strong { color: var(--ink); }
.prose { max-width: 46em; display: flex; flex-direction: column; gap: 14px; }
.prose p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); }
.prose h2 { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 4px solid var(--yellow); }
.site-footer .wrap { padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 24px 56px; font-size: 15px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .col.about { max-width: 360px; }
.site-footer .lbl { font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.site-footer .brandline { font-weight: 900; letter-spacing: .06em; }
.site-footer .built { font: 12px var(--mono); color: var(--muted); }

/* ---------- powder odds ---------- */
table.odds td.p { font-weight: 800; font-size: 16px; min-width: 76px; border-left: 2px solid var(--paper); }
table.odds thead th[scope="colgroup"] { text-align: center; }
.chip.src-refs { background: var(--tint-blue); color: var(--blue); }
.chip.src-ens { background: var(--tint-green); color: var(--green-text); }

/* ---------- interactive maps (MapLibre) ---------- */
main.map-main { gap: 28px; }
.map-page { gap: 16px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.map-head .sub { max-width: 52em; }
.map-controls, .map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.map-toolbar { justify-content: space-between; }
.thr { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.thr select { height: 40px; border: 1.5px solid #AEB9C2; border-radius: 8px; padding: 0 10px; font: inherit; color: var(--ink); background: var(--paper); }
.thr input[type="range"] { width: 200px; accent-color: var(--blue); }
.thr output { font: 600 15px var(--mono); min-width: 3.2em; }
.pill:disabled { opacity: .45; cursor: not-allowed; }
.map-figure { position: relative; }
.map { width: 100%; height: min(72vh, 780px); min-height: 440px; background: var(--panel); }
.map-readout { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 90px); background: rgba(255,255,255,.96);
  border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; font-weight: 800; font-size: 15px; color: var(--ink);
  box-shadow: 0 1px 4px rgba(27,39,51,.12); pointer-events: none; font-variant-numeric: tabular-nums; }
.map-readout small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }
.map-fallback { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.map-label { font: 800 13px/1.2 var(--sans); color: var(--ink); background: rgba(255,255,255,.9); padding: 2px 6px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; box-shadow: 0 0 0 1px rgba(27,39,51,.15); }
.map-label b { font-weight: 900; }
.snotel-marker { display: flex; align-items: center; gap: 6px; font: 800 13px/1.2 var(--sans); color: var(--blue); pointer-events: none; }
.snotel-marker::before { content: ""; width: 12px; height: 12px; background: var(--blue); border: 2px solid #fff; transform: rotate(45deg); box-shadow: 0 0 0 1px var(--blue); }
.snotel-marker span { background: rgba(255,255,255,.92); padding: 1px 6px; border-radius: 4px; }
.maplibregl-popup-content { font: 15px/1.4 var(--sans); color: var(--ink); padding: 12px 14px; border-radius: 8px; }
.maplibregl-popup-content strong { font-weight: 900; font-size: 16px; }
.maplibregl-popup-content a { font-weight: 800; }
.maplibregl-ctrl-attrib { font-size: 12px; }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  main.wrap { gap: 40px; padding-block: 20px 48px; }
  .brand span { font-size: 16px; padding: 5px 10px 3px; }
  .nav { gap: 4px 16px; font-size: 15px; }
  .verdict > div { padding: 12px 14px; }
  .verdict { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict .n { font-size: 14px; }
  .panel-pad { padding: 14px; }
  .method-box { padding: 18px; }
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .figure img.crop-phone { height: 320px; object-fit: cover; object-position: 45% 50%; }
  .map { height: 64vh; min-height: 380px; }
  .map-page > .map-figure { order: 1; }          /* phones: the map first, its controls under it */
  .map-page > .map-toolbar { order: 2; }
  .map-page > .map-figure ~ .caption, .map-page > .row { order: 3; }
  .thr input[type="range"] { width: 150px; }
  .map-readout { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
