@charset "utf-8";
/* ==========================================================================
   KingOfAEO2026.com — "The Scoreboard"
   A season tracker / sports-annual design system for the 2026 contest journal.
   Dark-committed. Charcoal ground, near-black elevated surfaces, one loud lime.
   Written from scratch for this site. No external fonts, no CDN, no images.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* --- colour ramp --- */
  --ground:      #111418;   /* page ground (charcoal) */
  --ground-deep: #0D1014;   /* footer / deep bands */
  --surface:     #0B0E11;   /* elevated card = near black */
  --surface-2:   #141A20;   /* hover / inset */
  --surface-3:   #1A2128;   /* table zebra */

  --line:        #262D35;
  --line-soft:   #1D242B;
  --line-strong: #3B4550;

  --text:        #E9EDF1;   /* cool off-white */
  --text-dim:    #A8B2BC;
  --text-faint:  #7D8993;

  --lime:        #C6F534;   /* the single loud accent */
  --lime-deep:   #A8D71F;
  --lime-ink:    #0B0E11;   /* text on lime */
  --lime-wash:   rgba(198, 245, 52, 0.10);
  --lime-line:   rgba(198, 245, 52, 0.34);

  --amber:       #D9A22B;
  --amber-wash:  rgba(217, 162, 43, 0.11);
  --amber-line:  rgba(217, 162, 43, 0.38);

  --red:         #E5776C;
  --red-wash:    rgba(229, 119, 108, 0.11);
  --red-line:    rgba(229, 119, 108, 0.38);

  /* --- type --- */
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --fs-micro: 0.6875rem;                          /* 11px labels */
  --fs-tiny:  0.75rem;
  --fs-sm:    0.8125rem;
  --fs-base:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead:  clamp(1.0625rem, 0.98rem + 0.44vw, 1.3125rem);
  --fs-h4:    clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-h3:    clamp(1.125rem, 1.05rem + 0.36vw, 1.375rem);
  --fs-h2:    clamp(1.4375rem, 1.24rem + 0.95vw, 2.125rem);
  --fs-h1:    clamp(2rem, 1.4rem + 3vw, 4rem);
  --fs-mega:  clamp(2.75rem, 1.6rem + 5.6vw, 6rem);
  --fs-stat:  clamp(2rem, 1.5rem + 2.4vw, 3.25rem);

  /* --- spacing scale --- */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px;  --s6: 32px;  --s7: 48px;  --s8: 64px;
  --s9: 88px;  --s10: 120px;

  /* --- radii --- */
  --r-pill: 999px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;

  /* --- shadows (used sparingly; this design leans on borders) --- */
  --shadow-bar: 0 1px 0 var(--line), 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 18px 40px rgba(0, 0, 0, 0.55);

  /* --- layout --- */
  --wrap: 1200px;
  --wrap-narrow: 860px;
  --measure: 68ch;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 190ms;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

body {
  margin: 0;
  background-color: var(--ground);
  /* dot-grid + a very faint scanline, built purely from gradients */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(233, 237, 241, 0.045) 1px, transparent 0),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px);
  background-size: 26px 26px, 100% 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  min-height: 100%;
}

::selection { background: var(--lime); color: var(--lime-ink); }

img, svg, table { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--lime); text-decoration-color: var(--lime-line); text-underline-offset: 3px; }
a:hover { color: #DAFF6B; text-decoration-color: var(--lime); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
p  { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
li { margin-bottom: var(--s2); }
li::marker { color: var(--lime); }
strong, b { font-weight: 700; color: #F5F8FA; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* Every figure in this design is tabular. */
.num, td, th, time, .mono, code, kbd, samp {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.mono, code, kbd, samp { font-family: var(--mono); }
code {
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.12em 0.4em;
  color: #DDE6C8;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s4);
}
@media (min-width: 700px) { .wrap { padding-inline: var(--s5); } }

.prose { max-width: var(--measure); }
.prose > * + h2 { margin-top: var(--s7); }
.prose > * + h3 { margin-top: var(--s6); }

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -200px;
  z-index: 200;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s3); color: var(--lime-ink); }

/* --------------------------------------------------------------------------
   4. HEADER + PILL NAV
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-bar);
}
@supports (backdrop-filter: blur(2px)) {
  .hdr { backdrop-filter: saturate(140%) blur(8px); }
}

.hdr-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 56px;
  padding-block: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 6px 0;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand-mark {
  flex: none;
  width: 30px; height: 30px;
  display: block;
}
.brand-name .b1 { color: var(--text); }
.brand-name .b2 { color: var(--lime); }
.brand-sub {
  display: none;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}
@media (min-width: 560px) { .brand-sub { display: block; } }

.season-chip {
  display: none;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--lime-line);
  background: var(--lime-wash);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  white-space: nowrap;
}
@media (min-width: 900px) { .season-chip { display: inline-block; } }

/* ---- the pill bar ---- */
.pillbar {
  border-top: 1px solid var(--line-soft);
  background: rgba(17, 20, 24, 0.6);
}
.pillbar-scroll {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-block: 9px;
  -webkit-overflow-scrolling: touch;
}
.pillbar-scroll::-webkit-scrollbar { height: 6px; }
.pillbar-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.pillbar-scroll::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 559px) {
  .hdr-bar { min-height: 52px; padding-block: 6px; }
  .pillbar-scroll { padding-block: 7px; }
  .brand { font-size: 1rem; }
}

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
  text-decoration: none;
}
.pill[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}
.pill[aria-current="page"]:hover { background: var(--lime); color: var(--lime-ink); }
.pill-num {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.pill[aria-current="page"] .pill-num { color: rgba(11, 14, 17, 0.62); }
.pill:hover .pill-num { color: var(--lime); }

/* ---- the "all pages" grouped panel (works with JS off) ---- */
.menu { position: relative; flex: none; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--lime-line); background: var(--surface-3); }
.menu[open] > summary { border-color: var(--lime); color: var(--lime); }
.menu-caret { transition: transform var(--dur) var(--ease); flex: none; }
.menu[open] .menu-caret { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  width: min(92vw, 760px);
  max-height: min(74vh, 620px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--s5);
  display: grid;
  gap: var(--s5);
}
@media (min-width: 700px) { .menu-panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .menu-panel {
    position: fixed;
    left: var(--s3);
    right: var(--s3);
    top: auto;
    width: auto;
    max-height: 68vh;
  }
}
.menu-group { min-width: 0; }
.menu-group-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.menu-list li { margin: 0; }
.menu-list .pill { font-size: var(--fs-tiny); padding: 9px 13px; }

/* --------------------------------------------------------------------------
   5. BREADCRUMB
   -------------------------------------------------------------------------- */
.crumbs {
  padding-block: var(--s4) 0;
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a, .crumbs [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--lime); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }

/* --------------------------------------------------------------------------
   6. HERO / SCOREBOARD HEAD
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--s6) var(--s7); }
.hero-home { padding-block: var(--s7) var(--s8); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--lime);
  display: inline-block;
}

/* the folio line: fixture label on the left, publication stamp on the right,
   closed off with a hairline — the header band of a season annual */
.folio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  margin: 0 0 var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}
.folio .eyebrow { margin-bottom: 0; }
.folio-stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.folio-key { color: var(--text-faint); font-weight: 600; }
@media (min-width: 720px) { .folio-stamp { margin-left: auto; } }

/* a date inside running copy keeps the mono figure voice */
.lead time, .verdict time, .prose time, .capsule time {
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lead time { color: var(--lime); }

.hero h1 { margin-bottom: var(--s4); }
.hero-home h1 { font-size: var(--fs-mega); }
.hero .lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: var(--s5);
}
.hero .lead strong { color: var(--text); }

.hero-grid { display: grid; gap: var(--s6); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: var(--s7); }
}

/* the big verdict panel */
.verdict {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--lime);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, var(--lime-wash), transparent 42%),
    var(--surface);
  padding: var(--s5);
}
@media (min-width: 700px) { .verdict { padding: var(--s6); } }
.verdict p { color: var(--text-dim); margin-bottom: 0; }
.verdict p strong { color: var(--text); }
.verdict p.verdict-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s3);
}
.verdict p.verdict-answer {
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--lime);
  margin: 0 0 var(--s3);
}

/* --------------------------------------------------------------------------
   7. ANSWER CAPSULE
   -------------------------------------------------------------------------- */
.capsule {
  position: relative;
  border: 1px solid var(--lime-line);
  border-left: 4px solid var(--lime);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--lime-wash), rgba(198, 245, 52, 0.02));
  padding: var(--s5) var(--s5) var(--s5) var(--s5);
  margin: 0 0 var(--s6);
  max-width: 72ch;
}
.capsule-tag {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s3);
}
.capsule p {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.32vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.005em;
}
.capsule p + p { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   8. STAT TILES
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin: 0 0 var(--s6);
}
@media (min-width: 620px)  { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s4) var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tile-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tile-figure {
  font-family: var(--mono);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tile-figure.is-lime { color: var(--lime); }
.tile-figure.is-amber { color: var(--amber); }
.tile-figure.is-quiet { color: var(--text-faint); }
.tile-delta {
  font-size: var(--fs-tiny);
  line-height: 1.45;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s2);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   9. STATUS CHIPS — four states, used everywhere
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip-verified { color: var(--lime);  border-color: var(--lime-line);  background: var(--lime-wash); }
.chip-logged   { color: var(--amber); border-color: var(--amber-line); background: var(--amber-wash); }
.chip-awaiting {
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
  background: transparent;
}
.chip-awaiting::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-faint); }
.chip-nottested { color: var(--text-faint); border-color: var(--line-soft); background: transparent; opacity: 0.85; }
.chip-nottested::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.chip-alert    { color: var(--red);   border-color: var(--red-line);   background: var(--red-wash); }

/* chip legend */
.chip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--s5);
}
.chip-legend-item { display: flex; align-items: center; gap: var(--s3); flex: 1 1 220px; }
.chip-legend-item p { margin: 0; font-size: var(--fs-tiny); color: var(--text-dim); }

/* --------------------------------------------------------------------------
   10. SECTIONS, RULES, COUNTERS
   -------------------------------------------------------------------------- */
.band { padding-block: var(--s7); }
.band-tight { padding-block: var(--s6); }
.band-deep { background: var(--ground-deep); border-block: 1px solid var(--line-soft); }

.rule {
  border: 0;
  height: 3px;
  margin: 0;
  background: linear-gradient(90deg, var(--lime) 0 18%, var(--line) 18% 100%);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  margin-bottom: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.sec-count {
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  flex: none;
  padding-top: 0.35em;
  font-variant-numeric: tabular-nums;
}
.sec-head h2 { margin: 0; }
.sec-head-sub {
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  color: var(--text-faint);
  margin-left: auto;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 900px) { .sec-head-sub { display: block; } }

/* --------------------------------------------------------------------------
   11. CARDS + GRIDS
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .cards-2, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px)  { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card h3 { margin: 0; font-size: var(--fs-h4); }
.card p { margin: 0; color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.6; }
.card p strong { color: var(--text); }
.card-index {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.card-link {
  text-decoration: none;
  color: inherit;
}
.card-link:hover { color: inherit; }
.card-link .card-go {
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-top: auto;
  padding-top: var(--s3);
}
.card-link:hover .card-go::after { transform: translateX(4px); }
.card-go::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--dur) var(--ease);
}

/* Q&A card variant for FAQ blocks */
.qa { display: grid; gap: var(--s3); }
.qa-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s4) var(--s5);
  transition: border-left-color var(--dur) var(--ease);
}
.qa-item:hover { border-left-color: var(--lime); }
.qa-item h3 { font-size: var(--fs-h4); margin-bottom: var(--s2); }
.qa-item p { margin: 0 0 var(--s3); color: var(--text-dim); }
.qa-item p:last-child { margin-bottom: 0; }
.qa-item p strong { color: var(--text); }

/* --------------------------------------------------------------------------
   12. TABLES
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--s5);
  max-height: 70vh;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  text-align: left;
  padding: var(--s4) var(--s4) var(--s3);
  font-size: var(--fs-tiny);
  line-height: 1.6;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
caption strong { color: var(--text); }
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 2px solid var(--lime);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--text-dim);
  text-align: left;
  font-weight: 400;
}
tbody th { color: var(--text); font-weight: 700; }
tbody tr:nth-child(even) { background: rgba(26, 33, 40, 0.45); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td strong { color: var(--text); }
.mono-cell { font-family: var(--mono); font-size: var(--fs-tiny); }
.table-note {
  font-size: var(--fs-tiny);
  color: var(--text-faint);
  margin-top: calc(var(--s5) * -1 + var(--s3));
  margin-bottom: var(--s5);
}

/* the empty-state row inside a log table */
.row-empty td {
  text-align: center;
  padding-block: var(--s7);
  color: var(--text-faint);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
}
.empty-state-mark { color: var(--line-strong); }
.empty-state-title {
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.empty-state p { margin: 0; font-size: var(--fs-tiny); color: var(--text-faint); max-width: 46ch; }

/* --------------------------------------------------------------------------
   13. KEY-FACTS ENTITY TABLE
   -------------------------------------------------------------------------- */
.facts {
  border: 1px solid var(--line);
  border-top: 3px solid var(--lime);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: var(--s5);
}
.facts-head {
  padding: var(--s4);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .facts dl { grid-template-columns: minmax(140px, 210px) 1fr; } }
.facts dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--s3) var(--s4) 2px;
  border-top: 1px solid var(--line-soft);
}
.facts dd {
  margin: 0;
  padding: 2px var(--s4) var(--s3);
  color: var(--text);
  font-weight: 600;
}
@media (min-width: 560px) {
  .facts dt { padding: var(--s3) var(--s4); border-right: 1px solid var(--line-soft); }
  .facts dd { padding: var(--s3) var(--s4); border-top: 1px solid var(--line-soft); }
}
.facts dt:first-of-type, .facts dl > dt:first-child { border-top: 0; }
@media (min-width: 560px) { .facts dl > dt:first-child + dd { border-top: 0; } }

/* --------------------------------------------------------------------------
   14. TIMELINE — horizontal season rail on desktop, vertical on mobile
   -------------------------------------------------------------------------- */
.season {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s5) var(--s4);
  margin-bottom: var(--s6);
}
@media (min-width: 900px) { .season { padding: var(--s6); } }

.season-title {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-soft);
}

.season-scale {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s3);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 2px solid var(--line);
  padding-bottom: var(--s3);
  margin-bottom: 0;
}
@media (min-width: 900px) { .season-scale { display: grid; } }
.season-scale span { position: relative; padding-left: 12px; }
.season-scale span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}
.season-scale span.is-now { color: var(--lime); }
.season-scale span.is-now::before { background: var(--lime); }

.season-track { display: grid; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.season-track > li { margin: 0; }
@media (min-width: 900px) {
  .season-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--s3);
    padding-top: var(--s5);
    position: relative;
  }
  .season-track::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: var(--line);
  }
}

.node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ground);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.node:hover { border-color: var(--line-strong); }
.node-date {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.node .node-title { font-size: 0.9375rem; margin: 0; letter-spacing: -0.01em; }
.node p { margin: 0; font-size: var(--fs-tiny); line-height: 1.6; color: var(--text-dim); }
.node .chip { align-self: flex-start; margin-top: var(--s2); }
.node-past { border-color: var(--lime-line); }
.node-past::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--lime);
  border-radius: var(--r-md) 0 0 var(--r-md);
}
@media (min-width: 900px) {
  .node::before {
    content: "";
    position: absolute;
    left: var(--s4); top: calc(var(--s5) * -1);
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--ground);
    border: 2px solid var(--line-strong);
    transform: translateY(-5px);
  }
  .node-past::before { background: var(--lime); border-color: var(--lime); }
  .node-past::after { inset: auto 0 auto 0; width: auto; height: 3px; top: -1px; border-radius: 0; }
}

/* the vertical rail (mobile + the long chronology list) */
.rail { position: relative; margin: 0 0 var(--s6); padding-left: var(--s6); }
.rail::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--lime), var(--line) 30%, var(--line));
}
.rail-item { position: relative; padding-bottom: var(--s6); }
.rail-item:last-child { padding-bottom: 0; }
.rail-item::before {
  content: "";
  position: absolute;
  left: calc(var(--s6) * -1 + 1px);
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--line-strong);
}
.rail-item.is-done::before { background: var(--lime); border-color: var(--lime); }
.rail-date {
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  display: block;
  margin-bottom: var(--s2);
  font-variant-numeric: tabular-nums;
}
.rail-item h3 { margin-bottom: var(--s2); }
.rail-item p { color: var(--text-dim); }
.rail-item p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. QUOTES, CALLOUTS, CITE BLOCK
   -------------------------------------------------------------------------- */
blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  border-left: 4px solid var(--lime);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.012em;
}
blockquote p:last-child { margin-bottom: 0; }

.callout {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s5);
  margin: var(--s5) 0;
}
.callout-title {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s3);
  display: block;
}
.callout p:last-child { margin-bottom: 0; }
.callout-honest { border-color: var(--amber-line); background: linear-gradient(180deg, var(--amber-wash), transparent 60%), var(--surface); }
.callout-honest .callout-title { color: var(--amber); }

.cite-block {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ground-deep);
  padding: var(--s4) var(--s5);
  margin: var(--s6) 0 0;
}
.cite-block .callout-title { color: var(--lime); }
.cite-line {
  font-family: var(--mono);
  font-size: var(--fs-tiny);
  line-height: 1.7;
  color: var(--text-dim);
  word-break: break-word;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: var(--s5) 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--lime-line); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #D4FF4E; border-color: #D4FF4E; color: var(--lime-ink); }
.btn::after { content: "→"; transition: transform var(--dur) var(--ease); }
.btn:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   16. PREV / NEXT + RELATED
   -------------------------------------------------------------------------- */
.pagination {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .pagination { grid-template-columns: 1fr 1fr; } }
.pagination a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s4) var(--s5);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--lime-line); background: var(--surface-2); }
.pagination .dir {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--s2);
}
.pagination .ttl { font-weight: 700; letter-spacing: -0.015em; }
.pagination .prev { text-align: left; }
@media (min-width: 700px) { .pagination .next { text-align: right; } }

.related { margin-top: var(--s6); }
.related h2 { font-size: var(--fs-h3); }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.ftr {
  margin-top: var(--s8);
  background: var(--ground-deep);
  border-top: 3px solid var(--lime);
  padding-block: var(--s7) var(--s5);
  font-size: var(--fs-sm);
}
.ftr-statement {
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--s3);
  color: var(--text);
  max-width: 22ch;
}
.ftr-statement span { color: var(--lime); }
.ftr-sub { color: var(--text-dim); max-width: 56ch; margin-bottom: var(--s6); }

.ftr-cols {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px)  { .ftr-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
@media (min-width: 1040px) { .ftr-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ftr-col h2 {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.ftr-col ul { list-style: none; margin: 0; padding: 0; }
.ftr-col li { margin-bottom: 2px; }
.ftr-col a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-tiny);
  line-height: 1.4;
  min-height: 44px;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.ftr-col a:hover { color: var(--lime); padding-left: 5px; }

.ftr-base {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ftr-base p { margin: 0; }
.ftr-base a { color: var(--text-faint); text-decoration: none; }
.ftr-base a:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   18. UTILITY
   -------------------------------------------------------------------------- */
.faint { color: var(--text-faint); }
.lime { color: var(--lime); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 404 */
.err-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 2rem + 14vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--s4);
}

/* --------------------------------------------------------------------------
   19. MOTION + PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root { color-scheme: light; }
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }
  .hdr, .pillbar, .menu, .pagination, .cta-row, .skip-link, .ftr-cols, .season-scale { display: none !important; }
  .ftr { border-top: 2px solid #111; margin-top: 24pt; background: #fff; }
  .ftr-statement, .ftr-statement span { color: #111; }
  a { color: #111; text-decoration: underline; }
  a[href^="/"]::after { content: " (https://kingofaeo2026.com" attr(href) ")"; font-size: 8pt; color: #555; }
  .card, .tile, .capsule, .verdict, .facts, .table-wrap, .node, .callout, blockquote {
    border: 1px solid #999 !important;
    background: #fff !important;
    break-inside: avoid;
  }
  .capsule, .verdict-answer, .lime, .tile-figure.is-lime, .node-date, .rail-date, .sec-count, .eyebrow,
  .folio-stamp, .folio-key, .lead time { color: #111 !important; }
  .folio { border-bottom: 1px solid #111; }
  thead th { background: #eee; color: #111; border-bottom: 2px solid #111; }
  h1, h2, h3 { break-after: avoid; color: #111; }
  .table-wrap { max-height: none; overflow: visible; }
}
