/* Monopoly Live Editorial — V9 FSL11 build (monopolylivein.com) */

:root {
  --primary: #2c7a36;
  --primary-deep: #1f3020;
  --primary-soft: #e6f2df;
  --accent: #b05d00;
  --accent-soft: #f3e4cc;
  --background: #f6fbf3;
  --surface: #ffffff;
  --surface-2: #e6f2df;
  --surface-3: #f0e8d8;
  --ink: #1f3020;
  --text-on-dark: #f4f8f0;
  --muted: #5c705d;
  --muted-on-dark: #b9c8b4;
  --border: #cbe0c4;
  --border-strong: #93b58b;
  --danger: #b13a1e;
  --warning: #c08b1f;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(31, 48, 32, 0.04), 0 8px 24px rgba(31, 48, 32, 0.06);
  --shadow-soft: 0 1px 0 rgba(31, 48, 32, 0.04);
  --content-max: 1180px;
  --content-pad: clamp(20px, 4vw, 40px);
  --section-pad-y: clamp(48px, 7vw, 88px);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 122, 54, 0.45);
  text-decoration-thickness: 1.5px;
}
a:hover { text-decoration-color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; }
p { margin: 0 0 1em; }

/* Skip link */
.skip-link {
  position: fixed;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus { left: 8px; }

/* Layout helpers */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}
.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.section--tight { padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(36px, 5vw, 60px); }
.section--ink { background: var(--primary-deep); color: var(--text-on-dark); }
.section--ink a { color: #c7e0c1; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #f4f8f0; }
.section--soft { background: var(--surface-2); }
.section--white { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 10px;
}
.section--ink .eyebrow { color: #f0c98b; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 251, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-mark__mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: #f6fbf3;
  display: grid; place-items: center;
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 18px;
  border: 1px solid var(--primary-deep);
}
.brand-mark__name { font-size: 17px; line-height: 1; }
.brand-mark__name span { display: block; font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; margin-top: 4px; }

.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.primary-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a:hover { background: var(--surface-2); }
.primary-nav a.is-active { background: var(--primary-soft); color: var(--primary-deep); }
.primary-nav__cta {
  margin-left: 12px;
  background: var(--primary);
  color: #f4f8f0 !important;
  font-weight: 700;
  padding: 10px 16px !important;
}
.primary-nav__cta:hover { background: var(--primary-deep); }
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 60;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: absolute;
  left: 11px;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 76px 22px 24px;
  box-shadow: -20px 0 40px rgba(31, 48, 32, 0.12);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.mobile-drawer__cta {
  margin-top: 18px;
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: #f4f8f0 !important;
  border-radius: var(--radius-pill);
  padding: 14px 22px !important;
  border: 0 !important;
  text-decoration: none !important;
  font-weight: 700;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(31, 48, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 53;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--background) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}
.hero__lead h1 { max-width: 18ch; }
.hero__lede { color: var(--muted); font-size: 18px; max-width: 48ch; margin-top: 16px; }
.hero__facts {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 48ch;
}
.hero__facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.hero__facts strong { color: var(--primary-deep); }
.hero__cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
}
.btn--primary { background: var(--primary); color: #f4f8f0; }
.btn--primary:hover { background: var(--primary-deep); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #8a4700; }
.btn--ghost { background: transparent; color: var(--primary-deep); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--link { background: transparent; color: var(--primary); padding: 12px 0; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn--full { width: 100%; }

.hero__ledger {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero__ledger img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.hero__ledger-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(31, 48, 32, 0.85);
  color: #f4f8f0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.hero__ledger ul {
  list-style: none;
  margin: 0;
  padding: 16px 20px 22px;
  display: grid;
  gap: 12px;
}
.hero__ledger li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  color: var(--ink);
}
.hero__ledger li::before {
  counter-increment: ledger;
  content: counter(ledger, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  padding-top: 2px;
}
.hero__ledger { counter-reset: ledger; }

/* Action rail */
.action-rail {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.action-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.action-rail__list a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  padding: 22px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--border);
  min-height: 168px;
}
.action-rail__list li:last-child a { border-right: 0; }
.action-rail__list a:hover { background: var(--surface-2); }
.action-rail__step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.action-rail__title { font-weight: 700; font-size: 17px; }
.action-rail__ans { color: var(--muted); font-size: 14.5px; }

/* Chapter */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.chapter__body p { max-width: 64ch; }
.chapter__margin {
  border-left: 1px solid var(--border);
  padding: 6px 0 6px 22px;
  display: grid;
  gap: 18px;
}
.chapter__margin h3 { margin: 0 0 4px; font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--primary); }
.chapter__margin ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink); }

/* Annotated media */
.annotated {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.annotated__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.annotated__frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.annotated__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.annotated__pin {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--primary-deep);
  color: #f4f8f0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: 3px solid #f4f8f0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.annotated__legend { display: grid; gap: 14px; }
.annotated__legend h3 { margin: 0 0 4px; font-size: 16px; }
.annotated__legend dl { margin: 0; display: grid; gap: 10px; }
.annotated__legend dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.annotated__legend dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); }

/* Data poster */
.data-poster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 3vw, 48px);
  box-shadow: var(--shadow-card);
}
.data-poster__headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--primary-deep);
}
.data-poster__lede { color: var(--muted); }
.data-poster__note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--primary-deep);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table caption { text-align: left; font-weight: 600; color: var(--primary-deep); margin-bottom: 10px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); background: var(--surface-2); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table-wrap { overflow-x: auto; }

/* Reference list (community questions) */
.reference { display: grid; gap: 12px; }
.reference details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}
.reference summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.reference summary::-webkit-details-marker { display: none; }
.reference summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}
.reference details[open] summary::after { content: "−"; }
.reference details[open] { border-color: var(--primary); box-shadow: var(--shadow-card); }
.reference__answer { padding: 0 20px 20px; color: var(--ink); font-size: 15px; }
.reference__answer p:last-child { margin-bottom: 0; }

/* Feature feed */
.feature-feed { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.feature-feed__lead { display: grid; gap: 16px; }
.feature-feed__lead img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.feature-feed__rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-feed__rail li { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 4px; }
.feature-feed__rail li:first-child { border-top: 0; padding-top: 0; }
.feature-feed__rail .meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.feature-feed__rail h3 { margin: 0; font-size: 16px; }
.feature-feed__rail a { color: var(--ink); text-decoration: none; font-weight: 600; }
.feature-feed__rail a:hover { color: var(--primary); }

/* Policy close */
.policy-close {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.policy-close__checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.policy-close__checklist li { padding-left: 28px; position: relative; font-size: 15px; }
.policy-close__checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--primary-soft);
  border: 1.5px solid var(--primary);
}
.policy-close__checklist li::after {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Card grid (used sparingly, never 3+ equal cards in a row) */
.card-grid { display: grid; gap: 16px; }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card__tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }

/* Loose card (for editorial sidebars / glossaries) */
.loose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 8px;
}
.loose-card h3 { margin: 0; font-size: 18px; }
.loose-card p { margin: 0; color: var(--ink); font-size: 15px; }

/* Inline image row */
.inline-image-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.inline-image-row img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 10px; }
.inline-image-row__text small { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.inline-image-row__text h4 { margin: 6px 0 8px; font-size: 18px; }
.inline-image-row__text p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Article body (used on deep-guide / safety / news) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 4px solid var(--primary); padding: 4px 18px; color: var(--primary-deep); background: var(--primary-soft); border-radius: 0 8px 8px 0; margin: 1.2em 0; }
.prose .callout { background: var(--accent-soft); border: 1px solid #d6b07f; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); font-size: 15px; }

/* Footer */
.site-footer {
  background: var(--primary-deep);
  color: var(--text-on-dark);
  padding: clamp(40px, 5vw, 64px) 0 24px;
  margin-top: 32px;
}
.site-footer a { color: #c7e0c1; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 { font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 12px; color: #f0c98b; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-on-dark);
}

/* Sticky affiliate CTA (mobile only, exactly one button) */
.affiliate-sticky {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  background: var(--primary-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 28px rgba(31, 48, 32, 0.22);
}
.affiliate-sticky[hidden] { display: none; }
.affiliate-sticky.is-visible { display: block; }
.affiliate-sticky__inner {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}
.affiliate-sticky__note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted-on-dark);
}
.affiliate-sticky__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.affiliate-sticky__btn:hover,
.affiliate-sticky__btn:focus-visible { background: #8a4700; color: #fff; }

/* Inline affiliate block (used sparingly where commercial intent is genuine) */
.affiliate-inline {
  background: var(--surface-3);
  border: 1px solid #cfa871;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.affiliate-inline h2 { margin: 0; font-size: 20px; color: #7d4200; }
.affiliate-inline p { margin: 0; font-size: 15px; color: var(--ink); }
.affiliate-inline__btn {
  justify-self: start;
  display: inline-block;
  min-height: 48px;
  padding: 13px 30px;
  margin-top: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.affiliate-inline__btn:hover,
.affiliate-inline__btn:focus-visible { background: #8a4700; color: #fff; }
.affiliate-inline__small { font-size: 13.5px; color: #5a4a33; }

/* ---------- Section heads ---------- */
.section__head { max-width: 30ch; }
.section--ink .policy-close__lede { color: var(--muted-on-dark); max-width: 56ch; }
.policy-close__cta { margin: 18px 0 0; }

/* ---------- Family: fact-rail ---------- */
.fact-rail {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fact-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact-rail__list li {
  min-width: 0;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 6px;
  align-content: start;
}
.fact-rail__list li:last-child { border-right: 0; }
.fact-rail__k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.fact-rail__v { font-size: 15px; color: var(--ink); }

/* ---------- Family: step-ladder ---------- */
.step-ladder {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 860px;
}
.step-ladder li {
  counter-increment: step;
  position: relative;
  min-width: 0;
  padding: 22px 0 22px 66px;
  border-top: 1px solid var(--border);
}
.step-ladder li:last-child { border-bottom: 1px solid var(--border); }
.step-ladder li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  color: var(--primary-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step-ladder h3 { margin: 0 0 8px; font-size: 19px; }
.step-ladder p { margin: 0 0 8px; max-width: 68ch; }
.step-ladder p:last-child { margin-bottom: 0; }

/* ---------- Family: editorial-split ---------- */
.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.editorial-split--flip .editorial-split__media { order: 2; }
.editorial-split__media { margin: 0; min-width: 0; }
.editorial-split__media img {
  width: 100%;
  max-width: 100%;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.editorial-split__media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.editorial-split__body { min-width: 0; }
.editorial-split__body h2 { max-width: 28ch; }

/* ---------- Family: timeline ---------- */
.timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 26px;
  max-width: 820px;
}
.timeline li { position: relative; min-width: 0; display: grid; gap: 6px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__body { min-width: 0; }
.timeline__body h3 { margin: 0 0 6px; font-size: 18px; }
.timeline__body p { margin: 0; max-width: 66ch; color: var(--ink); }

/* ---------- Family: pathway-rail ---------- */
.pathway-rail {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pathway-rail li { min-width: 0; }
.pathway-rail a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.pathway-rail a:hover { background: var(--primary-soft); }
.pathway__title { font-weight: 700; font-size: 17px; color: var(--primary-deep); }
.pathway__desc { font-size: 14.5px; color: var(--muted); }

/* ---------- Family: source-block ---------- */
.sources__head { font-size: 20px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.sources li {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
  font-size: 14.5px;
}
.sources cite { font-style: normal; font-weight: 700; color: var(--primary-deep); }
.sources span { color: var(--muted); }
.sources__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 76ch; }

/* ---------- Article cover figure ---------- */
.article-cover__figure { margin: 26px 0 0; }
.article-cover__figure img {
  width: 100%;
  max-width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.article-cover__figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Footer / drawer heads ---------- */
.footer-col__head {
  font-size: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  color: #f0c98b;
}
.footer-about { margin-top: 12px; color: var(--muted-on-dark); font-size: 14.5px; max-width: 42ch; }
.footer-legal { margin-top: 14px; color: var(--muted-on-dark); font-size: 13px; max-width: 46ch; }

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.mobile-drawer__close {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mobile-drawer__group { margin-bottom: 4px; }
.mobile-drawer__grouphead {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 14px 0 2px;
}
.mobile-drawer__group ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__inner > * { min-width: 0; }
  .action-rail__list { grid-template-columns: repeat(2, 1fr); }
  .action-rail__list a { border-right: 0; border-bottom: 1px solid var(--border); }
  .action-rail__list li:nth-child(odd) a { border-right: 1px solid var(--border); }
  .action-rail__list li:nth-last-child(-n+2) a { border-bottom: 0; }
  .chapter { grid-template-columns: 1fr; }
  .chapter > * { min-width: 0; }
  .chapter__margin { border-left: 0; border-top: 1px solid var(--border); padding: 18px 0 0; }
  .annotated { grid-template-columns: 1fr; }
  .annotated > * { min-width: 0; }
  .data-poster { grid-template-columns: 1fr; }
  .data-poster > * { min-width: 0; }
  .feature-feed { grid-template-columns: 1fr; }
  .feature-feed > * { min-width: 0; }
  .policy-close { grid-template-columns: 1fr; }
  .policy-close > * { min-width: 0; max-width: 100%; }
  .policy-close .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid--three { grid-template-columns: 1fr 1fr; }
  .inline-image-row { grid-template-columns: 1fr; }
  .fact-rail__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-rail__list li { border-bottom: 1px solid var(--border); }
  .fact-rail__list li:nth-child(2n) { border-right: 0; }
  .fact-rail__list li:nth-last-child(-n+2) { border-bottom: 0; }
  .editorial-split { grid-template-columns: 1fr; }
  .editorial-split > * { min-width: 0; }
  .editorial-split--flip .editorial-split__media { order: 0; }
}

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .hamburger {
    display: inline-flex;
    /* Hamburger lives inside .site-header which has backdrop-filter
       (creates a stacking context). Raise the site-header above the
       drawer (z:55) so the hamburger (z:60 internally) wins at the
       screen-coord hit-test and can be clicked to close. */
    position: relative;
    z-index: 60;
  }
  .site-header { z-index: 65; } /* above .mobile-drawer (z:55) */
  .drawer-scrim { z-index: 53; } /* unchanged */
  .action-rail__list { grid-template-columns: 1fr; }
  .action-rail__list a { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
  .action-rail__list li:last-child a { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid--two, .card-grid--three { grid-template-columns: 1fr; }
  .affiliate-sticky.is-visible { display: block; }
  body { padding-bottom: 96px; }
  .hero { padding: 0; }
  .hero__inner { padding-top: 26px; padding-bottom: 30px; }
  .hero__ledger img { aspect-ratio: 4 / 3; }
  .hero__ledger ul { padding: 14px 16px 18px; }
  .hero h1 { font-size: 31px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .fact-rail__list { grid-template-columns: 1fr; }
  .fact-rail__list li { border-right: 0; }
  .pathway-rail { grid-template-columns: 1fr; }
  .step-ladder li { padding: 18px 0 18px 52px; }
  .step-ladder li::before { width: 36px; height: 36px; top: 18px; font-size: 12px; }
  .section__head, .editorial-split__body h2 { max-width: none; }
  .article-cover__figure img { aspect-ratio: 4 / 3; }
  .annotated__pin { width: 26px; height: 26px; font-size: 11px; border-width: 2px; }
  .affiliate-inline { padding: 18px; }
  .affiliate-inline__btn { justify-self: stretch; text-align: center; }
  .timeline { padding-left: 18px; gap: 22px; }
  .timeline li::before { left: -25px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 28px; }
  .hero__facts li { font-size: 13.5px; }
  .btn { font-size: 14.5px; padding: 11px 14px; }
  .brand-mark__name { font-size: 15px; }
  .brand-mark__name span { font-size: 10px; letter-spacing: 0.14em; }
  .data-table th, .data-table td { padding: 9px 10px; font-size: 13.5px; }
  .article-cover h1, .section__head { max-width: none; }
}

@media (max-width: 360px) {
  .brand-mark__mark { width: 34px; height: 34px; font-size: 16px; }
  .brand-mark__name span { display: none; }
  .affiliate-sticky__btn { font-size: 15px; letter-spacing: 0.04em; }
}

/* Utility */
.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; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.bg-ink { background: var(--primary-deep); color: var(--text-on-dark); }
.bg-ink h2, .bg-ink h3 { color: #f4f8f0; }

/* Section offsets for sticky header */
section[id] { scroll-margin-top: 90px; }

/* Article cover */
.article-cover {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}
.article-cover__meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 10px; }
.article-cover__meta span { background: rgba(176, 93, 0, 0.12); padding: 4px 10px; border-radius: 999px; color: var(--accent); }
.article-cover h1 { max-width: 22ch; }
.article-cover__lede { color: var(--muted); font-size: 18px; max-width: 60ch; margin-top: 10px; }
.article-cover__byline { margin-top: 16px; color: var(--muted); font-size: 14px; }

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { margin: 0 6px; color: var(--border-strong); }

.section--rule { border-top: 1px solid var(--border); }
