/* Fan2Play — Sandstone Matchday Editorial
   Built on Factory V9 selection: Light Color 004 + Typography 016 + Layout 024 + Menu 057 + Homepage 146 + CTA 009
   Tokens, layout, typography, components — all in one self-hosted file. */

:root {
  --primary: #B64B28;
  --primary-ink: #8E371A;
  --accent: #0B6E69;
  --accent-ink: #074B47;
  --background: #FFF8F2;
  --surface: #FFFFFF;
  --surface-alt: #FCE8D7;
  --surface-deep: #F5DDC4;
  --text: #312019;
  --text-soft: #46382D;
  --muted: #745D50;
  --border: #EBCDBA;
  --border-strong: #D9A57D;
  --warn: #A2430B;
  --ok: #0B6E69;
  --shadow-soft: 0 1px 0 rgba(49, 32, 25, 0.04), 0 6px 24px -12px rgba(49, 32, 25, 0.12);
  --shadow-paper: 0 1px 0 rgba(49, 32, 25, 0.06), 0 18px 40px -28px rgba(49, 32, 25, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;
  --section-index-h: 44px;
  --font-sans: "Poppins", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Noto Sans Devanagari", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --font-deva: "Noto Sans Devanagari", "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 96px;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--primary-ink);
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 30px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -200px;
  top: 8px;
  background: var(--text);
  color: var(--background);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 999;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.container--narrow {
  width: min(100% - 32px, var(--container-narrow));
  margin: 0 auto;
}

.container--wide {
  width: min(100% - 32px, 1380px);
  margin: 0 auto;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.primary-nav a:hover {
  background: var(--surface-alt);
  color: var(--primary-ink);
}

.primary-nav a.is-active {
  color: var(--primary);
  background: var(--surface-alt);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--primary-ink);
  border-color: var(--primary-ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn--solid-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--solid-accent:hover {
  background: var(--accent-ink);
  color: #fff;
}

.btn--small {
  padding: 9px 14px;
  font-size: 14px;
}

.btn--large {
  padding: 14px 22px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

.hamburger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 300;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ MOBILE DRAWER ============ */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 0;
  background: var(--background);
  z-index: 220;
  padding: calc(var(--header-h) + 16px) 24px 120px;
  display: none;
  overflow-y: auto;
}

.mobile-drawer[data-open="true"] {
  display: block;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer nav a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer nav a:hover {
  color: var(--primary);
}

.mobile-drawer .drawer-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(49, 32, 25, 0.45);
  z-index: 200;
  display: none;
}

.scrim[data-open="true"] {
  display: block;
}

/* ============ HERO / DISPATCH ============ */
.dispatch {
  background: var(--background);
  padding: var(--space-7) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.dispatch__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.dispatch__index {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dispatch__index h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

.dispatch__index ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ledger;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dispatch__index li {
  counter-increment: ledger;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.dispatch__index li::before {
  content: counter(ledger, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--text);
  color: var(--background);
  padding: 4px 0;
  border-radius: 6px;
  text-align: center;
  align-self: start;
}

.dispatch__index li strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.dispatch__index li span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.dispatch__hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dispatch__hero-img {
  aspect-ratio: 16/10;
  background: var(--surface-deep);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.dispatch__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.dispatch__chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 248, 242, 0.94);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.dispatch__body {
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dispatch__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.dispatch__hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.dispatch__lede {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0;
  max-width: 56ch;
}

.dispatch__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dispatch__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dispatch__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-3);
}

.dispatch__rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.rail-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.rail-tile__img {
  aspect-ratio: 4/3;
  background: var(--surface-deep);
  overflow: hidden;
}

.rail-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-tile__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-tile__body h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.25;
}

.rail-tile__body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ============ SECTION INDEX (sticky in-page) ============ */
.section-index {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: rgba(255, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.section-index__inner {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--section-index-h);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.section-index__inner::-webkit-scrollbar {
  display: none;
}

.section-index__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-right: 8px;
  white-space: nowrap;
}

.section-index a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}

.section-index a:hover {
  background: var(--surface-alt);
  color: var(--primary-ink);
}

.section-index a .ix-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

/* ============ GENERIC SECTIONS ============ */
.section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
}

.section--alt {
  background: var(--surface-alt);
}

.section--surface {
  background: var(--surface);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  max-width: 760px;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section__eyebrow .ix-num {
  background: var(--text);
  color: var(--background);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.section__head h2 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -0.02em;
}

.section__head p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

/* ============ EDITORIAL INDEX (cards grid) ============ */
.editorial-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.editorial-index--2 {
  grid-template-columns: repeat(2, 1fr);
}

.index-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.index-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.index-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
}

.index-card__num span {
  color: var(--muted);
  margin-left: 8px;
  font-weight: 500;
}

.index-card h3 {
  font-size: 20px;
  margin: 0;
  line-height: 1.25;
}

.index-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.index-card__cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============ DECISION TABLE ============ */
.decision-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.decision-table__title {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.decision-table__title h3 {
  margin: 0;
  font-size: 18px;
}

.decision-table__title .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.decision-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.decision-table th,
.decision-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.decision-table thead th {
  background: var(--background);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.decision-table tbody tr:nth-child(odd) {
  background: var(--background);
}

.decision-table tbody tr:hover {
  background: var(--surface-alt);
}

.decision-table td strong {
  color: var(--text);
  font-weight: 600;
}

.decision-table td small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ============ LATEST ANALYSIS (3-column with feature) ============ */
.analysis {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
}

.analysis__feature {
  grid-row: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.analysis__feature:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--border-strong);
}

.analysis__feature-img {
  aspect-ratio: 4/3;
  background: var(--surface-deep);
  overflow: hidden;
  position: relative;
}

.analysis__feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analysis__feature-img .chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.analysis__feature-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.analysis__feature-body h3 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}

.analysis__feature-body p {
  color: var(--text-soft);
  margin: 0;
  font-size: 15px;
}

.analysis__feature-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.analysis__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
}

.analysis__card:hover {
  color: inherit;
  text-decoration: none;
  border-color: var(--border-strong);
}

.analysis__card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.analysis__card h3 {
  font-size: 17px;
  margin: 0;
  line-height: 1.3;
}

.analysis__card .meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ EXPERT NOTE ============ */
.expert-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
}

.expert-note__image {
  background: var(--surface-deep);
  min-height: 280px;
  position: relative;
}

.expert-note__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.expert-note__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.expert-note__body .quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.expert-note__body .quote::before {
  content: "“";
  font-size: 56px;
  color: var(--primary);
  line-height: 0;
  margin-right: 6px;
  vertical-align: -16px;
}

.expert-note__body .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.expert-note__body .author strong {
  color: var(--text);
  font-weight: 700;
}

/* ============ TOPIC RAIL ============ */
.topic-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.topic-rail__item {
  padding: var(--space-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  position: relative;
}

.topic-rail__item:nth-child(4n) {
  border-right: none;
}

.topic-rail__item:hover {
  background: var(--surface-alt);
  color: inherit;
  text-decoration: none;
}

.topic-rail__icon {
  width: 36px;
  height: 36px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.topic-rail__item h3 {
  font-size: 18px;
  margin: 0;
}

.topic-rail__item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.topic-rail__item .count {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  margin-top: auto;
}

/* ============ SAFETY DESK ============ */
.safety-desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.safety-desk__intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.safety-desk__intro h3 {
  font-size: 22px;
  margin: 0;
}

.safety-desk__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.safety-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.safety-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.safety-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ============ CLOSING / FINAL CTA ============ */
.closing {
  background: var(--text);
  color: var(--background);
  padding: var(--space-8) 0;
}

.closing__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.closing h2 {
  color: var(--background);
  font-size: 36px;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}

.closing p {
  margin: 0;
  color: rgba(255, 248, 242, 0.85);
  font-size: 17px;
  max-width: 56ch;
}

.closing__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============ COMPLIANCE / TRUST STRIP ============ */
.compliance-strip {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.compliance-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
}

.compliance-strip strong {
  color: var(--text);
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-6);
  font-size: 14px;
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-about p {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-disclosure {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}

.footer-disclosure strong {
  color: var(--text);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}

/* ============ PERSISTENT MOBILE CTA BAR ============ */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 230;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: none;
  box-shadow: 0 -8px 24px -8px rgba(49, 32, 25, 0.15);
}

.mobile-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-cta__inner .btn {
  flex: 1 1 auto;
}

.mobile-cta__close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-strong);
  font-size: 18px;
  display: grid;
  place-items: center;
  color: var(--text);
  flex: 0 0 auto;
}

.mobile-cta__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* ============ ARTICLE / PAGE ============ */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-6);
}

.page-hero__crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.page-hero__crumb a {
  color: var(--primary);
  text-decoration: none;
}

.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-hero__breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-hero__breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-hero__breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--border-strong);
  margin-left: 8px;
}

.page-hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.page-hero__lede {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 64ch;
  margin: 0 0 var(--space-4);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-hero__meta strong {
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
}

.page-hero__cta {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prose {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.prose h2 {
  font-size: 28px;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + var(--section-index-h) + 16px);
}

.prose h3 {
  font-size: 22px;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  scroll-margin-top: calc(var(--header-h) + var(--section-index-h) + 16px);
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose table th,
.prose table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose table thead th {
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.prose table tr:last-child td {
  border-bottom: none;
}

.prose-image {
  margin: var(--space-6) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.prose-image img {
  width: 100%;
  height: auto;
  display: block;
}

.prose-image figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}

.callout--warn {
  border-left-color: var(--warn);
}

.callout__title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
}

.callout--warn .callout__title {
  color: var(--warn);
}

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

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  margin: var(--space-3) 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.related-links a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.related-links a:hover {
  border-color: var(--border-strong);
  color: inherit;
  text-decoration: none;
}

.related-links a span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

.related-links a strong {
  font-size: 16px;
  color: var(--text);
}

/* ============ HUB PAGE LISTING ============ */
.listing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.listing--2 {
  grid-template-columns: repeat(2, 1fr);
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.listing-card:hover {
  border-color: var(--border-strong);
  color: inherit;
  text-decoration: none;
}

.listing-card__img {
  aspect-ratio: 16/10;
  background: var(--surface-deep);
  overflow: hidden;
  position: relative;
}

.listing-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-card__body .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.listing-card__body h3 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}

.listing-card__body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.listing-card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

/* ============ UTILITY SECTIONS ============ */
.kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 8px;
  color: var(--text);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--primary);
}

.tag--accent {
  background: rgba(11, 110, 105, 0.1);
  color: var(--accent);
}

.tag--warn {
  background: rgba(162, 67, 11, 0.1);
  color: var(--warn);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .dispatch__grid {
    grid-template-columns: 1fr 1fr;
  }
  .dispatch__rail {
    grid-column: span 2;
    flex-direction: row;
  }
  .rail-tile {
    flex: 1;
  }
  .editorial-index {
    grid-template-columns: repeat(2, 1fr);
  }
  .analysis {
    grid-template-columns: 1fr 1fr;
  }
  .analysis__feature {
    grid-column: span 2;
    grid-row: auto;
  }
  .topic-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .topic-rail__item:nth-child(2n) {
    border-right: none;
  }
  .topic-rail__item:nth-child(4n) {
    border-right: 1px solid var(--border);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .expert-note {
    grid-template-columns: 1fr;
  }
  .expert-note__image {
    min-height: 220px;
  }
  .closing__inner {
    grid-template-columns: 1fr;
  }
  .related-links {
    grid-template-columns: 1fr 1fr;
  }
  .listing {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding-bottom: 96px;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 20px;
  }
  .dispatch {
    padding: var(--space-5) 0 var(--space-6);
  }
  .dispatch__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .dispatch__hero h1 {
    font-size: 32px;
  }
  .dispatch__rail {
    grid-column: auto;
    flex-direction: column;
  }
  .editorial-index,
  .editorial-index--2 {
    grid-template-columns: 1fr;
  }
  .analysis {
    grid-template-columns: 1fr;
  }
  .analysis__feature {
    grid-column: auto;
  }
  .topic-rail {
    grid-template-columns: 1fr;
  }
  .topic-rail__item {
    border-right: none;
  }
  .safety-desk {
    grid-template-columns: 1fr;
  }
  .safety-desk__cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .related-links {
    grid-template-columns: 1fr;
  }
  .listing {
    grid-template-columns: 1fr;
  }
  .primary-nav {
    display: none;
  }
  .header-cta .btn--ghost {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-cta {
    display: block;
  }
  .section {
    padding: var(--space-6) 0;
  }
  .section-index__label {
    display: none;
  }
  .decision-table {
    overflow-x: auto;
  }
  .decision-table table {
    min-width: 640px;
  }
  .page-hero {
    padding: var(--space-5) 0 var(--space-5);
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .section__head h2 {
    font-size: 26px;
  }
  .closing {
    padding: var(--space-6) 0;
  }
  .closing h2 {
    font-size: 26px;
  }
  .dispatch__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .dispatch__cta .btn {
    width: 100%;
  }
  .prose {
    font-size: 17px;
  }
  .prose-image {
    margin: var(--space-5) 0;
  }
  .breaking {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .brand__tag {
    display: none;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .dispatch__hero h1 {
    font-size: 28px;
  }
  .section__head h2 {
    font-size: 22px;
  }
  .footer-bottom {
    font-size: 10px;
  }
}

/* ============ UTILITY/PRINT ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--section-index-h) + 16px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
