/* The resources pages: one stylesheet for all of them, in the homepage's own
   tokens and type. Always light, as the rest of the site (Matt, 2026-09-28).

   The shape of a page (Matt, 2026-10-22: centred, not everything flush left):
   a centred head (title, one line, the answer), then one live piece of Linje
   in a wide band, then a centred reading column. Headings and short lines are
   centred; running paragraphs stay left-aligned inside the centred column,
   because centred paragraphs are hard to read. */
:root {
  --page: #E4EAEE;
  --surface: #F2F6F8;
  --edge: #CFD9DF;
  --text: #10262B;
  --text-dim: #2E5A61;
  --text-faint: #6D8F94;
  --marker: #E4552B;
  --ink: #10262B;
  --ink-text: #F2F6F8;
  --bezel: #0B1A1E;
  --night: #0B1A1E;
  --confirm: #2E8B4F;
  /* The wind, as the app colours it. */
  --tail: #2E8B4F;
  --head: #E4552B;
  --cross: #9DB6BA;
  --rain: #2563EB;
  --soil: #9A6614;
  --birch: #C7B899;
  --cond: "IBM Plex Sans Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 3px;
  --wrap: 1120px;
  --read: 680px;
  --gutter: 20px;
  --nav-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-inline: var(--gutter);
  -webkit-font-smoothing: antialiased;
  background-color: var(--page);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--edge) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--edge) 55%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
}
.wrap { max-width: var(--wrap); margin-inline: auto; position: relative; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; letter-spacing: .2px; text-wrap: balance; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
.mark { font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: .5px; line-height: 1; color: var(--text); text-decoration: none; }
.mark span { color: var(--marker); }
.ghost { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .3px; color: var(--text); background: color-mix(in srgb, var(--page) 80%, transparent); border: 1px solid var(--edge); border-radius: var(--radius); padding: 9px 16px; text-decoration: none; white-space: nowrap; }
.ghost:hover { border-color: var(--text-dim); }
:focus-visible { outline: 2px solid var(--text-dim); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The header, as on the homepage. */
.site-nav { margin-inline: calc(var(--gutter) * -1); padding: env(safe-area-inset-top, 0px) var(--gutter) 0; border-bottom: 1px solid var(--edge); }
.site-nav .wrap { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.site-nav .mark { font-size: 26px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a { font: 600 17px/1 var(--cond); letter-spacing: .3px; color: var(--text-dim); text-decoration: none; padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--marker); }
.nav-short { display: none; }

/* ---------- The head of a page: centred ---------- */
.head { padding-block: 80px 0; display: grid; justify-items: center; gap: 20px; text-align: center; }
.head h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; max-width: 16ch; }
.head .sub { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--text-dim); max-width: 44ch; }
.answer { max-width: var(--read); margin-inline: auto; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 22px 26px; text-align: center; }
.answer p { color: var(--text); font-size: 19px; line-height: 1.55; }
.answer p + p { margin-top: 10px; color: var(--text-dim); font-size: 17px; }

/* ---------- A band: the wide, live part of a page ---------- */
.band { display: grid; justify-items: center; gap: 22px; }
.band > .caption { max-width: 60ch; text-align: center; color: var(--text-faint); font-size: 14.5px; line-height: 1.55; }

/* ---------- The reading column ---------- */
.read { max-width: var(--read); margin-inline: auto; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.read h2, .band > h2, .split h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; text-align: center; }
.read > h2 { margin-top: 34px; }
.read > h2:first-child { margin-top: 0; }
.read h3 { font-size: 21px; line-height: 1.2; margin-top: 8px; }
.read p, .read li { color: var(--text-dim); font-size: 18px; }
.read strong { color: var(--text); font-weight: 500; }
.read ul, .read ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.read .lead { text-align: center; }
.note { font-size: 14.5px !important; line-height: 1.55; color: var(--text-faint) !important; }
.center { text-align: center; }

/* A row: a phone beside its words, the words centred on the phone. */
.split { max-width: 900px; margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1fr) auto; }
.split.flip > .phone, .split.flip > .phones { order: 2; }
.split h2 { margin-top: 0; text-align: left; }
.split .words { display: grid; gap: 16px; }

/* ---------- Phones, as on the homepage ---------- */
.phone { --pw: 260px; position: relative; width: var(--pw); max-width: 100%; aspect-ratio: 9 / 19.5; background: var(--bezel); border-radius: calc(var(--pw) * .145); padding: calc(var(--pw) * .036); flex: 0 0 auto; box-shadow: 0 24px 48px -24px rgba(11, 26, 30, .45); }
.phone::before { content: ""; position: absolute; top: calc(var(--pw) * .07); left: 50%; width: 30%; height: calc(var(--pw) * .078); transform: translateX(-50%); background: var(--bezel); border-radius: 999px; z-index: 3; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .11); overflow: hidden; background: var(--night); }
.phone .screen > video, .phone .screen > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--night); }
.phone .screen > .on-swap { opacity: 0; transition: opacity .35s; }
.phone .screen > .on-swap.on { opacity: 1; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.phones .phone:nth-child(2) { margin-top: 48px; }
.phone.small { --pw: 200px; }

/* ---------- Controls for the live pieces ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: center; align-items: end; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 9px 14px; min-height: 40px; border-radius: 2px; font: 600 15px/1 var(--cond); letter-spacing: .3px; color: var(--text-dim); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--ink-text); }
.slider { display: grid; gap: 6px; min-width: 200px; text-align: left; }
.slider .lab { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-dim); }
.slider .lab b { font: 600 15px var(--cond); color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--edge); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--edge); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--marker); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--edge); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--marker); border: 3px solid var(--surface); }
.readout { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; text-align: center; }
.readout > div { display: grid; gap: 2px; }
.readout span { font-size: 14px; color: var(--text-faint); }
.readout output, .readout strong { font: 700 30px/1.1 var(--cond); color: var(--text); font-variant-numeric: tabular-nums; }
.readout .big output { font-size: 44px; }
.verdict { max-width: 560px; margin-inline: auto; text-align: center; display: grid; gap: 6px; }
.verdict .word { font: 700 clamp(40px, 6vw, 64px)/1 var(--cond); color: var(--text); }
.verdict .line { font-size: 18px; color: var(--text); }
.verdict .why { font-size: 16px; color: var(--text-dim); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; color: var(--text-dim); }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--k); vertical-align: middle; margin-right: 8px; }
.stage { width: 100%; max-width: var(--wrap); position: relative; }
.stage svg { display: block; width: 100%; height: auto; touch-action: none; }
.grab { cursor: grab; }
.grab:active { cursor: grabbing; }
.hint { font-size: 13.5px; color: var(--text-faint); }

/* Tabs that change a phone. */
.tabbed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; max-width: 960px; width: 100%; }
.tablist { display: grid; gap: 2px; }
.tablist button { text-align: left; border: 0; border-left: 3px solid var(--edge); background: transparent; padding: 12px 0 12px 18px; cursor: pointer; display: grid; gap: 4px; }
.tablist button b { font: 700 21px/1.2 var(--cond); color: var(--text-faint); }
.tablist button span { font-size: 15.5px; line-height: 1.45; color: var(--text-faint); display: none; }
.tablist button[aria-selected="true"] { border-left-color: var(--text); }
.tablist button[aria-selected="true"] b { color: var(--text); }
.tablist button[aria-selected="true"] span { display: block; color: var(--text-dim); }

/* ---------- Tables ---------- */
.table-hold { min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.4; }
table.data caption { text-align: left; font-size: 13.5px; color: var(--text-faint); padding: 12px 14px 0; caption-side: top; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--edge); color: var(--text-dim); vertical-align: top; }
table.data thead th { border-top: 0; font: 700 16px/1.2 var(--cond); color: var(--text); }
table.data tbody th { font: 700 16px/1.2 var(--cond); color: var(--text); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.hl td, table.data tr.hl th { background: color-mix(in srgb, var(--marker) 9%, var(--surface)); }
table.data .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--k); margin-right: 10px; vertical-align: 1px; }

/* ---------- Sources, related ---------- */
.sources { display: grid; gap: 8px; border-top: 1px solid var(--edge); padding-top: 22px; margin-top: 32px; }
.sources h2 { font-size: 22px; margin: 0 0 4px; text-align: left; }
.sources li, .sources p { font-size: 15.5px !important; }
.checked { font: 500 12.5px/1.5 var(--mono); color: var(--text-faint); }

.related { display: grid; gap: 18px; justify-items: center; }
.related h2 { font-size: 26px; text-align: center; }

/* Tiles: a picture, then the words. Used by the listing and under articles. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; width: 100%; }
.tiles.two { max-width: 760px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); text-decoration: none; overflow: hidden; }
.tile:hover { border-color: var(--text-dim); }
.tile .pic { position: relative; aspect-ratio: 600 / 340; background: var(--page); border-bottom: 1px solid var(--edge); overflow: hidden; display: grid; place-items: center; }
.tile .pic.dark { background: var(--night); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile .pic .crop { width: 150px; height: 100%; object-fit: cover; object-position: top; border-left: 6px solid var(--bezel); border-right: 6px solid var(--bezel); }
.tile .pic svg { width: 100%; height: 100%; }
.tile .words { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.tile b { font: 700 19px/1.2 var(--cond); color: var(--text); }
.tile span { font-size: 15px; line-height: 1.5; color: var(--text-dim); }

/* ---------- The listing ---------- */
.group { padding-top: 56px; display: grid; gap: 22px; justify-items: center; border-top: 1px solid var(--edge); grid-template-columns: minmax(0, 1fr); }
.group h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; text-align: center; }
.group > p { color: var(--text-dim); font-size: 17px; max-width: 56ch; text-align: center; }

/* ---------- Closing and footer, as on the homepage ---------- */
.closing { padding-block: 110px 120px; display: grid; gap: 22px; justify-items: center; text-align: center; border-top: 1px solid var(--edge); margin-top: 112px; }
.closing h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }
.closing .lede { color: var(--text-dim); font-size: 18px; max-width: 50ch; }
.closing .signup { justify-content: center; margin-inline: auto; }
.signup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.signup input { flex: 1 1 240px; min-width: 0; font: 400 16px/1.2 var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px; }
.signup input::placeholder { color: var(--text-faint); }
.primary { flex: 0 0 auto; font: 700 17px var(--cond); letter-spacing: .3px; color: #fff; background: var(--marker); border: 0; border-radius: var(--radius); padding: 14px 22px; cursor: pointer; }
.primary:hover { filter: brightness(1.06); }
.form-note { font: 500 12px/1.4 var(--mono); color: var(--text-faint); margin-top: 10px; min-height: 1.4em; }
footer { padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; border-top: 1px solid var(--edge); }
footer .mark { font-size: 22px; }
footer .credits { font: 500 11.5px/1.5 var(--mono); color: var(--text-faint); }

@media (max-width: 820px) {
  .split, .split.flip, .tabbed { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; }
  .split.flip > .phone, .split.flip > .phones { order: 0; }
  .split h2 { text-align: center; }
  .tabbed .phone { order: -1; }
}
@media (max-width: 599px) {
  body { font-size: 15px; }
  :root { --nav-h: 52px; }
  .site-nav { padding-inline: 16px; }
  .site-nav .wrap { gap: 16px; }
  .site-nav .mark { font-size: 22px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 15px; }
  /* With three links or more there is no room for Home on a phone; the Linje mark goes home. */
  .nav-links a:first-child:nth-last-child(n+3) { display: none; }
  .site-nav .ghost { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .head { padding-top: 44px; gap: 16px; }
  .head h1 { font-size: 34px; }
  .answer { padding: 18px; }
  .answer p { font-size: 17px; }
  .read p, .read li { font-size: 16px; }
  .read h2, .group h2 { font-size: 25px; }
  .phone { --pw: 220px; }
  .phones .phone { --pw: 170px; }
  .phones .phone:nth-child(2) { margin-top: 32px; }
  .readout output, .readout strong { font-size: 24px; }
  .readout .big output { font-size: 34px; }
  .tablist button b { font-size: 18px; }
  table.data { font-size: 14px; }
  table.data th, table.data td { padding: 9px 10px; }
  .closing { padding-block: 64px 72px; margin-top: 72px; }
  .closing h2 { font-size: 30px; }
  .signup .primary, .signup input { flex: 1 1 100%; }
  .signup .primary { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone .screen > .on-swap { transition: none; }
}

/* ---------- How Linje builds a ride: steps beside the map ---------- */
.how { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; width: 100%; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.how-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 10px 0 10px 18px; cursor: pointer; border-radius: var(--radius); }
.how-steps li:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.how-steps li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--edge); border-radius: 2px; }
.how-steps .bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--text-dim); border-radius: 2px; transform-origin: top; transform: scaleY(0); z-index: 1; }
.how-steps li.on .bar { background: var(--marker); }
.how-steps .n { font: 500 13px/1.6 var(--mono); color: var(--text-faint); }
.how-steps .t { font: 700 19px/1.25 var(--cond); color: var(--text-faint); }
.how-steps .d { grid-column: 2; font-size: 14.5px; line-height: 1.45; color: var(--text-dim); display: none; }
.how-steps li.done .t { color: var(--text-dim); }
.how-steps li.on .t { color: var(--text); }
.how-steps li.on .n { color: var(--marker); }
.how-steps li.on .d { display: block; }
.how-map { position: relative; }
.how-map svg { display: block; width: 100%; height: auto; }
.how-read { margin: 6px 0 0; font: 500 13px/1.75 var(--mono); color: var(--text-faint); white-space: pre; min-height: 9em; overflow-x: auto; }
.how-read b { color: var(--text); font-weight: 500; }
.how-read .bad { color: #B5322A; }
.how-card { position: absolute; right: 2%; bottom: 14%; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; box-shadow: 0 18px 36px -24px rgba(11, 26, 30, .5); }
.how-card.on { opacity: 1; transform: none; }
.how-card .label { font-size: 13px; color: var(--text-faint); }
.how-card .km { font: 700 34px/1 var(--cond); color: var(--text); }
.how-card .km small { font-size: 16px; margin-left: 4px; color: var(--text-dim); }
.how-card .row { display: flex; gap: 16px; font-size: 14px; color: var(--text-dim); }
.how-card .row b { color: var(--text); font-weight: 600; }
.play { border: 1px solid var(--edge); background: var(--surface); border-radius: var(--radius); padding: 8px 14px; min-height: 40px; font: 600 15px/1 var(--cond); color: var(--text-dim); cursor: pointer; }
@media (max-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .how-map { order: -1; }
  .how-card { position: static; opacity: 1; transform: none; margin-top: 10px; }
  .how-card:not(.on) { visibility: hidden; height: 0; padding: 0; border: 0; margin: 0; }
  .how-steps li:not(.on) .t { font-size: 16px; }
}

/* ---------- Which way round: the two ways, and the one Linje picks ---------- */
.ways { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ways > div { min-width: 170px; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 2px; text-align: center; }
.ways span { font-size: 14px; color: var(--text-faint); }
.ways output { font: 700 30px/1.1 var(--cond); color: var(--text); }
.ways > div.win { border-color: var(--confirm); box-shadow: inset 0 0 0 1px var(--confirm); }
.ways > div.win span::after { content: " \2713"; color: var(--confirm); }
.say { max-width: 52ch; text-align: center; color: var(--text); font-size: 17px; min-height: 3.2em; }

/* ---------- The terrain dial ---------- */
.dial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 960px; width: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 28px; }
.dial .knobs { display: grid; gap: 14px; }
.dial .verdict { text-align: center; }
.gauge { --fill: 0; width: 26px; height: 150px; margin: 0 auto 10px; border: 1px solid var(--edge); background: var(--page); border-radius: 2px; position: relative; overflow: hidden; }
.gauge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 100%); background: var(--rain); transition: height .25s; }
@media (max-width: 760px) { .dial { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* ---------- The rain diary and the race ---------- */
.diary, .race, .hours, .gpx { width: 100%; max-width: 900px; display: grid; gap: 18px; justify-items: center; }
.diary svg, .race svg, .hours svg, .gpx svg { width: 100%; height: auto; display: block; touch-action: none; }
.hours .scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hours .scroll svg { min-width: 760px; }
.panel { width: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; justify-items: center; }

/* ---------- Device steps ---------- */
.devices { width: 100%; max-width: 760px; display: grid; gap: 18px; justify-items: center; }
.devices [role="tablist"] { flex-wrap: wrap; justify-content: center; }
.devices [role="tabpanel"] { width: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 12px; }
.devices [role="tabpanel"] ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--text-dim); font-size: 17px; }
.devices [role="tabpanel"] h3 { font-size: 22px; }

/* ---------- Data sources, as the deck's table ---------- */
.sources-table td:first-child { white-space: nowrap; color: var(--text); font: 700 16px/1.3 var(--cond); }
.sources-table td:nth-child(3) { min-width: 190px; }
.split .words p { color: var(--text-dim); font-size: 18px; }
.split .words p strong { color: var(--text); font-weight: 500; }
@media (max-width: 599px) { .split .words p { font-size: 16px; } }
/* One column that may shrink, in every centred grid: without minmax(0, …)
   the column grows to its widest child and the page runs off a phone. */
.head, .band, .related, .panel, .diary, .race, .hours, .gpx, .devices { grid-template-columns: minmax(0, 1fr); }
.tiles { max-width: 100%; }
@media (max-width: 400px) { .tiles, .tiles.two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rhythm (2026-10-22): one gap between every section of a page,
   set here and nowhere else, so no block brings its own padding. ---------- */
main > .band, main > .read, main > .split, main > .related, main > .group, main > .updates-list { margin-top: 88px; }
main > .head + .band { margin-top: 56px; }
main > .group + .group { margin-top: 64px; }
.read > .sources { margin-top: 18px; }
@media (max-width: 599px) {
  main > .band, main > .read, main > .split, main > .related, main > .group, main > .updates-list { margin-top: 56px; }
  main > .head + .band { margin-top: 36px; }
  main > .group + .group { margin-top: 40px; }
  .group { padding-top: 36px; }
}

/* Questions, answered short: what a search or an assistant quotes. */
.faq { display: grid; gap: 8px; margin-top: 34px; }
.faq h2 { margin-bottom: 14px; }
.faq h3 { font-size: 20px; line-height: 1.25; color: var(--text); margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--edge); }
.faq h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.faq p { color: var(--text-dim); }
@media (max-width: 599px) { .faq h3 { font-size: 18px; } }
/* Tables of figures keep their row names on one line; they scroll instead. */
table.data:has(td.n) tbody th { white-space: nowrap; }

/* ---------- The updates timeline (2026-10-22) ----------
   The route is a Linje route: orange on its white casing over the marka, and
   each update a place pin in the cabin violet, as the app draws a layer. */
.tl { width: 100%; max-width: var(--wrap); position: relative; }
.tl-map { display: block; width: 100%; height: auto; overflow: visible; }
.tl-land { fill: rgba(199, 184, 153, .30); stroke: rgba(154, 132, 90, .32); stroke-width: 1.2; }
.tl-place { font: 500 12px var(--mono); letter-spacing: 2px; fill: #8A7A5A; opacity: .75; }
.tl-casing { fill: none; stroke: var(--surface); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }
.tl-line { fill: none; stroke: var(--marker); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.tl-chev { fill: none; stroke: var(--surface); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-start circle { fill: var(--text); stroke: var(--surface); stroke-width: 3; }
.tl-stop { cursor: pointer; outline: none; }
.tl-hit { fill: transparent; }
.tl-pin { fill: #6C4AB6; stroke: var(--surface); stroke-width: 3.5; transition: fill .15s; }
.tl-num { font: 700 15px var(--cond); fill: #FFFFFF; pointer-events: none; }
.tl-date { font: 500 12px var(--mono); fill: var(--text-faint); }
.tl-title { font: 700 17px var(--cond); fill: var(--text); }
.tl-stop:hover .tl-pin, .tl-stop:focus-visible .tl-pin, .tl-stop.on .tl-pin { fill: var(--text); }
.tl-stop:focus-visible .tl-pin { stroke: var(--marker); }
.tl-stop:hover .tl-title, .tl-stop:focus-visible .tl-title { text-decoration: underline; }
.tl-pulse { fill: none; stroke: #6C4AB6; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tl-pulse 2.2s ease-out infinite; }
@keyframes tl-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2.3); opacity: 0; } }
/* The ride draws itself once, the stops arriving as the line reaches them. */
.tl.drawing .tl-line { stroke-dasharray: 1000; }
.tl.drawing .tl-stop, .tl.drawing .tl-chev { opacity: 0; }
.tl .tl-stop.arrive { animation: tl-arrive .45s cubic-bezier(.2, .9, .3, 1.3) both; transform-box: fill-box; transform-origin: center; }
@keyframes tl-arrive { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 760px) {
  .tl-label { display: none; }
  .tl-pin { r: 30px; stroke-width: 6; }
  .tl-hit { r: 40px; }
  .tl-num { font-size: 32px; }
  .tl-pulse { r: 30px; stroke-width: 4; }
  .tl-line { stroke-width: 10; }
  .tl-casing { stroke-width: 18; }
  .tl-start circle { r: 10px; }
  .tl-place { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .tl-pulse { animation: none; } }

/* The list under the route: every update in full, newest first. */
.updates-list { max-width: 940px; margin-inline: auto; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.updates-list > h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; text-align: center; }
.update { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head media" "body media"; gap: 6px 36px; scroll-margin-top: 24px; }
.u-head { grid-area: head; display: grid; gap: 6px; }
.u-meta { font: 500 12.5px/1.4 var(--mono); color: var(--text-faint); }
.u-head h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.u-sum { color: var(--text); font-size: 18px; }
.u-media { grid-area: media; display: flex; gap: 14px; align-items: flex-start; }
.u-media .phone { --pw: 150px; box-shadow: 0 16px 32px -20px rgba(11, 26, 30, .45); }
.u-card { width: 230px; border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden; background: var(--page); }
.u-card img { display: block; width: 100%; height: auto; }
.u-body { grid-area: body; display: grid; gap: 10px; align-content: start; }
.u-body h4 { font: 700 15px/1.2 var(--cond); letter-spacing: .3px; color: var(--text); margin: 10px 0 0; }
.u-body p, .u-body li { color: var(--text-dim); font-size: 16px; line-height: 1.55; }
.u-body ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; }
.u-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--edge); margin-left: 6px; }
.u-steps li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 4px 0 4px 16px; font-size: 15px !important; }
.u-steps li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #6C4AB6; border: 2px solid var(--surface); }
.u-steps time { font: 500 12.5px/1.9 var(--mono); color: var(--text-faint); }
.u-links { font-size: 15px !important; }
.u-act { margin-top: 6px; }
.u-act .ghost { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 760px) {
  .update { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "body"; padding: 20px; gap: 14px; }
  .u-media { justify-content: center; }
  .u-media .phone { --pw: 140px; }
  .u-card { width: 100%; max-width: 300px; }
}

/* The sheet a stop opens: a bottom sheet on a phone, a card on a desk. */
.tl-sheet { border: 1px solid var(--edge); border-radius: 6px; padding: 0; width: min(880px, calc(100vw - 32px)); max-height: min(88vh, 900px); background: var(--page); color: var(--text); box-shadow: 0 30px 80px -30px rgba(11, 26, 30, .6); overflow: hidden; }
.tl-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
.tl-sheet::backdrop { background: rgba(11, 26, 30, .45); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--edge); background: var(--surface); }
.sheet-count { font: 500 13px var(--mono); color: var(--text-faint); margin-right: auto; padding-left: 4px; }
.sheet-nav, .sheet-close { width: 44px; height: 44px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--page); font: 600 22px/1 var(--sans); color: var(--text-dim); cursor: pointer; }
.sheet-nav:disabled { opacity: .35; cursor: default; }
.sheet-nav:hover:not(:disabled), .sheet-close:hover { border-color: var(--text-dim); color: var(--text); }
.sheet-close { font-size: 18px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-body .update { border: 0; border-radius: 0; background: transparent; padding: 24px 28px 30px; }
@media (max-width: 760px) {
  .tl-sheet { width: 100vw; max-width: 100vw; max-height: 90vh; margin: auto 0 0; border-radius: 14px 14px 0 0; border-bottom: 0; }
  .tl-sheet[open] { animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-up { from { transform: translateY(40%); } to { transform: none; } }
  .sheet-body .update { padding: 18px 18px 26px; }
}
@media (prefers-reduced-motion: reduce) { .tl-sheet[open] { animation: none; } }

.primary-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font: 700 17px var(--cond); letter-spacing: .3px; color: #fff; background: var(--marker); border-radius: var(--radius); text-decoration: none; }
.primary-link:hover { filter: brightness(1.06); }

/* The feedback form. */
.fb { max-width: 620px; justify-items: stretch; text-align: left; }
.fb-field { display: grid; gap: 6px; }
.fb-field span { font-size: 15px; color: var(--text-dim); }
.fb-field select, .fb-field textarea, .fb-field input { font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--page); border: 1px solid var(--edge); border-radius: var(--radius); padding: 12px; width: 100%; }
.fb-field textarea { resize: vertical; min-height: 150px; }
.fb .primary { justify-self: start; min-height: 48px; }
.fb-sent { max-width: 620px; }

/* The smallest phones (320 px): the header's gaps and type tighten so the
   waitlist button stays on screen beside three links. */
@media (max-width: 374px) {
  .site-nav .wrap { gap: 10px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 14px; }
  .site-nav .ghost { padding: 0 9px; }
}
