/*! 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
 *
 * 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         flake 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;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--lp-nav-h) + 8px); }
body {
  margin: 0;
  font: 16px/1.45 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg) url(/img/bg-800.webp) 50% 0 / auto 160px repeat-x;
  text-align: left;
  overflow-x: hidden;
}
@media (min-width: 700px) {
  body { background-image: url(/img/bg-1500.webp); background-size: auto 200px; }
}
@media (min-width: 1500px) {
  body { background-image: url(/img/bg-2200.webp); background-size: auto 266px; }
}
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-blue); }
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: #fff; 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;
}
.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-blue);
  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: #eeefed; border: 1px solid #c8c8c8; border-radius: 4px; color: #222;
}
.lp-search input:focus { background: #fff; }
@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: #fff; color: #222;
  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: #fff; 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: #e6eaef; 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: #f3f7fb; }
.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: #9aa3ad; 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-blue); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.lp-menu-i:hover { background: var(--lp-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: #fff; }
.lp-table th, .lp-table td { padding: 7px 8px; text-align: center; white-space: nowrap; border: 1px solid #e3e3e3; }
.lp-table th { background: var(--lp-blue); color: #f2f2f2; font-weight: 700; border-color: #24496f; }
.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: #fff; box-shadow: 1px 0 0 #ddd; }
.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: #fff; border-radius: 8px; box-shadow: 0 0 3px rgba(45, 88, 134, .5);
}
.lp-stat-v { font-size: 1.2rem; font-weight: 700; color: var(--lp-blue); 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: #eaeaea; color: #555; box-shadow: inset 0 0 3px #aaa;
  white-space: nowrap;
}
.lp-chip:hover { background: var(--lp-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: #e6e6e6; color: #333;
}
.lp-btn:hover { background: #d6d6d6; 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: #eaeaea; color: #555; 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: #6b5a2a; background: #fff8e1; 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-blue); 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: #fff3cd; border: 1px solid #e0c36b; color: #5c4a00; 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: #dde5ee; 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 */
.lp-banner-on .lp-banner-mount:empty { display: block; min-height: 226px; }
@media (min-width: 315px) { .lp-banner-on .lp-banner-mount:empty { min-height: 203px; } }
@media (min-width: 370px) { .lp-banner-on .lp-banner-mount:empty { min-height: 180px; } }
@media (min-width: 460px) { .lp-banner-on .lp-banner-mount:empty { min-height: 156px; } }
@media (min-width: 645px) { .lp-banner-on .lp-banner-mount:empty { min-height: 133px; } }
@media (min-width: 1210px) { .lp-banner-on .lp-banner-mount:empty { min-height: 110px; } }
.lp-nobanner .lp-banner-mount { 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: #fff; 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 #bbb; border-radius: 6px; background: #fff; color: #222;
}
.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-blue); border-bottom: 2px solid var(--lp-blue); 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-blue); }
.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 (flake toggle) */
.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-blue); }
.lp-fav-btn:focus-visible { outline: 2px solid var(--lp-blue-2); outline-offset: 1px; }
.lp-flake { display: inline-block; width: 22px; height: 22px; flex: none; }
.lp-flake svg { display: block; width: 100%; height: 100%; }
.lp-flake-bg { fill: transparent; stroke: none; transition: fill .15s; }
.lp-flake-s { stroke: #8a96a3; }
.lp-fav-btn:hover .lp-flake-s { stroke: var(--lp-blue-2); }
.lp-fav-btn[aria-pressed="true"] { color: var(--lp-blue); }
.lp-fav-btn[aria-pressed="true"] .lp-flake-bg { fill: var(--lp-blue); }
.lp-fav-btn[aria-pressed="true"] .lp-flake-s { stroke: #fff; }
.lp-intro h1 .lp-fav-btn { margin-left: 2px; vertical-align: 2px; }
.lp-intro h1 .lp-flake { 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: #fff; border-radius: 8px; box-shadow: 0 0 3px rgba(45, 88, 134, .5);
  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-flake { 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-blue); 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: #1a56b0; }
.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: #aab; font-weight: 400; }
.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-blue); 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 #ccc; border-bottom: 1px solid #ccc; padding: 10px 0; }

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

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