/* Self-hosted fonts (SIL Open Font License 1.1). Latin subset; the site copy is ASCII only. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('./assets/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('./assets/fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('./assets/fonts/inter-variable.woff2') format('woff2'); }

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3.25rem, 0.5rem + 8vw, 8.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --ink: #1b1b1b;
  --ink-2: #242424;
  --ink-3: #2e2e2e;
  --ink-line: #3a3a3a;
  --red: #c62128;
  --red-dark: #a01a20;
  --red-bright: #e2353c;
  /* Small red text on dark surfaces: at least 4.5:1 on --ink and --ink-2. */
  --red-on-dark: #ff5a5f;
  --red-tint: #f9e9ea;
  --paper: #ffffff;
  --paper-2: #f4f4f3;
  --line: #e2e2e0;
  --text: #1b1b1b;
  --muted: #5c5c5a;
  --on-dark: #f2f2f2;
  --on-dark-muted: #b4b4b2;
  --gray-fund: #bdbdbd;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --wrap: 75rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 180ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: calc(4rem + 1px); }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--text); background: var(--paper); }
img, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; }
a { color: inherit; transition: color var(--t), background var(--t), border-color var(--t); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
/* The red ring is too faint on dark and red surfaces, so those use white. */
.skip:focus-visible, .header :focus-visible, .hero :focus-visible, .section--dark :focus-visible, .stance :focus-visible,
.big-inline :focus-visible, .score :focus-visible, .hotline :focus-visible, .footer :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
::selection { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); top: var(--space-4); }

.wrap { width: min(var(--wrap), 100% - 2 * clamp(var(--space-5), 5vw, var(--space-16))); margin-inline: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgb(27 27 27 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-dark); border-bottom: 1px solid var(--ink-line); }
.header__inner { width: min(var(--wrap), 100% - 2 * clamp(var(--space-5), 5vw, var(--space-16))); margin-inline: auto; display: flex; align-items: center; gap: var(--space-6); min-height: 4rem; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; min-height: 2.75rem; }
.brand__mark { width: 40px; }
.brand__text { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.nav { margin-left: auto; }
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-1); }
.nav a { display: flex; align-items: center; min-height: 2.75rem; font-size: var(--text-xs); font-weight: 500; text-decoration: none; color: var(--on-dark-muted); padding: var(--space-2) var(--space-3); border-radius: 4px; }
.nav a:hover, .nav a.is-active { color: #fff; background: var(--ink-3); }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--red); border-radius: 4px 4px 0 0; }
.menu { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform var(--t), top var(--t); }
.menu span:first-child { top: 17px; } .menu span:last-child { top: 25px; }
.menu[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.menu[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }
/* Set by app.js when very large text makes the header wrap onto several rows, so it cannot cover the page. */
.header--tall { position: static; }
.progress { height: 3px; background: transparent; position: absolute; left: 0; right: 0; bottom: -1px; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--red); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--text-sm); padding: var(--space-3) var(--space-6); border-radius: 3px; border: 2px solid var(--red); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); flex-shrink: 0; min-height: 2.75rem; }
.btn--ghost { background: transparent; border-color: #808080; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 20%, rgb(198 33 40 / .14), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; width: min(var(--wrap), 100% - 2 * clamp(var(--space-5), 5vw, var(--space-16))); margin-inline: auto; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(var(--space-12), 8vw, var(--space-20)); gap: var(--space-12); }
/* Full-height variant used by 404.html */
.hero--page { min-height: 100dvh; display: flex; flex-direction: column; }
.hero--page .hero__inner { flex: 1; min-height: 0; }
.hero__titlerow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.hero__logo { width: clamp(84px, 16vw, 230px); flex-shrink: 0; }
.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-sm); color: var(--red); margin-bottom: var(--space-3); }
.eyebrow--light { color: var(--on-dark-muted); }
.rule { display: block; width: 110px; height: 6px; background: var(--red); margin: var(--space-2) 0 var(--space-6); }
.hero__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--text-hero); line-height: .88; letter-spacing: -.005em; color: #fff; }
.hero__sub { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); color: #e6e6e6; margin-top: var(--space-3); line-height: 1.1; }
.hero__lede { color: var(--on-dark-muted); max-width: 60ch; margin-top: var(--space-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__strip { height: 10px; background: var(--red); }

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); scroll-margin-top: calc(clamp(1.5rem, 3vw, 2.5rem) - clamp(var(--space-16), 9vw, var(--space-32))); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--tint { background: var(--paper-2); }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1.02; margin-bottom: var(--space-6); max-width: 22ch; }
.section--dark .h2 { color: #fff; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); margin-bottom: var(--space-5); }
.red-h { color: var(--red); }
.muted + .h3, .prose + .h3 { margin-top: var(--space-12); }
.section--dark .red-h { color: var(--red-bright); }
.prose { max-width: 70ch; }
.muted { color: var(--muted); max-width: 72ch; }
.small { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-4); }
.lede-light { color: var(--on-dark-muted); margin-top: calc(-1 * var(--space-3)); }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.red { color: var(--red); font-style: normal; }

.fn { font-size: .68em; vertical-align: super; line-height: 0; color: var(--red); text-decoration: none; font-weight: 600; margin-left: 1px; padding: 0 2px; position: relative; }
/* Enlarges the tap area of the small source markers without changing the line layout. */
.fn::after { content: ''; position: absolute; inset: -10px -8px; }
.fn:focus-visible { outline-offset: 1px; }
.fn:hover { text-decoration: underline; }
.section--dark .fn, .fn--light { color: var(--red-on-dark); }
.hotline .fn--light { color: #fff; }

/* Stance */
.stance { margin-block: clamp(var(--space-12), 6vw, var(--space-20)); background: var(--ink); color: #fff; padding: clamp(var(--space-8), 5vw, var(--space-16)); border-left: 8px solid var(--red); position: relative; }
.stance__label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); font-size: var(--text-sm); }
.stance__text { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); line-height: 1; margin-block: var(--space-4) var(--space-6); max-width: 20ch; }
.stance__text .red { color: var(--red-bright); }
.stance__body { color: #d6d6d6; max-width: 62ch; }

.principles { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 4px solid var(--ink); }
.principle, .pos, .stat, .event, .crit, .up, .scale li { min-width: 0; overflow-wrap: break-word; }
.principle { padding: var(--space-6) var(--space-5) var(--space-6) 0; border-right: 1px solid var(--line); padding-left: var(--space-5); }
.principle:first-child { padding-left: 0; }
.principle:last-child { border-right: 0; padding-right: 0; }
.principle__n { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: var(--text-xl); line-height: 1; }
.principle h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: var(--space-3) 0 var(--space-3); }
.principle p { font-size: var(--text-sm); color: var(--muted); }
.note { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--line); }

/* Position */
.positions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); margin-top: var(--space-12); }
.pos { background: var(--ink); padding: clamp(var(--space-6), 3.5vw, var(--space-10)); position: relative; }
.pos__n { font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; line-height: .8; color: var(--red-bright); display: block; margin-bottom: var(--space-5); }
.pos h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: #fff; margin-bottom: var(--space-4); }
.pos p { color: #c9c9c7; font-size: var(--text-sm); line-height: 1.7; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px solid var(--red); background: var(--paper-2); margin-top: var(--space-10); }
.stat { padding: var(--space-8) var(--space-6); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: var(--text-3xl); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-3); }

.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-16); }
.event { border-top: 2px solid var(--ink); padding-top: var(--space-6); }
.event__tag { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-sm); color: var(--red); }
.event h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); margin: var(--space-2) 0 var(--space-4); }
.event > p { font-size: var(--text-sm); color: #3c3c3a; }
.dddd { display: grid; gap: var(--space-2); margin-top: var(--space-5); counter-reset: d; }
.dddd li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-3); align-items: baseline; padding: var(--space-3) var(--space-4); background: var(--paper-2); border-left: 3px solid var(--red); }
.dddd strong { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.dddd span { font-size: var(--text-sm); color: var(--muted); line-height: 1.4; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-5); }
.mini li { background: var(--paper-2); padding: var(--space-4); }
.mini b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--red); line-height: 1; }
.mini span { font-size: var(--text-xs); color: var(--muted); display: block; margin-top: var(--space-2); line-height: 1.35; }
.event > .big-inline { color: #fff; }
.big-inline { margin-top: var(--space-5); background: var(--ink); color: #fff; padding: var(--space-4) var(--space-5); font-size: var(--text-sm); }
.big-inline b { font-family: var(--font-display); font-size: var(--text-xl); color: var(--red-bright); margin-right: var(--space-2); }

.context { margin-top: var(--space-16); display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-10); align-items: center; padding: var(--space-8); border: 1px solid var(--line); background: #fff; }
.context p:not(.eyebrow) { font-size: var(--text-sm); color: #3c3c3a; }
.context .eyebrow { color: var(--muted); }
.context__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.context__nums dt { font-size: var(--text-xs); color: var(--muted); }
.context__nums dd { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--ink); }

/* Lifecycle */
.lifecycle { margin-top: var(--space-12); background: #fff; border: 1px solid var(--line); }
.lc-track { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.lc-step { text-align: left; padding: var(--space-6) var(--space-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: var(--paper-2); display: flex; flex-direction: column; gap: var(--space-1); }
.lc-step:last-child { border-right: 0; }
.lc-step::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: transparent; transition: background var(--t); }
.lc-step:hover { background: #ececea; }
.lc-step[aria-selected='true'] { background: #fff; border-bottom-color: #fff; }
.lc-step[aria-selected='true']::after { background: var(--red); }
.lc-step__n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: #6e6e6c; line-height: 1; }
.lc-step[aria-selected='true'] .lc-step__n { color: var(--red); }
.lc-step__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; margin-top: var(--space-2); }
.lc-step__time { font-size: var(--text-xs); color: var(--muted); }
.lc-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-10); padding: clamp(var(--space-6), 4vw, var(--space-12)); animation: fade .35s var(--ease); }
.lc-panel[hidden] { display: none; }
/* Panel titles are shown only when the script is not running (see the end of this file). */
.ns-title { display: none; }
.k { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-sm); color: var(--red); margin-bottom: var(--space-2); }
.v { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.standards-wrap { margin-top: var(--space-16); }
.standards { display: grid; gap: var(--space-2); }
.standards li { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: #fff; border-left: 4px solid var(--red); align-items: baseline; }
.standards b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.standards span { font-size: var(--text-sm); color: #3c3c3a; }

/* Assessment */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-16); }
.scale li { background: var(--paper-2); padding: var(--space-5); border-top: 4px solid var(--ink); }
.scale li:first-child { border-top-color: var(--red); }
.scale__n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1; color: var(--ink); display: block; }
.scale li:first-child .scale__n { color: var(--red); }
.scale b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: block; margin: var(--space-2) 0; }
.scale p { font-size: var(--text-sm); color: var(--muted); }
.small-intro { margin-top: calc(-1 * var(--space-2)); margin-bottom: var(--space-8); }

.scorer { display: grid; grid-template-columns: 1fr 21.25rem; gap: var(--space-8); align-items: start; }
.criteria { display: grid; gap: var(--space-2); }
.crit { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-6); padding: var(--space-5); border: 1px solid var(--line); background: #fff; }
.crit__head { display: flex; align-items: baseline; gap: var(--space-3); }
.crit__letter { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--red); line-height: 1; width: 1.2em; }
.crit__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.crit__w { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); background: var(--paper-2); padding: 2px var(--space-2); white-space: nowrap; }
.crit__w.is-heavy { background: var(--red); color: #fff; }
.crit__body { grid-column: 1; padding-left: calc(1.2em * 1.6 / 1 + var(--space-3)); padding-left: 2.6rem; }
.crit__q { font-size: var(--text-sm); }
.crit__e { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-1); }
.crit__e b { font-weight: 600; color: #3c3c3a; }
.crit__wbar { height: 4px; background: var(--paper-2); margin-top: var(--space-3); }
.crit__wbar span { display: block; width: 0; height: 100%; background: var(--ink); }
/* Weight bar length: 20% is the heaviest weight and fills the bar (weight x 5). */
.crit[data-weight='5'] .crit__wbar span { width: 25%; }
.crit[data-weight='10'] .crit__wbar span { width: 50%; }
.crit[data-weight='15'] .crit__wbar span { width: 75%; }
.crit[data-weight='20'] .crit__wbar span { width: 100%; }
.crit__rate { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 4px; align-self: center; }
.crit__rate button { width: 44px; height: 44px; border: 1px solid #8a8a88; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; background: #fff; }
.crit__rate button:hover { border-color: var(--ink); }
.crit__rate button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }

.score { position: sticky; top: 5.5rem; background: var(--ink); color: #fff; padding: var(--space-8); border-top: 6px solid var(--red); }
.score__k { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); font-size: var(--text-sm); }
.score__v { font-family: var(--font-display); font-weight: 800; font-size: 6rem; line-height: .9; margin-top: var(--space-3); font-variant-numeric: tabular-nums; }
.score__label { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--red-on-dark); }
.score__bar { height: 8px; background: var(--ink-3); margin: var(--space-5) 0; }
.score__bar span { display: block; height: 100%; background: var(--red); width: 66%; transition: width .4s var(--ease); }
.score__note { font-size: var(--text-xs); color: var(--on-dark-muted); line-height: 1.55; }
.score__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.chip { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 2.75rem; font-size: var(--text-xs); font-weight: 600; padding: var(--space-2) var(--space-3); border: 1px solid #808080; color: #fff; border-radius: 3px; }
.chip:hover { background: #fff; color: var(--ink); border-color: #fff; }

.callout { margin-top: var(--space-16); background: var(--red-tint); border-left: 6px solid var(--red); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.callout p { font-size: var(--text-base); max-width: 80ch; }

/* Partners */
.aud { margin-top: var(--space-10); display: grid; grid-template-columns: 20rem 1fr; border: 1px solid var(--ink-line); }
.aud__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--ink-line); }
.aud__tabs button { text-align: left; padding: var(--space-5) var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; color: var(--on-dark-muted); border-bottom: 1px solid var(--ink-line); border-left: 4px solid transparent; }
.aud__tabs button:last-child { border-bottom: 0; }
.aud__tabs button:hover { color: #fff; background: var(--ink-2); }
.aud__tabs button[aria-selected='true'] { color: #fff; background: var(--ink-2); border-left-color: var(--red); }
.aud__panels { padding: clamp(var(--space-6), 4vw, var(--space-12)); background: var(--ink-2); }
.recs { list-style: none; display: grid; gap: var(--space-5); animation: fade .35s var(--ease); }
.recs li { position: relative; padding-left: var(--space-8); color: #e0e0de; font-size: var(--text-base); max-width: 62ch; }
.recs li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 4px; background: var(--red); }
.upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); margin-top: var(--space-10); border: 1px solid var(--ink-line); }
/* Each card shares the three rows of the grid, so labels, names, and dates line up across cards. */
.up { background: var(--ink); padding: var(--space-6); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.up__k { font-size: var(--text-xs); color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.up__v { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; color: #fff; margin-block: var(--space-2) var(--space-1); }
.up__d { font-size: var(--text-sm); color: var(--red-on-dark); font-weight: 500; }

/* Hotline */
.hotline { background: var(--red); color: #fff; padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }
.hotline__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; }
.hotline__h { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1; margin-bottom: var(--space-3); max-width: 20ch; }
.hotline p { color: #fde8e9; }
.hotline__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hl { display: flex; flex-direction: column; text-decoration: none; background: var(--ink); color: #fff; padding: var(--space-4) var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.05; border-radius: 3px; }
.hl span { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); }
.hl:hover { background: #000; }
.hl--alt { background: #fff; color: var(--red); }
.hl--alt span { color: var(--muted); }
.hl--alt:hover { background: var(--red-tint); }

/* About */
#about p { font-size: var(--text-base); color: #3c3c3a; }
.link { color: var(--red); font-weight: 600; }
.about-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-8); }
.about-nums div { border-top: 3px solid var(--ink); padding-top: var(--space-3); }
.about-nums b { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); color: var(--red); line-height: 1; display: block; }
.about-nums span { font-size: var(--text-xs); color: var(--muted); }

/* Sources */
.sources { margin-top: var(--space-8); padding-left: 1.6em; display: grid; gap: var(--space-3); columns: 2; column-gap: var(--space-12); display: block; }
.sources li { font-size: var(--text-xs); color: #3c3c3a; line-height: 1.55; break-inside: avoid; margin-bottom: var(--space-4); padding: var(--space-2) var(--space-3); border-radius: 3px; scroll-margin-top: 6rem; }
.sources li::marker { color: var(--red); font-weight: 700; }
.sources a { color: var(--red); font-weight: 600; }
.sources li:target { background: var(--red-tint); }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); padding-block: var(--space-12); border-top: 10px solid var(--red); }
.footer__inner { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.footer__logo { width: 96px; }
.footer__title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.footer__meta { font-size: var(--text-xs); margin-top: var(--space-2); }
.footer__meta a { color: var(--on-dark-muted); }
.footer__meta a:hover { color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive. Breakpoints are in em (1100, 820, and 520 pixels at the default text size) so they follow the
   reader's browser text size. */
@media (max-width: 68.75em) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; padding: var(--space-3) clamp(var(--space-5), 5vw, var(--space-16)) var(--space-5); }
  .nav a { font-size: var(--text-sm); padding: var(--space-3); }
  .header__inner { flex-wrap: wrap; row-gap: 0; }
  .menu { display: block; margin-left: 0; order: 3; }
  .header .btn--sm { margin-left: auto; order: 2; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle, .principle:first-child { padding: var(--space-6) var(--space-5); border-bottom: 1px solid var(--line); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:last-child { grid-column: 1 / -1; }
  .events { grid-template-columns: 1fr; gap: var(--space-12); }
  .scorer { grid-template-columns: 1fr; }
  .score { position: static; }
  .aud { grid-template-columns: 1fr; }
  .aud__tabs { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .hotline__inner { grid-template-columns: 1fr; }
}
@media (max-width: 51.25em) {
  .grid-2, .context { grid-template-columns: 1fr; }
  .positions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lc-track { grid-template-columns: 1fr; }
  .lc-step { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); border-right: 0; padding: var(--space-4) var(--space-5); }
  .lc-step::after { top: 0; bottom: 0; right: auto; width: 4px; height: auto; }
  .lc-step__name { margin-top: 0; }
  .lc-step__time { width: 100%; padding-left: 2.1rem; }
  .lc-step[aria-selected='true'] { border-bottom-color: var(--line); }
  .lc-panel { grid-template-columns: 1fr; gap: var(--space-5); }
  .scale { grid-template-columns: repeat(2, 1fr); }
  .upcoming { grid-template-columns: 1fr; }
  .sources { columns: 1; }
}
@media (max-width: 32.5em) {
  .brand__text { display: none; }
  .brand { min-width: 2.75rem; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:first-child { border-right: 0; padding-inline: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--space-6) var(--space-4); }
  .stat__num { font-size: 2.4rem; }
  .crit { grid-template-columns: 1fr; padding: var(--space-4); }
  .crit__body { padding-left: 0; }
  .crit__rate { grid-column: 1; grid-row: auto; }
  .standards li { grid-template-columns: 1fr; gap: var(--space-1); }
  .dddd li { grid-template-columns: 1fr; gap: 0; }
  .context__nums { grid-template-columns: 1fr 1fr 1fr; }
  .context { padding: var(--space-5); }
  .hl { flex: 1 1 40%; white-space: nowrap; }
  .hl:first-child { flex-basis: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .score__v { font-size: 4.5rem; }
}
.fn-sep { font-size: .68em; vertical-align: super; line-height: 0; color: var(--red); }
.section--dark .fn-sep { color: var(--red-on-dark); }

/* Without JavaScript. app.js adds the "js" class to <html> as its first step. Until then (script disabled,
   blocked, or failed to load) every tab panel is shown with its title, and controls that need the script are hidden. */
html:not(.js) .lc-panel[hidden], html:not(.js) .aud__panel[hidden] { display: block; }
html:not(.js) .lc-panel[hidden] { display: grid; }
html:not(.js) [role='tablist'], html:not(.js) .menu, html:not(.js) .score, html:not(.js) .progress { display: none; }
html:not(.js) .scorer, html:not(.js) .aud { grid-template-columns: 1fr; }
html:not(.js) .lc-panel + .lc-panel { border-top: 1px solid var(--line); }
html:not(.js) .aud__panel + .aud__panel { margin-top: var(--space-10); }
html:not(.js) .ns-title { display: block; grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.1; }
html:not(.js) .ns-title span { font-weight: 600; color: var(--muted); margin-left: var(--space-2); }
html:not(.js) .aud__panel .ns-title { color: #fff; margin-bottom: var(--space-5); }

/* Without JavaScript on narrow screens the menu button cannot work, so the section links are shown in the header. */
@media (max-width: 68.75em) {
  html:not(.js) .header { position: static; }
  html:not(.js) .header__inner { flex-wrap: wrap; padding-block: var(--space-2); row-gap: 0; }
  html:not(.js) .nav { display: block; position: static; order: 4; width: 100%; margin-left: 0; background: transparent; border: 0; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; padding: var(--space-1) 0 0; margin-inline: calc(-1 * var(--space-3)); }
}

/* Print. The page prints in full: every tab panel is shown, controls that only work on screen are removed,
   and the dark sections keep their backgrounds so the white text and logos stay readable. */
@media print {
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; scroll-behavior: auto; }
  .header, .skip, .hero__ctas, .crit__rate, .score, [role='tablist'] { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lc-panel, .recs { animation: none !important; }
  .lc-panel[hidden] { display: grid !important; }
  .aud__panel[hidden] { display: block !important; }
  .scorer, .aud { grid-template-columns: 1fr; }
  .lc-panel + .lc-panel { border-top: 1px solid var(--line); }
  .aud__panel + .aud__panel { margin-top: var(--space-10); }
  .ns-title { display: block; grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.1; }
  .ns-title span { font-weight: 600; color: var(--muted); margin-left: var(--space-2); }
  .aud__panel .ns-title { color: #fff; margin-bottom: var(--space-5); }
  .hero__inner { min-height: 0; }
  .section { padding-block: var(--space-12); }
  /* Card grids print as plain stacked cards, so a page break never leaves an empty grid background. */
  .positions, .upcoming { display: block; background: transparent; border: 0; }
  .pos, .up { border: 1px solid var(--ink-line); margin-bottom: -1px; }
  .principle, .pos, .stat, .event, .crit, .lc-panel, .recs li, .up, .scale li, .standards li, .stance, .callout, .context, .sources li { break-inside: avoid; }
  .h2, .h3, .ns-title { break-after: avoid; }
}
