/* ============================================================
   HOME, ABOUT, COACHING AND GYM PAGES — shared layout and parts:
   the price card, the dark boxes, the call to action, the coach profiles, the heroes
   and the home page cards. Everything sits in one centred column (--coach-w),
   so the text and cards share the same edges.
   Cards are stacked, one per row. One call to action per page.
   ============================================================ */

.coaching { --card-gap: 20px;   /* phones: the same as the side gutter and the space above the header */ --coach-w: 800px; max-width: var(--coach-w); margin: 0 auto; }


/* Space between the cards (price, call to action, FAQ…).
   Change it here to change it everywhere. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .coaching { --card-gap: 34px; } }

.c-section { margin-top: 72px; }
.c-heading {
  margin: 0; font-family: var(--display); font-weight: var(--bold); font-stretch: var(--stretch-section);
  text-transform: uppercase; font-size: var(--fs-heading);
}


/* ---- Prices ---- */
.price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.price-num { font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-title); font-size: 40px; line-height: 1; }


/* ---- Price card (Coaching and Gym; coaching.js, gym.js).
   Left half (top on phones): the heading, the sentence and the controls, on the card fill.
   Right half (bottom on phones): the result in a white box on the darker panel. ---- */
.calc {
  margin-top: var(--card-gap); display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); overflow: hidden;
}
.calc-price { display: flex; padding: 24px 20px; background: var(--panel); }
.calc[hidden] { display: none; }
.calc-side { display: grid; gap: 24px; align-content: start; padding: 32px 20px; }
.calc-sub { font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--grey-ink); margin: 0; }

/* Segmented buttons (Monthly / Upfront, Coached / Standalone) */
.seg { display: flex; padding: 3px; background: var(--inset); border-radius: 8px; box-shadow: var(--inner-shadow); }
.seg button {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; background: none; border: 0; border-radius: 5px; cursor: pointer;
  font: inherit; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--dark);
  transition: background .2s, color .2s;
}
.seg button:hover { color: var(--accent-ink); }
@media (max-width: 420px) { .seg button { letter-spacing: .02em; font-size: var(--fs-micro); } }
.seg button[aria-pressed="true"] { background: var(--dark); color: var(--light); }

/* Weeks: − [ 12 ] + (tap for a week at a time, hold to keep counting; the number can be typed too) */
.stepper { background: var(--inset); display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; border-radius: 8px; box-shadow: var(--inner-shadow); overflow: hidden; }
.stepper button {
  min-height: 52px; background: none; border: 0; cursor: pointer; color: var(--dark);
  font-family: var(--display); font-weight: var(--bold); font-size: 22px; transition: color .2s, background .2s;
}
.stepper button { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* quick taps and holds don't zoom or select */
.stepper button:hover { color: var(--accent-ink); background: var(--light-hover); }
.stepper button:disabled { color: var(--grey); cursor: default; background: none; }
.stepper input {
  width: 100%; min-width: 0; border: 0; border-left: 1px solid var(--card-rule); border-right: 1px solid var(--card-rule);
  background: var(--inset); color: var(--dark); text-align: center;
  font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-title); font-size: 26px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: -3px; }
/* Result */
.calc-result { flex: 1; padding: 24px; background: var(--light); border-radius: 8px; box-shadow: var(--inner-shadow); }
.calc-result .calc-sub { text-align: center; }
.calc-result .price { margin-top: 10px; justify-content: center; }   /* "Paid upfront" and the total centred at the top; the lines below stay full width */
/* CHF hangs off the left of the figure, so the figure itself is what's centred */
.calc-result .price-num { position: relative; }
.calc-result .price-num::before {
  content: "CHF"; position: absolute; right: 100%; bottom: 4.5px; margin-right: 8px;   /* on the figure's baseline */
  font-family: var(--text); font-weight: 400; font-stretch: 100%; font-size: var(--fs-label); letter-spacing: var(--track); line-height: 1;
}
.calc-lines { margin: 20px 0 0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--card-rule); font-size: var(--fs-small); }
.calc-lines div:last-child { border-bottom: 0; }
.calc-lines dt { color: var(--grey-ink); }
.calc-lines dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.calc-free dd { color: var(--accent-ink); font-weight: 700; }

/* Tablets: stacked like phones, with a little more padding */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .calc-side, .calc-price { padding: 32px; }
  .calc-result { padding: 28px; }
}
/* 1024px and wider: controls on the left, result on the right */
@media (min-width: 1024px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "side price";
    background: var(--card-sheen), linear-gradient(to right, var(--card) 0 50%, var(--panel) 50%); }
  .calc-side { grid-area: side; padding: 32px 24px 32px 32px; }
  .calc-price { grid-area: price; padding: 32px 32px 32px 24px; background: none; }
  .calc-result { display: flex; flex-direction: column; }
}


/* ---- Dark boxes (Coaching, Gym, About): a plain dark section like the heroes, one card gap below
   the card above. The heading a step below the card headings, "your way" in the accent; the text the
   usual paragraph size, all light. Desktop: heading left, centred beside the words on the right. ---- */
.c-section.approach { margin-top: var(--card-gap); }
.approach {
  display: grid; gap: 16px; padding: 36px 24px;
  background: var(--dark); color: var(--light); border-radius: var(--card-r); box-shadow: var(--card-shadow);   /* the same lift as the light cards */
}
.ap-title {
  margin: 0 0 0 -.05em; font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-card);
  text-transform: uppercase; font-size: 22px; line-height: 1.05;
}
.ap-body { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--light); }
.ap-title .accent { color: var(--accent); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .approach { padding: 44px 40px; }
  .ap-title { font-size: 24px; }
}
@media (min-width: 1024px) {
  .approach { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: center; padding: 48px; }
}

/* ---- Call to action ("Start with a video call", "Questions?"): a soft card, contents centred ---- */
.consult {
  margin-top: var(--card-gap); padding: 32px 24px; text-align: center;
  background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow);
}
.consult p { max-width: 560px; margin: 16px auto 28px; font-size: var(--fs-body); line-height: 1.6; }
.consult .c-heading { text-wrap: balance; }
/* Phones: left-aligned like everything above it, with the button spanning the card (label centred),
   like the buttons on the home cards. Desktop stays centred, where the two-column cards above balance it. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .consult { text-align: left; }
  .consult p { margin-inline: 0; }
  .consult .consult-btn { width: 100%; max-width: none; justify-content: center; }
}   /* two even lines on phones, not one word on its own */
.consult-btn { width: fit-content; margin: 0 auto; padding: 0 32px; justify-content: center; }   /* sized to its words, centred, no arrow */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .consult { padding: 44px 48px 48px; } }

/* ---- About page: coach profiles ---- */
/* Profiles (19 Nov 2026; replaced the tags and pages of 10 Nov): one soft card per coach, laid out as a short table.
   The pixel animation runs across the top as a banner (5:4 on phones, 216px tall on desktop), then the full name, then
   the rows (about.njk, `coaches`): Role, Education, Experience, Focus, Languages.
   Phones: each label is a small heading with a hairline under it, then its value, 24px between rows; the LinkedIn link
   sits at the foot of the card. Desktop: labels in a column on the left, hairlines between the rows, the LinkedIn link at
   the end of the name line. Education and Experience items have a small grey bullet; Focus is the only row with tags. */
.c-section.people { margin-top: var(--card-gap); }   /* one card gap below the hero, as on Coaching and Gym */
.people { display: grid; gap: var(--card-gap); }
.person {
  display: grid; overflow: hidden;   /* the card's round corners trim the picture */
  background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow);
}
/* the picture: the full width of the card. 5:4 on phones (18 Nov 2026; was square, which left too much sky and road), no taller than 360px (a phone on its side) */
.person-photo { display: block; aspect-ratio: 5 / 4; max-height: 360px; width: 100%; overflow: hidden; background: var(--panel); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the coach's pixel animation in place of a photo (about-riders.js): fills the slot and redraws to its size; tapping it pauses it too */
.person-photo[data-rider] { position: relative; }
.person-photo canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
/* tapping it (or Space / Enter when focused) pauses and restarts it; no button on the picture (9 Nov 2026) */
.person-photo canvas:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.person-body { padding: 28px 24px 32px; }
/* Arriving from a link (the home page's About card, #coach-1 / #coach-2): the whole card, picture first, lands one
   card gap below the top of the screen. On phones the floating header starts tucked away on arrival (site.js),
   so it doesn't cover the card; scrolling up brings it back. */
.person { scroll-margin-top: calc(var(--card-gap) + env(safe-area-inset-top)); }
/* the name line: the full name (card heading face, 22px) and, on desktop, the LinkedIn link at the far end.
   Optical alignment: the letters' built-in left spacing pushes the name about 1px right of the text below it. */
.person-head { display: flex; align-items: center; gap: 16px; }
.person-name {
  margin: 0 0 0 -.05em; font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-card);
  text-transform: uppercase; font-size: 22px; line-height: 1.05;
}
/* LinkedIn: small grey capitals and a small arrow, no underline; dark when pointed at. Opens in a new tab. */
.person-link {
  display: inline-flex; align-items: center; gap: 5px; color: var(--grey-ink); text-decoration: none;
  font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; line-height: 1; transition: color .15s;
}
.person-link svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .person-link:hover { color: var(--dark); } }
.person-link:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
.person-link--head { display: none; margin-left: auto; }   /* desktop only (below) */
.person-foot { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--card-rule); }   /* phones only */
/* the rows. Phones: each label a small heading with a hairline under it, then the value (6px + the text's half-leading
   ≈ the 8px above the line). */
.facts { display: grid; gap: 24px; margin: 26px 0 0; }
.fact { display: grid; }
.fact dt {
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--card-rule);
  font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; line-height: 1.6; color: var(--grey-ink);
}
.fact dd { margin: 0; font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }   /* no lone word on a last line */
/* Education and Experience: one item per line, a small grey bullet, 6px apart */
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fact-list li { position: relative; padding-left: 16px; }
.fact-list li::before {
  content: ""; position: absolute; left: 1px; top: calc(.75em - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--grey-ink);
}
/* the university: on its own line on phones ("PhD in Sport Science," then "RMIT University"), never split */
.fact-place { display: block; white-space: nowrap; }
/* Focus: small capitals on the page-coloured fill (as the boxes inside cards), the same 6px gap across and down */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 7px 9px 6px; border-radius: 4px; background: var(--inset); color: var(--dark);
  font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; line-height: 1;
}

/* Desktop: the picture as a 216px banner; labels in a 136px column, hairlines between the rows; the LinkedIn link on the name line */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .person-photo { aspect-ratio: auto; height: 216px; max-height: none; }
  .person-body { padding: 30px 32px 34px; }
  .person-link--head { display: inline-flex; }
  .person-foot { display: none; }
  .facts { display: block; margin-top: 22px; }
  .fact { grid-template-columns: 136px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--card-rule); }
  .fact:last-child { padding-bottom: 0; }
  .fact dt { padding: 0; margin: 0; border: 0; line-height: 1.5; }
  .fact-place { display: inline; }   /* one line: "PhD in Sport Science, RMIT University" */
}
.consult p a { color: var(--accent-ink); }


/* ---- Home page hero (index.njk) ----
   A dark box: the words on the left, and on the right a map with one rider riding the
   Gruyère Grinder (assets/js/hero-ride.js draws it on the canvas). The map box is 5:4, pinned
   to the right and as tall as the hero; its edges fade into the dark (--hero-fade, set from
   homepage.json, is how much stays solid). Bottom right of the map: the course name, the
   progress bar, and a small play/pause button with the distance and climbing. Top right: the
   zoom buttons. Phones: the map goes above the words, 3:4.
   The map fades in once its data has loaded; the bar fills while it downloads. */
.hero {
  position: relative; isolation: isolate; display: flex; min-height: 420px; overflow: hidden;
  background: var(--dark); color: var(--light); border-radius: var(--card-r);   /* same corners as the cards (no outline since 11 Nov 2026, like the other dark cards) */
  box-shadow: var(--card-shadow);   /* and the same lift */
}
.hero-art { position: absolute; inset: 0 0 0 auto; z-index: -1; height: 100%; aspect-ratio: 5 / 4; max-width: 100%; --hero-fade: 60%; }
.hero-art canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;   /* not a button since 11 Nov 2026 (no tap-to-pause) */
  -webkit-mask-image: radial-gradient(closest-side, #000 var(--hero-fade), transparent 100%);
          mask-image: radial-gradient(closest-side, #000 var(--hero-fade), transparent 100%);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-art.is-ready canvas { opacity: 1; }
.hero-expand { display: none; }   /* the expand button is for phones only (shown in the phone rules below) */
/* Desktop (3 Nov 2026): on the home page the map fills the whole hero, like the About page's terrain, with no
   round fade; a soft dark wash from the left keeps the words clear of the route. Phones keep the 3:4 map above the words. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .hero--home .hero-art { inset: 0; width: 100%; aspect-ratio: auto; max-width: none; }
  .hero--home .hero-art canvas { -webkit-mask-image: none; mask-image: none; }
  .hero--home .hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to right, rgba(38,38,38,.85) 0%, rgba(38,38,38,.55) 30%, rgba(38,38,38,0) 55%); }
}
/* while the map file downloads: a thin bar in the middle of the dark, like the bike computer on
   the Coaching page; then the bar fades and the map, stats and controls fade in together */
.hero-load {
  position: absolute; left: 50%; top: 50%; width: min(160px, 40%); height: 2px; transform: translate(-50%, -50%);
  border-radius: 2px; overflow: hidden; background: var(--on-dark-faint); transition: opacity .35s ease;
}
.hero-load i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--light); transition: width .2s linear; }
.hero-art.is-loaded .hero-load { opacity: 0; }
.hero-art .hud, .hero-art .zoom-ctl { opacity: 0; transition: opacity 1.2s ease; }
.hero-art.is-ready .hud, .hero-art.is-ready .zoom-ctl { opacity: 1; }

/* Bottom right: the map credit (small, right-aligned, on top, so the boxes sit on the bottom edge),
   then a box with the course name, distance and climbing (the same box as the About hero's), under it
   one long box of controls like the Gym hero's weight box (back 1 km, play / pause, forward 1 km).
   Both boxes the same width, as far from the bottom of the map as from its right side. */
.hud {
  position: absolute; right: 24px; bottom: 24px; width: 192px;
  display: grid; gap: 6px; justify-items: stretch;
  font-size: var(--fs-micro); letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--grey-on-dark);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.hud-box {
  display: none;   /* (11 Nov 2026) only in the expanded view on phones, below */
  gap: 6px; padding: 10px 12px 9px;
  border: 1px solid var(--on-dark-faint); border-radius: 8px; background: var(--hud);
}
.hud-name { padding-bottom: 6px; border-bottom: 1px solid var(--on-dark-rule); color: var(--grey-box); }
.hud-stats { display: flex; gap: 12px; }
.hud-credit { order: -1; justify-self: end; margin-bottom: 1px; font-size: 9px; letter-spacing: .04em; text-transform: none; color: var(--grey-ink); }
.hud-ctl {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 34px; overflow: hidden; pointer-events: auto;
  border: 1px solid var(--on-dark-line); border-radius: 8px; background: var(--hud);
}
.hud-ctl button {
  height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--light); cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background .2s, color .2s;
}
.hud-play { border-inline: 1px solid var(--on-dark-rule) !important; }
@media (hover: hover) { .hud-ctl button:hover:not(:disabled) { background: var(--on-dark-hover); color: var(--accent); } }
.hud-ctl button:disabled { color: var(--on-dark-off); cursor: default; }
.hud-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.hud-step svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hud-play svg { width: 10px; height: 10px; display: block; fill: currentColor; }
.hud-play .i-pause, .hud-play[aria-pressed="true"] .i-play { display: none; }
.hud-play[aria-pressed="true"] .i-pause { display: inline; }

/* zoom: − and + buttons, top right — the same small square as the Coaching hero's light/dark toggle.
   At either end of the range that button dims (aria-disabled, so a tap on it is still caught by the
   button and never reaches the map, which would pause the ride). */
.zoom-ctl { position: absolute; top: 18px; right: 24px; display: flex; gap: 6px; }
.zoom-btn {
  width: 28px; height: 28px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--on-dark-line); border-radius: 4px; background: var(--hud-soft); color: var(--light);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;   /* no double-tap zoom of the page */
  transition: opacity .2s, transform .15s, border-color .2s;
}
@media (hover: hover) { .zoom-btn:hover { border-color: var(--on-dark-line-hi); } }
.zoom-btn:active { transform: scale(.92); }
.zoom-btn[aria-disabled="true"] { opacity: .35; cursor: default; transform: none; border-color: var(--on-dark-line); }
.zoom-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zoom-btn svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.hero-text {
  container-type: inline-size;   /* so the title can measure its column (below) */
  width: min(360px, 48%); display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 30px 0 32px 32px;
}
.hero-text > .hero-words:only-child { margin-top: auto; }   /* no meta line (the home page): the words still sit at the bottom */
/* "Cycling coach" (home) and "Gravel · Enduro · XC" (Coaching): small uppercase words in the accent.
   Phones: under the title, on every hero. */
.hero-meta {
  align-self: flex-start; margin: 0; color: var(--accent);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; line-height: 1.2;
}
.hero-title {
  margin: 0; font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-title);
  text-transform: uppercase; line-height: .92;   /* tight, for titles that wrap (Team Lobigs): capitals only, no descenders */
  margin-left: -.02em;   /* optical alignment with the meta line and text (see .person-name) */
  /* the same on every hero (tokens.css); on tablets, where the words' column is narrow, it shrinks
     just enough for the longest title word, COACHING, to fit beside the art (all heroes alike) */
  font-size: min(var(--fs-hero), 100cqi / 6.6);
}
.hero-lede { margin: 18px 0 0; font-size: var(--fs-body); line-height: 1.6; color: var(--grey-box); }
/* Home: "Team Lobigs" always on two lines (as on desktop and in the menu), and "Cycling coach" under it (11 Nov 2026):
   the heading face in the accent, at the service-card title size (20px desktop, 18px phones), so it reads as part
   of the title block */
.hero--home .hero-title > span { display: block; }
.hero-line {
  margin: 12px 0 0; color: var(--accent); font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-card);
  text-transform: uppercase; font-size: calc(var(--fs-heading) - 2px); line-height: 1.05; letter-spacing: .005em;
}
.hero + .c-section.offers { margin-top: var(--card-gap); }
.c-section.cp-about { margin-top: var(--card-gap); }   /* the Overview card: one card gap under the hero (About too) */

@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  /* the map is a fixed 3:4 on every phone, so it always gets the same good share of the screen
     and the rider, stats and zoom sit in the same places; the words follow below it */
  .hero { flex-direction: column; min-height: 0; }
  .hero-art { position: relative; inset: auto; z-index: 0; flex: none; width: 100%; height: auto; aspect-ratio: 3 / 4; max-width: none; }
  /* phones: the stack sits at the bottom left of the map, the zoom buttons top right */
  .hud { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .hud-ctl { height: 40px; }   /* easy to tap */
  /* phones: the buttons look 32px but catch taps a little further out — 6px above and below,
     4px to the sides, so the two areas just meet across the 8px gap */
  .zoom-ctl { right: 16px; top: 16px; gap: 8px; }
  .zoom-btn { position: relative; width: 32px; height: 32px; }
  .zoom-btn::before { content: ""; position: absolute; inset: -7px -5px; }
  /* the words: title, then "Cycling coach", then the statement — the same order as the Coaching and Gym heroes */
  .hero-text { width: auto; gap: 0; padding: 6px 20px 24px; }
  .hero-words { display: contents; }
  .hero-title { order: 1; }
  .hero-meta { order: 2; margin-top: 10px; }
  .hero-lede { order: 3; margin-top: 16px; font-size: var(--fs-body); }
  .hero-line { order: 2; margin-top: 10px; }

  /* Home hero on phones (11 Nov 2026): the map fills the whole box, as on desktop, with the words at the bottom left on
     a soft dark wash rising from the bottom (no round fade). The controls shrink to two 40px buttons, play / pause and
     forward 1 km, at the bottom right level with the words; the course box stays parked (index.njk). The rider sits
     just below halfway (56%) between the top of the box and the top of the title (--rider, read by hero-ride.js). Sized for a 390px-wide phone, where
     the two buttons clear CYCLING COACH. */
  .hero--home { justify-content: flex-end; }
  .hero--home .hero-art { position: absolute; inset: 0; z-index: -1; height: 100%; aspect-ratio: auto; --rider: words; }   /* --rider: hero-ride.js raises the rider */
  .hero--home .hero-art canvas { -webkit-mask-image: none; mask-image: none; }
  .hero--home .hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(38,38,38,.92) 0%, rgba(38,38,38,.75) 18%, rgba(38,38,38,0) 42%); }
  .hero--home .hero-text { padding: 0 20px 24px; pointer-events: none; }   /* the words span the bottom of the map, over the buttons (the map is a layer below): let taps through to them */
  .hero--home .hud { left: auto; right: 16px; bottom: 22px; width: auto; justify-items: end; z-index: 1; }   /* above the wash */
  .hero--home .hud-ctl { grid-template-columns: repeat(2, 40px); }
  .hero--home .hud-step[data-step="-1"] { display: none; }
  .hero--home .hud-play { border-inline: 0 !important; border-right: 1px solid var(--on-dark-rule) !important; }

  /* Expand (11 Nov 2026): a small square top left with the four-corner mark. Tapped, the hero becomes a layer over the
     whole screen (under the browser's own bars): no title or wash; the route box returns above all three ride buttons
     (back, play / pause, forward) across the bottom; zoom stays top right; the mark becomes a × to close. */
  .hero-expand { display: grid; position: absolute; top: 16px; left: 16px; width: 32px; height: 32px; place-items: center; padding: 0; cursor: pointer;
    border: 1px solid var(--on-dark-line); border-radius: 4px; background: var(--hud-soft); color: var(--light);
    opacity: 0; transition: opacity 1.2s ease, border-color .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .hero-expand::before { content: ""; position: absolute; inset: -7px -5px; }   /* a slightly bigger target, like the zoom buttons */
  .hero-art.is-ready .hero-expand, .ha-art.is-ready .hero-expand { opacity: 1; }
  .hero-expand svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .hero-expand .i-close, .hero.is-full .hero-expand .i-expand { display: none; }
  .hero.is-full .hero-expand .i-close { display: block; }
  .hero-expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .hero.is-full { position: fixed; inset: 0; z-index: 90; min-height: 0; border-radius: 0; box-shadow: none; }
  .hero--home.is-full .hero-text, .hero--home.is-full .hero-art::after { display: none; }
  .hero--home.is-full .hero-expand, .hero--home.is-full .zoom-ctl { top: calc(16px + env(safe-area-inset-top)); }
  .hero--home.is-full .hud { left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); width: auto; justify-items: stretch; }
  .hero--home.is-full .hud-box { display: grid; }
  .hero--home.is-full .hud-ctl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero--home.is-full .hud-step[data-step="-1"] { display: grid; }
  .hero--home.is-full .hud-play { border-inline: 1px solid var(--on-dark-rule) !important; }
  html.hero-full-open, html.hero-full-open body { overflow: hidden; background: var(--dark); }   /* the page doesn't scroll behind it; the strips behind the browser's bars go dark too */
  .hero.is-full { touch-action: manipulation; }   /* no double-tap zoom anywhere in the expanded view */
}


/* ---- Coaching page hero (coaching.njk) ----
   The same dark box as the home page hero (.hero above), with .hero--coach for what's different:
   on the right a bike computer running today's session (assets/js/hero-coach.js draws it),
   behind everything faint contour lines from the page's seed, and on the left the words —
   "Gravel · Enduro · XC" as plain accent text, a bigger title, the paragraph and a small
   framed box with one centred line (`fact` in coaching.njk).
   Phones: the device goes on top (7:8), running off into a fade, with the title, the tags and
   the paragraph below it (no box), inset 24px like the text in the cards. The moon / sun
   button sits bottom right (top right on phones). */
.hero--coach .hc-bg {   /* the contour lines fill the whole hero (3 Nov 2026: no fade on the left, now the words are short) */
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; pointer-events: none;
}
.hc-art { position: absolute; inset: 0 0 0 auto; z-index: -1; width: calc(100% - min(380px, 46%) - 32px); }
.hc-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .4s ease; }
.hc-art.is-ready canvas { opacity: 1; }
/* see-through buttons laid over the screen, its three keys and the chart (placed by the script) */
.hc-hit, .hc-key { position: absolute; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.hc-scrub { position: absolute; cursor: ew-resize; touch-action: none; border-radius: 3px; }
/* no focus rings on the screen, its keys, Take over or the chart scrubber (the script also stops
   mouse and touch giving them focus) */
.hc-hit, .hc-key, .hc-play, .hc-scrub { outline: none !important; -webkit-tap-highlight-color: transparent; }
.hc-scrub[hidden], .hc-play[hidden] { display: none; }
/* Take over: drawn on the screen under the snake's playfield; this is the see-through button over it */
.hc-play { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.hc-tog {
  position: absolute; right: 16px; bottom: 16px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--on-dark-line); border-radius: 4px; background: var(--hud-soft); color: var(--light); cursor: pointer;
}
.hc-tog svg { width: 12px; height: 12px; display: block; }
.hc-tog .sun, .hc-tog[data-theme="light"] .moon { display: none; }
.hc-tog[data-theme="light"] .sun { display: block; }
.hc-tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero--coach .hero-text { width: min(380px, 46%); justify-content: flex-start; gap: 0; }
.hero--coach .hero-title { margin-top: auto; padding-top: 32px; }
.hero--coach .hero-lede { margin-top: 18px; }

@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .hc-art { position: relative; inset: auto; z-index: 0; flex: none; width: 100%; aspect-ratio: 7 / 8; }
  .hc-tog { top: 16px; bottom: auto; }
  .hero--coach .hero-text { width: auto; padding: 8px 24px 24px; }   /* 24px: the same inset as the text in the cards below */
  .hero--coach .hero-title { order: 1; margin-top: 0; padding-top: 0; }
  .hero--coach .hero-meta { order: 2; position: static; margin-top: 10px; }
  .hero--coach .hero-lede { order: 3; margin-top: 16px; }
}


/* ---- The snake, full-screen on phones (built by hero-coach.js) ----
   Opened by Take over on the Coaching hero's snake page on a phone: a layer over the whole page
   in the device screen's colours (--g-*, set by the script), with the score and Hand back along
   the top, the playfield, and a D-pad. The page underneath doesn't scroll while it's open. */
.hc-game {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--g-bg); color: var(--g-fg); transform-origin: 0 0; touch-action: none; user-select: none; -webkit-user-select: none;
  font: 600 12px var(--text); letter-spacing: var(--track-micro); text-transform: uppercase;
}
.hc-game[hidden] { display: none; }
.hcg-top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.hcg-title { color: var(--g-dim); }
.hcg-score { margin-left: auto; font-variant-numeric: tabular-nums; }
.hcg-close { height: 32px; padding: 0 12px; border: 1px solid var(--g-fg); border-radius: 4px; background: var(--g-fg); color: var(--g-bg); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.hcg-field { flex: 1 1 auto; min-height: 0; width: 100%; display: block; margin: 8px 0 18px; }
.hcg-pad { display: grid; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(3, 62px); gap: 6px; justify-content: center; }
.hcg-up { grid-area: 1 / 2; } .hcg-left { grid-area: 2 / 1; } .hcg-mid { grid-area: 2 / 2; } .hcg-right { grid-area: 2 / 3; } .hcg-down { grid-area: 3 / 2; }
.hcg-pad button { display: grid; place-items: center; padding: 0; border: 1px solid var(--g-line); border-radius: 10px; background: var(--g-tint); color: var(--g-fg); touch-action: none; cursor: pointer; transition: background .08s, color .08s; }
.hcg-pad button:active { background: var(--g-fg); color: var(--g-bg); }
.hcg-pad svg { width: 22px; height: 22px; display: block; }
.hcg-pad .hcg-mid { border-color: transparent; background: none; color: var(--g-dim); }
.hcg-pad .hcg-mid svg { width: 16px; height: 16px; }
.hc-game button { outline: none; -webkit-tap-highlight-color: transparent; }
html.hcg-lock, html.hcg-lock body { overflow: hidden; overscroll-behavior: none; }
html.hcg-lock body { position: fixed; left: 0; right: 0; }

/* ---- Gym page hero (gym.njk) ----
   The same dark box as the Coaching hero, with .hero--gym for what's different: on the right a
   bar racked in a squat rack in front of a wall mirror (assets/js/hero-gym.js draws it). The
   drawing starts 200px in, beside the title, so the rack sits a little left of the Coaching
   device and the bar reaches toward the title; the right sleeve's tip may run off the edge. Bottom
   right: the weight box (− and + either side of the total); top right: a square button
   that puts a squat pad on the bar. On the left the words, like the Coaching hero.
   Phones: the rack goes on top (square), drawn larger with the right upright out of view, and
   the title, meta and paragraph below,
   spaced a little more openly than on the Coaching page. */
.hg-art { position: absolute; inset: 0 0 0 auto; z-index: -1; width: calc(100% - 200px); }   /* starts beside the title: the bar can reach toward it (hero-gym.js keeps the plates clear of the paragraph) */
.hg-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; opacity: 0; transition: opacity .4s ease; }
.hg-art.is-ready canvas { opacity: 1; }
.hg-pad {
  position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--on-dark-line); border-radius: 4px; background: var(--hud-soft); color: var(--light); cursor: pointer;
  --pad-fill: transparent; transition: border-color .2s;
}
.hg-pad svg { width: 14px; height: 14px; display: block; }
.hg-pad[aria-pressed="true"] { border-color: var(--on-dark-line-hi); --pad-fill: var(--accent); }
.hg-pad:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hg-hud { position: absolute; right: 24px; bottom: 22px; display: grid; gap: 9px; justify-items: end; text-align: right; }
/* the weight: one long box, − at one end, + at the other, the total in the middle */
.hg-ctl {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; width: 220px; height: 40px;
  border: 1px solid var(--on-dark-line); border-radius: 8px; background: var(--hud-soft); overflow: hidden;
}
.hg-ctl button {
  height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--light); cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background .2s, color .2s;
}
.hg-ctl button svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (hover: hover) { .hg-ctl button:hover { background: var(--on-dark-hover); color: var(--accent); } }
.hg-ctl button:disabled { color: var(--on-dark-off); cursor: default; background: none; }
.hg-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.hg-weight {
  margin: 0; text-align: center; font-size: var(--fs-micro); letter-spacing: var(--track-micro); text-transform: uppercase;
  color: var(--grey-on-dark); font-variant-numeric: tabular-nums;
}
.hg-weight b { font-weight: 600; color: var(--light); }

.hero--gym .hero-text { width: min(380px, 46%); justify-content: flex-start; gap: 0; }
.hero--gym .hero-title { margin-top: auto; padding-top: 32px; }
.hero--gym .hero-lede { margin-top: 18px; }

@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .hg-art { position: relative; inset: auto; z-index: 0; flex: none; width: 100%; aspect-ratio: 1 / 1; }
  .hg-hud { left: 20px; right: 20px; bottom: 18px; }
  .hg-ctl { width: 100%; height: 44px; grid-template-columns: 48px minmax(0, 1fr) 48px; }   /* phones: across the drawing, easy to tap */
  .hero--gym .hero-text { width: auto; padding: 8px 24px 28px; }
  .hero--gym .hero-title { order: 1; margin-top: 0; padding-top: 0; }
  .hero--gym .hero-meta { order: 2; position: static; margin-top: 14px; }
  .hero--gym .hero-lede { order: 3; margin-top: 22px; }
}


/* ---- Home page cards (index.njk; words in homepage.json) — 5 Nov 2026 ----
   Service cards: small dark cards, 72px tall. Behind the title, a piece of the Gruyère terrain (sketches/home-card-*.svg,
   tools/contour-cards.py): faint light contour lines, heavier every 100 m, and the route in orange, which crosses
   between the title and the arrow. The SVG fills the card (cropped from the middle on wide screens, where the cards
   are shorter for their width). The whole card is the link; pointed at, the title and arrow turn
   orange. A closed card (Plans until 2027) has no arrow; its label (2027) sits where the arrow would be.
   Three side by side from 900px; stacked below that. Between 900 and 1100px the three cards are narrow, so the
   titles are a step smaller there (PLANS and 2027, COACHING and its arrow, stay clear of each other).
   Then the Athlete Portal: one light card across the full width — the words, then a season of weekly training load
   in a white panel. The drawing is cropped to its edges, so the panel's padding is its margin on every side.
   Then the About card and the dark Contact card, one card gap apart. */
.c-section.offers { margin-top: var(--card-gap); display: grid; gap: var(--card-gap); }
@media (min-width: 900px) { .c-section.offers { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }   /* the three cards a little closer than the card gap (34px), so they read as one group */

.offer {
  position: relative; isolation: isolate; display: flex; align-items: center; height: 72px; box-sizing: border-box;
  padding: 0 48px 0 20px; overflow: hidden; border-radius: var(--card-r); box-shadow: var(--card-shadow);
  background: var(--dark); color: var(--light); text-decoration: none;
}
.offer.is-closed { padding-right: 64px; }   /* room for 2027 */
.offer-art { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.offer-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.offer-art .ct-min { fill: none; stroke: rgba(245,242,236,.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.offer-art .ct-maj { fill: none; stroke: rgba(245,242,236,.26); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.offer-art .ct-route { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.offer.is-closed .offer-art > svg { opacity: .7; }   /* Plans, not open yet: a little fainter */
.offer-name {
  font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-card); text-transform: uppercase;
  font-size: calc(var(--fs-heading) - 2px); line-height: 1.05; transition: color .2s;   /* a step under the section headings: 18px phones, 20px desktop */
}
/* the arrow (and 2027 on a closed card) in a small solid box in the card's dark, with a faint outline, so it stands
   clear of the contour lines behind it (5 Nov 2026) — the same 30px size as the About card's arrow buttons */
.offer-go {
  position: absolute; top: 50%; right: 18px; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; background: var(--dark); box-shadow: inset 0 0 0 1px rgba(245,242,236,.16);
  color: var(--light); transition: color .2s;
}
.offer-go svg { width: 9px; height: 10px; }
a.offer:hover .offer-name, a.offer:hover .offer-go { color: var(--accent); }
a.offer:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.offer-soon {
  position: absolute; top: 50%; right: 18px; transform: translateY(-50%); padding: 6px 7px 5px; border-radius: 6px;
  background: var(--dark); box-shadow: inset 0 0 0 1px rgba(245,242,236,.16);
  color: var(--grey-on-dark); font-size: var(--fs-label); letter-spacing: var(--track); line-height: 1;
}
@media (min-width: 900px) {
  .offer { padding-left: 24px; }
  .offer-go, .offer-soon { right: 21px; }
}
/* phones: the three cards 12px apart so they read as one group; the Athlete Portal stays one card gap below */
@media (max-width: 899px) {
  .c-section.offers { row-gap: 12px; }
  .c-section.offers > .portal-card { margin-top: calc(var(--card-gap) - 12px); }
}
@media (min-width: 900px) and (max-width: 1099px) { .offer-name { font-size: 16px; } }

/* Athlete Portal */
.portal-card {
  display: grid; gap: 20px; padding: 20px; color: var(--dark);
  background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow);
}
@media (min-width: 900px) { .portal-card { grid-column: 1 / -1; } }
.portal-words { display: flex; flex-direction: column; }
.portal-name { margin: 0; font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-card); text-transform: uppercase; font-size: var(--fs-heading); line-height: 1.05; }   /* also the About card's heading */
.portal-text { margin: 12px 0 0; font-size: var(--fs-body); line-height: 1.6; max-width: 34em; }
.portal-btn { align-self: flex-start; min-height: 40px; padding: 0 18px; margin-top: 20px; white-space: nowrap; }
/* not open yet (loginUrl empty): outlined in the PhD tags' grey, dark words, no hover; it becomes the dark button once it links */
.portal-btn.is-closed { cursor: default; background: none; color: var(--dark); box-shadow: inset 0 0 0 1px rgba(38,38,38,.35); }
.portal-btn.is-closed:hover { color: var(--dark); }
.portal-shot { order: -1; display: block; padding: 20px; background: var(--inset); border-radius: 8px; box-shadow: var(--inner-shadow); }
.portal-shot svg { display: block; width: 100%; height: auto; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .portal-btn { align-self: stretch; justify-content: center; min-height: 44px; }
}
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .portal-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 24px; }
  .portal-words { padding-left: 8px; }
  .portal-shot { order: 0; padding: 24px; }
}

/* About (11 Nov 2026): the Overview card layout from Coaching and Gym — a small panel in the page colour with the
   mountains and the orange sun (sketches/about-mountains.svg, 56px, static), the words beside it, and "Learn more" on
   the right as a grey button (the page colour, dark words; less dark on the page than the solid button). Pointed at,
   the words turn orange. Phones: the panel on top as a band, the words, then the button full width. */
.c-section.home-about {
  margin-top: var(--card-gap); display: grid; gap: 20px; padding: 20px; color: var(--dark);
  background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow);
}
.home-about-icon { display: grid; place-items: center; height: 88px; color: var(--dark); background: var(--inset); border-radius: 8px; box-shadow: var(--inner-shadow); }
.home-about-icon svg { width: 56px; height: 56px; display: block; }
.home-about-words { display: flex; flex-direction: column; }
.home-about-words .portal-text { margin-top: 10px; }
.home-about-btn { justify-content: center; min-height: 44px; padding: 0 22px; white-space: nowrap;
  background: var(--inset); color: var(--dark); box-shadow: var(--inner-shadow); }
@media (hover: hover) { .home-about-btn:hover { color: var(--accent-ink); } }
.home-about-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .c-section.home-about { grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px 32px; }
  .home-about-icon { height: auto; min-height: 72px; align-self: stretch; }   /* stretches to the words' height, like the Overview icons */
  .home-about-btn { min-height: 40px; padding: 0 18px; }   /* the size of Coming 2027 */
}

/* Contact card (partials/contact.njk; home page and About page): the dark box with the heading (card heading size) and two buttons — Email light, Instagram outlined.
   Desktop: heading left, buttons right, on one line. Phones: the heading, then the two buttons side by side.
   An outlined button that isn't a link yet (Instagram while site.instagram is empty) has no hover. */
.c-section.contact-card {
  margin-top: var(--card-gap); display: grid; gap: 20px; padding: 24px 20px;
  background: var(--dark); color: var(--light); border-radius: var(--card-r); box-shadow: var(--card-shadow);
}
.contact-title { margin: 0 0 0 -.03em; font-family: var(--display); font-weight: var(--heavy); font-stretch: var(--stretch-card);
  text-transform: uppercase; font-size: var(--fs-heading); line-height: 1.05; }
/* the address under the heading (11 Nov 2026): plain words in the soft grey with a small copy mark; tapped, it copies the
   address and reads "Copied" in the accent for a moment (site.js) */
.contact-words { display: grid; gap: 8px; }
.contact-addr { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; letter-spacing: .01em; color: var(--grey-on-dark); transition: color .2s; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: text; user-select: text; }
.contact-addr svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact-addr .tick, .contact-addr.is-copied .copy-mark { display: none; }
.contact-addr.is-copied { color: var(--accent); }
.contact-addr.is-copied .tick { display: block; }
@media (hover: hover) { .contact-addr:hover { color: var(--light); } .contact-addr.is-copied:hover { color: var(--accent); } }
.contact-addr:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-btn { justify-content: center; min-height: 44px; padding: 0 22px; background: var(--light); color: var(--dark); }
.contact-btn.is-line { background: none; color: var(--light); box-shadow: inset 0 0 0 1px rgba(245,242,236,.35); }
.contact-btn.is-closed { cursor: default; }
@media (hover: hover) {
  a.contact-btn:hover { color: var(--accent-ink); }
  a.contact-btn.is-line:hover { color: var(--accent); }
  .contact-btn.is-closed:hover { color: var(--light); }
}
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .c-section.contact-card { grid-template-columns: 1fr auto; align-items: center; padding: 24px 24px 24px 32px; }
  .contact-btns { grid-template-columns: auto auto; }
  .contact-btn { min-width: 150px; }
}


/* ---- About page hero (about.njk) ----
   The same dark box as the other heroes. Behind the words, the model of the Gruyère range with the
   two riders (assets/js/hero-about.js draws it on .ha-gl and .ha-ov); a thin bar fills in the middle
   while it loads, then the model and the controls fade in. Bottom right: play / pause and forward 1 km, the terrain
   credit above them. The meta line at the top, the title at the bottom, as on the home hero (no riders' legend since 19 Nov 2026).
   (The box with the speeds is parked in about.njk since 11 Nov 2026; its styles below are kept for it.)
   Phones: the model fills the hero as well (see below). */
.hero--about .hero-text { width: min(460px, 70%); }
.ha-art { position: absolute; inset: 0; z-index: -1; }
.ha-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.ha-art.is-ready canvas { opacity: 1; }
.ha-art.is-loaded .hero-load { opacity: 0; }
.ha-nogl { display: none; position: absolute; right: 24px; bottom: 24px; margin: 0; font-size: var(--fs-micro); letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--grey-on-dark); }
.ha-art.no-gl .ha-nogl { display: block; }
.ha-art.no-gl .ha-hud, .ha-art.no-gl .ha-play { display: none; }
.ha-hud { position: absolute; right: 24px; bottom: 66px; display: grid; justify-items: end; gap: 6px; opacity: 0; transition: opacity 1.2s ease; }   /* now just the credit, above the controls */
.ha-art.is-ready .ha-hud, .ha-art.is-ready .ha-play { opacity: 1; }
/* the data credit, above the box like the © OpenStreetMap on the home hero's map */
.ha-credit { order: -1; margin: 0;   /* above the box, as on the home page hero, so the box sits on the bottom edge */
   font-size: 9px; letter-spacing: .04em; color: var(--grey-ink); }
/* the box: like the small facts boxes on the other heroes */
.ha-box {
  display: none;   /* (11 Nov 2026) only in the expanded view on phones, below */
  gap: 5px; min-width: 184px; padding: 10px 12px 9px;
  border: 1px solid var(--on-dark-faint); border-radius: 8px; background: var(--hud);
  font-size: var(--fs-micro); letter-spacing: var(--track-micro); text-transform: uppercase; color: var(--grey-on-dark); font-variant-numeric: tabular-nums;
}
.ha-box p { margin: 0; }
.ha-route { margin-bottom: 3px !important; padding-bottom: 6px; border-bottom: 1px solid var(--on-dark-rule); color: var(--grey-box); }
.ha-rider { display: grid; grid-template-columns: 8px 1fr auto auto; align-items: baseline; gap: 8px; }
.ha-dot { width: 7px; height: 7px; border-radius: 50%; align-self: center; background: var(--light); }
.ha-dot--lou { background: var(--accent); }
.ha-name { color: var(--light); }
.ha-rider b { min-width: 4ch; text-align: right; font-weight: 600; color: var(--light); }
.ha-stats { display: flex; gap: 12px; margin-top: 3px !important; padding-top: 6px; border-top: 1px solid var(--on-dark-rule); }
/* play / pause and forward 1 km: two squares side by side as one box at the bottom right, like the home hero's controls
   (11 Nov 2026; play / pause was a single square top right); the terrain credit sits above them */
.ha-play, .ha-skip {
  position: absolute; bottom: 24px; opacity: 0; transition: opacity 1.2s ease, color .2s;
  width: 40px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--on-dark-line); background: var(--hud); color: var(--light);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;   /* quick taps don't zoom the page on phones */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;   /* holding skip doesn't select or pop up anything */
}
.ha-play { right: 63px; border-radius: 8px 0 0 8px; }
.ha-skip { right: 24px; border-radius: 0 8px 8px 0; }
.ha-back { display: none; }   /* back 1 km: the expanded view on phones only */
.ha-art.is-ready .ha-skip { opacity: 1; }
.ha-art.no-gl .ha-skip { display: none; }
.ha-skip svg { width: 12px; height: 12px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ha-skip:hover { color: var(--accent); } }
.ha-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ha-play svg { width: 10px; height: 10px; display: block; fill: currentColor; }
.ha-play .i-play, .ha-play[aria-pressed="false"] .i-pause { display: none; }
.ha-play[aria-pressed="false"] .i-play { display: block; }
@media (hover: hover) { .ha-play:hover { color: var(--accent); } }
.ha-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  /* Phones (11 Nov 2026, as the home hero): the model fills the whole hero, with the words at the bottom left on a soft
     dark wash rising from the bottom; the controls at the bottom right, 40px squares; the terrain credit top right.
     No meta line. The riders sit just below the middle of the clear model above the title (hero-about.js). */
  .hero--about { justify-content: flex-end; }
  .ha-art { inset: 0; }
  .ha-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(to top, rgba(38,38,38,.92) 0%, rgba(38,38,38,.75) 18%, rgba(38,38,38,0) 42%); }
  .ha-hud { z-index: 2; top: 16px; right: 16px; bottom: auto; }
  .ha-play, .ha-skip { z-index: 2; bottom: 22px; width: 40px; height: 40px; }
  .ha-play { right: 55px; }
  .ha-skip { right: 16px; }
  .ha-nogl { right: auto; left: 50%; bottom: 50%; transform: translate(-50%, 50%); }
  .hero--about .hero-text { width: auto; gap: 0; padding: 0 20px 24px; pointer-events: none; }   /* taps go through to the controls */
  .hero--about .hero-meta { display: none; }
  .hero--about .hero-words { display: contents; }
  .hero--about .hero-title { order: 1; }

  /* Expand (11 Nov 2026), as on the home hero: the button top left; expanded, the model fills the screen, no title or
     wash; the box with the route, the riders' speeds, distance and climbing returns above play and skip, which run
     across the bottom; the terrain credit sits just above the box, as on the home hero */
  .ha-art .hero-expand { z-index: 2; }
  .hero--about.is-full .hero-text, .hero--about.is-full .ha-art::after { display: none; }
  .hero--about.is-full .hero-expand { top: calc(16px + env(safe-area-inset-top)); }
  .hero--about.is-full .ha-hud { top: auto; left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); justify-items: stretch; }   /* the credit, then the box, above the buttons */
  .hero--about.is-full .ha-credit { justify-self: end; }
  .hero--about.is-full .ha-box { display: grid; min-width: 0; }
  .hero--about.is-full .ha-play, .hero--about.is-full .ha-skip { bottom: calc(20px + env(safe-area-inset-bottom)); width: auto; }
  /* three buttons across the bottom, as on the home hero's expanded view: back, play / pause, forward */
  .hero--about.is-full .ha-back { display: grid; left: 16px; right: calc(66.667% - 5.333px); border-radius: 8px 0 0 8px; }
  .hero--about.is-full .ha-play { left: calc(33.333% + 5.333px); right: calc(33.333% + 5.333px); border-radius: 0; border-left: 0; }
  .hero--about.is-full .ha-skip:not(.ha-back) { left: calc(66.667% - 5.333px); right: 16px; border-left: 0; }
}


/* ============================================================
   GYM PAGE (gym.njk, rebuilt 2 Nov 2026 on the Coaching page's parts: .coaching-page, below).
   Only what the Gym page adds: the line sketches in Our focus (strokes), tiles without a button,
   the Your program drawing, and the price without a label above it.
   ============================================================ */
/* line sketches: the Coaching sketches are fills only (t-dark, t-grey…); these add strokes and a white fill */
.t-s-dark { stroke: var(--dark); }
.t-s-grey { stroke: var(--grey); }
.t-s-grey2 { stroke: var(--grey-mid); }   /* the dotted reference lines on the force–velocity curve */
.t-s-light { stroke: var(--light); }
.t-light { fill: var(--light); }

/* Our focus: the tiles don't open anything, so no button beside the title */
.gy-focus .wd-body { grid-template-columns: minmax(0, 1fr); }

/* ---- Your program (3 Nov 2026): the words beside one exercise card from the Athlete Portal — a white card with the
   same shadow as the page's cards; the drawing inside is cropped to the card's edges (sketches/gym-exercise.svg).
   Phones: the card, then the words. ---- */
.gy-program { display: grid; gap: 20px; }
.gy-words .c-heading { margin: 0 0 12px; }
.gy-text { margin: 0; font-size: var(--fs-body); line-height: 1.6; text-wrap: pretty; }
.gy-ex-card { order: -1; justify-self: center; width: 100%; max-width: 260px; overflow: hidden; border-radius: 10px; box-shadow: var(--card-shadow); }   /* phones: above the words */
.gy-ex-card svg { display: block; width: 100%; height: auto; }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .gy-program { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .gy-ex-card { order: 0; }   /* desktop: back on the right */
}

/* ---- Price: no Coached / Standalone label above the figure (the switch already says it) ---- */
.gy-price .calc-result .price { margin-top: 0; }

/* ============================================================
   COACHING PAGE (coaching.njk, rebuilt 29 Oct 2026; restructured 31 Oct 2026):
   Overview, What we offer, the two dark boxes, Get started, the price card, the call to action and the FAQ.
   Everything here is scoped to .coaching-page, so the Home, Gym and About pages (which share .coaching)
   are untouched.

   Spacing: every card sits one card gap below the one before it and carries its own heading inside;
     the FAQ has no visible heading (5 Nov 2026), only one for screen readers.
   Colour: light cards (--card) with the darker panel (--panel), white boxes and tiles inside cards,
     dark for text and the chosen state; orange in small doses (one dot per icon, the current day, the tolerance
     bands); the soft green (--green, from the Athlete Portal) now and then for "on plan".
   ============================================================ */
.coaching-page .c-section { margin-top: var(--card-gap); }
.cp-title { margin: 0; font-family: var(--display); font-weight: var(--bold); font-stretch: 108%; text-transform: uppercase; letter-spacing: .02em; font-size: var(--fs-subhead); line-height: 1.3; }
.cp-text { margin: 0; font-size: var(--fs-body); line-height: 1.6; }
/* a card's own heading, inside it */
.cp-about-body .c-heading, .wi-box > .c-heading, .gs-box > .c-heading, .cp-price .calc-side > .c-heading { margin: 0 0 12px; text-wrap: balance; }

/* ---- Overview: the "season plan" icon (four blocks building, then a taper, an orange dot above the last;
   _includes/sketches/overview.svg) in a white panel. Static.
   Desktop: the panel beside the heading and paragraph, as tall as they are. Phones: a full-width band above them. ---- */
.cp-about-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px;
  background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); }
.cp-about-icon { display: grid; place-items: center; height: 88px; color: var(--dark); background: var(--inset); border-radius: 8px; box-shadow: var(--inner-shadow); }
.cp-about-icon svg { width: 40px; height: 40px; display: block; }
.cp-about-icon--lg svg { width: 56px; height: 56px; }   /* the About page's mountains, as on the home page (11 Nov 2026) */
.cp-about-dot { fill: var(--accent); }
.cp-about-body { display: grid; align-content: center; }
.cp-about-card--text, .cp-about-card.cp-about-card--text { grid-template-columns: minmax(0, 1fr); }   /* About: the Overview with no icon panel */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .cp-about-card { grid-template-columns: 104px minmax(0, 1fr); gap: 28px; padding: 28px 32px; }
  .cp-about-icon { height: auto; min-height: 72px; }   /* stretches to the words' height */
}

/* ---- What we offer: one card holding the heading, the paragraph and four white tiles (2 × 2; one column on phones).
   Each tile: a sketch of an Athlete Portal view (_includes/sketches/tile-*.svg, all drawn to fill the same height)
   above a hairline, then the title, a small expand button (the portal's four-corner mark: the tile opens a pop-up
   example, so not the play-like triangle) and one sentence. The whole tile is the link. ---- */
.wi-box { padding: 24px; background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); }
.wi-box > .c-heading { margin-bottom: 20px; }   /* the tiles sit a little further below the heading than text would */
.wd-grid { display: grid; gap: 14px; }
.wi-tile { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; background: var(--inset); border-radius: 8px; box-shadow: var(--inner-shadow); overflow: hidden; }
.wd-shot { position: relative; display: grid; place-items: center; padding: 26px 24px; }
/* the hairline under the sketch stops short of the tile's sides, level with the title and paragraph below (Coaching and Gym) */
.wd-shot::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--card-rule); }
.wd-shot svg { display: block; width: 100%; max-width: 300px; height: auto; }
.wd-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; align-content: start; padding: 18px 20px 22px; }
.wd-body .cp-text { grid-column: 1 / -1; }
.wd-open { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--dark); background: var(--card); transition: color .2s; }
.wd-open svg { width: 12px; height: 12px; }
.wi-tile .cp-title { transition: color .2s; }
@media (hover: hover) { a.wi-tile:hover .cp-title, a.wi-tile:hover .wd-open { color: var(--accent-ink); } }   /* only tiles that open something */
.wi-tile:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .wi-box { padding: 30px 32px 32px; }
  .wi-box > .c-heading { margin-bottom: 24px; }
  .wd-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .wd-body { padding: 20px 24px 24px; }
  .wd-shot::after { left: 24px; right: 24px; }
}
/* the sketches' colours (inline SVG, drawn in a 280 × 140 box) */
.t-dark { fill: var(--dark); }
.t-grey { fill: var(--grey); }
.t-soft { fill: var(--card); }
.t-page { fill: var(--page); }   /* the page colour inside a light drawing (the Gym page exercise card's video area) */
.t-band { fill: var(--accent); opacity: .22; }
.t-acc { fill: var(--accent); }
.t-ok { fill: var(--green); }
.t-on-dark { fill: var(--light); opacity: .7; }
.t-outline { stroke: var(--dark); }
.t-txt { font-family: var(--text); font-size: 9px; fill: var(--grey-ink); letter-spacing: var(--track); }
.t-today, .t-ink-acc { fill: var(--accent-ink); }
.t-ink { fill: var(--dark); }
.t-ink-soft { fill: var(--grey-ink); }

/* ---- The two dark boxes (Your program, your way · Understanding the process): a short grey rule under the title ---- */
.coaching-page .approach .ap-title::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 16px; border-radius: 1px; background: rgba(166,166,163,.55); }
/* the light version (About page, 19 Nov 2026): the soft light card, dark words, the accent part of the title in the darker
   orange for text on light, and the short line under the title in the light-card line grey */
.approach--light { background: var(--card-sheen), var(--card); color: var(--dark); }
.approach--light .ap-body { color: var(--dark); }
.approach--light .ap-title .accent { color: var(--accent-ink); }
.coaching-page .approach--light .ap-title::after { background: var(--grey); }

/* ---- Get started: one card, the heading, then the steps with a hairline between. Each step has a line icon
   (_includes/sketches/step-*.svg: dark lines, one orange dot) in a white panel like the Overview icon, then
   "Step 1", the title and the paragraph. Kept quieter than the What we offer tiles on purpose.
   Desktop: the panel 104px wide, as tall as the words. Phones: a 56px square beside "Step 1" and the title,
   the paragraph full width below. ---- */
.gs-box { padding: 24px 24px 2px; background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); }
.gs-box > .c-heading { margin-bottom: 4px; }
.gs-list { margin: 0; padding: 0; list-style: none; }
.gi-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "i s" "i t" "d d"; gap: 0 16px; padding: 22px 0; }
.gi-item + .gi-item { border-top: 1px solid var(--card-rule); }
.gi-icon { grid-area: i; display: grid; place-items: center; width: 56px; height: 56px; color: var(--dark); background: var(--inset); border-radius: 8px; box-shadow: var(--inner-shadow); }
.gi-icon svg { display: block; width: 32px; height: 32px; }
.gi-dot { fill: var(--accent); }
.gi-body { display: contents; }
.gi-step { grid-area: s; align-self: end; margin: 0; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--grey-ink); }
.gi-body .cp-title { grid-area: t; align-self: start; margin-top: 2px; }
.gi-body .cp-text { grid-area: d; margin-top: 14px; }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .gs-box { padding: 30px 32px 4px; }
  .gi-item { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "i b"; gap: 28px; padding: 28px 0; }
  .gi-icon { width: auto; height: auto; min-height: 72px; }   /* stretches to the words' height, like the Overview panel */
  .gi-icon svg { width: 40px; height: 40px; }
  .gi-body { grid-area: b; display: grid; gap: 6px; align-content: start; align-self: center; }
  .gi-step, .gi-body .cp-title, .gi-body .cp-text { grid-area: auto; margin-top: 0; }
}

/* ---- Price (coaching.js): the heading; one sentence that changes with the payment option (both sentences share
   one grid cell, so the card never changes height); the Monthly / Upfront switch; then the weeks stepper, always
   shown but greyed out and disabled while Monthly is selected. ---- */
.cp-price .calc-side { gap: 18px; }
.cp-price .calc-side > .c-heading { margin: 0 0 -4px; }
.calc-slot { display: grid; }
.calc-slot > * { grid-area: 1 / 1; }
.calc-slot > :not(.is-on) { visibility: hidden; }
.calc-billing { margin: 0; align-self: start; font-size: var(--fs-body); line-height: 1.5; }
.calc-weeks { transition: opacity .2s; }
.calc-weeks.is-off { opacity: .4; }
.calc-weeks.is-off button, .calc-weeks.is-off input { cursor: default; }
@media (prefers-reduced-motion: reduce) { .calc-weeks { transition: none; } }

/* ---- FAQ: one card, a question per row with a hairline between, closed by default.
   The question in the paragraph face at a medium weight, the toggle on the right; the answer underneath. ---- */
.cp-faq-card { padding: 0 24px; background: var(--card-sheen), var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); }
.cp-faq-item + .cp-faq-item { border-top: 1px solid var(--card-rule); }
.cp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; transition: color .2s; }
.cp-faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .cp-faq-item summary:hover { color: var(--accent-ink); } }
.cp-faq-item summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.cp-faq-q { margin: 0; font-family: var(--text); font-weight: 500; font-size: var(--fs-body); line-height: 1.45; }   /* medium (19 Nov 2026; was 600): calmer, still a step above the answers */
.cp-faq-item .acc-toggle { flex: none; display: flex; }
.cp-faq-item .acc-toggle svg { width: 9px; height: 10px; transition: transform .2s; }
.cp-faq-item[open] .acc-toggle svg { transform: rotate(90deg); }
.cp-faq-a { display: grid; gap: 12px; padding: 0 32px 22px 0; max-width: 680px; }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .cp-faq-card { padding: 0 32px; } }
@media (prefers-reduced-motion: reduce) { .cp-faq-item .acc-toggle svg { transition: none; } }


/* ============================================================
   PHONES: MORE BREATHING ROOM (5 Nov 2026)
   On phones the cards' insides felt cramped. Kept together here so the phone spacing can be tuned in one
   place: a little more padding at the top and bottom of every card, 24px side insets everywhere (the
   Athlete Portal, About and Contact cards were 20px), and a little more space between a heading and its
   words, between list rows, and around buttons. Desktop is unchanged. The gap between cards stays 20px,
   the same as the side gutter.
   ============================================================ */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  /* headings inside cards: a little more space to the words below */
  .cp-about-body .c-heading, .wi-box > .c-heading, .gs-box > .c-heading, .cp-price .calc-side > .c-heading,
  .gy-words .c-heading { margin-bottom: 16px; }
  .portal-text { margin-top: 16px; }
  .cp-text, .gy-text, .portal-text, .ap-body, .consult p { line-height: 1.65; }

  /* Overview */
  .cp-about-card { gap: 22px; padding: 28px 24px 30px; }
  /* What's included / Our focus / Your program */
  .wi-box { padding: 28px 24px 28px; }
  .wd-grid { gap: 16px; }
  .wd-shot { padding: 30px 24px; }
  .wd-body { gap: 12px 16px; padding: 22px 20px 26px; }
  .gy-program { gap: 24px; }
  /* Get started */
  .gs-box { padding: 28px 24px 4px; }
  .gi-item { padding: 26px 0; }
  .gi-body .cp-text { margin-top: 16px; }
  /* dark boxes and the call to action */
  .approach { gap: 20px; padding: 40px 24px; }
  .consult { padding: 40px 24px; }
  .consult p { margin: 18px 0 30px; }
  /* Price */
  .calc-side { gap: 28px; padding: 36px 24px; }
  .calc-price { padding: 28px 24px; }
  .calc-result { padding: 28px 24px; }
  /* FAQ */
  .cp-faq-item summary { min-height: 64px; padding: 18px 0; }
  .cp-faq-a { gap: 14px; padding-bottom: 26px; }

  /* Home: Athlete Portal, About, Contact */
  .portal-card { gap: 24px; padding: 24px 24px 28px; }
  .portal-shot { padding: 22px; }
  .portal-btn { margin-top: 24px; }
  .c-section.home-about { gap: 22px; padding: 28px 24px 30px; }
  .c-section.contact-card { gap: 22px; padding: 28px 24px; }
  /* About: profiles */
  .person-pages { margin-top: 24px; }
  .person-pages > * { line-height: 1.65; }
}

/* Phones (5 Nov 2026): all four heroes the same height — the home hero's 3 : 4 map plus its two-line title (about
   100px) — so every page opens the same way. Since 11 Nov the home hero's map fills the whole box (see "Home hero on
   phones" above), so the hero stays this height whatever the words underneath it. Their pictures grow to fill the extra height (each hero's
   script sizes its drawing to the box). 100cqw is the page column's width, which is the hero's width. */
@media (max-width: 767px) {
  .page-inner.coaching { container-type: inline-size; }
  .hero--home, .hero--coach, .hero--gym, .hero--about { min-height: calc(100cqw * 4 / 3 + 102px); }
  .hero--home .hero-art, .hero--coach .hc-art, .hero--gym .hg-art, .hero--about .ha-art { flex: 1 0 auto; }
}
