/*! livepow-web lp.css: mobile-first port of the legacy livepow.com look (docs/live-site.md §2).
 *
 * TOKENS (CSS custom properties on :root)
 *   --lp-blue #2d5886 (nav, table headers)  --lp-blue-2 #6699cc (buttons)  --lp-blue-3 #b3cce6 (tabs, chips)
 *   --lp-link #336699  --lp-bg #f5f5f5  --lp-text rgba(0,0,0,.87)  --lp-muted #667  --lp-card rgba(255,255,255,.85)
 *   --lp-glow 0 0 5px #2d5886  --lp-radius 5px 10px 5px 10px  --lp-ok #ccffe6 --lp-hold #F8E9C4
 *   --lp-closed #F6D6D6 --lp-sched #D8E7FA   avalanche: --avy-1..--avy-5
 *   V4 theme tokens (redefined under html[data-theme=dark] at the end of this file; module CSS should use them):
 *   --lp-accent (blue TEXT) --lp-on-blue-3 --lp-surface --lp-surface-2 --lp-border --lp-border-2 --lp-th/-text/-border
 *   --lp-chip/-text --lp-btn/-h/-text --lp-input/-focus/-text --lp-shadow --lp-warn-bg/-text --lp-chart-axis --lp-chart-grid
 *
 * LAYOUT / CARDS
 *   .lp-card            white semi-transparent card with blue glow (every section is one)
 *   .lp-section         a top-level page section card (has an h2)
 *   .lp-sec             V2 collapsible section: data-open, h2.lp-sec-t > button.lp-sec-h (.lp-sec-tt .lp-sec-sum .lp-chev), .lp-sec-b
 *   .lp-col             LP.collapsible sub-section: h3.lp-col-t > button.lp-col-h, .lp-col-b
 *   .lp-fav-btn         heart favorite toggle (aria-pressed), .lp-fav-txt small label
 *   .lp-mount           module mount inside a section; .lp-skel = skeleton placeholder (min-height + shimmer)
 *   .lp-body            body div of a card created by LP.section()
 *   .lp-sub             sub-block inside a card (spacing + optional h3)
 *   .lp-grid            responsive auto-fill grid (min 220px columns); .lp-grid-2 / .lp-grid-3 fixed max cols
 *   .lp-row             horizontal flex row with gap, wraps
 *   .lp-strip           horizontal scroll strip (webcam thumbnails etc.), scroll-snap
 * DATA
 *   .lp-scroll          wrapper that scrolls horizontally (put every wide table/chart in one)
 *   .lp-table           blue-header zebra table (legacy #currently): th blue, even cols #f2f2f2, hover #cce6ff
 *                       .lp-table.compact smaller padding; th.sticky/td.sticky first column stays visible in .lp-scroll
 *                       cell states: .open .hold .closed .scheduled (lift colours), .num right-aligned figures
 *   .lp-stat            big number tile: <div class="lp-stat"><span class="lp-stat-v">-3°C</span><span class="lp-stat-l">Peak</span></div>
 *   .lp-stats           flex wrap container for .lp-stat tiles
 *   .lp-chart           chart container (LP.chart adds it); .lp-legend custom legend row with .lp-key swatches
 * CONTROLS
 *   .lp-chips > .lp-chip(.active)   pill toggle group (model picker, station picker); use <button class="lp-chip">
 *   .lp-btn, .lp-btn-primary, .lp-btn-small   buttons (legacy .showhide pill look)
 *   .lp-toggle > button(.active)    two-way segmented toggle
 *   details.lp-more > summary       collapsible block
 * TEXT
 *   .lp-muted (secondary text), .lp-small, .lp-note, .lp-unavailable (module failure note), .lp-badge, .lp-sr (screen-reader only)
 *   .lp-loading > .lp-spinner (loading placeholder)
 * MEDIA
 *   .lp-cam (figure: img + figcaption) .lp-modal (full-screen viewer: .lp-modal-in, .lp-modal-x)
 * AVALANCHE
 *   .avy-1 low .avy-2 moderate .avy-3 considerable .avy-4 high .avy-5 extreme; .avy-alp .avy-tln .avy-btl elevation labels
 */
:root {
  --lp-blue: #2d5886;
  --lp-blue-2: #6699cc;
  --lp-blue-2h: #4477aa;
  --lp-blue-3: #b3cce6;
  --lp-blue-3h: #9fbddf;
  --lp-link: #336699;
  --lp-bg: #f5f5f5;
  --lp-text: rgba(0, 0, 0, .87);
  --lp-muted: #5f6670;
  --lp-card: rgba(255, 255, 255, .85);
  --lp-glow: 0 0 5px #2d5886;
  --lp-radius: 5px 10px 5px 10px;
  --lp-zebra: #f2f2f2;
  --lp-hover: #cce6ff;
  --lp-ok: #ccffe6;
  --lp-hold: #f8e9c4;
  --lp-closed: #f6d6d6;
  --lp-sched: #d8e7fa;
  --avy-1: #50b848;
  --avy-2: #fff200;
  --avy-3: #f7941e;
  --avy-4: #ed1c24;
  --avy-5: #000;
  --lp-gutter: 10px;
  --lp-nav-h: 48px;
  /* V4 theme tokens (light values; html[data-theme=dark] at the end redefines them) */
  --lp-accent: #2d5886;          /* blue used as TEXT (headings, figures); --lp-blue stays the fill colour */
  --lp-on-blue-3: #2d5886;       /* text / marks on --lp-blue-3 fills (tabs, chips, badges, chevrons) */
  --lp-surface: #fff;            /* solid panels: tables, stat tiles, resort cards, menus, inputs */
  --lp-surface-2: #f7f9fb;       /* subtle panel, hover, image placeholder */
  --lp-border: #e3e3e3;
  --lp-border-2: #c8c8c8;        /* inputs, rules */
  --lp-th: #2d5886;              /* table header fill + text + border */
  --lp-th-text: #f2f2f2;
  --lp-th-border: #24496f;
  --lp-chip: #eaeaea;
  --lp-chip-text: #555;
  --lp-btn: #e6e6e6;
  --lp-btn-h: #d6d6d6;
  --lp-btn-text: #333;
  --lp-input: #eeefed;
  --lp-input-focus: #fff;
  --lp-input-text: #222;
  --lp-shadow: rgba(45, 88, 134, .5);
  --lp-warn-bg: #fff8e1;
  --lp-warn-text: #6b5a2a;
  --lp-big: #1a56b0;
  --lp-chart-axis: #555555;      /* LP.chart reads these two at draw time */
  --lp-chart-grid: rgba(0, 0, 0, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--lp-nav-h) + 8px); background: var(--lp-bg); }
body {
  margin: 0;
  font: 16px/1.45 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--lp-text);
  background: url(/img/bg-800.webp) 50% -30px / auto 160px repeat-x;
  text-align: left;
  overflow-x: hidden;
}
/* very faded photo behind the page: a fixed layer under body's own background (the header image above), the solid
   page colour is on html. A light wash (~38% light, ~52% dark) of the page colour over a lightly blurred photo (img/hero/bg.webp, ~20 KB). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)), url(/img/hero/bg.webp) 50% 50% / cover no-repeat;
}
/* V4: the image is shifted up so the mountains' base (where they fade into white, ~92% of the image height) sits at
   the bottom of the blue nav bar: mountains above the bar. The image ends exactly at the bottom of the nav bar (header 88/120px + nav 48px: 184-16 = 168,
   220-52 = 168), so there is no white band between it and the faded photo (body::before) below. */
@media (min-width: 700px) {
  body { background-image: url(/img/bg-1500.webp); background-size: auto 184px; background-position: 50% -16px; }
}
@media (min-width: 1500px) {
  body { background-image: url(/img/bg-2200.webp); background-size: auto 220px; background-position: 50% -52px; }
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--lp-link); font-weight: 700; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.22rem; }
h2 { font-size: 1.06rem; color: var(--lp-accent); }
h3 { font-size: .95rem; }
@media (min-width: 700px) { h1 { font-size: 1.36rem; } h2 { font-size: 1.12rem; } }
p { margin: 0 0 .7em; }
code { font-size: .9em; overflow-wrap: anywhere; }

.lp-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--lp-surface); padding: 8px; }
.lp-skip:focus { left: 8px; }
.lp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header + nav */
.lp-header { height: 88px; display: flex; align-items: center; justify-content: center; padding: 8px var(--lp-gutter); }
.lp-logo img { display: block; width: min(66vw, 320px); height: auto; aspect-ratio: 400 / 86; }
@media (min-width: 700px) { .lp-header { height: 120px; } }

.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--lp-blue);
  box-shadow: inset 0 0 10px #fff;
  color: #fff;
}
.lp-nav.sticky { box-shadow: inset 0 0 10px #fff, 0 2px 8px rgba(0, 0, 0, .25); }
.lp-nav-sentinel { height: 1px; margin-bottom: -1px; }
/* one row: name · tabs · search + menu. lp-page.js measures and sets .lp-tabs-fit / .lp-tabs-nofit on the nav;
   before that the tabs show only from 900px (no jump on phones). Hidden tabs stay measurable (absolute + hidden). */
.lp-nav-in {
  position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  max-width: 1400px; margin: 0 auto; padding: 6px var(--lp-gutter);
  min-height: var(--lp-nav-h);
}
.lp-nav-name {
  font-weight: 700; font-size: .95rem; color: #bcd; text-shadow: 0 0 4px rgba(100, 100, 255, 1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0;
}
/* home page: short description after the name (lp-page.js initDesc sets .lp-desc-fit / .lp-desc-nofit; before that
   it shows from 1000px). When shown, the hero H1 with the same text is visually hidden (kept for SEO / readers). */
.lp-nav-desc {
  flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden;
  font-size: .9rem; font-weight: 400; color: #dbe6f2; text-shadow: 0 0 3px rgba(0, 0, 30, .6);
}
.lp-nav-desc ~ .lp-nav-tools { margin-left: 0; }
.lp-nav-name:has(+ .lp-nav-desc) { flex: none; }
/* hidden: 1px wide + overflow hidden so the nowrap text cannot widen the page (Android pans); its text is still measurable */
.lp-nav.lp-desc-nofit .lp-nav-desc { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; width: 1px; }
.lp-nav.lp-desc-nofit .lp-nav-desc ~ .lp-nav-tools { margin-left: auto; }
.lp-nav.lp-desc-nofit .lp-nav-name { flex: 1 1 auto; }
@media (max-width: 999px) {
  .lp-nav:not(.lp-desc-fit) .lp-nav-desc { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; width: 1px; }
  .lp-nav:not(.lp-desc-fit) .lp-nav-desc ~ .lp-nav-tools { margin-left: auto; }
  .lp-nav:not(.lp-desc-fit) .lp-nav-name { flex: 1 1 auto; }
}
.lp-nav.lp-desc-fit ~ .lp-main .lp-home-hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1000px) {
  .lp-nav:not(.lp-desc-nofit) ~ .lp-main .lp-home-hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.lp-tabs { display: flex; flex: none; gap: 5px; list-style: none; margin: 0; padding: 0; }
.lp-tabs-off, .lp-nav.lp-tabs-nofit .lp-tabs { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 899px) { .lp-nav:not(.lp-tabs-fit) .lp-tabs { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; } }
.lp-tab {
  display: block; padding: 5px 10px; white-space: nowrap; font-size: .85rem;
  background: var(--lp-blue-3); color: var(--lp-on-blue-3);
  border-radius: var(--lp-radius); box-shadow: inset 0 0 5px var(--lp-blue);
}
.lp-tab:hover { background: var(--lp-blue-3h); text-decoration: none; }
.lp-tab.active { background: rgba(255, 255, 255, .85); color: #777; box-shadow: inset 0 0 5px #aaa; border-radius: 12px 12px 0 0; }
.lp-nav-tools { flex: none; margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lp-search { position: static; margin: 0; }
.lp-search input {
  width: 150px; height: 34px; padding: 0 10px; font: inherit; font-size: .88rem;
  background: var(--lp-input); border: 1px solid var(--lp-border-2); border-radius: 4px; color: var(--lp-input-text);
}
.lp-search input:focus { background: var(--lp-input-focus); }
@media (max-width: 420px) { .lp-search input { width: 132px; } }
@media (min-width: 700px) { .lp-search input:focus { width: 200px; } }
.lp-search-list {
  position: absolute; right: var(--lp-gutter); top: 100%; z-index: 60; width: min(340px, 92vw);
  margin: 0; padding: 4px 0; list-style: none; background: var(--lp-surface); color: var(--lp-text);
  border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); max-height: 60vh; overflow-y: auto;
}
@media (max-width: 699px) { .lp-nav .lp-search-list { left: 8px; right: 8px; width: auto; } }
.lp-search-list li { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-sr-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; flex: 1 1 auto; min-width: 0; }
.lp-search-list li.sel, .lp-search-list li:hover { background: var(--lp-hover); }
.lp-sr-name { font-weight: 700; }
.lp-sr-place { color: var(--lp-muted); font-size: .85em; white-space: nowrap; }
.lp-sr-none { color: var(--lp-muted); cursor: default; }
@media (min-width: 900px) {
  .lp-nav-name { font-size: 1.1rem; }
  .lp-tab { font-size: .92rem; padding: 6px 14px; }
}

/* hamburger + right-side menu (lp-page.js): sections (navigate, collapse, move, hide), Home, account, °C/°F */
.lp-menu-btn {
  width: 40px; height: 34px; padding: 0; flex: none; cursor: pointer; position: relative;
  border: 0; border-radius: var(--lp-radius); background: var(--lp-blue-3); color: var(--lp-blue);
  box-shadow: inset 0 0 5px var(--lp-blue);
}
.lp-menu-btn:hover, .lp-menu-btn[aria-expanded="true"] { background: var(--lp-blue-3h); }
.lp-burger, .lp-burger::before, .lp-burger::after {
  position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 1px; background: var(--lp-blue); content: "";
  transition: transform .15s ease, top .15s ease, opacity .15s;
}
.lp-burger { top: 16px; }
.lp-burger::before { left: 0; top: -6px; }
.lp-burger::after { left: 0; top: 6px; }
.lp-menu-btn[aria-expanded="true"] .lp-burger { background: transparent; }
.lp-menu-btn[aria-expanded="true"] .lp-burger::before { top: 0; transform: rotate(45deg); }
.lp-menu-btn[aria-expanded="true"] .lp-burger::after { top: 0; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .lp-burger, .lp-burger::before, .lp-burger::after { transition: none; } }
.lp-menu {
  position: absolute; right: var(--lp-gutter); top: 100%; z-index: 70; margin-top: 2px;
  width: min(330px, calc(100vw - 2 * var(--lp-gutter))); max-height: calc(100vh - var(--lp-nav-h) - 12px); overflow-y: auto;
  overscroll-behavior: contain; padding: 8px 0; background: var(--lp-surface); color: var(--lp-text); font-size: .85rem;
  border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}
.lp-menu[hidden] { display: none; }
.lp-menu-h { margin: 6px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-menu-sep { height: 1px; margin: 8px 0; background: var(--lp-border); border: 0; }
.lp-menu-link {
  display: block; padding: 7px 12px; color: var(--lp-link); font-weight: 700; font-size: .85rem; text-decoration: none;
  background: none; border: 0; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
}
.lp-menu-link:hover, .lp-menu-link:focus-visible { background: var(--lp-hover); text-decoration: none; }
.lp-menu-secs { list-style: none; margin: 0; padding: 0; }
.lp-menu-sec { display: flex; align-items: center; gap: 2px; padding: 0 6px 0 0; min-height: 34px; }
.lp-menu-sec:hover { background: var(--lp-surface-2); }
.lp-menu-go {
  flex: 1 1 auto; min-width: 0; padding: 7px 4px 7px 12px; font: inherit; font-size: .8rem; text-align: left; color: var(--lp-text);
  background: none; border: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-menu-go:hover { color: var(--lp-link); text-decoration: underline; }
.lp-menu-sec.off .lp-menu-go { color: var(--lp-muted); opacity: .7; text-decoration: line-through; cursor: default; }
.lp-menu-sec.shut .lp-menu-go { color: var(--lp-muted); }
.lp-menu-i {
  flex: none; width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .9rem; line-height: 1; color: var(--lp-accent); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.lp-menu-i:hover { background: var(--lp-blue-3); color: var(--lp-on-blue-3); }
.lp-menu-i[disabled] { opacity: .3; cursor: default; background: none; }
.lp-menu-i svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-menu-units { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 6px; }
.lp-menu-units .lp-toggle > button { font-size: .8rem; padding: 6px 12px; }
.lp-menu-reset { margin: 2px 12px 4px; padding: 0; font: inherit; font-size: .75rem; color: var(--lp-muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- page */
.lp-main { max-width: 1400px; margin: 0 auto; padding: 12px var(--lp-gutter) 20px; }
@media (min-width: 700px) { :root { --lp-gutter: 16px; } }
.lp-intro { margin: 4px 2px 12px; }
.lp-intro h1 { margin-bottom: .2em; }
.lp-intro p { margin: 0; }
.lp-intro .lp-place { font-size: .85rem; }
.lp-hdr-wx { margin: 3px 0 0; font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; }
.lp-hdr-wx[hidden] { display: none; }
.lp-sec[data-uhide="1"] { display: none !important; }  /* hidden by the user in the section menu (cookie lp_ord) */

.lp-card {
  background: var(--lp-card);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-glow);
  padding: 12px;
  margin: 0 0 16px;
  min-width: 0;
}
@media (min-width: 700px) { .lp-card { padding: 16px; } }
.lp-section > h2 { margin-bottom: .6em; }
.lp-mount + .lp-mount { margin-top: 14px; }
.lp-mount:empty:not(.lp-skel) { display: none; }
.lp-sub { margin-top: 16px; }
.lp-sub:first-child { margin-top: 0; }

.lp-skel {
  min-height: 140px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .04) 25%, rgba(0, 0, 0, .08) 37%, rgba(0, 0, 0, .04) 63%) 0 0 / 400% 100%;
  animation: lp-shimmer 1.4s ease infinite;
}
#lp-cams.lp-skel { min-height: 125px; }                /* one webcam strip */
#lp-roadcams.lp-skel { min-height: 125px; }
#lp-forecast.lp-skel { min-height: 420px; }
#lp-stations.lp-skel { min-height: 320px; }
#lp-livewx.lp-skel { min-height: 260px; }              /* legacy weather plot (rows with legacyWx) */
#lp-nearby.lp-skel { min-height: 220px; }
.lp-mount[hidden] { display: none; }
@keyframes lp-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .lp-skel { animation: none; } html { scroll-behavior: auto; } }

.lp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lp-grid-2, .lp-grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lp-grid-2 { grid-template-columns: 1fr 1fr; } .lp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .lp-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.lp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-strip {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding-bottom: 6px; -webkit-overflow-scrolling: touch;
}
.lp-strip > * { flex: 0 0 auto; scroll-snap-align: start; }

/* ---------------------------------------------------------------- tables */
.lp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; overscroll-behavior-x: contain; }
.lp-scroll.rtl { direction: rtl; } /* starts scrolled to the newest data on the right */
.lp-scroll.rtl > * { direction: ltr; }
.lp-table { border-collapse: collapse; font-size: .9rem; width: auto; min-width: 100%; background: var(--lp-surface); }
.lp-table th, .lp-table td { padding: 7px 8px; text-align: center; white-space: nowrap; border: 1px solid var(--lp-border); }
.lp-table th { background: var(--lp-th); color: var(--lp-th-text); font-weight: 700; border-color: var(--lp-th-border); }
.lp-table td:nth-child(even) { background: var(--lp-zebra); }
.lp-table tbody tr:hover td { background: var(--lp-hover); }
.lp-table th[scope=row], .lp-table td.lbl { text-align: left; }
.lp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-table.compact th, .lp-table.compact td { padding: 4px 6px; font-size: .82rem; }
.lp-table .sticky { position: sticky; left: 0; z-index: 1; }
.lp-table td.sticky { background: var(--lp-surface); box-shadow: 1px 0 0 var(--lp-border); }
.lp-table td.open, .lp-table tr:hover td.open { background: var(--lp-ok); }
.lp-table td.hold, .lp-table tr:hover td.hold { background: var(--lp-hold); }
.lp-table td.closed, .lp-table tr:hover td.closed { background: var(--lp-closed); }
.lp-table td.scheduled, .lp-table tr:hover td.scheduled { background: var(--lp-sched); }

/* ---------------------------------------------------------------- stats */
.lp-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 88px; padding: 8px 10px; background: var(--lp-surface); border-radius: 8px; box-shadow: 0 0 3px var(--lp-shadow);
}
.lp-stat-v { font-size: 1.2rem; font-weight: 700; color: var(--lp-accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-stat-l { font-size: .72rem; color: var(--lp-muted); text-align: center; }

/* ---------------------------------------------------------------- charts */
.lp-chart { width: 100%; min-width: 0; position: relative; }
.lp-chart .uplot { font-family: inherit; }
.lp-chart .u-legend { font-size: .8rem; text-align: left; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--lp-muted); margin: 6px 0; }
.lp-key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }

/* ---------------------------------------------------------------- controls */
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lp-chips.lp-strip { flex-wrap: nowrap; }
.lp-chip {
  font: inherit; font-size: .85rem; line-height: 1.2; padding: 6px 12px; cursor: pointer;
  border: 0; border-radius: 999px; background: var(--lp-chip); color: var(--lp-chip-text); box-shadow: inset 0 0 3px #aaa;
  white-space: nowrap;
}
.lp-chip:hover { background: var(--lp-blue-3); color: var(--lp-on-blue-3); }
.lp-chip.active, .lp-chip[aria-pressed=true], .lp-chip[aria-selected=true] { background: var(--lp-blue); color: #fff; box-shadow: none; }
.lp-chip small { opacity: .75; margin-left: 4px; }
.lp-btn {
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; display: inline-block;
  padding: 9px 16px; border: 0; border-radius: 999px; background: var(--lp-btn); color: var(--lp-btn-text);
}
.lp-btn:hover { background: var(--lp-btn-h); text-decoration: none; }
.lp-btn-primary { background: var(--lp-blue-2); color: #fff; }
.lp-btn-primary:hover { background: var(--lp-blue-2h); }
.lp-btn-small { padding: 5px 10px; font-size: .8rem; }
.lp-btn[disabled] { opacity: .6; cursor: default; }
.lp-toggle { display: inline-flex; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px #bbb; }
.lp-toggle > button { font: inherit; font-size: .85rem; border: 0; padding: 6px 12px; background: var(--lp-chip); color: var(--lp-chip-text); cursor: pointer; }
.lp-toggle > button.active { background: var(--lp-blue); color: #fff; }
details.lp-more { margin: 8px 0; }
details.lp-more > summary { cursor: pointer; font-weight: 700; color: var(--lp-link); padding: 6px 0; }

/* ---------------------------------------------------------------- text */
.lp-muted { color: var(--lp-muted); }
.lp-small { font-size: .82rem; }
.lp-note { font-size: .85rem; color: var(--lp-muted); margin: 6px 0; }
.lp-unavailable { margin: 0; padding: 10px 12px; font-size: .9rem; color: var(--lp-warn-text); background: var(--lp-warn-bg); border-radius: 6px; }
.lp-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--lp-blue-3); color: var(--lp-on-blue-3); vertical-align: middle; }
.lp-loading { display: flex; justify-content: center; align-items: center; min-height: 80px; }
.lp-spinner { width: 28px; height: 28px; border: 3px solid var(--lp-blue-3); border-top-color: var(--lp-blue); border-radius: 50%; animation: lp-spin .8s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-devnotice { background: var(--lp-warn-bg); border: 1px solid #e0c36b; color: var(--lp-warn-text); padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; font-size: .9rem; }

/* ---------------------------------------------------------------- webcams + modal */
.lp-cam { margin: 0; width: 168px; }
.lp-cam img { display: block; width: 168px; height: 112px; object-fit: cover; border-radius: 6px; background: var(--lp-surface-2); cursor: zoom-in; }
.lp-cam figcaption { font-size: .78rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 700px) { .lp-cam { width: 200px; } .lp-cam img { width: 200px; height: 133px; } }
.lp-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.lp-modal[hidden] { display: none; }
.lp-modal-in { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px; }
.lp-modal-in img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lp-modal-x { position: absolute; top: 6px; right: 10px; font-size: 2.2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.lp-modal a { color: #bcd; }

/* ---------------------------------------------------------------- avalanche */
.avy-1 { background: var(--avy-1); color: #000; }
.avy-2 { background: var(--avy-2); color: #000; }
.avy-3 { background: var(--avy-3); color: #000; }
.avy-4 { background: var(--avy-4); color: #fff; }
.avy-5 { background: var(--avy-5); color: #fff; }
.avy-alp { background: #e4eef9; }
.avy-tln { background: #c0d731; }
.avy-btl { background: #6fa468; color: #fff; }

/* ---------------------------------------------------------------- banner + forms */
.lp-banner-mount:empty { display: none; }
/* reserve the banner's height before lp-banner.js fills it (no layout shift); class set inline in <head> from the cookies */
/* (measured for the banner text of lp-banner.js; re-measure when it changes: filled height + its 16px margin) */
.lp-banner-on .lp-banner-mount:empty { display: block; min-height: 249px; }
@media (min-width: 295px) { .lp-banner-on .lp-banner-mount:empty { min-height: 226px; } }
@media (min-width: 350px) { .lp-banner-on .lp-banner-mount:empty { min-height: 203px; } }
@media (min-width: 410px) { .lp-banner-on .lp-banner-mount:empty { min-height: 180px; } }
@media (min-width: 505px) { .lp-banner-on .lp-banner-mount:empty { min-height: 156px; } }
@media (min-width: 735px) { .lp-banner-on .lp-banner-mount:empty { min-height: 133px; } }
@media (min-width: 1375px) { .lp-banner-on .lp-banner-mount:empty { min-height: 110px; } }
.lp-nobanner .lp-banner-mount, .lp-banner-on .lp-banner-mount[hidden], .lp-banner-mount[hidden] { display: none; }
.lp-banner {
  position: relative; margin: 0 0 16px; padding: 12px 40px 12px 14px;
  background: linear-gradient(135deg, #2d5886, #4477aa); color: #fff;
  border-radius: var(--lp-radius); box-shadow: var(--lp-glow);
}
.lp-banner-text { margin: 0 0 8px; }
.lp-banner-x { position: absolute; top: 4px; right: 6px; font-size: 1.6rem; line-height: 1; padding: 4px 8px; border: 0; background: none; color: #fff; cursor: pointer; }
.lp-banner-actions .lp-btn-primary { background: #fff; color: var(--lp-blue); }
.lp-banner-actions .lp-btn-primary:hover { background: #e8f0fa; }
.lp-banner-form { margin-top: 10px; background: var(--lp-surface); color: var(--lp-text); border-radius: 8px; padding: 12px; }
.lp-form { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lp-form { grid-template-columns: 1fr 1fr; } .lp-check, .lp-turnstile, .lp-form-actions, .lp-form-status { grid-column: 1 / -1; } }
.lp-field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 3px; }
.lp-field input, .lp-field select {
  width: 100%; height: 40px; padding: 0 10px; font: inherit; font-size: 16px; /* 16px: no iOS zoom */
  border: 1px solid var(--lp-border-2); border-radius: 6px; background: var(--lp-surface); color: var(--lp-input-text);
}
.lp-check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.lp-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.lp-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lp-form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.lp-form-ok { color: #1b5e20; font-weight: 700; }
.lp-form-error { color: #b00020; }


/* ---------------------------------------------------------------- collapsible sections (V2) */
/* <section.lp-sec data-open> > h2.lp-sec-t > button.lp-sec-h (.lp-sec-tt .lp-sec-sum .lp-chev) + .lp-sec-b
   sub-sections: div.lp-col[data-open] > h3.lp-col-t > button.lp-col-h + .lp-col-b (LP.collapsible) */
.lp-sec > .lp-sec-t { margin: 0; font-size: 1.02rem; }
@media (min-width: 700px) { .lp-sec > .lp-sec-t { font-size: 1.1rem; } }
.lp-sec[data-open="1"] > .lp-sec-t { margin-bottom: .6em; }
.lp-sec[data-open="0"] > .lp-sec-b, .lp-col[data-open="0"] > .lp-col-b { display: none; }
.lp-sec[data-open="0"] { padding-top: 10px; padding-bottom: 10px; }
.lp-sec-h, .lp-col-h {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 2px 0; min-height: 32px;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lp-sec-tt, .lp-col-tt { min-width: 0; overflow-wrap: anywhere; }
.lp-sec-h:hover .lp-sec-tt, .lp-col-h:hover .lp-col-tt { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-sec-h:focus-visible, .lp-col-h:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 2px; border-radius: 4px; }
.lp-sec-sum {
  display: none; flex: 0 1 auto; min-width: 0; margin-left: 2px;
  font-size: .78rem; font-weight: 400; color: var(--lp-muted); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-sec-sum.on { display: inline-block; }
.lp-sec-sum .lp-badge { vertical-align: 1px; }
.lp-chev {
  flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; position: relative;
  background: var(--lp-blue-3); box-shadow: inset 0 0 4px rgba(45, 88, 134, .6);
}
.lp-chev::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -4px;
  border-right: 2px solid var(--lp-on-blue-3); border-bottom: 2px solid var(--lp-on-blue-3); transform: rotate(45deg);
  transition: transform .15s ease, margin .15s ease;
}
[data-open="0"] > * > .lp-sec-h .lp-chev::before, [data-open="0"] > * > .lp-col-h .lp-chev::before { transform: rotate(-45deg); margin: -4px 0 0 -6px; }
.lp-sec-h:hover .lp-chev, .lp-col-h:hover .lp-chev { background: var(--lp-blue-3h); }
@media (prefers-reduced-motion: reduce) { .lp-chev::before { transition: none; } }
.lp-col { margin-top: 12px; border-top: 1px solid rgba(45, 88, 134, .18); padding-top: 6px; }
.lp-col:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.lp-col > .lp-col-t { margin: 0; font-size: .95rem; color: var(--lp-accent); }
.lp-col[data-open="1"] > .lp-col-t { margin-bottom: 8px; }
.lp-col-h .lp-chev { width: 22px; height: 22px; }
.lp-sec[hidden], .lp-col[hidden] { display: none; }

/* ---------------------------------------------------------------- favorites (heart toggle; LP.fav in lp-core.js) */
/* --lp-heart: the filled heart (redefined for dark at the end of this file) */
.lp-fav-btn, .lp-heart { --lp-heart: #d7263d; }
.lp-fav-btn {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; margin: 0; vertical-align: middle;
  font: inherit; font-size: .75rem; font-weight: 400; line-height: 1; color: var(--lp-muted);
  background: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.lp-fav-btn:hover { color: var(--lp-heart); }
.lp-fav-btn:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 1px; }
.lp-heart { display: inline-block; width: 22px; height: 22px; flex: none; vertical-align: middle; }
.lp-heart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lp-heart-p { fill: transparent; stroke: var(--lp-muted); transition: fill .15s, stroke .15s, transform .15s; transform-origin: 50% 55%; }
.lp-fav-btn:hover .lp-heart-p { stroke: var(--lp-heart); }
.lp-fav-btn[aria-pressed="true"] { color: var(--lp-heart); }
.lp-fav-btn[aria-pressed="true"] .lp-heart-p, .lp-heart.on .lp-heart-p { fill: var(--lp-heart); stroke: var(--lp-heart); }
.lp-fav-btn:active .lp-heart-p { transform: scale(.85); }
.lp-intro h1 .lp-fav-btn { margin-left: 2px; vertical-align: 2px; }
.lp-intro h1 .lp-heart { width: 22px; height: 22px; }
.lp-fav-txt { font-size: .78rem; }
.lp-search-list .lp-fav-btn { padding: 4px; margin: -4px -6px -4px 0; }

/* ---------------------------------------------------------------- resort cards (lp-nearby.js: nearby + home favorites) */
.lp-rc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 499px) { .lp-rc-grid { grid-template-columns: 1fr; gap: 8px; } }
.lp-rc {
  min-width: 0; padding: 10px 12px; background: var(--lp-surface); border-radius: 8px; box-shadow: 0 0 3px var(--lp-shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
}
.lp-rc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-width: 0; grid-column: 1 / -1; }
.lp-rc-n { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.lp-rc-h .lp-fav-btn { margin: -4px 0; padding: 2px; }
.lp-rc-h .lp-heart { width: 20px; height: 20px; }
.lp-rc-p { grid-column: 1; grid-row: 2; align-self: end; font-size: .8rem; color: var(--lp-muted); line-height: 1.25; }
.lp-rc-snow { grid-column: 2; grid-row: 2; display: flex; gap: 10px; }
.lp-rc-c { display: flex; flex-direction: column; align-items: flex-end; min-width: 54px; }
.lp-rc-v { font-size: 1.05rem; font-weight: 700; color: var(--lp-accent); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.lp-rc-l { font-size: .65rem; color: var(--lp-muted); white-space: nowrap; }
.lp-rc-big .lp-rc-c:first-child .lp-rc-v { color: var(--lp-big); }
.lp-rc-big { box-shadow: 0 0 0 2px var(--lp-blue-3), 0 0 4px rgba(45, 88, 134, .6); }
.lp-rc-na .lp-rc-v { color: var(--lp-muted); font-weight: 400; }
.lp-rc-c[hidden] { display: none; }
.lp-rc-tv { font-size: .92rem; }                       /* avg high/low next 48 h (hi48/lo48), each LP.tempColor */
@media (max-width: 359px) { .lp-rc-snow { gap: 6px; } .lp-rc-c { min-width: 44px; } }
.lp-rc-note { margin-top: 8px; }
.lp-rc-more { margin: 4px 0 0; }

/* ---------------------------------------------------------------- locations + footer */
.lp-loclist { columns: 1; column-gap: 24px; }
@media (min-width: 600px) { .lp-loclist { columns: 2; } }
@media (min-width: 1000px) { .lp-loclist { columns: 3; } }
@media (min-width: 1300px) { .lp-loclist { columns: 4; } }
.lp-locgroup { break-inside: avoid; margin-bottom: 14px; }
.lp-locgroup h3 { font-size: .9rem; color: var(--lp-accent); border-bottom: 1px solid var(--lp-blue-3); padding-bottom: 3px; margin-bottom: 4px; }
.lp-locgroup ul { list-style: none; margin: 0; padding: 0; }
.lp-locgroup li { padding: 3px 0; }
.lp-locgroup a { font-weight: 400; }
.lp-locgroup a[aria-current] { font-weight: 700; }
.lp-footer { max-width: 1400px; margin: 0 auto; padding: 0 var(--lp-gutter) 30px; text-align: center; font-size: .85rem; }
.lp-disclaimer { border-top: 1px solid var(--lp-border-2); border-bottom: 1px solid var(--lp-border-2); padding: 10px 0; }

/* the 404 page */
.lp-404 .lp-intro { padding: 16px; }

@media print {
  html, body { background: #fff; }
  body::before { display: none; }
  .lp-nav, .lp-banner-mount, .lp-header { display: none; }
  .lp-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ================================================================ dark theme (V4)
 * html[data-theme=dark] is set before first paint by the inline <head> script (cookie lp_theme, else the OS) and kept in
 * sync by LP.theme() (lp-core.js), which fires 'lp:theme'. Tokens first, then lp.css parts that need more than tokens,
 * then overrides for the module stylesheets (lp-forecast/-stations/-cams/-whistler/-avy/-towns/-account.css).
 */
html[data-theme=dark] {
  color-scheme: dark;
  --lp-blue-2: #4a78aa;
  --lp-blue-2h: #5b8bc0;
  --lp-blue-3: #2c4a6e;
  --lp-blue-3h: #36597f;
  --lp-link: #8cbcf0;
  --lp-bg: #12161b;
  --lp-text: #e3e7ec;
  --lp-muted: #9ba6b2;
  --lp-card: rgba(28, 34, 42, .94);
  --lp-glow: 0 0 5px rgba(80, 130, 190, .55);
  --lp-zebra: #222a33;
  --lp-hover: #2a3f58;
  --lp-ok: #1d4a36;
  --lp-hold: #4d4220;
  --lp-closed: #522a2a;
  --lp-sched: #233a5c;
  --lp-accent: #9cc3ef;
  --lp-on-blue-3: #dbe8f7;
  --lp-surface: #1b2129;
  --lp-surface-2: #232b35;
  --lp-border: #333d49;
  --lp-border-2: #45515e;
  --lp-th: #2a4f7a;
  --lp-th-text: #eef3f8;
  --lp-th-border: #3a5f8a;
  --lp-chip: #2a323c;
  --lp-chip-text: #c9d1da;
  --lp-btn: #2c3540;
  --lp-btn-h: #37414e;
  --lp-btn-text: #e3e7ec;
  --lp-input: #232b35;
  --lp-input-focus: #2a333e;
  --lp-input-text: #e9edf1;
  --lp-shadow: rgba(0, 0, 0, .6);
  --lp-warn-bg: #3d3420;
  --lp-warn-text: #f0d9a0;
  --lp-big: #8fc1ff;
  --lp-chart-axis: #b3bdc8;
  --lp-chart-grid: rgba(255, 255, 255, .10);
}
/* header image: dimmed a little. It ends at the bottom of the nav bar (136 / 168px), so no band. */
html[data-theme=dark] body {
  background-image: linear-gradient(rgba(10, 14, 20, .28), rgba(10, 14, 20, .28)), url(/img/bg-800.webp);
  background-size: 100% 136px, auto 160px; background-position: 0 0, 50% -30px; background-repeat: no-repeat, repeat-x;
}
html[data-theme=dark] body::before {
  background-image: linear-gradient(rgba(18, 22, 27, .52), rgba(18, 22, 27, .52)), url(/img/hero/bg.webp);
}
@media (min-width: 700px) {
  html[data-theme=dark] body {
    background-image: linear-gradient(rgba(10, 14, 20, .28), rgba(10, 14, 20, .28)), url(/img/bg-1500.webp);
    background-size: 100% 168px, auto 184px; background-position: 0 0, 50% -16px; background-repeat: no-repeat, repeat-x;
  }
}
@media (min-width: 1500px) {
  html[data-theme=dark] body {
    background-image: linear-gradient(rgba(10, 14, 20, .28), rgba(10, 14, 20, .28)), url(/img/bg-2200.webp);
    background-size: 100% 168px, auto 220px; background-position: 0 0, 50% -52px;
  }
}
html[data-theme=dark] .lp-nav { box-shadow: inset 0 0 10px rgba(255, 255, 255, .45); }
html[data-theme=dark] .lp-tab.active { background: var(--lp-surface); color: var(--lp-text); box-shadow: inset 0 0 5px #000; }
html[data-theme=dark] .lp-menu-btn { color: var(--lp-on-blue-3); }
html[data-theme=dark] .lp-burger, html[data-theme=dark] .lp-burger::before, html[data-theme=dark] .lp-burger::after { background: var(--lp-on-blue-3); }
html[data-theme=dark] .lp-menu-btn[aria-expanded="true"] .lp-burger { background: transparent; }
html[data-theme=dark] .lp-menu { box-shadow: 0 8px 28px rgba(0, 0, 0, .7), 0 0 0 1px var(--lp-border); }
html[data-theme=dark] .lp-chip, html[data-theme=dark] .lp-toggle { box-shadow: inset 0 0 0 1px var(--lp-border-2); }
html[data-theme=dark] .lp-chip.active, html[data-theme=dark] .lp-chip[aria-pressed=true], html[data-theme=dark] .lp-chip[aria-selected=true],
html[data-theme=dark] .lp-toggle > button.active { background: var(--lp-blue-2); color: #fff; }
html[data-theme=dark] .lp-skel { background-image: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 255, 255, .08) 37%, rgba(255, 255, 255, .03) 63%); }
html[data-theme=dark] .lp-col { border-top-color: var(--lp-border); }
html[data-theme=dark] .lp-chev { box-shadow: inset 0 0 4px rgba(0, 0, 0, .5); }
html[data-theme=dark] .lp-fav-btn, html[data-theme=dark] .lp-heart { --lp-heart: #ff5a6e; }
html[data-theme=dark] .lp-banner-actions .lp-btn-primary { background: #e8f0fa; color: #1d3a5a; }
html[data-theme=dark] .lp-wb-btn { box-shadow: var(--lp-glow), inset 0 0 10px rgba(255, 255, 255, .3); }
html[data-theme=dark] .avy-alp { background: #34465c; }
html[data-theme=dark] .uplot, html[data-theme=dark] .lp-chart .u-legend { color: var(--lp-text); }
html[data-theme=dark] .u-select { background: rgba(255, 255, 255, .1); }

/* ---- module stylesheets (owned by F / S / W / A): the light-only colours they hard-code */
/* forecast (lp-forecast.css) */
html[data-theme=dark] .lp-fc .sn { color: #9db7ee; }
html[data-theme=dark] .lp-fc .rn { color: #5fd38a; }
html[data-theme=dark] .lp-fc .hi { color: #ff7a7a; }
html[data-theme=dark] .lp-fc .lo { color: #8ea2ff; }
html[data-theme=dark] .lp-fc .warn { color: #ff7a7a; }
html[data-theme=dark] .lp-fc .mut, html[data-theme=dark] .lp-fc-credit, html[data-theme=dark] .lp-fc-small,
html[data-theme=dark] .lp-fc-loading, html[data-theme=dark] .lp-fc-note, html[data-theme=dark] .lp-fc-info,
html[data-theme=dark] .lp-fc-time td, html[data-theme=dark] .lp-fc-table th small, html[data-theme=dark] .lp-fc-table td small { color: var(--lp-muted); }
html[data-theme=dark] .lp-fc-elev, html[data-theme=dark] .lp-fc-totals b { color: var(--lp-text); }
html[data-theme=dark] .lp-fc-point, html[data-theme=dark] .lp-fc-h, html[data-theme=dark] .lp-fc-det > summary, html[data-theme=dark] .lp-fc-lockin { color: var(--lp-accent); }
html[data-theme=dark] .lp-fc-chip, html[data-theme=dark] .lp-fc-tog { color: var(--lp-on-blue-3); background: var(--lp-blue-3); }
html[data-theme=dark] .lp-fc-chip:hover, html[data-theme=dark] .lp-fc-tog:hover { background: var(--lp-blue-3h); }
html[data-theme=dark] .lp-fc-chip.on, html[data-theme=dark] .lp-fc-tog.on { background: var(--lp-blue-2); color: #fff; box-shadow: inset 0 0 6px rgba(255, 255, 255, .5); }
html[data-theme=dark] .lp-fc-chip.off { background: var(--lp-chip); color: #6b7580; box-shadow: none; }
html[data-theme=dark] .lp-fc-table td { background: var(--lp-surface); border-color: var(--lp-border); }
html[data-theme=dark] .lp-fc-table td.n { background: #161b22; }
html[data-theme=dark] .lp-fc-table td.now { background: #3a3522; }
html[data-theme=dark] .lp-fc-table td.n.now { background: #2f2b1d; }
html[data-theme=dark] .lp-fc-table thead th { background: var(--lp-th); color: var(--lp-th-text); }
html[data-theme=dark] .lp-fc-table tbody th, html[data-theme=dark] .lp-fc-day td { background: var(--lp-surface); color: var(--lp-text); }
html[data-theme=dark] .lp-fc-table td.p { background: #262e38; color: var(--lp-muted); }
html[data-theme=dark] .lp-fc-table td.p.n { background: #1e252e; }
html[data-theme=dark] .lp-fc-table .lp-fc-lockh { background: #3b4d63; }
/* past forecast: striped day-name headings, the "Historical" bar and the history lock block (beat the td/th rules above) */
html[data-theme=dark] .lp-fc-table thead th.p { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0 5px, rgba(255, 255, 255, .11) 5px 10px) #3b4d63; }
html[data-theme=dark] .lp-fc-table td.lp-fc-hdiv, html[data-theme=dark] .lp-fc-table thead th.lp-fc-hdiv { background: repeating-linear-gradient(135deg, #5b93d1 0 5px, #1c2a3a 5px 10px); }
html[data-theme=dark] .lp-fc-table td.lp-fc-hlock { background: repeating-linear-gradient(135deg, #1e252e 0 8px, #2b3746 8px 16px); border-right-color: #4f86c4; }
html[data-theme=dark] .lp-fc-harr, html[data-theme=dark] .lp-fc-hv { background: rgba(27, 33, 41, .94); color: var(--lp-accent); }
html[data-theme=dark] .lp-fc-table td.lp-fc-lock { background: repeating-linear-gradient(135deg, #1e252e 0 8px, #242c36 8px 16px); }
/* stations / lifts / header weather (lp-stations.css) */
html[data-theme=dark] .lps-pill { background: var(--lp-surface); border-color: var(--lp-border-2); }
html[data-theme=dark] .lps-pill-main { background: var(--lp-blue-2); border-color: transparent; }
html[data-theme=dark] .lps-card { background: rgba(27, 33, 41, .8); border-color: var(--lp-border); }
html[data-theme=dark] .lps-chev { color: var(--lp-muted); }
html[data-theme=dark] .lps-new { color: #7fb6ff; }
html[data-theme=dark] .lps-chip { color: var(--lp-on-blue-3); }
html[data-theme=dark] .lps-stale, html[data-theme=dark] .lps-lg-stamp, html[data-theme=dark] .lps-lg-on { color: var(--lp-text); }
html[data-theme=dark] .lps-loading { background-image: linear-gradient(90deg, #1e252e 0, #28313c 50%, #1e252e 100%); }
html[data-theme=dark] .lps-group, html[data-theme=dark] .lpx-title, html[data-theme=dark] .lps-dlg h3, html[data-theme=dark] .lpl-title { color: var(--lp-accent); }
html[data-theme=dark] .lpx-cell { background: var(--lp-surface-2); border-color: var(--lp-border); }
html[data-theme=dark] .lpx-now dt { background: var(--lp-th); }
html[data-theme=dark] .lpx-chart { background: rgba(27, 33, 41, .7); border-color: var(--lp-border); }
html[data-theme=dark] .lps-dlg { background: var(--lp-surface); color: var(--lp-text); }
html[data-theme=dark] .lpl-past { color: var(--lp-muted); }
html[data-theme=dark] .lpl-warn { color: #ffa36b; }
html[data-theme=dark] .lpl-table td.lpl-d-open { background: #18352a; }
html[data-theme=dark] .lpl-table td.lpl-d-hold { background: #382f19; }
html[data-theme=dark] .lpl-table td.lpl-d-closed { background: #3a2121; }
/* webcams (lp-cams.css) */
html[data-theme=dark] .lpc-title, html[data-theme=dark] .lpc-name { color: var(--lp-accent); }
html[data-theme=dark] .lpc-quiet, html[data-theme=dark] .lpc-note { color: var(--lp-muted); }
/* whistler / avalanche / towns (lp-whistler.css, lp-avy.css, lp-towns.css): their own tokens + light panels */
html[data-theme=dark] .lpw, html[data-theme=dark] .lpa, html[data-theme=dark] .lpt {
  --lpw-blue: #4f86c4; --lpw-muted: var(--lp-muted); --lpw-line: rgba(140, 180, 230, .22);
  --lpa-blue: #4f86c4; --lpa-muted: var(--lp-muted); --lpa-line: rgba(140, 180, 230, .22);
  --lpt-blue: #4f86c4; --lpt-muted: var(--lp-muted); --lpt-line: rgba(140, 180, 230, .22);
}
html[data-theme=dark] .lpw-block > h3, html[data-theme=dark] .lpw-chart-title, html[data-theme=dark] .lpw-sr-line strong,
html[data-theme=dark] .lpa-region { color: var(--lp-accent); }
html[data-theme=dark] .lpw-btn, html[data-theme=dark] .lpw-chip-btn, html[data-theme=dark] .lpa-retry { background: var(--lp-surface); color: var(--lp-text); }
html[data-theme=dark] .lpw-btn[aria-pressed="true"], html[data-theme=dark] .lpw-chip-btn[aria-pressed="true"] { background: var(--lpw-blue); color: #fff; }
html[data-theme=dark] .lpw-stn { background: rgba(27, 33, 41, .9); color: var(--lp-text); }
html[data-theme=dark] .lpw-stn-all { background: #1f3247; }
html[data-theme=dark] .lpw-stn-x, html[data-theme=dark] .lpw-readout { color: var(--lp-text); }
html[data-theme=dark] .lpw-chart { background: rgba(27, 33, 41, .7); }
html[data-theme=dark] .lpw-tr-frame { background: var(--lp-surface-2); }
html[data-theme=dark] .lpw-routes { background: rgba(27, 33, 41, .85); }
html[data-theme=dark] .lpw-d-na { background: #2c3540; color: var(--lp-muted); }
html[data-theme=dark] .lpw-ev-tag { background: #24395a; color: #cfe0f7; }
html[data-theme=dark] .lpw-sr-cell { background: rgba(70, 130, 190, .35); }
html[data-theme=dark] .lpw-sr-cell small { color: var(--lp-muted); }
html[data-theme=dark] .lpw-sr-cell b { color: var(--lp-text); }
html[data-theme=dark] .lpw-stale, html[data-theme=dark] .lpa-note, html[data-theme=dark] .lpt-stale { color: var(--lp-warn-text); background: var(--lp-warn-bg); }
html[data-theme=dark] .lpa-tab, html[data-theme=dark] .lpt-tab { background: rgba(27, 33, 41, .9); color: var(--lp-text); }
html[data-theme=dark] .lpa-tab.sel { background: var(--lpa-blue); color: #fff; }
html[data-theme=dark] .lpt-tab.sel { background: var(--lpt-blue); color: #fff; }
html[data-theme=dark] .lpt-warn { color: var(--lp-text); background: #3a321a; }
html[data-theme=dark] .lpt-warn-orange { background: #43301c; }
html[data-theme=dark] .lpt-warn-red, html[data-theme=dark] .lpt-warn-warning { background: #452222; }
html[data-theme=dark] .lpt-warn-statement, html[data-theme=dark] .lpt-warn-advisory, html[data-theme=dark] .lpt-warn-low { background: #22344c; }
html[data-theme=dark] .lpt-periods li.night { background: rgba(140, 180, 230, .06); }
html[data-theme=dark] .lpt-p-temp.high { color: #ff8080; }
html[data-theme=dark] .lpt-p-temp.low, html[data-theme=dark] .lpt-p-pop { color: #8fb8ff; }
html[data-theme=dark] .lpt-p-text { color: var(--lp-text); }
/* account sheet (lp-account.css) */
html[data-theme=dark] .lp-acct-sheet, html[data-theme=dark] .lp-acct-card { background: var(--lp-surface); }
html[data-theme=dark] .lp-acct-x:hover, html[data-theme=dark] .lp-acct-x:focus-visible { background: var(--lp-surface-2); }
html[data-theme=dark] .lp-acct-google { background: var(--lp-surface-2); color: var(--lp-text); border-color: var(--lp-border-2); }
html[data-theme=dark] .lp-acct-del { background: #2e1d1f; border-color: #5a2f33; }
html[data-theme=dark] .lp-acct-danger { color: #ff8a8a; }
html[data-theme=dark] .lp-acct-prize { background: #2f2a14; border-color: #5c5126; color: #f3e3a6; }
html[data-theme=dark] .lp-sv-bonus, html[data-theme=dark] .lp-acct-ref-said { color: #7fdc8f; }
html[data-theme=dark] .lp-form-ok { color: #7fdc8f; }
html[data-theme=dark] .lp-form-error { color: #ff8a8a; }
html[data-theme=dark] .lpl .lpl-table tbody td.lpl-green, html[data-theme=dark] .lpl .lpl-table tbody tr:hover td.lpl-green { background: #1f5a35; color: #d6f5df; }
