/* SHOATS — Book on the Origins of Athletics and Recognised Sports */
/* Modern aspirational government document                     */

/* ── THEME VARIABLES ──────────────────────────────────────── */

:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #1C3A5E;
  --accent-hover: #264D7A;
  --border: #E2E0DB;
  --border-heavy: #1A1A1A;
  --shadow: rgba(0, 0, 0, 0.06);
  --shadow-strong: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(248, 247, 244, 0.85);
  --ancestral-bg: #F0EDE6;
  --ancestral-border: #C8C2B4;
  --definition-bg: rgba(28, 58, 94, 0.03);
  --figure-bg: #FAFAF8;
  --disputed: #8B2020;
  --code-bg: #F0EDE6;
  --input-bg: #FFFFFF;
  --input-border: #D0CEC8;
}

/* OS-level dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1918;
    --surface: #222120;
    --text: #E0DDD6;
    --text-secondary: #A8A49C;
    --text-muted: #908A82;
    --accent: #6BA3D6;
    --accent-hover: #8BBDE6;
    --border: #33312E;
    --border-heavy: #999;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(26, 25, 24, 0.92);
    --ancestral-bg: #1E1D1A;
    --ancestral-border: #3A3834;
    --definition-bg: rgba(107, 163, 214, 0.06);
    --figure-bg: #1E1D1A;
    --disputed: #D46A6A;
    --code-bg: #24231F;
    --input-bg: #24231F;
    --input-border: #3A3834;
  }

}

/* Explicit light override (toggle or saved preference) */
html[data-theme="light"] {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #1C3A5E;
  --accent-hover: #264D7A;
  --border: #E2E0DB;
  --border-heavy: #1A1A1A;
  --shadow: rgba(0, 0, 0, 0.06);
  --shadow-strong: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(248, 247, 244, 0.85);
  --ancestral-bg: #F0EDE6;
  --ancestral-border: #C8C2B4;
  --definition-bg: rgba(28, 58, 94, 0.03);
  --figure-bg: #FAFAF8;
  --disputed: #8B2020;
  --code-bg: #F0EDE6;
  --input-bg: #FFFFFF;
  --input-border: #D0CEC8;
}

/* Explicit dark override (toggle or saved preference) */
html[data-theme="dark"] {
  --bg: #1A1918;
  --surface: #222120;
  --text: #E0DDD6;
  --text-secondary: #A8A49C;
  --text-muted: #908A82;
  --accent: #6BA3D6;
  --accent-hover: #8BBDE6;
  --border: #33312E;
  --border-heavy: #999;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(26, 25, 24, 0.92);
  --ancestral-bg: #1E1D1A;
  --ancestral-border: #3A3834;
  --definition-bg: rgba(107, 163, 214, 0.06);
  --figure-bg: #1E1D1A;
  --disputed: #D46A6A;
  --code-bg: #24231F;
  --input-bg: #24231F;
  --input-border: #3A3834;
}


/* ── RESET / BASE ─────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}


/* ── NAVIGATION ───────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}


.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 1rem;
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.nav-wordmark {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--border);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  cursor: pointer;
  margin-left: auto;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}

.nav-hamburger::before,
.nav-hamburger::after,
.nav-hamburger .ham-line {
  content: '';
  display: block;
  position: absolute;
  left: 7px;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger::before { top: 9px; }
.nav-hamburger .ham-line { top: 17px; }
.nav-hamburger::after { top: 25px; }

.nav-hamburger.open::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger.open .ham-line {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Dark mode toggle */
.dark-toggle {
  cursor: pointer;
  margin-left: 0.8rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.dark-toggle:hover {
  background: var(--border);
}

/* Default icon: moon (implies light mode, click to go dark) */
/* \FE0E forces text presentation — prevents coloured emoji rendering on iOS */
.dark-toggle::before {
  content: "\25D1\FE0E";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
}

/* OS dark: show sun by default */
@media (prefers-color-scheme: dark) {
  .dark-toggle::before {
    content: "\2600\FE0E";
  }
}

/* Explicit overrides from data-theme */
html[data-theme="dark"] .dark-toggle::before {
  content: "\2600\FE0E";
}

html[data-theme="light"] .dark-toggle::before {
  content: "\25D1\FE0E";
}


/* ── LAYOUT ───────────────────────────────────────────────── */

.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem;
}


/* ── LANDING PAGE ─────────────────────────────────────────── */

.landing-section {
  padding: 10vh 2.5rem;
}

.landing-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Hero gets the most room — it's the opening statement */
.landing-section.hero {
  padding: 18vh 2.5rem 14vh;
  text-align: center;
}

/* Foreword: short, centered, a bit more dramatic */
.landing-section.foreword {
  padding: 12vh 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.landing-section .section-label {
  font-size: 0.78rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.landing-section.foreword p {
  font-size: 1.3rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

/* Introduction: longer content, tighter rhythm */
.landing-section.intro {
  padding: 10vh 2.5rem;
  border-top: 1px solid var(--border);
}

.landing-section.intro p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin: 0 0 1.25rem;
}

/* Pull quote: dramatic pause, subtle background shift */
.landing-section.pull-quote-section {
  padding: 14vh 2.5rem;
  text-align: center;
  background: var(--ancestral-bg);
}

.landing-section .pull-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 2.2rem;
}

/* Intro continued: after the pull quote */
.landing-section.intro-continued {
  padding: 10vh 2.5rem;
  border-top: 1px solid var(--border);
}

.landing-section.intro-continued p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin: 0 0 1.25rem;
}

.closing-line {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2.5rem;
  color: var(--text);
}

/* CTA: final beat */
.landing-section.cta-section {
  padding: 5vh 2.5rem 10vh;
  text-align: center;
}


/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  padding: 10rem 0 5rem;
  text-align: center;
}

.hero-wordmark {
  display: block;
  height: 60px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}


/* ── SECTION PROSE ────────────────────────────────────────── */

.prose {
  padding: 4rem 0;
}

.prose + .prose {
  border-top: 1px solid var(--border);
}

.prose h2 {
  font-size: 0.78rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.prose p {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  line-height: 1.85;
}

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


/* ── PULL QUOTE ───────────────────────────────────────────── */

.pull-quote {
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent);
  text-align: center;
  margin: 3.5rem 0;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


/* ── CTA LINK ─────────────────────────────────────────────── */

.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-link {
  display: inline-block;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--surface);
  background: var(--accent);
  padding: 1.2rem 3.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cta-link:hover {
  background: var(--accent-hover);
  color: var(--surface);
  transform: translateY(-1px);
}

.cta-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.05em;
}


/* ── PAGE HEADER (section pages) ──────────────────────────── */

.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.page-header .page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-header .doc-ref {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ── BOARS document title block (taxonomy page only) ────────── */

.doc-title-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 2rem 1rem;
  margin-bottom: 2.5rem;
  background: var(--ancestral-bg);
}

.doc-title-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.doc-title-name {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0;
}

.doc-title-abbr {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
}


/* ── TAXONOMY SIDENAV ─────────────────────────────────────── */

.taxonomy-sidenav,
.glossary-sidenav {
  display: none;
}

/* Wide screens: fixed sidebar to the left of content-narrow */
@media (min-width: 1200px) {
  .taxonomy-sidenav,
  .glossary-sidenav {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: calc(50% - 560px);
    width: 130px;
    z-index: 50;
  }

  .taxonomy-sidenav ul,
  .glossary-sidenav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .taxonomy-sidenav a,
  .glossary-sidenav a {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.4;
  }

  .taxonomy-sidenav a:hover,
  .glossary-sidenav a:hover {
    color: var(--text);
  }

  .taxonomy-sidenav a.active,
  .glossary-sidenav a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 700;
  }

  .glossary-sidenav {
    width: 148px;
    left: calc(50% - 574px);
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .glossary-sidenav::-webkit-scrollbar { display: none; }
}

/* Narrow screens: sticky horizontal strip */
@media (max-width: 1199px) {
  .taxonomy-sidenav,
  .glossary-sidenav {
    display: block;
    position: sticky;
    top: 57px;
    z-index: 90;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .taxonomy-sidenav::-webkit-scrollbar,
  .glossary-sidenav::-webkit-scrollbar { display: none; }

  .taxonomy-sidenav ul,
  .glossary-sidenav ul {
    list-style: none;
    margin: 0;
    padding: 0 1.25rem;
    display: flex;
    gap: 0;
    white-space: nowrap;
    width: max-content;
  }

  .taxonomy-sidenav a,
  .glossary-sidenav a {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.65rem 0.85rem calc(0.65rem - 2px);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .taxonomy-sidenav a:hover,
  .glossary-sidenav a:hover {
    color: var(--text);
  }

  .taxonomy-sidenav a.active,
  .glossary-sidenav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
  }
}


/* ── SPORT SECTIONS (taxonomy page) ──────────────────────── */

.sport-section {
  padding: 5rem 0;
  border-top: 2px solid var(--border);
}

.sport-section:first-of-type {
  border-top: none;
}

.section-number {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sport-section h2 {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 0.25rem;
  line-height: 1.1;
}

.sport-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 1rem;
}


/* ── SVG FIGURES ──────────────────────────────────────────── */

figure {
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-heavy);
  background: var(--figure-bg);
  border-radius: 0 0 8px 8px;
  padding: 2rem 2rem 1rem;
  box-shadow: 0 1px 6px var(--shadow);
}

figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.callout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 2rem;
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 0 0;
  border-top: 1px dashed var(--border);
}

.callout-legend div {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.callout-legend dt {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--text-secondary);
}

.callout-legend dd {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--text-secondary);
}

figcaption {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.6rem 0 0.2rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* Invert SVG diagrams and seal (black-on-transparent) in dark mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) figure svg,
  html:not([data-theme="light"]) .nav-logo-img,
  html:not([data-theme="light"]) .nav-wordmark,
  html:not([data-theme="light"]) .hero-wordmark,
  html:not([data-theme="light"]) .about-wordmark,
  html:not([data-theme="light"]) .page-seal {
    filter: invert(1);
  }
}

html[data-theme="dark"] figure svg,
html[data-theme="dark"] .nav-logo-img,
html[data-theme="dark"] .nav-wordmark,
html[data-theme="dark"] .hero-wordmark,
html[data-theme="dark"] .about-wordmark,
html[data-theme="dark"] .page-seal {
  filter: invert(1);
}


/* ── CONTENT BLOCKS ───────────────────────────────────────── */

.definition {
  font-style: italic;
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--definition-bg);
  border-radius: 0 8px 8px 0;
  line-height: 1.85;
  font-size: 1.1rem;
}

.definition .principle {
  display: block;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.88em;
  font-style: normal;
  color: var(--text-secondary);
}

.subsection-label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 3rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.ancestral-variant {
  background: var(--ancestral-bg);
  border: 1px solid var(--ancestral-border);
  border-left: 3px solid var(--text-muted);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.ancestral-variant p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.ancestral-variant p:last-child {
  margin-bottom: 0;
}

ol, ul {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

.disputed li {
  color: var(--disputed);
}


/* ── COMMUNIQUES ──────────────────────────────────────────── */

.communique {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.communique:first-of-type {
  border-top: none;
}

.communique-ref {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.communique-type {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.communique h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.communique p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 0.8rem;
}

.communique-verdict {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  background: var(--ancestral-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  margin-top: 1rem;
}

.verdict-denied {
  border-left-color: var(--disputed);
  color: var(--disputed);
}

.verdict-granted {
  border-left-color: #2D6A4F;
  color: #2D6A4F;
}

.verdict-noted {
  border-left-color: var(--text-muted);
  color: var(--text-secondary);
}


/* ── GLOSSARY ─────────────────────────────────────────────── */

.glossary-entry {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.glossary-entry:first-of-type {
  border-top: none;
}

.glossary-entry dt {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.glossary-entry .pronunciation {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.glossary-entry dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.glossary-entry .see-also {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}


/* ── ABOUT PAGE ───────────────────────────────────────────── */

.about-header {
  border-bottom: none;
  padding: 3.5rem 0 2rem;
}

.page-seal {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 0.5rem;
  opacity: 0.92;
}

.about-wordmark {
  display: block;
  height: 52px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.org-detail {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.page-header + .org-detail {
  border-top: none;
}

.org-detail h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.org-detail p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 0.8rem;
}

.board-member {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.board-member:last-child {
  border-bottom: none;
}

.board-member .name {
  font-weight: 700;
  font-size: 1rem;
}

.board-member .title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-member .note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}


/* ── RECLASSIFICATION FORM ────────────────────────────────── */

.form-section {
  padding: 3rem 0;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  transition: border-color 0.15s;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.form-group-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-group-checkbox .field-error {
  width: 100%;
  margin-top: 0;
}

.form-group-checkbox label {
  display: block;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  line-height: 1.6;
  cursor: pointer;
}

.form-disclaimer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 1.5rem;
  background: var(--ancestral-bg);
  border-radius: 8px;
  margin: 2rem 0;
}

.form-disclaimer p:first-child {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.form-submit {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--surface);
  background: var(--accent);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.field-error {
  font-size: 0.85rem;
  color: var(--disputed);
  margin-top: 0.4rem;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}


/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  line-height: 2.2;
  margin: 0;
}


/* ── SCROLL REVEAL ────────────────────────────────────────── */

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.reveal-ready .reveal {
  opacity: 0;
}

html.reveal-ready .reveal.visible {
  animation: revealIn 0.7s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal.visible {
    animation-duration: 0.3s;
  }
}


/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 640px) {
  .content,
  .content-narrow {
    padding: 0 1.25rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
    position: relative;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 2px;
    margin-left: 0;
    padding: 0.5rem 1.25rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
  }

  .nav-links .dark-toggle {
    margin-left: 0;
    margin-top: 0.25rem;
    padding: 0.6rem 0.5rem;
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding-top: 0.75rem;
  }

  .landing-section {
    padding: 6vh 1.25rem;
  }

  .landing-section.hero {
    padding: 10vh 1.25rem 8vh;
  }

  .landing-section.foreword,
  .landing-section.pull-quote-section,
  .landing-section.cta-section {
    padding: 8vh 1.25rem;
  }

  .landing-section .pull-quote {
    font-size: 1.4rem;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .page-header {
    padding: 5rem 0 2.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .sport-section h2 {
    font-size: 2rem;
  }

  .pull-quote {
    font-size: 1.3rem;
  }

  figure {
    padding: 1rem 1rem 0.75rem;
  }
}
