/* NinePath website: light only, Figtree (fonts.css), Material 3 colour roles from the Figma design system. */
:root {
  color-scheme: light;
  --error: #ba1a1a; --on-error-container: #410002; --error-container: #ffdad6;
  --bg: #f9f9ff; --fg: #081f3f; --muted: #424751; --outline: #737782; --line: #c3c6d3;
  --accent: #1d5bb8; --on-accent: #ffffff; --accent-container: #d8e2ff; --on-accent-container: #001a41;
  --secondary-container: #d7e3ff; --low: #f3f3fa; --lowest: #ffffff; --mist: #f5f9fe; --draft: #7d5700;
  --margin: 20px; --container: #ededf4;
}
@media (min-width: 600px) { :root { --margin: 24px; } }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font: 400 1rem/1.5 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .03125rem; color: var(--fg); background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.skip { position: absolute; top: -80px; left: var(--margin); background: var(--lowest); color: var(--fg); padding: 12px; z-index: 5; }
.skip:focus { top: 12px; }

/* Header and footer (every page) */
header.site, footer.site { padding-inline: max(var(--margin), calc((100% - 1200px) / 2)); }
header.site { height: 64px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 1200px) { header.site { height: 72px; } }
.home-page header.site { background: var(--mist); }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: 0; line-height: 1; }
.lockup .mark { height: 33px; width: auto; aspect-ratio: 313 / 449; flex: none; }
.lockup .wordmark { font-size: 22px; }
.lockup .nine { color: #081f3f; }
.lockup .path { color: #4d88cc; }
.lockup-footer { gap: 6px; }
.lockup-footer .mark { height: 24px; }
.lockup-footer .wordmark { font-size: 16px; }
header.site nav a, footer.site nav a { display: inline-block; padding: 12px; color: var(--fg); font-weight: 500; font-size: .875rem; line-height: 20px; letter-spacing: .00625rem; text-decoration: none; border-radius: 100px; }
@media (min-width: 1200px) { header.site nav a { font-size: 1rem; line-height: 24px; letter-spacing: .009375rem; } }
header.site nav a:hover, footer.site nav a:hover, .faq-item summary:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
footer.site { background: var(--low); border-top: 1px solid var(--line); padding-block: 32px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
footer.site nav { display: flex; flex-direction: column; }
footer.site nav a { padding: 12px 0; }
.copyright { margin: 0; color: var(--muted); font-size: .75rem; line-height: 16px; letter-spacing: .025rem; }
@media (min-width: 900px) {
  footer.site { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 40px; }
  footer.site nav { flex-direction: row; gap: 8px; }
  footer.site nav a { padding: 12px; }
}

/* Plain pages (legal, support, 404) */
main.page { max-width: 46rem; margin: 0 auto; padding: 1rem var(--margin) 3rem; }
main.page h1 { font-size: 2rem; line-height: 1.25; font-weight: 600; letter-spacing: 0; margin: 1.5rem 0 1rem; }
main.page h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; margin: 2rem 0 .5rem; }
main.page h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; margin: 1.5rem 0 .5rem; }
blockquote { margin: 1rem 0; padding: .25rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.draft { background: var(--draft); color: #000; padding: .5rem .75rem; font-weight: 700; }

/* Buttons */
.btn, .beta-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; min-height: 40px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 500; font-size: .875rem; line-height: 20px; letter-spacing: .00625rem; text-decoration: none; cursor: pointer; }
.btn::before, .beta-form button::before { content: ""; position: absolute; inset: -4px 0; }
.btn:hover, .beta-form button:hover { background: #174b99; }
.beta-form button:disabled { opacity: .7; cursor: progress; }
.beta-form button.secondary { background: transparent; color: var(--accent); padding-inline: 12px; }
.beta-form button.secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.note { margin: 0; color: var(--muted); font-size: .875rem; line-height: 20px; letter-spacing: .015625rem; }

/* Home: hero */
main.home { display: block; }
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--mist), var(--bg)); padding: 24px max(var(--margin), calc((100% - 1200px) / 2)) 96px; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.status { margin: 0; color: var(--accent); font-weight: 500; font-size: .875rem; line-height: 20px; letter-spacing: .00625rem; }
.hero h1 { margin: 0; font-size: 2.25rem; line-height: 44px; font-weight: 600; letter-spacing: 0; }
.hero h1 span { color: var(--accent); }
.lead { margin: 0; color: var(--muted); }
.cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 8px; width: 100%; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 240px; height: auto; max-width: 100%; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; overflow: hidden; pointer-events: none; }
.wave { position: absolute; left: 0; bottom: 0; width: 100%; display: block; }
.wave-1 { height: 91.227px; } .wave-2 { height: 65.375px; } .wave-3 { height: 30.667px; }
@media (min-width: 600px) { .hero { padding-top: 40px; } .hero h1 { font-size: 2.75rem; line-height: 52px; } .cta { align-items: flex-start; width: auto; } }
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 480px; }
  .hero-art img { width: 480px; }
}
@media (min-width: 1200px) {
  .hero { padding-top: 56px; padding-bottom: 160px; }
  .hero-inner { grid-template-columns: minmax(0, 696px) 480px; justify-content: space-between; }
  .hero-text { gap: 24px; }
  .hero h1 { font-size: 3.5625rem; line-height: 64px; letter-spacing: -.015625rem; }
  .waves { height: 240px; }
  .wave-1 { height: 182.454px; } .wave-2 { height: 130.749px; } .wave-3 { height: 61.334px; }
}

/* Home: bands */
.band { padding: 48px max(var(--margin), calc((100% - 1200px) / 2)); }
.band-surface { background: var(--bg); }
.band-low { background: var(--low); }
.band h2 { margin: 0 0 24px; font-size: 1.75rem; line-height: 36px; font-weight: 600; letter-spacing: 0; }
@media (min-width: 1200px) { .band { padding-block: 72px; } .band h2 { margin-bottom: 40px; font-size: 2rem; line-height: 40px; } }
.cards { display: grid; gap: 16px; }
.card { background: var(--low); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card h3 { margin: 0; font-size: 1.375rem; line-height: 28px; font-weight: 500; letter-spacing: 0; }
.card p { margin: 0; color: var(--muted); }
.disc, .marker { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 999px; background: var(--accent-container); color: var(--on-accent-container); width: 56px; height: 56px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1200px) { .card { padding: 32px; gap: 16px; } }

/* Home: steps */
.steps-grid { display: flex; flex-direction: column; gap: 24px; }
.steps-grid h2 { margin: 0; }
.steps-intro { display: contents; }
.steps-intro h2 { order: 0; }
.steps { order: 1; --step-pad: 0px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps-note { order: 2; margin: 0; color: var(--muted); font-size: .875rem; line-height: 20px; letter-spacing: .015625rem; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-inline: var(--step-pad); }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--step-pad) + 19px); top: 40px; bottom: 0; width: 2px; background: var(--line); }
.steps .marker { width: 40px; height: 40px; background: var(--secondary-container); color: var(--fg); }
.step-text { padding: 8px 0 24px; font-size: .875rem; line-height: 20px; }
.step-text p { margin: 0; letter-spacing: .015625rem; color: var(--muted); }
.step-text .step-title { color: var(--fg); font-weight: 500; letter-spacing: .00625rem; margin-bottom: 4px; }
.step-title::before { content: counter(step) ". "; }
@media (min-width: 900px) {
  .steps-grid { display: grid; grid-template-columns: minmax(0, 488px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .steps-intro { display: flex; flex-direction: column; gap: 16px; }
  .steps { --step-pad: 20px; }
  .steps-note { font-size: 1rem; line-height: 24px; letter-spacing: .03125rem; }
}

/* Home: signup */
.signup-grid { display: grid; gap: 24px; }
.signup-intro { display: flex; flex-direction: column; gap: 16px; }
.signup-intro h2 { margin: 0; }
.signup-intro p { margin: 0; color: var(--muted); }
.form-surface { --field-bg: var(--bg); }
@media (min-width: 900px) {
  .form-surface { --field-bg: var(--lowest); background: var(--lowest); border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 544px; }
}
@media (min-width: 1100px) { .signup-grid { grid-template-columns: minmax(0, 488px) minmax(0, 544px); justify-content: space-between; } }

/* Home: FAQ, final invitation, limitation */
.narrow { max-width: 720px; margin: 0 auto; }
.faq-items { border-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none; color: var(--fg); font-weight: 500; letter-spacing: .009375rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron { color: var(--muted); }
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 0 20px; color: var(--muted); }
.final { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.final h2, .final p { margin: 0; }
.final > p:not(.note) { color: var(--muted); }
.final .note { margin-top: -4px; }
@media (min-width: 600px) { .final { align-items: center; text-align: center; } }
.limitation { max-width: 720px; margin: 32px auto 48px; padding-inline: var(--margin); text-align: center; color: var(--muted); font-size: .875rem; line-height: 20px; letter-spacing: .015625rem; }

/* Signup result pages (/beta/pending, /beta/confirmed, /beta/error) */
main.result { min-height: 560px; padding: 64px var(--margin); }
.result-card { max-width: 480px; margin: 0 auto; background: var(--low); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.result-card .disc { width: 48px; height: 48px; }
.result-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.result-body h1 { margin: 0; font-size: 1.375rem; line-height: 28px; font-weight: 500; letter-spacing: 0; }
.result-body p { margin: 0; }
.result-body p:not(:last-child) { color: var(--muted); }
.result-body p:last-child a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; padding: 10px 12px; border-radius: 999px; font-size: .875rem; font-weight: 500; line-height: 20px; letter-spacing: .00625rem; text-decoration: none; }
.result-body p:last-child a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.result-error { background: var(--error-container); color: var(--on-error-container); }
.result-error .disc { background: var(--lowest); color: var(--error); }
.result-error .result-body p:not(:last-child) { color: var(--on-error-container); }
.result-error .result-body p:last-child a { color: var(--on-error-container); box-shadow: inset 0 0 0 1px var(--on-error-container); }

/* Forms (the beta signup and the invitation/eligibility form; both work without the script) */
.beta-form { display: flex; flex-direction: column; gap: 16px; margin: 0; max-width: 30rem; }
.home .beta-form { max-width: none; }
.beta-form .field { margin: 0; border: 0; padding: 0; min-width: 0; }
.beta-form label, .beta-form legend { font-weight: 500; font-size: .875rem; line-height: 20px; letter-spacing: .00625rem; display: block; margin-bottom: 4px; padding: 0; }
.beta-form .hint, .beta-form .error { margin: 4px 0 0; padding-inline: 16px; font-size: .75rem; line-height: 16px; letter-spacing: .025rem; }
.beta-form .hint { color: var(--muted); }
.beta-form .error { color: var(--error); font-weight: 500; }
.beta-form select, .beta-form input[type="text"] { width: 100%; font: inherit; min-height: 56px; padding: 8px 16px; color: var(--fg); background: var(--field-bg, var(--bg)); border: 1px solid var(--outline); border-radius: 4px; }
.beta-form [hidden], #beta-status:empty, #elig-status:empty, #install-status:empty { display: none !important; }
.beta-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.beta-form .note { margin-top: -4px; }

/* Outlined text field: the label rests inside and floats onto the outline when focused or filled (no script) */
.text-field { position: relative; }
.text-field input { width: 100%; height: 56px; padding: 0 16px; font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--outline); border-radius: 4px; }
.beta-form .text-field label { position: absolute; left: 12px; top: 16px; margin: 0; padding: 0 4px; color: var(--muted); font-size: 1rem; line-height: 24px; letter-spacing: .03125rem; font-weight: 400; background: transparent; pointer-events: none; transition: none; }
.text-field input:focus ~ label, .text-field input:not(:placeholder-shown) ~ label { top: -10px; font-size: .75rem; line-height: 16px; letter-spacing: .025rem; background: var(--field-bg, var(--bg)); }
.text-field input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.text-field input:focus ~ label { color: var(--accent); }
.text-field input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.text-field input[aria-invalid="true"] ~ label { color: var(--error); }

/* Device chips (radio group; filter chip 32 high inside a 48 target) */
.beta-form fieldset.device legend { margin-bottom: 8px; color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 0 8px; }
.beta-form label.chip { position: relative; display: inline-flex; align-items: center; min-height: 48px; margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .875rem; line-height: 20px; letter-spacing: .00625rem; }
.chip .chip-check { display: none; width: 18px; height: 18px; margin-left: -8px; margin-right: 8px; }
.chip input:checked + span { background: var(--secondary-container); border-color: transparent; color: var(--fg); }
.chip input:checked + span .chip-check { display: block; }
.chip input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 3px; }
.beta-form fieldset.device .hint { padding-inline: 0; }

/* Checkboxes and radios in the other form (invitation/eligibility) */
.beta-form .choice { display: flex; gap: 12px; align-items: center; min-height: 48px; font-weight: 400; font-size: 1rem; line-height: 24px; letter-spacing: .03125rem; margin: 0; cursor: pointer; }
.beta-form fieldset .choice { display: inline-flex; margin-right: 1rem; }
.beta-form .consent { align-items: flex-start; padding: 8px 20px 8px 8px; min-height: 56px; }
.beta-form input[type="checkbox"], .beta-form .choice input[type="radio"] { width: 18px; height: 18px; margin: 11px; flex: none; accent-color: var(--accent); }
.beta-form .notice-link { display: block; margin-top: 0; color: var(--accent); font-size: .875rem; line-height: 20px; letter-spacing: .015625rem; }
.beta-form #beta-submit { align-self: stretch; }
@media (min-width: 600px) { .beta-form #beta-submit { align-self: flex-start; } }

/* In-place result card inside the form (the script fills #beta-status) */
#beta-status.card, #elig-status.card, #install-status.card { padding: 24px; border-radius: 12px; background: var(--low); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#beta-status.card h2, #elig-status.card h2, #install-status.card h2 { margin: 0; font-size: 1.375rem; line-height: 28px; font-weight: 500; letter-spacing: 0; }
#beta-status.card p, #elig-status.card p, #install-status.card p { margin: 0; color: var(--muted); }
#beta-status:focus, #elig-status:focus, #install-status:focus { outline: none; }

/* /learn: the Figma overview (B+ final + Featured) and article (D3), on the site tokens. No shadows; no overflow clipping on the
   grids, lists or tiles, and focus rings (3 px) have room on all four sides. Mobile first; the desktop layout starts at 1000 px. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main.learn { padding: 0; }
.wrap { max-width: calc(1200px + 2 * var(--margin)); margin: 0 auto; padding-inline: var(--margin); }
:where(.learn a:not(.btn)) { color: var(--accent); }
.learn a:not(.btn):focus-visible, .learn summary:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.learn .btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.learn h1, .learn h2, .learn h3 { letter-spacing: 0; }
.learn .icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Breadcrumb (guides, hubs, All guides; none on the overview) */
.crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 16px 0 0; font-size: .875rem; min-width: 0; }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
/* One line on a phone: the current page truncates with an ellipsis. */
.crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Intro band (brand/mist) */
.intro-band { background: var(--mist); padding-block: 24px; }
.intro-band h1 { margin: 8px 0 8px; font-size: 2rem; line-height: 2.5rem; font-weight: 600; color: var(--fg); }
.dek { color: var(--muted); font-size: 1rem; line-height: 1.5rem; letter-spacing: .03125rem; margin: 0; max-width: 792px; }
@media (min-width: 1000px) { .intro-band { padding-block: 48px; } .intro-band h1 { margin: 12px 0 12px; font-size: 2.25rem; line-height: 2.75rem; } }

/* Body: sections 48 apart */
.learn-body { display: grid; gap: 32px; padding-block: 24px 48px; }
@media (min-width: 1000px) { .learn-body { gap: 48px; padding-block: 48px 64px; } }
.learn-body h2, .section-head h2 { margin: 0; font-size: 1.375rem; line-height: 1.75rem; font-weight: 500; color: var(--fg); }
.learn-body section > h2 + * { margin-top: 12px; }

/* Topic tiles: inline on mobile (2 columns, disc left of the name), stacked from 1000 px (3 columns) */
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 -4px; padding: 4px; }
.topic-tile { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px; border-radius: 16px; background: var(--low); color: var(--fg); text-decoration: none; font-weight: 500; }
.topic-tile:hover { background: var(--accent-container); }
.tile-name { font-size: .875rem; line-height: 1.25rem; letter-spacing: .00625rem; }
/* A phone shows the bare 24 px icon in the primary colour; the disc comes with the stacked tile from 1000 px. */
.topic-tile .disc { width: 24px; height: 24px; background: none; color: var(--accent); }
.disc { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--secondary-container); color: var(--fg); flex: none; }
@media (min-width: 1000px) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .topic-tile { flex-direction: column; align-items: flex-start; padding: 20px; min-height: 0; }
  .topic-tile .disc { width: 40px; height: 40px; background: var(--secondary-container); color: var(--fg); }
  .tile-name { font-size: 1rem; line-height: 1.5rem; letter-spacing: .009375rem; }
}

/* Lists: one List container, rows with a divider, disc, onSurface title, meta, chevron */
.list-card { list-style: none; margin: 0; padding: 8px; border-radius: 28px; background: var(--low); }
.list-card li + li { border-top: 1px solid var(--line); }
.learn-row { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 16px; border-radius: 20px; color: var(--fg); text-decoration: none; }
.learn-row:hover { background: var(--accent-container); }
.row-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.row-title { font-size: 1rem; line-height: 1.5rem; letter-spacing: .03125rem; color: var(--fg); }
.row-meta { font-size: .875rem; line-height: 1.25rem; letter-spacing: .015625rem; color: var(--muted); }
.chevron-end { color: var(--muted); }
@media (min-width: 1000px) { .common .list-card { max-width: 66%; } }

/* Latest by topic shows 2 rows on a phone, 3 from 1000 px. */
.row-extra { display: none; }
@media (min-width: 1000px) { .row-extra { display: list-item; } }

/* Featured guide (tokens only). The date and the Short answer box show from 1000 px up. */
.featured-card { display: grid; gap: 16px; padding: 20px; margin-top: 12px; border-radius: 28px; background: var(--low); }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: .875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .00625rem; }
.featured h3 { margin: 0 0 12px; font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--fg); }
.featured-summary { margin: 0 0 12px; color: var(--muted); }
.featured-link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; font-size: .875rem; font-weight: 500; text-decoration: none; }
.featured-link .icon { width: 20px; height: 20px; }
.featured .short-answer { padding: 16px; border-radius: 16px; }
.desktop-only { display: none; }
@media (min-width: 1000px) {
  .featured-card { grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; align-items: start; padding: 20px; }
  .featured h3 { font-size: 1.75rem; line-height: 2.25rem; }
  span.desktop-only { display: inline; }
  div.desktop-only { display: block; }
}

/* Latest by topic */
.topic-sections { display: grid; gap: 32px 24px; }
@media (min-width: 1000px) { .topic-sections { grid-template-columns: 1fr 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head a { font-size: .875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .00625rem; text-decoration: none; }

/* How we calculate: a compact row */
.how-we-calculate { display: flex; flex-direction: column; gap: 4px 24px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 16px; }
.calc-label { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--muted); }
.calc-label .icon { width: 20px; height: 20px; }
.calc-label h2 { margin: 0; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--fg); }
.calc-label p { margin: 0; font-size: .875rem; line-height: 1.25rem; letter-spacing: .015625rem; }
.calc-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.calc-link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; font-size: .875rem; font-weight: 500; text-decoration: none; }
.calc-link .icon { display: none; width: 20px; height: 20px; }
.calc-label .icon { color: var(--accent); }
@media (min-width: 1000px) { .how-we-calculate { flex-direction: row; align-items: center; } .calc-link .icon { display: block; } .calc-label .icon { color: var(--muted); } }

/* CTA band */
.learn-cta { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 28px; background: var(--container); }
.learn-cta h2 { margin: 0; font-size: 1.375rem; line-height: 1.75rem; font-weight: 500; }
.learn-cta p { margin: 4px 0 0; color: var(--muted); line-height: 1.5rem; letter-spacing: .03125rem; }
@media (min-width: 700px) { .learn-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 40px; } }
.wrap > .learn-cta { margin-bottom: 48px; }
.learn-body > .learn-cta { margin: 0; }

/* Article (D3). Mobile order: head, Short answer, Key facts, "On this page", body. Desktop: 264 | 528 | 288 on a 1200 grid. */
.guide-layout { display: grid; gap: 24px; padding-block: 16px 32px; }
.guide-head { display: grid; gap: 12px; align-content: start; }
.guide-head h1 { margin: 0; font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; }
.topic-chip { margin: 0; }
.topic-chip a { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--secondary-container); color: var(--fg); text-decoration: none; font-size: .875rem; font-weight: 500; }
.byline { color: var(--muted); font-size: .875rem; line-height: 1.25rem; margin: 0; }
.short-answer { padding: 24px; border-radius: 28px; background: var(--accent-container); color: var(--on-accent-container); }
.short-answer h2, .short-answer .aside-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.short-answer .icon { width: 20px; height: 20px; }
.short-answer p { margin: 0; }
.key-facts { padding: 20px; border-radius: 28px; background: var(--low); }
.key-facts h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; font-weight: 500; }
.key-facts dl { margin: 0; }
.key-facts dl > div { display: flex; flex-direction: row; gap: 16px; padding-block: 8px; border-top: 1px solid var(--line); }
.key-facts dt, .key-facts dd { flex: 1; min-width: 0; }
@media (min-width: 1000px) { .key-facts dl > div { flex-direction: column; gap: 4px; } }
.key-facts dt { color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.key-facts dd { margin: 0; }
.toc-mobile { border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.toc-mobile summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; list-style: none; font-weight: 500; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] .chevron { transform: rotate(180deg); }
.toc-mobile ol { margin: 0; padding: 0 0 12px 1.25rem; }
.guide-toc { display: none; }
.guide-body { min-width: 0; display: grid; gap: 16px; align-content: start; }
.guide-body > h2 { margin: 16px 0 0; font-size: 1.375rem; line-height: 1.75rem; font-weight: 500; color: var(--fg); }
.guide-body h3 { margin: 8px 0 0; font-size: 1.125rem; font-weight: 500; }
.guide-body p, .guide-body ol, .guide-body ul { margin: 0; }
.guide-body :where(ol, ul):not(.list-card) { padding-left: 1.5rem; display: grid; gap: 8px; }
.guide-body .table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.guide-body table { border-collapse: collapse; }
.guide-body th { background: var(--low); font-weight: 500; }
.guide-body th, .guide-body td { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 12px; }
.guide-body th:last-child, .guide-body td:last-child { border-right: 0; }
.guide-body tr:last-child td { border-bottom: 0; }
.guide-body blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent); color: var(--fg); font-size: 1.125rem; line-height: 1.5rem; }
.faq-items { display: grid; }
.faq-answer p { margin: 0; color: var(--muted); }
.read-next { display: grid; gap: 16px; padding-top: 24px; }
.read-next h2 { margin: 0; font-size: 1.375rem; line-height: 1.75rem; font-weight: 500; }
@media (min-width: 1000px) {
  .guide-layout { grid-template-columns: 264px minmax(0, 528px) 288px; grid-template-areas: "toc head facts" "toc body facts"; column-gap: 48px; row-gap: 16px; padding-block: 24px 72px; }
  .guide-head { grid-area: head; }
  .key-facts { grid-area: facts; margin-left: 24px; align-self: start; position: sticky; top: 24px; }
  .guide-body { grid-area: body; }
  .toc-mobile { display: none; }
  .guide-toc { display: block; grid-area: toc; grid-row: 1 / span 2; align-self: start; position: sticky; top: 24px; }
  .guide-head h1 { font-size: 2rem; line-height: 2.5rem; }
}
.guide-toc ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 4px; }
.guide-toc li { counter-increment: step; }
.guide-toc li a { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 999px; color: var(--fg); text-decoration: none; }
.guide-toc li a::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--low); font-size: .875rem; font-weight: 500; flex: none; }
.guide-toc li a:hover { background: var(--secondary-container); }
.aside-title { margin: 0; font-size: 1rem; font-weight: 600; }
.toc-time { margin: 0; color: var(--muted); font-size: .875rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-social a { padding: 12px; color: var(--fg); font-size: .875rem; font-weight: 500; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
.footer-official { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-official a { padding: 12px; color: var(--fg); font-size: .875rem; }

/* Sources are 14/20 on a phone. */
@media (max-width: 999px) { .guide-body #sources + ol { font-size: .875rem; line-height: 1.25rem; } }
