/* apex-forecast — dark analytical surface.
 *
 * MATERIAL SYSTEM: three materials, one job each, assigned by depth.
 *   substrate  black-on-black   the ground plane; every chart and table lives here
 *   float      liquid glass     only what genuinely hovers above it (the hero card)
 *   trim       machined metal   edges and joints only — bevels, rails, ticks
 *
 * Charts stay matte on the substrate. Glass or metal behind a bar chart adds luminance
 * noise that competes with the data encoding and breaks the contrast checks the palette
 * passed, so the treatment stops at the chrome.
 *
 * Palette tokens are the validated dark steps; surfaces are the reference dark surfaces
 * the palette was validated against. Do not substitute surface colours without re-running
 * the palette validator against the new surface.
 */

:root {
  color-scheme: dark;

  /* substrate */
  --plane:        #08080a;
  --surface-1:    #0e0e11;
  --surface-2:    #131317;

  /* ink */
  --ink:          #ffffff;
  --ink-2:        #c3c2b7;
  --ink-muted:    #898781;
  --grid:         #1e1e24;
  --axis:         #383835;

  /* trim */
  --trim-hi:      rgba(255, 255, 255, 0.22);
  --hairline:     rgba(255, 255, 255, 0.08);

  /* categorical slots (validated dark steps) */
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;

  /* sequential blue ramp, ordinal-safe on dark */
  --seq-250: #86b6ef;
  --seq-400: #3987e5;
  --seq-600: #184f95;

  /* diverging poles + neutral midpoint */
  --div-cool: #3987e5;
  --div-warm: #e66767;
  --div-mid:  #383835;

  --status-good:     #0ca30c;
  --status-warning:  #fab219;
  --status-critical: #d03b3b;

  --r: 14px;
  --gap: 20px;
  --maxw: 1240px;

  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  /* Anchor jumps from the top nav glide instead of teleporting. Wheel and trackpad are
     deliberately left to the OS — hijacking those breaks scrollbars, find-in-page and
     keyboard paging, and the field's own easing already supplies the sense of flow. */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The page-wide flow field. Fixed rather than absolute, so it drifts behind the content
   under its own easing instead of scrolling with it. Negative z-index keeps it beneath
   everything without needing a stacking context on .wrap. */
#silk-bg {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
}

/* A scrim over the sheet, not under it. The sheen bands are brightest where they are
   least wanted — behind the masthead and the footer, which are text on open background
   with no card to sit on. This darkens the top and bottom just enough that type always
   has stable ground, while the middle of the viewport keeps the material at full
   strength. Sits above the canvas and below the content. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--plane) 0%, rgba(8,8,10,.72) 5%, transparent 15%,
                    transparent 85%, rgba(8,8,10,.80) 96%, var(--plane) 100%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 96px; position: relative; }

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px 13px; margin-bottom: 22px;
  border: 1px solid var(--hairline);
  /* The masthead is the one block of text with no card under it, so on a lit field its
     ink fell to 3.6:1 against the brightest strand — under the 4.5:1 floor for body text.
     A gradient scrim heavy enough to fix that would have had to be ~90% opaque and would
     have erased the silk across the whole top of the page. Giving the masthead its own
     glass surface fixes the contrast locally, costs the field nothing elsewhere, and is
     the same material the cards already use. */
  /* 0.94, not 0.90: at 0.90 the muted nav ink still measured 4.2:1 against a worst-case
     fully-lit strand sitting directly behind it. This clears 4.5:1 even in that bound,
     which the backdrop blur means never actually occurs. */
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border-radius: var(--r);
}
@media (prefers-reduced-transparency: reduce) {
  .masthead { background: var(--surface-1); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.mark { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mark span { color: var(--series-1); }
.tagline { color: var(--ink-muted); font-size: 13px; }
.stamp { margin-left: auto; color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.topnav { display: flex; gap: 16px; flex-wrap: wrap; }
.topnav a {
  color: var(--ink-muted); text-decoration: none; font-size: 13px;
  padding: 2px 0; border-bottom: 1px solid transparent;
}
.topnav a:hover, .topnav a:focus-visible { color: var(--ink); border-bottom-color: var(--series-1); }

/* ---------- trim ---------- */

.ticks { display: inline-flex; gap: 5px; align-items: flex-end; height: 9px; opacity: .45; }
.ticks i { display: block; width: 1px; background: var(--ink-muted); height: 4px; }
.ticks i:nth-child(4n+1) { height: 8px; }

/* ---------- hero: the one glass moment ---------- */

.hero {
  position: relative; height: 400px; border-radius: 18px; overflow: hidden;
  background: var(--plane);
  border: 1px solid var(--hairline); border-top-color: var(--trim-hi);
  margin-bottom: var(--gap);
}
.hero canvas.silk, .hero .art { position: absolute; inset: 0; }
.hero canvas.silk { width: 100%; height: 100%; display: block; }
.hero .art svg { width: 100%; height: 100%; display: block; }
.hero .vig {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 92% at 62% 38%, transparent 28%, rgba(4,4,6,.74) 100%);
}

/* Scoped to .hero so it outranks `.glass { position: relative }`, which appears later in
   this file at equal specificity and would otherwise drop the card out of its corner. */
.hero .hero-card {
  position: absolute; left: 28px; right: 28px; bottom: 26px;
  padding: 20px 24px; display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}

/* liquid glass — refraction is added at runtime by glass.js as an SVG
   feDisplacementMap in backdrop-filter. What is here is the part that works
   everywhere: frosted base, bevel, rim light. */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--hairline); border-top-color: var(--trim-hi);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.40),
              0 30px 74px rgba(0,0,0,.64);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 46%);
  mix-blend-mode: screen;
}
.glass::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px;
  border-radius: 1px; pointer-events: none; opacity: .68;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}

.eyebrow {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px;
}
.h-name { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.h-meta { color: var(--ink-2); font-size: 12.5px; margin-top: 5px; }
.h-stat { margin-left: auto; text-align: right; }
.h-stat .v { font-size: 42px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.h-stat .k {
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 6px;
}

/* ---------- verdict banner ---------- */

.verdict {
  border: 1px solid var(--hairline); border-left: 3px solid var(--status-warning);
  border-radius: var(--r); background: var(--surface-1);
  padding: 15px 19px; margin-bottom: var(--gap); font-size: 13.5px; line-height: 1.55;
  color: var(--ink-2);
}
.verdict.pass { border-left-color: var(--status-good); }
.verdict b { color: var(--ink); font-weight: 600; }
.verdict .v-head {
  display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 5px;
}

/* ---------- stat tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.tile { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 18px; }
.tile .label { color: var(--ink-muted); font-size: 11.5px; margin-bottom: 7px; }
.tile .value { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.tile .sub { color: var(--ink-2); font-size: 11.5px; margin-top: 4px; }

/* ---------- cards ---------- */

.card {
  /* A lighter glass than the hero's: translucent, blurred, with a lit top edge. The hero
     gets true refraction because it is one panel and can afford an SVG displacement pass;
     ten cards cannot, so these take the frosted half of the same material. Held at 0.86
     — the field behind is near-black, so this costs little contrast, and anything lower
     starts to compete with the numbers. */
  position: relative;
  background: color-mix(in srgb, var(--surface-1) 86%, transparent);
  backdrop-filter: blur(14px) saturate(128%);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  border: 1px solid var(--hairline);
  border-top-color: color-mix(in srgb, var(--trim-hi) 60%, transparent);
  border-radius: var(--r); padding: 20px 22px 18px; margin-bottom: var(--gap);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.34);
}
/* The specular run along the top edge — the one detail that makes a panel read as glass
   rather than as a translucent rectangle. Narrower and dimmer than the hero's. */
.card::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  border-radius: 1px; pointer-events: none; opacity: .34;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
@media (prefers-reduced-transparency: reduce) {
  .card { background: var(--surface-1); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.card h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.card .desc { color: var(--ink-2); font-size: 13px; margin: 6px 0 16px; max-width: 78ch; }
.card .desc code, .notes code {
  color: var(--ink); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12px;
}
.card .desc a, .notes a, .foot a { color: var(--ink-2); }
.card .desc a:hover { color: var(--series-1); }

.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); }
.sub-h { font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin: 0 0 10px; }

/* ---------- legend ---------- */

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 13px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12.5px; }
.legend .swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend .swatch.line { height: 3px; width: 16px; border-radius: 2px; }

/* ---------- charts ---------- */

.chart-scroll { overflow-x: auto; }
svg.chart { display: block; width: 100%; height: auto; }
svg.chart text { fill: var(--ink-muted); font-size: 11px; font-family: inherit; }
svg.chart .tick-label { font-variant-numeric: tabular-nums; }
svg.chart .name-label { fill: var(--ink-2); font-size: 12px; }
svg.chart .name-label.lead { fill: var(--ink); font-weight: 600; }
svg.chart .val-label { fill: var(--ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
svg.chart .gridline { stroke: var(--grid); stroke-width: 1; }
svg.chart .axis-line { stroke: var(--axis); stroke-width: 1; }
svg.chart .zero-line { stroke: var(--ink-muted); stroke-width: 1; }
svg.chart .err { stroke: var(--ink-muted); stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
svg.chart .hit { fill: transparent; cursor: crosshair; }
svg.chart .hit:focus-visible { outline: 2px solid var(--series-1); outline-offset: 1px; }

/* ---------- tooltip ---------- */

.tip {
  position: fixed; z-index: 40; pointer-events: none; opacity: 0;
  transition: opacity 90ms ease; transform: translate(-50%, calc(-100% - 12px));
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 8px 26px rgba(0,0,0,.55); min-width: 148px;
}
.tip.on { opacity: 1; }
.tip .t-name { font-weight: 600; display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.tip .t-row { color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; }
.tip .t-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.chip { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }

/* ---------- tables ---------- */

details.table-view { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 11px; }
details.table-view summary {
  cursor: pointer; color: var(--ink-muted); font-size: 12.5px; list-style: none;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
details.table-view summary::-webkit-details-marker { display: none; }
details.table-view summary::before { content: "▸"; color: var(--ink-muted); font-size: 10px; }
details.table-view[open] summary::before { content: "▾"; }
details.table-view summary:hover { color: var(--ink); }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { text-align: right; padding: 7px 12px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
th { color: var(--ink-muted); font-weight: 500; position: sticky; top: 0; background: var(--surface-1); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
td.name { color: var(--ink); font-variant-numeric: normal; }
tbody tr:hover td { background: var(--surface-2); }
tr.is-best td { color: var(--ink); }
tr.is-best td:first-child { font-weight: 600; }
td.win { color: var(--status-good); }

/* Season table: the podium cell holds three driver chips, so it needs to lay out inline
   rather than inherit the plain right-aligned numeric cell. */
td.podium { display: flex; align-items: center; gap: 6px; }
/* The flex cell lays its chips out from the left, so its header has to follow it there —
   inherited right-alignment would leave "Podium" floating over the next column. */
#season-races th:nth-child(4) { text-align: left; }
td.podium .chip { margin-right: -2px; }
.hit { color: var(--status-good); }
#season-races small { color: var(--ink-muted); font-size: 10.5px; }

/* ---------- post-race scorecard ---------- */

.postrace {
  margin-top: 18px; padding: 15px 17px 12px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-left: 2px solid var(--series-1); border-radius: 12px;
}
.postrace .pr-head { font-size: 13.5px; margin-bottom: 5px; }
.postrace .pr-lede { color: var(--ink-2); font-size: 13px; margin: 0 0 13px; max-width: 78ch; }
.postrace .pr-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.postrace .pr-k { color: var(--ink-muted); font-size: 11px; }
.postrace .pr-v {
  font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px;
}
.postrace .pr-b { color: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.postrace .pr-foot { color: var(--ink-muted); font-size: 11.5px; margin: 12px 0 0; }
@media (max-width: 620px) { .postrace .pr-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- contenders: the answer, before the evidence ---------- */

.contenders {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 14px;
}
.contender {
  position: relative; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 13px 15px 12px;
}
/* Probability as a filled bar behind the number, so the three tiles are comparable at a
   glance without reading digits. Width is the probability; that is the whole encoding. */
.contender .fill { position: absolute; inset: 0 auto 0 0; opacity: .16; pointer-events: none; }
.contender .who { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.contender .team { color: var(--ink-muted); font-size: 11.5px; margin-top: 2px; }
.contender .p {
  font-size: 27px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-top: 7px; line-height: 1;
}
.contender .sub { color: var(--ink-2); font-size: 11.5px; margin-top: 4px; }
.contender.lead { border-color: var(--trim-hi); }

.openness { color: var(--ink-2); font-size: 13px; margin: 0 0 4px; max-width: 78ch; }

details.more { margin-top: 12px; }
details.more > summary {
  cursor: pointer; color: var(--ink-2); font-size: 12.5px; list-style: none;
  padding: 7px 0; user-select: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; color: var(--ink-muted); }
details.more[open] > summary::before { content: "▾ "; }
details.more > summary:hover { color: var(--ink); }

/* ---------- one race, opened ---------- */

#season-races tbody tr { cursor: pointer; }
#season-races tbody tr.sel td { background: var(--surface-2); color: var(--ink); }
#champ-drivers tbody tr.sel td { background: var(--surface-2); color: var(--ink); }

.race-detail {
  margin-top: 16px; padding: 16px 18px 8px;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px;
}
.race-detail .rd-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.race-detail .rd-head b { font-size: 15px; }
.race-detail .rd-meta { color: var(--ink-2); font-size: 12.5px; }
.race-detail .rd-close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--ink-muted); font-size: 12.5px; padding: 2px 6px;
}
.race-detail .rd-close:hover { color: var(--ink); }
.race-detail tr.dnf td { color: var(--ink-muted); }
.gain { color: var(--status-good); }
.loss { color: var(--div-warm); }

@media (max-width: 720px) { .contenders { grid-template-columns: 1fr; } }

/* ---------- team chips + detail ---------- */

.team-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.team-chips button {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.team-chips button:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.team-chips button[aria-selected="true"] {
  color: var(--ink); border-color: var(--series-1); background: rgba(57,135,229,.12);
}
.team-chips button:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }

.team-detail { border-top: 1px solid var(--hairline); padding-top: 18px; }
.td-head { display: flex; align-items: flex-start; gap: 13px; flex-wrap: wrap; margin-bottom: 5px; }
.td-name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.td-sub { color: var(--ink-muted); font-size: 12.5px; margin-bottom: 16px; }
.td-note {
  color: var(--ink-2); font-size: 12.5px; background: var(--surface-2);
  border-left: 2px solid var(--status-warning); border-radius: 0 6px 6px 0;
  padding: 9px 13px; margin-bottom: 16px;
}
.td-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(102px, 1fr)); gap: 13px; margin-bottom: 20px; }
.td-stat .k { color: var(--ink-muted); font-size: 11px; margin-bottom: 3px; }
.td-stat .v { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.td-section-h {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 9px;
}
.td-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.driver-row {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--grid); font-size: 12.5px;
}
.driver-row:last-child { border-bottom: none; }
.driver-row .dr-code { font-weight: 600; width: 38px; flex: none; }
.driver-row .dr-name { color: var(--ink-2); flex: 1; }
.driver-row .dr-num { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- news ---------- */

.news-filter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.news-filter button {
  background: none; color: var(--ink-muted); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; cursor: pointer;
}
.news-filter button:hover { color: var(--ink); }
.news-filter button[aria-pressed="true"] { color: var(--ink); border-color: var(--series-1); }
.news-filter button:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 12px 0; border-bottom: 1px solid var(--grid); }
.news-list li:last-child { border-bottom: none; }
.news-list a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; font-weight: 500; }
.news-list a:hover { color: var(--series-1); }
.news-list a:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
.news-meta { color: var(--ink-muted); font-size: 12px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.news-meta .src { color: var(--ink-2); }
.news-summary { color: var(--ink-2); font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
.news-sources { color: var(--ink-muted); font-size: 11.5px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--hairline); }
.news-empty { color: var(--ink-muted); font-size: 13px; padding: 16px 0; }

/* ---------- notes (the one long-form block) ---------- */

.notes { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r); padding: 20px 22px; }
.notes h2 { font-size: 16px; margin: 0 0 12px; }
.notes ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.notes li { margin-bottom: 9px; }
.notes li b { color: var(--ink); font-weight: 600; }
.notes .caveat { color: var(--status-warning); }

footer.foot { color: var(--ink-muted); font-size: 12px; margin-top: 26px; text-align: center; }

/* ---------- method page ---------- */

.prose { max-width: 74ch; }
.prose h1 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 6px; }
.prose h2 { font-size: 17px; font-weight: 600; margin: 34px 0 10px; letter-spacing: -.01em; }
.prose h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose code { color: var(--ink); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.prose pre {
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 13px 15px; overflow-x: auto; font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}
.prose .lede { font-size: 15px; color: var(--ink-2); }
.prose ul { padding-left: 18px; }
.prose li { margin-bottom: 7px; }
.prose table { margin: 14px 0; }
.prose a { color: var(--ink-2); }
.prose a:hover { color: var(--series-1); }
.cite { color: var(--ink-muted); font-size: 12.5px; }

@media (max-width: 940px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .td-cols { grid-template-columns: 1fr; }
  .topnav { order: 3; width: 100%; }
  .hero { height: 350px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .h-name { font-size: 22px; }
  .wrap { padding: 20px 14px 64px; }
  .hero { height: 320px; }
  .hero-card { left: 14px; right: 14px; bottom: 14px; padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }
