/* High on Mountains site styles.
   Wayfinding system borrowed from Alpine and Tatra trails: yellow signpost plates lead to another part of the site,
   the red-white-red blaze marks the start of a section, lake teal is for actions. Everything else is granite on limestone.
   Fonts are self-hosted (no requests to Google): Barlow Condensed for signage and headings, IBM Plex Sans for text. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); 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: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-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: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); 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: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-700-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-400-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-400-italic.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-600-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 {
  --limestone: #f1f4f2;   /* page */
  --snow: #fbfcfb;        /* raised surfaces */
  --granite: #15211e;     /* text */
  --slate: #44514d;       /* secondary text */
  --scree: #5d6b66;       /* muted text */
  --line: #d5ded9;
  --line-strong: #aab7b1;
  --lake: #1b6a60;        /* links, buttons, map markers */
  --lake-hover: #134f47;
  --lake-soft: #dfedea;
  --on-lake: #ffffff;
  --blaze: #c8102e;       /* trail marking */
  --sign: #f4c21b;        /* signpost yellow */
  --sign-ink: #1d1a0c;
  --pole: #8b9691;
  --ridge-fill: rgba(21, 33, 30, 0.09);
  --error: #b3261e;
  --footer-bg: #15211e;
  --footer-ink: #c5d0cb;
  --input-bg: #ffffff;
  /* panorama depth ramp, far to near (validated as an ordinal ramp: monotone lightness, light end >= 2:1) */
  --ridge-d1: #99afa8;
  --ridge-d2: #78928a;
  --ridge-d3: #56746b;
  --ridge-d4: #2c4a43;
  --band-ink: #eef3f1;
  --band-muted: #b9c9c3;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* type scale 14 / 17 / 21 / 28 / 36 / 48 */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.25rem;
  --step-4: 3rem;
  --wrap: 76rem;
  --gutter: 16px;
  color-scheme: light;
}

/* The site is always dark, like the night home page, so it never flips to white between pages or with the
   phone's light/dark setting. The light values above stay as the base the dark ones override. */
@media all {
  :root {
    --limestone: #101816; --snow: #16201d; --granite: #e6ece9; --slate: #b3bfba; --scree: #93a09b; --line: #27332f;
    --line-strong: #44524d; --lake: #5cb8a9; --lake-hover: #84cdc1; --lake-soft: #173029; --on-lake: #0c1714;
    --blaze: #e0414f; --sign: #e9b818; --pole: #5f6a66; --ridge-fill: rgba(230, 236, 233, 0.11); --error: #ff8a80;
    --footer-bg: #0a0f0e; --footer-ink: #a9b6b1; --input-bg: #0f1715;
    --ridge-d1: #6d9086; --ridge-d2: #587a71; --ridge-d3: #46665e; --ridge-d4: #36554d; --band-ink: #e6ece9; --band-muted: #b6c6c0;
    color-scheme: dark;
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--limestone); color: var(--granite);
  font: 400 var(--step-0)/1.6 var(--font-body); font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lake-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); line-height: 0.95; letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.15; }
p, ul, ol, dl, dd { margin: 0; }
strong { font-weight: 600; }
time, .num, td.r { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -4rem; z-index: 50; padding: 0.5rem 0.9rem; background: var(--granite); color: var(--limestone); font-weight: 600; }
.skip:focus { top: 8px; }
.lede { max-width: 38em; font-size: var(--step-1); line-height: 1.5; color: var(--slate); }
.prose { max-width: 40em; color: var(--slate); }
.note { max-width: 48em; font-size: var(--step--1); color: var(--scree); }
.muted { color: var(--scree); }
.text-link { font-weight: 600; }

/* Blaze: the red-white-red trail mark painted on rocks along Alpine routes */
.blaze {
  display: inline-block; flex: none; width: 0.8rem; height: 1.2rem; border-radius: 2px;
  background: linear-gradient(var(--blaze) 0 33.4%, #fff 33.4% 66.6%, var(--blaze) 66.6%);
  box-shadow: 0 0 0 1px rgba(21, 33, 30, 0.14);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.15rem;
  border: 0; border-radius: 4px; background: var(--lake); color: var(--on-lake);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--lake-hover); color: var(--on-lake); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-large { min-height: 3.25rem; padding: 0.8rem 1.5rem; font-size: 1.0625rem; }
.btn-quiet { background: transparent; color: var(--lake); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-quiet:hover { background: var(--lake-soft); color: var(--lake-hover); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2.25rem; min-height: 4.5rem; padding-block: 0.6rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem; color: var(--granite); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.logo:hover { color: var(--granite); text-decoration: none; }
/* The logo: the mountains of the HOM logo as a small mark beside the name, in the colour of the text (cream at night) */
.logo-mark {
  display: block; flex: none; height: 1.45rem; aspect-ratio: 223 / 96; margin-top: -0.2rem; background: currentColor;
  -webkit-mask: url("../brand/hom-peaks-mask.png") center / contain no-repeat; mask: url("../brand/hom-peaks-mask.png") center / contain no-repeat;
}
.site-header--night .logo-mark { background: #f9f8c3; }
@media all { .logo-mark { background: #f9f8c3; } }
.main-nav ul, .lang-nav ul { display: flex; gap: 1.5rem; padding: 0; list-style: none; }
.main-nav a, .lang-nav a {
  display: block; padding-block: 0.45rem 0.3rem; border-bottom: 2px solid transparent;
  color: var(--slate); font-weight: 600; text-decoration: none;
}
.main-nav a:hover, .lang-nav a:hover { color: var(--granite); }
.main-nav a[aria-current], .lang-nav a[aria-current] { color: var(--granite); border-bottom-color: var(--blaze); }
.lang-nav { margin-left: auto; }
.lang-nav ul { gap: 0.75rem; }
/* Work with us: a small signpost plate in the menu, the way in for brands and regions */
.main-nav .nav-work a {
  margin-left: 0.25rem; padding: 0.4rem 1.35rem 0.35rem 0.7rem; border-bottom: 0; background: var(--sign); color: var(--sign-ink);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.15;
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 50%, calc(100% - 0.8rem) 100%, 0 100%); transition: transform 0.18s ease-out;
}
.main-nav .nav-work a:hover { color: var(--sign-ink); transform: translateX(0.2rem); }
.main-nav .nav-work a[aria-current] { box-shadow: inset 0 -3px 0 var(--blaze); }
.btn-claim { margin-left: auto; }
.btn-claim[aria-current] { background: var(--lake-hover); }
/* Logo, menu (with Routes) and five languages need about 1,100px; below that the languages move up beside the logo and the menu
   gets its own row, so nothing wraps on its own */
@media (max-width: 1199px) {
  .header-row { row-gap: 0.15rem; padding-block: 0.6rem 0.25rem; }
  .lang-nav { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 719px) {
  .header-row { gap: 0.25rem 0.75rem; padding-block: 0.75rem 0.25rem; }
  .logo { font-size: 1.3rem; gap: 0.5rem; }
  /* five languages still fit beside the logo at 375px */
  .lang-nav ul { gap: 0.45rem; }
  .lang-nav a { font-size: 0.9375rem; }
  .main-nav ul { flex-wrap: wrap; gap: 0 1rem; }
  .btn-claim { min-height: 2.5rem; padding: 0.45rem 0.8rem; font-size: 0.9375rem; }
}

/* ---------- page structure ---------- */
.page-head { display: grid; gap: 1.1rem; padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem) 2.25rem; }
.section { display: grid; gap: 1.25rem; align-content: start; padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.sec-head { display: flex; align-items: center; gap: 0.75rem; }
.sec-head .blaze { width: 0.95rem; height: 1.45rem; }
.table-scroll { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; }  /* relative: keeps .sr-only text inside the scroll box */

/* ---------- hero: sky, signpost, and a panorama whose ridges are the data ---------- */
.hero { position: relative; overflow: hidden; }  /* clips the signpost pole where it meets the ground */
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem); padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem);
}
.hero h1 { max-width: 12ch; font-size: clamp(2.9rem, 1.4rem + 5.6vw, 6rem); line-height: 0.92; letter-spacing: -0.01em; }
.hero .lede { margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.hero .signpost::before { bottom: -60rem; }  /* the pole runs down behind the front ridge */
.hero--region .page-head { padding-bottom: 1rem; }
@media (max-width: 899px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.pano { position: relative; margin: 0; }
.pano--home { margin-top: clamp(-6rem, -5vw, -1.5rem); }
.pano-art { position: relative; height: clamp(190px, 24vw, 360px); touch-action: pan-y; }
.pano-art:focus-visible { outline: 3px solid var(--lake); outline-offset: -3px; }
.pano-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.pano-back { z-index: 0; }
.pano-front { z-index: 2; }
.ridge-fill.d1 { fill: var(--ridge-d1); }
.ridge-fill.d2 { fill: var(--ridge-d2); }
.ridge-fill.d3 { fill: var(--ridge-d3); }
.ridge-fill.d4 { fill: var(--ridge-d4); }
/* 2px gap in the sky colour along each ridge top keeps overlapping layers apart */
.ridge-edge { fill: none; stroke: var(--limestone); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .pano .ridge { transform-box: fill-box; transform-origin: 50% 100%; animation: ridge-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 110ms); }
  @keyframes ridge-rise { from { transform: scaleY(0.06); } }
}
.pano-axis { position: relative; height: 1.25rem; }
.pano-axis span { position: absolute; top: 0.15rem; transform: translateX(-50%); font-size: 0.75rem; line-height: 1; color: var(--band-muted); white-space: nowrap; }
.pano-axis span:first-child { transform: none; padding-left: 0.75rem; }
@media (max-width: 599px) { .pano-axis span:nth-child(even) { display: none; } }
.pano-cross { position: absolute; top: 0; bottom: 0; z-index: 3; width: 0; border-left: 1px solid var(--granite); pointer-events: none; }
.pano-dot { position: absolute; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--limestone); }
.pano-dot.d1, .key.d1 { background: var(--ridge-d1); }
.pano-dot.d2, .key.d2 { background: var(--ridge-d2); }
.pano-dot.d3, .key.d3 { background: var(--ridge-d3); }
.pano-dot.d4, .key.d4 { background: var(--ridge-d4); }
.pano-tip {
  position: absolute; top: 0.75rem; z-index: 4; min-width: 12rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--snow); color: var(--granite); box-shadow: 0 6px 18px rgba(21, 33, 30, 0.16); font-size: var(--step--1); line-height: 1.35; pointer-events: none;
}
.pano-tip-title { margin-bottom: 0.35rem; color: var(--scree); }
.pano-tip ul { display: grid; gap: 0.2rem; padding: 0; list-style: none; }
.pano-tip li { display: grid; grid-template-columns: 0.9rem 2.2rem minmax(0, 1fr); align-items: center; gap: 0.45rem; }
.pano-tip strong { text-align: right; font-variant-numeric: tabular-nums; }
.pano-tip .key { height: 3px; border-radius: 2px; }  /* line key, not a box */
.pano-caption { position: relative; z-index: 2; background: var(--ridge-d4); color: var(--band-ink); }
.pano-caption-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; padding-block: 0.4rem 1rem; font-size: var(--step--1); }
.pano-title { color: var(--band-muted); }
.pano-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding: 0; list-style: none; }
.pano-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.peak-key { flex: none; width: 1.2rem; height: 0.7rem; overflow: visible; }
.peak-key path { stroke: var(--band-ink); stroke-width: 1.25; stroke-linejoin: round; }
.peak-key.d1 path { fill: var(--ridge-d1); }
.peak-key.d2 path { fill: var(--ridge-d2); }
.peak-key.d3 path { fill: var(--ridge-d3); }
.peak-key.d4 path { fill: var(--ridge-d4); }
.pano-legend .n { color: var(--band-muted); }
.pano-table { margin-left: auto; }
.pano-table summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.pano-table[open] { flex-basis: 100%; margin-left: 0; }
.pano-table .table-scroll { max-height: 22rem; margin-top: 0.75rem; overflow: auto; }

/* Band: the ground under the panorama, in the colour of the front ridge */
.band { background: var(--ridge-d4); color: var(--band-ink); }
.band-inner { display: grid; gap: 1.75rem; padding-block: clamp(2.25rem, 1.75rem + 3vw, 4.5rem); }
.band h2 { color: var(--band-ink); }
.band a:not(.btn) { color: #fff; }
.band .data-table th, .pano-caption .data-table th { border-bottom-color: var(--band-ink); color: var(--band-muted); }
.band .data-table td, .pano-caption .data-table td { border-bottom-color: rgba(255, 255, 255, 0.14); }
.btn-on-band { background: var(--band-ink); color: #15211e; }
.btn-on-band:hover { background: #fff; color: #15211e; }

/* Signpost: a pole with a white location plate on top and yellow arrow plates mounted on it */
.signpost { position: relative; width: 100%; max-width: 30rem; padding-bottom: 3.25rem; }
.signpost::before {
  content: ""; position: absolute; left: 1.75rem; top: 0.5rem; bottom: 0; width: 0.875rem;
  border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--pole), #c3ccc8 45%, var(--pole));
}
.signpost ul { position: relative; display: grid; gap: 0.55rem; padding: 0; list-style: none; }
.sign-here {
  position: relative; display: inline-grid; margin-bottom: 0.7rem; padding: 0.45rem 0.9rem 0.5rem;
  background: #fff; color: #15211e; border: 2px solid #15211e; border-radius: 3px; text-decoration: none;
  font-family: var(--font-display); line-height: 1.1;
}
.sign-here:hover { color: #15211e; text-decoration: none; }
.sign-here strong { font-size: 1.3rem; font-weight: 700; }
.sign-here span { font-size: 1.05rem; font-weight: 600; }
.sign a { display: block; color: var(--sign-ink); text-decoration: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3)); }
.sign a:hover { color: var(--sign-ink); }
.sign a:focus-visible { outline: 3px solid var(--granite); outline-offset: 3px; }
.sign-plate {
  display: flex; align-items: center; gap: 0.8rem; min-height: 3.4rem; padding: 0.5rem 2.6rem 0.5rem 0.9rem;
  background: var(--sign); font-family: var(--font-display);
  clip-path: polygon(0 0, calc(100% - 1.6rem) 0, 100% 50%, calc(100% - 1.6rem) 100%, 0 100%);
  transition: transform 0.18s ease-out;
}
.sign-plate::before {
  content: ""; flex: none; width: 0.7rem; height: 1.05rem; border-radius: 1px;
  background: linear-gradient(#c8102e 0 33.4%, #fff 33.4% 66.6%, #c8102e 66.6%);
}
.sign-dest { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.sign-val { margin-left: auto; font-size: 1.15rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sign a:hover .sign-plate { transform: translateX(0.35rem); }
.signpost--small { max-width: 26rem; padding-bottom: 2rem; }
.signpost--small .sign-plate { min-height: 2.9rem; }
.signpost--small .sign-dest { font-size: 1.35rem; }
.signpost--small .sign-val { font-size: 1.05rem; }
@media (max-width: 479px) {
  .sign-dest { font-size: 1.35rem; }
  .sign-val { font-size: 1rem; }
}

/* ---------- home: steps, tiers, brands ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 2px solid var(--granite); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); line-height: 1; }
.steps p { color: var(--slate); }
.band .steps li { border-top-color: var(--band-ink); }
.band .steps p { color: var(--band-muted); }
@media (max-width: 799px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Tiers rise like an ascent: valley, hut, summit */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding: 0; list-style: none; }
.tier { display: grid; gap: 0.6rem; align-content: start; padding: 1.25rem 1.25rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--granite); background: var(--snow); }
.tier + .tier { border-left: 0; }
.tier--1 { min-height: 15rem; }
.tier--2 { min-height: 17.5rem; }
.tier--3 { min-height: 20rem; }
.tier h3 { font-size: var(--step-2); font-weight: 700; }
.tier-rule { font-weight: 600; }
.tier p:not(.tier-rule):not(.tier-count) { color: var(--slate); }
.tier-count { margin-top: auto; padding-top: 0.5rem; font-size: var(--step--1); color: var(--scree); }
@media (max-width: 799px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier, .tier--1, .tier--2, .tier--3 { min-height: 0; }
  .tier + .tier { border-left: 1px solid var(--line); border-top-width: 3px; margin-top: 0.75rem; }
}

.split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: start; }
.split-main { display: grid; gap: 1.25rem; }
.claim-card { display: grid; gap: 0.9rem; padding: 1.5rem; background: var(--snow); border: 1px solid var(--line); border-top: 3px solid var(--lake); }
.claim-card h2 { font-size: var(--step-2); }
.claim-card p { color: var(--slate); }
@media (max-width: 799px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tables: logbook (Gipfelbuch) and data ---------- */
.logbook, .data-table { width: 100%; border-collapse: collapse; }
.logbook th, .data-table th {
  padding: 0 1.25rem 0.55rem 0; border-bottom: 2px solid var(--granite);
  font-size: var(--step--1); font-weight: 600; color: var(--slate); text-align: left; white-space: nowrap;
}
.logbook td, .data-table td { padding: 0.75rem 1.25rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.logbook th:last-child, .logbook td:last-child, .data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.logbook .r, .data-table .r { text-align: right; }
.lb-date { white-space: nowrap; color: var(--slate); }
.lb-date a { color: inherit; text-decoration-color: var(--line-strong); }  /* to the collab's own page */
.lb-date a:hover { color: var(--lake); text-decoration-color: currentColor; }
.lb-maker a { font-weight: 600; overflow-wrap: anywhere; }
.lb-post { white-space: nowrap; }
.lb-type { margin-right: 0.75rem; font-size: var(--step--1); color: var(--scree); }
@media (max-width: 699px) {
  .logbook thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .logbook, .logbook tbody, .logbook td { display: block; }
  .logbook tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .logbook td { padding: 0; border: 0; }
  .lb-maker { grid-row: 1; grid-column: 1; }
  .lb-date { grid-row: 1; grid-column: 2; text-align: right; }
  .lb-spot, .lb-range { grid-column: 1 / -1; color: var(--slate); }
  .lb-post { grid-column: 1 / -1; text-align: left !important; }
}

/* ---------- makers guide ---------- */
.filters {
  display: grid; grid-template-columns: minmax(12rem, 2fr) repeat(3, minmax(10rem, 1fr)); align-items: end;
  gap: 1rem; padding: 1rem; margin-bottom: 1rem; background: var(--snow); border: 1px solid var(--line);
}
.filters--map { grid-template-columns: minmax(12rem, 16rem) minmax(12rem, 16rem) 1fr; margin-bottom: 0; }
@media (max-width: 899px) { .filters, .filters--map { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
@media (max-width: 519px) { .filters, .filters--map { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.field > label:not(.check):not(.choice), .field > legend { font-weight: 600; }
input[type="search"], input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--input-bg); color: var(--granite); font: inherit; font-size: 1rem;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lake); outline-offset: 1px; border-color: var(--lake); }
.claim-extras { display: grid; gap: 0.9rem; padding: 1.1rem 1.2rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: 4px; }
.claim-extras > legend { padding: 0 0.4rem; }
.result-count { margin-bottom: 1rem; font-size: var(--step--1); color: var(--scree); }
.filters--map .result-count { margin: 0; align-self: center; }

.makers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1px; padding: 0; list-style: none;
  background: var(--line); border: 1px solid var(--line);
}
.maker { display: grid; gap: 0.8rem; align-content: start; padding: 1.1rem 1.15rem 1rem; background: var(--snow); }
.maker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.maker-handle { min-width: 0; font-size: 1.45rem; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.maker-handle a { color: var(--granite); text-decoration: none; }
.maker-handle a:hover { color: var(--lake); text-decoration: underline; text-decoration-thickness: 2px; }
.maker-count { display: grid; justify-items: end; flex: none; line-height: 1; }
.maker-count strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.maker-count span { font-size: 0.8125rem; color: var(--scree); }
.maker-name { margin-top: -0.4rem; color: var(--slate); }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 3px; background: var(--lake-soft); color: var(--lake-hover); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.badge--ambassador { background: var(--granite); color: var(--limestone); }
/* Sparkline per dataviz spec: 2px line in the de-emphasis ink, ~10% wash, hairline baseline, peak in the accent with a surface ring */
.maker-ridge { width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.ridge-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ridge-area { fill: var(--ridge-fill); }
.ridge-line { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ridge-peak { fill: var(--lake); stroke: var(--snow); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-tip {
  position: fixed; z-index: 60; transform: translate(-50%, calc(-100% - 6px)); padding: 0.3rem 0.55rem; border: 1px solid var(--line);
  border-radius: 4px; background: var(--snow); color: var(--scree); box-shadow: 0 4px 12px rgba(21, 33, 30, 0.14);
  font-size: 0.8125rem; white-space: nowrap; pointer-events: none;
}
.spark-tip strong { color: var(--granite); }
.maker-facts { display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.maker-facts div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; }
.maker-facts dt { color: var(--scree); }
.maker-active { font-size: 0.875rem; color: var(--scree); }
.range-tag { display: inline-block; margin-right: 0.7rem; white-space: nowrap; }
.range-tag .n { color: var(--scree); font-variant-numeric: tabular-nums; }
.maker-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: auto; padding-top: 0.2rem; font-size: 0.9375rem; }
.quiet-link { color: var(--scree); }
.empty-state { display: grid; justify-items: start; gap: 1rem; padding: 2rem 0; }

/* ---------- archive: the logbook with filters and a "Show more" below it ---------- */
.filters--archive { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); }  /* sized to the longest option */
@media (max-width: 899px) { .filters--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .filters--archive { grid-template-columns: minmax(0, 1fr); } }
.archive-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 1.5rem; }
.archive-more-status { font-size: var(--step--1); color: var(--scree); }
.archive-more-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- collab page: one per post, a permanent link to share ---------- */
.post-head h1 { overflow-wrap: anywhere; }
.post-body { display: grid; gap: 2.5rem 3rem; align-items: start; }
.post-main { display: grid; gap: 1.75rem; justify-items: start; }
@media (min-width: 960px) { .post-body { grid-template-columns: minmax(0, 1fr) minmax(20.5rem, 33.75rem); } }
.post-facts { width: 100%; max-width: 40rem; border-top: 2px solid var(--granite); }
.post-facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.post-facts dt { color: var(--scree); }
.post-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.post-copied { font-size: var(--step--1); color: var(--scree); }
.post-links { display: grid; gap: 0.45rem; padding: 0; list-style: none; }
.post-links a:not(.quiet-link) { font-weight: 600; }

/* Instagram embed, loaded on request: same contour-line panel as the map's consent */
.post-embed { width: 100%; max-width: 33.75rem; }
.embed-consent {
  display: grid; align-content: center; gap: 1rem; min-height: 24rem; padding: 2rem 1.5rem; border: 1px solid var(--line);
  background: repeating-radial-gradient(circle at 30% 65%, transparent 0 22px, var(--line) 22px 23px), var(--snow);
}
.embed-consent > * { max-width: 26rem; }
.embed-consent h2 { font-size: var(--step-2); }
.embed-consent p { color: var(--slate); }
.embed-consent > h2, .embed-consent > p, .embed-consent > label { background: var(--snow); box-shadow: 0 0 0 0.6rem var(--snow); }
.embed-frame iframe { display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.embed-forget { margin-top: 0.75rem; font-size: var(--step--1); color: var(--scree); }
.link-button { padding: 0; border: 0; background: none; color: var(--lake); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.link-button:hover { color: var(--lake-hover); text-decoration-thickness: 2px; }

/* ---------- photos (free licences, Wikimedia Commons) ---------- */
/* Wide: the full width of the page, straight above the facts band, like the picture on a trail board. */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo--wide { height: clamp(15rem, 36vw, 34rem); }
.photo--wide img { object-position: 50% 35%; }  /* summits sit in the upper part of most photos */
.photo--card { margin: -1rem 0 0.35rem; background: none; }
.photo--card img { aspect-ratio: 3 / 2; height: auto; background: var(--line); }
.data-table:is(.spots, .credits) td { vertical-align: middle; }
.spot-cell { display: inline-flex; align-items: center; gap: 0.75rem; }
.thumb { flex: none; width: 4rem; height: 3rem; border-radius: 3px; object-fit: cover; background: var(--line); }
.thumb--none { display: inline-block; border: 1px solid var(--line); background: repeating-radial-gradient(circle at 70% 40%, transparent 0 6px, var(--line) 6px 7px), var(--snow); }

/* ---------- map ---------- */
.map-page { display: grid; gap: 1rem; }
.map-shell { position: relative; height: min(72vh, 48rem); min-height: 26rem; border: 1px solid var(--line); background: var(--snow); }
.map { position: absolute; inset: 0; background: var(--snow); }
.map-consent {
  position: absolute; inset: 0; z-index: 500; display: grid; place-content: center; gap: 1rem; padding: 2rem var(--gutter);
  background: repeating-radial-gradient(circle at 70% 40%, transparent 0 22px, var(--line) 22px 23px), var(--snow);
}
.map-consent > * { max-width: 30rem; }
.map-consent h2 { font-size: var(--step-2); }
.map-consent p { color: var(--slate); }
.map-consent > h2, .map-consent > p, .map-consent > label { background: var(--snow); box-shadow: 0 0 0 0.6rem var(--snow); }
.map-noscript { padding: 2rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; }
.check--block { padding-block: 0.25rem; }
input[type="checkbox"], input[type="radio"] { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.22rem 0 0; accent-color: var(--lake); }

/* MapLibre: the 3D map (static/js/map.js) */
.map .maplibregl-canvas { outline: none; }
.map .maplibregl-canvas:focus-visible { outline: 3px solid var(--lake); outline-offset: -3px; }
.maplibregl-map { font-family: var(--font-body); }
.maplibregl-popup-content { padding: 0.9rem 1rem 0.8rem; background: var(--snow); color: var(--granite); font-size: 0.9375rem; line-height: 1.45; border-radius: 2px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--snow); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--snow); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--snow); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--snow); }
.maplibregl-popup-close-button { width: 2rem; height: 2rem; font-size: 1.3rem; color: var(--slate); }
.maplibregl-popup-content a { color: var(--lake); }
.popup h3 { padding-right: 1.5rem; font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.popup-meta { margin-top: 0.15rem; font-size: var(--step--1); color: var(--scree); }
.popup-page { margin-top: 0.4rem; font-weight: 600; }
.popup ul { max-height: 14rem; margin-top: 0.6rem; padding: 0; overflow-y: auto; list-style: none; border-top: 1px solid var(--line); }
.popup li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.popup li a { font-weight: 600; }
.popup-when { color: var(--scree); font-size: var(--step--1); }
.map-ctrl { display: flex; flex-direction: column; }
.map-ctrl-btn.map-ctrl-btn { width: auto; min-width: 29px; height: auto; min-height: 29px; padding: 0.3rem 0.5rem; font: 700 0.8125rem/1 var(--font-body); color: #15211e; }
.map-ctrl-btn[aria-pressed="true"] { background: #f4c21b; }
.map-ctrl-btn + .map-ctrl-btn { border-top: 1px solid #ddd; }
.map-fly { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem 0.75rem; }
.map-fly label { flex-basis: 100%; font-weight: 600; }
.map-fly input { flex: 1 1 14rem; max-width: 26rem; }
@media all {
  .map .maplibregl-canvas { filter: brightness(0.86) contrast(1.05); }
}

/* ---------- regions ---------- */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 0; list-style: none; }
.guide { display: grid; gap: 0.9rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--granite); }
.guide :is(h2, h3) { font-size: var(--step-4); }
.guide :is(h2, h3) a { color: inherit; text-decoration: none; }
.guide :is(h2, h3) a:hover { color: var(--lake); }
.guide > p:not(.guide-facts):not(.guide-spots) { color: var(--slate); }
.guide-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 600; }
.guide-spots { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.guide-spots span, .guide-spots a { padding: 0.1rem 0.5rem; border: 1px solid var(--line-strong); border-radius: 3px; font-size: var(--step--1); color: var(--slate); }
.guide-spots a { color: var(--lake); font-weight: 600; text-decoration: none; }
.guide-spots a:hover { border-color: var(--lake); background: var(--lake-soft); color: var(--lake-hover); }
.guides-more { padding-top: 2.25rem; color: var(--slate); }
@media (max-width: 899px) { .guides { grid-template-columns: minmax(0, 1fr); } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.crumbs li + li::before { content: "/"; padding: 0 0.5rem; color: var(--scree); }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 52rem; margin-top: 0.4rem; border-top: 2px solid var(--granite); }
.facts div { display: grid; gap: 0.1rem; align-content: start; padding: 0.7rem 1rem 0 0; }
.facts dt { font-size: var(--step--1); color: var(--scree); }
.facts dd { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; line-height: 1.05; }
@media (max-width: 599px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.75rem; } }
.band--facts .band-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; padding-block: 1.5rem 2.5rem; }
.band .facts { max-width: none; margin-top: 0; border-top-color: var(--band-ink); }
.band .facts dt { color: var(--band-muted); }
@media (max-width: 799px) { .band--facts .band-inner { grid-template-columns: minmax(0, 1fr); } }
.region-makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 2.5rem; padding: 0; list-style: none; }
.region-makers li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.1rem 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.rm-handle { font-weight: 600; overflow-wrap: anywhere; }
.rm-here { text-align: right; white-space: nowrap; }
.rm-meta { grid-column: 1 / -1; font-size: var(--step--1); color: var(--scree); }
.rm-meta .badge { margin-left: 0.4rem; }
.spots td:first-child a { font-weight: 600; }
.pano-table th { white-space: normal; }
.next-grid { padding-top: 0.25rem; }

/* ---------- spots: the spot guide by range and one page per spot ---------- */
.spot-meta { display: flex; flex-wrap: wrap; font-size: var(--step-1); font-weight: 600; color: var(--slate); }
.spot-meta span + span::before { content: "\00b7"; margin: 0 0.6rem; color: var(--scree); }
.spot-alt { margin-top: -0.5rem; color: var(--scree); }
.spots-jump ul { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.spots-jump a { display: inline-block; padding: 0.15rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 3px; font-weight: 600; text-decoration: none; }
.spots-jump a:hover { border-color: var(--lake); background: var(--lake-soft); }
.spots-jump .n { margin-left: 0.2rem; font-weight: 400; color: var(--scree); font-variant-numeric: tabular-nums; }
@media (max-width: 519px) { .data-table .kind { display: none; } }  /* the type is on the spot's own page */

/* ---------- claim form ---------- */
.claim-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 2.5rem 4rem; align-items: start; }
@media (max-width: 899px) { .claim-layout { grid-template-columns: minmax(0, 1fr); } }
.claim-main { display: grid; gap: 1.5rem; max-width: 42rem; }
.demo-notice { padding: 0.75rem 1rem; border-left: 4px solid var(--sign); background: var(--snow); font-weight: 600; max-width: 42rem; }
.claim-form { display: grid; gap: 1.9rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field > legend { margin-bottom: 0.35rem; padding: 0; }
.choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--snow); cursor: pointer;
}
.choice + .choice { margin-top: 0.5rem; }
.choice:has(input:checked) { border-color: var(--lake); box-shadow: inset 0 0 0 1px var(--lake); }
.choice > span { display: grid; gap: 0.1rem; }
.hint { font-size: var(--step--1); color: var(--scree); }
.req { font-weight: 400; font-size: var(--step--1); color: var(--scree); }
.input-prefix { display: flex; }
.input-prefix span {
  display: grid; place-items: center; padding: 0 0.75rem; border: 1px solid var(--line-strong); border-right: 0;
  border-radius: 4px 0 0 4px; background: var(--limestone); color: var(--scree); font-weight: 600;
}
.input-prefix input { border-radius: 0 4px 4px 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.45rem 1.25rem; margin-top: 0.35rem; }
.consent { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); background: var(--snow); }
.error { font-size: var(--step--1); font-weight: 600; color: var(--error); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error-summary { display: grid; gap: 0.5rem; padding: 1rem 1.25rem; border: 2px solid var(--error); border-radius: 4px; background: var(--snow); }
.error-summary p { font-weight: 600; }
.error-summary ul { padding-left: 1.2rem; }
.claim-result { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--lake); background: var(--snow); }
.claim-result h2 { font-size: var(--step-2); }
.claim-aside { display: grid; gap: 0.9rem; padding: 1.5rem; background: var(--snow); border: 1px solid var(--line); }
.claim-aside h2 { font-size: var(--step-1); font-weight: 700; }
.claim-aside h2 + ul { margin-bottom: 0.5rem; }
.claim-aside ul { display: grid; gap: 0.5rem; padding-left: 1.1rem; color: var(--slate); font-size: 0.9375rem; }

/* ---------- partners: formats, range boards, brand bars, sponsor slot ---------- */
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
#formats, #proof, #contact, .board { scroll-margin-top: 1rem; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 0; list-style: none; }
.offer { display: flex; flex-direction: column; gap: 0.65rem; padding: 1.25rem 1.25rem 1.1rem; background: var(--snow); border: 1px solid var(--line); border-top: 3px solid var(--granite); }
.offer-for, .case-kind { font-size: var(--step--1); font-weight: 600; color: var(--scree); }
.offer h3 { font-size: var(--step-3); font-weight: 700; line-height: 1; }
.offer-scale { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.15; }
.offer-text { color: var(--slate); }
.offer-list { display: grid; gap: 0.4rem; padding-left: 1.1rem; color: var(--slate); font-size: 0.9375rem; }
.offer-price { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--line); font-weight: 600; }
.offer-price span { font-size: var(--step--1); font-weight: 400; color: var(--scree); }
.creator-share { max-width: 40em; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
@media (max-width: 899px) { .offers { grid-template-columns: minmax(0, 1fr); } }

.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; padding: 0; list-style: none; }
.case { display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 1.25rem; background: var(--snow); border: 1px solid var(--line); border-top: 3px solid var(--lake); }
.case > :not(.case-photo) { margin-inline: 1.25rem; }
.case > :first-child:not(.case-photo) { margin-top: 1.1rem; }
.case-photo { margin: 0 0 0.4rem; }
.case-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case-photo figcaption { padding: 0.3rem 1.25rem 0; font-size: 0.8125rem; color: var(--scree); }
.case-kind { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.case h3 { font-size: var(--step-2); font-weight: 700; }
.case-partner { font-weight: 600; }
.case-text { color: var(--slate); }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.case-facts div:first-child { grid-column: 1 / -1; }
.case-facts dt { font-size: var(--step--1); color: var(--scree); }
.case-facts dd { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; line-height: 1.1; }

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; padding: 0; list-style: none; }
.reasons li { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 2px solid var(--granite); }
.reasons p { color: var(--slate); }
@media (max-width: 799px) { .reasons { grid-template-columns: minmax(0, 1fr); } }

/* Range boards: each opens with its own data ridge (collabs per week) rising out of a strip of ground, like the panorama */
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 1099px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .boards { grid-template-columns: minmax(0, 1fr); } }
.board { display: grid; background: var(--snow); border: 1px solid var(--line); }
.board-ridge { width: 100%; height: 4.5rem; }
.board-ground { display: grid; gap: 0.15rem; margin-top: -1px; padding: 0.1rem 1.25rem 0.9rem; background: var(--ridge-d4); color: var(--band-ink); }
.board-ground h3 { font-size: var(--step-3); font-weight: 700; line-height: 1; }
.board-figures { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; color: var(--band-muted); font-weight: 600; }
.board-body { display: grid; gap: 1.4rem; padding: 1.1rem 1.25rem 1.25rem; }
.board h4 { margin: 0 0 0.5rem; font-size: var(--step--1); font-weight: 600; color: var(--scree); }
.board-lead { margin-bottom: 0.5rem; font-size: 0.9375rem; color: var(--slate); }
.board .muted { font-size: 0.9375rem; }
.board-list { padding: 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.board-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.board-list .name { font-weight: 600; overflow-wrap: break-word; }
.board-list .count { font-size: var(--step--1); color: var(--scree); white-space: nowrap; }
.board-sign { padding: 0; list-style: none; }
.board-sign .sign-plate { min-height: 2.9rem; }
.board-sign .sign-dest { font-size: 1.35rem; }
.board-sign .sign-val { font-size: 1.05rem; }

/* Bars per dataviz spec: one series, one colour from the ridge ramp (>= 3:1 on the surface and on the track in both
   modes, checked with the dataviz validator's contrast()), 4px rounded data end, square at the baseline, values printed */
.shares, .barlist { --bar: var(--ridge-d3); }
@media all { .shares, .barlist { --bar: var(--ridge-d1); } }
.shares { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.shares th { width: 46%; padding: 0.22rem 0.6rem 0.22rem 0; font-weight: 400; text-align: left; }
.shares th::first-letter, .lang-list > span::first-letter { text-transform: uppercase; }
.shares td { padding: 0.22rem 0; }
.shares td.r { width: 3.5rem; padding-left: 0.6rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }
.shares .is-other th { color: var(--scree); }
.share-track { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--line); }
.share-bar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--bar); }
.sub-head { margin-top: 1.25rem; font-size: var(--step-2); font-weight: 700; }
.more-ranges th { white-space: normal; }
@media (max-width: 599px) { .more-ranges th, .more-ranges td { padding-right: 0.7rem; } }
.lang-list { display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.lang-list > span { display: inline-block; white-space: nowrap; }
.lang-list .n { color: var(--scree); font-variant-numeric: tabular-nums; }
.seen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; align-items: start; }
@media (max-width: 899px) { .seen-grid { grid-template-columns: minmax(0, 1fr); } }
.barlist { display: grid; gap: 0.9rem; margin: 0; }
.barlist figcaption { display: grid; gap: 0.25rem; }
.barlist h3 { font-size: var(--step-2); font-weight: 700; }
.barlist table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.barlist th, .barlist td { padding: 0.32rem 0; text-align: left; vertical-align: middle; }
.barlist thead th { padding-bottom: 0.45rem; border-bottom: 1px solid var(--line-strong); font-size: var(--step--1); font-weight: 600; color: var(--scree); }
.barlist tbody th { width: 38%; padding-right: 0.75rem; font-weight: 600; overflow-wrap: break-word; }
.barlist .r { width: 4.75rem; padding-left: 0.75rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }
.barlist tbody tr:hover { background: var(--ridge-fill); }
.hbar-cell { display: flex; align-items: center; gap: 0.45rem; }
.hbar { flex: none; width: calc((100% - 2.75rem) * var(--f)); min-width: 2px; height: 12px; border-radius: 0 4px 4px 0; background: var(--bar); }
.hbar-val { font-variant-numeric: tabular-nums; }

.band--how { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 799px) { .steps--4 { grid-template-columns: minmax(0, 1fr); } }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 2rem; padding: 0; list-style: none; }
.ways li { display: grid; gap: 0.4rem; align-content: start; padding-top: 0.75rem; border-top: 1px solid var(--line-strong); }
.ways p { font-size: 0.9375rem; color: var(--slate); }
@media (max-width: 1099px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 3rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--snow); border: 1px solid var(--line); border-top: 3px solid var(--lake);
}
.contact-text { display: grid; gap: 0.6rem; }
.contact-text h2 { font-size: var(--step-3); }
.contact-text p { max-width: 36em; color: var(--slate); }
@media (max-width: 719px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }

/* Paid slot ("Map presented by …"), always with its ad label */
.sponsor { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; justify-self: start; padding: 0.5rem 0.8rem; border: 1px solid var(--line); background: var(--snow); font-size: var(--step--1); }
.sponsor-ad { padding: 0 0.4rem; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--scree); font-weight: 600; }
.sponsor-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--granite); font-weight: 600; text-decoration: none; }
.sponsor-link:hover { color: var(--lake); text-decoration: underline; }
.sponsor-link img { width: auto; height: 1.75rem; }

/* ---------- privacy & 404 ---------- */
.prose-page { display: grid; gap: 2rem; max-width: 46rem; }
.prose-page section { display: grid; gap: 0.5rem; }
.prose-page h2 { font-size: var(--step-2); }
.prose-page p { color: var(--slate); }
.notfound { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: center; gap: 2.5rem 4rem; }
@media (max-width: 799px) { .notfound { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(4.5rem, 3rem + 5vw, 8rem); padding-block: 3rem; background: var(--footer-bg); color: var(--footer-ink); font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.4fr); gap: 2rem 3rem; }
.footer-about, .footer-notes { display: grid; gap: 0.75rem; align-content: start; }
.footer-logo img { display: block; width: 11.25rem; height: auto; }
.footer-links { display: grid; gap: 0.35rem; padding: 0; list-style: none; }
@media (max-width: 799px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- about and contact ---------- */
.about-body { display: grid; gap: 3rem; padding-block: 3rem 1rem; }
.about-text { display: grid; gap: 2.5rem; }
.about-text section { display: grid; gap: 0.9rem; }
.about-logo { margin: 0; max-width: 22rem; }
.about-logo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.about-logo figcaption { padding-top: 0.6rem; font-size: var(--step--1); color: var(--scree); }
.about-logo figcaption strong { color: var(--granite); }
@media (min-width: 900px) { .about-body { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.contact-body { display: grid; gap: 1.5rem; padding-bottom: 1rem; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; padding: 0; list-style: none; }
.contact-card { display: grid; gap: 0.8rem; align-content: start; padding: 1.5rem; background: var(--snow); border: 1px solid var(--line); border-top: 3px solid var(--lake); }
.contact-card h2 { font-size: var(--step-2); }
.contact-card p { color: var(--slate); }
.contact-email { font-weight: 600; }
.contact-faq { display: grid; gap: 1rem; padding-top: 1.5rem; }
.contact-faq dl { display: grid; gap: 1.25rem; max-width: 46rem; margin: 0; }
.contact-faq dt { font-weight: 600; }
.contact-faq dd { margin: 0.3rem 0 0; color: var(--slate); }

/* ============================================================
   Home: the trailhead at dusk
   ============================================================ */
/* The hero and the trail band are always at night: they take the dark tokens (and the dark depth ramp, validated on
   this surface) whatever the theme of the visitor. */
.home-night, .trail-night {
  --night: #0c1412;
  --limestone: var(--night); --snow: #16201d; --granite: #e6ece9; --slate: #b3bfba; --scree: #93a09b; --line: #27332f;
  --lake: #5cb8a9; --lake-hover: #84cdc1; --on-lake: #0c1714; --blaze: #e0414f; --sign: #f4c21b;
  --ridge-d1: #6d9086; --ridge-d2: #587a71; --ridge-d3: #46665e; --ridge-d4: #36554d; --band-ink: #e6ece9; --band-muted: #b6c6c0;
  background: var(--night); color: var(--granite);
}
.hero--home { isolation: isolate; }
.hero--home .hero-photo { position: absolute; inset: 0; z-index: -1; margin: 0; background: var(--night); }
.hero--home .hero-photo img { object-position: 64% 38%; }
.hero--home .hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 20, 18, 0.94) 0%, rgba(12, 20, 18, 0.8) 34%, rgba(12, 20, 18, 0.25) 66%, rgba(12, 20, 18, 0.45) 100%),
    linear-gradient(180deg, rgba(12, 20, 18, 0.6) 0%, rgba(12, 20, 18, 0) 22%, rgba(12, 20, 18, 0) 50%, var(--night) 88%);
}
.hero--home .hero-grid { padding-top: clamp(3.5rem, 2rem + 7vw, 9rem); align-items: end; }
.hero--home h1 {
  max-width: 10.5ch; color: #fff; font-size: clamp(3.3rem, 1rem + 7.6vw, 9.25rem); line-height: 0.86; letter-spacing: -0.018em;
}
.hero--home .lede { max-width: 33em; margin-top: 1.9rem; color: rgba(238, 243, 241, 0.86); }
.hero--home .btn { background: var(--lake); color: var(--on-lake); }
.hero--home .btn:hover { background: var(--lake-hover); color: var(--on-lake); }
.hero--home .text-link { color: #fff; }
.hero--home .signpost { justify-self: end; }
.hero--home .pano--home { margin-top: clamp(-7rem, -6vw, -2rem); }
.hero--home .pano-art { height: clamp(200px, 26vw, 400px); }
/* one orchestrated arrival: the title, then the ridges rise (pano rule above), then the plates are mounted */
@media (prefers-reduced-motion: no-preference) {
  .hero--home h1, .hero--home .lede, .hero--home .hero-actions { animation: home-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero--home .lede { animation-delay: 120ms; }
  .hero--home .hero-actions { animation-delay: 220ms; }
  .hero--home .sign-here, .hero--home .sign { animation: home-plate 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 450ms; }
  .hero--home .sign:nth-child(1) { animation-delay: 560ms; }
  .hero--home .sign:nth-child(2) { animation-delay: 650ms; }
  .hero--home .sign:nth-child(3) { animation-delay: 740ms; }
  .hero--home .sign:nth-child(4) { animation-delay: 830ms; }
  .hero--home .sign:nth-child(5) { animation-delay: 920ms; }
  @keyframes home-rise { from { transform: translateY(1.25rem); } }  /* movement only: text stays readable if animations never run */
  @keyframes home-plate { from { transform: translateX(-1.5rem); } }
}

/* The trail: three waypoints painted like the red-white-red blazes, joined by the path */
.band--trail h2 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.steps--trail { position: relative; gap: 2.5rem 3.5rem; }
.steps--trail::before {
  content: ""; position: absolute; left: 1.5rem; right: 0; top: 2.25rem; border-top: 2px dashed rgba(230, 236, 233, 0.32);
}
.steps--trail li { position: relative; padding-top: 0; border-top: 0; }
.steps--trail li::before { content: none; }
.steps--trail h3 { margin-top: 0.4rem; font-size: var(--step-2); font-weight: 700; }
.waypoint {
  position: relative; display: grid; place-items: center; width: 3rem; height: 4.5rem; margin-bottom: 0.6rem; border-radius: 3px;
  background: linear-gradient(#c8102e 0 33.4%, #fff 33.4% 66.6%, #c8102e 66.6%); box-shadow: 0 0 0 5px var(--ridge-d4);
}
.waypoint span { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1; color: #15211e; }
@media (max-width: 799px) {
  .steps--trail::before { left: 1.5rem; right: auto; top: 0.5rem; bottom: 0.5rem; border-top: 0; border-left: 2px dashed rgba(230, 236, 233, 0.32); }
  .steps--trail li { min-height: 4.5rem; padding-left: 4.75rem; }
  .waypoint { position: absolute; left: 0; top: 0; margin: 0; }
  .steps--trail h3 { margin-top: 0; }
}

/* Section titles on the home page carry more weight */
.home-sec .sec-head h2 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.home-sec .sec-head .blaze { width: 1.1rem; height: 1.7rem; }

/* Region guides as postcards: the photo, with the signpost plate that leads there */
.region-cards {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(15.5rem, 1fr)) auto;
  gap: 1rem; margin: 0.75rem 0 0; padding: 0; list-style: none;
}
.region-card--lead { grid-row: span 2; }
.region-card--wide { grid-column: 1 / -1; }  /* the worldwide guide: a panorama across the whole width */
.region-card--wide a { min-height: clamp(14rem, 10rem + 12vw, 22rem); }
.region-card--wide .region-card-photo img { object-position: 50% 30%; }
.region-card--wide .sign-dest { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.4rem); }
.region-card a { position: relative; display: block; height: 100%; min-height: 15.5rem; overflow: hidden; border-radius: 4px; color: inherit; text-decoration: none; }
.region-card .region-card-photo { position: absolute; inset: 0; margin: 0; }
.region-card .region-card-photo img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.region-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 18, 0) 40%, rgba(12, 20, 18, 0.7)); }
.region-card a:hover .region-card-photo img { transform: scale(1.045); }
.region-card a:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; }
.region-card-plate { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 1; display: grid; justify-items: start; gap: 0.55rem; }
.region-card .sign-plate { min-width: min(100%, 19rem); color: var(--sign-ink); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.region-card--lead .sign-plate { min-width: min(100%, 26rem); min-height: 4.25rem; }
.region-card--lead .sign-dest { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.7rem); }
.region-card a:hover .sign-plate { transform: translateX(0.4rem); }
.region-card-sub { padding-left: 0.2rem; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
@media (max-width: 799px) {
  .region-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .region-card--lead { grid-row: auto; }
  .region-card a { min-height: 14rem; }
  .region-card--lead a { min-height: 19rem; }
}

/* The levels as an ascent: an elevation profile with a pin per level, the summit on the right */
.ascent { display: grid; margin-top: 0.75rem; }
.ascent-profile { position: relative; height: clamp(8rem, 5rem + 8vw, 13rem); }
.ascent-profile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ascent-fill { fill: var(--ridge-fill); }
.ascent-line { fill: none; stroke: var(--granite); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ascent-pin { position: absolute; display: grid; justify-items: center; gap: 0.35rem; transform: translate(-50%, calc(-100% + 0.55rem)); }
.ascent-pin b { font-family: var(--font-display); font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.6rem); font-weight: 700; line-height: 0.9; }
.ascent-pin::after {
  content: ""; width: 0.75rem; height: 1.1rem; border-radius: 1px;
  background: linear-gradient(#c8102e 0 33.4%, #fff 33.4% 66.6%, #c8102e 66.6%); box-shadow: 0 0 0 1px rgba(21, 33, 30, 0.25);
}
.ascent-pin--summit b { color: var(--lake); }
.tiers--ascent { align-items: start; gap: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--granite); }
.tiers--ascent .tier { min-height: 0; padding: 0; border: 0; background: none; text-align: center; justify-items: center; }
.tiers--ascent .tier + .tier { margin: 0; border: 0; }
.tiers--ascent .tier p { max-width: 24em; }
@media (max-width: 799px) {
  .tiers--ascent { gap: 2rem; }
  .tiers--ascent .tier { text-align: left; justify-items: start; }
}

/* Brands: a night band with contour lines, and the claim card in the colour of action */
.home-brands {
  margin-top: clamp(4.5rem, 3rem + 5vw, 8rem); color: #e6ece9;
  background: repeating-radial-gradient(circle at 82% 28%, transparent 0 26px, rgba(230, 236, 233, 0.055) 26px 27px), #0c1412;
}
.home-brands-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 2.5rem 4.5rem;
  padding-block: clamp(3.5rem, 2.5rem + 4.5vw, 7rem);
}
.home-brands-main { display: grid; gap: 1.25rem; }
.home-brands h2 { max-width: 13ch; color: #fff; font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.75rem); line-height: 0.92; }
.home-brands-main p { max-width: 36em; color: #b6c6c0; font-size: var(--step-1); line-height: 1.5; }
.home-brands-main .link-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: var(--step-0); }
.home-brands a:not(.btn) { color: #fff; }
.home-brands a:not(.btn):hover { color: #84cdc1; }
.claim-card--strong { gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 0; border-radius: 4px; background: #1b6a60; color: #fff; }
.claim-card--strong h2 { max-width: none; font-size: var(--step-3); line-height: 1; }
.claim-card--strong p { color: rgba(255, 255, 255, 0.88); }
.claim-card--strong .btn { background: #fff; color: #134f47; }
.claim-card--strong .btn:hover { background: #dfedea; color: #134f47; }
@media (max-width: 799px) { .home-brands-grid { grid-template-columns: minmax(0, 1fr); } }
@media all { .home-brands { border-block: 1px solid rgba(230, 236, 233, 0.09); } }

/* Home: the header is part of the night above the range */
.site-header--night {
  --granite: #e6ece9; --slate: #b3bfba; --line: #27332f; --lake: #5cb8a9; --lake-hover: #84cdc1; --on-lake: #0c1714; --blaze: #e0414f;
  background: #0c1412; border-bottom-color: rgba(230, 236, 233, 0.08); color: var(--granite);
}

/* ---------- creator profile ---------- */
.profile-head h1 { overflow-wrap: anywhere; }
.profile-handle { display: block; margin-top: 0.3rem; font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--scree); }
.profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.6rem; }
.badge--strong { background: var(--granite); color: var(--limestone); }
.badge--quiet { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--claimed { background: var(--sign); color: var(--sign-ink); }
.profile-based { font-size: var(--step--1); font-weight: 600; color: var(--slate); }
.profile-bio { max-width: 40em; font-size: var(--step-1); line-height: 1.5; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.profile-links-title { font-size: var(--step--1); color: var(--scree); }
.profile-links ul { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.profile-links a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; text-decoration: none; }
.profile-links a:hover { border-color: var(--lake); background: var(--lake-soft); }
.profile-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: end; }
.band .profile-ridge { cursor: default; }
.band .profile-ridge .ridge-base { stroke: rgba(255, 255, 255, 0.3); }
.band .profile-ridge .ridge-area { fill: rgba(255, 255, 255, 0.12); }
.band .profile-ridge .ridge-line { stroke: var(--band-ink); }
.band .profile-ridge .ridge-peak { fill: var(--sign); stroke: var(--ridge-d4); }
@media (max-width: 799px) { .profile-facts { grid-template-columns: minmax(0, 1fr); } }
.profile-places { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 1.5rem; }
.map-shell--profile { height: min(60vh, 30rem); min-height: 20rem; }
.profile-places-list { max-height: 30rem; overflow-y: auto; }
@media (max-width: 899px) {
  .profile-places { grid-template-columns: minmax(0, 1fr); }
  .profile-places-list { max-height: none; }
}
.map-consent h3 { font-size: var(--step-2); }
.map-consent > h3, .embed-consent > h3 { background: var(--snow); box-shadow: 0 0 0 0.6rem var(--snow); }
.embed-consent h3 { font-size: var(--step-2); }
.profile-featured { display: grid; grid-template-columns: minmax(0, 33.75rem) minmax(0, 1fr); align-items: start; gap: 1.5rem 2.5rem; }
.featured-list { display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.featured-list a {
  display: grid; gap: 0.1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--sign);
  background: var(--snow); color: var(--granite); text-decoration: none;
}
.featured-list a:hover { border-color: var(--lake); border-left-color: var(--sign); }
.featured-list a span { font-size: var(--step--1); color: var(--slate); }
@media (max-width: 899px) { .profile-featured { grid-template-columns: minmax(0, 1fr); } }

/* claim page: the personal invitation */
.invite-note { margin-bottom: 1.25rem; padding: 0.8rem 1rem; border-left: 3px solid var(--sign); background: var(--snow); color: var(--slate); }
.invite-note--ok { border-left-color: var(--lake); color: var(--granite); font-weight: 600; }

/* ---------- home: the ranges in 3D (static/js/relief.js) ---------- */
.relief-sec { padding-block: clamp(3rem, 2rem + 4vw, 6rem); background: radial-gradient(120% 80% at 70% 0%, #17302b 0%, var(--night) 60%); }
.relief-inner { display: grid; gap: 1.5rem; }
.relief-head { display: grid; gap: 0.9rem; max-width: 46rem; }
.relief-head h2 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.relief-intro { color: var(--slate); font-size: 1.125rem; }
.relief { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.relief-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.relief-tabs button {
  display: flex; align-items: baseline; gap: 0.6rem; min-height: 2.75rem; padding: 0.45rem 1.6rem 0.4rem 0.8rem; border: 0;
  background: #1c2a26; color: var(--granite); font-family: var(--font-display); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%); transition: transform 0.18s ease-out;
}
.relief-tabs button:hover { transform: translateX(0.2rem); }
.relief-tabs button[aria-selected="true"] { background: var(--sign); color: var(--sign-ink); }
.relief-tabs button:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; }
.relief-tab-name { font-size: 1.3rem; font-weight: 700; }
.relief-tab-val { font-size: 1rem; font-weight: 600; opacity: 0.8; }
.relief-stage { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 18rem; overflow: hidden; } /* width first: with min-height alone the ratio would widen it past the screen on phones */
.relief-canvas {
  display: block; width: 100%; height: 100%; touch-action: pan-y;
  /* the range fades into the night at its edges instead of ending as a cut-out block */
  -webkit-mask: radial-gradient(62% 68% at 50% 50%, #000 50%, transparent 100%); mask: radial-gradient(62% 68% at 50% 50%, #000 50%, transparent 100%);
}
.relief-stage:not(.relief-stage--live) { display: none; }
.relief-label {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; margin: -4.4rem 0 0 -0.4rem; padding: 0.35rem 1.4rem 0.35rem 0.7rem;
  background: var(--sign); color: var(--sign-ink); font-family: var(--font-display); line-height: 1.1; text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 50%, calc(100% - 0.8rem) 100%, 0 100%); pointer-events: auto;
}
.relief-label[hidden] { display: none; }
.relief-label:hover { color: var(--sign-ink); text-decoration: none; }
.relief-label-name { font-size: 1.2rem; font-weight: 700; }
.relief-label-val { font-size: 0.95rem; font-weight: 600; }
.relief-hint { position: absolute; left: 0; bottom: 0.75rem; margin: 0; color: var(--band-muted); font-size: 0.875rem; pointer-events: none; }
.relief-lists ol { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0.5rem 0 0; padding: 0; list-style: none; counter-reset: spot; }
.relief-lists li { counter-increment: spot; font-size: 0.9375rem; }
.relief-lists li span { color: var(--scree); }
.relief-list-title { margin: 0; color: var(--slate); font-weight: 600; }
.relief-credit { margin: 0; color: var(--scree); font-size: 0.8125rem; }
@media (max-width: 719px) {
  .relief-stage { aspect-ratio: 4 / 3; }
  .relief-tab-name { font-size: 1.15rem; }
}

/* ---------- route pages (templates/trail.html, trails.html) ---------- */
.trail-night { padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); background: radial-gradient(110% 70% at 80% 0%, #17302b 0%, var(--night) 55%); }
.trail-head h1 { font-size: clamp(2.75rem, 1.8rem + 4vw, 5.5rem); line-height: 0.95; }
.trail-kicker { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--sign); }
.trail-kicker a { color: inherit; }
.trail-sec { display: grid; gap: 1.25rem; }
.trail-profile { margin: 0; }
.trail-profile svg { display: block; width: 100%; height: auto; overflow: visible; }
.tp-area { fill: rgba(92, 184, 169, 0.16); }
.tp-line { fill: none; stroke: #f3f1dc; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tp-stage line { stroke: rgba(230, 236, 233, 0.35); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.tp-stage circle { fill: #f3f1dc; stroke: var(--night); stroke-width: 2; }
.tp-pole line { stroke: #f4c21b; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tp-pole rect { fill: #f4c21b; }
.trail-profile figcaption { margin-top: 0.75rem; color: var(--slate); font-size: 0.9375rem; }
.trail-stages td:first-child { font-weight: 600; }
.map-shell--trail { height: min(70vh, 40rem); min-height: 22rem; border-color: var(--line); }
.trail-fly { position: absolute; left: 1rem; bottom: 2.75rem; z-index: 2; }
.trail-fly[aria-pressed="true"] { background: var(--blaze); }
.trail-tip .maplibregl-popup-content { padding: 0.35rem 0.6rem; font-weight: 600; }
.trail-spots, .trail-more { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.trail-spots li, .trail-more li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
.trail-spots li > span:last-child, .trail-more li span { color: var(--scree); }
.trail-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.trail-card a { display: grid; height: 100%; color: var(--granite); text-decoration: none; background: #15211e; transition: transform 0.18s ease-out; }
.trail-card a:hover { transform: translateY(-3px); }
.trail-card a:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; }
.trail-spark { display: block; width: 100%; height: 7.5rem; background: linear-gradient(#1d3a33, #15211e); }
.trail-spark-area { fill: rgba(243, 241, 220, 0.12); }
.trail-spark-line { fill: none; stroke: #f3f1dc; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trail-spark-pole { stroke: #f4c21b; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trail-card-body { display: grid; gap: 0.35rem; padding: 1rem 1.1rem 1.2rem; color: #e6ece9; }
.trail-card-range { color: #f4c21b; font-weight: 600; font-size: 0.875rem; }
.trail-card-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.05; }
.trail-card-facts { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; color: #b6c6c0; font-size: 0.9375rem; }

/* route photos */
.trail-hero { margin-top: 0.5rem; }
.trail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.trail-gallery .photo { margin: 0; aspect-ratio: 4 / 3; }
.trail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.trail-card a { position: relative; grid-template-rows: auto auto 1fr; }
.trail-card-photo { margin: 0; aspect-ratio: 16 / 9; }
.trail-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.trail-card-photo + .trail-spark { margin-top: -4.5rem; height: 4.5rem; position: relative; background: linear-gradient(transparent, rgba(21, 33, 30, 0.92) 70%); }

/* ---------- journal (templates/journal.html, article.html) ---------- */
.article-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.article-card a { display: grid; grid-template-rows: auto 1fr; height: 100%; color: var(--granite); text-decoration: none; background: var(--snow); border: 1px solid var(--line); transition: transform 0.18s ease-out; }
.article-card a:hover { transform: translateY(-3px); text-decoration: none; }
.article-card a:focus-visible { outline: 3px solid var(--lake); outline-offset: 3px; }
.article-card-photo { margin: 0; aspect-ratio: 16 / 9; }
.article-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { display: grid; align-content: start; gap: 0.4rem; padding: 1rem 1.1rem 1.25rem; }
.article-card-kicker { color: var(--blaze); font-weight: 600; font-size: 0.875rem; }
.article-card-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
.article-card-desc { color: var(--slate); font-size: 0.9375rem; }
.article-head h1 { max-width: 20ch; font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4.75rem); line-height: 0.98; }
.article-kicker { margin: 0; color: var(--blaze); font-weight: 600; }
.article-body { display: grid; gap: 1.5rem; max-width: 46rem; padding-block: 2.5rem 1rem; }
.article-list { display: grid; gap: 2.75rem; margin: 0; padding: 0; list-style: none; }
.article-item { display: grid; gap: 0.75rem; }
.article-item h2 { display: flex; align-items: baseline; gap: 0.75rem; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.05; }
.article-item h2 a { color: inherit; }
.article-rank { flex: none; display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.4rem; background: var(--sign); color: var(--sign-ink); font-size: 1.4rem; clip-path: polygon(0 0, calc(100% - 0.6rem) 0, 100% 50%, calc(100% - 0.6rem) 100%, 0 100%); padding-right: 0.9rem; }
.article-photo { margin: 0; aspect-ratio: 3 / 2; }
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; margin: 0; color: var(--slate); font-weight: 600; }
.article-meta span + span::before { content: " b7"; margin: 0 0.55rem; color: var(--scree); }
.article-routes { margin: 0; }
.month-chart { margin: 0; }
.month-chart svg { display: block; width: 100%; height: auto; }
.mc-bar { fill: var(--line-strong); }
.mc-bar--top { fill: var(--lake); }
.mc-label { fill: var(--slate); font-size: 13px; font-family: var(--font-body); }
.month-chart figcaption { margin-top: 0.5rem; color: var(--slate); font-size: 0.9375rem; }
.article-more h2 { font-size: 1.75rem; }
.article-more ul { display: grid; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
