/* Ski Almanac, direction C (Painted almanac). Tokens: docs/sites/uk-pseo/design-tokens.css.
   Fonts: Young Serif and Schibsted Grotesk, SIL OFL 1.1, self-hosted (fonts/OFL-*.txt). */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #161B2E;
  --indigo: #1C2541;
  --snow: #F6F7FB;
  --white: #FFFFFF;
  --alpenglow: #A63F52;
  --window: #F0B04A;
  --pine: #2E4A3F;
  --mark-on-light: #B8741C;
  --text: var(--ink);
  --text-body: #3A4157;
  --text-muted: #545B70;
  --text-on-dark: var(--snow);
  --text-on-dark-body: #E1E5F2;
  --text-on-dark-muted: #C9D0E8;
  --rule: #E3E6EF;
  --rule-strong: #D6DAE5;
  --rule-on-dark: rgba(201, 208, 232, 0.25);
  --plate-line-on-dark: rgba(201, 208, 232, 0.35);
  --run-beginner: #A9B5DA;
  --run-intermediate: #E7907F;
  --run-advanced: #1C2541;
  --run-expert: repeating-linear-gradient(45deg, #161B2E 0 3px, #8A90A3 3px 5px);
  --font-display: "Young Serif", Georgia, serif;
  --font-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-display-xl: clamp(3.25rem, 6vw, 5.25rem);
  --text-display-l: clamp(2.75rem, 5.2vw, 4.5rem);
  --text-heading: clamp(2rem, 3.6vw, 2.625rem);
  --text-plate-title: 1.875rem;
  --text-card-title: 1.3125rem;
  --text-body-l: 1.1875rem;
  --text-body: 1.125rem;
  --text-small: 0.875rem;
  --text-label: 0.75rem;
  --leading-prose: 1.62;
  --leading-tight: 1.1;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 88px;
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1360px;
  --measure: 760px;
  --focus-ring: 3px solid var(--window);
  --focus-halo: 0 0 0 6px var(--indigo);
  --tap-min: 44px;
  --button-min: 52px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--alpenglow); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--focus-halo);
}
table { border-collapse: collapse; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 30;
  padding: var(--space-3) var(--space-4); background: var(--window); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: var(--text-small); }
.muted { color: var(--text-muted); }
.icon { display: inline-block; vertical-align: -3px; flex: none; }

/* Type */
.label {
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3);
}
.label--window { color: var(--window); }
.label--glow { color: var(--alpenglow); }
.heading {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-heading);
  line-height: var(--leading-tight); letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: var(--space-4);
}
.heading--s { font-size: clamp(1.625rem, 2.6vw, 2rem); }
.page-title, .guide-title, .hero__title {
  font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: -0.015em;
  overflow-wrap: break-word; hyphens: auto;
}
.prose { font-size: var(--text-body); line-height: var(--leading-prose); color: var(--text-body); max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.section__intro { color: var(--text-muted); max-width: var(--measure); margin-bottom: var(--space-5); line-height: 1.55; }
.lede { font-size: 1.0625rem; line-height: 1.6; color: var(--text-on-dark-body); max-width: 560px; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--button-min);
  padding: 0 var(--space-5); background: var(--window); color: var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--window);
}
.button:hover { background: #F5C46E; color: var(--ink); }
.button--outline { background: transparent; color: var(--window); }
.button--outline:hover { background: rgba(240, 176, 74, 0.12); color: var(--window); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); font-weight: 700; font-size: 0.9375rem; }
.text-link--light { color: var(--snow); }
.text-link--light:hover { color: var(--window); }
.band--dark .text-link, .band--dark a:not(.button) { color: var(--window); }
.band--dark .crumbs a { color: var(--snow); }

/* Illustration tag */
.tag {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  padding: 3px 8px; background: rgba(22, 27, 46, 0.82); color: var(--snow);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
}
.tag--s { right: 6px; bottom: 6px; font-size: 0.6875rem; padding: 2px 6px; }

/* Header */
.site-header { position: relative; z-index: 10; background: var(--indigo); color: var(--snow); }
.site-header--over { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(22, 27, 46, 0.72), rgba(22, 27, 46, 0)); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-3) var(--gutter);
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; min-height: var(--tap-min); }
.brand .mark { color: var(--window); }
.brand:hover { color: var(--snow); }
.brand__name { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.015em; }
.site-nav { display: none; gap: var(--space-6); }
.site-nav a, .menu__panel a {
  color: var(--snow); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  display: inline-flex; align-items: center; min-height: var(--tap-min); border-bottom: 2px solid transparent;
}
.site-nav a:hover, .menu__panel a:hover { color: var(--window); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--window); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(246, 247, 251, 0.75); display: grid; place-items: center; color: var(--snow);
}
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: 54px; min-width: 220px; padding: var(--space-3) var(--space-5);
  background: var(--indigo); border: 1px solid var(--plate-line-on-dark); display: grid;
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu { display: none; }
  .site-header__inner { min-height: 76px; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: var(--space-8) 0 var(--space-9); font-size: var(--text-small); }
.site-footer__inner { display: grid; gap: var(--space-6); }
.site-footer__about { display: grid; gap: var(--space-3); max-width: 560px; line-height: 1.6; }
.site-footer__about .brand { margin-bottom: var(--space-2); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.site-footer__nav a { color: var(--snow); min-height: var(--tap-min); display: inline-flex; align-items: center; gap: 6px; }
.site-footer__nav a:hover { color: var(--window); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__nav { flex-direction: column; align-items: flex-end; }
  .site-footer__nav a { min-height: 32px; }
}

/* Plates */
.plate { position: relative; padding: 26px 22px 24px; }
.plate::before { content: ""; position: absolute; inset: 8px; pointer-events: none; }
.plate--dark { background: var(--indigo); color: var(--text-on-dark-body); }
.plate--dark::before { border: 1px solid var(--plate-line-on-dark); }
.plate--light { background: var(--white); color: var(--text-body); border: 1px solid var(--indigo); }
.plate--light::before { border: 1px solid var(--rule-strong); }
.plate--outline { border: 1px solid var(--plate-line-on-dark); }
.plate--outline::before { display: none; }
.plate > * { position: relative; }
.plate .label { margin-bottom: var(--space-2); }
.plate__title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-plate-title); line-height: 1.1; color: var(--ink); margin-bottom: var(--space-3); }
.plate--dark .plate__title { color: var(--snow); }
.plate__sub { font-size: var(--text-small); line-height: 1.55; color: var(--text-muted); margin-bottom: var(--space-4); }
.plate--dark .plate__sub { color: var(--text-on-dark-muted); }
.plate__note { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-3); line-height: 1.5; }

/* Guide: cover and intro */
.cover { position: relative; aspect-ratio: 3 / 2; max-height: 540px; background: var(--indigo); overflow: hidden; }
.cover__img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, rgba(28, 37, 65, 0), rgba(28, 37, 65, 0.85)); pointer-events: none; }
.cover .tag { z-index: 1; bottom: var(--space-5); }
.cover--plate { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 20%, #2B3760, var(--indigo)); height: 420px; }
.cover--plate::after { display: none; }
.cover__initial {
  font-family: var(--font-display); font-size: 10rem; line-height: 1; color: var(--window);
  width: 220px; height: 220px; display: grid; place-items: center; border: 1px solid var(--plate-line-on-dark); outline: 1px solid var(--plate-line-on-dark); outline-offset: 8px;
}
.cover__note { position: absolute; bottom: var(--space-5); right: var(--gutter); font-size: 0.75rem; color: var(--text-on-dark-muted); }
.guide-intro { background: var(--indigo); color: var(--text-on-dark-body); padding: var(--space-5) 0 var(--space-7); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8125rem; color: var(--text-on-dark-muted); margin-bottom: var(--space-3); }
.crumbs a { color: var(--snow); min-height: var(--tap-min); display: inline-flex; align-items: center; }
.crumbs > span { display: inline-flex; align-items: center; }
.guide-title { font-size: var(--text-display-l); color: var(--snow); margin-bottom: var(--space-3); }
.guide-meta { font-size: var(--text-small); color: var(--text-on-dark-muted); margin-bottom: var(--space-5); }

/* On this page */
.toc { margin-bottom: var(--space-5); }
.toc .label { color: var(--text-on-dark-muted); }
.toc ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.toc a {
  display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 14px;
  border: 1px solid var(--plate-line-on-dark); color: var(--snow); text-decoration: none; font-weight: 600; font-size: 0.875rem;
}
.toc a:hover { border-color: var(--window); color: var(--window); }

/* At a glance */
.glance { padding: 26px 18px 18px; }
.glance .label { margin-bottom: var(--space-4); }
.glance__grid { display: grid; }
.glance__item { display: flex; gap: 14px; padding: var(--space-4) 0; border-top: 1px solid var(--rule-on-dark); color: var(--window); }
.glance__item:first-child { border-top: 0; padding-top: 0; }
.glance__item .state-icon { flex: none; }
.glance__item .state-icon__tick { stroke: var(--ink); }
.glance__item dt { font-size: 0.8125rem; color: var(--text-on-dark-muted); margin-bottom: 4px; }
.glance__item dd strong { display: block; color: var(--snow); font-size: 1.125rem; line-height: 1.3; margin-bottom: 6px; }
.glance__item dd span { display: block; font-size: 0.875rem; color: var(--text-on-dark-body); line-height: 1.45; }
.glance .more { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); color: var(--window); font-weight: 700; font-size: 0.875rem; text-decoration: none; margin-top: var(--space-2); }
.glance .more:hover { text-decoration: underline; }

/* Guide body */
.guide-body { padding-top: var(--space-7); padding-bottom: var(--space-9); display: grid; gap: var(--space-8); }
.row { display: grid; gap: var(--space-6); align-items: start; }
.section { scroll-margin-top: var(--space-5); }
.plate { scroll-margin-top: var(--space-5); }

/* Plate I: altitude band and stats */
.alt-band { width: 100%; height: auto; margin: var(--space-2) 0 var(--space-4); }
.alt-grid { stroke: rgba(201, 208, 232, 0.18); stroke-width: 1; }
.alt-scale { fill: var(--text-on-dark-muted); font: 11px var(--font-text); }
.alt-rock { fill: var(--run-beginner); }
.alt-snow { fill: var(--snow); }
.alt-forest { fill: var(--pine); }
.alt-mark { stroke: var(--window); stroke-width: 1.5; stroke-dasharray: 5 4; }
.alt-label { fill: var(--snow); font: 700 12px var(--font-text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); border-top: 1px solid var(--rule-on-dark); padding-top: var(--space-4); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dd { font-family: var(--font-display); font-size: 1.875rem; color: var(--snow); line-height: 1.1; }
.stats dt { font-size: 0.75rem; color: var(--text-on-dark-muted); line-height: 1.35; margin-top: 4px; }

/* Plate II: run mix */
.runbar { display: flex; height: 26px; margin-bottom: var(--space-4); gap: 2px; }
.runbar__seg { display: block; height: 100%; min-width: 4px; }
.runbar__seg--beginner, .swatch--beginner { background: var(--run-beginner); }
.runbar__seg--intermediate, .swatch--intermediate { background: var(--run-intermediate); }
.runbar__seg--advanced, .swatch--advanced { background: var(--run-advanced); }
.runbar__seg--expert, .swatch--expert { background: var(--run-expert); }
.runs, .notes__date, .notes__num { font-variant-numeric: tabular-nums; }
.runs { width: 100%; font-size: 0.9375rem; }
.runs th, .runs td { padding: 9px 0; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; }
.runs tr:first-child th, .runs tr:first-child td { border-top: 0; }
.runs th { color: var(--ink); font-weight: 600; }
.runs .num { text-align: right; font-variant-numeric: tabular-nums; }
.runs td.num:not(.muted) { font-weight: 700; color: var(--ink); padding-left: var(--space-3); }
.runs .muted { font-size: 0.8125rem; padding-left: var(--space-3); white-space: nowrap; }
.swatch { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; }

/* Plate III: facts */
.facts { display: grid; }
.fact { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule-on-dark); align-items: start; }
.fact:first-child { border-top: 0; }
.fact .state-icon { color: var(--window); }
.fact .state-icon__tick { stroke: var(--ink); }
.fact--no .state-icon, .fact--unknown .state-icon { color: var(--text-on-dark-muted); }
.fact__title { color: var(--snow); font-weight: 700; font-size: 0.9375rem; line-height: 1.35; }
.fact__value { font-weight: 700; }
.fact__detail { font-size: 0.8125rem; color: var(--text-on-dark-body); margin-top: 2px; line-height: 1.45; }
.fact__note { color: var(--window); font-size: 0.75rem; font-weight: 600; white-space: nowrap; min-height: var(--tap-min); min-width: var(--tap-min); display: inline-flex; align-items: center; justify-content: flex-end; margin-top: -10px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); border-top: 1px solid var(--rule-on-dark); padding-top: var(--space-3); margin-top: var(--space-2); font-size: 0.75rem; color: var(--text-on-dark-muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .state-icon--yes { color: var(--window); }
.legend .state-icon__tick { stroke: var(--ink); }

/* Plate IV: holidays and tiers */
.holidays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: var(--space-5); }
.holiday { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 6px; background: var(--snow); color: var(--indigo); }
.holiday__name { font-weight: 700; font-size: 0.8125rem; color: var(--ink); line-height: 1.25; }
.holiday__state { font-weight: 700; font-size: 0.8125rem; color: var(--pine); }
.holiday__detail { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }
.holiday--main { background: var(--indigo); color: var(--window); }
.holiday--main .holiday__name { color: var(--snow); }
.holiday--main .holiday__state { color: var(--window); }
.holiday--main .holiday__detail { color: var(--text-on-dark-muted); }
.holiday--no .holiday__state { color: var(--alpenglow); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tier { display: grid; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.tier__bar { height: 10px; background: var(--run-beginner); opacity: 0.55; }
.tier--active .tier__bar { background: var(--indigo); opacity: 1; height: 14px; margin-top: -4px; }
.tier--active .tier__name { color: var(--ink); font-weight: 800; }

/* Family fit vignettes and photos */
.vignettes { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.vignette img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vignette figcaption, .photo figcaption { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-2); line-height: 1.45; }
.photos__grid { display: grid; gap: var(--space-5); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption a { color: var(--text-muted); }

/* Booking */
.booking .disclosure { font-size: var(--text-small); color: var(--text-muted); margin-bottom: var(--space-4); line-height: 1.55; }
.booking__list { display: grid; gap: var(--space-3); }
.booking__link {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: var(--button-min);
  padding: 10px var(--space-4); border: 1.5px solid var(--indigo); background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 0.9375rem;
}
.booking__link:hover { background: var(--indigo); color: var(--snow); }

/* Source notes */
.notes__list { border-top: 1px solid var(--rule-strong); max-width: 980px; }
.notes__list li { border-bottom: 1px solid var(--rule-strong); scroll-margin-top: var(--space-5); }
.notes__list li:target { background: var(--white); }
.notes summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px 1fr auto auto; gap: var(--space-3); align-items: center; min-height: 52px; padding: 6px 0; }
.notes summary::-webkit-details-marker { display: none; }
.notes__num { color: var(--alpenglow); font-weight: 700; }
.notes__field { font-weight: 700; color: var(--ink); }
.notes__date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.notes details[open] .chevron { transform: rotate(180deg); }
.notes__body { padding: 0 0 var(--space-4) 40px; display: grid; gap: var(--space-2); font-size: 0.9375rem; color: var(--text-body); line-height: 1.55; }
.notes__url { overflow-wrap: anywhere; word-break: break-word; font-size: 0.8125rem; }
.notes__meta { font-size: 0.75rem; color: var(--text-muted); }

/* Related */
.related__list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.related__item { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-4); align-items: start; }
.related__thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.related__thumb .tag { display: none; }
.related__thumb.related__thumb--letter, .entry__thumb.entry__thumb--letter, .feature__letter.feature__letter--letter {
  display: grid; place-items: center; background: var(--indigo); color: var(--window);
  font-family: var(--font-display); font-size: 2rem; line-height: 1; outline: 1px solid var(--plate-line-on-dark); outline-offset: -6px;
}
.related .label { margin-bottom: 4px; letter-spacing: 0.1em; font-size: 0.6875rem; }
.related__name { font-family: var(--font-display); font-weight: 400; font-size: var(--text-card-title); line-height: 1.15; }
.related__name a { color: var(--ink); text-decoration: none; }
.related__name a:hover { text-decoration: underline; }
.related__reason { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }
.prose--intro { margin-bottom: var(--space-2); }

@media (min-width: 900px) {
  .cover { height: min(70vh, 680px); aspect-ratio: auto; max-height: none; }
  .cover--plate { height: 460px; }
  .guide-intro { padding: var(--space-5) 0 var(--space-8); }
  .guide-title { font-size: var(--text-display-xl); }
  .toc .label { display: none; }
  .toc a { border: 0; padding: 0; text-decoration: underline; font-weight: 600; }
  .crumbs a { min-height: 32px; }
  .toc ul { gap: var(--space-5); }
  .toc { margin-bottom: var(--space-6); }
  .glance { padding: 30px 28px 24px; }
  .glance__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .glance__item { flex-direction: column; border: 1px solid var(--plate-line-on-dark); padding: var(--space-5) var(--space-4); }
  .glance__item:first-child { padding-top: var(--space-5); }
  .row--prose { grid-template-columns: minmax(0, 1fr) 440px; gap: var(--space-8); }
  .row--plates { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .vignettes { grid-template-columns: 1fr 1fr; max-width: 1000px; }
  .photos__grid { grid-template-columns: 1fr 1fr; }
  .related__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .related__item { grid-template-columns: 1fr; }
  .related__thumb { aspect-ratio: 4 / 3; }
  .related__thumb .tag { display: block; }
  .related__thumb.related__thumb--letter { font-size: 4.5rem; }
}

/* Bands and section heads (home, index, sources) */
.band--dark { background: var(--indigo); color: var(--text-on-dark-body); }
.band--dark .heading { color: var(--snow); }
.band { padding: var(--space-8) 0; }
.section-band { padding: var(--space-8) 0; }
.section-band--white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-head .heading { margin-bottom: 0; }
.section-head__aside { max-width: 420px; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }

/* Hero (home and 404) */
.hero { position: relative; background: var(--indigo); color: var(--text-on-dark-body); overflow: hidden; }
.hero__art { position: relative; height: 420px; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; padding-top: 0; padding-bottom: var(--space-7); }
.hero__card { background: var(--indigo); border: 1px solid var(--plate-line-on-dark); outline: 1px solid var(--plate-line-on-dark); outline-offset: -9px; padding: var(--space-6) var(--space-5); margin-top: -96px; position: relative; }
.hero__title { font-size: var(--text-display-l); color: var(--snow); margin-bottom: var(--space-4); }
.hero__card p:not(.label) { line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.hero--lost .hero__art { height: 360px; }
.hero__copy { padding-top: var(--space-6); }
.routes { display: grid; gap: var(--space-2); margin-top: var(--space-5); max-width: 420px; }
.route {
  display: flex; justify-content: space-between; align-items: center; min-height: var(--button-min); padding: 0 var(--space-4);
  border: 1px solid var(--plate-line-on-dark); color: var(--snow) !important; font-weight: 700; text-decoration: none; font-size: 0.9375rem; background: rgba(22, 27, 46, 0.55);
}
.route:hover { border-color: var(--window); color: var(--window) !important; }
@media (min-width: 900px) {
  .hero--home { min-height: 760px; }
  .hero--home .hero__art, .hero--lost .hero__art { position: absolute; inset: 0; height: auto; }
  .hero--home .hero__inner { padding-top: 220px; padding-bottom: var(--space-9); }
  .hero__card { max-width: 600px; margin-top: 0; padding: var(--space-7) var(--space-6); background: rgba(28, 37, 65, 0.94); }
  .hero--lost { min-height: 640px; }
  .hero--lost::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22, 27, 46, 0.86) 0%, rgba(22, 27, 46, 0.55) 45%, rgba(22, 27, 46, 0) 75%); }
  .hero--lost .hero__inner { z-index: 2; padding-top: 150px; padding-bottom: var(--space-8); }
  .hero--lost .hero__copy { max-width: 560px; padding-top: 0; }
  .hero--lost .tag { z-index: 2; }
}

/* Home: countries, features, questions, how */
.countries { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.country a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--snow); text-decoration: none; background: var(--ink); }
.country img { width: 100%; height: 100%; object-fit: cover; }
.country a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(22, 27, 46, 0), rgba(22, 27, 46, 0.9)); }
.country__letter { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 4rem; color: var(--window); }
.country__count { position: absolute; left: var(--space-4); bottom: 34px; z-index: 1; font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
.country__name { position: absolute; left: var(--space-4); bottom: 12px; z-index: 1; font-weight: 700; font-size: 0.875rem; }
.country a:hover .country__name { color: var(--window); }
.where .small { margin-top: var(--space-3); color: var(--text-on-dark-muted); }
.features { display: grid; gap: var(--space-6); }
.features__rest { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
.feature { display: grid; gap: 6px; align-content: start; }
.feature__img { position: relative; overflow: hidden; margin-bottom: var(--space-2); }
.feature__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature--lead { background: var(--indigo); color: var(--text-on-dark-body); }
.feature--lead .feature__img { margin: 0; }
.feature--lead .feature__img img { aspect-ratio: 3 / 2; }
.feature__text { padding: var(--space-5); }
.feature__name { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.feature__name a { color: inherit; text-decoration: none; }
.feature__name a:hover { text-decoration: underline; }
.feature--lead .feature__name { color: var(--snow); margin-bottom: var(--space-2); }
.feature__name--s { font-size: 1.375rem; color: var(--ink); }
.feature .label { margin: 0; font-size: 0.6875rem; letter-spacing: 0.1em; }
.feature__letter { display: block; aspect-ratio: 4 / 3; margin-bottom: var(--space-2); }
.feature__letter.feature__letter--letter { font-size: 4rem; }
.entry__facts { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.45; }
.entry__facts strong { color: var(--ink); }
.feature--lead .entry__facts { color: var(--text-on-dark-muted); }
.feature--lead .entry__facts strong { color: var(--snow); }
.entry__pass { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.entry__pass .state-icon--yes { color: var(--indigo); }
.entry__pass .state-icon__tick { stroke: var(--snow); }
.questions { display: grid; gap: var(--space-6); margin: var(--space-5) 0 var(--space-3); }
.question img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: var(--space-4); }
.question__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: var(--space-2); }
.question p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }
.how__plates { display: grid; gap: var(--space-4); margin: var(--space-5) 0 var(--space-6); }
.how__plates li { padding: var(--space-5); }
.numeral { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--window); line-height: 1; margin-bottom: var(--space-4); }
.how__plates h3 { color: var(--snow); font-size: 1.0625rem; margin-bottom: var(--space-2); }
.how__plates p { font-size: 0.9375rem; line-height: 1.55; }
.how__footer { display: grid; gap: var(--space-4); border-top: 1px solid var(--rule-on-dark); padding-top: var(--space-5); line-height: 1.6; font-size: 0.9375rem; }
.how__footer strong { color: var(--snow); }
@media (min-width: 900px) {
  .countries { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--space-6); }
  .features--three { grid-template-columns: repeat(3, 1fr); }
  .questions { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .how__plates { grid-template-columns: repeat(3, 1fr); }
  .how__footer { grid-template-columns: 1fr auto; align-items: center; }
}

/* Resort index */
.index-head, .page-head { padding: var(--space-5) 0 var(--space-7); }
.index-head__inner, .page-head__inner { display: grid; gap: var(--space-6); align-items: center; }
.page-title { font-size: var(--text-display-l); color: var(--snow); margin-bottom: var(--space-4); }
.index-head__art, .page-head__art { position: relative; }
.index-head__art img, .page-head__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.count-strip { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.count-strip a { color: var(--snow) !important; text-decoration: none; min-height: var(--tap-min); display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.count-strip strong { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.index-body { padding-top: var(--space-6); padding-bottom: var(--space-9); }
.filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-5); padding: var(--space-4) var(--space-5); border: 1px solid var(--indigo); background: var(--white); margin-bottom: var(--space-7); }
.filter[hidden] { display: none; }
.filter__field { display: grid; gap: 4px; }
.filter__field .label { margin: 0; }
.filter select { min-height: var(--tap-min); min-width: 200px; padding: 0 var(--space-3); border: 1.5px solid var(--indigo); background: var(--white); font: inherit; font-size: 0.9375rem; color: var(--ink); border-radius: 0; }
.check { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); font-size: 0.9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--indigo); }
.filter__status { width: 100%; font-size: 0.8125rem; color: var(--text-muted); }
.country-group { margin-bottom: var(--space-8); scroll-margin-top: var(--space-5); }
.country-group[hidden] { display: none; }
.group-title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; color: var(--ink); display: flex; align-items: baseline; gap: var(--space-3); border-bottom: 2px solid var(--ink); padding-bottom: var(--space-3); margin-bottom: var(--space-4); }
.group-title span { font-family: var(--font-text); font-size: 0.8125rem; color: var(--text-muted); }
.entries { display: grid; gap: 0 var(--space-6); }
.entry { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.entry[hidden] { display: none; }
.entry__thumb { display: block; width: 72px; height: 72px; overflow: hidden; }
.entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry__name { font-family: var(--font-display); font-weight: 400; font-size: 1.3125rem; line-height: 1.15; }
.entry__name a { color: var(--ink); text-decoration: none; }
.entry__name a:hover { text-decoration: underline; }
.entry__area { font-size: 0.75rem; color: var(--text-muted); margin: 2px 0 4px; }
.index-note { max-width: 760px; }
@media (min-width: 640px) { .entries { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .index-head__inner, .page-head__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--space-8); }
  .index-head, .page-head { padding: var(--space-6) 0 var(--space-8); }
  .page-title { font-size: var(--text-display-xl); }
  .entries { grid-template-columns: repeat(3, 1fr); }
  .entry { grid-template-columns: 92px 1fr; }
  .entry__thumb { width: 92px; height: 92px; }
}

/* Data & sources */
.sources-body { padding-top: var(--space-8); padding-bottom: var(--space-9); display: grid; gap: var(--space-8); }
.source-kinds { display: grid; gap: var(--space-4); }
.source-kind h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); line-height: 1.15; margin-bottom: 4px; }
.source-kind__sub { font-weight: 700; font-size: 0.8125rem; color: var(--ink); margin-bottom: var(--space-3); }
.source-kind p { font-size: 0.9375rem; line-height: 1.55; }
.source-kind__licence { border-top: 1px solid var(--rule); margin-top: var(--space-4); padding-top: var(--space-3); font-size: 0.75rem !important; color: var(--text-muted); }
.prose-page p { max-width: var(--measure); line-height: var(--leading-prose); color: var(--text-body); }
.prose-page p + p { margin-top: 1em; }
.sources-pair { display: grid; gap: var(--space-7); align-items: start; }
.download p { line-height: 1.6; margin-bottom: var(--space-4); }
.download a:not(.button) { color: var(--window); }
.credits, .link-list { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); font-size: 0.875rem; line-height: 1.5; }
.credits li { border-bottom: 1px solid var(--rule); padding-bottom: var(--space-2); }
.link-list a { min-height: var(--tap-min); display: inline-flex; align-items: center; }
.credits-block > p { margin-bottom: var(--space-4); font-size: 0.875rem; line-height: 1.6; color: var(--text-body); }
@media (min-width: 900px) {
  .source-kinds { grid-template-columns: repeat(3, 1fr); }
  .sources-pair { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: var(--space-8); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .menu, .toc, .vignettes, .site-footer__nav { display: none; }
  .notes details > div { display: block; }
}
