:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #111315;
  --muted: #5f6764;
  --line: #d9ded8;
  --green: #1f8a63;
  --green-soft: #dff4e6;
  --red: #d94a3a;
  --yellow: #e6b84a;
  --blue: #2962ff;
  --shadow: 0 18px 60px rgba(17, 19, 21, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.93);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.nav,
.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.nav a,
.topbar nav a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.topbar nav a:hover,
.text-link:hover {
  color: var(--ink);
}

main {
  padding: 0 clamp(18px, 4vw, 54px) 64px;
}

.dashboard-hero {
  min-height: min(650px, calc(100vh - 70px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(44px, 7vw, 92px) 0 40px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lede,
.split-section p,
.note-strip p,
.metric p,
.post-body p,
.post-body li {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 720px;
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.lede-small {
  max-width: 920px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(17, 19, 21, 0.05);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.orbital-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.status-band div,
.metric {
  background: var(--surface);
}

.status-band div {
  padding: 20px;
}

.label,
.metric span,
.post-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.status-band strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
  margin-bottom: 72px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.two-column h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2rem;
}

.table-section,
.post-body,
.page-panel {
  margin-bottom: 72px;
}

.page-panel h3 {
  margin: 28px 0 12px;
  font-size: 1rem;
}

.math-card {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.math-card p {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.latex-block,
.formula-block,
.math-display {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.formula-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.math-display {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.math-inline {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.link-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.responsive-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.note-strip {
  padding: clamp(24px, 4vw, 38px);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #fff7f4;
}

.note-strip p {
  max-width: 980px;
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page-head {
  max-width: 900px;
  padding: clamp(44px, 6vw, 82px) 0 36px;
}

.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.post-row strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.loss {
  background: #fde6e1;
  color: var(--red);
}

.post-body {
  max-width: 860px;
}

.post-body h2 {
  margin-top: 36px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.post-body ul {
  padding-left: 22px;
}

.callout {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.source-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 18px;
}

.source-list a {
  color: var(--green);
}

.score-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.score-cloud li {
  min-width: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font-weight: 850;
}

@media (max-width: 900px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .dashboard-hero,
  .split-section,
  .two-column {
    grid-template-columns: 1fr;
  }

  .status-band,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.05rem, 14vw, 3.2rem);
  }

  .status-band,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }
}

/* Project Turtle futbol lab theme */
:root {
  --bg: #07120d;
  --bg-soft: #0d1f17;
  --surface: #fbfbf4;
  --surface-ink: #0c1712;
  --surface-muted: #5d6b63;
  --ink: #f5f7ef;
  --muted: #b8c3ba;
  --line: rgba(242, 247, 236, 0.16);
  --line-dark: rgba(11, 27, 18, 0.13);
  --green: #42b06d;
  --green-deep: #123f28;
  --green-soft: #dff4e6;
  --chalk: #f4f0df;
  --gold: #dcb85b;
  --red: #d9614c;
  --blue: #6fb3ff;
  --shadow: 0 28px 80px rgba(3, 10, 7, 0.28);
  --font-ui: "Segoe UI Variable Text", "Segoe UI", Aptos, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-display: Bahnschrift, "Segoe UI Variable Display", "Aptos Display", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-number: Bahnschrift, "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(180deg, #07120d 0%, #0c1b13 42%, #eef0e7 42%, #f6f5ee 100%);
  color: var(--ink);
}

.topbar {
  border-bottom-color: rgba(244, 240, 223, 0.16);
  background: rgba(7, 18, 13, 0.88);
  color: var(--ink);
}

.brand small,
.nav a,
.topbar nav a,
.text-link {
  color: var(--muted);
}

.nav a:hover,
.topbar nav a:hover,
.text-link:hover {
  color: var(--chalk);
}

main {
  max-width: 1680px;
  margin: 0 auto;
}

.match-hero {
  position: relative;
  isolation: isolate;
  min-height: min(700px, calc(100vh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(58px, 8vw, 118px) 0 clamp(36px, 5vw, 70px);
}

.hero-pitch {
  position: absolute;
  inset: clamp(18px, 3vw, 44px) 0 clamp(24px, 4vw, 54px);
  z-index: -1;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 223, 0.16);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(0deg, rgba(66, 176, 109, 0.12) 0 44px, rgba(15, 73, 45, 0.1) 44px 88px),
    linear-gradient(135deg, rgba(17, 74, 45, 0.96), rgba(8, 37, 25, 0.96));
  box-shadow: var(--shadow);
}

.pitch-line,
.pitch-circle,
.pitch-box {
  position: absolute;
  border-color: rgba(244, 240, 223, 0.25);
  pointer-events: none;
}

.pitch-line.midfield {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(244, 240, 223, 0.22);
}

.pitch-circle {
  width: min(28vw, 360px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 240, 223, 0.22);
  border-radius: 50%;
}

.pitch-box {
  top: 22%;
  bottom: 22%;
  width: min(18vw, 260px);
  border: 1px solid rgba(244, 240, 223, 0.22);
}

.pitch-box.left {
  left: 0;
  border-left: 0;
}

.pitch-box.right {
  right: 0;
  border-right: 0;
}

.match-hero .eyebrow,
.lab-section .eyebrow,
.tactical-panel .eyebrow,
.data-room .eyebrow {
  color: var(--gold);
}

.match-hero h1 {
  max-width: 980px;
  color: var(--chalk);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.match-hero .lede {
  color: #d6dfd6;
}

.match-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.match-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 240, 223, 0.2);
  border-radius: 999px;
  background: rgba(5, 15, 10, 0.38);
  color: var(--chalk);
  font-size: 0.86rem;
  font-weight: 760;
}

.hero-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(244, 240, 223, 0.18);
  border-radius: 8px;
  background: rgba(7, 18, 13, 0.74);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.team-score {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(244, 240, 223, 0.15);
  border-radius: 8px;
  background: rgba(244, 240, 223, 0.08);
  text-align: center;
}

.team-score span,
.team-score small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-score strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--chalk);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.team-score.accent strong {
  color: var(--gold);
}

.score-separator {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.futbol-band {
  margin-top: 0;
  margin-bottom: clamp(28px, 5vw, 58px);
  border-color: rgba(244, 240, 223, 0.16);
  background: rgba(244, 240, 223, 0.14);
}

.futbol-band div {
  background: rgba(8, 25, 16, 0.92);
  color: var(--chalk);
}

.futbol-band .label {
  color: var(--muted);
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 22px;
  margin-bottom: clamp(38px, 6vw, 76px);
}

.tactical-panel,
.math-card,
.note-strip {
  border-radius: 8px;
}

.tactical-panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(244, 240, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 48, 31, 0.96), rgba(9, 27, 18, 0.96)),
    var(--green-deep);
  box-shadow: var(--shadow);
}

.tactical-panel h2,
.tactical-panel h3,
.tactical-panel .section-heading {
  color: var(--chalk);
}

.score-orbital-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.score-card {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(244, 240, 223, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(244, 240, 223, 0.08), rgba(244, 240, 223, 0.08)),
    rgba(5, 16, 10, 0.65);
}

.score-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.score-card-grid.compact .score-card {
  min-height: 170px;
}

.score-card > span,
.proof-grid > article > span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-card > strong {
  color: var(--chalk);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.05;
}

.score-card > p {
  color: rgba(244, 240, 223, 0.82);
  margin: 0;
}

.hit-card {
  border-color: rgba(72, 184, 116, 0.55);
  background:
    linear-gradient(0deg, rgba(72, 184, 116, 0.16), rgba(72, 184, 116, 0.16)),
    rgba(5, 36, 18, 0.72);
}

.warning-card {
  border-color: rgba(230, 184, 74, 0.55);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.proof-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-grid article strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.score-rank {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scoreline {
  color: var(--chalk);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: 0.95;
}

.score-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.mini-track,
.meter-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 240, 223, 0.12);
}

.mini-track span,
.meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.orbital-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.probability-meter {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 240, 223, 0.12);
}

.probability-meter:last-child {
  border-bottom: 0;
}

.meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--chalk);
  font-weight: 820;
}

.meter-head strong {
  color: var(--gold);
}

.probability-meter p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.probability-meter.accent .meter-track span {
  background: linear-gradient(90deg, var(--gold), #f0d887);
}

.page-panel {
  color: var(--surface-ink);
}

.page-panel h2,
.page-panel h3,
.page-panel .section-heading {
  color: var(--surface-ink);
}

.page-panel .eyebrow {
  color: var(--green-deep);
}

.lede-small,
.page-panel p,
.split-section p {
  color: var(--surface-muted);
}

.lab-section {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.75);
}

.today-board {
  background:
    linear-gradient(135deg, rgba(255, 255, 249, 0.88), rgba(237, 244, 235, 0.78)),
    rgba(255, 255, 249, 0.75);
}

.fixture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.fixture-card {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(9, 24, 16, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 74, 46, 0.08), rgba(220, 184, 91, 0.1)),
    #fffef7;
  box-shadow: 0 18px 50px rgba(7, 18, 13, 0.08);
}

.fixture-card span,
.fixture-card small {
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fixture-card strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  line-height: 1;
}

.fixture-card p {
  margin: 0;
}

.source-note {
  border-left: 6px solid var(--gold);
}

.lesson-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.lesson-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: #fffef7;
  color: #08130d;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.lesson-row:hover,
.lesson-row:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 138, 99, 0.38);
  box-shadow: 0 18px 44px rgba(7, 18, 13, 0.08);
}

.lesson-row span,
.analysis-toggle summary span {
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-row strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
}

.lesson-row p {
  margin: 0;
}

.analysis-toggle {
  margin-top: 16px;
  border: 1px solid rgba(9, 24, 16, 0.14);
  border-radius: 8px;
  background: #fffef7;
  overflow: hidden;
}

.analysis-toggle summary {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.analysis-toggle summary::-webkit-details-marker {
  display: none;
}

.analysis-toggle summary strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.analysis-toggle-body {
  padding: 0 20px 20px;
}

.analysis-toggle-body p {
  margin: 0 0 12px;
}

.lesson-page {
  background:
    linear-gradient(90deg, rgba(244, 240, 223, 0.05) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(180deg, #07120d 0 260px, #f4f3ea 260px 100%);
}

.lesson-page main {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) 0 clamp(56px, 8vw, 110px);
}

.lesson-hero {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(244, 240, 223, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 240, 223, 0.96), rgba(220, 224, 211, 0.9)),
    linear-gradient(90deg, rgba(18, 63, 40, 0.08) 1px, transparent 1px) 0 0 / 46px 46px;
  box-shadow: var(--shadow);
}

.lesson-hero h1 {
  max-width: 920px;
  margin: 8px 0 12px;
  color: #07120d;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.94;
}

.lesson-hero .lede {
  max-width: 760px;
  color: var(--surface-muted);
}

.lesson-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.lesson-chip-row span {
  padding: 9px 12px;
  border: 1px solid rgba(18, 63, 40, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 249, 0.82);
  color: #07120d;
  font-size: 0.86rem;
  font-weight: 850;
}

.lesson-proof-panel {
  margin: 0;
}

.lesson-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lesson-two-column article {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.92);
}

.lesson-two-column h2 {
  margin: 5px 0 12px;
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1;
}

.lesson-two-column p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.68;
}

.lesson-rule-strip {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff8e5;
}

.lesson-rule-strip strong {
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.lesson-rule-strip p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.62;
}

.lesson-page .action-row .button {
  border-color: rgba(18, 63, 40, 0.2);
  background: #fffef7;
  color: #07120d;
  box-shadow: 0 12px 32px rgba(7, 18, 13, 0.08);
}

.lesson-page .action-row .button.primary {
  border-color: var(--gold);
  background: var(--gold);
}

.givens-grid,
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.analysis-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.value-tile {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
}

.value-tile span {
  display: block;
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 860;
  text-transform: uppercase;
}

.value-tile strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--surface-ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.value-tile p {
  margin: 0;
  line-height: 1.55;
}

.formula-lab {
  margin-top: 24px;
  border-color: var(--line-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 244, 234, 0.92)),
    var(--surface);
}

.formula-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.formula-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.formula-step {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf4;
}

.formula-step h3 {
  margin: 0;
  font-size: 1rem;
}

.step-number {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 900;
}

.formula-step strong {
  color: var(--green-deep);
}

.formula-strip,
.formula-block,
.math-display {
  border-color: rgba(18, 63, 40, 0.16);
  background: #f5f3e8;
  color: var(--surface-ink);
}

.formula-strip {
  overflow-x: auto;
  padding: 13px;
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.turtle-pro-canvas {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 62px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #071f15 0%, #0d3323 54%, #123f28 100%);
  background-size: 48px 48px, 48px 48px, auto;
  color: #f9f5e7;
}

.turtle-pro-canvas .section-heading,
.turtle-pro-canvas .lede-small,
.turtle-pro-canvas .text-link {
  position: relative;
  z-index: 1;
}

.turtle-pro-canvas h2,
.turtle-pro-canvas h3,
.turtle-pro-canvas strong {
  color: #fff9e8;
}

.turtle-pro-canvas .lede-small,
.turtle-pro-canvas p,
.turtle-pro-canvas small,
.turtle-pro-canvas dt {
  color: rgba(249, 245, 231, 0.76);
}

.proof-start,
.proof-rule-strip,
.proof-claim-grid {
  position: relative;
  z-index: 1;
}

.proof-start {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 16px;
}

.proof-start article,
.proof-rule-strip article,
.proof-claim-card {
  border: 1px solid rgba(249, 245, 231, 0.18);
  border-radius: 8px;
  background: rgba(249, 245, 231, 0.075);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.proof-start article {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 19px;
}

.proof-start span,
.proof-rule-strip span,
.proof-claim-card span {
  color: #62d990;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proof-start strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
}

.proof-rule-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.proof-rule-strip article {
  min-height: 112px;
  display: grid;
  gap: 9px;
  padding: 16px;
}

.proof-rule-strip code {
  color: #fff9e8;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
  white-space: normal;
}

.proof-claim-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.proof-claim-card {
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 17px;
}

.proof-claim-card.true {
  border-color: rgba(98, 217, 144, 0.58);
  background: rgba(98, 217, 144, 0.13);
}

.proof-claim-card.partial {
  border-color: rgba(230, 184, 74, 0.6);
  background: rgba(230, 184, 74, 0.12);
}

.proof-claim-card.outlier {
  border-color: rgba(217, 74, 58, 0.5);
  background: rgba(217, 74, 58, 0.12);
}

.proof-claim-card strong {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 4rem);
  line-height: 0.9;
}

.proof-claim-card p {
  margin: 0;
  line-height: 1.52;
}

.proof-claim-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.proof-claim-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.proof-claim-card dd {
  margin: 0;
  color: #fff9e8;
  font-weight: 800;
}

.turtle-pro-canvas .analysis-warning {
  position: relative;
  z-index: 1;
  border-color: rgba(230, 184, 74, 0.5);
  background: rgba(255, 249, 232, 0.11);
}

.mathematics-proof {
  margin-top: clamp(28px, 5vw, 62px);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(245, 244, 235, 0.98)),
    var(--surface);
}

.proof-paper {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(18, 63, 40, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 63, 40, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 63, 40, 0.055) 1px, transparent 1px),
    #fffef7;
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 0 22px 70px rgba(18, 63, 40, 0.08);
}

.proof-subsection {
  margin-bottom: 26px;
}

.proof-subsection h3 {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  line-height: 1.05;
}

.proof-subsection p {
  max-width: 860px;
  margin: 0 0 14px;
  color: rgba(7, 27, 20, 0.72);
  font-size: 0.96rem;
  line-height: 1.6;
}

.mathematics-proof .responsive-table {
  border-color: rgba(18, 63, 40, 0.18);
  background: rgba(255, 255, 250, 0.88);
}

.mathematics-proof table th {
  background: rgba(18, 63, 40, 0.06);
}

.mathematics-proof table td {
  vertical-align: top;
}

.proof-essay {
  display: grid;
  gap: 18px;
}

.proof-step {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.95), rgba(250, 249, 239, 0.95));
  box-shadow: 0 14px 40px rgba(18, 63, 40, 0.06);
}

.proof-step > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 138, 99, 0.12);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 920;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proof-step h4 {
  margin: 0 0 12px;
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.85vw, 2rem);
  line-height: 1.05;
}

.proof-step p {
  max-width: 980px;
  margin: 0 0 13px;
  color: rgba(7, 27, 20, 0.84);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  line-height: 1.78;
}

.proof-step p:last-child {
  margin-bottom: 0;
}

.math-inline {
  display: inline-block;
  padding: 0 0.18em;
  border-radius: 4px;
  background: rgba(31, 138, 99, 0.08);
  color: #041811;
  font-family: "Cambria Math", Cambria, Georgia, serif;
  font-size: 1.02em;
}

.display-eq {
  overflow-x: auto;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid rgba(18, 63, 40, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.96), rgba(246, 244, 230, 0.96));
  color: #041811;
  font-family: "Cambria Math", Cambria, Georgia, serif;
  font-size: clamp(1.04rem, 1.35vw, 1.38rem);
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.stress-step {
  border-color: rgba(230, 184, 74, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 250, 226, 0.92), rgba(248, 244, 229, 0.95));
}

.stress-step > span {
  background: rgba(230, 184, 74, 0.2);
  color: #705315;
}

.theorem-step {
  border-color: rgba(31, 138, 99, 0.4);
  background:
    linear-gradient(180deg, rgba(222, 246, 231, 0.75), rgba(250, 249, 239, 0.96));
}

.theorem-step .display-eq {
  border-color: rgba(31, 138, 99, 0.32);
  background: rgba(223, 244, 230, 0.72);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 900;
}

.proof-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: proof-line;
}

.proof-lines li {
  counter-increment: proof-line;
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 22px);
  padding: 16px 0 16px 54px;
  border-bottom: 1px solid rgba(18, 63, 40, 0.12);
}

.proof-lines li::before {
  content: counter(proof-line, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fffdf4;
  font-family: var(--font-number);
  font-size: 0.82rem;
  font-weight: 900;
}

.proof-lines li span {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 920;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-lines li p {
  margin: 0;
  color: var(--surface-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.72;
}

.proof-qed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(31, 138, 99, 0.35);
  border-radius: 8px;
  background: rgba(223, 244, 230, 0.72);
}

.proof-qed span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fffdf4;
  font-family: var(--font-number);
  font-size: 0.82rem;
  font-weight: 920;
}

.proof-qed strong {
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 3.3rem);
  line-height: 0.95;
}

.proof-qed p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.45;
}

.analysis-ledger {
  margin-top: clamp(28px, 5vw, 62px);
}

.analysis-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}

.analysis-source-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(247, 246, 238, 0.98)),
    var(--surface);
}

.analysis-source-card span,
.transform-step span {
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analysis-source-card strong {
  color: var(--surface-ink);
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
  line-height: 1.18;
}

.analysis-source-card p,
.transform-step p,
.analysis-warning p,
.probability-proof-grid p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.62;
}

.source-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.source-chip-row .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 820;
}

.analysis-subsection {
  display: grid;
  gap: 16px;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.analysis-subsection h3 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.transform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.transform-step {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf4;
}

.transform-step h3 {
  margin: 0;
  font-size: 1rem;
}

.analysis-table {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
}

.analysis-table table {
  min-width: 1040px;
  width: 100%;
}

.analysis-table th:first-child,
.analysis-table td:first-child {
  width: 150px;
}

.analysis-table code {
  color: var(--green-deep);
  font-family: var(--font-number);
  font-size: 0.9rem;
  white-space: nowrap;
}

.probability-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.probability-proof-grid article {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.probability-proof-grid article h3 {
  margin: 0;
  font-size: 1.05rem;
}

.probability-proof-grid .responsive-table {
  overflow: auto;
}

.probability-proof-grid table {
  min-width: 700px;
}

.analysis-warning {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e5;
}

.analysis-warning strong {
  color: var(--surface-ink);
}

.final-card-lab {
  margin-bottom: clamp(28px, 5vw, 62px);
  border-color: rgba(220, 184, 91, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.98), rgba(248, 247, 238, 0.98)),
    var(--surface);
  box-shadow: 0 24px 70px rgba(7, 18, 13, 0.09);
}

.final-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.prediction-lock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 10px;
}

.prediction-lock-grid .value-tile {
  min-height: 132px;
  background: rgba(255, 255, 251, 0.84);
}

.prediction-lock-grid .value-tile strong {
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
}

.final-pick-card {
  min-height: 315px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(18, 63, 40, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(246, 245, 236, 0.98)),
    var(--surface);
}

.final-pick-card span {
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.final-pick-card strong {
  color: var(--surface-ink);
  font-family: var(--font-number);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 780;
  line-height: 0.9;
}

.final-pick-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.final-pick-card dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.final-pick-card dt,
.final-pick-card dd {
  margin: 0;
}

.final-pick-card dt {
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.final-pick-card dd {
  color: var(--surface-ink);
  font-weight: 800;
}

.final-pick-card p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.65;
}

.hedge-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: stretch;
  margin: 24px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  background: #fff8e5;
}

.hedge-panel h3 {
  margin: 4px 0 10px;
  color: var(--surface-ink);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
}

.hedge-panel p {
  color: var(--surface-muted);
  line-height: 1.66;
}

.hedge-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hedge-values .value-tile {
  min-height: 175px;
  background: rgba(255, 255, 251, 0.9);
}

.settlement-lab {
  border-color: rgba(203, 164, 71, 0.42);
  background:
    linear-gradient(135deg, rgba(12, 46, 31, 0.05), rgba(203, 164, 71, 0.08)),
    var(--surface);
}

.settlement-score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.settlement-score-strip .value-tile {
  min-height: 170px;
  background: rgba(255, 252, 240, 0.94);
}

.settlement-lab .analysis-warning {
  margin: 18px 0 24px;
}

.evidence-figure-lab {
  margin: clamp(28px, 5vw, 62px) auto;
  border-color: rgba(31, 138, 99, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(246, 248, 239, 0.98)),
    var(--surface);
  box-shadow: 0 24px 70px rgba(7, 18, 13, 0.08);
}

.evidence-figure-lab .lede-small {
  max-width: 980px;
}

.figure-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  margin: 24px 0 18px;
}

.bar-figure,
.score-rank-chart {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.9), rgba(255, 255, 251, 0.96)),
    linear-gradient(90deg, rgba(18, 63, 40, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(18, 63, 40, 0.05) 1px, transparent 1px) 0 0 / 36px 36px;
}

.bar-figure h3,
.score-rank-chart h3 {
  margin: 0;
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
}

.bar-figure p,
.score-rank-chart p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.62;
}

.stat-bars,
.score-rank-chart {
  display: grid;
  gap: 12px;
}

.chart-row,
.rank-row {
  display: grid;
  grid-template-columns: minmax(116px, 0.45fr) minmax(110px, 1fr) minmax(88px, 0.34fr);
  gap: 12px;
  align-items: center;
}

.rank-row {
  grid-template-columns: minmax(64px, 0.25fr) minmax(130px, 1fr) minmax(150px, 0.48fr);
}

.chart-row span,
.rank-row span {
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 860;
}

.rank-row span {
  font-family: var(--font-number);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.chart-row div,
.rank-row div {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 63, 40, 0.12);
}

.rank-row div {
  height: 14px;
}

.chart-row i,
.rank-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #62d990);
}

.chart-row.accent i,
.rank-row.main i {
  background: linear-gradient(90deg, var(--gold), #f0d887);
}

.chart-row.hit i,
.rank-row.hit i {
  background: linear-gradient(90deg, #1f8a63, #8be0ab);
}

.chart-row.danger i,
.rank-row.danger i {
  background: linear-gradient(90deg, var(--red), #ec8c7b);
}

.chart-row strong,
.rank-row strong {
  color: var(--surface-ink);
  font-family: var(--font-number);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.bucket-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.bucket-mode-grid article {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.84);
}

.bucket-mode-grid span {
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bucket-mode-grid strong {
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.bucket-mode-grid p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.55;
}

.result-bucket-lab {
  margin-top: clamp(28px, 5vw, 62px);
}

.section-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.bucket-math-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.bucket-math-strip article {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf4;
}

.bucket-math-strip span,
.bucket-card span {
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bucket-math-strip code {
  color: var(--surface-ink);
  font-family: var(--font-number);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: normal;
}

.bucket-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 4px;
}

.bucket-card {
  min-height: 245px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(247, 246, 238, 0.98)),
    var(--surface);
}

.bucket-card.success {
  border-color: rgba(66, 176, 109, 0.36);
}

.bucket-card.miss {
  border-color: rgba(217, 97, 76, 0.26);
}

.bucket-card strong {
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 1.9vw, 2rem);
  font-weight: 720;
  line-height: 1;
}

.bucket-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.bucket-card dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
}

.bucket-card dt {
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.bucket-card dd {
  margin: 0;
  color: var(--surface-ink);
  font-weight: 760;
  line-height: 1.45;
}

.reconciliation-lab {
  margin-top: clamp(28px, 5vw, 62px);
}

.mass-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mass-card,
.branch-cloud-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(247, 246, 238, 0.98)),
    var(--surface);
}

.mass-card {
  min-height: 230px;
}

.mass-card span,
.branch-cloud-card span {
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mass-card strong,
.branch-cloud-card strong {
  color: var(--surface-ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.8rem);
  font-weight: 760;
  line-height: 0.95;
}

.mass-card code {
  color: var(--green-deep);
  font-family: var(--font-number);
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: normal;
}

.mass-card p,
.branch-cloud-card p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.58;
}

.branch-cloud-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 18px;
}

.branch-cloud-card {
  min-height: 270px;
}

.branch-cloud-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.branch-cloud-card dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.branch-cloud-card dt {
  color: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.branch-cloud-card dd {
  margin: 0;
  color: var(--surface-ink);
  font-weight: 780;
}

.threat-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.threat-card {
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
}

.threat-card .probability-meter {
  border-bottom-color: var(--line-dark);
}

.threat-card .meter-head {
  color: var(--surface-ink);
}

.threat-card .probability-meter p {
  color: var(--surface-muted);
}

.threat-card .meter-track {
  background: #e3e5d9;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.coverage-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
}

.coverage-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.coverage-card p {
  margin: 0;
  line-height: 1.55;
}

.coverage-ring {
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--surface) 68%, transparent 69%),
    conic-gradient(var(--green) var(--coverage), #e3e5d9 0);
}

.coverage-ring strong {
  color: var(--surface-ink);
  font-size: 0.98rem;
}

.responsive-table {
  border-color: var(--line-dark);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(7, 18, 13, 0.04);
}

table {
  min-width: 860px;
}

th {
  color: var(--surface-muted);
  background: #f2f1e8;
}

td {
  color: var(--surface-ink);
}

th,
td {
  border-bottom-color: var(--line-dark);
}

.data-room {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.78);
}

.data-room-item {
  border-top: 1px solid var(--line-dark);
}

.data-room-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.data-room-item summary {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.data-room-item summary::-webkit-details-marker {
  display: none;
}

.data-room-item summary span {
  color: var(--surface-ink);
  font-weight: 900;
}

.data-room-item summary small {
  color: var(--surface-muted);
  line-height: 1.5;
}

.data-room-body {
  padding: 0 0 22px;
}

.note-strip {
  border-left-color: var(--gold);
  background: #fffaf0;
  color: var(--surface-ink);
}

.source-note p {
  color: var(--surface-ink);
  font-weight: 780;
}

.source-list a {
  color: var(--green-deep);
}

.compact-sources {
  margin-top: 20px;
}

.footer {
  border-top-color: rgba(244, 240, 223, 0.16);
  background: #07120d;
  color: var(--muted);
}

/* Homepage alignment with the futbol lab theme */
.home-page {
  background:
    radial-gradient(circle at 78% 6%, rgba(220, 184, 91, 0.13), transparent 28%),
    linear-gradient(180deg, #07120d 0%, #0c1b13 38%, #f4f3ea 38%, #f4f3ea 100%);
}

.home-page main {
  padding-bottom: clamp(56px, 7vw, 100px);
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(690px, calc(100vh - 68px));
  padding-block: clamp(66px, 8vw, 118px) clamp(44px, 7vw, 86px);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 3vw, 42px) 0 clamp(26px, 4vw, 54px);
  z-index: -1;
  border: 1px solid rgba(244, 240, 223, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 240, 223, 0.15) 1px, transparent 1px) 50% 0 / 1px 100% no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0 14%, rgba(244, 240, 223, 0.2) 14.2% 14.6%, transparent 14.8%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(0deg, rgba(66, 176, 109, 0.11) 0 42px, rgba(9, 49, 31, 0.12) 42px 84px),
    linear-gradient(135deg, rgba(16, 65, 41, 0.97), rgba(5, 26, 17, 0.98));
  box-shadow: var(--shadow);
}

.home-hero .hero-copy {
  max-width: 800px;
}

.home-hero h1 {
  max-width: 980px;
  color: var(--chalk);
  font-size: clamp(3.1rem, 6.6vw, 7rem);
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.home-hero .lede {
  color: #dce4db;
}

.home-hero .orbital-figure {
  border-color: rgba(244, 240, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(244, 240, 223, 0.96), rgba(250, 249, 241, 0.92));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.home-page .button {
  border-color: rgba(244, 240, 223, 0.22);
  background: rgba(244, 240, 223, 0.92);
  color: #102219;
}

.home-page .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #102219;
}

.home-page .split-section,
.home-page .table-section,
.home-page .note-strip {
  color: var(--surface-ink);
}

.home-page .split-section h2,
.home-page .table-section h2 {
  color: var(--surface-ink);
}

.home-page .split-section .eyebrow,
.home-page .table-section .eyebrow {
  color: var(--green-deep);
}

.home-page .split-section p,
.home-page .metric p,
.home-page .table-section p {
  color: var(--surface-muted);
}

.home-page .metric-grid {
  gap: 16px;
}

.home-page .metric {
  min-height: 180px;
  border-color: var(--line-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(248, 247, 239, 0.98));
  color: var(--surface-ink);
  box-shadow: 0 14px 38px rgba(7, 18, 13, 0.06);
}

.home-page .metric span {
  color: var(--green-deep);
}

.home-page .metric strong {
  color: var(--surface-ink);
}

.home-page .table-section {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.78);
}

.home-page .table-section .text-link {
  color: var(--green-deep);
}

.home-page .note-strip p {
  color: var(--surface-muted);
}

@media (max-width: 1180px) {
  .score-orbital-board,
  .formula-pipeline,
  .proof-start,
  .proof-rule-strip,
  .proof-claim-grid,
  .coverage-grid,
  .analysis-source-grid,
  .transform-grid,
  .bucket-math-strip,
  .bucket-card-grid,
  .mass-card-grid,
  .branch-cloud-grid,
  .final-pick-grid,
  .prediction-lock-grid,
  .hedge-values,
  .settlement-score-strip,
  .bucket-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .threat-layout,
  .givens-grid,
  .gate-grid,
  .analysis-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .match-hero,
  .command-grid,
  .formula-intro,
  .probability-proof-grid,
  .lesson-two-column,
  .analysis-two-column {
    grid-template-columns: 1fr;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .hero-scoreboard {
    grid-template-columns: 1fr;
  }

  .score-separator {
    text-align: center;
  }

  .data-room-item summary {
    grid-template-columns: 1fr;
  }

  .hedge-panel {
    grid-template-columns: 1fr;
  }

  .proof-lines li,
  .proof-qed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .score-orbital-board,
  .formula-pipeline,
  .proof-start,
  .proof-rule-strip,
  .proof-claim-grid,
  .coverage-grid,
  .threat-layout,
  .givens-grid,
  .gate-grid,
  .analysis-two-column,
  .analysis-source-grid,
  .transform-grid,
  .bucket-math-strip,
  .bucket-card-grid,
  .mass-card-grid,
  .branch-cloud-grid,
  .final-pick-grid,
  .prediction-lock-grid,
  .hedge-values,
  .settlement-score-strip,
  .bucket-mode-grid {
    grid-template-columns: 1fr;
  }

  .chart-row,
  .rank-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .chart-row strong,
  .rank-row strong {
    text-align: left;
  }

  .score-card {
    min-height: 170px;
  }

  .hero-pitch {
    inset-inline: -12px;
  }

  .home-hero::before {
    inset-inline: -12px;
  }

  .home-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }
}

/* Homepage v2: generated stadium image plus floating selection UI */
.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(220, 184, 91, 0.22), transparent 30%),
    linear-gradient(180deg, #06130e 0%, #0a1711 54%, #f3f1e8 54%, #f5f3ea 100%);
  font-family: var(--font-ui);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: geometricPrecision;
}

.home-page .topbar {
  padding-inline: clamp(20px, 4vw, 64px);
  background: rgba(4, 14, 10, 0.9);
}

.home-page .brand {
  min-width: fit-content;
  flex-shrink: 0;
}

.home-page main {
  max-width: none;
  padding: 0 0 clamp(56px, 7vw, 96px);
}

.home-v2-hero {
  position: relative;
  isolation: isolate;
  min-height: min(700px, calc(100vh - 58px));
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  overflow: hidden;
  padding: clamp(48px, 6vw, 82px) clamp(22px, 5vw, 86px) clamp(28px, 4vw, 52px);
  border-bottom: 1px solid rgba(244, 240, 223, 0.13);
}

.home-v2-image,
.home-v2-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-v2-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.home-v2-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 12, 8, 0.82) 0%, rgba(5, 21, 14, 0.58) 36%, rgba(5, 21, 14, 0.62) 64%, rgba(3, 12, 8, 0.84) 100%),
    linear-gradient(180deg, rgba(3, 12, 8, 0.28) 0%, rgba(3, 12, 8, 0.82) 100%);
}

.home-v2-content {
  max-width: 780px;
  justify-self: end;
  align-self: center;
  padding-bottom: 0;
  grid-column: 2;
}

.home-v2-content .eyebrow {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(0.76rem, 0.72vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-v2-content h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: clamp(3.05rem, 5vw, 6rem);
  font-weight: 680;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  font-stretch: 92%;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.home-v2-content .lede {
  max-width: 700px;
  color: #e1e7dd;
  font-size: clamp(1.02rem, 1.08vw, 1.18rem);
  line-height: 1.78;
}

.home-v2-content .button {
  border-color: rgba(255, 249, 232, 0.26);
  background: rgba(255, 249, 232, 0.92);
  color: #08130d;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-v2-content .button.primary {
  border-color: var(--gold);
  background: var(--gold);
}

.home-v2-content .button:hover,
.home-v2-content .button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.home-lab-desk {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  justify-self: start;
  align-self: start;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 70px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 249, 232, 0.18);
  border-radius: 8px;
  background: rgba(7, 22, 15, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.home-lab-desk::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 249, 232, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.desk-copy {
  margin: -4px 0 2px;
  color: #c9d4ca;
  font-size: 0.94rem;
  line-height: 1.65;
}

.desk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.desk-header span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-header strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desk-score-grid,
.floating-card-grid,
.home-status-grid {
  display: grid;
  gap: 14px;
}

.desk-score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.floating-choice,
.floating-card,
.home-stat {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.floating-choice {
  min-height: 120px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid rgba(255, 249, 232, 0.14);
  background: rgba(255, 249, 232, 0.08);
  color: var(--chalk);
  cursor: pointer;
}

.floating-choice span,
.floating-card span,
.home-stat span {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-choice strong {
  color: #fff9e8;
  font-family: var(--font-number);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0;
}

.floating-choice small {
  color: #bfcac1;
  font-size: 0.82rem;
  line-height: 1.35;
}

.floating-choice.hit-choice {
  border-color: rgba(55, 211, 142, 0.5);
  background:
    linear-gradient(135deg, rgba(55, 211, 142, 0.22), rgba(255, 249, 232, 0.07)),
    rgba(255, 249, 232, 0.08);
}

.floating-choice.hit-choice span {
  color: #6df1ae;
}

.floating-choice.miss-choice {
  opacity: 0.78;
}

.floating-choice.trail-choice {
  border-color: rgba(220, 184, 91, 0.38);
}

.floating-choice::after,
.floating-card::after,
.home-stat::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
}

.floating-choice:hover,
.floating-choice:focus-visible,
.floating-card:hover,
.floating-card:focus-visible,
.home-stat:hover,
.home-stat:focus-within {
  transform: translateY(-7px);
  border-color: rgba(220, 184, 91, 0.62);
  box-shadow: 0 24px 60px rgba(6, 19, 13, 0.18);
}

.home-hit-showcase {
  margin: clamp(28px, 4vw, 54px) clamp(22px, 5vw, 86px) 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 249, 232, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 44, 27, 0.94), rgba(16, 54, 35, 0.86)),
    #10251a;
  box-shadow: 0 24px 70px rgba(4, 14, 10, 0.22);
}

.home-hit-showcase .section-heading {
  align-items: end;
}

.home-hit-showcase h2 {
  margin-bottom: 0;
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  font-weight: 680;
}

.home-hit-showcase .text-link {
  color: #dcb85b;
}

.hit-showcase-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(2, minmax(220px, 0.875fr));
  gap: 14px;
  margin-top: 18px;
}

.yesterday-postgame .hit-showcase-grid {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
}

.hit-showcase-card {
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(255, 249, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.08);
  color: #fff9e8;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.hit-showcase-card:hover,
.hit-showcase-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(220, 184, 91, 0.62);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
}

.hit-showcase-card.featured {
  background:
    linear-gradient(135deg, rgba(55, 211, 142, 0.22), rgba(255, 249, 232, 0.09)),
    rgba(255, 249, 232, 0.08);
  border-color: rgba(55, 211, 142, 0.38);
}

.hit-showcase-card.lesson-card {
  border-color: rgba(220, 184, 91, 0.34);
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.15), rgba(255, 249, 232, 0.07)),
    rgba(255, 249, 232, 0.08);
}

.hit-showcase-card span {
  color: #6df1ae;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hit-showcase-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2vw, 2.18rem);
  font-weight: 680;
  line-height: 1.05;
}

.hit-showcase-card p {
  margin: 0;
  color: #c9d4ca;
  line-height: 1.62;
}

.floating-choice:hover::after,
.floating-choice:focus-visible::after,
.floating-card:hover::after,
.floating-card:focus-visible::after,
.home-stat:hover::after {
  border-color: rgba(220, 184, 91, 0.48);
}

.home-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(24px, 3vw, 42px) clamp(22px, 5vw, 86px) 0;
}

.home-today-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: stretch;
  margin: clamp(34px, 4vw, 56px) clamp(22px, 5vw, 86px) 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(220, 184, 91, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(9, 44, 27, 0.96), rgba(7, 29, 20, 0.95)),
    #0d2619;
  box-shadow: 0 24px 72px rgba(3, 13, 9, 0.24);
}

.home-page .home-today-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-page .home-today-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 240, 223, 0.05) 1px, transparent 1px) 0 0 / 88px 88px,
    radial-gradient(circle at 88% 20%, rgba(220, 184, 91, 0.14), transparent 30%);
}

.today-board-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.today-board-copy h2 {
  margin: 0;
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.45rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
}

.today-board-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #c9d4ca;
  line-height: 1.7;
}

.today-fixture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.today-fixture-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(255, 249, 232, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 232, 0.1), rgba(18, 74, 46, 0.34)),
    rgba(255, 249, 232, 0.07);
  color: #fff9e8;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.today-fixture-card:hover,
.today-fixture-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(220, 184, 91, 0.62);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.today-fixture-card span {
  color: #dcb85b;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-fixture-card strong {
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.3vw, 2.9rem);
  font-weight: 680;
  line-height: 1;
}

.today-fixture-card p {
  margin: 0;
  color: #c9d4ca;
  line-height: 1.6;
}

.today-fixture-card em {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: #dcb85b;
  color: #07150e;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 760;
}

.research-page main {
  padding-bottom: 88px;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(52px, 8vw, 112px) 0 clamp(34px, 5vw, 72px);
}

.research-side-note,
.research-section,
.research-sources {
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.research-side-note {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.14), rgba(230, 184, 74, 0.10)),
    var(--surface);
}

.research-side-note span,
.research-metric span,
.research-year-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.research-side-note strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.research-side-note p,
.research-reading,
.research-section p,
.research-sources p,
.research-sources li {
  color: var(--muted);
  line-height: 1.75;
}

.research-section {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 44px);
}

.research-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.research-metric,
.research-year-card,
.research-chart-card {
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  background: #fbfcf8;
}

.research-metric {
  min-height: 180px;
  padding: 20px;
}

.research-metric strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 0.98;
}

.research-reading {
  max-width: 980px;
  margin: 26px 0 0;
}

.two-column-research {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.research-chart-card {
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.research-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.research-bar-row {
  display: grid;
  grid-template-columns: minmax(60px, 0.35fr) minmax(160px, 1fr) minmax(92px, 0.28fr);
  gap: 14px;
  align-items: center;
  font-size: 0.94rem;
}

.research-bar-row > span {
  font-weight: 800;
}

.research-bar-track {
  height: 14px;
  border: 1px solid rgba(31, 138, 99, 0.20);
  border-radius: 999px;
  background: rgba(31, 138, 99, 0.08);
  overflow: hidden;
}

.research-bar-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.research-bar-row strong {
  font-variant-numeric: tabular-nums;
}

.research-bar-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
}

.research-year-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.research-year-card {
  padding: 18px;
}

.research-year-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.formula-strip {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 18px;
  border: 1px solid rgba(31, 138, 99, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(31, 138, 99, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 138, 99, 0.055) 1px, transparent 1px),
    #fbfcf8;
  background-size: 28px 28px;
}

.formula-strip span {
  font-weight: 800;
}

.formula-strip code {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  white-space: normal;
}

.section-headline-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.research-table {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.research-table table {
  min-width: 860px;
}

.research-sources {
  margin-top: 28px;
  padding: 24px;
}

.research-sources ul {
  columns: 2;
  margin-bottom: 0;
}

.analysis-status-grid {
  align-items: stretch;
}

.home-stat {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 249, 232, 0.12);
  background: #11251a;
  color: var(--chalk);
  text-decoration: none;
}

.analysis-stat {
  background:
    linear-gradient(135deg, rgba(15, 55, 35, 0.98), rgba(11, 37, 25, 0.94)),
    #10251a;
}

.analysis-stat.latest {
  border-color: rgba(55, 211, 142, 0.42);
  background:
    linear-gradient(135deg, rgba(55, 211, 142, 0.2), rgba(220, 184, 91, 0.12)),
    linear-gradient(90deg, rgba(255, 249, 232, 0.05), transparent 55%),
    #10251a;
}

.analysis-stat.today {
  border-color: rgba(220, 184, 91, 0.42);
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.18), rgba(18, 74, 46, 0.82)),
    #10251a;
}

.analysis-stat.hit {
  border-color: rgba(55, 211, 142, 0.24);
}

.analysis-stat.lesson {
  border-color: rgba(220, 184, 91, 0.34);
}

.analysis-stat em {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dcb85b;
  color: #07150e;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 720;
}

.home-stat strong {
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.55vw, 1.72rem);
  font-weight: 680;
  letter-spacing: 0;
}

.home-stat p {
  margin: 0;
  color: #bfcbc0;
  line-height: 1.55;
}

.current-analysis-link {
  overflow: hidden;
  border-color: rgba(220, 184, 91, 0.62);
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.24), rgba(18, 74, 46, 0.9)),
    #12301f;
  box-shadow: 0 22px 64px rgba(4, 14, 10, 0.22);
}

.current-analysis-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 249, 232, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(255, 249, 232, 0.08) 1px, transparent 1px) 0 0 / 42px 42px;
  opacity: 0.9;
}

.current-analysis-link em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #08130d;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 760;
}

.current-analysis-link em::after {
  content: ">";
  font-family: var(--font-number);
}

.home-section,
.home-ledger-panel,
.home-discipline-strip {
  margin-inline: clamp(22px, 5vw, 86px);
}

.home-page .home-ledger-panel {
  margin-top: clamp(26px, 4vw, 54px);
}

.home-page .home-discipline-strip {
  margin-bottom: clamp(42px, 6vw, 80px);
}

#locked-c4,
#data-facts,
#fact-intelligence,
#fork-decision,
#evidence-room,
#contradiction-ledger,
#proof-engine,
#support-analysis,
#postgame-analysis {
  scroll-margin-top: 92px;
}

.home-grid-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 62px);
  padding-block: clamp(34px, 5vw, 68px);
}

.home-grid-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(circle at 78% 10%, rgba(220, 184, 91, 0.1), transparent 28%),
    linear-gradient(180deg, #f5f3ea, #fbfaf2);
}

.home-section-copy h2,
.home-ledger-panel h2 {
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 4.05rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
  font-stretch: 94%;
  text-wrap: balance;
}

.home-section-copy p,
.home-ledger-panel p {
  color: #59665e;
  line-height: 1.7;
}

.floating-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.floating-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(9, 24, 16, 0.12);
  background: rgba(255, 255, 249, 0.88);
  color: #08130d;
  box-shadow: 0 16px 42px rgba(7, 18, 13, 0.06);
}

.floating-card strong {
  display: block;
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.05vw, 2.18rem);
  font-weight: 680;
  line-height: 1.03;
}

.floating-card p {
  margin: 0;
  color: #59665e;
  line-height: 1.62;
}

.home-ledger-panel {
  margin-top: clamp(34px, 5vw, 64px);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.78);
  box-shadow: 0 18px 54px rgba(7, 18, 13, 0.06);
}

.home-flow-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  align-self: end;
  margin-top: clamp(18px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 249, 232, 0.16);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.12);
  backdrop-filter: blur(18px);
}

.home-flow-panel article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: rgba(7, 22, 15, 0.67);
  transition: background 170ms ease, transform 170ms ease;
}

.home-flow-panel article:hover {
  background: rgba(20, 54, 35, 0.78);
  transform: translateY(-2px);
}

.home-flow-panel span {
  color: var(--gold);
  font-family: var(--font-number);
  font-size: 0.78rem;
  font-weight: 760;
}

.home-flow-panel strong {
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.2vw, 1.28rem);
  font-weight: 680;
}

.home-flow-panel p {
  margin: 0;
  color: #c9d4ca;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ledger-kicker {
  max-width: 940px;
  margin: -4px 0 18px;
  color: #59665e;
  line-height: 1.7;
}

.home-match-review {
  margin: clamp(48px, 6vw, 86px) clamp(22px, 5vw, 86px) 0;
}

.home-match-review h2 {
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 4rem);
  font-weight: 680;
  line-height: 1;
}

.home-match-review .text-link {
  color: var(--green-deep);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.review-card {
  min-height: 310px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.88);
  color: #08130d;
  box-shadow: 0 16px 42px rgba(7, 18, 13, 0.06);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 184, 91, 0.5);
  box-shadow: 0 22px 60px rgba(7, 18, 13, 0.12);
}

.review-card span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f4e8;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-card.miss span {
  background: #fff0e8;
  color: #a94a33;
}

.review-card.active span {
  background: #f6edcf;
  color: #7b5b10;
}

.review-card h3 {
  margin: 0;
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  font-weight: 680;
  line-height: 1.05;
}

.review-card p {
  margin: 0;
  color: #59665e;
  line-height: 1.66;
}

.review-card .button {
  width: fit-content;
  border-color: var(--gold);
  background: var(--gold);
  color: #08130d;
}

.home-ledger-panel .text-link {
  color: var(--green-deep);
}

.game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 360px);
  gap: 14px;
  margin: 8px 0 22px;
  padding: 6px 4px 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(31, 138, 99, 0.55) rgba(7, 18, 13, 0.08);
}

.game-rail::after {
  content: "";
  width: 1px;
}

.game-ledger-card {
  min-height: 214px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  scroll-snap-align: start;
  padding: 20px;
  border: 1px solid rgba(9, 24, 16, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 249, 0.92), rgba(247, 246, 236, 0.86));
  color: #08130d;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(7, 18, 13, 0.07);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.game-ledger-card:hover,
.game-ledger-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(220, 184, 91, 0.56);
  box-shadow: 0 24px 64px rgba(7, 18, 13, 0.14);
}

.game-ledger-card span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f4e8;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-ledger-card.miss span {
  background: #fff0e8;
  color: #a94a33;
}

.game-ledger-card.split span {
  background: #f6edcf;
  color: #7b5b10;
}

.game-ledger-card.featured {
  border-color: rgba(31, 138, 99, 0.38);
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.14), rgba(255, 255, 249, 0.92)),
    #fffef6;
}

.game-ledger-card strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.78rem);
  font-weight: 680;
  line-height: 1.05;
}

.game-ledger-card p {
  margin: 0;
  color: #59665e;
  line-height: 1.62;
}

.compact-ledger-table {
  margin-top: 10px;
}

.home-ledger-panel tr {
  transition: background 150ms ease;
}

.home-ledger-panel tbody tr:hover {
  background: #f3f2e8;
}

.clickable-ledger-row {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.clickable-ledger-row:focus {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.clickable-ledger-row:hover {
  background: rgba(31, 138, 99, 0.08);
  box-shadow: inset 4px 0 0 var(--gold);
}

.ledger-row-link {
  color: var(--surface-ink);
  font-weight: 850;
  text-decoration-color: rgba(31, 138, 99, 0.32);
  text-underline-offset: 4px;
}

.ledger-row-link:hover {
  color: var(--green-deep);
}

.home-discipline-strip {
  margin-top: clamp(42px, 6vw, 82px);
  padding: clamp(22px, 3vw, 34px);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
}

.home-discipline-strip p {
  max-width: 980px;
  margin: 0;
  color: #59665e;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .home-v2-hero,
  .home-grid-section,
  .home-today-board {
    grid-template-columns: 1fr;
  }

  .home-lab-desk {
    justify-self: start;
    grid-column: auto;
    grid-row: auto;
  }

  .home-v2-content {
    grid-column: auto;
    justify-self: start;
  }

  .home-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-flow-panel,
  .hit-showcase-grid,
  .today-fixture-grid,
  .fixture-grid,
  .lesson-row,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-v2-hero {
    min-height: auto;
    padding: 48px 16px 28px;
  }

  .home-v2-content h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .desk-score-grid,
  .home-status-grid,
  .today-fixture-grid,
  .fixture-grid,
  .floating-card-grid {
    grid-template-columns: 1fr;
  }

  .home-today-board,
  .home-status-grid,
  .home-section,
  .home-ledger-panel,
  .home-discipline-strip,
  .home-match-review {
    margin-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-choice,
  .floating-card,
  .home-stat,
  .home-v2-content .button {
    transition: none;
  }

  .floating-choice:hover,
  .floating-choice:focus-visible,
  .floating-card:hover,
  .floating-card:focus-visible,
  .home-stat:hover,
  .home-stat:focus-within,
  .home-v2-content .button:hover,
  .home-v2-content .button:focus-visible {
    transform: none;
  }
}

/* Project Turtle today desk */
body.today-page-v2 {
  background:
    radial-gradient(circle at 16% 8%, rgba(66, 176, 109, 0.18), transparent 28%),
    linear-gradient(180deg, #07120d 0 780px, #f4f3eb 780px 100%);
}

.today-main {
  max-width: 1580px;
}

.today-hero-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(640px, calc(100vh - 80px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.58fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  margin: clamp(22px, 4vw, 44px) 0 clamp(28px, 5vw, 62px);
  padding: clamp(34px, 7vw, 86px) clamp(18px, 4vw, 52px);
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, rgba(220, 184, 91, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(7, 18, 13, 0.98), rgba(12, 48, 31, 0.94));
  box-shadow: 0 34px 90px rgba(7, 18, 13, 0.24);
}

.today-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(244, 240, 223, 0.055) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(0deg, rgba(66, 176, 109, 0.11) 0 44px, rgba(15, 73, 45, 0.1) 44px 88px);
  opacity: 0.75;
}

.today-hero-copy h1 {
  max-width: 930px;
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 7vw, 6.8rem);
}

.today-hero-copy .lede {
  max-width: 820px;
  color: rgba(244, 240, 223, 0.86);
}

.today-hero-v2 .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #08130d;
}

.today-hero-v2 .button:not(.primary) {
  border-color: rgba(244, 240, 223, 0.42);
  background: rgba(244, 240, 223, 0.96);
  color: #08130d;
}

.today-lock-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(220, 184, 91, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.13), rgba(244, 240, 223, 0.06)),
    rgba(10, 38, 26, 0.86);
  color: var(--chalk);
  box-shadow: 0 24px 70px rgba(3, 10, 7, 0.26);
}

.today-lock-card span,
.desk-card-topline span,
.today-status-strip span,
.readiness-grid span,
.postgame-mini-card span,
.today-source-grid span {
  color: #62d990;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-lock-card strong {
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 0.96;
}

.today-lock-card p {
  margin: 0;
  color: rgba(244, 240, 223, 0.78);
  line-height: 1.64;
}

.today-lock-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.today-lock-card dl div {
  padding: 12px;
  border: 1px solid rgba(244, 240, 223, 0.15);
  border-radius: 8px;
  background: rgba(244, 240, 223, 0.07);
}

.today-lock-card dt {
  color: rgba(244, 240, 223, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.today-lock-card dd {
  margin: 5px 0 0;
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.today-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(46px, 7vw, 90px);
  border: 1px solid rgba(244, 240, 223, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(244, 240, 223, 0.14);
}

.today-status-strip article {
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 22px;
  background: rgba(10, 38, 26, 0.92);
}

.today-status-strip strong {
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.today-status-strip p {
  margin: 0;
  color: rgba(244, 240, 223, 0.72);
  line-height: 1.58;
}

.today-section {
  margin: 0 0 clamp(46px, 7vw, 90px);
  color: var(--surface-ink);
}

.today-section .section-heading h2 {
  color: #08130d;
}

.today-section .section-heading .text-link {
  color: var(--green-deep);
}

.today-fixture-desk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.today-desk-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(9, 24, 16, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 249, 0.96), rgba(247, 246, 236, 0.92));
  box-shadow: 0 24px 70px rgba(7, 18, 13, 0.08);
}

.today-desk-card.priority {
  border-color: rgba(31, 138, 99, 0.34);
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.12), rgba(255, 255, 249, 0.94));
}

.desk-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.desk-card-topline em {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(220, 184, 91, 0.18);
  color: #80600e;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 780;
}

.today-desk-card h3 {
  margin: 0;
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 0.96;
}

.fixture-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fixture-facts div {
  padding: 13px;
  border: 1px solid rgba(9, 24, 16, 0.1);
  border-radius: 8px;
  background: rgba(18, 63, 40, 0.045);
}

.fixture-facts dt {
  color: var(--surface-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fixture-facts dd {
  margin: 4px 0 0;
  color: #08130d;
  font-weight: 760;
}

.today-desk-card p,
.today-task-list li,
.readiness-grid p,
.postgame-mini-card p,
.today-action-board span,
.today-source-board p {
  color: var(--surface-muted);
  line-height: 1.66;
}

.today-task-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.today-task-list li {
  position: relative;
  padding-left: 24px;
}

.today-task-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.today-readiness {
  padding: clamp(22px, 4vw, 44px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 38, 26, 0.98), rgba(17, 66, 42, 0.94));
  box-shadow: var(--shadow);
}

.today-readiness .section-heading h2,
.today-readiness .section-heading .text-link {
  color: var(--chalk);
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.readiness-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(244, 240, 223, 0.16);
  border-radius: 8px;
  background: rgba(244, 240, 223, 0.08);
}

.readiness-grid strong {
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.readiness-grid p {
  margin: 0;
  color: rgba(244, 240, 223, 0.76);
}

.postgame-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.postgame-mini-card {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(9, 24, 16, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.93);
  color: #08130d;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(7, 18, 13, 0.07);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.postgame-mini-card:hover,
.postgame-mini-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(220, 184, 91, 0.56);
  box-shadow: 0 24px 64px rgba(7, 18, 13, 0.13);
}

.postgame-mini-card.hit span {
  color: var(--green);
}

.postgame-mini-card.split span {
  color: #9a7115;
}

.postgame-mini-card.miss span {
  color: #a94a33;
}

.postgame-mini-card strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 1.8vw, 2rem);
  line-height: 1.04;
}

.postgame-mini-card p {
  margin: 0;
}

.today-action-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
}

.today-ordered-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: today-step;
}

.today-ordered-list li {
  counter-increment: today-step;
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 18px 18px 60px;
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.92);
}

.today-ordered-list li::before {
  content: counter(today-step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
}

.today-ordered-list strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.today-source-board {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.92);
  box-shadow: 0 18px 52px rgba(7, 18, 13, 0.06);
}

.today-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.today-source-grid a {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(18, 63, 40, 0.045);
  color: #08130d;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease;
}

.today-source-grid a:hover,
.today-source-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 138, 99, 0.34);
}

.today-source-grid strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.locked-match-card {
  color: #08130d;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.locked-match-card:hover,
.locked-match-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(220, 184, 91, 0.58);
  box-shadow: 0 30px 76px rgba(7, 18, 13, 0.14);
}

.score-token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.score-token-grid b {
  display: grid;
  gap: 8px;
  min-height: 100px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(9, 24, 16, 0.11);
  border-radius: 8px;
  background: rgba(18, 63, 40, 0.06);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-token-grid b span {
  color: #08130d;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
}

.score-token-grid b.tail,
.score-token-grid b.score-four {
  border-color: rgba(220, 184, 91, 0.55);
  background: linear-gradient(135deg, rgba(220, 184, 91, 0.18), rgba(18, 63, 40, 0.05));
  color: #876511;
}

.today-desk-card .button {
  justify-self: start;
  margin-top: 2px;
}

.mini-score-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 8px;
}

.mini-score-strip b {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 8px;
  background: rgba(244, 240, 223, 0.1);
  color: #fff9e8;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 850;
}

.mini-score-strip b.tail,
.mini-score-strip b.score-four {
  border-color: rgba(220, 184, 91, 0.48);
  color: #ffe49a;
}

.mini-score-strip b.hit {
  border-color: rgba(55, 211, 142, 0.55);
  color: #8af1bb;
}

@media (max-width: 1120px) {
  .today-hero-v2,
  .today-action-board {
    grid-template-columns: 1fr;
  }

  .today-status-strip,
  .readiness-grid,
  .postgame-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.today-page-v2 {
    background:
      radial-gradient(circle at 16% 8%, rgba(66, 176, 109, 0.16), transparent 28%),
      linear-gradient(180deg, #07120d 0 900px, #f4f3eb 900px 100%);
  }

  .today-hero-v2 {
    min-height: auto;
  }

  .today-lock-card dl,
  .today-status-strip,
  .today-fixture-desk,
  .fixture-facts,
  .score-token-grid,
  .mini-score-strip,
  .readiness-grid,
  .postgame-mini-grid,
  .today-ordered-list li,
  .today-source-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Turtle method manual */
body.method-page {
  background:
    radial-gradient(circle at 24% 12%, rgba(66, 176, 109, 0.12), transparent 30%),
    linear-gradient(180deg, #07120d 0 120px, #f4f3eb 120px 100%);
}

.method-manual {
  max-width: 1500px;
}

.method-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  margin: clamp(22px, 4vw, 44px) 0 clamp(38px, 6vw, 82px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 54px);
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 26%, rgba(220, 184, 91, 0.16), transparent 28%),
    radial-gradient(circle at 22% 20%, rgba(66, 176, 109, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(7, 18, 13, 0.98), rgba(9, 32, 22, 0.96));
  box-shadow: 0 34px 90px rgba(7, 18, 13, 0.22);
}

.method-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(244, 240, 223, 0.055) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(66, 176, 109, 0.11) 0 46px, rgba(15, 73, 45, 0.09) 46px 92px);
  opacity: 0.72;
}

.method-hero h1 {
  max-width: 900px;
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.6rem);
}

.method-hero .lede {
  max-width: 850px;
  color: rgba(244, 240, 223, 0.9);
}

.method-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.method-hero .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #08130d;
}

.method-hero .button:not(.primary) {
  border-color: rgba(244, 240, 223, 0.42);
  background: rgba(244, 240, 223, 0.96);
  color: #08130d;
}

.method-oath {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(220, 184, 91, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.14), rgba(31, 138, 99, 0.12)),
    rgba(11, 37, 25, 0.78);
  box-shadow: 0 34px 90px rgba(3, 10, 7, 0.36);
}

.method-oath::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px);
  pointer-events: none;
}

.method-oath span,
.method-oath strong,
.method-oath p {
  position: relative;
  z-index: 1;
}

.method-oath span,
.method-section-head .eyebrow,
.source-tier span,
.method-process span,
.field-panel span,
.formula-row span,
.method-proof-primer span,
.proof-contract span,
.card-standard-grid span,
.audit-grid span,
.lesson-method-grid span {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.method-oath strong {
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  line-height: 1.04;
}

.method-oath p {
  margin: 0;
  color: rgba(244, 240, 223, 0.78);
  line-height: 1.7;
}

.method-toc {
  position: sticky;
  top: 70px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px;
  margin: 0 0 clamp(48px, 7vw, 92px);
  border: 1px solid rgba(9, 24, 16, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(9, 24, 16, 0.18);
  box-shadow: 0 16px 50px rgba(7, 18, 13, 0.08);
}

.method-toc a {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 8px;
  background: rgba(255, 255, 249, 0.94);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}

.method-toc a:hover,
.method-toc a:focus-visible {
  background: var(--gold);
  color: #08130d;
}

.method-section {
  margin: 0 0 clamp(46px, 7vw, 92px);
  color: var(--surface-ink);
}

.method-section-head {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin-bottom: 24px;
}

.method-section-head h2 {
  max-width: 980px;
  margin: 0;
  color: #08130d;
  font-family: var(--font-display);
}

.method-section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--surface-muted);
  font-size: 1rem;
  line-height: 1.74;
}

.method-rule-grid,
.source-tier-grid,
.run-order-grid,
.method-proof-primer,
.proof-contract,
.card-standard-grid,
.audit-grid,
.lesson-method-grid {
  display: grid;
  gap: 14px;
}

.method-rule-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.source-tier-grid {
  grid-template-columns: repeat(5, minmax(210px, 1fr));
}

.method-rule-grid article,
.source-tier,
.run-order-grid article,
.field-panel,
.method-card,
.method-proof-primer article,
.proof-contract article,
.card-standard-grid article,
.audit-grid article,
.lesson-method-grid article {
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.91);
  box-shadow: 0 18px 48px rgba(7, 18, 13, 0.06);
}

.method-rule-grid article,
.source-tier,
.run-order-grid article,
.field-panel,
.method-card,
.method-proof-primer article,
.proof-contract article,
.card-standard-grid article,
.audit-grid article,
.lesson-method-grid article {
  padding: clamp(18px, 2vw, 24px);
}

.method-rule-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.method-rule-grid span,
.source-tier span,
.run-order-grid span,
.method-process span,
.field-panel span,
.method-proof-primer span,
.proof-contract span,
.card-standard-grid span,
.audit-grid span,
.lesson-method-grid span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.method-rule-grid strong,
.source-tier strong,
.run-order-grid strong,
.method-proof-primer strong,
.card-standard-grid strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.45vw, 1.62rem);
  line-height: 1.05;
}

.method-rule-grid p,
.source-tier p,
.run-order-grid p,
.source-tier li,
.method-card p,
.method-card li,
.field-panel p,
.method-proof-primer p,
.proof-contract p,
.card-standard-grid p,
.audit-grid p,
.lesson-method-grid p,
.method-callout p,
.method-theorem p,
.method-checklist li,
.source-link-list li {
  color: var(--surface-muted);
  line-height: 1.66;
}

.source-tier {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 350px;
}

.source-tier ul,
.method-card ul,
.source-link-list,
.method-checklist {
  margin: 0;
  padding-left: 18px;
}

.source-tier a,
.source-link-list a {
  color: var(--green-deep);
  text-decoration-color: rgba(31, 138, 99, 0.35);
  text-underline-offset: 3px;
}

.run-order-section {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 38, 26, 0.98), rgba(18, 63, 40, 0.92));
  box-shadow: var(--shadow);
}

.run-order-section .method-section-head h2 {
  color: var(--chalk);
}

.run-order-section .method-section-head p:not(.eyebrow) {
  color: rgba(244, 240, 223, 0.76);
}

.run-order-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.run-order-grid article {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(244, 240, 223, 0.08);
  border-color: rgba(244, 240, 223, 0.16);
  box-shadow: none;
}

.run-order-grid strong {
  color: var(--chalk);
}

.run-order-grid p {
  margin: 0;
  color: rgba(244, 240, 223, 0.76);
}

.method-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.method-process article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(9, 24, 16, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.08), rgba(255, 255, 249, 0.92));
}

.method-process article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--chalk);
}

.method-process strong {
  color: #08130d;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.method-process p {
  margin: 6px 0 0;
  color: var(--surface-muted);
  line-height: 1.66;
}

.field-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field-panel.optional {
  grid-column: span 3;
  background:
    linear-gradient(135deg, rgba(220, 184, 91, 0.12), rgba(255, 255, 249, 0.96));
}

.field-panel code,
.formula-row code,
.method-proof-primer code,
.proof-contract code,
.method-theorem code,
.card-standard-grid code,
.branch-table code,
.artifact-table code {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

.method-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 0.86fr;
  gap: 14px;
}

.method-card h3 {
  margin: 0 0 14px;
  color: #08130d;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.method-card p:last-child,
.method-card li:last-child,
.source-tier li:last-child,
.method-checklist li:last-child,
.source-link-list li:last-child {
  margin-bottom: 0;
}

.formula-section {
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 249, 0.96), rgba(244, 242, 232, 0.94));
  box-shadow: 0 26px 70px rgba(7, 18, 13, 0.08);
}

.formula-sheet {
  display: grid;
  gap: 12px;
}

.formula-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 0.88fr) minmax(260px, 0.58fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.86);
}

.formula-row code {
  display: block;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(9, 24, 16, 0.1);
  border-radius: 8px;
  background: rgba(18, 63, 40, 0.06);
  color: #08130d;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-x: auto;
}

.formula-row code + code {
  margin-top: 8px;
}

.formula-row p {
  margin: 0;
  color: var(--surface-muted);
  line-height: 1.62;
}

.derivation-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.98), rgba(239, 242, 232, 0.98)),
    var(--pitch-grid);
}

.derivation-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.derivation-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(18, 63, 40, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 250, 0.96), rgba(246, 245, 235, 0.94));
  box-shadow: 0 16px 34px rgba(7, 18, 13, 0.06);
}

.derivation-card.wide {
  grid-column: 1 / -1;
}

.derivation-card span {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.derivation-card .math-display {
  margin: 0;
  padding: 16px;
  border-color: rgba(18, 63, 40, 0.18);
  background: rgba(252, 250, 239, 0.92);
}

.derivation-card p {
  margin: 0;
  max-width: 920px;
  color: var(--surface-muted);
  line-height: 1.62;
}

.method-callout,
.method-theorem {
  margin-top: 20px;
  padding: clamp(18px, 2.4vw, 26px);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 250, 236, 0.92);
}

.method-callout strong,
.method-theorem strong {
  display: block;
  margin-bottom: 8px;
  color: #08130d;
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.method-callout p,
.method-theorem p {
  margin: 0;
}

.method-proof-primer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-contract {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.proof-contract article {
  min-height: 235px;
}

.proof-method {
  padding: clamp(22px, 4vw, 48px);
  border-radius: 8px;
  background:
    linear-gradient(rgba(244, 240, 223, 0.92), rgba(244, 240, 223, 0.92)),
    linear-gradient(90deg, rgba(18, 63, 40, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(18, 63, 40, 0.08) 1px, transparent 1px) 0 0 / 44px 44px;
  box-shadow: 0 24px 70px rgba(7, 18, 13, 0.08);
}

.branch-table,
.artifact-table {
  border: 1px solid rgba(9, 24, 16, 0.12);
  border-radius: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 249, 0.94);
}

.branch-table table,
.artifact-table table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.branch-table th,
.branch-table td,
.artifact-table th,
.artifact-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(9, 24, 16, 0.1);
  color: var(--surface-muted);
  text-align: left;
  vertical-align: top;
}

.branch-table th,
.artifact-table th {
  color: #08130d;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.branch-table td:first-child,
.artifact-table td:first-child {
  color: #08130d;
  font-weight: 760;
}

.card-standard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lesson-method {
  padding: clamp(22px, 4vw, 46px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 38, 26, 0.98), rgba(17, 66, 42, 0.94));
  box-shadow: var(--shadow);
}

.lesson-method .method-section-head h2,
.lesson-method .method-section-head p,
.lesson-method-grid p {
  color: var(--chalk);
}

.lesson-method-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lesson-method-grid article {
  background: rgba(244, 240, 223, 0.08);
  border-color: rgba(244, 240, 223, 0.16);
  box-shadow: none;
}

.lesson-method-grid span {
  display: block;
  margin-bottom: 12px;
  color: #62d990;
}

.method-do-not {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
}

.method-checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.method-checklist li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(217, 97, 76, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.92);
}

.method-checklist li::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(217, 97, 76, 0.12);
  color: #a94a33;
  font-family: var(--font-display);
  font-weight: 900;
}

.source-list-section {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.92);
  box-shadow: 0 18px 52px rgba(7, 18, 13, 0.06);
}

.source-link-list {
  columns: 2;
  column-gap: 42px;
}

.source-link-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.two-column-analysis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.two-column-analysis article {
  padding: 18px;
  border: 1px solid rgba(6, 52, 34, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.72);
}

.two-column-analysis h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.two-column-analysis ul {
  margin: 0;
  padding-left: 18px;
}

.two-column-analysis li + li {
  margin-top: 8px;
}

@media (max-width: 1240px) {
  .method-rule-grid,
  .source-tier-grid,
  .run-order-grid,
  .lesson-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-proof-primer,
  .card-standard-grid,
  .audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-contract {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-toc {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .method-hero,
  .method-process,
  .field-panel-grid,
  .method-columns,
  .formula-row,
  .method-do-not,
  .two-column-analysis,
  .derivation-board {
    grid-template-columns: 1fr;
  }

  .field-panel.optional {
    grid-column: auto;
  }

  .formula-row {
    align-items: stretch;
  }

  .source-link-list {
    columns: 1;
  }
}

@media (max-width: 680px) {
  body.method-page {
    background:
      radial-gradient(circle at 24% 12%, rgba(66, 176, 109, 0.14), transparent 32%),
      linear-gradient(180deg, #07120d 0 120px, #f4f3eb 120px 100%);
  }

  .method-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .method-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-rule-grid,
  .source-tier-grid,
  .run-order-grid,
  .method-proof-primer,
  .proof-contract,
  .card-standard-grid,
  .audit-grid,
  .lesson-method-grid {
    grid-template-columns: 1fr;
  }

  .method-process article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .research-hero,
  .two-column-research {
    grid-template-columns: 1fr;
  }

  .research-metric-grid,
  .research-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .research-sources ul {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .research-metric-grid,
  .research-year-grid {
    grid-template-columns: 1fr;
  }
}

/* Research tab contrast lock. Keep this late in the cascade because the site has
   several dark football-lab sections whose display typography can otherwise bleed
   into the light research cards. */
body.research-page {
  background:
    linear-gradient(rgba(31, 138, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 138, 99, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #07150e 0 520px, #f4f3eb 520px 100%);
  background-size: 58px 58px, 58px 58px, auto;
}

body.research-page main {
  color: #07150e;
}

body.research-page .research-hero h1,
body.research-page .research-hero .lede {
  color: #fff9e8;
}

body.research-page .research-hero .lede {
  color: #d7dfd5;
}

body.research-page .research-side-note,
body.research-page .research-section,
body.research-page .research-chart-card,
body.research-page .research-metric,
body.research-page .research-year-card,
body.research-page .research-sources {
  background: #fbfcf8;
  color: #07150e;
}

body.research-page .research-section {
  background: #f8f9f3;
}

body.research-page .research-side-note {
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.12), rgba(230, 184, 74, 0.13)),
    #fbfcf8;
}

body.research-page .research-section h2,
body.research-page .research-chart-card h2,
body.research-page .research-side-note strong,
body.research-page .research-metric strong,
body.research-page .research-year-card strong,
body.research-page .research-bar-row,
body.research-page .formula-strip,
body.research-page .formula-strip span,
body.research-page .formula-strip code,
body.research-page .research-table,
body.research-page .research-table th,
body.research-page .research-table td,
body.research-page .research-sources strong,
body.research-page .research-sources a {
  color: #07150e;
}

body.research-page .research-section p,
body.research-page .research-reading,
body.research-page .research-side-note p,
body.research-page .research-metric p,
body.research-page .research-year-card p,
body.research-page .research-sources p,
body.research-page .research-sources li,
body.research-page .research-bar-row em {
  color: #50615a;
}

body.research-page .research-side-note span,
body.research-page .research-metric span,
body.research-page .research-year-card span,
body.research-page .research-section .eyebrow,
body.research-page .research-chart-card .eyebrow {
  color: #1f8a63;
}

body.research-page .button {
  border-color: rgba(7, 21, 14, 0.18);
  background: #fffdf4;
  color: #07150e;
}

body.research-page .button.primary {
  border-color: #dcb85b;
  background: #dcb85b;
  color: #07150e;
}

.postgame-analysis {
  border-color: rgba(218, 77, 62, 0.32);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(10, 40, 29, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 241, 0.78);
}

.insight-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 0.95;
}

.insight-card p {
  margin: 0;
  color: var(--slate);
  line-height: 1.65;
}

.insight-card.warning {
  background: rgba(229, 188, 78, 0.16);
  border-color: rgba(229, 188, 78, 0.42);
}

.insight-card.danger {
  background: rgba(218, 77, 62, 0.10);
  border-color: rgba(218, 77, 62, 0.34);
}

@media (max-width: 980px) {
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-card-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .score-card-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Belgium-Spain pre-lock fork board */
.player-intel-section .fixture-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.player-factor-card strong,
.fork-card strong {
  letter-spacing: 0;
}

.player-factor-card p,
.fork-card p {
  max-width: 62ch;
}

.player-factor-card small,
.fork-card small {
  color: var(--muted);
  line-height: 1.45;
}

.two-column-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.25rem;
}

.proof-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.25rem);
  background:
    linear-gradient(135deg, rgba(24, 91, 58, 0.14), rgba(246, 241, 226, 0.66)),
    var(--panel);
}

.proof-column .label {
  color: var(--accent);
}

.proof-column h3 {
  margin-top: 0.4rem;
}

.fork-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 820px) {
  .two-column-proof {
    grid-template-columns: 1fr;
  }
}

/* Belgium-Spain fact intelligence board */
.fact-intelligence {
  position: relative;
  overflow: hidden;
  border-color: rgba(230, 184, 74, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.96), rgba(223, 244, 230, 0.9)),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.06) 0 1px, transparent 1px 92px);
}

.fact-intelligence::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(230, 184, 74, 0.13), transparent 28%),
    linear-gradient(90deg, rgba(31, 138, 99, 0.08), transparent 45%);
}

.fact-intelligence > * {
  position: relative;
}

.fact-hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.fact-hero-strip article {
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(17, 19, 21, 0.06);
}

.fact-hero-strip span,
.turtle-fact-card span {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fact-hero-strip strong {
  display: block;
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.fact-hero-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.turtle-fact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.turtle-fact-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 19, 21, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #07150e;
  box-shadow: 0 14px 36px rgba(17, 19, 21, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.turtle-fact-card:hover,
.turtle-fact-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(31, 138, 99, 0.36);
  box-shadow: 0 22px 52px rgba(17, 19, 21, 0.1);
}

.fact-intelligence .turtle-fact-card p {
  margin: 0;
  color: #07150e;
  font-size: 0.94rem;
  line-height: 1.45;
}

.fact-intelligence .turtle-fact-card small {
  margin-top: auto;
  color: #4e6158;
  font-size: 0.78rem;
  line-height: 1.45;
}

.additional-fact-room {
  background: linear-gradient(180deg, #fffdf4, #f6f8f2);
}

.additional-fact-room .table-wrap {
  max-height: 650px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.additional-fact-room table {
  min-width: 1280px;
}

.additional-fact-room td {
  vertical-align: top;
}

@media (max-width: 1180px) {
  .turtle-fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fact-hero-strip,
  .turtle-fact-grid {
    grid-template-columns: 1fr;
  }

  .turtle-fact-card {
    min-height: auto;
  }
}

/* Turtle readability polish pass */
body.match-page.reader-polish {
  background:
    linear-gradient(180deg, rgba(3, 23, 15, 0.98) 0 280px, #f7f6ec 280px 100%);
}

body.match-page.reader-polish .page-shell {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 76px) 0 clamp(60px, 7vw, 110px);
}

body.match-page.reader-polish .page-panel {
  padding: clamp(26px, 4vw, 48px);
  margin: 0 0 clamp(28px, 4vw, 52px);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(7, 21, 14, 0.08);
}

body.match-page.reader-polish .page-panel h1,
body.match-page.reader-polish .page-panel h2 {
  max-width: 18ch;
  letter-spacing: 0;
  text-wrap: balance;
}

body.match-page.reader-polish .page-panel .lede,
body.match-page.reader-polish .page-panel > p:not(.eyebrow) {
  max-width: 76ch;
  line-height: 1.75;
}

body.match-page.reader-polish .locked-hero {
  padding-top: clamp(42px, 6vw, 76px);
}

body.match-page.reader-polish .locked-hero .fixture-grid,
body.match-page.reader-polish #data-facts .fixture-grid,
body.match-page.reader-polish #fork-decision .fixture-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.match-page.reader-polish .fixture-card {
  min-height: auto;
  padding: clamp(20px, 2.4vw, 28px);
}

body.match-page.reader-polish .fixture-card strong {
  letter-spacing: 0;
  line-height: 1.08;
}

body.match-page.reader-polish .fixture-card p,
body.match-page.reader-polish .fixture-card small {
  line-height: 1.65;
}

.reader-note {
  max-width: 78ch;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(31, 138, 99, 0.22);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #21362c;
  line-height: 1.65;
}

.reader-note strong {
  color: #07150e;
}

body.match-page.reader-polish .fact-intelligence {
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.98), rgba(232, 244, 235, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.04) 0 1px, transparent 1px 108px);
}

body.match-page.reader-polish .fact-hero-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 10px;
}

body.match-page.reader-polish .fact-hero-strip article {
  min-height: 130px;
}

body.match-page.reader-polish .turtle-fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

body.match-page.reader-polish .turtle-fact-card {
  min-height: 210px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
}

body.match-page.reader-polish .fact-intelligence .turtle-fact-card p {
  font-size: 1rem;
  line-height: 1.62;
}

body.match-page.reader-polish .fact-intelligence .turtle-fact-card small {
  font-size: 0.86rem;
  line-height: 1.6;
}

body.match-page.reader-polish .additional-fact-room .table-wrap,
body.match-page.reader-polish #contradiction-ledger .table-wrap,
body.match-page.reader-polish #support-analysis .table-wrap {
  max-height: 520px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.match-page.reader-polish table {
  font-size: 0.92rem;
}

body.match-page.reader-polish table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f4e9;
}

.math-paper-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  margin: 28px 0 30px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(31, 138, 99, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.96), rgba(236, 245, 239, 0.94)),
    repeating-linear-gradient(0deg, rgba(31, 138, 99, 0.035) 0 1px, transparent 1px 28px);
}

.math-paper-panel h3 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.math-paper-panel p {
  color: #31483d;
  line-height: 1.7;
}

.math-display-luxe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 148px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(7, 21, 14, 0.18);
  border-radius: 12px;
  background: #fffdf4;
  color: #07150e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  line-height: 1.25;
  overflow-x: auto;
  white-space: nowrap;
}

.math-display-luxe strong {
  color: var(--green);
}

.math-rules-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.math-rules-grid article {
  padding: 18px;
  border: 1px solid rgba(7, 21, 14, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.math-rules-grid span {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.math-rules-grid strong {
  display: block;
  margin: 8px 0;
  color: #07150e;
  font-size: 1.25rem;
}

.math-rules-grid p {
  margin: 0;
  font-size: 0.94rem;
}

body.match-page.reader-polish .proof-board {
  background:
    linear-gradient(180deg, #fffdf4, #f2f5ec),
    repeating-linear-gradient(0deg, rgba(31, 138, 99, 0.04) 0 1px, transparent 1px 30px);
}

body.match-page.reader-polish .proof-list {
  display: grid;
  gap: 14px;
  max-width: 92ch;
}

body.match-page.reader-polish .proof-list p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(7, 21, 14, 0.1);
  border-left: 4px solid rgba(31, 138, 99, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #24372e;
  line-height: 1.72;
}

body.match-page.reader-polish .proof-list strong {
  color: #07150e;
}

.fact-board-page .page-shell {
  width: min(1420px, calc(100vw - 44px));
}

.fact-board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.96), rgba(232, 244, 235, 0.92)),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.04) 0 1px, transparent 1px 104px);
}

.fact-board-hero h1 {
  max-width: 13ch;
}

.evidence-scoreboard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(31, 138, 99, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(7, 21, 14, 0.94), rgba(18, 65, 44, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px);
  color: #fffdf4;
  box-shadow: 0 28px 70px rgba(7, 21, 14, 0.18);
}

.evidence-scoreboard span,
.fact-card-top span,
.fact-card-top em {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.evidence-scoreboard span,
.fact-card-top span {
  color: #48c27d;
}

.evidence-scoreboard strong {
  display: block;
  color: #fffdf4;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
}

.evidence-scoreboard p {
  margin: 0;
  color: rgba(255, 253, 244, 0.78);
  line-height: 1.65;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.fact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.fact-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(17, 19, 21, 0.06);
}

.fact-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fact-card-top em {
  color: #6b756f;
  font-style: normal;
  text-align: right;
}

.fact-card p {
  margin: 0;
  color: #07150e;
  font-size: 1.02rem;
  line-height: 1.58;
}

.fact-card small {
  margin-top: auto;
  color: #52665b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.trailing-card-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.fact-card.compact {
  min-height: 190px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.fact-card.compact p {
  font-size: 0.94rem;
}

.fact-table-wrap {
  max-height: 620px;
}

.source-list {
  columns: 2;
  margin: 28px 0 0;
  padding-left: 20px;
  color: #31483d;
  line-height: 1.9;
}

@media (max-width: 1180px) {
  .fact-card-grid,
  .trailing-card-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fact-board-hero,
  .fact-card-grid,
  .trailing-card-strip {
    grid-template-columns: 1fr;
  }

  .fact-card,
  .fact-card.compact {
    min-height: auto;
  }

  .source-list {
    columns: 1;
  }
}

.math-display,
.formula-strip,
.formula-block,
.proof-formula {
  max-width: 100%;
  overflow-x: auto;
  color: #07150e;
  line-height: 1.55;
}

.home-page .home-today-board,
.home-page .home-ledger-panel {
  width: min(1500px, calc(100vw - 56px));
  margin-left: auto;
  margin-right: auto;
}

.home-page .home-today-board {
  padding: clamp(30px, 4vw, 54px);
}

.home-page .today-fixture-grid,
.home-page .ledger-card-row {
  gap: 18px;
}

@media (max-width: 980px) {
  body.match-page.reader-polish .locked-hero .fixture-grid,
  body.match-page.reader-polish #data-facts .fixture-grid,
  body.match-page.reader-polish #fork-decision .fixture-grid,
  body.match-page.reader-polish .fact-hero-strip,
  body.match-page.reader-polish .turtle-fact-grid,
  .math-paper-panel,
  .math-rules-grid {
    grid-template-columns: 1fr;
  }

  .math-display-luxe {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.match-page.reader-polish .page-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 22px;
  }

  body.match-page.reader-polish .page-panel {
    padding: 22px 16px;
  }

  .home-page .home-today-board,
  .home-page .home-ledger-panel {
    width: min(100% - 24px, 1500px);
  }
}

/* Turtle UI repair pass: all facts visible, proof isolated, math readable. */
body.match-page.reader-polish {
  --pitch-dark: #03170f;
  --pitch-mid: #0b3423;
  --pitch-line: rgba(218, 244, 222, 0.16);
  --chalk: #fffaf0;
  --signal: #37b86f;
  --warning-gold: #e7be4f;
}

body.match-page.reader-polish .page-shell {
  width: min(1320px, calc(100vw - 40px));
}

body.match-page.reader-polish .page-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.match-page.reader-polish .page-panel h1,
body.match-page.reader-polish .page-panel h2 {
  max-width: 24ch;
}

body.match-page.reader-polish .fact-intelligence {
  border: 1px solid rgba(55, 184, 111, 0.2);
  background:
    radial-gradient(circle at 12% 8%, rgba(55, 184, 111, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(3, 23, 15, 0.98), rgba(9, 51, 34, 0.94)),
    repeating-linear-gradient(90deg, var(--pitch-line) 0 1px, transparent 1px 118px),
    repeating-linear-gradient(0deg, rgba(218, 244, 222, 0.08) 0 1px, transparent 1px 78px);
  color: var(--chalk);
}

body.match-page.reader-polish .fact-intelligence h2,
body.match-page.reader-polish .fact-intelligence .lede {
  color: var(--chalk);
}

body.match-page.reader-polish .fact-intelligence .lede {
  opacity: 0.9;
}

.fact-board-note {
  max-width: 86ch;
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid rgba(231, 190, 79, 0.32);
  border-left: 5px solid var(--warning-gold);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.9);
  line-height: 1.65;
}

.fact-board-note strong {
  color: var(--warning-gold);
}

body.match-page.reader-polish .fact-intelligence .fact-hero-strip article {
  border-color: rgba(255, 250, 240, 0.16);
  background: rgba(255, 250, 240, 0.08);
  color: var(--chalk);
}

body.match-page.reader-polish .fact-intelligence .fact-hero-strip p {
  color: rgba(255, 250, 240, 0.78);
}

body.match-page.reader-polish .turtle-fact-grid {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
  align-items: stretch;
}

body.match-page.reader-polish .turtle-fact-card {
  min-height: 212px;
  padding: 20px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-top: 4px solid rgba(55, 184, 111, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(244, 249, 241, 0.94)),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.045) 0 1px, transparent 1px 74px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

body.match-page.reader-polish .turtle-fact-card span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 138, 99, 0.1);
  color: #0d7c4c;
  line-height: 1.15;
}

body.match-page.reader-polish .fact-intelligence .turtle-fact-card p {
  color: #07150e;
  font-size: 0.98rem;
  line-height: 1.58;
}

body.match-page.reader-polish .fact-intelligence .turtle-fact-card small {
  color: #3f574b;
  font-size: 0.82rem;
}

body.match-page.reader-polish #evidence-room,
body.match-page.reader-polish #contradiction-ledger,
body.match-page.reader-polish #proof-engine,
body.match-page.reader-polish #support-analysis {
  clear: both;
  position: relative;
  z-index: 1;
}

body.match-page.reader-polish #evidence-room .table-wrap,
body.match-page.reader-polish #contradiction-ledger .table-wrap,
body.match-page.reader-polish #support-analysis .table-wrap {
  contain: paint;
  max-height: min(540px, 70vh);
  overflow: auto;
  border: 1px solid rgba(7, 21, 14, 0.14);
  border-radius: 10px;
  background: #fffdf4;
}

body.match-page.reader-polish table {
  table-layout: fixed;
  width: max(100%, 1180px);
}

body.match-page.reader-polish th,
body.match-page.reader-polish td {
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: top;
}

body.match-page.reader-polish table th {
  position: static;
  z-index: auto;
}

body.match-page.reader-polish #proof-engine {
  z-index: 4;
  border: 1px solid rgba(31, 138, 99, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.98), rgba(241, 246, 237, 0.98)),
    repeating-linear-gradient(0deg, rgba(31, 138, 99, 0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.035) 0 1px, transparent 1px 96px);
}

body.match-page.reader-polish #proof-engine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 92% 10%, rgba(231, 190, 79, 0.12), transparent 24%);
}

body.match-page.reader-polish .math-paper-panel {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  overflow: hidden;
  border-color: rgba(31, 138, 99, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 252, 239, 0.98), rgba(232, 244, 235, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.045) 0 1px, transparent 1px 76px);
}

body.match-page.reader-polish .math-display-luxe {
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
  white-space: normal;
  min-width: 0;
  font-size: clamp(1.05rem, 1.65vw, 1.7rem);
  text-align: center;
}

body.match-page.reader-polish .math-display-luxe span {
  min-width: 0;
}

body.match-page.reader-polish .math-rules-grid article,
body.match-page.reader-polish .proof-list p {
  position: relative;
  z-index: 2;
}

body.match-page.reader-polish .proof-list {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body.match-page.reader-polish .proof-list p:last-child {
  grid-column: 1 / -1;
  border-color: rgba(231, 190, 79, 0.38);
  border-left-color: var(--warning-gold);
  background: linear-gradient(90deg, rgba(231, 190, 79, 0.14), rgba(255, 255, 255, 0.82));
}

/* England-Norway dossier pass */
body.match-page.reader-polish .locked-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(231, 190, 79, 0.18), transparent 28%),
    radial-gradient(circle at 12% 28%, rgba(55, 184, 111, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(3, 23, 15, 0.98), rgba(9, 51, 34, 0.96)),
    repeating-linear-gradient(90deg, rgba(218, 244, 222, 0.09) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(218, 244, 222, 0.07) 0 1px, transparent 1px 68px);
  color: var(--chalk);
}

body.match-page.reader-polish .locked-hero h1,
body.match-page.reader-polish .locked-hero .lede {
  color: var(--chalk);
}

.lock-dossier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.lock-node-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.055));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.lock-node-card span,
.lock-node-card small {
  color: #72e0a0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lock-node-card strong {
  color: var(--chalk);
  font-size: clamp(1.65rem, 3vw, 3.4rem);
  line-height: 0.95;
}

.lock-node-card p {
  color: rgba(255, 250, 240, 0.82);
  line-height: 1.55;
}

.reader-map {
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.98), rgba(236, 245, 233, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 138, 99, 0.045) 0 1px, transparent 1px 84px);
}

.reader-map-grid,
.thread-bar-grid,
.attack-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reader-map-grid article,
.thread-bar-card,
.attack-card {
  padding: 20px;
  border: 1px solid rgba(7, 21, 14, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 244, 0.92);
  box-shadow: 0 14px 36px rgba(7, 21, 14, 0.08);
}

.reader-map-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #0d7c4c;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-weight: 900;
}

.reader-map-grid h3,
.attack-card h3 {
  margin: 0 0 10px;
  color: #07150e;
  font-size: 1.35rem;
}

.reader-map-grid p,
.thread-bar-card p,
.attack-card p {
  color: #344a3d;
  line-height: 1.58;
}

.model-room {
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.98), rgba(242, 248, 239, 0.98)),
    repeating-linear-gradient(0deg, rgba(31, 138, 99, 0.04) 0 1px, transparent 1px 40px);
}

.model-equation-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 20px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(31, 138, 99, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(3, 23, 15, 0.96), rgba(12, 55, 35, 0.93)),
    repeating-linear-gradient(90deg, rgba(218, 244, 222, 0.08) 0 1px, transparent 1px 72px);
  color: var(--chalk);
}

.model-equation-card span {
  color: #72e0a0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-equation-card strong {
  display: block;
  margin: 12px 0;
  color: var(--chalk);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.25;
}

.model-equation-card p {
  color: rgba(255, 250, 240, 0.8);
}

.lambda-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lambda-pair b {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.1);
  color: var(--warning-gold);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.lambda-pair small {
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.72);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.thread-bar-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.thread-bar-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
}

.thread-bar-top span {
  color: #0d7c4c;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.thread-bar-top strong {
  color: #07150e;
  font-size: 1.05rem;
}

.thread-bar-top b {
  color: #07150e;
  font-size: 1.2rem;
}

.thread-track {
  height: 10px;
  margin: 16px 0 14px;
  border-radius: 999px;
  background: rgba(7, 21, 14, 0.1);
  overflow: hidden;
}

.thread-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #37b86f, #e7be4f);
}

.attack-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.attack-card {
  border-left: 5px solid rgba(7, 21, 14, 0.18);
}

.attack-card.survives,
.attack-card.survives-as-c4 {
  border-left-color: #37b86f;
}

.attack-card.excluded,
.attack-card.wider-orbit-only {
  border-left-color: #e7be4f;
}

.attack-card span,
.attack-card small {
  color: #0d7c4c;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.attack-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.diagnostic-watchboard {
  background:
    radial-gradient(circle at 88% 8%, rgba(231, 190, 79, 0.13), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 244, 0.98), rgba(235, 246, 236, 0.98));
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.diagnostic-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(7, 21, 14, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 253, 244, 0.72)),
    repeating-linear-gradient(0deg, rgba(31, 138, 99, 0.035) 0 1px, transparent 1px 38px);
  box-shadow: 0 16px 36px rgba(7, 21, 14, 0.09);
}

.diagnostic-grid span {
  color: #0d7c4c;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.diagnostic-grid h3 {
  margin: 18px 0 14px;
  color: #07150e;
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  line-height: 1.08;
}

.diagnostic-grid p {
  margin: 0;
  color: #3c5146;
  line-height: 1.62;
}

.evidence-density {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.08);
}

.evidence-density strong {
  color: var(--chalk);
  font-size: 1.05rem;
}

.evidence-density div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.evidence-density span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.1);
  color: rgba(255, 250, 240, 0.82);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-density b {
  color: var(--warning-gold);
}

body.match-page.reader-polish .expanded-fact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body.match-page.reader-polish .expanded-fact-grid .fact-card {
  min-height: 246px;
}

@media (max-width: 980px) {
  body.match-page.reader-polish .math-paper-panel {
    grid-template-columns: 1fr;
  }

  body.match-page.reader-polish .proof-list {
    grid-template-columns: 1fr;
  }

  .lock-dossier-grid,
  .reader-map-grid,
  .diagnostic-grid,
  .model-equation-card,
  .lambda-pair,
  .evidence-density {
    grid-template-columns: 1fr;
  }
}


/* semifinal-aen-workbench */
.semifinals-page {
  background:
    linear-gradient(90deg, rgba(10, 45, 30, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(10, 45, 30, 0.05) 1px, transparent 1px),
    #f7f8f0;
  background-size: 72px 72px;
}

.semifinal-main {
  max-width: 1440px;
  margin: 0 auto;
}

.semifinal-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
}

.semifinal-hero h1 {
  max-width: 980px;
}

.operator-pact-card,
.semifinal-panel,
.semifinal-fixture,
.aen-card {
  border: 1px solid rgba(16, 71, 48, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.9);
  box-shadow: 0 18px 60px rgba(17, 19, 21, 0.06);
}

.operator-pact-card {
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.18), rgba(230, 184, 74, 0.16)),
    rgba(255, 255, 250, 0.9);
}

.operator-pact-card span,
.aen-card span,
.semifinal-fixture span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 850;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.operator-pact-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
}

.semifinal-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.semifinal-fixture {
  padding: 24px;
}

.semifinal-fixture strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.semifinal-panel {
  margin: 28px 0;
  padding: clamp(24px, 4vw, 44px);
}

.aen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.taxonomy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aen-card {
  min-height: 180px;
  padding: 22px;
}

.aen-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.aen-card p,
.operator-pact-card p,
.semifinal-fixture p {
  color: var(--muted);
  line-height: 1.65;
}

.aen-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.aen-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.aen-table-wrap th,
.aen-table-wrap td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.aen-table-wrap th {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.source-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-link-grid a {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(16, 71, 48, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.86);
  font-weight: 800;
  text-decoration: none;
}

.source-link-grid a:hover,
.source-link-grid a:focus-visible {
  border-color: rgba(220, 184, 91, 0.62);
  transform: translateY(-2px);
}

.seed-fact-grid {
  margin: 22px 0 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seed-fact-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(31, 138, 99, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 138, 99, 0.08), rgba(255, 254, 250, 0.95)),
    #fffefa;
  box-shadow: 0 16px 46px rgba(17, 19, 21, 0.05);
}

.seed-fact-card span {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seed-fact-card p {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .semifinal-hero,
  .semifinal-strip,
  .aen-grid,
  .taxonomy-grid,
  .source-link-grid,
  .seed-fact-grid {
    grid-template-columns: 1fr;
  }
}


/* semifinal-public-prelock-polish */
.semifinals-page {
  color: #071711;
  background:
    radial-gradient(circle at 15% 8%, rgba(42, 132, 90, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(14, 71, 48, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(14, 71, 48, 0.05) 1px, transparent 1px),
    #f6f7ef;
  background-size: auto, 74px 74px, 74px 74px, auto;
}

.semifinal-main {
  width: min(1480px, calc(100% - 48px));
}

.semifinal-hero {
  min-height: 560px;
  padding: clamp(48px, 7vw, 96px) 0;
}

.semifinal-hero h1 {
  max-width: 920px;
  font-size: clamp(3.2rem, 6.8vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.semifinal-hero .lede {
  max-width: 780px;
  color: rgba(246, 244, 228, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.operator-pact-card {
  align-self: center;
}

.forecast-panel,
.evidence-panel {
  background:
    linear-gradient(135deg, rgba(11, 49, 33, 0.96), rgba(9, 67, 42, 0.92)),
    #0b3121;
  color: #fffbea;
  border-color: rgba(230, 188, 85, 0.28);
}

.forecast-panel h2,
.evidence-panel h2,
.forecast-panel .lede-small,
.evidence-panel .lede-small {
  color: #fffbea;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.forecast-card,
.evidence-card {
  display: block;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(235, 210, 142, 0.24);
  border-radius: 10px;
  background: rgba(255, 251, 234, 0.08);
  color: #fffbea;
  text-decoration: none;
}

.forecast-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.forecast-head span,
.evidence-card span,
.public-fact-card span {
  color: #49c984;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forecast-head strong,
.evidence-card strong {
  display: block;
  color: #fffbea;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.forecast-card p,
.forecast-card small,
.evidence-card p {
  color: rgba(255, 251, 234, 0.78);
  line-height: 1.65;
}

.forecast-node-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.forecast-node-list li {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 251, 234, 0.11);
  border: 1px solid rgba(255, 251, 234, 0.14);
}

.forecast-node-list strong {
  display: block;
  margin-bottom: 8px;
  color: #fffbea;
  font-size: 1.4rem;
}

.forecast-node-list span {
  display: block;
  color: #e7c95b;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reader-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 26px;
  padding: 18px 20px;
  border-left: 4px solid #31a66c;
  border-radius: 8px;
  background: rgba(49, 166, 108, 0.08);
  color: #173328;
}

.reader-note strong {
  flex: 0 0 auto;
}

.public-fact-board {
  margin-top: 20px;
}

.public-fact-grid,
.public-fact-grid-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 34px;
}

.public-fact-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(8, 45, 30, 0.14);
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 16px 42px rgba(11, 31, 22, 0.07);
}

.public-fact-card strong {
  display: block;
  margin: 8px 0 14px;
  color: #0b2017;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.public-fact-card p {
  color: #31483d;
  line-height: 1.62;
}

.public-fact-card small {
  display: block;
  margin-top: 16px;
  color: #60756b;
  line-height: 1.45;
}

.trailing-fact-room {
  margin-top: 22px;
  border: 1px solid rgba(8, 45, 30, 0.16);
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 18px 50px rgba(11, 31, 22, 0.08);
  overflow: hidden;
}

.trailing-fact-room summary {
  cursor: pointer;
  padding: 18px 22px;
  color: #0b2017;
  font-weight: 900;
  list-style-position: inside;
}

.trailing-fact-room ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
  margin: 0;
  list-style: none;
}

.trailing-fact-room li {
  padding: 16px;
  border-radius: 8px;
  background: rgba(49, 166, 108, 0.07);
  color: #31483d;
  line-height: 1.5;
}

.trailing-fact-room li b {
  display: block;
  color: #0b2017;
  margin-bottom: 6px;
}

.source-link-grid a {
  color: #0b2017;
  background: #fffefa;
}

.semifinal-panel h2 {
  max-width: 980px;
}

.semifinal-home-board .today-fixture-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .forecast-grid,
  .evidence-grid,
  .public-fact-grid,
  .public-fact-grid-highlight,
  .trailing-fact-room ol,
  .semifinal-home-board .today-fixture-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .semifinal-main {
    width: min(100% - 28px, 1480px);
  }

  .forecast-node-list {
    grid-template-columns: 1fr;
  }

  .reader-note {
    display: block;
  }
}


/* semifinal-public-prelock-v2 */
.semifinals-page {
  color: #071711;
  background:
    radial-gradient(circle at 15% 8%, rgba(42, 132, 90, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(14, 71, 48, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(14, 71, 48, 0.05) 1px, transparent 1px),
    #f6f7ef;
  background-size: auto, 74px 74px, 74px 74px, auto;
}

.semifinal-main {
  width: min(1480px, calc(100% - 48px));
}

.semifinal-hero {
  min-height: 560px;
  padding: clamp(48px, 7vw, 96px) 0;
}

.semifinal-hero h1 {
  max-width: 920px;
  font-size: clamp(3.2rem, 6.8vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.semifinal-hero .lede {
  max-width: 780px;
  color: rgba(246, 244, 228, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.operator-pact-card {
  align-self: center;
}

.forecast-panel,
.evidence-panel {
  background:
    linear-gradient(135deg, rgba(11, 49, 33, 0.96), rgba(9, 67, 42, 0.92)),
    #0b3121;
  color: #fffbea;
  border-color: rgba(230, 188, 85, 0.28);
}

.forecast-panel h2,
.evidence-panel h2,
.forecast-panel .lede-small,
.evidence-panel .lede-small {
  color: #fffbea;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.forecast-card,
.evidence-card {
  display: block;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(235, 210, 142, 0.24);
  border-radius: 10px;
  background: rgba(255, 251, 234, 0.08);
  color: #fffbea;
  text-decoration: none;
}

.forecast-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.forecast-head span,
.evidence-card span,
.public-fact-card span {
  color: #49c984;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forecast-head strong,
.evidence-card strong {
  display: block;
  color: #fffbea;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.forecast-card p,
.forecast-card small,
.evidence-card p {
  color: rgba(255, 251, 234, 0.78);
  line-height: 1.65;
}

.forecast-node-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.forecast-node-list li {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 251, 234, 0.11);
  border: 1px solid rgba(255, 251, 234, 0.14);
}

.forecast-node-list strong {
  display: block;
  margin-bottom: 8px;
  color: #fffbea;
  font-size: 1.4rem;
}

.forecast-node-list span {
  display: block;
  color: #e7c95b;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.reader-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 26px;
  padding: 18px 20px;
  border-left: 4px solid #31a66c;
  border-radius: 8px;
  background: rgba(49, 166, 108, 0.08);
  color: #173328;
}

.reader-note strong {
  flex: 0 0 auto;
}

.public-fact-board {
  margin-top: 20px;
}

.public-fact-grid-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 34px;
}

.public-fact-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(8, 45, 30, 0.14);
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 16px 42px rgba(11, 31, 22, 0.07);
}

.public-fact-card strong {
  display: block;
  margin: 8px 0 14px;
  color: #0b2017;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.public-fact-card p {
  color: #31483d;
  line-height: 1.62;
}

.public-fact-card small {
  display: block;
  margin-top: 16px;
  color: #60756b;
  line-height: 1.45;
}

.trailing-fact-room {
  margin: 0 0 36px;
  border: 1px solid rgba(8, 45, 30, 0.18);
  border-radius: 10px;
  background: #fffefa;
  overflow: hidden;
}

.trailing-fact-room summary {
  cursor: pointer;
  padding: 20px 24px;
  color: #0b2017;
  font-weight: 900;
  border-bottom: 1px solid rgba(8, 45, 30, 0.12);
}

.trailing-fact-room ol {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 18px 32px 22px 48px;
}

.trailing-fact-room li {
  padding: 12px 0;
  color: #31483d;
  line-height: 1.55;
  border-bottom: 1px solid rgba(8, 45, 30, 0.08);
}

.trailing-fact-room li b {
  color: #0b6b43;
  margin-right: 8px;
}

.source-link-grid a {
  color: #0b2017;
  background: #fffefa;
}

.semifinal-panel h2 {
  max-width: 980px;
}

.semifinal-home-board .today-fixture-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.state-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.state-chip-row b {
  padding: 7px 10px;
  border: 1px solid rgba(11, 49, 33, 0.35);
  border-radius: 999px;
  background: rgba(255, 251, 234, 0.74);
  color: #0b3121;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.status-grid,
.proof-gate-grid,
.ai-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.status-grid article,
.proof-gate-grid article,
.ai-start-grid a {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(8, 45, 30, 0.16);
  border-radius: 12px;
  background: #fffefa;
  color: #173328;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(11, 31, 22, 0.06);
}

.status-grid span,
.ai-start-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #0b6b43;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid strong,
.proof-gate-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #0b2017;
  font-size: 1.2rem;
}

.status-grid p,
.proof-gate-grid p,
.ai-start-grid span {
  color: #466055;
  line-height: 1.55;
}

.ai-start-panel {
  background: linear-gradient(135deg, #f7f6e8, #e9f4e9);
}

.ai-start-grid a:hover,
.ai-start-grid a:focus-visible {
  border-color: #1d8a57;
  transform: translateY(-2px);
}

.proof-gate-panel {
  border-color: rgba(178, 83, 40, 0.32);
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.96), rgba(255, 252, 245, 0.96));
}

.proof-gate-grid article {
  border-color: rgba(178, 83, 40, 0.2);
}

.artifact-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(8, 45, 30, 0.12);
  color: #466055;
}

.fact-source {
  display: inline-block;
  margin-top: 12px;
  color: #0b6b43;
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .forecast-grid,
  .evidence-grid,
  .public-fact-grid-highlight,
  .semifinal-home-board .today-fixture-grid,
  .status-grid,
  .proof-gate-grid,
  .ai-start-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .semifinal-main {
    width: min(100% - 28px, 1480px);
  }

  .forecast-node-list {
    grid-template-columns: 1fr;
  }

  .reader-note {
    display: block;
  }
}


/* semifinal-citation-ready-v3 */
:root {
  --sf-ink: #0a2118;
  --sf-muted: #52665d;
  --sf-pitch: #073522;
  --sf-pitch-deep: #031b13;
  --sf-green: #16865a;
  --sf-mint: #dff2e8;
  --sf-paper: #fbfaf4;
  --sf-cool: #edf3f4;
  --sf-gold: #d6ad3f;
  --sf-coral: #b95739;
  --sf-line: #cad5ce;
}

.semifinals-page,
.today-page-v2,
.predictions-page,
.home-page {
  color: var(--sf-ink);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.semifinals-page {
  background: var(--sf-paper);
}

.semifinals-page .topbar,
.today-page-v2 .topbar,
.predictions-page .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 62px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: rgba(3, 27, 19, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.semifinals-page .nav,
.today-page-v2 .nav,
.predictions-page .nav {
  gap: 22px;
}

.semifinals-page .nav a,
.today-page-v2 .nav a,
.predictions-page .nav a {
  color: #f7f4e9;
  opacity: 0.78;
}

.semifinals-page .nav a:hover,
.semifinals-page .nav a:focus-visible,
.today-page-v2 .nav a:hover,
.predictions-page .nav a:hover {
  opacity: 1;
  color: #fff;
}

.semifinal-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.semifinal-hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100vh - 62px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
  padding: clamp(64px, 8vw, 112px) max(28px, calc((100vw - 1240px) / 2));
  overflow: hidden;
  background: var(--sf-pitch-deep);
  color: #fffdf2;
}

.semifinal-hero-media,
.semifinal-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.semifinal-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.33;
}

.semifinal-hero-shade {
  z-index: -1;
  background: rgba(2, 24, 16, 0.72);
}

.semifinal-hero-copy {
  max-width: 820px;
}

.semifinal-hero h1 {
  max-width: 820px;
  margin: 12px 0 24px;
  color: #fffdf2;
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 1.01;
  letter-spacing: 0;
}

.semifinal-hero .lede {
  max-width: 720px;
  color: rgba(255, 253, 242, 0.86);
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.semifinal-hero .eyebrow {
  color: #71dda6;
}

.operator-pact-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 8px;
  background: rgba(3, 27, 19, 0.88);
  color: #fffdf2;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.operator-pact-card > span {
  color: #71dda6;
}

.operator-pact-card > strong {
  color: #fffdf2;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.operator-pact-card p {
  color: rgba(255, 253, 242, 0.78);
}

.state-chip-row b {
  border: 1px solid rgba(214, 173, 63, 0.48);
  border-radius: 4px;
  background: rgba(214, 173, 63, 0.12);
  color: #f4d36e;
}

.semifinal-strip {
  width: min(1240px, calc(100% - 48px));
  margin: -34px auto 24px;
  position: relative;
  z-index: 3;
  gap: 16px;
}

.semifinal-fixture {
  min-height: 168px;
  padding: 26px;
  border: 1px solid var(--sf-line);
  border-top: 5px solid var(--sf-gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(5, 30, 20, 0.1);
}

.semifinal-fixture strong {
  color: var(--sf-ink);
}

.semifinal-panel {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 7vw, 92px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.semifinal-panel + .semifinal-panel {
  border-top: 1px solid var(--sf-line);
}

.section-kicker,
.semifinal-panel > .eyebrow,
.semifinal-panel > h2,
.semifinal-panel > .lede-small {
  max-width: 900px;
}

.section-kicker h2,
.semifinal-panel > h2 {
  margin: 8px 0 16px;
  color: var(--sf-ink);
  font-size: clamp(2.25rem, 4.3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-kicker .lede-small,
.semifinal-panel > .lede-small {
  color: var(--sf-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.gate-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 34px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.gate-rail article {
  min-height: 190px;
  padding: 24px 20px;
  border-right: 1px solid var(--sf-line);
}

.gate-rail article:last-child {
  border-right: 0;
}

.gate-rail article span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid var(--sf-line);
  border-radius: 50%;
  color: var(--sf-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.gate-rail article strong {
  display: block;
  margin-bottom: 10px;
  color: var(--sf-ink);
  font-size: 1.25rem;
}

.gate-rail article p {
  color: var(--sf-muted);
  line-height: 1.5;
}

.gate-rail .gate-active {
  background: var(--sf-mint);
}

.gate-rail .gate-active span {
  border-color: var(--sf-green);
  background: var(--sf-green);
  color: #fff;
}

.ai-start-panel,
.proof-gate-panel,
.forecast-panel {
  width: 100%;
  max-width: none;
  padding-left: max(28px, calc((100vw - 1240px) / 2));
  padding-right: max(28px, calc((100vw - 1240px) / 2));
}

.ai-start-panel {
  background: var(--sf-cool);
}

.proof-gate-panel {
  border-top: 0 !important;
  background: #fff5e9;
}

.forecast-panel {
  border-top: 0 !important;
  background: var(--sf-pitch-deep);
  color: #fffdf2;
}

.forecast-panel .section-kicker h2,
.forecast-panel .section-kicker .lede-small,
.forecast-panel .eyebrow {
  color: #fffdf2;
}

.forecast-panel .eyebrow {
  color: #71dda6;
}

.ai-start-grid,
.proof-gate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-start-grid a,
.proof-gate-grid article {
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.proof-equation {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(320px, 0.65fr);
  gap: 14px 28px;
  align-items: center;
  margin: 30px 0;
  padding: 28px;
  border: 1px solid rgba(185, 87, 57, 0.35);
  border-left: 6px solid var(--sf-coral);
  border-radius: 8px;
  background: #fff;
}

.proof-equation > span {
  color: var(--sf-coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-equation code {
  color: var(--sf-ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.15rem, 2.3vw, 1.85rem);
  overflow-wrap: anywhere;
}

.proof-equation p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--sf-muted);
  line-height: 1.65;
}

.forecast-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.forecast-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.forecast-node-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forecast-node-list li {
  min-height: 210px;
  padding: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.075);
}

.forecast-node-list strong {
  font-size: 1.15rem;
}

.fact-state-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sf-line);
}

.fact-state-band article {
  min-height: 180px;
  padding: 24px;
  background: #fff;
}

.fact-state-band span {
  display: block;
  color: var(--sf-green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-state-band strong {
  display: block;
  margin: 14px 0;
  color: var(--sf-ink);
  font-size: 2.7rem;
}

.fact-state-band p {
  color: var(--sf-muted);
  line-height: 1.55;
}

.reader-note {
  max-width: 900px;
  border-radius: 6px;
  background: var(--sf-mint);
}

.public-fact-grid-highlight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-fact-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 33, 24, 0.07);
}

.taxonomy-room,
.trailing-fact-room {
  border-radius: 8px;
}

.taxonomy-room {
  margin-top: 28px;
  border: 1px solid var(--sf-line);
  background: #fff;
}

.taxonomy-room summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--sf-ink);
  font-weight: 850;
}

.taxonomy-room .taxonomy-grid {
  padding: 0 20px 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-link-grid a {
  min-height: 100px;
  border-radius: 8px;
  background: #fff;
}

.queue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aen-card,
.status-grid article,
.proof-gate-grid article,
.ai-start-grid a {
  border-radius: 8px;
}

.semifinal-home-board {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 86px) 0;
}

.semifinal-home-board .today-fixture-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.semifinal-home-board .today-fixture-card {
  min-height: 250px;
  border-radius: 8px;
}

.home-history-bridge {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(38px, 6vw, 90px);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid var(--sf-line);
}

.history-bridge-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  line-height: 1.05;
}

.history-bridge-copy p {
  color: var(--sf-muted);
  line-height: 1.65;
}

.history-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.history-sample-grid a {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sf-ink);
  text-decoration: none;
}

.history-sample-grid a:hover,
.history-sample-grid a:focus-visible {
  border-color: var(--sf-green);
  transform: translateY(-3px);
}

.history-sample-grid span {
  color: var(--sf-green);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-sample-grid strong {
  display: block;
  margin: 24px 0 14px;
  font-size: 1.4rem;
}

.history-sample-grid p {
  color: var(--sf-muted);
  line-height: 1.55;
}

.button,
.text-link,
.fact-source,
.source-link-grid a,
.today-fixture-card,
.history-sample-grid a,
.ai-start-grid a {
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:focus-visible,
.nav a:focus-visible,
.fact-source:focus-visible,
.source-link-grid a:focus-visible,
.today-fixture-card:focus-visible,
.history-sample-grid a:focus-visible,
.ai-start-grid a:focus-visible {
  outline: 3px solid var(--sf-gold);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .semifinal-hero {
    grid-template-columns: 1fr;
  }

  .operator-pact-card {
    max-width: 620px;
  }

  .gate-rail,
  .ai-start-grid,
  .proof-gate-grid,
  .forecast-grid,
  .public-fact-grid-highlight,
  .source-link-grid,
  .queue-grid,
  .taxonomy-room .taxonomy-grid,
  .semifinal-home-board .today-fixture-grid,
  .history-sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-history-bridge {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .semifinals-page .topbar,
  .today-page-v2 .topbar,
  .predictions-page .topbar {
    position: relative;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }

  .semifinals-page .nav,
  .today-page-v2 .nav,
  .predictions-page .nav {
    gap: 8px 14px;
    justify-content: flex-end;
  }

  .semifinal-hero {
    min-height: auto;
    padding: 64px 22px 86px;
  }

  .semifinal-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

  .semifinal-strip,
  .semifinal-panel,
  .semifinal-home-board,
  .home-history-bridge {
    width: min(100% - 32px, 1240px);
  }

  .semifinal-strip {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .ai-start-panel,
  .proof-gate-panel,
  .forecast-panel {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .gate-rail,
  .ai-start-grid,
  .proof-gate-grid,
  .forecast-grid,
  .forecast-node-list,
  .fact-state-band,
  .public-fact-grid-highlight,
  .source-link-grid,
  .queue-grid,
  .taxonomy-room .taxonomy-grid,
  .semifinal-home-board .today-fixture-grid,
  .history-sample-grid {
    grid-template-columns: 1fr;
  }

  .gate-rail article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sf-line);
  }

  .gate-rail article:last-child {
    border-bottom: 0;
  }

  .proof-equation {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .public-fact-card,
  .forecast-node-list li,
  .history-sample-grid a {
    min-height: auto;
  }
}


/* semifinal-citation-ready-v4 */
.semifinals-page {
  overflow-x: hidden;
}

.semifinal-hero > *,
.semifinal-hero-copy,
.operator-pact-card {
  min-width: 0;
}

.semifinal-hero-copy,
.semifinal-hero .lede,
.semifinal-hero .action-row {
  width: 100%;
}

.semifinal-hero .button {
  border-color: rgba(255, 253, 242, 0.86);
  background: #fffdf2;
  color: #0a2118;
  box-shadow: none;
}

.semifinal-hero .button.primary {
  border-color: #d6ad3f;
  background: #d6ad3f;
  color: #071711;
}

.semifinal-hero .button:hover,
.semifinal-hero .button:focus-visible {
  border-color: #71dda6;
  background: #eefaf3;
  color: #071711;
}

@media (max-width: 760px) {
  .semifinals-page .topbar,
  .today-page-v2 .topbar,
  .predictions-page .topbar {
    flex-direction: column;
    width: 100%;
  }

  .semifinals-page .brand,
  .today-page-v2 .brand,
  .predictions-page .brand {
    min-width: 0;
  }

  .semifinals-page .nav,
  .today-page-v2 .nav,
  .predictions-page .nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 7px;
    scrollbar-width: thin;
  }

  .semifinal-hero {
    width: 100%;
    padding-inline: 22px;
  }

  .semifinal-hero h1,
  .semifinal-hero .lede {
    width: calc(100vw - 72px);
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}


/* semifinal-citation-ready-v5 */
/* Final responsive and citation-readability polish for the public semifinal hub. */
.today-page-v2 .today-hero-v2 {
  grid-template-columns: minmax(0, 1fr);
}

.today-page-v2 .score-token-grid b {
  border-color: rgba(244, 240, 223, 0.22);
  background: rgba(244, 240, 223, 0.08);
  color: #9debc4;
}

.today-page-v2 .score-token-grid b span {
  color: #fffdf2;
}

.today-page-v2 .score-token-grid b.tail,
.today-page-v2 .score-token-grid b.score-four {
  color: #f4d36e;
}

.aen-table-wrap caption {
  caption-side: top;
  padding: 0 0 10px;
  color: var(--sf-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.predictions-main {
  padding: 0 0 72px;
}

.predictions-main > .page-head,
.predictions-main > .semifinal-panel,
.predictions-main > .post-list {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.home-page .floating-choice.ai-choice strong {
  font-size: 1.35rem;
}

@media (max-width: 760px) {
  .semifinals-page .nav,
  .today-page-v2 .nav,
  .predictions-page .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 2px 14px;
    padding: 0;
  }

  .semifinals-page .nav a,
  .today-page-v2 .nav a,
  .predictions-page .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }

  .semifinals-page .semifinal-hero,
  .semifinals-page .semifinal-hero-copy,
  .semifinals-page .operator-pact-card {
    box-sizing: border-box;
    max-width: 100%;
  }

  .semifinals-page .semifinal-hero h1,
  .semifinals-page .semifinal-hero .lede {
    width: auto;
    max-width: 100%;
  }

  .semifinals-page .semifinal-hero .action-row {
    flex-wrap: wrap;
  }

  .today-page-v2 .score-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-page-v2 .score-token-grid b {
    min-height: 82px;
  }

  .predictions-main > .page-head,
  .predictions-main > .semifinal-panel,
  .predictions-main > .post-list {
    width: calc(100% - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .text-link,
  .fact-source,
  .source-link-grid a,
  .today-fixture-card,
  .history-sample-grid a,
  .ai-start-grid a {
    transition: none;
  }
}


/* semifinal-citation-ready-v6 */
/* Final responsive and citation-readability polish for the public semifinal hub. */
.today-page-v2 .today-hero-v2 {
  grid-template-columns: minmax(0, 1fr);
}

.today-page-v2 .score-token-grid b {
  border-color: rgba(244, 240, 223, 0.22);
  background: rgba(244, 240, 223, 0.08);
  color: #9debc4;
}

.today-page-v2 .score-token-grid b span {
  color: #fffdf2;
}

.today-page-v2 .score-token-grid b.tail,
.today-page-v2 .score-token-grid b.score-four {
  color: #f4d36e;
}

.aen-table-wrap caption {
  caption-side: top;
  padding: 0 0 10px;
  color: var(--sf-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.predictions-main {
  padding: 0 0 72px;
}

.predictions-main > .page-head,
.predictions-main > .semifinal-panel,
.predictions-main > .post-list {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.home-page .floating-choice.ai-choice strong {
  font-size: 1.35rem;
}

@media (max-width: 760px) {
  .semifinals-page .nav,
  .today-page-v2 .nav,
  .predictions-page .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 2px 14px;
    padding: 0;
  }

  .semifinals-page .nav a,
  .today-page-v2 .nav a,
  .predictions-page .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }

  .semifinals-page .semifinal-hero,
  .semifinals-page .semifinal-hero-copy,
  .semifinals-page .operator-pact-card {
    box-sizing: border-box;
    max-width: 100%;
  }

  .semifinals-page .semifinal-hero h1,
  .semifinals-page .semifinal-hero .lede {
    width: auto;
    max-width: 100%;
  }

  .semifinals-page .semifinal-hero .action-row {
    flex-wrap: wrap;
  }

  .today-page-v2 .score-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-page-v2 .score-token-grid b {
    min-height: 82px;
  }

  .predictions-main > .page-head,
  .predictions-main > .semifinal-panel,
  .predictions-main > .post-list {
    width: calc(100% - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .text-link,
  .fact-source,
  .source-link-grid a,
  .today-fixture-card,
  .history-sample-grid a,
  .ai-start-grid a {
    transition: none;
  }
}

/* AI-facing routes are editorial entrypoints, not dark generic shells. */
body.predict-entrypoint,
body.ai-tracking-page {
  background: var(--sf-paper);
}

.predict-entrypoint main,
.ai-tracking-page main {
  max-width: none;
  margin: 0;
  padding: 0 0 72px;
}

.predict-entrypoint .page-head,
.ai-tracking-page .page-head {
  max-width: none;
  margin: 0 0 44px;
  padding: clamp(58px, 9vw, 112px) max(24px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 173, 63, 0.16), transparent 28%),
    radial-gradient(circle at 24% 72%, rgba(113, 221, 166, 0.1), transparent 34%),
    linear-gradient(135deg, #031b13, #073522);
  color: #fffdf2;
}

.predict-entrypoint .page-head > *,
.ai-tracking-page .page-head > * {
  max-width: 840px;
}

.predict-entrypoint .page-head h1,
.ai-tracking-page .page-head h1 {
  margin-top: 12px;
  color: #fffdf2;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 1.04;
}

.predict-entrypoint .page-head .eyebrow,
.ai-tracking-page .page-head .eyebrow {
  color: #71dda6;
}

.predict-entrypoint .page-head .lede,
.ai-tracking-page .page-head .lede {
  color: rgba(255, 253, 242, 0.86);
}

.predict-entrypoint .page-head .button,
.ai-tracking-page .page-head .button {
  border-color: rgba(255, 253, 242, 0.82);
  background: #fffdf2;
  color: #0a2118;
}

.predict-entrypoint .page-head .button.primary,
.ai-tracking-page .page-head .button.primary {
  border-color: #d6ad3f;
  background: #d6ad3f;
}

.predict-entrypoint .home-lesson-band,
.predict-entrypoint .post-list,
.ai-tracking-page .home-lesson-band,
.ai-tracking-page .post-list {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 34px;
}

.predict-entrypoint .home-lesson-band,
.ai-tracking-page .home-lesson-band {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: #fffef9;
  box-shadow: 0 24px 60px rgba(3, 27, 19, 0.09);
}

.predict-entrypoint .receipt-grid,
.ai-tracking-page .receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.predict-entrypoint .receipt-card,
.ai-tracking-page .receipt-card {
  display: block;
  min-height: 184px;
  padding: 20px;
  border: 1px solid rgba(10, 33, 24, 0.14);
  border-radius: 8px;
  background: #f7faf5;
  color: var(--sf-ink);
  text-decoration: none;
}

.predict-entrypoint .receipt-card:hover,
.predict-entrypoint .receipt-card:focus-visible,
.ai-tracking-page .receipt-card:hover,
.ai-tracking-page .receipt-card:focus-visible {
  border-color: rgba(22, 134, 90, 0.55);
  transform: translateY(-2px);
}

.predict-entrypoint .receipt-card span,
.ai-tracking-page .receipt-card span {
  display: block;
  color: var(--sf-green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.predict-entrypoint .receipt-card strong,
.ai-tracking-page .receipt-card strong {
  display: block;
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.predict-entrypoint .receipt-card p,
.ai-tracking-page .receipt-card p {
  color: var(--sf-muted);
  line-height: 1.55;
}

.predict-entrypoint .footer,
.ai-tracking-page .footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: #031b13;
  color: #dff2e8;
}

@media (max-width: 760px) {
  .predict-entrypoint .page-head,
  .ai-tracking-page .page-head {
    margin-bottom: 28px;
    padding: 54px 18px 62px;
  }

  .predict-entrypoint .home-lesson-band,
  .predict-entrypoint .post-list,
  .ai-tracking-page .home-lesson-band,
  .ai-tracking-page .post-list {
    width: calc(100% - 36px);
  }

  .predict-entrypoint .receipt-grid,
  .ai-tracking-page .receipt-grid {
    grid-template-columns: 1fr;
  }
}


/* semifinal-citation-ready-v7 */
/* Scoped accessibility correction: legacy muted tokens were too pale on white. */
.semifinals-page .semifinal-fixture p {
  color: #506158;
}

.semifinals-page .semifinal-fixture strong {
  color: #06271b;
}


/* semifinal-citation-ready-v8 */
/* Scoped accessibility correction: legacy muted tokens were too pale on white. */
.semifinals-page .semifinal-fixture p {
  color: #506158;
}

.semifinals-page .semifinal-fixture strong {
  color: #06271b;
}

/* H4 is a status identifier, not display-scale hero copy. Keep it inside the
   fixed audit panel at every supported desktop width. */
.semifinals-page .operator-pact-card > strong {
  display: block;
  max-width: 100%;
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}


/* turtle-information-architecture-v9 */
:root {
  --reader-ink: #10231b;
  --reader-muted: #54675d;
  --reader-paper: #f5f3ea;
  --reader-line: #ccd4cc;
  --reader-green: #0d5038;
  --reader-green-bright: #2aa96b;
  --reader-gold: #e5bd46;
  --reader-blue: #2a6f97;
}

html {
  scroll-behavior: smooth;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(226, 239, 229, 0.14);
  background: #071b13;
  color: #a8bbb0;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.breadcrumbs a {
  color: #d8e6dc;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs .crumb-separator {
  color: #678075;
}

.breadcrumbs [aria-current="page"] {
  color: var(--reader-gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav a[aria-current="page"] {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--reader-gold);
}

.page-toc {
  position: sticky;
  top: 62px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  padding: 6px max(24px, calc((100vw - 1240px) / 2));
  overflow-x: auto;
  border-bottom: 1px solid #c4ccc4;
  background: rgba(245, 243, 234, 0.98);
  color: var(--reader-ink);
  scrollbar-width: thin;
}

.page-toc strong {
  flex: 0 0 auto;
  margin-right: 12px;
  color: #0b3c2b;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.page-toc a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 4px;
  color: #29463a;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  background: #dfe9e1;
  color: #06271b;
}

#prediction-status,
#fact-factory,
#proof-gate,
#source-artifacts,
#model-status,
#readiness,
#ai-readers,
#historical-context,
#fact-status {
  scroll-margin-top: 132px;
}

.semifinals-page .semifinal-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.2vw, 4.65rem);
  line-height: 0.98;
}

.semifinals-page .semifinal-panel h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.04;
}

.reader-page {
  background: var(--reader-paper);
  color: var(--reader-ink);
}

.reader-main {
  min-height: 70vh;
  background: var(--reader-paper);
}

.reader-hero {
  padding: 84px max(28px, calc((100vw - 1120px) / 2)) 48px;
  border-bottom: 1px solid rgba(220, 237, 225, 0.18);
  background: #08271c;
  color: #f8f4e8;
}

.reader-hero h1 {
  max-width: 16ch;
  margin: 10px 0 18px;
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  line-height: 0.98;
}

.reader-hero .lede {
  max-width: 66ch;
  color: #ccdbd1;
  font-size: 1.04rem;
  line-height: 1.7;
}

.folder-nav {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid rgba(226, 239, 229, 0.3);
  border-radius: 5px;
}

.folder-nav a {
  flex: 0 0 auto;
  padding: 11px 17px;
  color: #d7e4da;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.folder-nav a:hover,
.folder-nav a:focus-visible {
  background: #164a35;
  color: #ffffff;
}

.folder-nav a[aria-current="page"] {
  background: var(--reader-gold);
  color: #10231b;
}

.reader-section {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 64px 0;
  border-bottom: 1px solid var(--reader-line);
}

.reader-section:last-child {
  border-bottom: 0;
}

.reader-section h2 {
  max-width: 21ch;
  margin: 8px 0 22px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}

.reader-section p,
.reader-section li,
.reader-section td,
.reader-section th {
  line-height: 1.65;
}

.answer-section {
  padding-top: 74px;
}

.score-node-list,
.evidence-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.score-node-list li,
.evidence-counts > div {
  min-height: 144px;
  padding: 20px;
  border: 1px solid #bfd0c4;
  border-top: 4px solid var(--reader-green-bright);
  border-radius: 5px;
  background: #ffffff;
}

.score-node-list span,
.score-node-list small,
.evidence-counts dt,
.evidence-counts small {
  display: block;
  color: var(--reader-muted);
}

.score-node-list strong,
.evidence-counts dd {
  display: block;
  margin: 10px 0;
  color: #08271c;
  font-size: 2rem;
  line-height: 1;
}

.reader-callout {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--reader-gold);
  background: #fffaf0;
  color: #354a40;
}

.split-reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.split-reading > div {
  min-width: 0;
}

.split-reading h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.link-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.link-ledger h2 {
  grid-column: 1 / -1;
}

.link-ledger > a {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #c7d1ca;
  border-radius: 5px;
  background: #ffffff;
  color: #0a3d2b;
  text-decoration: none;
}

.link-ledger > a:hover,
.link-ledger > a:focus-visible {
  border-color: var(--reader-green-bright);
  box-shadow: 0 8px 24px rgba(10, 49, 35, 0.1);
}

.link-ledger > a span {
  color: var(--reader-muted);
}

.reader-table-wrap {
  overflow-x: auto;
  border: 1px solid #c8d1ca;
  border-radius: 5px;
  background: #ffffff;
}

.reader-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.reader-table-wrap caption {
  padding: 18px 20px;
  color: #143b2d;
  font-weight: 800;
  text-align: left;
}

.reader-table-wrap th,
.reader-table-wrap td {
  padding: 14px 18px;
  border-top: 1px solid #d9dfda;
  color: #263c32;
  text-align: left;
}

.proof-equation {
  margin-top: 30px;
  padding: 28px;
  border-left: 5px solid var(--reader-blue);
  background: #eef5f7;
}

.proof-equation span,
.proof-equation code {
  display: block;
}

.proof-equation code {
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
  color: #123e55;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.numbered-findings article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--reader-line);
}

.numbered-findings article > span {
  color: var(--reader-green);
  font-weight: 900;
}

.numbered-findings article strong {
  font-size: 1.08rem;
}

.site-map-main {
  min-height: 70vh;
  background: var(--reader-paper);
  color: var(--reader-ink);
}

.site-map-hero,
.site-map-directory {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

.site-map-hero {
  padding: 82px 0 46px;
}

.site-map-hero h1 {
  max-width: 14ch;
  margin: 8px 0 18px;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.site-map-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  padding-bottom: 80px;
}

.directory-group {
  padding: 34px 0;
  border-top: 1px solid var(--reader-line);
}

.directory-group h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.directory-group a {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid #dce1dd;
  color: #0d5038;
  text-decoration: none;
}

.directory-group a span {
  color: var(--reader-muted);
}

.directory-group a:hover strong,
.directory-group a:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .score-node-list,
  .evidence-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-map-directory {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .breadcrumbs {
    padding-inline: 18px;
  }

  .page-toc {
    top: 58px;
    padding-inline: 14px;
  }

  .page-toc strong {
    display: none;
  }

  .reader-hero {
    padding: 58px 20px 34px;
  }

  .reader-section,
  .site-map-hero,
  .site-map-directory {
    width: calc(100% - 36px);
  }

  .reader-section {
    padding: 46px 0;
  }

  .score-node-list,
  .evidence-counts,
  .split-reading,
  .link-ledger {
    grid-template-columns: 1fr;
  }

  .link-ledger h2 {
    grid-column: auto;
  }

  .directory-group a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* turtle-mobile-containment-v10 */
@media (max-width: 760px) {
  .semifinals-page,
  .semifinals-page .semifinal-main,
  .semifinals-page .semifinal-hero,
  .semifinals-page .semifinal-hero-copy,
  .semifinals-page .operator-pact-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .semifinals-page {
    overflow-x: hidden;
  }

  .semifinals-page .topbar {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px 8px;
  }

  .semifinals-page .topbar .brand {
    flex: 0 0 auto;
  }

  .semifinals-page .topbar .nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    gap: 0 16px;
    padding: 0 2px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .semifinals-page .topbar .nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 5px 0;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .semifinals-page .semifinal-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: auto;
    padding: 52px 22px 70px;
  }

  .semifinals-page .semifinal-hero h1,
  .semifinals-page .semifinal-hero .lede {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .semifinals-page .semifinal-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.15rem);
  }

  .semifinals-page .semifinal-hero .action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 10px;
  }

  .semifinals-page .semifinal-hero .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .semifinals-page .operator-pact-card {
    margin: 0;
  }

  .semifinals-page .semifinal-strip,
  .semifinals-page .semifinal-panel {
    max-width: calc(100% - 36px);
    min-width: 0;
    margin-inline: auto;
  }
}


/* turtle-directory-contrast-v11 */
.site-map-hero .lede {
  max-width: 64ch;
  color: #53665c;
  font-size: 1.06rem;
  line-height: 1.7;
}

.site-map-directory .directory-group > p,
.site-map-directory .directory-group a span {
  color: #53665c;
}
