/* FlightOps tokens. The brand: the green cutting mat the bench stands on, the paper the
   product prints its evidence on, near-black ink and the yellow of the label tape. Every colour and face on the site
   comes from here. */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  /* the mat (the page surface: posture Drenched) and its ink */
  --color-paper: oklch(36.4% 0.045 173);
  --color-paper-2: oklch(31.5% 0.04 172);
  --color-paper-3: oklch(23% 0.026 169);
  --color-ink: oklch(96.7% 0.006 160);
  --color-ink-2: oklch(91.4% 0.012 162);
  --color-muted: oklch(86.4% 0.016 167);
  --color-rule: oklch(54% 0.035 170);
  --mat-line: oklch(98% 0.01 165 / 0.1);
  --mat-line-2: oklch(98% 0.01 165 / 0.055);
  --mat-tick: oklch(98% 0.01 165 / 0.55);
  --mat-tick-2: oklch(98% 0.01 165 / 0.35);
  --mat-ruler-edge: oklch(98% 0.01 165 / 0.18);

  /* the bench's own layer: the room around the mat, floating panels, the video screen */
  --color-room-veil: oklch(23% 0.026 169 / 0.6);
  --color-bench-vignette: oklch(13% 0.012 165 / 0.5); /* the darker corners over the 3D bench */
  --color-panel: oklch(23% 0.026 169 / 0.94);
  --color-panel-edge: oklch(98% 0.01 165 / 0.2);
  --color-screen: oklch(12% 0.006 170);
  --screen-edge: 0 0 0 1px oklch(98% 0.01 165 / 0.06);
  --scrim-0: oklch(12% 0.006 170 / 0);
  --scrim: oklch(12% 0.006 170 / 0.72);
  --glass-btn: oklch(98% 0.01 165 / 0.12);
  --glass-btn-hi: oklch(98% 0.01 165 / 0.22);
  --shadow-tip: 0 4px 12px oklch(0% 0 0 / 0.4);
  --shadow-lift: 0 6px 16px oklch(0% 0 0 / 0.4);
  --shadow-panel: 0 12px 30px oklch(0% 0 0 / 0.5);

  /* the sheet: the paper FlightOps prints its evidence on, and the band that changes the page's paper */
  --color-sheet: oklch(98.7% 0.005 106);
  --color-sheet-hi: oklch(99.6% 0.003 106);
  --color-sheet-2: oklch(95.6% 0.006 106);
  --color-sheet-ink: oklch(20.5% 0.004 106);
  --color-sheet-ink-2: oklch(32% 0.007 107);
  --color-sheet-muted: oklch(46.9% 0.009 107);
  --color-sheet-rule: oklch(87% 0.008 106);
  --color-sheet-edge: oklch(55% 0.008 106);
  --color-press: oklch(33% 0.006 106);

  /* the label tape: the wordmark */
  --color-tape: oklch(19.1% 0.003 106);
  --color-tape-ink: oklch(96.4% 0.005 106);
  --tape-emboss: 0 1px 0 oklch(100% 0 0 / 0.25), 0 -1px 0 oklch(0% 0 0 / 0.6);
  --tape-shadow: 0 2px 3px oklch(0% 0 0 / 0.35);

  /* one signal: the label-tape yellow, for focus, the current page and the playing chapter */
  --color-accent: oklch(90.8% 0.127 99);
  --color-accent-ink: oklch(20.5% 0.02 99);
  --color-focus: oklch(90.8% 0.127 99);
  --color-focus-sheet: oklch(45% 0.1 85);

  /* what the product reports */
  --color-error: oklch(50% 0.182 30); --color-error-wash: oklch(93.5% 0.03 30);
  --color-warn: oklch(47% 0.11 65);
  --color-info: oklch(45% 0.15 262);
  --color-success: oklch(47.9% 0.103 155); --color-success-wash: oklch(94.8% 0.016 154);

  --font-display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Courier Prime", ui-monospace, monospace;
  --font-hand: "Kalam", cursive;
  --display-weight: 600;

  --radius-card: 6px; --radius-btn: 4px; --radius-input: 4px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em;
}

/* Base rules, with one change: the element rules have zero specificity and skip the bench's own
   layer (.layer: the reading views, tooltips and keyboard controls), whose type is measured against 3D paper. */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* taps: no grey flash (each control has its own :active), and no double-tap zoom delay */
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(h1, h2, h3) { margin: 0; }
:where(h1, h2, h3):where(:not(.layer *)) { font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
:where(h1):where(:not(.layer *)) { max-width: 20ch; font-size: var(--text-display); }
:where(h2):where(:not(.layer *)) { max-width: 30ch; font-size: var(--text-section); }
:where(h3):where(:not(.layer *)) { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
:where(.lead):where(:not(.layer *)) { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
/* the longhand, so a nowrap rule above a paragraph still holds (the shorthand resets wrapping) */
p { margin: 0; text-wrap-style: pretty; }
:where(p:not([class])):where(:not(.layer *)) { max-width: 65ch; }
:where(img, video):where(:not(.layer *)) { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
:where(button, input, select, textarea) { font: inherit; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* The site's shared stylesheet: the mat, the chrome (header, breadcrumb, footer), buttons, section rhythm and the
   compositions more than one page uses. The build joins the tokens, the base rules and this file into one stylesheet; each page
   keeps only its own rules inline, after this file, so a page rule wins a tie. */

/* the mat: every page is printed on the cutting mat (the bench's drawer exit fades to this same surface, .page-fade) */
.dk { position: relative; background-color: var(--color-paper); background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px), linear-gradient(var(--mat-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-2) 1px, transparent 1px); background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px; color: var(--color-ink); }
.ruler { height: var(--space-md); background-image: linear-gradient(90deg, var(--mat-tick) 1px, transparent 1px), linear-gradient(90deg, var(--mat-tick-2) 1px, transparent 1px); background-size: 40px 16px, 8px 7px; background-repeat: repeat-x; border-bottom: 1px solid var(--mat-ruler-edge); }
.mono, code, kbd { font-family: var(--font-outlier); }
code { font-size: 0.9em; }
.container, .sec, .top, .crumbs { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* the wordmark: the label tape, the one place the site spells in tracked capitals */
.dymo { display: inline-block; padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-md); background: var(--color-tape); color: var(--color-tape-ink); border-radius: var(--radius-btn); font-weight: 600; font-size: var(--text-md); line-height: 1.5; letter-spacing: 0.22em; text-decoration: none; text-shadow: var(--tape-emboss); box-shadow: var(--tape-shadow); transform: rotate(-1deg); white-space: nowrap; }
.dymo:hover { color: var(--color-sheet-hi); }

/* header: the wordmark, the pages, one quiet action */
.top { position: relative; z-index: var(--z-raised); display: flex; align-items: center; gap: var(--space-lg); min-height: 80px; padding-top: var(--space-md); }
.links { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; flex-wrap: wrap; }
.links a:not(.btn) { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.4; text-decoration: none; white-space: nowrap; }
.links a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; }
.links a[aria-current] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

/* breadcrumb: where this page sits, and the way back to the bench (that link goes back in history, see each page) */
.crumbs { display: flex; align-items: center; gap: var(--space-xs); padding-top: var(--space-lg); font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); white-space: nowrap; }
.crumbs a { color: var(--color-ink); text-underline-offset: 0.3em; }
.crumbs a:hover { color: var(--color-sheet-hi); }
.crumbs span[aria-hidden] { color: var(--color-rule); }

/* buttons: light on the mat (.btn-paper), ink on a sheet (.btn), outlined for a quiet second action (.btn-line) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-sheet-ink); border-radius: var(--radius-btn); background: var(--color-sheet-ink); color: var(--color-sheet); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
/* hover colours only where a pointer can hover, so a tap does not leave a button lit */
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--color-press); border-color: var(--color-press); color: var(--color-sheet-hi); } }
.btn:active { scale: 0.97; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; scale: 1; }
.btn-paper { background: var(--color-sheet); border-color: var(--color-sheet); color: var(--color-sheet-ink); }
@media (hover: hover) and (pointer: fine) { .btn-paper:hover { background: var(--color-sheet-hi); border-color: var(--color-sheet-hi); color: var(--color-sheet-ink); } }
.btn-line { background: transparent; border-color: var(--color-muted); color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { background: var(--color-paper-2); border-color: var(--color-ink); color: var(--color-ink); } }

/* the skip link: the first keyboard stop, shown only while focused; its target takes focus without a ring */
.skip-link { position: absolute; left: var(--space-lg); top: -96px; z-index: var(--z-modal); padding: var(--space-xs) var(--space-sm); background: var(--color-sheet); color: var(--color-sheet-ink); border-radius: var(--radius-btn); font-size: var(--text-sm); line-height: 1.4; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--space-lg); }
.skip-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
main:focus, [tabindex="-1"]:focus { outline: none; }

/* sections: three gaps, mixed by page (.gap-s, .gap-l) */
.sec { padding-top: var(--section-gap); }
.sec.gap-s { padding-top: var(--section-gap-s); }
.sec.gap-l { padding-top: var(--section-gap-l); }
/* a sub page opens with a Banner hero (the head block); its product output follows as the next section */
main > .sec:first-child { padding-top: var(--space-2xl); }
.sec.out { padding-top: var(--space-2xl); }
.sec.out > :first-child { margin-top: 0; }
.sec h2, .sec .h1 { color: var(--color-ink); }
.head { display: grid; gap: var(--space-md); }
.head .lead, .sec .lead { color: var(--color-muted); }
.head .lead a, .sec .lead a { color: var(--color-ink); }
.head.split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap-columns); justify-content: space-between; align-items: end; }
.sec .body { margin-top: var(--space-2xl); }
.sec .note { margin-top: var(--space-lg); font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }
.sec .note a { color: var(--color-ink); }

/* steps: a real sequence, numbered by the list itself */
.steps:where(:not(.layer *)) { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); counter-reset: step; }
.steps:where(:not(.layer *)) > li { position: relative; display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); counter-increment: step; }
.steps:where(:not(.layer *)) > li::before { content: counter(step, decimal-leading-zero); margin-bottom: var(--space-sm); font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.steps:where(:not(.layer *)) h3 { color: var(--color-ink); }
.steps:where(:not(.layer *)) p { color: var(--color-ink-2); max-width: 46ch; }
.steps:where(:not(.layer *)) .figure { margin-top: var(--space-xs); font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }
.steps:where(:not(.layer *)) .figure b { font-weight: 700; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.steps:where(:not(.layer *)) .go { margin-top: auto; padding-top: var(--space-xs); font-weight: 600; color: var(--color-ink); text-underline-offset: 0.3em; }
.steps:where(:not(.layer *)) .go:hover { color: var(--color-sheet-hi); }

/* rows: one item a row, parted by hairlines; a head may sit beside them (FAQ, an index) */
.rowset { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); align-items: start; }
.rowset > .head { position: sticky; top: var(--space-xl); }
.rows { border-bottom: 1px solid var(--color-rule); }
.rows > * { border-top: 1px solid var(--color-rule); }
.rows details > summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 72px; padding: var(--space-md) 0; font-size: var(--text-lg); line-height: 1.35; font-weight: 600; color: var(--color-ink); cursor: pointer; list-style: none; }
.rows details > summary::-webkit-details-marker { display: none; }
.rows details > summary svg { flex: none; width: 20px; height: 20px; color: var(--color-muted); }
.rows details[open] > summary svg { rotate: 45deg; }
.rows details > summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.rows details > p, .rows details > div { padding-bottom: var(--space-lg); max-width: 68ch; color: var(--color-ink-2); }
.rows code { font-size: 0.9em; color: var(--color-ink); }
.rows a { color: var(--color-ink); }

/* three facts side by side, parted by vertical hairlines */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.facts > div { padding: var(--space-xs) var(--space-xl); border-left: 1px solid var(--color-rule); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts > div:last-child { padding-right: 0; }
.facts dt { font-size: var(--text-title); line-height: 1.2; font-weight: 600; color: var(--color-ink); }
.facts dd { margin: var(--space-sm) 0 0; color: var(--color-ink-2); max-width: 40ch; }
.facts dd a { color: var(--color-ink); }

/* the sheet: a change of paper. As a band it runs edge to edge; as a surface it holds the product's own output or a form */
.band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-sheet); color: var(--color-sheet-ink); }
.band .sec { padding-top: 0; }
.sheet { background: var(--color-sheet); color: var(--color-sheet-ink); border-radius: var(--radius-card); }
.band, .sheet { --color-focus: var(--color-focus-sheet); }
.band h2, .band h3, .sheet h2, .sheet h3 { color: var(--color-sheet-ink); }
.band .lead { color: var(--color-sheet-ink-2); }
.band a, .sheet a, .band .lead a { color: var(--color-sheet-ink); }
.band code, .sheet code { font-size: 0.9em; }

/* two columns parted by a vertical hairline (on a band) */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair > * { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xs) var(--space-2xl); border-left: 1px solid var(--color-sheet-rule); }
.pair > :first-child { padding-left: 0; border-left: 0; }
.pair > :last-child { padding-right: 0; }
.pair .tag { font-size: var(--text-sm); line-height: 1.4; font-weight: 600; color: var(--color-sheet-muted); }
.pair p { color: var(--color-sheet-ink-2); max-width: 56ch; }
.pair .figure { margin-top: auto; padding-top: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.45; color: var(--color-success); }

/* a form on a sheet */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.form label { display: flex; flex-direction: column; gap: var(--space-xs); font-size: var(--text-sm); line-height: 1.4; font-weight: 600; color: var(--color-sheet-ink-2); }
.form .opt { font-weight: 400; color: var(--color-sheet-muted); }
.form input, .form select, .form textarea { min-height: 48px; padding: var(--space-sm) var(--space-sm); border: 1px solid var(--color-sheet-edge); border-radius: var(--radius-input); background: var(--color-sheet-hi); color: var(--color-sheet-ink); font: 400 var(--text-md)/1.5 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; }
.form textarea { min-height: 88px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-color: var(--color-focus-sheet); }
.form input:disabled, .form select:disabled, .form textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.form .full { grid-column: 1 / -1; }
.form .check { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--space-sm); min-height: 44px; font-weight: 400; color: var(--color-sheet-ink); }
.form .check input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--color-sheet-ink); }
.form .terms-line { grid-column: 1 / -1; font-size: var(--text-sm); line-height: 1.45; color: var(--color-sheet-ink-2); }
.send { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.send p { font-size: var(--text-sm); line-height: 1.45; color: var(--color-sheet-muted); }
.send .risk { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); font-weight: 600; color: var(--color-success); }
.send .risk span { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.send .risk svg { width: 16px; height: 16px; }
.sent { grid-column: 1 / -1; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-success); border-radius: var(--radius-input); color: var(--color-success); font-weight: 600; }
[data-sent] { grid-column: 1 / -1; }

/* the next page: the closing band of every sub page */
.next { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); }
.next a { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); min-height: 240px; padding: var(--space-xl); border-radius: var(--radius-card); text-decoration: none; }
.next .to { background: var(--color-paper-3); color: var(--color-ink); }
.next .to:hover { background: var(--color-paper-2); }
/* the card's ring is drawn outside it, on the mat: keep the mat's focus colour */
.next .apply { background: var(--color-sheet); color: var(--color-sheet-ink); }
.next .apply:hover { background: var(--color-sheet-hi); }
.next .k { font-size: var(--text-sm); line-height: 1.4; font-weight: 600; color: var(--color-muted); }
.next .apply .k { color: var(--color-sheet-muted); }
.next .t { font-size: var(--text-section); line-height: 1.05; font-weight: 600; letter-spacing: var(--tracking-display); text-wrap: balance; max-width: 18ch; }
.next .apply .t { font-size: var(--text-title); line-height: 1.25; max-width: 24ch; }
.next .act { font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; }

/* footer: a mast, the wordmark large over the pages and the legal lines */
.foot { margin-top: var(--section-gap); padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.foot .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl) var(--gap-columns); align-items: end; }
.foot .dymo { justify-self: start; font-size: var(--text-2xl); padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-lg); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); justify-content: flex-end; }
.foot nav a { color: var(--color-ink); font-size: var(--text-md); text-underline-offset: 0.3em; }
.foot nav a:hover { color: var(--color-sheet-hi); }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin: 0; padding: var(--space-lg) 0 0; border-top: 1px solid var(--color-rule); list-style: none; font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }
.legal a { color: var(--color-ink); text-underline-offset: 0.3em; }

/* reveal: hidden only once the page has loaded and only out of view, never under reduced motion; an item shown at
   once (in view on load, or focused) skips the transition for that change (.now). --i staggers siblings. */
@media (prefers-reduced-motion: no-preference) {
  html.js.reveal-on .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.4s cubic-bezier(.23, 1, .32, 1), transform 0.4s cubic-bezier(.23, 1, .32, 1); transition-delay: calc(min(var(--i, 0), 7) * 40ms); }
  html.js.reveal-on .reveal.in { opacity: 1; transform: none; }
  html.js.reveal-on .now, html.js.reveal-on .now *, html.js.reveal-on .now *::after { transition: none !important; }
}
/* press and hover: colours ease over 150 ms, and buttons press in a little while held */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .links a, .crumbs a, .foot nav a, a.dymo, .steps:where(:not(.layer *)) .go, .next a, .chip { transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out), scale var(--dur-micro) var(--ease-out); }
  .rows details > summary svg { transition: rotate 0.2s cubic-bezier(.23, 1, .32, 1); }
}

@media (max-width: 1240px) {
  .links a:not(.btn) { display: none; }
}
@media (max-width: 60rem) {
  .head.split, .rowset, .next, .pair, .facts, .steps:where(:not(.layer *)) { grid-template-columns: minmax(0, 1fr); }
  .rowset > .head { position: static; margin-bottom: var(--space-xl); }
  .pair > *, .facts > div { padding: var(--space-lg) 0; border-left: 0; border-top: 1px solid var(--color-sheet-rule); }
  .facts > div { border-top-color: var(--color-rule); }
  .pair > :first-child, .facts > div:first-child { border-top: 0; padding-top: 0; }
  .foot .container { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .next a { min-height: 0; }
}
/* the wordmark and the header button no longer fit one row; the page repeats the button right below */
@media (max-width: 374px) { .links { display: none; } }
