/* Snow forecast — one stylesheet, no framework, light + dark.
   Chart colours live here as custom properties so the server-rendered SVG
   themes without being re-rendered.

   Copyright (c) 2026 Greg Hilton (greghilton.co.uk). All rights reserved.
   This file is not licensed for reuse, copying, or redistribution. */

/* Self-hosted so no visitor's address is sent to a font service. */
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/fraunces-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;

  --surface:        #fbfcfd;
  --plane:          #f2f5f8;   /* faint cool grey, taken from the snow in the header photo */
  --ink:            #0f1c2b;
  --ink-2:          #44556a;
  --ink-muted:      #5f6f82;
  --grid:           #dce3ea;
  --axis:           #b9c5d1;
  --hairline:       rgba(15, 28, 43, .14);

  --series-median:  #1f5a96;
  --series-control: #c4501b;
  --band-outer:     #d3e3f3;
  --band-inner:     #a9c8e6;
  --outlook:        #e8edf2;   /* week-2 shading: one step off the surface */

  --hero-ink:       #0f1c2b;
  --hero-veil-top:  rgba(255, 255, 255, .50);

  --warn-bg:        #fff6e0;
  --warn-ink:       #6b4c00;

  /* A step beyond --warn-*: not "worth noting" but "don't trust this chart" —
     see .chart-mismatch / depth_is_mismatched() in chart.php. */
  --danger:         #c0392b;
  --danger-ink:     #a3291c;
  --band-outer-danger: #f8d8d3;
  --band-inner-danger: #f0b3a9;

  --radius: 3px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface:        #131d29;
    --plane:          #0b131c;
    --ink:            #eef3f7;
    --ink-2:          #b4c0cc;
    --ink-muted:      #8c9bab;
    --grid:           #233140;
    --axis:           #33455a;
    --hairline:       rgba(238, 243, 247, .14);
    --hero-ink:       #f4f8fb;
    --hero-veil-top:  rgba(8, 14, 22, .62);

    --series-median:  #3987e5;
    --series-control: #d95926;
    --band-outer:     #16324f;
    --band-inner:     #1c4b7a;
    --outlook:        #18232f;

    --warn-bg:        #3a2f10;
    --warn-ink:       #f6d68a;

    --danger:         #e2695c;
    --danger-ink:     #f4a69c;
    --band-outer-danger: #4a211d;
    --band-inner-danger: #6b2e27;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--plane);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  max-width: 1000px;
  margin-inline: auto;
  overflow-x: clip;
}
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
h3 { letter-spacing: -.005em; }

a { color: var(--series-median); }
a:hover { text-decoration: none; }

/* ---------- header / picker ----------
   The header is a full-width band over the chairlift photo (img/hero-wide.webp and hero-square.webp, cropped from the
   owner's own picture), fading into the page colour at the bottom so charts and text below
   always sit on a plain background, never on the photo. */
.site { position: relative; padding: 1.1rem 0 3.2rem; color: var(--hero-ink); }
.site::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; margin-left: -50vw;
  background:
    linear-gradient(to bottom, var(--hero-veil-top) 0%, var(--hero-veil-top) 35%, var(--plane) 100%),
    url(img/hero-wide.webp) center 40% / cover no-repeat;
}
@media (max-width: 700px) {
  .site::before {
    background:
      linear-gradient(to bottom, var(--hero-veil-top) 0%, var(--hero-veil-top) 35%, var(--plane) 100%),
      url(img/hero-square.webp) center 45% / cover no-repeat;
  }
}
.site .home { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: inherit; text-decoration: none; }
.site .home:hover { text-decoration: underline; }
.site .site-links { display: inline-flex; flex-wrap: wrap; gap: .1rem 1rem; margin-left: 1.2rem; font-size: .85rem; font-weight: 600; vertical-align: baseline; }
.site .site-links a { text-decoration: none; }
.site .site-links a:hover { text-decoration: underline; }
.site .site-links a.ql { display: none; }              /* the phone quick view link: phones only */
.site h1 { margin: 1.4rem 0 .9rem; font-size: clamp(1.7rem, 5.6vw, 3.2rem); }
.site a { color: inherit; }
.site .support { color: inherit; }

.picker {
  display: flex; gap: .75rem; align-items: center;
  margin: -1.4rem 0 2.5rem; padding: .7rem 0;
  background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  border-radius: 0;
}
.picker label { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.picker select {
  flex: 1; padding: .5rem .6rem; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--axis); border-radius: var(--radius);
}

.banner { padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; font-size: .95rem; }
.banner-warn { background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- content ---------- */
.intro, .resort { border-top: 1px solid var(--hairline); padding: 1.5rem 0 1.75rem; }
.intro h2, .resort h2 { margin-top: 0; }
.resort h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.resort h2 .alt { font-family: var(--font); font-size: .8rem; font-weight: 400; color: var(--ink-muted); margin-left: .5rem; }
.resort h3 { margin: 2rem 0 .75rem; font-size: 1.05rem; }
.desc { color: var(--ink-2); }
.runs { font-size: .9rem; color: var(--ink-2); }

/* ---------- browse-all list (also the crawlable path to each resort) ---------- */
.resort-list { border-top: 1px solid var(--hairline); padding: 1.5rem 0 1.75rem; margin-top: 2rem; }
.resort-list h2 { margin-top: 0; }
.resort-list h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink-muted); margin: 1.4rem 0 .5rem; }
.resort-list h3:first-of-type { margin-top: 0; }
.resort-links { columns: 2; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.resort-links li { break-inside: avoid; margin: 0 0 .35rem; }
.resort-links a { font-size: .9rem; text-decoration: none; color: var(--ink); }
.resort-links a:hover { color: var(--series-median); text-decoration: underline; }
@media (max-width: 520px) {
  .resort-links { columns: 1; }
}

/* ---------- "snowiest resorts, next 7 days" leaderboard ---------- */
.snow-rank { border-top: 1px solid var(--hairline); padding: 1.5rem 0 1.5rem; margin-top: 2rem; }
.snow-rank h2 { margin-top: 0; }
.snow-rank .hint { font-size: .85rem; color: var(--ink-2); margin: 0 0 .5rem; }
.snow-rank .updated { font-size: .72rem; color: var(--ink-muted); margin: 0 0 1rem; }
.snow-rank-list { list-style: none; margin: 0; padding: 0;
  /* Self-adjusting rather than a fixed 2 columns: each item now carries three
     model figures (GFS/ECMWF/AIFS spelled out, not abbreviated behind a hover
     tooltip — a touch device has no hover, so that never worked there), so a
     narrow-but-not-quite-phone viewport gets one wide column instead of two
     cramped ones. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: .4rem 1.5rem; counter-reset: none; }
.snow-rank-list[hidden] { display: none; }
.snow-rank-list li { break-inside: avoid; }
.snow-rank-list a { display: flex; align-items: baseline; gap: .55rem;
  text-decoration: none; color: var(--ink); padding: .3rem 0; }
.snow-rank-list a:hover .name { color: var(--series-median); text-decoration: underline; }
.snow-rank-list .rank { flex: 0 0 1.4rem; font-variant-numeric: tabular-nums;
  color: var(--ink-muted); font-size: .82rem; text-align: right; }
.snow-rank-list .name { flex: 1 1 auto; }
.snow-rank-list .country { display: block; font-size: .74rem; color: var(--ink-muted); }
.snow-rank-list .models { flex: 0 0 auto; display: flex; gap: .6rem; }
.snow-rank-list .model { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.snow-rank-list .model b { font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.snow-rank-list .model i { font-style: normal; font-size: .6rem; font-weight: 600;
  color: var(--ink-muted); letter-spacing: .02em; }
@media (max-width: 520px) {
  .snow-rank-list { grid-template-columns: 1fr; }
}

.links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1rem 0; }
.links a {
  font-size: .88rem; padding: .1rem 0; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--axis); color: var(--ink-2);
}
.links a:hover { color: var(--series-median); border-color: var(--series-median); }

.empty, .chart-empty { color: var(--ink-muted); font-size: .95rem; font-style: italic; }

/* ---------- charts ---------- */
.chart-figure { margin: 0 0 2rem; }
.chart-title { font-weight: 600; font-size: .95rem; margin-bottom: .15rem; }
.chart-title .chart-unit { color: var(--ink-muted); font-weight: 400; }
.chart-note { font-size: .82rem; color: var(--ink-2); margin: .4rem 0 0; }
.chart-note-danger { color: var(--danger-ink); font-weight: 600; }
nav.seasons { display: inline-flex; gap: .15rem; margin: .5rem 0 0; padding: .15rem;
  background: var(--plane); border: 1px solid var(--hairline); border-radius: 999px; }
nav.seasons a { font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
  padding: .25rem .8rem; border-radius: 999px; }
nav.seasons a.on { background: var(--series-median); color: #fff; }
nav.seasons a:hover:not(.on) { color: var(--ink); }
.rank-jump { display: inline-block; margin: .5rem 0 0 .5rem; font-size: .8rem; font-weight: 600;
  text-decoration: none; color: var(--ink-2); padding: .25rem .8rem; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--plane); }
.rank-jump:hover { color: var(--series-median); border-color: var(--series-median); }
.bar-range { opacity: .92; }
.barval.dim { fill: var(--ink-muted); }
.runline { font-size: .82rem; color: var(--ink-2); margin: -.6rem 0 1rem;
  padding: .45rem .6rem; background: var(--plane); border: 1px solid var(--hairline);
  border-radius: 6px; }
.runline strong { color: var(--ink); }
.run-badge { display: inline-block; white-space: nowrap; margin: 0 .5rem .15rem 0; }
.run-badge:last-of-type { margin-right: 0; }
.run-badge b { color: var(--ink); }


.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: .35rem 0 .5rem;
  font-size: .8rem; color: var(--ink-2); }
.chart-legend .key { display: inline-flex; align-items: center; gap: .4rem; }
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.sw-median  { background: var(--series-median); }
.sw-control { background: var(--series-control); }
.sw-band    { background: var(--band-inner); height: 10px; border-radius: 3px; }

.chart-wrap { position: relative; overflow-x: auto; }
/* 14 days of data: below ~760px the day labels get squeezed, so narrower
   screens scroll the chart sideways rather than squash it. */
svg.chart { display: block; width: 100%; height: 300px; min-width: 760px; }

.grid   { stroke: var(--grid); stroke-width: 1; }
.axis   { stroke: var(--axis); stroke-width: 1; }
.daysep { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 2 4; }
.refline{ stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
/* The 1991-2020 average: present, but never competing with the forecast. */
.series-normal { stroke: var(--ink-muted); stroke-width: 1.6; stroke-dasharray: 1 4; fill: none;
  stroke-linecap: round; opacity: .85; }
.swatch.sw-normal { background: none; border-top: 2px dotted var(--ink-muted); height: 0; }
.swatch.sw-ref { background: none; border-top: 2px dashed var(--ink-muted); height: 0; }
.swatch.sw-ref-soft { border-top-style: dotted; opacity: .8; }
.normal-mark { stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
/* The snow-to-the-village line: same idea, quieter, so 0 °C stays the anchor. */
.refline-soft { stroke-dasharray: 2 5; opacity: .8; }
.reflabel { fill: var(--ink-muted); font-size: 11px; text-anchor: end; font-family: var(--font); }

.tick { fill: var(--ink-muted); font-size: 11px; font-family: var(--font);
  font-variant-numeric: tabular-nums; }
.tick-y { text-anchor: end; }
.tick-x { text-anchor: start; }
.tick-x.mid { text-anchor: middle; }
.tick-x.dim { fill: var(--ink-muted); opacity: .75; }
.agree { fill: var(--ink-muted); font-size: 10px; text-anchor: middle; font-family: var(--font); }
.barval { fill: var(--ink-2); font-size: 11px; text-anchor: middle; font-family: var(--font);
  font-variant-numeric: tabular-nums; }

.band { stroke: none; }
.band-outer { fill: var(--band-outer); }
.band-inner { fill: var(--band-inner); }
.series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.series-median  { stroke: var(--series-median); }
.series-control { stroke: var(--series-control); stroke-dasharray: 6 4; }
.series-extra   { stroke: var(--ink); stroke-width: 2.2; }
.sw-extra       { background: var(--ink); height: 3px; }
.bar { fill: var(--series-median); }

/* A chart depth_is_mismatched() has flagged as the land-surface model's own
   noise rather than a real reading — same shapes, drawn in red so it reads as
   "don't trust this" at a glance rather than as an ordinary forecast. */
.chart-mismatch .band-outer    { fill: var(--band-outer-danger); }
.chart-mismatch .band-inner    { fill: var(--band-inner-danger); }
.chart-mismatch .series-median,
.chart-mismatch .series-control { stroke: var(--danger); }
.chart-mismatch .sw-median,
.chart-mismatch .sw-control    { background: var(--danger); }
.chart-mismatch .sw-band       { background: var(--band-inner-danger); }

/* Week 2 — see OUTLOOK_FROM_DAY in app/lib/chart.php. A tinted band behind the
   data with a plain-text label, so the change of status isn't carried by colour
   alone; bars there are drawn lighter and lose their printed value. */
.outlook       { fill: var(--outlook); }
.outlook-label { fill: var(--ink-muted); font-size: 10.5px; font-family: var(--font);
  letter-spacing: .02em; }
.bar-outlook   { opacity: .45; }

.crosshair { position: absolute; top: 0; width: 1px; background: var(--ink-muted);
  pointer-events: none; }
.tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 8px;
  padding: .45rem .6rem; font-size: .78rem; line-height: 1.45;
  box-shadow: 0 4px 14px rgba(0,0,0,.14); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tip b { font-weight: 600; }
.tip .k { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .35rem; }

/* ---------- webcams ----------
   Two across on a normal screen, one on a phone. The 420px floor is what
   forces two rather than three: three would need ~1290px of row, and the
   panel gives about 920px.

   Windy's free tier serves stills at 400x224 (`preview`) — its `full` and
   `original` sizes are 1920x1080 but belong to the paid tier, so they are not
   used here. At two across each card is ~450px, so a Windy still is scaled up
   about 1.2x and looks slightly soft. Everything else has pixels to spare:
   page cams ~800px, YouTube posters 1280px, Foto-Webcam 1200px and Feratel
   1920px (4K on its newer cams). Clicking any Windy cam opens it full size on
   windy.com; Timelapse and Live play at whatever size the window allows. */
.cams { display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.cam { margin: 0; background: var(--plane); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden; }
.cam img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 224;
  object-fit: cover; background: var(--grid); }
.cam-still { position: relative; display: block; }
.cam-badge {
  position: absolute; left: .6rem; bottom: .6rem;
  background: rgba(0,0,0,.72); color: #fff; font-size: .72rem;
  padding: .18rem .55rem; border-radius: 999px; letter-spacing: .01em;
}
.cam figcaption { padding: .6rem .8rem .7rem; font-size: .85rem; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.cam-name { flex: 1 1 100%; color: var(--ink); font-weight: 500; font-size: .92rem; }
/* A Windy card's caption carries three things (name, age, Timelapse) and reads
   best with the name on its own line. A provider card carries two, so the name
   and its Live button share a line and wrap only when the name is long. */
.cam-direct .cam-name, .cam-page .cam-name { flex: 1 1 auto; min-width: 9rem; }
.cam-age, .cam-src { color: var(--ink-muted); font-size: .75rem; }
.cam-play {
  margin-left: auto; font: inherit; font-size: .78rem; cursor: pointer;
  padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid var(--series-median); background: transparent; color: var(--series-median);
}
.cam-play:hover { background: var(--series-median); color: #fff; }
.cam-note { font-size: .85rem; color: var(--ink-2); margin-top: .9rem; }

.windy-courtesy { margin-top: .9rem; font-size: .78rem; color: var(--ink-muted); }
.windy-courtesy a { color: var(--ink-muted); }

/* ---------- weather map (Windy embed2 widget) ---------- */
.weather-map-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.weather-map-buttons .cam-play { margin-left: 0; }

/* ---------- player modal ---------- */
#player-modal { border: none; border-radius: var(--radius); padding: 0; width: min(92vw, 900px);
  background: var(--surface); color: var(--ink); }
#player-modal::backdrop { background: rgba(0,0,0,.6); }
#player-modal .close { position: absolute; top: .35rem; right: .55rem; z-index: 2;
  background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer;
  color: var(--ink-2); }
.player-frame { aspect-ratio: 16 / 9; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.site-footer { margin-top: 2.5rem; font-size: .82rem; color: var(--ink-muted); }
.site-footer a { color: var(--ink-muted); }
.site-footer .version { margin: .3rem 0 0; font-size: .74rem; opacity: .75; }
.site-footer .copyright { margin: .2rem 0 0; font-size: .74rem; opacity: .75; }
/* Not muted like the rest of the footer — a quiet ask still needs to be
   readable as a link, not disappear into the sources credit above it. */
.site-footer .support { margin: .6rem 0 0; }
.support-top { display: block; width: fit-content; max-width: 100%; margin: 0 0 .9rem; padding: .3rem .7rem; font-size: .82rem; color: var(--ink);
  background: color-mix(in srgb, var(--plane) 82%, transparent); backdrop-filter: blur(6px);
  border-radius: var(--radius); }
.support-top a { color: var(--ink); text-decoration-thickness: 1px; }
.site-footer .support a { color: var(--series-median); }
.site-footer .support a:hover { text-decoration: none; }

/* Said when a snowfall chart has nothing to draw, so a flat line reads as
   "no snow" rather than "no data". */
.chart-trace { font-weight: 500; color: var(--ink-2); }

@media (max-width: 600px) {
  .picker { flex-wrap: wrap; }
  .intro, .resort { padding: 1.25rem 0 1.5rem; }
}

/* ---------- YouTube live cams ---------- */
.cam-play-tile {
  display: block; position: relative; width: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; font: inherit;
}
.cam-play-tile img { display: block; width: 100%; height: auto;
  aspect-ratio: 400 / 224; object-fit: cover; background: var(--grid); }
.cam-playmark {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 21px; padding-left: 4px;
  transition: background .15s, transform .15s;
}
.cam-play-tile:hover .cam-playmark,
.cam-play-tile:focus-visible .cam-playmark { background: var(--series-median); transform: scale(1.08); }
.cam-play-tile:focus-visible { outline: 2px solid var(--series-median); outline-offset: 2px; }
.cam-badge.cam-live { background: #c4302b; }
.cam-yt { margin-left: auto; font-size: .72rem; color: var(--ink-muted); }
.cam-yt:hover { color: var(--series-median); }

/* Roundshot 360° panoramas — see render_roundshot(). The strip keeps its own
   proportions at card height and the box scrolls sideways; chart.js adds
   click-and-drag and starts it centred. */
.pano-wrap { position: relative; }
.pano { aspect-ratio: 400 / 224; overflow-x: auto; overflow-y: hidden;
  cursor: grab; overscroll-behavior-x: contain; scrollbar-width: thin;
  background: var(--grid); }
.pano.dragging { cursor: grabbing; }
.pano:focus-visible { outline: 2px solid var(--series-median); outline-offset: -2px; }
.cam .pano img { width: auto; height: 100%; max-width: none; aspect-ratio: auto;
  object-fit: fill; user-select: none; -webkit-user-drag: none; }
/* Top-left, so it never sits on the "last daylight" badge at the bottom. */
.pano-badge { top: .6rem; bottom: auto; pointer-events: none; }

/* A provider that streams video but publishes no still (live-panorama keys its
   stream by an id and has no picture under it). There is nothing honest to put
   in the grid, so the tile says so rather than showing a stale poster. */
.cam-noposter { aspect-ratio: 400 / 224; background:
  linear-gradient(160deg, var(--grid), var(--plane)); position: relative; }

details.panel > summary { cursor: pointer; font-size: .95rem; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: '▸ '; color: var(--ink-muted); }
details.panel[open] > summary::before { content: '▾ '; }

/* ---------- geocoding lookup ---------- */
.geo { margin-top: .8rem; }
.geo-msg, .url-msg { display: block; font-size: .84rem; color: var(--ink-2); }
.url-msg { margin-top: .3rem; }
.url-msg:empty { display: none; }
.geo-msg.geo-ok { color: #14521a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .geo-msg.geo-ok { color: #9fdcaa; }
}
.geo-list { list-style: none; margin: .5rem 0 0; padding: 0;
  display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.geo-list button {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--plane); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 8px; padding: .5rem .65rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.geo-list button:hover { border-color: var(--series-median); }
.geo-list strong { font-size: .88rem; font-weight: 600; }
.geo-where { font-size: .78rem; color: var(--ink-2); }
.geo-facts { font-size: .72rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---------- forecast view switch ---------- */
.forecast-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin: 2rem 0 .4rem; }
.forecast-head h3 { margin: 0; }
.viewswitch { display: inline-flex; border: 1px solid var(--hairline);
  border-radius: 999px; overflow: hidden; background: var(--plane); }
.viewswitch button { font: inherit; font-size: .8rem; padding: .3rem .85rem;
  border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.viewswitch button.on { background: var(--series-median); color: #fff; }
.viewswitch button:not(.on):hover { color: var(--ink); }
.view-intro { font-size: .87rem; color: var(--ink-2); margin: .1rem 0 1.1rem; }
/* Height on the mountain: resort / halfway / top */
.altswitch { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.altswitch[hidden] { display: none; }
.altswitch .alt-lead { font-size: .8rem; color: var(--ink-2); }
.altswitch button { font: inherit; font-size: .8rem; padding: .3rem .8rem;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--plane);
  color: var(--ink-2); cursor: pointer; }
.altswitch button.on { background: var(--series-median); border-color: var(--series-median); color: #fff; }
.altswitch button:not(.on):hover { color: var(--ink); }
.altswitch .alt-m { opacity: .75; font-size: .75rem; margin-left: .2rem; }
.alt-pane[hidden] { display: none; }
.week-snow { margin-top: 0; }
/* Several tabs: on a phone they become "GFS · ECMWF · AIFS · Compare", full width. */
@media (max-width: 520px) {
  .viewswitch { display: flex; width: 100%; }
  .viewswitch button { flex: 1; padding: .35rem .5rem; }
  .vs-long { display: none; }
}

/* ---------- model comparison ---------- */
/* Colour is bound to the model, not its position, so hiding one never
   repaints the others. Slots follow the validated categorical order. */
.m1 { --model: #2a78d6; }   /* ECMWF        */
.m2 { --model: #eb6834; }   /* GFS          */
.m3 { --model: #1baf7a; }   /* ICON         */
.m4 { --model: #eda100; }   /* UK Met Office*/
.m5 { --model: #e87ba4; }   /* Météo-France */
.m6 { --model: #008300; }   /* JMA          */
.m7 { --model: #4a3aa7; }   /* GEM          */
.m8 { --model: #cc3d3d; }   /* AIFS         */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m1 { --model: #3987e5; }
  :root:not([data-theme="light"]) .m2 { --model: #d95926; }
  :root:not([data-theme="light"]) .m3 { --model: #199e70; }
  :root:not([data-theme="light"]) .m4 { --model: #c98500; }
  :root:not([data-theme="light"]) .m5 { --model: #d55181; }
  :root:not([data-theme="light"]) .m6 { --model: #008300; }
  :root:not([data-theme="light"]) .m7 { --model: #9085e9; }
  :root:not([data-theme="light"]) .m8 { --model: #e05a5a; }
}

polyline.model { stroke: var(--model); fill: none; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
text.endlabel { fill: var(--model); font-size: 10.5px; font-family: var(--font);
  font-variant-numeric: tabular-nums; }
polyline.model[hidden], text.endlabel[hidden] { display: none; }

.model-legend { gap: .5rem .9rem; }
.model-key { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  font-size: .8rem; color: var(--ink-2); }
.model-key input { margin: 0; }
.model-key .swatch { background: var(--model); width: 15px; height: 3px; border-radius: 2px; }
.model-key.off { opacity: .45; }
.model-key.off .swatch { background: var(--ink-muted); }

/* End labels sit on top of the lines, so give them a halo in the surface
   colour — three of the seven model colours are below 3:1 contrast on light,
   and these labels are what makes the lines identifiable without relying on
   colour alone. */
text.endlabel {
  paint-order: stroke fill;
  stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round;
}
circle.modeldot { fill: var(--model); stroke: var(--surface); stroke-width: 1.5; }
circle.modeldot[hidden] { display: none; }

/* ---------- sunshine & cloud ---------- */
.sunshine, .piste-days { margin-top: 1.5rem; }
.sun-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .4rem 0 .6rem; }
.sun-table th { text-align: left; font-weight: 600; font-size: .74rem; color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline); padding: .3rem .5rem .3rem 0; }
.sun-table td { padding: .4rem .5rem .4rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.sun-table .muted { color: var(--ink-muted); }
@media (max-width: 520px) { .sun-table { font-size: .8rem; } }

/* ---------- temperature overlay on bar charts ---------- */
.temp-overlay[hidden] { display: none; }
.temp-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.temp-line.temp-high { stroke: var(--series-control); }
.temp-line.temp-low  { stroke: var(--series-control); stroke-dasharray: 5 4; opacity: .85; }
.temp-dot { stroke: var(--surface); stroke-width: 1; }
.temp-dot.temp-high, .temp-dot.temp-low { fill: var(--series-control); }
.temp-zero { stroke: var(--series-control); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
svg.chart .tick-t { fill: var(--series-control); font-size: 11px; text-anchor: start; }
.chart-overlay-toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem;
  color: var(--ink-2); cursor: pointer; margin: 0 0 .4rem; }
.chart-overlay-toggle input { margin: 0; }
.chart-overlay-toggle .muted { color: var(--ink-muted); }

/* ---------- last snowfall + crust strip under the resort name ---------- */
.snow-history { margin: .2rem 0 1rem; font-size: .88rem; }
.snow-history .sh-head { margin: .6rem 0 .2rem; font-weight: 600; font-size: .95rem; color: var(--ink-muted); }
.snow-history .sh-head .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.snow-history .muted { color: var(--ink-muted); }
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-list li { padding: .2rem 0; }
.crust { display: inline-block; min-width: 3.4rem; text-align: center; font-size: .7rem; font-weight: 600;
  padding: .05rem .45rem; margin-right: .25rem; border-radius: 999px; color: #fff; background: var(--ink-muted); }
.crust-cold { background: var(--series-median); }
.crust-low { background: #4a8f5b; }
.crust-moderate { background: #c98a1b; }
.crust-high { background: var(--danger); }

.chart-overlay-key { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem;
  color: var(--ink-2); margin: 0 0 .4rem; }
.chart-overlay-key .muted { color: var(--ink-muted); }
.ok-line { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--series-control); }
.ok-low { border-top-style: dashed; }
.sun-table .sun-snow { white-space: nowrap; line-height: 1.35; }
.sun-table .snowy { color: var(--series-median); font-weight: 600; }

.sunshine h4.sub { margin: 1.2rem 0 .3rem; font-size: .95rem; }
.sunshine h4.sub .muted { color: var(--ink-muted); font-weight: 400; font-size: .82rem; }
.ps { display: inline-block; font-size: .72rem; font-weight: 600; padding: .02rem .45rem; border-radius: 999px;
  color: #fff; background: var(--ink-muted); }
.ps-soft { background: #4a8f5b; }
.ps-cold { background: var(--series-median); }
.ps-firm { background: #6c7a89; }
.ps-icy { background: #7b5cc4; }
.ps-heavy { background: #c98a1b; }
.ps-fresh { background: var(--series-median); }
.piste-table td { line-height: 1.7; }

/* ---------- history bars, piste key, temp labels, hourly view ---------- */
.hist-row { display: flex; align-items: center; gap: .6rem; margin: .1rem 0; }
.hist-label { flex: 0 0 6.2rem; font-size: .8rem; line-height: 1.25; }
.hist-row .chart-wrap { flex: 1 1 auto; min-width: 0; overflow: visible; }
svg.chart.chart-history { height: auto; min-width: 520px; max-height: 110px; }
/* One scroller for every height: the labels stay put while the bars move together. */
.hist-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hist-grid { min-width: calc(6.8rem + 520px); width: 100%; }
.hist-row .hist-label { position: sticky; left: 0; z-index: 2; background: var(--surface); align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; padding-right: .3rem; }
.hist-hint { font-size: .75rem; margin: .1rem 0 .6rem; }
@media (min-width: 760px) { .hist-hint { display: none; } }
.piste-key { list-style: none; margin: .2rem 0 .6rem; padding: 0; font-size: .86rem; }
.piste-key li { padding: .25rem 0; display: flex; gap: .6rem; align-items: baseline; }
.piste-key .ps { flex: 0 0 6.2rem; text-align: center; }
.temp-val { font-size: 10.5px; font-weight: 600; text-anchor: middle; fill: var(--series-control); }
.temp-val.temp-low { opacity: .85; }
.chart-clickable svg.chart { cursor: pointer; }
.hint-click { margin: 0 0 .3rem; color: var(--ink-muted); }
.day-sel { fill: var(--series-median); opacity: .1; }
.hourly-panel { margin: .6rem 0 0; padding: .6rem .8rem .8rem; border: 1px solid var(--hairline);
  border-radius: var(--radius); background: var(--surface); }
.hourly-panel .hp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .3rem; font-size: .9rem; }
.hourly-panel .hp-close { font: inherit; font-size: .8rem; background: none; border: 1px solid var(--hairline);
  border-radius: 999px; padding: .15rem .7rem; color: var(--ink-2); cursor: pointer; }
.hourly-panel .hp-note { margin: .3rem 0 0; font-size: .78rem; color: var(--ink-muted); }
svg.chart.chart-hourly { height: 230px; min-width: 640px; }
.hr-temp { fill: none; stroke: var(--series-control); stroke-width: 2; stroke-linejoin: round; }

/* ---------- searchable resort picker ---------- */
.picker .rs { position: relative; flex: 1; min-width: 0; }
.picker .rs-q {
  width: 100%; box-sizing: border-box; padding: .5rem .6rem; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--plane); border: 1px solid var(--axis); border-radius: 6px;
}
.rs-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: .25rem 0; list-style: none; max-height: 22rem; overflow-y: auto;
  background: var(--plane); border: 1px solid var(--axis); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.rs-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem .8rem;
  cursor: pointer; font-size: .95rem; }
.rs-list li.on, .rs-list li:hover { background: var(--surface); }
.rs-list .rs-c { color: var(--ink-muted); font-size: .78rem; white-space: nowrap; align-self: center; }
.rs-list .rs-via { color: var(--ink-muted); font-size: .8rem; font-weight: normal; }
.rs-list li.rs-none { color: var(--ink-muted); cursor: default; }

/* ---------- homepage resort list, collapsed by country ---------- */
details.country-group { border-bottom: 1px solid var(--hairline); }
details.country-group > summary { cursor: pointer; padding: .6rem 0; font-weight: 600; }
details.country-group .cg-n { color: var(--ink-muted); font-weight: 400; font-size: .8rem; margin-left: .35rem; }
details.country-group[open] > summary { margin-bottom: .25rem; }

.piste-at { margin: .2rem 0 .4rem; font-size: .85rem; }

/* ---------- contact ---------- */
.site .contact-top { float: right; font-size: .85rem; color: inherit; text-decoration: none; }
.site .contact-top:hover { text-decoration: underline; }
.contact-form { max-width: 34rem; }
.contact-form label { display: block; margin: .9rem 0 .25rem; font-size: .88rem; font-weight: 600; }
.contact-form .opt { font-weight: 400; color: var(--ink-muted); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; box-sizing: border-box; padding: .5rem .6rem; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--plane); border: 1px solid var(--axis); border-radius: 6px; }
.contact-form button { margin-top: 1rem; font: inherit; padding: .5rem 1.4rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--series-median); background: var(--series-median); color: #fff; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-err { background: var(--warn-bg); color: var(--warn-ink); padding: .6rem .9rem; border-radius: 8px; }
.contact-ok { background: var(--surface); border: 1px solid var(--hairline); padding: .8rem 1rem; border-radius: 8px; }
.contact-note { font-size: .78rem; color: var(--ink-muted); }
.contact-foot { margin: .3rem 0; }

/* ---------- country filter + favourites ---------- */
.picker .rs-country { flex: 0 1 11rem; min-width: 0; padding: .5rem .5rem; font: inherit; font-size: .9rem;
  color: var(--ink); background: var(--plane); border: 1px solid var(--axis); border-radius: 6px; }
nav.favs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: -1rem 0 1.5rem; }
nav.favs[hidden] { display: none; }
nav.favs .favs-lead { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-right: .2rem; }
nav.favs a { font-size: .85rem; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 999px; padding: .2rem .7rem; }
nav.favs a:hover { border-color: var(--series-median); }
.fav-star { font: inherit; font-size: 1.3rem; line-height: 1; background: none; border: 0; cursor: pointer;
  color: var(--ink-muted); padding: 0 .3rem; vertical-align: middle; }
.fav-star.on { color: #e0a100; }
.fav-star:hover { color: #e0a100; }
@media (max-width: 600px) { .picker .rs-country { flex: 1 1 100%; } .picker .rs { flex: 1 1 100%; } }

/* Wind in "Where to ski" */
.wind-line { margin-top: .35rem; font-size: .84rem; line-height: 1.35; }
.wind-line.wl-0 { color: inherit; }
.wind-line.wl-1 b { color: #2a6f97; }
.wind-line.wl-2 b { color: #b4620a; }
.wind-line.wl-3 b { color: #b3261e; }
.wind-flag { display: inline-block; margin-top: .15rem; padding: .05rem .4rem; border-radius: 4px; font-weight: 600; font-size: .8rem; }
.wind-flag.wf-1 { background: #fff1d6; color: #7a4a00; }
.wind-flag.wf-2 { background: #fde1df; color: #8c1d18; }
.lift-warn { margin: .5rem 0 .8rem; padding: .6rem .8rem; border-radius: 6px; border-left: 4px solid #e0a030; background: #fff6e3; color: #4a3200; font-size: .9rem; line-height: 1.45; }
.lift-warn.lw-2 { border-left-color: #c0392b; background: #fdeceb; color: #5a1410; }
@media (prefers-color-scheme: dark) {
  .wind-line.wl-1 b { color: #7bb8dd; } .wind-line.wl-2 b { color: #f0a54a; } .wind-line.wl-3 b { color: #ff8b82; }
  .wind-flag.wf-1 { background: #4a3710; color: #ffd98a; } .wind-flag.wf-2 { background: #5a1f1c; color: #ffb4ae; }
  .lift-warn { background: #3a2e12; color: #f3dca8; } .lift-warn.lw-2 { background: #45201d; color: #f6c4bf; }
}

/* Cloud relative to the skier, in "Where to ski" */
.cloud-line { margin-top: .35rem; font-size: .84rem; line-height: 1.35; }
.cloud-line.cl-in { color: #5a5a5a; }
.cloud-line.cl-above b { color: #b4620a; }
@media (prefers-color-scheme: dark) { .cloud-line.cl-in { color: #b5b5b0; } .cloud-line.cl-above b { color: #f0a54a; } }

/* Long explanations are folded away; one button opens them all (chart.js) and remembers the choice. */
.explain { margin: .5rem 0 0; }
.explain > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink-2); list-style: none;
  display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; }
.explain > summary::-webkit-details-marker { display: none; }
.explain > summary::before { content: "\25B8"; display: inline-block; transition: transform .15s; }
.explain[open] > summary::before { transform: rotate(90deg); }
.explain > .chart-note:first-of-type { margin-top: 0; }
.explain-bar { margin: -.2rem 0 .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.report-link { font-size: .85rem; color: var(--ink-muted); text-decoration: underline; }
.explain-toggle { font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: transparent;
  border: 1px solid var(--hairline); border-radius: 999px; padding: .4rem .9rem; min-height: 2.5rem; cursor: pointer; }

/* Snow at each height, and rain, on the combined snowfall chart. Light to dark = low to high. */
:root { --h-base: #8fc0f2; --h-mid: #3f86dc; --h-top: #1b4a93; --h-rain: #159a8c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --h-base: #9ccbf7; --h-mid: #4f95ea; --h-top: #6e8fe0; --h-rain: #35bfae; }
}
:root[data-theme="dark"] { --h-base: #9ccbf7; --h-mid: #4f95ea; --h-top: #6e8fe0; --h-rain: #35bfae; }
.bar-h-base { fill: var(--h-base); } .bar-h-mid { fill: var(--h-mid); }
.bar-h-top  { fill: var(--h-top); }  .bar-h-rain { fill: var(--h-rain); }
.sw-h-base { background: var(--h-base); } .sw-h-mid { background: var(--h-mid); }
.sw-h-top { background: var(--h-top); }   .sw-h-rain { background: var(--h-rain); }
.chart-legend .swatch[class*="sw-h-"] { width: 11px; height: 11px; border-radius: 2px; }
polygon.modelband { fill: var(--model); opacity: .15; stroke: none; }
polygon.modelband[hidden] { display: none; }

.covers { margin: .1rem 0 .4rem; font-size: .85rem; }

/* ---------- day summary: weather icons and the slope compass (2026-11-09) ---------- */
.wi { width: 1.2em; height: 1.2em; vertical-align: -.25em; flex: none; }
.wi-sun { color: #c27c00; } .wi-cloud { color: var(--ink-muted); } .wi-snow { color: var(--series-median); } .wi-wind { color: var(--ink-muted); }
@media (prefers-color-scheme: dark) { .wi-sun { color: #f0b030; } }
.sky-cell { white-space: nowrap; }
.sky-extra { margin-top: .15rem; font-size: .8rem; line-height: 1.5; }
.sky-extra .sky-wind { margin-left: .5rem; color: var(--ink-muted); }
.pc { display: flex; align-items: center; gap: .6rem; }
.pc-rose { flex: none; }
.pc-txt { min-width: 0; }
svg.rose { width: 4.8rem; height: 4.8rem; display: block; }
.rose .cw { stroke: var(--surface, #fff); stroke-width: 1; fill: var(--hairline); }
.rose .cw-soft { fill: #4a8f5b; } .rose .cw-cold { fill: var(--series-median); } .rose .cw-firm { fill: #6c7a89; }
.rose .cw-icy { fill: #7b5cc4; } .rose .cw-heavy { fill: #c98a1b; }
.rose .rose-l { font-size: 7.5px; font-weight: 600; text-anchor: middle; fill: var(--ink-muted); font-family: var(--font); }
.rose .rose-n { font-size: 9px; font-weight: 800; fill: var(--ink); }
.rose .rose-ring { fill: none; stroke: var(--ink-muted); stroke-width: .8; opacity: .55; }
.rose .rose-star { fill: var(--ink-muted); opacity: .85; }
.rose .rose-star2 { opacity: .45; }
.rose .rose-tick { stroke: var(--ink-muted); stroke-width: .6; opacity: .55; }
.rose .rose-hub { fill: var(--surface, #fff); stroke: var(--ink-muted); stroke-width: .6; }
.rose .cw { stroke-linejoin: round; }

/* ---------- piste map (2026-11-09) ---------- */
details.piste-map { margin: 1rem 0 .4rem; border-top: 1px solid var(--hairline); padding-top: .6rem; }
details.piste-map > summary { cursor: pointer; list-style: none; }
details.piste-map > summary::-webkit-details-marker { display: none; }
details.piste-map > summary::before { content: "\25B8\00a0"; }
details.piste-map[open] > summary::before { content: "\25BE\00a0"; }
.pm-ctl { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .6rem 0 .4rem; }
.pm-zoom button { font: inherit; font-size: .8rem; padding: .15rem .55rem; margin-right: .25rem; border: 1px solid var(--hairline);
  background: var(--surface); color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.pm-legend { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .78rem; margin: .2rem 0 .5rem; }
.pm-sw { display: inline-block; width: 1.4rem; height: 4px; vertical-align: .15em; margin-right: .3rem; border-radius: 2px; }
.pm-swlift { background: none; border-top: 1.5px dashed var(--ink); height: 0; }
.pm-wrap { position: relative; }
svg.pm-svg { display: block; width: 100%; height: min(72vh, 640px); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border-radius: var(--radius); touch-action: pan-y; }
.pm-stretch { fill: none; stroke: var(--ink-muted); stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pm-hit { fill: none; stroke: transparent; stroke-width: 11px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pm-s-soft { stroke: #4a8f5b; background: #4a8f5b; } .pm-s-cold { stroke: var(--series-median); background: var(--series-median); }
.pm-s-firm { stroke: #6c7a89; background: #6c7a89; } .pm-s-icy { stroke: #7b5cc4; background: #7b5cc4; }
.pm-s-heavy { stroke: #c98a1b; background: #c98a1b; } .pm-s-flat { stroke: #9aa4af; background: #9aa4af; }
.pm-piste.hot .pm-stretch { stroke-width: 6px; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 2px rgba(0,0,0,.7)); }
.pm-piste.pm-closed .pm-stretch { opacity: .28; stroke-dasharray: 3 5; }
.pm-piste.pm-groomed .pm-stretch { stroke-width: 3.4px; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.9)); }
.pm-swclosed { background: repeating-linear-gradient(90deg, var(--ink-muted) 0 3px, transparent 3px 6px); opacity: .5; }
.pm-swgroom { background: var(--ink-muted); box-shadow: 0 0 2px #fff; }
.pm-statusline { margin: .2rem 0 .5rem; }
.pm-pistes.dimmed .pm-piste:not(.hot) .pm-stretch { opacity: .22; }
.pm-lift { fill: none; stroke: var(--ink); stroke-width: 1.1px; stroke-dasharray: 5px 4px; vector-effect: non-scaling-stroke; opacity: .75; }
.pm-liftlabel { font-size: calc(var(--fs, 2) * 1px); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--surface);
  stroke-width: calc(var(--hs, .6) * 1px); stroke-linejoin: round; pointer-events: none; }
.pm-tip { position: absolute; display: none; pointer-events: none; z-index: 3; max-width: 230px; padding: .35rem .55rem; font-size: .8rem; line-height: 1.35;
  background: var(--ink); color: var(--surface); border-radius: var(--radius); }
.pm-best { margin: .6rem 0 .3rem; font-size: .88rem; }
.pm-best ol { margin: .25rem 0 0; padding-left: 1.3rem; }
.pm-best li { padding: .3rem .4rem; margin: 0 -.4rem; border-radius: 6px; cursor: pointer; }
.pm-best li:hover, .pm-best li.on { background: var(--plane); }
.pm-best li.on { box-shadow: inset 3px 0 0 var(--series-control, #2f6fb7); }
.pm-best .muted { color: var(--ink-muted); font-size: .82rem; }

/* Snowfall by day: the last two weeks and the forecast in one sideways-scrolling chart, with arrows. */
.snow-scroller { position: relative; display: flex; align-items: flex-start; }
.snow-scroller svg.chart-yaxis { flex: 0 0 44px; min-width: 44px; }
.snow-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
.snow-scroll svg.chart-snowscroll { min-width: 0; max-width: none; }
.snow-arrow { position: absolute; top: 0; z-index: 3; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--rule, #c9ced6);
  background: var(--surface); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .92; box-shadow: 0 1px 4px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center; padding: 0 0 .15rem; }
.snow-arrow:hover { opacity: 1; }
.snow-arrow:disabled { opacity: 0; pointer-events: none; }
.snow-prev { left: 46px; } .snow-next { right: 2px; }
.bar-past { opacity: .8; }
.past-div { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.past-lbl { fill: var(--ink-muted); font-size: 11px; font-family: var(--font); letter-spacing: .02em; }

/* Piste map height lines */
.pm-contour { fill: none; stroke: var(--ink-muted); stroke-width: .6px; vector-effect: non-scaling-stroke; opacity: .35; }
.pm-contour.pm-cidx { stroke-width: 1px; opacity: .55; }
.pm-contlabel { font-size: calc(var(--fs, 2) * .8px); fill: var(--ink-muted); font-weight: 600; paint-order: stroke; stroke: var(--surface);
  stroke-width: calc(var(--hs, .6) * .8px); stroke-linejoin: round; pointer-events: none; }
svg.pm-nocont .pm-contours { display: none; }
.pm-layers { display: inline-flex; gap: .25rem; }
.pm-layers button { font: inherit; font-size: .8rem; padding: .15rem .55rem; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }
.pm-layers button.on { background: var(--series-median); border-color: var(--series-median); color: #fff; }
svg.pm-norelief .pm-relief { display: none; }
.pm-relief { pointer-events: none; }

.cam-own { font-size: .8rem; white-space: nowrap; }
/* Piste map scenery: woods, lakes, glaciers under the pistes; peak and village names on top */
.pm-scenery { pointer-events: none; }
.pm-forest { fill: #4d7a49; fill-opacity: .38; stroke: none; }
.pm-water { fill: #8fbfe6; fill-opacity: .85; stroke: #6aa4d2; stroke-width: .8px; vector-effect: non-scaling-stroke; }
.pm-glacier { fill: #eaf4fb; fill-opacity: .8; stroke: #c4dcee; stroke-width: .8px; vector-effect: non-scaling-stroke; }
.pm-scenelabels { pointer-events: none; }
.pm-place { font-size: calc(var(--fs, 2) * 1.05px); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface);
  stroke-width: calc(var(--hs, .6) * 1.1px); stroke-linejoin: round; }
.pm-placedot { fill: var(--ink); }
.pm-peak { font-size: calc(var(--fs, 2) * .9px); font-style: italic; font-weight: 600; fill: var(--ink-muted); paint-order: stroke; stroke: var(--surface);
  stroke-width: calc(var(--hs, .6) * .9px); stroke-linejoin: round; }
.pm-peakdot { fill: var(--ink-muted); }
svg.pm-noscen .pm-scenery, svg.pm-noscen .pm-scenelabels { display: none; }

/* French avalanche bulletin box */
.bra{margin:.8rem 0;padding:.1rem .8rem .5rem;border-left:5px solid #8bc34a;background:rgba(127,127,127,.07);border-radius:4px}
.bra-2{border-left-color:#fbc02d}.bra-3{border-left-color:#fb8c00}.bra-4{border-left-color:#e53935}.bra-5{border-left-color:#212121}
.bra-main{margin:.2rem 0}.bra-line{margin:.2rem 0;font-size:.92em}
.bra-badge{display:inline-block;min-width:2.4em;text-align:center;padding:.05em .4em;border-radius:4px;font-weight:700;color:#fff;background:#6a9a2a;margin-right:.3em}
.bra-2 .bra-badge{background:#c79100}.bra-3 .bra-badge{background:#e07b00}.bra-4 .bra-badge{background:#d32f2f}.bra-5 .bra-badge{background:#212121}

/* "Light map" button: in dark mode the map alone keeps the light colours */
svg.pm-svg.pm-light { --surface: #fbfcfd; --plane: #f2f5f8; --ink: #0f1c2b; --ink-2: #44556a; --ink-muted: #5f6f82; --hairline: rgba(15, 28, 43, .14); --series-median: #1f5a96; }

.bra-fr{font-size:.82em;font-style:italic}

/* ---------- phone: compact header, resort card, "show first" switch (2026-11-11) ----------
   Under 700 px the header shrinks to one row (name, coffee link, contact); on a resort page the long title, season switch and
   resort picker go away (a Change button brings the picker back) and the resort's name and next-7-days snow sit in a card.
   Forecast and Where to ski can swap places: the choice is remembered (localStorage 'pc-view'). On a computer it is the same switch (Where to ski first is the default there). */
.rv-view, .change-resort, .rv-snap { display: none; }
@media (max-width: 700px) {
  header.site { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .7rem 0 1.6rem; }
  .site .home { order: 1; flex: 0 0 auto; }
  .site .site-links { order: 1; flex: 1 1 auto; margin-left: .2rem; gap: .1rem .8rem; font-size: .8rem; }
  .site .site-links a.ql { display: inline; }
  .support-top { order: 2; margin: 0; padding: .2rem .6rem; font-size: .8rem; width: auto; }
  .support-long { display: none; }
  .site .contact-top { order: 3; float: none; }
  .site h1 { order: 4; flex: 1 1 100%; margin: .7rem 0 .2rem; font-size: 1.55rem; }
  nav.seasons { order: 5; margin: 0; }
  .rank-jump { order: 6; margin: 0; }
  .is-resort .site h1, .is-resort nav.seasons, .is-resort .rank-jump {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .is-resort .picker { display: none; margin-top: 0; }
  .is-resort.show-picker .picker { display: flex; }
  .is-resort .favs { margin-top: .4rem; }

  .is-resort article.resort { border-top: 0; padding-top: .4rem; }
  .rv-card { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
    padding: .8rem 1rem .9rem; margin-bottom: .7rem; }
  .rv-card h2 { font-size: 1.6rem; margin: 0 4.6rem .1rem 0; }
  .rv-card h2 .alt { display: block; margin: .1rem 0 0; }
  .change-resort { display: inline-block; position: absolute; top: .8rem; right: 1rem; font: inherit; font-size: .85rem; font-weight: 600;
    padding: .3rem .8rem; color: var(--ink); background: transparent; border: 1px solid var(--axis); border-radius: 999px; cursor: pointer; }
  .rv-card .covers { margin: .2rem 0 0; font-size: .8rem; }
  .explain-bar.bar-bottom { margin: 1.2rem 0 .4rem; font-size: .8rem; }
  .rv-snap { display: flex; gap: .8rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--hairline); }
  .rv-snap > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
  .rv-snap-k { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
  .rv-snap-v { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; font-weight: 500; }
  .rv-snap-v2 { font-family: var(--display); font-size: 1.1rem; line-height: 1.3; font-weight: 500; }
  .rv-snap-s { font-size: .72rem; color: var(--ink-2); }

  .rv-view { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-size: .82rem; }
  .rv-view-k { display: none; }   /* "Show first" label dropped on phones so the four buttons fit on one row */
  .rv-view button { font: inherit; font-size: .82rem; font-weight: 600; padding: .3rem .8rem; color: var(--ink-2); background: var(--plane);
    border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; }
  .rv-view button.on { background: var(--series-median); border-color: var(--series-median); color: #fff; }
  .rv-view a.rv-glance { font-size: .82rem; font-weight: 600; padding: .3rem .8rem; color: var(--ink-2); background: var(--plane); border: 1px solid var(--hairline);
    border-radius: 999px; text-decoration: none; }   /* same look as the other (unselected) buttons; the way back to the quick view */
  .rv-body { display: flex; flex-direction: column; }
  .rv-fc { order: 1; } .rv-ski { order: 2; } .rv-rest { order: 3; } .rv-cams { order: 4; }
  html.view-ski .rv-ski { order: 1; } html.view-ski .rv-fc { order: 2; }
  html.view-cams .rv-cams { order: 0; }
}

/* Folded explanations: normal text on a computer, an "i" button on a phone (needs JS: html.js). */
.fold-btn { display: none; }
@media (max-width: 700px) {
  html.js .fold-btn { display: inline-flex; align-items: center; gap: .5rem; margin: .3rem 0; font: inherit; font-size: .82rem; font-weight: 600;
    color: var(--ink-2); background: transparent; border: 1px solid var(--hairline); border-radius: 999px; padding: .3rem .8rem; min-height: 2.2rem; cursor: pointer; }
  .fold-i { display: inline-block; width: 1.15rem; height: 1.15rem; line-height: 1.15rem; text-align: center; font-family: var(--display); font-style: italic;
    font-size: .8rem; border: 1px solid currentColor; border-radius: 50%; }
  html.js .fold:not(.open) > .fold-body { display: none; }
  html.js .fold.open > .fold-body { margin-top: .2rem; }
  .week-snow { display: none; }              /* the card at the top already says this */
}

/* Where to ski on a phone: each day is a card, morning and afternoon stacked with the compass beside the words. */
@media (max-width: 700px) {
  .piste-table, .piste-table tbody, .piste-table tr, .piste-table td { display: block; width: 100%; }
  .piste-table thead { display: none; }
  .piste-table tr { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; margin: 0 0 .6rem; overflow: hidden; }
  .piste-table td { border: 0; padding: .5rem .8rem; line-height: 1.45; }
  .piste-table td.pd-day { background: var(--plane); border-bottom: 1px solid var(--hairline); padding: .5rem .8rem; }
  .pd-date { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-right: .5rem; }
  .piste-table td.pd-day br { display: none; }
  .piste-table td.pd-day .ps { margin-right: .3rem; }
  .piste-table td.pd-part + td.pd-part { border-top: 1px solid var(--hairline); }
  .piste-table td.pd-part::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-muted); margin-bottom: .2rem; }
  .piste-table svg.rose { width: 4rem; height: 4rem; }
  .piste-table .pc { align-items: flex-start; gap: .7rem; }
  .piste-table .cloud-line, .piste-table .wind-line { margin-top: .3rem; font-size: .8rem; line-height: 1.4; }
  .piste-at { margin: .2rem 0 .5rem; }
  .lift-warn { font-size: .82rem; }
}

/* Phone: "Forecast" and the model tabs share one row; less space above. */
@media (max-width: 700px) {
  .forecast-head { flex-wrap: nowrap; align-items: center; gap: .6rem; margin: .5rem 0 .4rem; }
  .forecast-head h3 { font-size: 1.25rem; flex: none; }
  .forecast-head .viewswitch { flex: 1; width: auto; min-width: 0; }
  .forecast-head .viewswitch button { padding: .3rem .2rem; font-size: .76rem; }
  .rv-body section.forecast, .rv-fc { margin-top: 0; }
}

/* Privacy page */
.privacy { max-width: 40rem; line-height: 1.55; }
.privacy h2 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.privacy ul { padding-left: 1.2rem; }
.privacy li { margin: .4rem 0; }

/* Phone: keep the result list within the part of the screen the keyboard leaves free, and let a finger scroll it. */
@media (max-width: 700px) {
  .rs-list { max-height: 34vh; max-height: 34svh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .rs-list li { padding: .7rem .8rem; }
}

/* Navigating to another resort: a thin moving bar at the top so a tap never looks ignored. */
html.pc-loading::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; width: 40%; z-index: 100; background: #2f6fb7;
  animation: pc-load 1.1s ease-in-out infinite; }
@keyframes pc-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Air temperature for the morning / afternoon in Where to ski. */
.pd-temp { float: right; margin-left: .5rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pd-feels { display: block; font-weight: 400; font-size: .72rem; color: var(--ink-muted); line-height: 1.2; }
@media (max-width: 700px) {
  .piste-table td.pd-part { position: relative; }
  .pd-temp { position: absolute; top: .45rem; right: .8rem; float: none; margin: 0; font-size: .95rem; }
  .pd-feels { font-size: .78rem; }
}

/* Computer: the same "Show first" switch. Where to ski stays first unless the visitor picks Forecast (html.view-plan). */
@media (min-width: 701px) {
  .rv-view { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .8rem; font-size: .85rem; }
  .rv-view-k { color: var(--ink-muted); margin-right: .1rem; }
  .rv-view button { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .9rem; color: var(--ink-2); background: var(--plane);
    border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; }
  .rv-view button:hover { border-color: var(--series-median); }
  .rv-view button.on { background: var(--series-median); border-color: var(--series-median); color: #fff; }
  .rv-view a.rv-glance { font-size: .85rem; font-weight: 600; padding: .3rem .9rem; color: var(--ink-2); background: var(--plane);
    border: 1px solid var(--hairline); border-radius: 999px; text-decoration: none; }
  .rv-view a.rv-glance:hover { border-color: var(--series-median); }
  .rv-body { display: flex; flex-direction: column; }
  .rv-ski { order: 1; } .rv-fc { order: 2; } .rv-rest { order: 3; } .rv-cams { order: 4; }
  html.view-plan .rv-fc { order: 0; }
  html.view-cams .rv-cams { order: 0; }
}

/* Hourly panel: choose the height (Resort / Halfway / Top). */
.hp-heights { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .5rem 0 .2rem; font-size: .82rem; }
.hp-heights .hp-k { color: var(--ink-muted); margin-right: .1rem; }
.hp-heights button { font: inherit; font-size: .82rem; font-weight: 600; padding: .3rem .8rem; color: var(--ink-2); background: var(--plane);
  border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; }
.hp-heights button.on { background: var(--series-median); border-color: var(--series-median); color: #fff; }

/* ---------- Snow globe (globe.php, globe.js) ---------- */
.globe-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2rem; }
.globe-ctl { display: flex; flex-direction: column; gap: .5rem; margin: .6rem 0; }
.globe-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; }
.globe-row .gk, .globe-legend .gk { color: var(--ink-muted); margin-right: .2rem; }
.globe-row button { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .85rem; color: var(--ink-2); background: var(--plane);
  border: 1px solid var(--hairline); border-radius: 999px; cursor: pointer; }
.globe-row button.on { background: var(--series-median); border-color: var(--series-median); color: #fff; }
.globe-wrap { position: relative; width: 100%; height: min(76vh, 660px); min-height: 320px; border-radius: 14px; overflow: hidden;
  background: var(--plane); border: 1px solid var(--hairline); touch-action: none; }
.globe-cv { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.globe-msg { position: absolute; left: 0; right: 0; top: 46%; text-align: center; pointer-events: none; }
.globe-msg[hidden], .globe-card[hidden] { display: none; }
.globe-zoom { position: absolute; right: .6rem; top: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.globe-zoom button { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; line-height: 1; border-radius: 10px; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.globe-card { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; max-width: 26rem; padding: .7rem .9rem; font-size: .88rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,.2); }
.globe-card .gc-x { position: absolute; right: .4rem; top: .2rem; font-size: 1.4rem; line-height: 1; background: none; border: 0; color: var(--ink-muted); cursor: pointer; padding: .2rem .45rem; }
.globe-card .gc-n { font-size: 1rem; }
.globe-card .gc-sub { margin: .25rem 0 .3rem; font-size: .78rem; }
.gc-t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.gc-t th { text-align: left; font-weight: 500; padding: .12rem .5rem .12rem 0; white-space: nowrap; }
.gc-t td { padding: .12rem .5rem .12rem 0; white-space: nowrap; }
.gc-t tr.on { background: var(--plane); }
.gc-go { display: inline-block; margin-top: .45rem; font-weight: 600; }
.globe-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; margin: .6rem 0 .2rem; font-size: .8rem; color: var(--ink-2); }
.globe-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.globe-legend i.nodata { width: .45rem; height: .45rem; margin: 0 .5rem 0 .175rem; background: rgba(110,125,140,.65); }
.globe-note { font-size: .8rem; }
.globe-top { padding-left: 1.4rem; }
.globe-top li { padding: .15rem 0; }
@media (max-width: 700px) { .globe-wrap { height: min(68vh, 560px); } .globe-card { max-width: none; } }
.globe-link { font-weight: 600; }

/* Where to ski: when the snow falls */
.pd-snow{margin-top:4px;font-size:.9rem}
.pd-snow b{color:var(--h-snow,#2f6fd0)}

.pd-wet{margin-top:3px;font-size:.88rem;color:#8a5a00}
.pd-wet b{font-weight:700}
