:root {
  --m102-night: #061b14;
  --m102-night-soft: #0c2b20;
  --m102-pitch: #14583e;
  --m102-mint: #55cb8a;
  --m102-paper: #f4f1e7;
  --m102-white: #fffdf7;
  --m102-ink: #10231b;
  --m102-muted: #5b6b63;
  --m102-line: #cdd7cf;
  --m102-gold: #e2bb4d;
  --m102-england: #b22d3c;
  --m102-argentina: #2f7fa8;
  --m102-shadow: 0 24px 64px rgba(7, 28, 20, 0.12);
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.m102-page {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--m102-paper);
  color: var(--m102-ink);
}

.m102-page .topbar,
.m102-page .breadcrumbs,
.m102-main,
.m102-hero {
  width: 100%;
  max-width: 100%;
}

.m102-page .topbar {
  border-bottom-color: rgba(214, 230, 219, 0.16);
  background: rgba(5, 25, 18, 0.96);
}

.m102-page .brand strong,
.m102-page .topbar nav a {
  color: #f6f2e7;
}

.m102-page .brand small {
  color: #9eb7a8;
}

.m102-page .topbar nav a:hover,
.m102-page .topbar nav a:focus-visible {
  color: #ffffff;
}

main.m102-main {
  padding: 0;
}

.m102-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.m102-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  background: var(--m102-night);
  color: #f9f5e9;
  scroll-margin-top: 92px;
}

.m102-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('/assets/football-lab-hero.webp');
  background-position: center;
  background-size: cover;
  opacity: 0.42;
}

.m102-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(3, 23, 16, 0.76);
  content: '';
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 620px;
  padding-block: 72px;
}

.hero-grid > *,
.hero-copy-block,
.hero-lede {
  min-width: 0;
  max-width: 100%;
}

.m102-kicker {
  margin: 0 0 14px;
  color: var(--m102-mint);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy-block h1 {
  display: grid;
  min-width: 0;
  max-width: 790px;
  margin: 0 0 24px;
  font-size: clamp(3.15rem, 7vw, 6.8rem);
  line-height: 0.85;
}

.hero-copy-block h1 > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-copy-block h1 small {
  margin: 10px 0 11px 4px;
  color: var(--m102-gold);
  font-size: 0.19em;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: #d4e2d8;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.fixture-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 238, 227, 0.22);
  border-radius: 7px;
  background: rgba(221, 238, 227, 0.18);
}

.fixture-strip div {
  min-width: 0;
  padding: 15px 16px;
  background: rgba(4, 29, 20, 0.76);
}

.fixture-strip dt,
.fixture-strip dd {
  margin: 0;
}

.fixture-strip dt {
  margin-bottom: 5px;
  color: #91ad9c;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fixture-strip dd {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.45;
}

.state-panel {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(214, 233, 220, 0.3);
  border-top: 5px solid var(--m102-gold);
  border-radius: 7px;
  background: rgba(5, 31, 22, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.state-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #a9c1b2;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.state-panel h2 {
  max-width: 12ch;
  margin: 24px 0 14px;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 0.98;
}

.state-panel > p {
  color: #c6d8cc;
  line-height: 1.65;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.status-chip.prelock {
  color: var(--m102-gold);
}

.status-chip.pending {
  color: #9a6810;
  background: #fff6dc;
}

.status-chip.ready {
  color: #0f6a43;
  background: #e9f7ee;
}

.status-chip.blocked {
  color: #9b3029;
  background: #fff0ed;
}

.state-truth-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.state-truth-labels span {
  padding: 6px 8px;
  border: 1px solid rgba(226, 187, 77, 0.48);
  border-radius: 4px;
  color: #f2d57c;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.2;
}

.gate-list {
  display: grid;
  gap: 0;
  margin: 28px 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(218, 234, 223, 0.18);
}

.gate-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(218, 234, 223, 0.18);
}

.gate-list li > span {
  color: var(--m102-gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.gate-list strong,
.gate-list small {
  display: block;
}

.gate-list strong {
  color: #f9f5e9;
  font-size: 0.9rem;
}

.gate-list small {
  margin-top: 4px;
  color: #9db3a6;
  line-height: 1.45;
}

.gate-list .ready strong::after {
  margin-left: 8px;
  color: var(--m102-mint);
  content: 'READY';
  font-size: 0.62rem;
}

.state-note {
  margin-bottom: 0;
  padding-top: 2px;
  font-size: 0.78rem;
}

.m102-workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: 60px 88px;
}

nav.m102-toc {
  position: sticky;
  top: 92px;
  z-index: 3;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border: 1px solid #c7d2ca;
  border-top: 4px solid var(--m102-pitch);
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: 0 14px 38px rgba(13, 47, 34, 0.08);
}

.m102-toc details,
.m102-toc summary {
  display: block;
}

.m102-toc summary {
  padding: 18px 18px 13px;
  color: var(--m102-ink);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
}

.m102-toc summary::-webkit-details-marker {
  display: none;
}

.m102-toc summary span {
  display: block;
  margin-top: 4px;
  color: var(--m102-muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: none;
}

.m102-toc ol {
  margin: 0;
  padding: 0 10px 13px;
  list-style: none;
}

.m102-toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 4px;
  color: #40574c;
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}

.m102-toc a:hover,
.m102-toc a:focus-visible {
  background: #e4eee7;
  color: #072c1f;
  outline: none;
}

.m102-document {
  min-width: 0;
}

.m102-section {
  margin-bottom: 30px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--m102-line);
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: var(--m102-shadow);
  scroll-margin-top: 100px;
}

.m102-section.section-light {
  background: #eef3ed;
}

.m102-section.section-dark {
  border-color: #1c5e45;
  background: var(--m102-night-soft);
  color: #f6f2e7;
}

.m102-section.section-paper {
  background-color: #fbf7eb;
  background-image: linear-gradient(#e4ded0 1px, transparent 1px), linear-gradient(90deg, #e4ded0 1px, transparent 1px);
  background-size: 24px 24px;
}

.m102-page .section-heading {
  display: block;
  min-width: 0;
  max-width: 820px;
  margin-bottom: 30px;
}

.m102-page .section-heading > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-heading h2 {
  max-width: 18ch;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.01;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--m102-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.section-dark .section-heading > p:last-child {
  color: #bdd2c5;
}

.team-heading {
  padding-left: 20px;
  border-left: 5px solid;
}

.team-heading.england {
  border-left-color: var(--m102-england);
}

.team-heading.argentina {
  border-left-color: var(--m102-argentina);
}

.fixture-facts {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  align-items: start;
}

.fixture-facts > dl {
  margin: 0;
  border-top: 3px solid var(--m102-pitch);
}

.fixture-facts > dl div {
  padding: 14px 2px;
  border-bottom: 1px solid var(--m102-line);
}

.fixture-facts dt,
.fixture-facts dd {
  margin: 0;
}

.fixture-facts dt {
  margin-bottom: 5px;
  color: var(--m102-muted);
  font-size: 0.69rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fixture-facts dd {
  line-height: 1.5;
}

.table-scroll,
.formula-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll:focus-visible,
.formula-scroll:focus-visible {
  outline: 3px solid var(--m102-gold);
  outline-offset: 3px;
}

.m102-section table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.86rem;
}

.m102-section th,
.m102-section td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--m102-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.m102-section thead th {
  color: #43584d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--m102-line);
  border-radius: 6px;
  background: var(--m102-line);
}

.evidence-meter article {
  min-height: 190px;
  padding: 22px;
  background: #ffffff;
}

.evidence-meter span,
.evidence-meter strong {
  display: block;
}

.evidence-meter span {
  color: var(--m102-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-meter strong {
  margin: 20px 0 12px;
  font-size: 2.2rem;
  line-height: 1;
}

.evidence-meter p {
  margin: 0;
  color: var(--m102-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.plain-callout {
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 4px solid var(--m102-gold);
  background: #fff8e6;
}

.plain-callout p {
  margin: 7px 0 0;
  color: var(--m102-muted);
  line-height: 1.65;
}

.pending-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  border: 1px dashed #aebbb2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.pending-copy h3 {
  margin: 16px 0 8px;
  font-size: 1.3rem;
}

.pending-copy p {
  margin: 0;
  color: var(--m102-muted);
  line-height: 1.65;
}

.artifact-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #bdc9c0;
}

.artifact-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--m102-line);
  font-size: 0.76rem;
}

.artifact-mini-list code {
  overflow-wrap: anywhere;
}

.artifact-mini-list span {
  color: #9a6810;
  font-weight: 900;
}

.artifact-mini-list span.artifact-ready {
  color: #0f6a43;
}

.evidence-panel {
  border-style: solid;
  border-color: #9fc9ad;
  background: #f7fcf8;
}

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

.realm-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--m102-line);
  border-top: 4px solid #b57a13;
  border-radius: 6px;
  background: #ffffff;
}

.realm-card.pass {
  border-top-color: #188455;
}

.realm-card > span,
.realm-card > strong {
  display: block;
}

.realm-card > span {
  color: var(--m102-muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.45;
  text-transform: uppercase;
}

.realm-card > strong {
  margin: 8px 0 18px;
  color: #9a6810;
  font-size: 1.35rem;
}

.realm-card.pass > strong {
  color: #0f6a43;
}

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

.realm-card dl div {
  min-width: 0;
  padding: 10px;
  background: #f1f5f2;
}

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

.realm-card dt {
  color: var(--m102-muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.realm-card dd {
  margin-top: 5px;
  font-weight: 900;
}

.realm-card p {
  margin: 16px 0 0;
  color: var(--m102-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #356a54;
  border-radius: 6px;
}

.pipeline li {
  min-width: 0;
  min-height: 148px;
  padding: 19px;
  border-right: 1px solid #356a54;
}

.pipeline li:last-child {
  border-right: 0;
}

.pipeline span,
.pipeline strong,
.pipeline small {
  display: block;
}

.pipeline span {
  color: var(--m102-gold);
  font-size: 0.7rem;
  font-weight: 900;
}

.pipeline strong {
  margin: 22px 0 9px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.3;
}

.pipeline small {
  color: #8fa99b;
  font-weight: 800;
}

.dark-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid #356a54;
  border-radius: 5px;
}

.dark-note p {
  margin: 0;
  color: #c5d6cc;
  line-height: 1.55;
}

.contradiction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--m102-pitch);
}

.contradiction-grid li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--m102-line);
}

.contradiction-grid li > span {
  color: var(--m102-pitch);
  font-size: 0.7rem;
  font-weight: 900;
}

.contradiction-grid p {
  margin: 0;
  line-height: 1.35;
}

.contradiction-grid strong {
  color: #9a6810;
  font-size: 0.65rem;
}

.section-footnote {
  margin: 22px 0 0;
  color: var(--m102-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.proof-object {
  margin-bottom: 26px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #c9c2b0;
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.92);
}

.formula-scroll {
  padding: 22px;
  border: 1px solid #d8d0bb;
  border-radius: 5px;
  background: #fffdf7;
}

.formula-scroll math {
  min-width: 650px;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.proof-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 24px 0 0;
}

.proof-key div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #d8d0bb;
}

.proof-key dt,
.proof-key dd {
  margin: 0;
}

.proof-key dt {
  color: var(--m102-pitch);
  font-weight: 900;
}

.proof-key dd {
  color: var(--m102-muted);
  line-height: 1.45;
}

.c4-section {
  border-color: #1f6b4b;
  background: #0a2e21;
  color: #f8f4e9;
}

.c4-section .section-heading > p:last-child {
  color: #bfd2c6;
}

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

.hero-c4-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hero-c4-node {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(244, 197, 66, 0.34);
  border-radius: 5px;
  background: rgba(5, 30, 21, 0.72);
}

.hero-c4-node span,
.hero-c4-node strong,
.hero-c4-node small {
  display: block;
}

.hero-c4-node span {
  color: #b7cbbf;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-c4-node strong {
  margin: 9px 0 7px;
  color: #fff9e8;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.hero-c4-node small {
  color: #c7d8ce;
  font-size: 0.73rem;
  line-height: 1.45;
}

.hero-c4-node.fragile,
.empty-node.fragile {
  border-color: var(--m102-gold);
  box-shadow: inset 0 0 0 1px rgba(244, 197, 66, 0.15);
}

.empty-node {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #386b57;
  border-top: 4px solid #8cae9d;
  border-radius: 5px;
  background: #123b2c;
}

.empty-node span,
.empty-node strong {
  display: block;
}

.empty-node span {
  color: #a9c0b2;
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-node strong {
  margin: 38px 0 12px;
  color: var(--m102-gold);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.locked-node strong {
  margin: 24px 0 12px;
  color: #fff9e8;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1;
}

.candidate-locked {
  background: #e4f3e9;
}

.candidate-locked th,
.candidate-locked td:last-child {
  color: #0c5c3b;
  font-weight: 900;
}

.empty-node p {
  margin: 0;
  color: #b8cdc0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.c4-lockline {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #386b57;
  border-radius: 5px;
}

.c4-lockline span {
  color: #a9c0b2;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.c4-lockline strong {
  color: var(--m102-gold);
}

.c4-lockline p {
  margin: 0;
  color: #b8cdc0;
  text-align: right;
}

.release-gate {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #4b7966;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.release-gate-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.release-gate-heading h3,
.release-gate-heading p {
  margin: 0;
}

.release-gate-heading h3 {
  color: #ffffff;
  font-size: 1.15rem;
}

.release-gate-heading p {
  max-width: 72ch;
  margin-top: 6px;
  color: #b8cdc0;
  line-height: 1.55;
}

.release-gate ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: #386b57;
  list-style: none;
}

.release-gate li {
  min-width: 0;
  padding: 18px;
  background: #123b2c;
}

.release-gate li strong,
.release-gate li span {
  display: block;
}

.release-gate li strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.release-gate li span {
  margin-top: 8px;
  color: #b8cdc0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.release-gate code {
  overflow-wrap: anywhere;
  color: #f4d77c;
}

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

.source-link {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--m102-line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--m102-ink);
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  border-color: var(--m102-pitch);
  box-shadow: 0 10px 28px rgba(14, 67, 47, 0.1);
  outline: none;
}

.source-link span,
.source-link strong {
  display: block;
}

.source-link span {
  margin-bottom: 24px;
  color: var(--m102-pitch);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-link strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.source-pending {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--m102-gold);
  background: #fff8e7;
}

.source-pending p {
  margin: 0;
  color: var(--m102-muted);
  line-height: 1.55;
}

.artifact-register {
  margin-top: 20px;
  border: 1px solid var(--m102-line);
  border-radius: 5px;
  background: #ffffff;
}

.artifact-register summary {
  padding: 17px 18px;
  cursor: pointer;
  font-weight: 800;
}

.artifact-register .table-scroll {
  border-top: 1px solid var(--m102-line);
}

.postgame-shell {
  border-style: dashed;
  background: #e9eee8;
}

.postgame-shell.settled {
  border-style: solid;
  border-color: #78a98d;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(90deg, #dbe9df 0, #dbe9df 72px, #cfe0d4 72px, #cfe0d4 144px);
}

.postgame-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 26px 0;
  padding: 26px;
  border: 1px solid #315f48;
  border-radius: 6px;
  background: var(--m102-night);
  color: #f7f4e9;
}

.postgame-scoreboard > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.postgame-scoreboard > div:last-child {
  flex-direction: row-reverse;
}

.postgame-scoreboard span {
  color: #c2d3c8;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.postgame-scoreboard strong {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.8;
}

.postgame-scoreboard p {
  display: grid;
  gap: 5px;
  margin: 0;
  text-align: center;
}

.postgame-scoreboard b {
  color: var(--m102-gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.postgame-scoreboard small {
  color: #dce8df;
  white-space: nowrap;
}

.postgame-verdict-grid,
.postgame-analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 30px;
}

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

.postgame-verdict-grid article,
.postgame-analysis-grid article {
  padding: 20px;
  border: 1px solid var(--m102-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.postgame-verdict-grid span,
.postgame-analysis-grid span {
  color: var(--m102-green);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.postgame-verdict-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--m102-ink);
  font-size: 2rem;
}

.postgame-verdict-grid p,
.postgame-analysis-grid p {
  margin: 10px 0 0;
  color: var(--m102-muted);
  line-height: 1.55;
}

.postgame-analysis-grid h3,
.compact-heading h3 {
  margin: 8px 0 0;
  color: var(--m102-ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.compact-heading {
  margin-top: 34px;
}

.audit-boundary a {
  color: var(--m102-green);
  font-weight: 800;
}

.sealed-panel {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid #bbc7be;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.sealed-panel > span {
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  border: 2px solid #9eaba2;
  border-radius: 50%;
  color: #516359;
  font-weight: 900;
}

.sealed-panel strong {
  color: #9a6810;
}

.sealed-panel p {
  margin: 6px 0 0;
  color: var(--m102-muted);
  line-height: 1.55;
}

.m102-page .footer {
  border-top-color: #29473a;
  background: var(--m102-night);
  color: #a9beb1;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 36px;
  }

  .m102-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }

  .evidence-meter,
  .empty-c4,
  .postgame-verdict-grid,
  .postgame-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pipeline li:nth-child(3) {
    border-right: 0;
  }

  .pipeline li:nth-child(n + 4) {
    border-top: 1px solid #356a54;
  }
}

@media (max-width: 900px) {
  .m102-shell {
    width: min(100% - 36px, 760px);
  }

  .m102-hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 56px;
  }

  .state-panel h2 {
    max-width: 16ch;
  }

  .m102-workspace {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  nav.m102-toc {
    position: relative;
    top: auto;
    max-height: none;
  }

  .m102-toc ol {
    columns: 2;
    column-gap: 12px;
  }

  .m102-toc li {
    break-inside: avoid;
  }

  .fixture-facts,
  .pending-panel,
  .realm-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .m102-page .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px 10px;
  }

  .m102-page .brand {
    width: 100%;
    min-width: auto;
  }

  .m102-page .topbar .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    overflow: hidden;
  }

  .m102-page .topbar .nav a {
    min-width: 0;
    padding: 8px 3px;
    font-size: clamp(0.64rem, 2.8vw, 0.76rem);
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .m102-shell {
    width: calc(100% - 28px);
    max-width: 620px;
  }

  .hero-grid {
    gap: 30px;
    padding-block: 28px 42px;
  }

  .state-panel {
    order: -1;
    width: 100%;
    min-width: 0;
    padding: 20px;
  }

  .state-panel h2 {
    max-width: none;
    margin: 18px 0 10px;
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .state-truth-labels {
    margin-top: 12px;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    min-width: 0;
  }

  .hero-copy-block h1 {
    width: 100%;
    font-size: clamp(2.55rem, 14.5vw, 4.4rem);
    line-height: 0.9;
  }

  .fixture-strip {
    grid-template-columns: 1fr;
  }

  .m102-toc ol {
    columns: 1;
  }

  .m102-section {
    padding: 26px 20px;
  }

  .evidence-meter,
  .empty-c4,
  .proof-key,
  .source-links,
  .release-gate ul,
  .postgame-verdict-grid,
  .postgame-analysis-grid {
    grid-template-columns: 1fr;
  }

  .postgame-scoreboard {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .postgame-scoreboard > div,
  .postgame-scoreboard > div:last-child {
    flex-direction: row;
  }

  .hero-c4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .hero-c4-node {
    padding: 12px;
  }

  .hero-c4-node strong {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .hero-c4-node small {
    font-size: 0.66rem;
  }

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

  .pipeline li,
  .pipeline li:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid #356a54;
  }

  .pipeline li:nth-child(n + 4) {
    border-top: 0;
  }

  .pipeline li:last-child {
    border-bottom: 0;
  }

  .c4-lockline {
    grid-template-columns: 1fr;
  }

  .c4-lockline p {
    text-align: left;
  }

  .source-pending,
  .dark-note,
  .release-gate-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .m102-page .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
