/* ============================================================
 * cfa-automation-ahead — long-scroll layout
 * Anchor: viska marketing register (Fraunces + Inter / navy + gold)
 * Layout: full-bleed sections, sticky section nav, persistent footer
 * Pivot from rigid reveal.js 2026-05-21-cfa-deck.html
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:         #253F59;
  --navy-deep:    #1A2D3F;
  --gold:         #A59377;
  --gold-bright:  #C5B08D;
  --bg:           #FFFFFF;
  --surface:      #F7F5F1;
  --border:       #E5E0D6;
  --text:         #111827;
  --text-mute:    #6B7280;
  --text-soft:    #4B5563;
  --rule:         #D8D2C3;

  --display-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-h-desktop: 56px;
  --nav-h-mobile:  48px;

  --content-max:   1280px;
  --content-pad-x: clamp(24px, 5vw, 96px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h-desktop) + 24px); }
body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
 * Sticky section nav
 * ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h-desktop);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--content-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__brand {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}
.site-nav__brand .sep {
  color: var(--rule);
  margin: 0 8px;
  font-weight: 300;
}
.site-nav__brand .title {
  font-style: italic;
  color: var(--text-soft);
  font-weight: 400;
}
.site-nav__anchors {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__anchors::-webkit-scrollbar { display: none; }
.site-nav__anchors a {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 120ms ease, background 120ms ease;
  white-space: nowrap;
}
.site-nav__anchors a:hover { color: var(--navy); background: var(--surface); }
.site-nav__anchors .div {
  width: 1px;
  height: 12px;
  background: var(--rule);
  margin: 0 6px;
}
.site-nav__menu-btn { display: none; }
.site-nav__drawer { display: none; }
.site-nav__brand { white-space: nowrap; }

@media (max-width: 900px) {
  .site-nav { height: var(--nav-h-mobile); }
  .site-nav__anchors { display: none; }
  .site-nav__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 6px 10px;
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--navy);
    cursor: pointer;
  }
  .site-nav__drawer { display: none; }
  .site-nav__drawer[open] {
    display: block;
    position: absolute;
    top: var(--nav-h-mobile);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 12px var(--content-pad-x);
    max-height: 60vh;
    overflow-y: auto;
  }
  .site-nav__drawer a {
    display: block;
    padding: 10px 0;
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--surface);
  }
  .site-nav__drawer a:last-child { border-bottom: none; }
}

/* ============================================================
 * Section primitives
 * ============================================================ */
.section {
  position: relative;
  padding-block: clamp(64px, 10vh, 128px);
  scroll-margin-top: calc(var(--nav-h-desktop) + 16px);
}
.section--alt { background: var(--surface); }
.section--navy { background: var(--navy-deep); color: var(--text-on-dark, #FFFFFF); }

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--content-pad-x);
}

.eyebrow {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);           /* uniform across exec AND appendix — fixes review bug */
  margin: 0 0 24px 0;
}
.eyebrow .sep {
  color: var(--rule);
  margin: 0 8px;
}
.section--navy .eyebrow { color: var(--gold-bright); }

h1, h2, h3 {
  font-family: var(--display-font);
  font-weight: 500;
  color: var(--navy);
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.section--navy h1, .section--navy h2 { color: #FFFFFF; }

h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }

/* Title rule — width keyed to title, not fixed. Drop on appendix per design analysis. */
.title-rule {
  height: 2px;
  width: clamp(48px, 8ch, 96px);
  background: var(--gold);
  margin: 20px 0 32px 0;
}
.is-appendix .title-rule { display: none; }    /* fixes orphaned-rule complaint */

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 68ch;
  margin: 0 0 24px 0;
  text-wrap: pretty;
}

.source-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.55;
  max-width: 92ch;
  text-wrap: pretty;
}
.source-footer strong { color: var(--navy); font-weight: 600; }
.source-footer .sep { color: var(--rule); margin: 0 8px; }

/* ============================================================
 * Cover
 * ============================================================ */
.cover {
  background: var(--navy-deep);
  color: #FFFFFF;
  position: relative;
  min-height: calc(100vh - var(--nav-h-desktop));
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--navy-deep) 0%, var(--navy-deep) 62%, var(--navy) 62%, var(--navy) 100%);
  z-index: 0;
}
@media (max-width: 760px) {
  .cover::before {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-deep) 70%, var(--navy) 70%, var(--navy) 100%);
  }
}
.cover .section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  padding-block: clamp(56px, 10vh, 96px);
}
@media (max-width: 760px) {
  .cover .section__inner { grid-template-columns: 1fr; gap: 40px; }
}
.cover .cover__eyebrow {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 32px 0;
}
.cover h1 {
  font-family: var(--display-font);
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0 0 32px 0;
}
.cover .cover__subtitle {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  margin: 0 0 56px 0;
  text-wrap: pretty;
}
.cover .cover__meta {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.cover .cover__meta strong { color: var(--gold-bright); font-weight: 500; }
.cover .cover__meta em { font-style: italic; color: rgba(255, 255, 255, 0.85); }
.cover .cover__sources { color: rgba(255, 255, 255, 0.92); }
.cover .cover__sources--primary { color: var(--gold-bright); font-weight: 500; }
.cover .cover__stamp { color: rgba(255, 255, 255, 0.6); }
.cover__side {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 28px;
}
.cover__side h2 {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
}
.cover__sources {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px 0;
}
.cover__sources--primary {
  color: var(--gold-bright);
  font-weight: 500;
}
.cover__stamp {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================================
 * Body type & lists
 * ============================================================ */
.section p { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0 0 16px 0; text-wrap: pretty; }
.section p:last-child { margin-bottom: 0; }
.section strong { color: var(--navy); font-weight: 600; }
.section em { font-style: italic; color: var(--text-soft); }

.bullets { list-style: none; padding: 0; margin: 0 0 24px 0; max-width: 68ch; }
.bullets li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 14px; height: 2px;
  background: var(--gold);
}

/* ============================================================
 * Installments grid (S3)
 * ============================================================ */
.installments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}
@media (max-width: 760px) { .installments { grid-template-columns: 1fr; gap: 20px; } }
.installment {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
}
.section--alt .installment { background: #FFFFFF; }
.installment__num {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  margin: 0 0 8px 0;
}
.installment h3 { margin: 0 0 12px 0; color: var(--navy); }
.installment p { font-size: 15px; color: var(--text-soft); margin: 0; }

/* ============================================================
 * Check-list (S4 consensus)
 * ============================================================ */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 20px 0 20px 40px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 26px;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M3 11.5 L9 17 L19 5' stroke='%23A59377' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.check-list .ck-title {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}
.check-list .ck-sources {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.check-list .ck-desc {
  margin: 8px 0 0 0;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 80ch;
  text-wrap: pretty;
}

/* ============================================================
 * Taxonomy 2-col (S5)
 * ============================================================ */
.taxonomy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 760px) { .taxonomy { grid-template-columns: 1fr; gap: 24px; } }
.taxonomy__col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.section--alt .taxonomy__col { background: #FFFFFF; }
.taxonomy__col--alt { border-top-color: var(--gold); }
.taxonomy__label {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 8px 0;
}
.taxonomy__head {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 20px 0;
}
.taxonomy blockquote {
  margin: 0 0 20px 0;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.taxonomy blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}

/* ============================================================
 * Pattern list (S6) — italic numerals signature
 * ============================================================ */
.pattern-list { list-style: none; padding: 0; margin: 0; counter-reset: pat; }
.pattern-list li {
  counter-increment: pat;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.pattern-list li:last-child { border-bottom: none; }
.pattern-list li::before {
  content: counter(pat, decimal-leading-zero);
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
}
.pattern-list .pat-name {
  display: block;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.pattern-list .pat-def {
  display: block;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 72ch;
  text-wrap: pretty;
}

/* ============================================================
 * Stat row (S7 RAG)
 * ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 24px 0;
}
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; gap: 24px; } }
.stat-cell {
  padding: 24px 0;
  border-top: 2px solid var(--navy);
}
.stat-cell--baseline { border-top-color: var(--rule); }
.stat-num {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  color: var(--navy);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}
.stat-cell--baseline .stat-num { color: var(--text-mute); }
.stat-num .pct {
  font-size: 0.4em;
  color: var(--gold);
  font-weight: 500;
  vertical-align: top;
  margin-left: 2px;
}
.stat-cell--baseline .stat-num .pct { color: var(--text-mute); }
.stat-label {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 8px 0;
}
.stat-cell--baseline .stat-label { color: var(--text-mute); }
.stat-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}
.stat-legend {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 32px;
  padding-left: 12px;
  border-left: 2px solid var(--rule);
}
.stat-legend strong { color: var(--text-soft); }

/* ============================================================
 * Quote cards (S8 adoption, A2)
 * ============================================================ */
.quote-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;            /* fixes uneven card height — review bug */
}
.quote-cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .quote-cards, .quote-cards--2 { grid-template-columns: 1fr; gap: 18px; } }
.quote-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.section--alt .quote-card { background: #FFFFFF; }
.quote-card__source {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px 0;
}
.quote-card__source .sep { color: var(--rule); margin: 0 6px; }
.quote-card__text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 12px 0;
  text-wrap: pretty;
}
.quote-card__text--quote { font-style: italic; }
.quote-card__text:last-child { margin-bottom: 0; }
.quote-card__xref {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.quote-card__xref a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.quote-card__xref a:hover { color: var(--navy); }

/* ============================================================
 * Capex pull (S9) — $1T lockup fixed
 * ============================================================ */
.capex {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .capex { grid-template-columns: 1fr; gap: 32px; } }

.capex__stat {
  font-family: var(--display-font);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 20px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.capex__stat .currency {
  font-size: clamp(72px, 12vw, 144px);
  font-feature-settings: "lnum";
}
.capex__stat .magnitude {
  font-size: clamp(56px, 9vw, 104px);
}
.capex__stat .unit {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.01em;
  font-style: normal;             /* drops italic — fixes overlap/rushed look */
  align-self: flex-end;
  padding-bottom: clamp(12px, 1.5vw, 24px);
  text-transform: lowercase;
}
.capex__label {
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px 0;
}
.capex__sublabel {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 20px;
  margin: 0 0 24px 0;
}
.pull-quote__text {
  font-family: var(--display-font);
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 12px 0;
  text-wrap: pretty;
}
.pull-quote__text--lg { font-size: 22px; }
.pull-quote__cite {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}
.pull-quote__cite strong { color: var(--navy); font-weight: 600; }

/* ============================================================
 * Takeaways (S10) + appendix takeaways
 * ============================================================ */
.takeaways { list-style: none; padding: 0; margin: 0; counter-reset: tk; }
.takeaways li {
  counter-increment: tk;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.takeaways li:last-child { border-bottom: none; }
.takeaways li::before {
  content: counter(tk, decimal-leading-zero);
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--gold);
  padding-top: 2px;
}
.takeaways .tk-head {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px 0;
}
.takeaways .tk-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 78ch;
  text-wrap: pretty;
}

/* ============================================================
 * Appendix divider
 * ============================================================ */
.divider .section__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.divider .eyebrow { color: var(--gold-bright); }
.divider h1 {
  color: #FFFFFF;
  font-size: clamp(56px, 8vw, 88px);
}
.divider__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
  line-height: 1.55;
}
.divider__toc {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 900px) { .divider__toc { grid-template-columns: repeat(2, 1fr); } }
.divider__toc a {
  font-family: var(--body-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 0;
  border-top: 2px solid var(--gold);
  transition: color 120ms;
}
.divider__toc a:hover { color: #FFFFFF; }
.divider__toc .num {
  font-family: var(--display-font);
  font-style: italic;
  color: var(--gold-bright);
  margin-right: 6px;
}

/* ============================================================
 * Reading callout (A2)
 * ============================================================ */
.reading-callout {
  background: var(--surface);
  padding: 24px 28px;
  margin-top: 24px;
  border-left: 3px solid var(--navy);
}
.section--alt .reading-callout { background: #FFFFFF; border-color: var(--gold); }
.reading-callout__label {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px 0;
}
.reading-callout__text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  max-width: 78ch;
  text-wrap: pretty;             /* fixes ragged-edge complaint */
}

/* ============================================================
 * Comparison table (A3) — responsive
 * ============================================================ */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}
.cmp-table th {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 2px solid var(--navy);
}
.cmp-table tbody tr:hover { background: var(--surface); }
.cmp-table .reading { color: var(--navy); font-weight: 600; }
.cmp-table th:first-child, .cmp-table td:first-child { padding-left: 0; }
.cmp-table th:last-child, .cmp-table td:last-child { padding-right: 0; }
/* Wider source-col, narrower reading-col to balance row-wrap — fixes A3 YC row wrap */
.cmp-table col.topic   { width: 18%; }
.cmp-table col.cfa     { width: 24%; }
.cmp-table col.peer    { width: 32%; }
.cmp-table col.reading { width: 26%; }

@media (max-width: 760px) {
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table td { display: block; width: 100%; }
  .cmp-table tr {
    border-top: 2px solid var(--navy);
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .cmp-table td { border: none; padding: 4px 0; }
  .cmp-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 4px;
  }
}

/* ============================================================
 * Tool stack list (A4) — unified mono chip treatment
 * ============================================================ */
.tool-list { list-style: none; padding: 0; margin: 0; }
.tool-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .tool-list li { grid-template-columns: 1fr; gap: 4px; } }
.tool-list li:last-child { border-bottom: none; }
.tool-list .tl-label {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 4px;
}
.tool-list .tl-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
/* Unified mono chip — all tokens get the same treatment (fixes S15 inconsistent chip vs inline) */
.tool-list code, .chip-mono {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: var(--surface);
  color: var(--navy);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-weight: 500;
}
.section--alt .tool-list code, .section--alt .chip-mono { background: #FFFFFF; }

/* ============================================================
 * Bug-fix blocks (A5)
 * ============================================================ */
.bug-block {
  padding: 24px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
}
.section--alt .bug-block { background: #FFFFFF; border-color: var(--navy); }
.bug-block + .bug-block { margin-top: 16px; }
.bug-block__label {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px 0;
}
.bug-block__num {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1;
  letter-spacing: -0.01em;
}
.bug-block__num .wrong { color: #B91C1C; text-decoration: line-through wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bug-block__num .right { color: #15803D; }
.bug-block p:last-child { font-size: 13px; color: var(--text-soft); margin: 0; }

.principle-stack > div { margin-bottom: 24px; }
.principle-stack > div:last-child { margin-bottom: 0; }
.principle-stack__label {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px 0;
}
.principle-stack__text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.a5-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .a5-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
 * Source inventory table (A6) — signature closing artifact
 * ============================================================ */
.a6-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .a6-grid { grid-template-columns: 1fr; gap: 32px; } }
.src-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.src-table th, .src-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}
.src-table th {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 2px solid var(--navy);
}
.src-table th:first-child, .src-table td:first-child { padding-left: 0; }
.src-table th:last-child, .src-table td:last-child { padding-right: 0; }
.src-table tbody tr:hover { background: var(--surface); }

.next-pass__label {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px 0;
}
.next-pass__list { list-style: none; padding: 0; margin: 0; }
.next-pass__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.next-pass__list li:last-child { border-bottom: none; }
.next-pass__list strong { color: var(--navy); font-weight: 600; }

/* ============================================================
 * Persistent page footer
 * ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 56px;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--content-pad-x);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; gap: 32px; } }
.site-footer__brand {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 28px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}
.site-footer__brand .accent { color: var(--gold-bright); font-style: italic; font-weight: 400; }
.site-footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 36ch;
}
.site-footer__col h3 {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 14px 0;
}
.site-footer__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer__meta li { display: flex; justify-content: space-between; gap: 12px; }
.site-footer__meta .k { color: rgba(255, 255, 255, 0.5); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; padding-top: 2px; }
.site-footer__meta .v { color: rgba(255, 255, 255, 0.92); font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; }
.site-footer__byline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}
.site-footer__byline a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 176, 141, 0.4);
}
.site-footer__byline a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad-x);
}

/* ============================================================
 * Print
 * ============================================================ */
@media print {
  .site-nav { position: static; backdrop-filter: none; background: #FFFFFF; }
  .section { padding-block: 32px; break-inside: avoid; }
  .cover { min-height: auto; }
  a { color: inherit; text-decoration: none; }
}
