@font-face {
  font-family: Bricolage;
  src: url('/snow/assets/bricolage.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url('/snow/assets/dm-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f6f8fc;
  --paper: #fff;
  --ink: #17233e;
  --muted: #47566e;
  --faint: #5b6b82;
  --line: #e0e6f0;
  --accent: #3d53d9;
  --accent-dark: #3449c2;
  --accent-pale: #edf0ff;
  --navy: #182953;
  --level-1: #dce7ff;
  --level-2: #a8befb;
  --level-3: #6b86ed;
  --level-4: #354dd4;
  --open: #2f9e6b;
  --soon: #d9962b;
  --closed: #9aa6ba;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Bricolage, 'DM Sans', sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #5878ff; outline-offset: 3px; }
svg { display: block; width: 18px; height: 18px; }
#snow-map, #resorts { scroll-margin-top: 24px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: absolute; z-index: 6; top: 8px; left: 8px; padding: 10px; background: white; }
.shell { width: calc(100% - 2 * clamp(.625rem, 3.1vw, 3.25rem)); margin-inline: auto; }
.dashboard { container: dashboard / inline-size; }

/* Header */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 69px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; width: fit-content; text-decoration: none; letter-spacing: -.045em; font-family: Bricolage, sans-serif; font-size: 1.45rem; font-weight: 800; }
.brand img { flex: none; border-radius: 9px; }
.topnav { display: flex; align-items: center; gap: 27px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.topnav a { text-decoration: none; }
.topnav a:hover, .topnav a[aria-current] { color: var(--accent-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.button:hover { border-color: #b4c0dc; background: #f7f9ff; }
.button svg { width: 16px; height: 16px; }
.update-button { justify-self: end; }
.update-button svg { color: var(--accent-dark); }
.primary { border-color: var(--accent); background: var(--accent); color: white; }
.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }

.intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; padding: 30px 0 24px; }
.intro h1 { font-size: clamp(2.8rem, 5.3vw, 4.1rem); font-weight: 800; line-height: .99; letter-spacing: -.065em; }
.intro p { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }
.intro .outlook { margin-top: 8px; color: #3c4a66; font-size: .86rem; line-height: 1.5; }
.outlook svg { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: var(--accent); }
.outlook span { margin-right: 8px; }
.outlook a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.report-date { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; white-space: nowrap; }
.date-icon { display: grid; place-content: center; width: 37px; height: 37px; border: 1px solid #dfe5fa; border-radius: 9px; background: var(--accent-pale); color: var(--accent-dark); }
.date-icon svg { width: 17px; height: 17px; }
.date-label { display: block; margin: 0 0 2px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.report-date time { font-size: .9rem; font-weight: 800; }

/* Layout: map and picks share a row; the picks match the map's height. */
.report-layout { display: grid; grid-template: "map picks" auto "resorts resorts" auto / minmax(0, 1fr) clamp(300px, 29%, 400px); gap: 24px 16px; }

/* Map */
.map-card, .table-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 9px #283c6606; overflow: hidden; }
.map-card { grid-area: map; display: flex; flex-direction: column; }
.map-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px 12px 22px; }
.map-header h2 { font-size: 1.25rem; letter-spacing: -.035em; }
.periods { display: flex; gap: 2px; padding: 3px; border: 1px solid #e9edf6; border-radius: 9px; background: #f1f4fa; }
.periods button { border: 0; border-radius: 6px; padding: 6px 11px; background: none; color: var(--muted); white-space: nowrap; font-size: .84rem; font-weight: 700; }
.periods button:hover { color: var(--accent-dark); }
.periods button[aria-pressed="true"] { background: white; color: var(--accent-dark); box-shadow: 0 1px 3px #243a5c22; }
.map-surface { position: relative; flex: none; aspect-ratio: 2.45; min-height: 18rem; isolation: isolate; background: #e5edf6; }
.map-image { position: absolute; inset: 0; overflow: hidden; background: #e5edf6; }
.map-image img { width: 100%; height: 100%; object-fit: fill; display: block; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; transform: translate(-50%, -50%); text-transform: uppercase; letter-spacing: .19em; color: #476078; font-weight: 800; font-size: .69rem; text-shadow: 0 0 6px #fff, 0 0 3px #fff; white-space: nowrap; }
.map-label.place { text-transform: none; letter-spacing: .015em; font-weight: 650; color: #486481; }
.map-label.place::before { content: '•'; margin-right: 4px; color: #446180; }
.map-marker {
  --marker-color: var(--level-1);
  position: absolute;
  z-index: 1;
  transform: translate(calc(-50% + var(--marker-x, 0px)), calc(-50% + var(--marker-y, 0px)));
  border: 0;
  padding: 0;
  background: none;
  color: #25385a;
  white-space: nowrap;
}
.map-marker .disc { display: grid; place-content: center; width: 39px; height: 39px; border: 2px solid white; border-radius: 50%; background: var(--marker-color); color: var(--marker-ink, #263b68); font-size: .91rem; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 2px 7px #243d6b3b, 0 0 0 5px color-mix(in srgb, var(--marker-color) 27%, transparent); transition: transform .15s; }
.map-marker .place-name { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: #f9fbffed; font-size: .75rem; font-weight: 750; pointer-events: none; text-align: center; line-height: 1.15; }
.map-marker .area-name { display: block; }
.map-marker .area-lead { display: block; margin-top: 1px; font-size: .66rem; font-weight: 650; color: #4a5d7a; }
.map-marker.level-2 { --marker-color: var(--level-2); }
.map-marker.level-3 { --marker-color: var(--level-3); --marker-ink: #112340; }
.map-marker.level-4 { --marker-color: var(--level-4); --marker-ink: white; }
.map-marker.level-none { --marker-color: #edf0f6; z-index: 0; }
.map-marker.level-none .disc { width: 31px; height: 31px; color: var(--faint); }
.map-marker.level-3 .disc { width: 43px; height: 43px; }
.map-marker.level-4 .disc { width: 49px; height: 49px; font-size: 1rem; }
.map-marker:hover, .map-marker:focus-visible, .map-marker[aria-pressed="true"] { z-index: 4; }
.map-marker:hover .disc { transform: scale(1.08); box-shadow: 0 0 0 4px #314bc365, 0 4px 10px #263d715f; }
.map-marker[aria-pressed="true"] .disc { box-shadow: 0 0 0 4px #314bc365, 0 4px 10px #263d715f; }
.map-marker[aria-pressed="true"] .place-name { background: var(--accent-dark); color: #fff; }
.map-marker[aria-pressed="true"] .area-lead { color: #d7def5; }
/* Spread neighbouring area bubbles so labels stay readable. */
.map-marker[data-area="vaud-alps"] { --marker-x: -16px; --marker-y: -14px; }
.map-marker[data-area="valais"] { --marker-x: 14px; --marker-y: -6px; }
.map-marker[data-area="aosta"] { --marker-x: 8px; --marker-y: 12px; }
.map-marker[data-area="tarentaise"] { --marker-x: -8px; --marker-y: 6px; }
.map-marker[data-area="chamonix"] { --marker-x: -10px; --marker-y: -10px; }
.map-marker[data-area="oisans"] { --marker-x: 0; --marker-y: 12px; }
.map-marker[data-area="kaunertal"] { --marker-x: -16px; --marker-y: 8px; }
.map-marker[data-area="pitztal"] { --marker-x: -4px; --marker-y: 16px; }
.map-marker[data-area="oetztal"] { --marker-x: 10px; --marker-y: 6px; }
.map-marker[data-area="stubai"] { --marker-x: 16px; --marker-y: -10px; }
.map-marker[data-area="zillertal"] { --marker-x: 8px; --marker-y: -16px; }
.map-marker[data-area="arlberg"] { --marker-x: -10px; --marker-y: -12px; }
.map-marker[data-area="paznaun"] { --marker-x: 10px; --marker-y: 10px; }
.map-marker[data-area="livigno"] { --marker-x: -10px; --marker-y: -8px; }
.map-marker[data-area="ortler"] { --marker-x: 10px; --marker-y: 8px; }
.map-marker[data-area="vaud-alps"] .place-name, .map-marker[data-area="kaunertal"] .place-name, .map-marker[data-area="chamonix"] .place-name { left: auto; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.map-marker[data-area="valais"] .place-name, .map-marker[data-area="aosta"] .place-name, .map-marker[data-area="stubai"] .place-name, .map-marker[data-area="ortler"] .place-name { left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.map-marker[data-area="central-switzerland"] .place-name, .map-marker[data-area="graubuenden"] .place-name, .map-marker[data-area="zillertal"] .place-name, .map-marker[data-area="arlberg"] .place-name { top: auto; bottom: calc(100% + 5px); }
.map-pop { position: absolute; z-index: 6; width: 260px; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 34px #12234a30; transform: translate(-50%, -100%); pointer-events: auto; }
.map-pop.below { transform: translate(-50%, 0); }
.pop-head strong { display: block; font-size: .95rem; font-weight: 800; }
.pop-head span { display: block; margin-top: 1px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.pop-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pop-list li { border-top: 1px solid #edf1f7; }
.pop-list .pop-resort { display: grid; width: 100%; grid-template: "dot name value" auto "dot status value" auto / 8px minmax(0, 1fr) auto; column-gap: 8px; padding: 6px 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.pop-list .pop-resort:hover .pop-name { text-decoration: underline; text-underline-offset: 2px; }
.pop-list .dot { grid-area: dot; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--closed); }
.dot.open { background: var(--open); }
.dot.soon { background: var(--soon); }
.pop-name { grid-area: name; font-size: .84rem; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-status { grid-area: status; color: var(--muted); font-size: .72rem; }
.pop-list b { grid-area: value; align-self: center; font-size: .86rem; font-variant-numeric: tabular-nums; }
.pop-empty { display: block !important; color: var(--muted); font-size: .82rem; }
.pop-foot { margin-top: 4px; color: var(--accent-dark); font-size: .72rem; font-weight: 700; }
.map-footer { flex: 1 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 8px 17px; padding: 12px 22px; min-height: 46px; font-size: .81rem; color: var(--muted); }
.map-footer b { white-space: nowrap; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 13px; font-size: .78rem; font-weight: 680; white-space: nowrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { display: inline-block; width: 10px; height: 10px; border: 1px solid #29407518; border-radius: 50%; }
.swatch.level-1 { background: var(--level-1); }
.swatch.level-2 { background: var(--level-2); }
.swatch.level-3 { background: var(--level-3); }
.swatch.level-4 { background: var(--level-4); }

/* Picks */
.picks { grid-area: picks; display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 17.5rem; container: picks / inline-size; }
.pick-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 3px 9px #283c6606; }
.pick-panel.lead { flex: 1 0 auto; padding-top: 24px; border-color: #233868; color: #f3f6ff; background: radial-gradient(ellipse at 100% 0%, #344a8c 0%, #203566 39%, #182951 78%); }
.pick-panel.lead::before {
  position: absolute;
  content: '';
  z-index: -1;
  right: -115px;
  top: -104px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 1px solid #9caef54d;
  box-shadow: 0 0 0 17px #5e7aca0a, 0 0 0 18px #9caef535, 0 0 0 37px #5e7aca08, 0 0 0 38px #9caef528, 0 0 0 59px #5373c708, 0 0 0 60px #9caef51f;
  pointer-events: none;
}
.pick-eyebrow { display: flex; align-items: center; gap: 7px; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .115em; font-size: .72rem; font-weight: 800; }
.pick-eyebrow svg { width: 15px; height: 15px; flex: none; }
.lead .pick-eyebrow { color: #cbd7ff; }
.pick-panel h2 { margin: 8px 0 3px; line-height: 1.02; letter-spacing: -.042em; font-size: clamp(1.45rem, 9cqi, 2.2rem); font-weight: 780; }
.lead h2 { color: white; }
.pick-panel:not(.lead) h2 { font-size: clamp(1.25rem, 7cqi, 1.6rem); }
.pick-sub { color: var(--muted); font-size: .84rem; }
.lead .pick-sub { color: #c1cdef; }
.pick-panel ol { list-style: none; padding: 0; margin: 14px 0 0; }
.pick-panel li { border-top: 1px solid var(--line); }
.lead li { border-color: #a8b9ed35; }
.pick-panel li button { display: grid; width: 100%; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 58px; padding: 8px 0; border: 0; text-align: left; background: transparent; color: inherit; }
.pick-panel:not(.lead) li button { grid-template-columns: minmax(0, 1fr) auto; min-height: 50px; }
.pick-panel:not(.lead) li button > i { display: none; }
.pick-panel li button:hover .leader-name { text-decoration: underline; text-underline-offset: 3px; }
.pick-panel li button > i { width: 6px; height: 6px; align-self: start; margin-top: 10px; border-radius: 50%; background: #a6b9ff; }
.leader-name { display: block; line-height: 1.2; font-size: .94rem; font-weight: 800; }
.leader-region { display: block; margin-top: 3px; font-size: .76rem; color: var(--muted); }
.lead .leader-region { color: #c2ceef; }
.leader-snow { justify-self: end; font-weight: 800; font-size: 1.12rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leader-snow small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.lead .leader-snow small { color: #c2ceef; }
.lead li:first-child .leader-snow { font-size: 1.4rem; }
.leader-reason { display: block; margin-top: 4px; font-size: .76rem; line-height: 1.35; font-weight: 500; color: var(--faint); }
.lead .leader-reason { color: #d0daf5; }
.official-picks { flex: 1 0 auto; }
.official-picks li button { align-items: start; min-height: 72px; }
.no-leaders { padding: 12px 0; color: var(--muted); font-size: .87rem; }
.lead .no-leaders { color: #c2ceef; }

/* Resort table */
.resorts { grid-area: resorts; min-width: 0; }
#resorts .filters { min-height: 4.25rem; }
#resorts .table-scroll {
  min-height: calc(var(--region-rows, 8) * 2.5rem + var(--resort-rows, 24) * 3.15rem + 5.5rem);
}
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 14px; margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -.05em; line-height: 1.1; font-weight: 780; }
.section-heading p { font-size: .86rem; color: var(--muted); }
.filters { display: flex; align-items: center; gap: 12px 20px; padding: 12px 15px 12px 18px; }
.regions { display: flex; flex: 1 1 auto; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.regions::-webkit-scrollbar { display: none; }
.regions button { flex: none; min-height: 36px; border: 1px solid transparent; border-radius: 8px; padding: 5px 10px; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.regions button:hover { color: var(--accent-dark); background: #f4f6ff; }
.regions button[aria-pressed="true"] { background: var(--accent-pale); color: var(--accent-dark); border-color: #e1e6ff; }
.searchbox { display: flex; align-items: center; gap: 7px; flex: 0 1 230px; min-width: 150px; min-height: 40px; padding: 0 10px; background: var(--page); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.searchbox svg { width: 16px; height: 16px; }
.searchbox input { width: 100%; min-width: 0; border: 0; outline: none; padding: 7px 0; background: transparent; color: var(--ink); font-size: .9rem; }
.searchbox:focus-within { outline: 2px solid #5878ff; outline-offset: 2px; }
.searchbox input::placeholder { color: var(--faint); }
.mobile-only, .field-label { display: none; }
.compact-filter { display: grid; gap: 3px; min-width: 0; }
.compact-filter label { color: var(--muted); font-size: .77rem; font-weight: 750; }
.compact-filter select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding-left: 10px; color: var(--ink); background-color: var(--page); font-size: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th, td { text-align: left; border-bottom: 1px solid #e8edf4; padding: 12px 14px; }
thead th { padding: 11px 14px; border-top: 1px solid var(--line); background: #f7f9fd; color: var(--muted); font-weight: 750; font-size: .84rem; white-space: nowrap; }
thead th:first-child, tbody th[scope="row"] { width: 25%; padding-left: 22px; }
thead th.active { background: #edf0fc; color: #394bb0; }
thead button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: transparent; color: inherit; font-weight: inherit; }
thead button:hover { color: var(--accent-dark); }
thead button svg { width: 14px; height: 14px; opacity: .55; }
thead th[aria-sort] button svg { opacity: 1; }
thead th[aria-sort="ascending"] svg { transform: rotate(180deg); }
.region-row th { background: #eef3fa; padding: 9px 22px; font-size: .87rem; font-weight: 800; }
.region-line { display: inline-flex; align-items: center; gap: 8px; }
.flag { display: inline-block; flex: none; width: 17px; height: 12px; border: 1px solid #15264918; border-radius: 2px; }
.flag-fr { background: linear-gradient(90deg, #3456ac 33.3%, #fff 33.3%, #fff 66.6%, #e65163 66.6%); }
.flag-at { background: linear-gradient(#db4e5c 33.3%, #fff 33.3%, #fff 66.6%, #db4e5c 66.6%); }
.flag-it { background: linear-gradient(90deg, #178459 33.3%, #fff 33.3%, #fff 66.6%, #db4e5c 66.6%); }
.flag-ch { background: linear-gradient(#fff, #fff) center / 7px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 7px no-repeat, #d74c59; }
.region-detail { color: var(--faint); font-size: .77rem; font-weight: 550; }
.resort-row { cursor: pointer; }
.resort-row th { background: white; }
.resort-link { padding: 0; border: 0; background: none; color: var(--ink); font-size: .95rem; font-weight: 800; text-align: left; }
.resort-row:hover .resort-link { color: var(--accent-dark); }
.resort-row td { font-size: .9rem; color: #364661; white-space: nowrap; background: white; }
.resort-row .priority-cell { background: #f7f8ff; }
.resort-row:hover > *, .resort-row.selected > * { background: #f3f5ff; }
.snow-data { font-weight: 700; }
.snow-missing { color: var(--faint); }
.priority-cell .snow-data { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 9px; border-radius: 7px; background: #e8edfb; color: #344b81; font-weight: 800; }
.priority-cell.level-2 .snow-data { background: #dfe7ff; color: #304797; }
.priority-cell.level-3 .snow-data { background: #c9d5ff; color: #1f3596; }
.priority-cell.level-4 .snow-data { background: #3e55d7; color: #fff; }
.opening-pill { display: inline-block; border-radius: 6px; padding: 3px 8px; background: #eef1f6; color: #53627b; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.opening-pill.open { background: #e3f3ec; color: #235d49; }
.opening-pill.soon { background: #fff0d6; color: #765015; }
.pistes-block { display: grid; gap: 4px; }
.pistes-line { font-weight: 700; color: var(--ink); }
.pistes-line small { color: var(--muted); font-weight: 500; }
.bar { display: block; width: 100%; max-width: 110px; height: 5px; border-radius: 3px; background: #e6ebf5; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--open); }
.pistes-sub { color: var(--muted); font-size: .76rem; }
.more-cell { width: 44px; padding-inline: 0 16px; color: var(--faint); }
.more-cell svg { width: 18px; height: 18px; margin-left: auto; transition: transform .15s, color .15s; }
.resort-row:hover .more-cell svg { color: var(--accent-dark); transform: translateX(2px); }
.table-note { padding: 12px 22px; color: var(--muted); font-size: .81rem; }
.empty { padding: 22px 20px; text-align: center; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--accent-dark); font-weight: 750; text-decoration: underline; }
.notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e9b5b6; border-radius: 8px; background: #fff1f1; color: #942d32; }
.footer { padding-block: 22px 26px; color: var(--muted); font-size: .83rem; }
.footer > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer a { text-underline-offset: 3px; }

/* Resort details */
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; overflow: hidden; color: var(--ink); box-shadow: 0 14px 65px #0f205143; }
dialog::backdrop { background: #18264b8a; }
.resort-dialog { width: min(780px, calc(100% - 24px)); max-height: min(calc(100dvh - 24px), 860px); }
.resort-dialog[open] { display: flex; flex-direction: column; }
.rd-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.rd-region { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.rd-head h2 { margin: 6px 0 10px; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; }
.rd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rd-note { color: var(--muted); font-size: .84rem; }
.rd-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px 24px 24px; overflow: auto; overscroll-behavior: contain; }
.rd-body > * { min-width: 0; }
.rd-head h2:focus { outline: none; }
.rd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rd-stat { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.rd-stat-label { color: var(--muted); font-size: .74rem; font-weight: 700; }
.rd-stat strong { font-family: Bricolage, sans-serif; font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rd-stat small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.rd-stat .bar { max-width: none; margin-top: 2px; }
.rd-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rd-weather h3, .rd-sources h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.wx-status { padding: 26px 0; color: var(--muted); text-align: center; font-size: .9rem; }
.wx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 650; }
.wx-legend span + span::before { content: '·'; margin-right: 14px; }
.wx-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); gap: 4px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.wx-day { display: grid; justify-items: center; gap: 7px; padding: 10px 4px; border-radius: 11px; text-align: center; scroll-snap-align: start; }
.wx-day.past { opacity: .5; }
.wx-day.today { background: var(--accent-pale); box-shadow: inset 0 0 0 1px #d4ddff; }
.wx-date { display: grid; gap: 1px; font-size: .72rem; color: var(--muted); }
.wx-date b { color: var(--ink); font-size: .8rem; }
.wx-icon svg { width: 26px; height: 26px; color: #50627f; }
.wx-snow { display: grid; grid-template-rows: 56px auto; justify-items: center; gap: 4px; width: 100%; }
.wx-snow i { align-self: end; width: 18px; min-height: 2px; border-radius: 5px 5px 2px 2px; background: #d7def0; }
.wx-snow.has-snow i { background: linear-gradient(#6b86ed, var(--accent)); }
.wx-snow b { font-size: .8rem; font-weight: 800; color: var(--faint); }
.wx-snow.has-snow b { color: var(--accent-dark); }
.wx-temp { display: grid; font-size: .8rem; }
.wx-temp span { color: var(--muted); }
.wx-line { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-depth { margin-top: 12px; color: #3c4a66; font-size: .84rem; }
.wx-note { margin-top: 6px; color: var(--muted); font-size: .74rem; }
.rd-sources ul { list-style: none; margin: 10px 0 0; padding: 0; }
.rd-sources li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #edf1f7; font-size: .86rem; }
.rd-sources li span { color: var(--muted); }
.rd-sources a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; text-align: right; overflow-wrap: anywhere; }

/* Data and sources page */
.data-view { padding: 28px 0 8px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-dark); font-size: .86rem; font-weight: 700; text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }
.data-intro h1 { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.data-intro p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.data-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.data-facts .rd-stat { padding: 16px 18px; background: var(--paper); }
.data-facts .rd-stat strong { font-size: 1.6rem; }
.data-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.data-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 3px 9px #283c6606; }
.data-card h2 { font-size: 1.2rem; letter-spacing: -.03em; }
.method { display: grid; gap: 10px; margin: 12px 0 0; padding-left: 20px; color: #3c4a66; font-size: .9rem; line-height: 1.5; }
.method b { color: var(--ink); }
.source-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 28px; list-style: none; margin: 8px 0 0; padding: 0; }
.source-list li { display: grid; grid-template: "kind note" auto "link note" auto / minmax(0, 1fr) auto; column-gap: 12px; padding: 9px 0; border-top: 1px solid #edf1f7; }
.source-kind { grid-area: kind; color: var(--muted); font-size: .72rem; font-weight: 700; }
.source-list a { grid-area: link; width: fit-content; color: var(--accent-dark); font-weight: 750; text-underline-offset: 3px; }
.source-list small { grid-area: note; align-self: center; color: var(--muted); font-size: .78rem; text-align: right; }
.data-resorts { margin-top: 30px; }
.data-table th, .data-table td { vertical-align: top; }
.data-table td { font-size: .88rem; color: #364661; }
.data-table th[scope="row"] small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; font-weight: 500; }
.data-table td b { display: block; color: var(--ink); font-weight: 800; }
.data-table td a { display: flex; align-items: center; gap: 4px; width: fit-content; margin-top: 4px; color: var(--accent-dark); font-size: .84rem; font-weight: 650; text-underline-offset: 3px; overflow-wrap: anywhere; }
.data-table td a svg { width: 13px; height: 13px; flex: none; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.rd-title { flex: 1 1 0; min-width: 0; }
.rd-head { flex-wrap: wrap; }
.rd-operator { flex: none; min-height: 38px; font-size: .84rem; text-decoration: none; }
.rd-operator svg { width: 14px; height: 14px; }

@container dashboard (max-width: 54rem) {
  .data-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table { display: block; min-width: 0; }
  .data-table tbody { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 14px; border-bottom: 1px solid var(--line); }
  .data-table th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 0; }
  .data-table td { padding: 0; border: 0; }
  .data-table td::before { display: block; content: attr(data-label); margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 650; }
}

@container dashboard (max-width: 36rem) {
  .data-view { padding-top: 18px; }
  .data-facts { grid-template-columns: minmax(0, 1fr); }
  .data-card { padding: 16px; border-radius: 13px; }
}

@media (max-width: 35rem) {
  .rd-title { flex-basis: calc(100% - 54px); }
  .rd-operator { order: 3; }
}

/* Sources and status details */
.opening-pill.paused { background: #ffe9dc; color: #8a3a12; }
.opening-pill.unchecked { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px #cfd7e4; }
.dot.paused { background: var(--soon); }
.dot.unchecked { background: #cfd7e4; }
.best-badge { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 5px; background: var(--accent-pale); color: var(--accent-dark); font-size: .64rem; font-style: normal; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; vertical-align: 2px; }
.pop-list li.best .pop-name { font-weight: 800; }
.pop-list .best-badge { margin-left: 6px; padding: 1px 5px; font-size: .58rem; }
.source-count { display: block; margin-top: 3px; color: var(--faint); font-size: .7rem; font-weight: 600; }
.rd-hint { color: var(--muted); font-size: .76rem; }
.source-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.source-table { width: 100%; min-width: 460px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.source-table th, .source-table td { padding: 8px 12px; border-bottom: 1px solid #edf1f7; text-align: left; font-size: .84rem; }
.source-table thead th { background: #f7f9fd; color: var(--muted); font-size: .76rem; font-weight: 750; border-top: 0; }
.source-table tbody tr:last-child > * { border-bottom: 0; }
.source-table tbody th { width: 46%; font-weight: 700; }
.source-table tbody th a { color: var(--accent-dark); text-underline-offset: 3px; }
.source-table tbody th small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.source-table td { color: #364661; white-space: nowrap; }
.source-table td.top { color: var(--accent-dark); font-weight: 800; }
.src-lines { list-style: none; margin: 6px 0 0; padding: 0; }
.src-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; color: var(--muted); font-size: .76rem; }
.src-lines li a { margin: 0 !important; font-size: .76rem !important; font-weight: 600 !important; }
.src-lines li span { font-variant-numeric: tabular-nums; color: #364661; font-weight: 700; }

/* Rating */
.rating { display: inline-block; min-width: 26px; margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: #f1f4fa; color: #394bb0; font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; vertical-align: 1px; }
.pop-name .rating { min-width: 0; margin-left: 6px; padding: 0 5px; font-size: .64rem; }
.rd-rating { color: var(--muted); font-size: .84rem; }
.rd-rating b { color: var(--accent-dark); font-size: 1rem; font-variant-numeric: tabular-nums; }

/* Resort page */
.resort-view { padding: 24px 0 8px; }
.rp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 20px; margin: 14px 0 22px; }
.rp-title { flex: 1 1 360px; min-width: 0; }
.rp-head h1 { margin: 8px 0 12px; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.rp-head h1:focus { outline: none; }
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.rp-body > .rd-stats .rd-stat { padding: 16px 18px; background: var(--paper); }
.rp-body > .rd-stats .rd-stat strong { font-size: 1.75rem; }
.rp-body > section { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 3px 9px #283c6606; min-width: 0; }
.rp-body > section h2 { font-family: Bricolage, sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.rp-body .rd-sources { margin-top: 18px; }
.rp-body .rd-sources h3 { font-size: 1rem; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cam { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #eef2f8; }
.cam a { display: block; }
.cam img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe6f1; transition: transform .25s; }
.cam a:hover img { transform: scale(1.02); }
.cam figcaption { display: grid; gap: 2px; padding: 9px 12px 10px; background: var(--paper); font-size: .8rem; color: var(--muted); }
.cam figcaption strong { color: var(--ink); font-size: .9rem; }
.piste-map { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.piste-map img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #f4f7fb; }
.piste-map figcaption { padding: 9px 12px; color: var(--muted); font-size: .8rem; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: #fbfcfe; }
.cam-grid + .link-card { margin-top: 14px; }
.link-card:hover { border-color: #c9d3ea; background: #f5f8ff; }
.link-card strong { display: block; font-size: .95rem; }
.link-card small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.link-card svg { flex: none; width: 18px; height: 18px; color: var(--accent-dark); }
.rp-empty { color: var(--muted); font-size: .9rem; }
.pistes-line.closed-km { color: var(--faint); font-weight: 600; }

@container dashboard (max-width: 36rem) {
  .resort-view { padding-top: 16px; }
  .rp-body > section { padding: 16px 14px; border-radius: 13px; }
  .rp-body > .rd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cam-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Weather: clickable days and the day detail */
.wx-day { padding: 0; }
.wx-pick { display: grid; justify-items: center; gap: 7px; width: 100%; padding: 10px 4px; border: 0; border-radius: 11px; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.wx-pick:hover { background: #f4f6fc; }
.wx-day.selected .wx-pick { background: var(--accent-pale); box-shadow: inset 0 0 0 2px var(--accent); }
.wx-day.today:not(.selected) .wx-pick { box-shadow: inset 0 0 0 1px #d4ddff; }
.wx-day.today { background: none; box-shadow: none; }
.wx-detail { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.wx-detail-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.wx-detail-head strong { font-size: .98rem; }
.wx-detail-head span { color: var(--muted); font-size: .82rem; }
.wx-slot-keys, .wx-slots li { display: grid; grid-template-columns: 56px 34px minmax(44px, .7fr) minmax(54px, .8fr) minmax(86px, 1fr) minmax(70px, 1fr); align-items: center; gap: 8px; }
.wx-slot-keys { padding: 0 6px 6px; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.wx-slots { list-style: none; margin: 0; padding: 0; }
.wx-slots li { padding: 6px; border-top: 1px solid #edf1f7; font-size: .86rem; font-variant-numeric: tabular-nums; }
.wx-slots li.has-snow { background: #f3f6ff; }
.wx-slots .wx-icon svg { width: 22px; height: 22px; }
.wx-slot-snow { color: var(--faint); font-weight: 700; }
.has-snow .wx-slot-snow { color: var(--accent-dark); }
.wx-slot-wind, .wx-slot-line { color: var(--muted); }

/* Piste map */
.live-map { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #eef3fb, #e4ebf7); }
.live-map-start { display: grid; place-content: center; gap: 6px; width: 100%; min-height: 220px; padding: 24px; border: 0; background: none; color: var(--ink); text-align: center; cursor: pointer; }
.live-map-start strong { font-family: Bricolage, sans-serif; font-size: 1.25rem; letter-spacing: -.02em; color: var(--accent-dark); }
.live-map-start span { color: var(--muted); font-size: .85rem; }
.live-map-start:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.live-map.loaded iframe { display: block; width: 100%; height: min(72vh, 680px); border: 0; background: white; }
.piste-map { margin: 14px 0 0; }
.live-map + .piste-map { margin-top: 14px; }
.cam-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fbfcfe; color: var(--accent-dark); font-size: .84rem; font-weight: 700; text-decoration: none; }
.link-chip:hover { border-color: #c9d3ea; background: #f5f8ff; }
.link-chip svg { width: 14px; height: 14px; }

/* Image viewer */
body.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #0d1527f2; }
.viewer[hidden] { display: none; }
.viewer-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #ffffffe6; }
.viewer-stage { display: grid; place-items: center; min-height: 0; padding: 56px 16px 8px; overflow: auto; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; border-radius: 6px; }
.viewer-stage.zoomed { place-items: start; }
.viewer-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.viewer-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 20px 18px; color: #e8edf9; }
.viewer-caption strong { display: block; font-size: 1rem; }
.viewer-caption span { color: #c8d4ec; font-size: .84rem; }
.viewer-caption .link-chips { margin: 0; }
.viewer-caption .link-chip { background: #ffffff14; border-color: #ffffff30; color: #fff; }

@container dashboard (max-width: 36rem) {
  .wx-slot-keys, .wx-slots li { grid-template-columns: 44px 26px 38px 44px minmax(0, 1fr); gap: 6px; }
  .wx-slot-keys span:last-child, .wx-slot-line { display: none; }
  .wx-detail { padding: 12px 10px; }
  .live-map-start { min-height: 160px; }
}

/* Editor */
#editor { width: min(630px, calc(100% - 26px)); max-height: min(calc(100% - 24px), 740px); }
#editor-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-block-size: min(46rem, calc(100dvh - 26px)); }
.editor-head, .editor-body, .editor-actions { padding: 18px 22px; }
.editor-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; border-bottom: 1px solid var(--line); }
.editor-head h2 { letter-spacing: -.04em; }
.editor-head p { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.icon-button { display: grid; flex: none; place-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--muted); }
.icon-button:hover { background: var(--page); color: var(--ink); }
.editor-body { overflow: auto; overscroll-behavior: contain; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.editor-body label { display: grid; gap: 4px; font-size: .875rem; font-weight: 700; }
.editor-body input, .editor-body select { width: 100%; min-height: 39px; min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background-color: var(--page); color: var(--ink); font-size: 1rem; }
.editor-body select, .compact-filter select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23596780' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-size: 15px; background-position: right 8px center; background-repeat: no-repeat; }
.editor-body hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.resort-select { margin-bottom: 11px; }
.resort-select label, .status-select label { margin-bottom: 4px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.editor-actions .primary { margin-left: auto; }
.editor-error { color: #ab3337; font-size: .875rem; }
.editor-error:not(:empty) { margin-top: 10px; }
.toast { position: fixed; z-index: 7; bottom: 16px; right: 16px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 9px; background: var(--navy); color: white; box-shadow: 0 7px 22px #11234b35; }

/* Beside the map the second pick shows only its winner, so both picks fit the map's height. */
@container dashboard (min-width: 62.01rem) {
  .pick-panel:not(.lead) .pick-sub { display: none; }
  .pick-panel:not(.lead) ol { margin-top: 8px; }
  .pick-panel li button { min-height: 50px; padding-block: 6px; }
  .pick-panel .leader-reason { display: none; }
}

/* Tile internals follow the tile's own width, not the window. */
@container picks (max-width: 340px) {
  .pick-panel { padding-inline: 16px; }
  .leader-snow { font-size: 1rem; }
  .lead li:first-child .leader-snow { font-size: 1.2rem; }
}

/* Map and picks stack; the two picks sit side by side under the map. */
@container dashboard (max-width: 62rem) {
  .report-layout { grid-template: "map" auto "picks" auto "resorts" auto / minmax(0, 1fr); gap: 18px; }
  .map-surface { aspect-ratio: 2.7; }
  .picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 26rem; }
  .pick-panel.lead { flex: none; }
}

/* Tablet and phone: resort cards instead of a wide table. */
@container dashboard (max-width: 54rem) {
  #resorts .table-scroll { min-height: calc(var(--region-rows, 8) * 2.75rem + var(--resort-rows, 24) * 5.75rem + 4rem); }
  .map-surface { aspect-ratio: auto; min-height: 0; height: clamp(13rem, 52cqi, 21rem); }
  .map-marker .place-name { display: none; }
  .map-footer { flex-wrap: wrap; }
  .filters { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .regions { flex: 1 1 100%; order: 2; }
  .searchbox { flex: 1 1 auto; min-height: 44px; }
  .searchbox input { font-size: 1rem; }
  .table-scroll { overflow: visible; }
  table { display: block; min-width: 0; }
  tbody, .region-row, .region-row th { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .region-row th { border-top: 1px solid var(--line); padding: 8px 14px; }
  .region-line { flex-wrap: wrap; gap: 4px 7px; }
  .resort-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; padding: 13px 14px 14px; border-bottom: 1px solid #e8edf4; background: white; }
  .resort-row th[scope="row"] { grid-column: 1 / 3; width: auto; padding: 0; align-self: center; }
  .resort-row .status-cell { grid-row: 1; grid-column: 3; justify-self: end; text-align: right; }
  .resort-row .status-cell .field-label, .resort-row .no-measure, .resort-row .more-cell { display: none; }
  .resort-row > * { border: 0; padding: 0; background: transparent; }
  .resort-row td { white-space: normal; overflow-wrap: anywhere; }
  .resort-row .priority-cell { background: transparent; }
  .priority-cell .snow-data { min-height: auto; padding: 2px 7px; }
  .field-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 650; }
  .resort-row:hover > *, .resort-row.selected > * { background: transparent; }
  .resort-row:hover, .resort-row.selected { background: #f3f5ff; }
  .resort-link { font-size: 1rem; }
  .table-note { padding-inline: 14px; }
}

@container dashboard (max-width: 36rem) {
  .intro { padding: 20px 0 16px; gap: 10px; }
  .intro h1 { font-size: clamp(2.2rem, 11vw, 3.1rem); }
  .intro p { margin-top: 8px; font-size: 1rem; }
  .report-date { gap: 7px; }
  .date-icon { width: 25px; height: 25px; border-radius: 6px; }
  .date-icon svg { width: 14px; height: 14px; }
  .report-date > div { display: flex; align-items: center; gap: 6px; }
  .date-label { margin: 0; }
  .report-date time { font-size: .8rem; }
  .report-layout { gap: 14px; }
  .picks { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .map-card, .table-card, .pick-panel { border-radius: 13px; }
  .map-header { flex-wrap: wrap; padding: 10px 10px 10px 14px; gap: 8px; }
  .map-header h2 { font-size: 1.05rem; }
  .map-header .periods { flex: 1 1 100%; }
  .periods button { flex: 1; min-height: 40px; padding-inline: 6px; font-size: .8rem; }
  .map-marker::before { position: absolute; inset: -6px; content: ''; }
  .map-marker .disc { width: 30px; height: 30px; font-size: .74rem; border-width: 1.5px; box-shadow: 0 1px 4px #243d6b58, 0 0 0 3px color-mix(in srgb, var(--marker-color) 27%, transparent); }
  .map-marker.level-3 .disc { width: 33px; height: 33px; }
  .map-marker.level-4 .disc { width: 37px; height: 37px; font-size: .8rem; }
  .map-marker.level-none .disc { width: 24px; height: 24px; }
  .map-marker[data-region="vaud-alps"] { --marker-x: -18px; --marker-y: -16px; }
  .map-marker[data-region="valais"] { --marker-x: 10px; --marker-y: -6px; }
  .map-marker[data-region="western-italy"] { --marker-x: 10px; --marker-y: 10px; }
  .map-label { font-size: .54rem; }
  .map-label.place { display: none; }
  .map-footer { gap: 5px 10px; padding: 8px 12px; font-size: .76rem; }
  .legend { gap: 5px 8px; font-size: .72rem; }
  .swatch { width: 8px; height: 8px; }
  .pick-panel { padding: 16px 14px 6px; }
  .pick-panel.lead { padding-top: 18px; }
  .filters { gap: 8px; }
  .section-heading { margin-bottom: 8px; }
  .section-heading p { font-size: .8rem; }
}

@media (max-width: 35rem) {
  .topbar-inner { min-height: 58px; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 8px; }
  .topnav { display: none; }
  .brand { font-size: 1.25rem; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .update-button { min-height: 40px; padding-inline: 8px; white-space: normal; }
  .resort-dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .rd-head { padding: 18px 16px 14px; }
  .rd-body { padding: 16px 16px 24px; gap: 20px; }
  .rd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-head, .editor-body, .editor-actions { padding: 10px 12px; }
  .editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-actions .button { white-space: normal; text-align: center; }
  .editor-actions .primary { grid-column: 1 / -1; margin: 0; }
}

@media (max-width: 21rem) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .15s, color .15s, box-shadow .15s; }
}

/* Crawlable summary and resort permalink (pages generated by scripts/seo-pages.mjs). */
.rd-permalink { align-self: center; font-size: .84rem; color: inherit; opacity: .75; }
.seo-summary { color: inherit; font-size: .95rem; }
.seo-summary h2 { font-size: 1.3rem; margin: 0 0 8px; }
.seo-summary h3 { font-size: 1rem; margin: 18px 0 6px; }
.seo-summary ol { padding-left: 20px; margin: 0; }
.seo-summary table { width: 100%; border-collapse: collapse; }
.seo-summary th, .seo-summary td { text-align: left; padding: 5px 8px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.seo-summary details { margin: 6px 0; }
.seo-summary summary { cursor: pointer; font-weight: 600; }
.seo-summary[hidden] { display: none; }
