/* The accuracy page in the website's «Night» look (server/jetbrief-web/src/styles/tokens.css + base.css). Served by
   the backend at jetbrief.app/accuracy/: same origin as the site, so the fonts load from /fonts/ and the page keeps
   the site's CSP (style-src 'self', font-src 'self': this stylesheet, no inline styles, no scripts). */
@font-face { font-family: 'Funnel Display'; font-style: normal; font-display: swap; font-weight: 400 600; src: url(/fonts/funnel-display.woff2) format('woff2'); }
@font-face { font-family: 'Funnel Sans'; font-style: normal; font-display: swap; font-weight: 300 600; src: url(/fonts/funnel-sans.woff2) format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-display: swap; font-weight: 300 500; src: url(/fonts/martian-mono.woff2) format('woff2'); }
:root {
  color-scheme: dark;
  --space: #05040f; --surface: #1d1838; --ink: #F4F0FF; --body: #C9C1E6; --muted: #9C93C2;
  --lav: #A99BFF; --peach: #FFC9A8; --coral: #FF8A7A; --line: rgba(169, 155, 255, 0.18);
  --display: 'Funnel Display', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --font: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, SFMono-Regular, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--space); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--space); }
a { color: var(--body); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.jb { position: relative; min-height: 100vh; overflow-x: clip; background-color: var(--space); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 62%, #cfc6ea 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 61% 41%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, #cfc6ea 50%, transparent 51%), radial-gradient(1.5px 1.5px at 91% 57%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 83%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 53% 77%, #cfc6ea 50%, transparent 51%);
  background-size: 620px 520px; }
.gut { padding-inline: var(--gutter); }
@media (min-width: 40rem) { .jb { --gutter: max(24px, env(safe-area-inset-left, 0px)); } }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; max-width: 80rem; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 19px; flex: none; }
.barnav { display: flex; align-items: center; gap: 28px; }
.barnav a { color: var(--body); text-decoration: none; font-size: 15px; }
.barnav a:hover { color: var(--ink); }

.page { max-width: calc(52rem + 2 * var(--gutter)); margin: 0 auto; padding-block: 32px 80px; }
.crumbs { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); line-height: 1; letter-spacing: -.035em; margin: 14px 0 18px; text-wrap: balance; }
.lead { color: var(--body); font-size: 19px; font-weight: 300; margin: 0 0 40px; max-width: 40ch; }
h2 { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; margin: 56px 0 12px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 32px 0 8px; }
p { margin: 0 0 1rem; }
.page > p, .how-body p { color: var(--body); max-width: 42rem; }
.muted { color: var(--muted); font-size: 15px; }

/* ---- the headline figures: three directions (accuracy_page.DIRECTION), no cards, no tiles ---- */
.f-lift { --fig: var(--coral); } .f-calm { --fig: var(--lav); } .f-gtg { --fig: var(--peach); } .f-flights { --fig: var(--ink); }

/* A. Editorial ledger: hairline rules, a huge numeral, the caption on its baseline, an index in the margin */
.ledger { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: fig; border-bottom: 1px solid var(--line); }
.ledger .row { counter-increment: fig; display: grid; grid-template-columns: 4rem minmax(0, 7fr) minmax(0, 4fr); column-gap: 40px;
  align-items: baseline; padding: 30px 0 34px; border-top: 1px solid var(--line); }
.ledger .row::before { content: counter(fig, decimal-leading-zero); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.ledger .num { font-family: var(--display); font-weight: 500; font-size: clamp(4rem, 2rem + 7vw, 9.5rem); line-height: .9; letter-spacing: -.055em; color: var(--fig); }
.ledger .num.long { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 6rem); letter-spacing: -.045em; }
.ledger .cap { color: var(--body); font-size: 19px; line-height: 1.45; max-width: 24ch; }
@media (max-width: 47.99rem) {
  .ledger .row { grid-template-columns: 1fr; row-gap: 10px; padding: 22px 0 26px; }
  .ledger .cap { font-size: 17px; }
}

/* B. One statement: the figures woven into a typographic sentence */
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem); line-height: 1.08; letter-spacing: -.03em;
  color: var(--ink); margin: 8px 0 0; max-width: 23ch; text-wrap: pretty; }
.statement b { font-weight: 500; color: var(--fig); }
.dir-b .head h1 { font-size: 1.25rem; letter-spacing: -.01em; margin: 10px 0 6px; }
.dir-b .head .lead { margin-bottom: 36px; font-size: 16px; }
.smallprint { list-style: none; margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 8px 32px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* C. Instrument readout: a briefing line, mono labels, big numerals, thin vertical dividers */
.metar { max-width: none; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.readout { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 22px 0 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.readout .cell { padding: 0 28px; border-left: 1px solid var(--line); }
.readout .cell:first-child { padding-left: 0; border-left: 0; }
.readout dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 0; }
.readout .num { margin: 14px 0 12px; font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 1.2rem + 3vw, 4.5rem); line-height: .95; letter-spacing: -.045em; color: var(--ink); }
.readout .num.long { font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); letter-spacing: -.035em; }
.readout .cap { color: var(--body); font-size: 15px; line-height: 1.45; }
@media (max-width: 47.99rem) {
  .readout { grid-auto-flow: row; }
  .readout .cell, .readout .cell:first-child { padding: 18px 0 20px; border-left: 0; border-top: 1px solid var(--line); }
  .readout .cell:first-child { border-top: 0; padding-top: 4px; }
}

/* the page around the figures */
.page { max-width: calc(72rem + 2 * var(--gutter)); }
.head { max-width: 40rem; }
.can { max-width: 42rem; margin-top: 72px; }
.can h2 { margin-top: 0; }
.dir-a .can, .dir-a details.how { margin-left: calc(4rem + 40px); }
@media (max-width: 47.99rem) { .dir-a .can, .dir-a details.how { margin-left: 0; } .can { margin-top: 48px; } }
.barnav .map { color: var(--ink); }
@media (max-width: 47.5rem) { .barnav .hide { display: none; } }
.footer small { color: var(--muted); font-size: 13px; }
.footer small a { color: var(--muted); }

details.how { max-width: 52rem; margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.how summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: '+'; font-family: var(--mono); color: var(--muted); font-size: 20px; }
details.how[open] summary::after { content: '\2212'; }
.how-body { padding-bottom: 24px; font-size: 15.5px; }
.how-body h3:first-child { margin-top: 4px; }
.facts { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--body); }
.facts li { margin: 0 0 .4rem; }
.ci { color: var(--muted); font-size: .85em; white-space: nowrap; }
.ci::before { content: "("; }
.ci::after { content: ")"; }
.wide { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0 0 1rem; font-size: 14.5px; }
th, td { text-align: left; padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
td { color: var(--body); }
td.num, th.num { text-align: right; padding-right: 0; padding-left: .5rem; }
em { font-style: normal; color: var(--ink); }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 44px;
  border-top: 1px solid rgba(169, 155, 255, .14); background: #07051a; }
.footer nav ul { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.footer nav a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 4px; }
.footer nav a:hover { color: var(--ink); }
