/* Entry pages, Field Kit (docs/DESIGN.md): the login / sign-up cover, onboarding (welcome + consent, quick topics,
   stretch; the editor and the "understood" panel are in pages/profile.css), re-consent, goodbye, and the legal
   reading layout (privacy, terms, cookies). Tokens only (no light-dark()). No drawn maps here: the real atlas is the
   only map in the app. */

/* ============================================================== login / sign-up: a cover */
main:has(> .cover) { overflow-x: clip; }
.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: var(--s5) var(--s6); align-items: center;
  min-height: calc(100dvh - 190px); padding-block: 4vh var(--s5); }
.cover-text { min-width: 0; }
.cover-wm.wm { font-size: clamp(64px, 10vw, 124px); min-height: 0; margin: 0 0 var(--s4) -.02em; letter-spacing: -.05em; line-height: .9; }
.cover-wm.wm > span:first-child { box-shadow: .03em .03em 0 var(--drop); border-width: .016em; }
.cover-wm.wm > span:first-child::before { border-width: .016em; }
.cover-tag { margin: 0; max-width: 15ch; font: 800 clamp(34px, 4.6vw, 56px)/.98 var(--display); font-stretch: 80%; letter-spacing: -.024em;
  font-variation-settings: "opsz" 96; text-wrap: balance; color: var(--ink); }
.cover-tag em { font: italic 380 1.04em/.95 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.025em; color: var(--red-ink); }
.cover-meta { margin: var(--s4) 0 0; font: 500 var(--fs-xs)/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cover-bands { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: var(--s4) 0 0; padding: 0; list-style: none; }
.cover-bands .stk { height: 30px; font-size: 11px; }
.cover-bands li:nth-child(2) .stk { --tilt: 1.5deg; }
.cover-bands li:nth-child(3) .stk { --tilt: -1deg; }
.cover-why { margin: var(--s3) 0 0; max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

.signin { display: grid; gap: 0; padding: var(--s4); background: var(--card); border: 2px solid var(--edge); border-radius: var(--r);
  box-shadow: var(--lift); min-width: 0; }
.signin > .label { color: var(--ink); }
.signin-h { margin: 6px 0 var(--s3); font: 800 26px/1.02 var(--display); font-stretch: 84%; letter-spacing: -.018em; }
.signin .gbtn { display: flex; width: 100%; gap: 12px; margin-top: 2px; }
.signin .gbtn svg { flex: none; width: 20px; height: 20px; }
.signin .inapp { box-shadow: none; padding: var(--s3); background: var(--sheet); border-width: 1.5px; }
.lost { margin: var(--s3) 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.lost a { color: var(--ink); }
.signin .err { display: flex; gap: 8px; align-items: baseline; margin: 0 0 var(--s3); }
.signin .err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px;
  font: 600 11px/1 var(--mono); color: var(--bad-ink); background: var(--bad); border-radius: 50%; }
.signin-col { display: grid; gap: var(--s4); align-content: center; min-width: 0; }
/* the developer sign-in: printed, quiet, clearly not the main door */
.signin.dev { background: var(--sheet); box-shadow: none; border: 1.5px dashed var(--line-strong); }
.signin.dev .field-row label.field { margin-top: var(--s3); }
.signin input:not([type=checkbox]) { min-height: 48px; }
.signin input[aria-invalid="true"] { border-color: var(--bad); }
.signin .btn.block { margin-top: var(--s4); }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 62px; padding: 0 10px; border: 0;
  border-left: 1px solid var(--rule); background: none; color: var(--ink-2); cursor: pointer; border-radius: 0 var(--r-s) var(--r-s) 0;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pw-toggle:hover { color: var(--ink); }
.signup-checks { display: grid; margin: 0; }
.signup-checks .check { font-size: 16px; line-height: 1.45; }
.signup-checks .check:first-child { border-top: 0; }
.signup-checks .check b { font-family: var(--sans); font-weight: 650; }
.signin .btn.accent.block { margin-top: var(--s3); }

@media (max-width: 860px) {
  .cover { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-top: var(--s4); gap: var(--s5); }
  .cover-tag { max-width: 16ch; }
}
@media (max-width: 640px) {
  .cover { padding-top: var(--s3); }
  .cover-wm.wm { margin-bottom: var(--s3); }
  .signin { padding: var(--s4) 16px; }
}

/* ============================================================== onboarding: the route of stations */
.onb { padding-bottom: var(--s4); }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; margin: calc(-1 * var(--s3)) 0 var(--s4); }
.onb-top .wm { flex: none; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0;
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps li { display: flex; align-items: center; min-width: 0; }
.steps li + li::before { content: ""; flex: none; width: 18px; height: 0; margin: 0 6px; border-top: 2px dotted var(--red); opacity: .85; }
.steps a, .steps .st { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.steps a:hover .t { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
.steps .d { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--red);
  background: var(--bg); color: var(--red-ink); font-size: 9.5px; letter-spacing: 0; }
.steps .done .d { background: var(--red); color: var(--on-red); }
.steps .done .d svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps [aria-current="step"] { color: var(--ink); }
.steps [aria-current="step"] .d { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--red); }
.steps .t { display: none; }
.steps [aria-current="step"] .t { display: inline; }
@media (min-width: 640px) {
  .steps .t { display: inline; }
  .steps li + li::before { width: 30px; margin: 0 10px; }
  .onb-top { margin-top: 0; }
}

.onb-intro { padding: var(--s2) 0 var(--s4); max-width: 46em; }
.onb h1.display { font-size: clamp(44px, 7.4vw, 88px); }
.onb .lede { margin: var(--s3) 0 0; max-width: 40em; }
.onb-alt { margin: var(--s3) 0 0; font: 400 16px/1.5 var(--serif); color: var(--ink-2); }
.onb-alt .linkbtn { font-size: 16px; display: inline-flex; min-height: 44px; align-items: center; }
.onb > .err { margin: 0 0 var(--s3); }

/* ---------- the Continue bar: sticky at thumb height on phones */
.onb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: var(--s5); }
.onb-actions .btn { min-width: 220px; }
.onb-actions .hint { font: italic 400 15px/1.4 var(--serif); color: var(--muted); }
@media (max-width: 899px) {
  .onb-actions { position: sticky; bottom: 0; z-index: 20; margin: var(--s5) -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule-2); gap: 6px 10px; }
  .onb-actions .btn { flex: 1 1 auto; min-width: 0; }
  .onb-actions .btn.accent { flex-basis: 100%; }
  .onb-actions .hint { flex: 1 1 100%; text-align: center; font-size: 14px; }
  .onb-actions .linkbtn { flex: 1 1 100%; justify-content: center; font-size: 15px; }
}
@media (min-width: 720px) and (max-width: 899px) { .onb-actions { margin-inline: -24px; padding-inline: 24px; } }

/* ---------- step 1: what you get, then the short notice and the boxes */
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.promise li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: var(--s3) var(--s4) var(--s3) 0;
  font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.promise li + li { border-left: 1px solid var(--rule); padding-left: var(--s4); }
.promise .stn { color: var(--red-ink); padding-top: 4px; font-size: 12px; }
.promise b { font: 700 16.5px/1.3 var(--sans); font-stretch: 94%; color: var(--ink); }
@media (max-width: 760px) {
  .promise { grid-template-columns: 1fr; }
  .promise li { padding-right: 0; }
  .promise li + li { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

.consent { margin-top: var(--s5); }
.short { padding: var(--s4) var(--s4) var(--s3); margin: 0 0 var(--s5); }
.short dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.short dt { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); }
.short dt .mono { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: var(--on-red);
  letter-spacing: 0; font-size: 10.5px; }
.short dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.short dd b { font-weight: 600; color: var(--ink); }
.short .full-link { margin: var(--s3) 0 0; }
@media (max-width: 760px) { .short dl { grid-template-columns: 1fr; gap: var(--s3); } }

.consent .err { margin: 0 0 var(--s3); padding: 10px 14px; border-left: 3px solid var(--bad); background: var(--card); font-size: 15px; }
.cgroup { min-width: 0; margin: 0; padding: 4px var(--s4) 6px; }
.cgroup + .cgroup { margin-top: var(--s4); }
.cgroup.req { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--lift); }
.cgroup.opt { background: var(--sheet); border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.cgroup legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0 10px; }
.cgroup legend + * { clear: both; }
.cgroup legend .label { color: var(--ink); }
.cgroup.req legend .label { color: var(--red-ink); }
.cgroup legend .sub { font: italic 400 15px/1.3 var(--serif); color: var(--muted); }
.cgroup .check { padding: 14px 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cgroup .check b { font: 650 16px/1.4 var(--sans); font-stretch: 94%; color: var(--ink); }
.cgroup .check:first-of-type b:only-child { font-size: 17px; }
.cgroup .check:hover input { border-color: var(--red); }
.cgroup .check .why-sub { display: block; margin-top: 6px; }
.cgroup .check:has(input:focus-visible) input { outline: 2.5px solid var(--focus); outline-offset: 2px; }

/* ---------- quick start: topic keys (_topics.html, ui.js) */
.qs-form { margin-top: var(--s2); }
.qs-how { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: var(--s3) 0; margin-bottom: var(--s2);
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.qs-how > .label { color: var(--ink); }
.qs-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.qs-area { border: 0; margin: var(--s4) 0 0; padding: 0; min-width: 0; }
.qs-area > legend { padding: 0; margin-bottom: 10px; color: var(--ink-2); }
.qs-chips { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.tchip { --band: var(--line-strong); display: inline-flex; max-width: 100%; }
.tchip[data-state="curious"] { --band: var(--adj); --band-t: var(--adj-t); }
.tchip[data-state="known"] { --band: var(--fam); --band-t: var(--fam-t); }
.tchip[data-state="skip"] { --band: var(--muted); }
.tchip .tbtn, .tchip.demo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 0 14px 0 12px;
  font: 650 15.5px/1.15 var(--sans); font-stretch: 94%; letter-spacing: -.005em; color: var(--ink); background: var(--card);
  border: 2px solid var(--edge); border-radius: var(--r-s); box-shadow: var(--lift-s); cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent; transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color 120ms; }
.tchip.demo { min-height: 32px; padding: 0 10px 0 8px; font-size: 13px; cursor: default; box-shadow: none; }
.tchip .tbtn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--drop); }
.tchip .tbtn:active { transform: translate(2px, 2px); box-shadow: none; }
.tmark { position: relative; flex: none; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-radius: 50%; }
/* the state word is for screen readers; on screen the mark's shape (◆ ● ✕) and the tint say it, so keys never change
   width under the finger */
.tchip .ts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tchip[data-state="curious"] .tbtn, .tchip.demo[data-state="curious"],
.tchip[data-state="known"] .tbtn, .tchip.demo[data-state="known"] { background: var(--band-t); transform: translate(2px, 2px); box-shadow: none; }
.tchip.demo[data-state] { transform: none; }
.tchip[data-state="curious"] .tmark { border: 0; border-radius: 1px; background: var(--adj); transform: rotate(45deg) scale(.86); }
.tchip[data-state="known"] .tmark { border-color: var(--fam); background: var(--fam); }
.tchip[data-state="skip"] .tbtn, .tchip.demo[data-state="skip"] { border-style: dashed; color: var(--muted); background: var(--tray);
  transform: translate(2px, 2px); box-shadow: none; }
.tchip.demo[data-state="skip"] { transform: none; }
.tchip[data-state="skip"] .tl { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.tchip[data-state="skip"] .tmark { border: 0; border-radius: 0; }
.tchip[data-state="skip"] .tmark::before, .tchip[data-state="skip"] .tmark::after { content: ""; position: absolute; left: -1px; right: -1px;
  top: 5px; height: 2px; background: var(--ink-2); transform: rotate(45deg); }
.tchip[data-state="skip"] .tmark::after { transform: rotate(-45deg); }
.tchip .tbtn:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.tchip .tbtn.bump { animation: stamp .18s var(--pop); }
/* without JS each chip is a labelled select; with JS (ui.js adds .qs-on) the cycling key replaces it */
.qs:not(.qs-on) .tbtn { display: none; }
.qs.qs-on .tsel { display: none; }
.tsel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 4px 4px 12px; border: 2px solid var(--line-strong);
  border-radius: var(--r-s); background: var(--card); font: 600 15px/1.2 var(--sans); }
.tsel select { width: auto; min-height: 36px; padding: 4px 30px 4px 8px; font-size: 15px; }
.sopts.qs-stretch { margin-top: var(--s5); }
.qs-actions .qs-count { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 899px) {
  .qs-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .qs-actions .qs-count { text-align: center; }
  .qs-actions .hint { display: none; }
}
@media (max-width: 640px) {
  .qs-chips { gap: 8px 6px; }
  .tchip .tbtn { padding-inline: 10px 12px; font-size: 15px; }
}

/* ---------- step 4 (and the quick path): how far out, as cards you pick */
.sopts { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.sopts > legend { padding: 0; margin-bottom: var(--s3); color: var(--ink); }
.sopt { position: relative; display: block; cursor: pointer; }
.sopt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sopt-body { display: grid; gap: 12px; height: 100%; padding: var(--s4); background: var(--card); border: 2px solid var(--edge);
  border-radius: var(--r); box-shadow: var(--lift); transition: transform 90ms var(--ease), box-shadow 90ms var(--ease); }
.sopt:hover .sopt-body { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--drop); }
.sopt input:checked + .sopt-body { transform: translate(3px, 3px); box-shadow: inset 0 0 0 2px var(--edge); }
.sopt input:focus-visible + .sopt-body { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.sopt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sopt-name { font: 800 26px/1.02 var(--display); font-stretch: 84%; letter-spacing: -.018em; }
.sopt-radio { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 2px solid var(--edge); border-radius: 50%; background: var(--card); }
.sopt input:checked + .sopt-body .sopt-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.mixstrip { display: flex; gap: 7px; align-items: center; padding: 10px 12px; border-radius: var(--r-xs); background: var(--sheet); border: 1px solid var(--rule); }
.mixstrip svg { width: 15px; height: 15px; fill: var(--band); }
.sopt-desc { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.mixkey { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; }
.mixkey span { display: inline-flex; align-items: center; gap: 6px; color: var(--band); font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mixkey svg { width: 10px; height: 10px; fill: var(--band); }
.sopts.compact .sopt-body { padding: 14px 16px; gap: 4px; }
.sopts.compact .sopt-name { font-size: 22px; }
.sopts.compact .sopt-desc { font-size: 15.5px; }
@media (max-width: 760px) { .sopts { grid-template-columns: 1fr; gap: 10px; } .sopt-body { padding: 16px; } }

.cap-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: end; margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--rule); }
.cap-row label.field { margin-top: 0; color: var(--ink); }
.cap-row .stepper { height: 48px; }
.cap-row .stepper button { width: 46px; }
.cap-row .stepper input { height: 44px; }
.cap-row p { margin: 0 0 4px; max-width: 34ch; }

/* ============================================================== re-consent (consent.html) */
.reconsent { max-width: 760px; padding-top: var(--s4); padding-bottom: var(--s5); }
.entry-wm { display: inline-flex; margin-bottom: var(--s5); }
.reconsent h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 var(--s3); }
.reconsent .lede { margin-bottom: var(--s5); }
.rc-list { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1.5px solid var(--ink); }
.rc-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.rc-list .stn { color: var(--red-ink); padding-top: 4px; }
.rc-list b { display: block; font: 700 18px/1.3 var(--sans); font-stretch: 94%; margin-bottom: 4px; }
.rc-list p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.rc-full { margin: 0 0 var(--s5); }
.rc-accept { display: grid; gap: var(--s3); }
.rc-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.rc-note { margin: 0; color: var(--muted); font: italic 400 15.5px/1.45 var(--serif); max-width: 60ch; }
.rc-other { margin-top: var(--s6); }
.rc-other h2 { margin: 0 0 var(--s2); font-size: 24px; }
.rc-other .row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.rc-other .row p { margin: 0; flex: 1 1 320px; color: var(--ink-2); font-size: 17px; }
.rc-del form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.rc-del label { font: 500 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex-basis: 100%; }
.rc-del label b { color: var(--ink); }
.rc-del input[type=text] { font: 400 16px/1 var(--mono); width: 12ch; }
.rc-del .err { flex-basis: 100%; margin: 0; }
@media (max-width: 640px) { .rc-actions .btn, .rc-other .row .btn, .rc-other .row form:not(.rc-del form) { flex: 1 1 100%; } .rc-other .row form .btn { width: 100%; } }

/* ============================================================== goodbye */
.bye { max-width: 680px; padding-top: var(--s4); }
.bye h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: var(--s5); }
.timeline { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline li { position: relative; padding: 26px var(--s3) 0 0; }
.timeline li::before { content: ""; position: absolute; left: 12px; right: 0; top: 11px; border-top: 2px dotted var(--line-strong); }
.timeline li.done::before { border-top: 2.5px solid var(--red); }
.timeline li:last-child::before { right: auto; width: 0; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box;
  background: var(--bg); border: 2px solid var(--line-strong); }
.timeline li.done::after { background: var(--red); border-color: var(--red); }
.timeline li.now::after { border-color: var(--red); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--red); }
.timeline .label { display: block; }
.timeline b { display: block; margin: 6px 0 4px; font: 800 22px/1.1 var(--display); font-stretch: 86%; letter-spacing: -.01em; }
.timeline span.d { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.keep { display: grid; gap: var(--s3); margin-bottom: var(--s5); padding: var(--s4); background: var(--card); border: 2px solid var(--edge);
  border-radius: var(--r); box-shadow: var(--lift); }
.keep p { margin: 0; font: italic 400 19px/1.45 var(--serif); }
.keep .btn { justify-self: start; }
.bye .details { color: var(--ink-2); }
.bye .lede { margin-bottom: var(--s4); }
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 0 var(--s4) 40px; }
  .timeline li::before { left: 11px; top: 24px; bottom: 0; right: auto; border-top: 0; border-left: 2px dotted var(--line-strong); }
  .timeline li.done::before { border-top: 0; border-left: 2.5px solid var(--red); }
  .timeline li:last-child::before { display: none; }
  .timeline b { margin-top: 2px; }
  .keep .btn { justify-self: stretch; white-space: normal; line-height: 1.25; padding-block: 10px; }
}

/* ============================================================== legal: privacy, terms, cookies */
.legal-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s3); }
.legal-page .legal { max-width: 68ch; font-size: 18px; line-height: 1.62; }
.legal-page .legal > .kicker { margin-bottom: var(--s3); }
.legal-page .legal h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: .96; max-width: 16ch; margin-bottom: var(--s4); }
.legal-page .legal h2, .legal-page .legal h3 { font: 800 26px/1.1 var(--display); font-stretch: 86%; letter-spacing: -.016em;
  margin: var(--s6) 0 var(--s3); padding-top: var(--s3); border-top: 1.5px solid var(--ink); scroll-margin-top: 24px; }
.legal-page .legal h4 { margin: var(--s4) 0 var(--s2); }
.legal-page .legal p, .legal-page .legal li { color: var(--ink); }
.legal-page .legal ol, .legal-page .legal ul { padding-left: 1.3em; }
.legal-page .legal li { margin: 8px 0; }
.legal-page .legal li::marker { color: var(--red-ink); font-family: var(--mono); font-size: .8em; }
.legal-page .legal a { text-decoration-color: color-mix(in oklab, var(--red) 55%, transparent); }
.legal-page .short { margin: var(--s4) 0 var(--s5); }
.legal-page .short dl { grid-template-columns: 1fr; gap: var(--s3); }
.legal-page .short div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 4px var(--s4); align-items: start; }
.legal-page .short dt { margin: 3px 0 0; }
.legal-page .short dd { font-size: 16px; }
.legal-foot { margin-top: var(--s6); padding-top: var(--s3); border-top: 3px double var(--ink); font: 500 15px/1.6 var(--sans); }
.legal-page > .entry-wm { grid-column: 1 / -1; margin: 0; justify-self: start; }
.legal-page .kicker { flex-wrap: wrap; row-gap: 2px; }
.legal-page .kicker b { white-space: nowrap; }
.legal-page .kicker::after { display: none; }
/* the contents: a disclosure on phones, a sticky printed index on wide screens */
.toc { min-width: 0; }
.toc-d { border: 1.5px solid var(--rule-2); border-radius: var(--r-xs); background: var(--sheet); }
.toc-d > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; cursor: pointer;
  list-style: none; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.toc-d > summary::-webkit-details-marker { display: none; }
.toc-d > summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border: 2px solid currentColor; border-top: 0; border-left: 0;
  transform: rotate(45deg); transition: transform .15s var(--ease); }
.toc-d[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc ol { list-style: none; margin: 0; padding: 4px 0 10px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 14px; text-decoration: none; font: 500 15px/1.35 var(--sans); color: var(--ink-2); }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font: 500 11px/1.9 var(--mono); color: var(--red-ink); }
.toc a:hover { color: var(--ink); background: var(--tray); }
@media (max-width: 560px) { .legal-page .short div { grid-template-columns: 1fr; } .legal-page .legal { font-size: 17.5px; } }
@media (min-width: 1000px) {
  .legal-page { grid-template-columns: 220px minmax(0, 68ch); gap: var(--s6); padding-top: var(--s4); }
  .toc { position: sticky; top: var(--s4); align-self: start; max-height: calc(100vh - 2 * var(--s4)); overflow: auto; }
  .toc-d { border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; background: none; }
  .toc-d > summary { padding: 0; min-height: 40px; cursor: default; pointer-events: none; }
  .toc-d > summary::after { display: none; }
  .toc ol { padding: 0; border-left: 1px solid var(--rule-2); }
  .toc a { margin-left: -1px; padding: 6px 0 6px 12px; border-left: 2px solid transparent; font-size: 14px; }
  .toc a:hover { background: none; border-left-color: var(--red); }
}

/* Cookie Policy tables */
.legal .table-wrap { overflow-x: auto; margin: var(--s2) 0 var(--s4); border: 1px solid var(--rule-2); border-radius: var(--r-xs); background: var(--sheet); }
.legal table { border-collapse: collapse; width: 100%; font: 400 14.5px/1.45 var(--sans); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.legal th { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.legal tr:last-child td { border-bottom: 0; }
.legal td code { font-size: 12.5px; }

.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font: 500 15px/1 var(--sans); }
.back-link:hover { color: var(--ink); }
