/* ==========================================================================
   wheelair — design system
   Built for people who need this information to be right, readable, and fast.
   WCAG 2.2 AA throughout: all text >= 4.5:1, all UI >= 3:1, targets >= 24px,
   focus always visible, motion respects prefers-reduced-motion.
   ========================================================================== */

:root {
  /* Warm ivory paper and warm near-black ink. Disabled travellers spend their lives
     in clinical blue-grey institutional interfaces; this deliberately is not one. */
  --paper:      #fbf8f3;
  --paper-2:    #f2ece2;
  --card:       #ffffff;
  --ink:        #1a1613;
  --ink-2:      #463e37;
  --muted:      #675d55;
  --line:       #e5dcce;
  --line-2:     #cfc3b0;
  /* Border of an interactive control is the only thing marking its bounds, so it
     must clear 3:1 against both the control fill and the page (WCAG 1.4.11).
     --line-2 is decoration only and is deliberately softer. */
  --control-line: #8b7f6d;

  /* Primary: deep sea blue — the colour of wayfinding and access signage.
     Secondary: warm clay, used sparingly for emphasis, never for status. */
  --accent:     #1a4c86;
  --accent-2:   #113663;
  --accent-ink: #ffffff;
  --accent-bg:  #e7eef7;
  --warm:       #9d431a;
  --warm-bg:    #f9ece3;

  /* semantic — never colour alone, always paired with a word */
  --yes:        #1c6539;  --yes-bg:     #e6f1e9;
  --no:         #a02419;  --no-bg:      #fbeae7;
  --cond:       #85500a;  --cond-bg:    #fbeeda;
  --unknown:    #58514a;  --unknown-bg: #efe9df;
  --free:       #1a4c86;  --free-bg:    #e7eef7;

  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 2px rgba(60, 45, 30, .06), 0 4px 16px -6px rgba(60, 45, 30, .12);
  --shadow-lg:  0 2px 4px rgba(60, 45, 30, .07), 0 18px 40px -18px rgba(60, 45, 30, .24);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #14120f;
    --paper-2:    #1c1916;
    --card:       #211d19;
    --ink:        #f3efe9;
    --ink-2:      #d2cabf;
    --muted:      #a89e94;
    --line:       #332e28;
    --line-2:     #48413a;
    --control-line: #776d63;

    --accent:     #92bcec;
    --accent-2:   #bcd7f5;
    --accent-ink: #0a1a2c;
    --accent-bg:  #172636;
    --warm:       #e8a578;
    --warm-bg:    #2e1f15;

    --yes:        #79cf9b;  --yes-bg:     #142a1d;
    --no:         #ff9d90;  --no-bg:      #301715;
    --cond:       #eebd6d;  --cond-bg:    #2c2214;
    --unknown:    #aca399;  --unknown-bg: #242019;
    --free:       #92bcec;  --free-bg:    #172636;

    --shadow:     0 1px 2px rgba(0,0,0,.45), 0 4px 16px -6px rgba(0,0,0,.55);
    --shadow-lg:  0 2px 4px rgba(0,0,0,.5), 0 18px 40px -18px rgba(0,0,0,.72);
  }
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
/* text-wrap: balance stops one-word last lines in headings ("The rules behind
   the / rules"); pretty stops widows in the two display paragraphs. Both are
   progressive — browsers without them wrap exactly as before. */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; letter-spacing: .002em; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--accent-2); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
code, kbd { font-family: var(--mono); font-size: .88em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 50%; translate: -50% -140%;
  z-index: 100; background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
}
.skip:focus { translate: -50% 0; }
/* #main only ever receives focus from the skip link, so no visible ring. */
#main:focus { outline: none; }

/* Search, filtering and the fit checker are JavaScript enhancements. Without JS
   they would be controls that silently do nothing, which is worse than not
   offering them — so they are hidden, and .no-js-only explains what is missing. */
html.no-js .js-only { display: none; }
html.js .no-js-only { display: none; }

/* -------------------------------------------------------------- header -- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: 1.25rem; min-height: 62px; }
.brand {
  display: inline-flex; align-items: baseline; gap: .34rem;
  font-family: var(--serif); font-size: 1.32rem; font-weight: 650;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand b { color: var(--accent); font-weight: 650; }
.brand__mark {
  width: 26px; height: 26px; flex: none; align-self: center;
  color: var(--accent);
}
.nav { margin-left: auto; display: flex; gap: .15rem; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: .5rem .72rem; border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550;
  min-height: 24px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); }

/* Five nav items do not fit beside the wordmark on a phone. Wrapping them in
   place builds a three-row sticky bar that eats a fifth of a 375 px viewport,
   so below 640 px the bar gives the nav its own row and stops sticking. */
@media (max-width: 640px) {
  .site-head { position: static; }
  .site-head__in { flex-wrap: wrap; gap: .4rem 1rem; min-height: 0; padding-block: .55rem; }
  .nav { margin-left: 0; width: 100%; gap: .1rem; }
  .nav a { padding: .42rem .5rem; font-size: .9rem; }
}

/* ---------------------------------------------------------------- hero -- */
.hero { padding: clamp(2.4rem, 6vw, 4.6rem) 0 1.6rem; }
/* 15ch broke short page titles ("Coverage & gaps") onto two ragged lines and
   ran the index headline to five. 20ch keeps the display measure without it. */
.hero h1 { max-width: 20ch; margin-bottom: .35em; }
.hero__lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0 2.2rem; margin-top: 1.6rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
  list-style: none; padding-inline-start: 0;
}
.hero__stats li { padding-block: .3rem; }
.hero__stats b {
  display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 650;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.hero__stats span { font-size: .84rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* -------------------------------------------------------------- search -- */
.search { position: relative; margin: 1.2rem 0 .9rem; }
.search input[type="search"] {
  width: 100%; padding: .95rem 1rem .95rem 3rem;
  font: inherit; font-size: 1.06rem; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--control-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.search input::placeholder { color: var(--muted); }
.search svg {
  position: absolute; left: 1rem; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; color: var(--muted); pointer-events: none;
}
/* The "/" shortcut is announced to screen readers via aria-keyshortcuts; this
   is the sighted equivalent. Shown only where a physical keyboard is likely,
   and it disappears once there is text to avoid sitting on top of it. */
.search__key {
  position: absolute; right: 1rem; top: 50%; translate: 0 -50%;
  display: none; padding: .1rem .45rem; font-size: .82rem; line-height: 1.5;
  color: var(--muted); background: var(--paper-2);
  border: 1px solid var(--line-2); border-radius: 6px; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 560px) {
  .search__key { display: block; }
  .search input:focus ~ .search__key,
  .search input:not(:placeholder-shown) ~ .search__key { display: none; }
}
.filters { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .8rem; min-height: 34px;
  font: inherit; font-size: .9rem; font-weight: 550;
  color: var(--ink-2); background: var(--card);
  border: 1.5px solid var(--control-line); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.chip[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }
.filters select {
  font: inherit; font-size: .9rem; padding: .42rem 2rem .42rem .7rem; min-height: 34px;
  color: var(--ink-2); background: var(--card); border: 1.5px solid var(--control-line);
  border-radius: 999px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6670' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 11px;
}
@media (prefers-color-scheme: dark) {
  .filters select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa4ac' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}
.result-count { font-size: .92rem; color: var(--muted); margin: .8rem 0 .3rem; }

/* --------------------------------------------------------------- table -- */
.airlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.airline-row { border-bottom: 1px solid var(--line); }
.airline-row > a {
  display: grid; gap: .2rem 1rem; align-items: center;
  grid-template-columns: 1fr auto;
  padding: .95rem .55rem; text-decoration: none; color: inherit; border-radius: var(--radius);
}
.airline-row > a:hover { background: var(--paper-2); }
.airline-row__name { font-weight: 620; font-size: 1.04rem; letter-spacing: -.005em; }
.airline-row__meta { grid-column: 1; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; }
.airline-row__meta .code {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 .34rem;
}
.airline-row__tags { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }

/* --------------------------------------------------------------- badge -- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .16rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 650; letter-spacing: .005em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge--yes     { color: var(--yes);     background: var(--yes-bg);     border-color: color-mix(in srgb, var(--yes) 25%, transparent); }
.badge--no      { color: var(--no);      background: var(--no-bg);      border-color: color-mix(in srgb, var(--no) 25%, transparent); }
.badge--cond    { color: var(--cond);    background: var(--cond-bg);    border-color: color-mix(in srgb, var(--cond) 28%, transparent); }
.badge--unknown { color: var(--unknown); background: var(--unknown-bg); border-color: var(--line-2); }
.badge--accent  { color: var(--accent);  background: var(--accent-bg);  border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.badge--ghost   { color: var(--muted);   background: transparent;       border-color: var(--line-2); }

/* ------------------------------------------------------------ airline -- */
.air-head { padding: 2.2rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.air-head h1 { margin-bottom: .3em; overflow-wrap: break-word; }
/* A one- or two-line summary, not a paragraph: it earns a wider measure than
   running prose, and wrapping it early only breaks it mid-figure. */
.air-head__line { font-size: 1.1rem; color: var(--ink-2); max-width: 72ch; margin-top: .8rem; text-wrap: pretty; }
.air-head__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .95rem; color: var(--muted); }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.crumb a { color: var(--muted); }

.glance {
  display: grid; gap: .9rem; margin: 1.6rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  list-style: none; padding: 0;
}
.glance > div {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem .95rem; box-shadow: var(--shadow);
}
.glance dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.glance dd {
  margin: .28rem 0 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 640;
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.glance dd small { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); display: block; margin-top: .15rem; letter-spacing: 0; }

.section { padding: 2.2rem 0 .4rem; border-top: 1px solid var(--line); margin-top: 2rem; }
/* The page header already draws a rule; a second one 40 px below it is noise. */
.air-head + .section { border-top: 0; margin-top: .4rem; }
.section > h2 { display: flex; align-items: center; gap: .6rem; }
.section__note { color: var(--muted); font-size: .95rem; max-width: 62ch; margin-top: -.3em; }

.facts { display: grid; gap: 0; margin: 1.1rem 0 0; }
.fact {
  display: grid; grid-template-columns: minmax(170px, 240px) 1fr;
  gap: .3rem 1.4rem; padding: .95rem 0; border-top: 1px solid var(--line);
  align-items: start;
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact__k { font-weight: 600; font-size: .96rem; color: var(--ink); }
.fact__k small { display: block; font-weight: 450; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: .1rem; }
.fact__v { min-width: 0; }
.fact__val { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .3rem; }
.fact__num { font-family: var(--serif); font-size: 1.15rem; font-weight: 640; font-variant-numeric: tabular-nums; }
/* Detail paragraphs run to several hundred words on the fullest records. Left
   unconstrained they set at ~95 characters a line on a wide screen. */
.fact__d { color: var(--ink-2); font-size: .95rem; margin: 0; max-width: 58ch; }
.fact__src { margin-top: .35rem; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; max-width: 64ch; }
.fact__src a { color: var(--muted); text-decoration-style: dotted; display: inline-flex; align-items: center; min-height: 24px; min-width: 0; overflow-wrap: anywhere; }
.fact__src a:hover { color: var(--accent); }
.fact--empty .fact__d { color: var(--muted); font-style: italic; }

/* contacts */
.contacts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); margin: 1.2rem 0 0; padding: 0; list-style: none; }
.contact {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; box-shadow: var(--shadow);
}
.contact__t { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; margin-bottom: .3rem; }
.contact__v { font-size: 1.06rem; font-weight: 600; word-break: break-word; }
.contact__v a { text-decoration: none; }
.contact__v a:hover { text-decoration: underline; }
.contact__l { font-size: .88rem; color: var(--ink-2); margin-top: .2rem; }
.contact__h { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.copy {
  font: inherit; font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  margin-left: .5rem; padding: .18rem .5rem; min-height: 24px; vertical-align: 2px;
  color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--control-line); border-radius: 999px; cursor: pointer;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy--done { color: var(--yes); border-color: var(--yes); background: var(--yes-bg); }

/* Long lists of airline names with nothing to say about them: the fit checker's
   "clears every published limit" and "publishes nothing" groups. */
.namelist {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .1rem .9rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  font-size: .95rem;
}
.namelist li { padding: .28rem 0; }
.namelist a { text-decoration: none; }
.namelist a:hover { text-decoration: underline; }
.namelist .code {
  font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: 0 .28rem;
}

.sources { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.sources li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; font-size: .93rem; align-items: baseline; }
.sources .sid { font-family: var(--mono); font-size: .78rem; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; text-align: center; }
.sources .surl { word-break: break-word; }
.sources .sdate { color: var(--muted); font-size: .82rem; }

/* callouts */
.note {
  border-left: 3px solid var(--accent); background: var(--accent-bg);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0;
  font-size: .96rem;
}
/* Notes sit outside .prose on airline pages, where the column is 1060 px wide. */
.note p { max-width: 60ch; }
/* Fleet tables and research logs arrive as one very long paragraph. */
.longnote { margin: 0; max-width: 56ch; font-size: .95rem; color: var(--ink-2); }
.contact-note { margin-top: 1rem; }
.note--warn { border-left-color: var(--cond); background: var(--cond-bg); }
.note--stop { border-left-color: var(--no); background: var(--no-bg); }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 680; }

.card__h { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; letter-spacing: .002em; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow); margin: 1.2rem 0;
}

/* fit checker */
.fit { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select {
  width: 100%; font: inherit; padding: .55rem .7rem; min-height: 42px;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--control-line); border-radius: var(--radius);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 620; font-size: .98rem;
  padding: .62rem 1.15rem; min-height: 44px;
  background: var(--accent); color: var(--accent-ink);
  border: 1.5px solid var(--accent); border-radius: var(--radius); cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-bg); color: var(--accent-2); }

/* Measured in a browser, not guessed: 62ch of the paragraph's own font sets
   these pages at 66–75 characters a line at 768 px and above. */
.prose { max-width: 62ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
/* Statutory citations are long unbreakable tokens — "49 CFR 175.10(a)(15)(v)(B)"
   is wider than a table column on a phone. Break only what cannot otherwise fit. */
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.prose th { font-weight: 650; background: var(--paper-2); }
.prose code { overflow-wrap: break-word; }
.prose blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--line-2); color: var(--ink-2); font-style: italic; }

/* footer */
.site-foot { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--paper-2); padding: 2.4rem 0 3rem; font-size: .93rem; color: var(--muted); }
.site-foot__grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-foot h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: .55rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .3rem; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); max-width: 60ch; }

/* small screens */
@media (max-width: 640px) {
  .fact { grid-template-columns: 1fr; gap: .15rem; }
  .fact__k small { display: inline; margin-left: .3rem; }
  .airline-row > a { grid-template-columns: 1fr; }
  .airline-row__tags { grid-column: 1; grid-row: auto; justify-content: flex-start; max-width: 100%; margin-top: .35rem; }
  .hero__stats { gap: 0 1.4rem; }
  .prose table { font-size: .9rem; }
  .prose th, .prose td { padding: .5rem .45rem; }
  .section { padding-top: 1.8rem; margin-top: 1.5rem; }
}

/* print — travellers show this at the check-in desk, where no link is clickable,
   so every URL has to be on the paper. */
@media print {
  :root { --paper: #fff; --card: #fff; --ink: #000; --ink-2: #222; --muted: #444; --line: #bbb; --line-2: #888; --control-line: #666; }
  .site-head, .site-foot, .nav, .filters, .search, .no-print, .btn, .skip { display: none !important; }
  body { font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .fact__src a::after,
  .sources .surl::after,
  .contact__v a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; font-weight: 400; }
  /* "(opens in a new tab)" is meaningless once printed. */
  .sr-only { display: none !important; }
  .section { break-inside: avoid; }
  .fact { break-inside: avoid; }
  .contact, .glance > div { break-inside: avoid; }
  .glance > div, .contact, .card { box-shadow: none; border: 1px solid #999; }
  .glance { grid-template-columns: repeat(4, 1fr); }
  /* Full measure on paper: the screen max-widths would waste a third of the sheet. */
  .prose, .note p, .longnote, .fact__d, .fact__src, .section__note, .air-head__line, .hero__lede { max-width: none; }
  .note { background: none; border-left: 2px solid #666; }
}

/* ------------------------------------------------------------ textarea -- */
.field textarea {
  width: 100%; font: inherit; padding: .55rem .7rem; min-height: 42px;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  resize: vertical;
}
.field textarea::placeholder, .field input::placeholder { color: var(--muted); }

/* The chair card is the one thing on this site designed to end up on paper in an
   airport, so it gets its own print treatment: nothing else on the page survives. */
@media print {
  body.printing-card > *:not(main) { display: none !important; }
  body.printing-card main > .wrap > *:not(#card) { display: none !important; }
  /* Only the finished card goes on the sheet — not the heading that introduces
     it, nor the "fill this in and print it" instructions, which would otherwise
     be handed to a baggage handler. */
  body.printing-card #card > *:not(#cardout) { display: none !important; }
  body.printing-card #card { padding-top: 0; border-top: 0; margin-top: 0; }
  body.printing-card #cardout .card { border-width: 2px; border-color: #000; }
}

/* ==========================================================================
   Home, aircraft and airline-first fit check
   ========================================================================== */

.eyebrow {
  font-size: .8rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
  color: var(--warm); margin: 0 0 .9rem;
}
.hero--home { padding-bottom: .8rem; }
.hero--home h1 { max-width: 18ch; text-wrap: balance; }
.hero--tight { padding: clamp(1.8rem, 4vw, 3rem) 0 1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.btn--lg { padding: .8rem 1.4rem; font-size: 1.02rem; min-height: 52px; }

.section--flush { border-top: 0; padding-top: 1rem; margin-top: .6rem; }

/* stat grid — bigger and calmer than the old inline list */
.stat-grid {
  display: grid; gap: .9rem; list-style: none; padding: 0; margin: 1.4rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.stat-grid li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow);
}
.stat-grid b {
  display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 650;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent);
  letter-spacing: -.02em;
}
.stat-grid span { display: block; margin-top: .45rem; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }

/* card grid for the "three ways to use it" block */
.cards {
  display: grid; gap: 1rem; list-style: none; padding: 0; margin: 1.3rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card--link { margin: 0; display: flex; flex-direction: column; }
.card--link h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.card--link h3 a { text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.card--link { position: relative; transition: border-color .15s ease, transform .15s ease; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card--link:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.card--link p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* fit form */
.fitform { display: grid; gap: 1.3rem; }
.field--wide label { font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 660; margin-bottom: .45rem; }
.field--wide select { min-height: 52px; font-size: 1.02rem; }
.field__hint { font-size: .88rem; color: var(--muted); margin: .5rem 0 0; max-width: 68ch; }
.fitform__specs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fitform__specs legend {
  font-size: .95rem; font-weight: 660; color: var(--ink); padding: 0; margin-bottom: .3rem;
}

/* verdict block on the fit page */
.verdict {
  border: 2px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin: 1.6rem 0;
}
.verdict--stop { border-color: var(--no); background: var(--no-bg); }
.verdict--warn { border-color: var(--cond); background: var(--cond-bg); }
.verdict--ok   { border-color: var(--yes); background: var(--yes-bg); }
.verdict--ask  { border-color: var(--line-2); background: var(--unknown-bg); }
.verdict__head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: .3rem; }
.verdict__title { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 650; margin: 0; }
.verdict__air { font-size: .95rem; color: var(--ink-2); }
.verdict__lede { font-size: 1.05rem; color: var(--ink); margin: .4rem 0 0; max-width: 70ch; }
.verdict ul { margin: 1rem 0 0; padding-left: 1.15rem; }
.verdict li { margin-bottom: .5rem; line-height: 1.5; }
.verdict__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: baseline; font-size: .97rem; }
.checklist .mark { font-weight: 700; text-align: center; }
.checklist .ok   { color: var(--yes); }
.checklist .bad  { color: var(--no); }
.checklist .warn { color: var(--cond); }
.checklist .unk  { color: var(--muted); }

/* aircraft cards */
.ac-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 1.3rem; }
.ac {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
}
.ac__head { margin-bottom: .8rem; }
.ac__name { font-size: 1.18rem; margin: 0 0 .3rem; }
.ac__meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .87rem; color: var(--muted); margin: 0; }
.ac__door {
  display: flex; align-items: baseline; gap: .35rem 1.1rem; flex-wrap: wrap;
  margin: 0 0 .7rem; padding: .7rem .9rem; border-radius: var(--radius);
  background: var(--accent-bg);
}
.ac__door b {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 650; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.ac__door span { font-size: .85rem; color: var(--ink-2); margin-right: .5rem; }
.ac__door--none { background: var(--unknown-bg); padding: .6rem .8rem; }
.ac__warn { font-size: .9rem; color: var(--cond); background: var(--cond-bg); padding: .55rem .75rem; border-radius: var(--radius); margin: 0 0 .7rem; }
.ac__note { font-size: .93rem; color: var(--ink-2); margin: 0 0 .7rem; }
.ac__src { font-size: .89rem; margin-bottom: .6rem; }
.ac__src summary { cursor: pointer; color: var(--accent); font-weight: 560; min-height: 24px; }
.ac__src ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.ac__src li { margin-bottom: .35rem; }
.ac__ops { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.55; }
.ac__ops span { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: .15rem; }

@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
  .stat-grid b { font-size: 2rem; }
}

.ac-group {
  font-family: var(--sans); font-size: .82rem; font-weight: 680; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin: 2rem 0 .2rem;
  display: flex; align-items: center; gap: .55rem;
}
.ac-group span {
  font-size: .78rem; color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem;
}
.ac__door span { display: inline-flex; align-items: baseline; gap: .3rem; font-size: .85rem; color: var(--ink-2); }
.ac__basis { font-size: .85rem; color: var(--muted); margin: -.35rem 0 .7rem; line-height: 1.45; }
.ac__as { display: block; font-size: .84rem; color: var(--muted); }
