/* Anchor Guide — one stylesheet. Tokens from design/tokens.css, layout from mockups/*.html */
:root {
  --bg: #000000; --text: #ffffff; --text-2: #bdbdbd; --text-3: #9a9a9a; --text-4: #555555;
  --accent: #ffb829; --action: #8052ff; --verdant: #15846e;
  --surface-1: #0d0d0d; --surface-2: #111111;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w-body: 300; --w-head: 400; --w-label: 600;
  --fs-body: 18px; --fs-small: 15px; --fs-caption: 12px; --fs-label: 14px;
  --fs-h1: clamp(40px, 6vw, 78px); --fs-home-h1: clamp(48px, 7.5vw, 96px);
  --fs-h2: clamp(32px, 4vw, 42px); --fs-h3: 27px; --fs-stat: clamp(64px, 9vw, 113px);
  --track-display: -0.04em; --track-label: 0.35px;
  --radius: 24px; --radius-pill: 9999px;
  --max: 1280px; --pad-x: 36px; --section-y: 60px;
}
@media (max-width: 640px) { :root { --pad-x: 20px; --section-y: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-feature-settings: 'ss01' on;
  font-size: var(--fs-body); font-weight: var(--w-body); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: var(--w-head); margin: 0; }
p { margin: 0; }
strong { font-weight: 600; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: var(--radius); z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* Header */
.site-header .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.logo { text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 400; letter-spacing: -0.3px; }
.logo:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 30px; overflow-x: auto; white-space: nowrap; max-width: 100%; scrollbar-width: none;
  font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--text-3); padding: 12px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav .ghost { color: var(--text); padding: 12px 18px; border-radius: var(--radius); background: var(--surface-2); }
@media (max-width: 640px) { .nav { gap: 22px; width: 100%; } }

/* Type helpers */
.crumbs { font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3);
  display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--text-4); }
.h1 { font-size: var(--fs-h1); letter-spacing: var(--track-display); line-height: 1.02; }
.h1-home { font-size: var(--fs-home-h1); letter-spacing: var(--track-display); line-height: 0.98; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 1.2; margin-top: 18px; }
.h3 { font-size: 24px; letter-spacing: -0.48px; line-height: 1.25; }
.eyebrow { font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent); }
.eyebrow.muted { color: var(--text-3); }
.byline { margin-top: 18px; font-size: var(--fs-small); color: var(--text-3); }
.intro { margin-top: 24px; max-width: 640px; color: var(--text-2); }
.lead { margin-top: 18px; font-size: clamp(22px, 2.4vw, 27px); font-weight: 200; line-height: 1.35; letter-spacing: -0.3px; }
.lead strong { font-weight: 400; color: var(--accent); }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); color: var(--text-3); line-height: 1.5; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol { margin-top: 18px; }
.prose { color: var(--text-2); }
.prose h3 { color: var(--text); margin-top: 36px; margin-bottom: 12px; font-size: 24px; letter-spacing: -0.48px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 400; }

/* Page head */
.page-head { padding-top: var(--section-y); }
.title-row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; }
.title-row .h1 { flex: 999 1 560px; }
.stamp { flex: 0 0 auto; width: 120px; height: 120px; border-radius: var(--radius-pill); border: 2px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 42px; letter-spacing: -1.68px; }
@media (max-width: 640px) { .stamp { width: 84px; height: 84px; font-size: 30px; order: -1; } }
.chips { margin-top: 36px; display: flex; gap: 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 10px 18px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: var(--fs-small); font-weight: 400; border: 0; font-family: inherit; cursor: pointer; }
.chip:hover { color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Sections: label/heading left, content right */
.split { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-wrap: wrap; gap: 60px; }
.split > .l { flex: 1 1 420px; min-width: 0; }
.split > .r { flex: 1 1 480px; min-width: 0; }
.split.qa > .l { flex-basis: 520px; }
.split.qa > .r { flex-basis: 380px; }
@media (max-width: 640px) { .split { gap: 30px; } }

/* Fact list */
.facts { margin: 12px 0 0; }
.fact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 18px 0; }
.fact + .fact { border-top: 1px solid var(--surface-2); }
.fact dt { font-size: var(--fs-small); color: var(--text-3); }
.fact dd { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -0.48px; line-height: 1.25; text-align: right; max-width: 100%; }
.fact dd small { display: block; font-size: var(--fs-small); color: var(--text-3); letter-spacing: 0; font-weight: 300; }

/* Steps */
.steps { margin: 0; padding-left: 24px; font-weight: 400; display: flex; flex-direction: column; gap: 18px; }
.steps li::marker { color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 18px; font-variant-numeric: tabular-nums; }
.tbl th { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--text-3); font-weight: 600; text-align: right; padding: 0 12px 12px; }
.tbl td { padding: 12px; text-align: right; font-weight: 300; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 12px; }
.tbl tbody tr:nth-child(odd) { background: var(--surface-2); }
.tbl tr.me td:first-child { color: var(--accent); font-weight: 400; }
.tbl a { color: var(--text); }
.tbl a:hover { color: var(--accent); }
.tbl caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-caption); color: var(--text-3); }

/* FAQ */
.faq details { padding: 18px 0; }
.faq details + details { border-top: 1px solid var(--surface-2); }
.faq summary { font-size: 24px; font-weight: 400; letter-spacing: -0.48px; line-height: 1.3; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 200; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--text-2); }

/* Link rows */
.rows a { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 18px 0; text-decoration: none; color: var(--text); }
.rows a + a { border-top: 1px solid var(--surface-2); }
.rows a .t { font-size: var(--fs-h3); letter-spacing: -0.5px; line-height: 1.2; font-weight: 400; }
.rows a .m { font-size: var(--fs-small); font-weight: 200; color: var(--text-3); white-space: nowrap; }
.rows a:hover .t { color: var(--accent); }
@media (max-width: 640px) { .rows a .t { font-size: 22px; } }

/* Venue cards (no containers — rows with text) */
.venue { padding: 24px 0; }
.venue + .venue { border-top: 1px solid var(--surface-2); }
.venue h3 { font-size: var(--fs-h3); letter-spacing: -0.5px; }
.venue .meta { margin-top: 6px; font-size: var(--fs-small); color: var(--text-3); }
.venue p { margin-top: 10px; color: var(--text-2); }

/* Notice plate + button */
.notice { margin-top: 36px; background: var(--surface-2); border-radius: var(--radius); padding: 24px 30px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.notice p { max-width: 720px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--action); color: var(--text);
  border-radius: var(--radius); text-decoration: none; font: inherit; font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label);
  text-transform: uppercase; border: 0; cursor: pointer; }
.btn:hover { color: var(--text); background: #6c3dff; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
.field input, .field select { height: 46px; background: var(--bg); color: var(--text); border: 0; border-bottom: 1px solid var(--text-3); border-radius: 0;
  font: inherit; font-size: 18px; font-weight: 400; text-transform: none; letter-spacing: 0; width: 100%; }
.field.big input { font-size: 27px; letter-spacing: -0.5px; }

/* Home */
.hero { padding-top: 96px; padding-bottom: 120px; display: flex; flex-wrap: wrap; align-items: center; gap: 60px; }
.hero > .l { flex: 1 1 560px; min-width: 0; }
.hero > .r { flex: 1 1 420px; display: flex; justify-content: center; }
.hero svg { display: block; width: 100%; max-width: 520px; height: auto; }
@media (max-width: 640px) { .hero { padding-top: 48px; padding-bottom: 60px; } .hero > .r { display: none; } }

/* Ads: reserved, never shown while ADS_ENABLED=false */
.ad-slot[hidden] { display: none !important; }
.ad-slot { background: var(--surface-1); border-radius: var(--radius); margin-top: 36px; }
.ad-slot::before { content: 'Advertisement'; display: block; padding: 8px 12px 0; font-size: var(--fs-caption); color: var(--text-3); }

/* Sources */
.sources { margin-top: 36px; font-size: var(--fs-caption); font-weight: 200; color: var(--text-3); line-height: 1.6; }
.sources a { color: var(--text-3); }
.sources a:hover { color: var(--text); }
.sources ol { padding-left: 18px; margin: 6px 0 0; }

/* Footer */
.site-footer .wrap { padding-top: 96px; padding-bottom: 60px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.site-footer p { max-width: 520px; font-size: var(--fs-small); font-weight: 200; line-height: 1.5; color: var(--text-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; }
.site-footer nav a { color: var(--text-3); text-decoration: none; padding: 6px 0; }
.site-footer nav a:hover { color: var(--text); }

/* Calculators (mockups/Calculator.html) */
.calc .calc-form { margin-top: 48px; display: flex; flex-direction: column; gap: 30px; }
.calc-out { padding-top: 120px; }
@media (max-width: 900px) { .calc-out { padding-top: 0; } }
.stat { margin-top: 6px; font-size: var(--fs-stat); font-weight: 400; letter-spacing: var(--track-display); line-height: 1; font-variant-numeric: tabular-nums; }
.res-grid { margin-top: 48px; display: flex; flex-direction: column; gap: 30px; }
.res-v { margin-top: 6px; font-size: 48px; font-weight: 400; letter-spacing: -1.68px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.res-v small { font-size: var(--fs-small); color: var(--text-3); letter-spacing: 0; font-weight: 300; }
.chipset { border: 0; padding: 0; margin: 0; }
.chipset legend { margin-bottom: 12px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-3);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; cursor: pointer; }
.chip-radio input:checked + span { background: var(--text); color: var(--bg); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--action); }
.shares { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shares legend { margin-bottom: 12px; }
.share { display: grid; grid-template-columns: 1fr 80px 100px; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.share input { height: 40px; background: var(--bg); color: var(--text); border: 0; border-bottom: 1px solid var(--text-3); font: inherit; font-size: 18px; width: 100%; text-align: right; }
.share output { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

/* Hub list (mockups/Hub.html) */
.hub-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 60px; }
.hub-grid a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--text); font-size: 18px; font-weight: 400; border-bottom: 1px solid var(--surface-2); }
.hub-grid a:hover { color: var(--accent); }
.hub-grid a span + span { font-size: var(--fs-small); font-weight: 300; color: var(--text-3); white-space: nowrap; }
.hub-grid a[hidden] { display: none; }
.src-kind { color: var(--text-3); }
