/* TINAA dashboard styles.
   Consolidated from four  blocks in index.original.html:
   - lines 11-268: base styles (root, header, nav, cards, tables, etc.)
   - lines 459-486: explanation explorer tiles (.ee-tile)
   - lines 1359-1473: spending flow diagram (.flow-wrap)
   - line 1789: details-open chevron rotation
*/


:root {
  --snow: #fffcfa;
  --stormy-teal: #006161;
  --dark-teal: #004a4d;
  --white: #ffffff;
  --silver: #cad4d3;
  --pale-sky: #bbdaf2;
  --alice-blue: #e2eef8;
  --pitch-black: #0e0905;
  /* Editorial additions */
  --paper: #f5f3ef;
  --ink: #1a1814;
  --ink-light: #4a4540;
  --ink-muted: #7a7068;
  --rule: #ddd8d0;
  --card-bg: #ffffff;
  --accent-light: #e8f2f2;
  --gap: 24px;
  --radius: 8px;
  --max-w: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-weight: 300; background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 15px; }

/* ─── CENTERING WRAPPER ─── */
.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }

/* ─── HEADER ─── */
.site-header { background: #0d1e1f; color: var(--snow); position: relative; overflow: hidden; }
.site-header::before { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(0,97,97,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,97,97,0.07) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.header-top-rule { height: 3px; background: linear-gradient(90deg, var(--stormy-teal), #4dbbbb 40%, var(--stormy-teal)); }
.site-header .inner { padding-top: 64px; padding-bottom: 60px; position: relative; z-index: 1; }

/* ─── HEADER GRID ─── */
.header-grid { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: center; }

/* ─── HEADER MAIN (left) ─── */
.site-header .eyebrow { font-weight: 600; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #4dbbbb; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.site-header .eyebrow::before { content:''; width: 28px; height: 2px; background: var(--stormy-teal); flex-shrink: 0; }
.site-header h1 { font-family: 'Newsreader', serif; font-weight: 300; font-size: clamp(40px, 5.5vw, 70px); line-height: 1.04; margin-bottom: 22px; letter-spacing: -0.03em; }
.site-header .subtitle { font-weight: 300; font-size: 15px; color: rgba(255,252,250,0.58); line-height: 1.8; margin-bottom: 22px; text-wrap: balance; max-width: 540px; }
.header-cta { font-size: 11px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,252,250,0.28); }

/* ─── HEADER STATS (right) ─── */
.header-stats { border-left: 1px solid rgba(0,97,97,0.4); padding-left: 44px; display: flex; flex-direction: column; gap: 0; }
.hstat { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.hstat:first-child { padding-top: 0; }
.hstat:last-of-type { padding-bottom: 18px; }
.hstat-num { font-family: 'Newsreader', serif; font-size: 56px; font-weight: 300; color: var(--snow); line-height: 1; letter-spacing: -0.03em; margin-bottom: 4px; }
.hstat-label { font-size: 10.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(255,252,250,0.38); }
.hstat-pills { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.meta-pill { background: rgba(0,97,97,0.28); border: 1px solid rgba(77,187,187,0.28); border-radius: 3px; padding: 5px 12px; font-size: 10.5px; color: #6dcece; letter-spacing: 0.3px; display: inline-block; }

/* ─── LIMITATION BANNER ─── */
.limitation-banner { background: #fffbf0; border-bottom: 1px solid #e8ddb0; }
.limitation-banner .inner { padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; color: #7a5a10; line-height: 1.65; padding-left: calc(48px + 14px); position: relative; }
.limitation-banner .inner::before { content:''; position:absolute; left: 48px; top: 0; bottom: 0; width: 3px; background: #c9a227; border-radius: 2px; }
.limitation-banner strong { font-weight: 600; color: #5a3d00; }

/* ─── STICKY NAV ─── */
.sticky-nav { background: var(--card-bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; overflow-x: auto; box-shadow: 0 1px 8px rgba(0,0,0,0.07); }
.sticky-nav .inner { padding-top: 0; padding-bottom: 0; display: flex; min-width: max-content; }
.nav-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; border-bottom: 3px solid transparent; padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 400; color: var(--ink-muted); cursor: pointer; white-space: nowrap; text-decoration: none; transition: all 0.15s; }
.nav-btn svg { color: var(--ink-muted); opacity: 0.6; }
.nav-btn:hover { color: var(--stormy-teal); }
.nav-btn:hover svg { opacity: 1; color: var(--stormy-teal); }
.nav-btn.active { color: var(--stormy-teal); border-bottom-color: var(--stormy-teal); font-weight: 500; }
.nav-btn.active svg { color: var(--stormy-teal); opacity: 1; }

/* ─── TAB SYSTEM ─── */
.tab-section { display: none; }
.tab-section.active { display: block; }
.nav-btn { cursor: pointer; background: none; border: none; border-bottom: 3px solid transparent; }

/* ─── MAIN ─── */
.main .inner { padding-top: 0; padding-bottom: 80px; }

/* ─── PAGE SECTIONS ─── */
.main { counter-reset: section-counter; }
.page-section { padding-top: 60px; padding-bottom: 8px; }
.page-section + .page-section { border-top: 1px solid var(--rule); margin-top: 8px; }
.section-title { font-family: 'Newsreader', serif; font-weight: 400; font-size: 27px; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; justify-content: flex-start; }
.section-title svg { display: none; }
.section-title::before { display: none; }
.section-desc { font-size: 14px; color: var(--ink-light); font-weight: 300; margin-bottom: 28px; line-height: 1.82; overflow-wrap: break-word; text-wrap: pretty; text-align: left; border-left: 3px solid var(--stormy-teal); padding-left: 16px; }

/* ─── CARDS ─── */
.card { background: var(--card-bg); border-radius: var(--radius); padding: 28px 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.05); margin-bottom: var(--gap); border: 1px solid var(--rule); }
.card-title { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--stormy-teal); margin-bottom: 18px; }
.card-note { font-size: 11.5px; color: var(--ink-muted); font-weight: 300; margin-top: 14px; font-style: italic; text-wrap: pretty; }

/* ─── CALLOUT ─── */
.callout { background: var(--accent-light); color: var(--ink); border-radius: var(--radius); padding: 24px 28px; margin-bottom: var(--gap); border: 1px solid rgba(0,97,97,0.14); border-left: 4px solid var(--stormy-teal); }
.callout-label { font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--stormy-teal); margin-bottom: 8px; }
.callout .callout-label { color: var(--stormy-teal); }
.callout-body { font-family: 'Newsreader', serif; font-weight: 300; font-size: 17px; line-height: 1.62; color: var(--ink); text-wrap: pretty; }
.callout .callout-body { color: var(--ink); overflow-wrap: break-word; text-wrap: pretty; }
.callout-body strong { font-weight: 600; color: var(--dark-teal); }
.callout .callout-body strong { color: var(--dark-teal); font-weight: 600; }
.callout .callout-body em { color: var(--ink-light); font-style: italic; }
.callout-body em { font-style: italic; opacity: 0.8; }
.callout-sub { font-size: 12.5px; font-weight: 300; color: var(--ink-light); margin-top: 10px; line-height: 1.65; font-family: 'Inter', sans-serif; text-wrap: pretty; }
.callout .callout-sub { color: var(--ink-light) !important; }

/* ─── CALLOUT LIGHT ─── */
.callout-light { background: var(--card-bg); border-left: 4px solid var(--stormy-teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin-bottom: var(--gap); border: 1px solid var(--rule); border-left: 4px solid var(--stormy-teal); }
.callout-light .callout-label { color: var(--stormy-teal); }
.callout-light .callout-body { font-size: 15px; color: var(--ink); overflow-wrap: break-word; text-wrap: pretty; }
.callout-light .callout-body strong { color: var(--dark-teal); font-weight: 600; }
.callout-light .callout-sub { color: var(--ink-light); }

/* ─── CALLOUT GRID ─── */
.callout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: var(--gap); }
.callout-grid .callout { margin-bottom: 0; }

/* ─── ABSENT CARD ─── */
.absent-card { background: #f0f5fb; border-left: 4px solid #4488cc; border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin-bottom: var(--gap); border: 1px solid rgba(68,136,204,0.2); border-left: 4px solid #4488cc; }
.absent-card .callout-label { color: #2255aa; }
.absent-card .callout-body { color: var(--ink); }

/* ─── KPI ICON ─── */
.kpi-icon { position: absolute; top: 14px; right: 16px; color: var(--stormy-teal); opacity: 0.28; }

/* ─── KPI ROW ─── */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin-bottom: var(--gap); }
.kpi-card { background: var(--card-bg); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04); border: 1px solid var(--rule); border-top: 3px solid var(--stormy-teal); position: relative; }
.kpi-label { font-size: 10.5px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.kpi-value { font-family: 'Newsreader', serif; font-size: 38px; font-weight: 300; color: var(--dark-teal); line-height: 1; }
.kpi-sub { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }

/* ─── CHART CONTAINERS ─── */
.chart-wrap { position: relative; width: 100%; height: 420px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.chart-wrap.tall { height: 540px; }
.chart-wrap.short { height: 260px; }
.chart-wrap.xl { height: 780px; }

/* ─── GRIDS ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }

/* ─── FILTER ROW ─── */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filter-label { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.filter-btn { background: var(--card-bg); border: 1px solid var(--rule); border-radius: 4px; padding: 5px 14px; font-size: 12px; font-family: 'Inter', sans-serif; color: var(--ink-light); cursor: pointer; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--stormy-teal); color: var(--stormy-teal); }
.filter-btn.active { background: var(--stormy-teal); border-color: var(--stormy-teal); color: var(--white); font-weight: 500; }

/* ─── BADGES ─── */
.badge { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; border-radius: 3px; padding: 2px 7px; margin-right: 4px; }
.badge-consensus { background: #d6f0e7; color: #2e7d5f; }
.badge-contested  { background: #fde8e8; color: #b84b4b; }
.badge-lean       { background: var(--alice-blue); color: var(--dark-teal); }
.badge-ignored    { background: #f0f0f0; color: #888; }

/* ─── LEAN PILLS ─── */
.lean-pill { display: inline-block; font-size: 10.5px; font-weight: 500; border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.lean-progressive   { background: #e8f4e8; color: #2d5a2d; }
.lean-centerleft    { background: var(--alice-blue); color: #1a4fbb; }
.lean-centrist      { background: #f0eaf8; color: #5c2d9e; }
.lean-establishment { background: #dce6f6; color: #1a3a88; }
.lean-nonpartisan   { background: #f0f0f0; color: #4a4a4a; }
.lean-centerright   { background: #fce8e8; color: #7a2020; }
.lean-rightleaning  { background: #f9dede; color: #6b1515; }

/* ─── SENTIMENT TABLE ─── */
.sentiment-grid { overflow-x: auto; }
.sentiment-table { border-collapse: collapse; min-width: 100%; white-space: nowrap; font-size: 12px; }
.sentiment-table th { background: var(--dark-teal); color: var(--snow); padding: 8px 10px; font-size: 10.5px; font-weight: 400; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.sentiment-table th.source-col { text-align: left; position: sticky; left: 0; z-index: 2; background: var(--dark-teal); min-width: 160px; }
.sentiment-table td { padding: 6px 9px; border: 1px solid var(--silver); text-align: center; color: var(--ink); }
.sentiment-table td.source-col { text-align: left; position: sticky; left: 0; background: var(--white); z-index: 1; font-weight: 500; color: var(--dark-teal); border-right: 2px solid var(--silver); }
.sentiment-table tr:hover td { background: var(--alice-blue); }
.sentiment-table tr:hover td.source-col { background: var(--alice-blue); }
.sent-pos   { background: #d6f0e7; color: #2e7d5f; border-radius: 4px; padding: 2px 5px; font-weight: 500; }
.sent-neg   { background: #fde8e8; color: #b84b4b; border-radius: 4px; padding: 2px 5px; font-weight: 500; }
.sent-neu   { background: #efefef; color: #666; border-radius: 4px; padding: 2px 5px; }
.sent-empty { color: #ccc; }

/* ─── SOURCE TABLE ─── */
.sources-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sources-table th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--rule); font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; user-select: none; white-space: nowrap; }
.sources-table th:hover { color: var(--stormy-teal); }
.sources-table td { padding: 9px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; font-weight: 300; color: var(--ink); }
.sources-table tr:hover td { background: #f9f7f4; }
.coded-yes { color: var(--stormy-teal); font-weight: 500; }
.coded-no  { color: #aaa; }

/* ─── CLUSTER GRID ─── */
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin-bottom: var(--gap); }
.cluster-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid var(--rule); border-left: 4px solid var(--rule); }
.cluster-card.cross-lean { border-left-color: var(--stormy-teal); }
.cluster-id { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--stormy-teal); margin-bottom: 5px; }
.cluster-name { font-size: 13.5px; font-weight: 500; color: var(--dark-teal); margin-bottom: 8px; }
.cluster-members { font-size: 12px; color: var(--ink); margin-bottom: 8px; line-height: 1.6; }
.cluster-terms { font-size: 11.5px; color: var(--ink-light); }
.cluster-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ─── METHODOLOGY ─── */
.meth-block { background: var(--card-bg); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 18px; border: 1px solid var(--rule); }
.meth-block h3 { font-family: 'Newsreader', serif; font-weight: 300; font-size: 20px; color: var(--dark-teal); margin-bottom: 10px; }
.meth-block p, .meth-block li { font-size: 13.5px; font-weight: 300; color: var(--ink-light); line-height: 1.75; margin-bottom: 8px; }
.meth-block ul { padding-left: 20px; }
.warning-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 300; color: var(--ink-light); }
.warning-row:last-child { border-bottom: none; }
.warning-type { background: #fff3e0; color: #8a5000; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 3px; padding: 2px 7px; white-space: nowrap; margin-top: 2px; }
.warning-type.alarm { background: #fde8e8; color: #b84b4b; }
.warning-type.ok    { background: #d6f0e7; color: #2e7d5f; }

/* ─── WARN CARD ─── */
.warn-card { background: #fffbf0; border: 1px solid rgba(201,162,39,0.3); border-radius: var(--radius); padding: 14px 20px; margin-bottom: var(--gap); font-size: 13px; font-weight: 300; line-height: 1.65; color: #7a5a10; }
.warn-card strong { font-weight: 600; color: #5a3d00; }

/* ─── SEARCH ─── */
.search-input { width: 100%; max-width: 360px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300; color: var(--ink); background: var(--card-bg); }
.search-input:focus { outline: none; border-color: var(--stormy-teal); }

/* ─── FOOTER ─── */
.site-footer { background: #0d1e1f; color: rgba(255,252,250,0.38); text-align: center; padding: 28px 40px; font-size: 12px; line-height: 1.7; border-top: 3px solid var(--stormy-teal); }

/* ─── PULL QUOTE ─── */
.pull-quote { padding: 28px 36px; margin-bottom: var(--gap); background: #0d1e1f; border-radius: var(--radius); position: relative; }
.pull-quote::before { content: '“'; font-family: 'Newsreader', serif; font-size: 80px; color: var(--stormy-teal); position: absolute; top: 8px; left: 24px; line-height: 1; opacity: 0.4; }
.pull-quote-text { font-family: 'Newsreader', serif; font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; color: var(--snow); line-height: 1.55; padding-left: 8px; font-style: italic; }
.pull-quote-attr { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #4dbbbb; margin-top: 14px; padding-left: 8px; }

/* ─── HEADER AUDIENCE LINE ─── */
.header-audience { font-size: 14px; font-weight: 300; color: rgba(255,252,250,0.5); line-height: 1.65; margin-bottom: 18px; font-style: italic; max-width: 500px; }

/* ─── AUDIENCE GRID ─── */
.audience-grid .callout-light .callout-label { font-size: 9.5px; }
.audience-grid .callout-light .callout-body { font-size: 13.5px; line-height: 1.7; }

/* ─── EDITORIAL SECTION ─── */
.editorial-body { }
.editorial-body p { font-size: 15px; font-weight: 300; color: var(--ink-light); line-height: 1.65; margin-bottom: 16px; }
.editorial-body p strong { color: var(--ink); font-weight: 500; }

/* ─── RESPONSIVE HEADER ─── */
@media (max-width: 900px) {
  .header-grid { grid-template-columns: 1fr; gap: 40px; }
  .header-stats { border-left: none; border-top: 1px solid rgba(0,97,97,0.4); padding-left: 0; padding-top: 32px; flex-direction: row; flex-wrap: wrap; gap: 0; }
  .hstat { flex: 1 1 120px; padding: 16px 24px 16px 0; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.07); }
  .hstat:last-of-type { border-right: none; }
  .hstat-num { font-size: 44px; }
  .hstat-pills { flex-direction: row; flex-wrap: wrap; padding-top: 16px; width: 100%; }
}
/* ─── RESPONSIVE ─── */
@media (max-width: 800px) {
  .inner { padding-left: 24px; padding-right: 24px; }
  .limitation-banner .inner { padding-left: calc(24px + 14px); }
  .limitation-banner .inner::before { left: 24px; }
  .two-col, .three-col, .callout-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}


/* ─── EXPLANATION EXPLORER TILES (from EE section, originally inline) ─── */
    
    .ee-tile {
      background: var(--card-bg);
      border: 1px solid var(--rule);
      border-radius: 8px;
      padding: 14px 16px;
      cursor: pointer;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
      position: relative;
      border-top: 3px solid transparent;
    }
    .ee-tile:hover {
      border-color: rgba(0,97,97,0.4);
      border-top-color: var(--stormy-teal);
      box-shadow: 0 2px 12px rgba(0,97,97,0.1);
      transform: translateY(-1px);
    }
    .ee-tile-active {
      border-color: var(--stormy-teal) !important;
      border-top-color: var(--stormy-teal) !important;
      background: var(--accent-light) !important;
      box-shadow: 0 2px 16px rgba(0,97,97,0.15);
    }
    .ee-tile-label { font-size: 12.5px; font-weight: 500; color: var(--dark-teal); line-height: 1.35; margin-bottom: 8px; }
    .ee-tile-score { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 300; color: var(--ink); line-height: 1; }
    .ee-tile-scorelab { font-size: 9.5px; color: var(--ink-muted); letter-spacing: 0.3px; }
    .ee-tile-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
    

/* ─── SPENDING FLOW DIAGRAM (from recommendations section, originally inline) ─── */
    
    .flow-wrap .diagram-header {
      background: #0d1e1f; border-radius: 8px 8px 0 0;
      padding: 36px 40px 30px; position: relative;
      overflow: hidden; border-top: 3px solid #006161;
    }
    .flow-wrap .diagram-header::before {
      content: ''; position: absolute; inset: 0;
      background-image: linear-gradient(rgba(0,97,97,0.07) 1px,transparent 1px), linear-gradient(90deg,rgba(0,97,97,0.07) 1px,transparent 1px);
      background-size: 48px 48px; pointer-events: none;
    }
    .flow-wrap .flow-eyebrow {
      font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 3px;
      text-transform: uppercase; color: #4dbbbb;
      margin-bottom: 14px; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1;
    }
    .flow-wrap .flow-eyebrow::before { content: ''; width: 24px; height: 2px; background: #006161; flex-shrink: 0; }
    .flow-wrap .flow-title {
      font-family: 'Newsreader', serif; font-weight: 300;
      font-size: clamp(26px,3.5vw,44px); line-height: 1.08;
      color: #fffcfa; letter-spacing: -0.03em; margin-bottom: 12px; position: relative; z-index: 1;
    }
    .flow-wrap .flow-subtitle {
      font-size: 13px; font-weight: 300; color: rgba(255,252,250,0.55);
      line-height: 1.75; max-width: 620px; position: relative; z-index: 1;
    }
    .flow-wrap .flow-body {
      background: #ffffff; border: 1px solid #ddd8d0; border-top: none;
      border-radius: 0 0 8px 8px; padding: 40px 36px 36px;
    }
    .flow-wrap .flow-legend {
      display: flex; gap: 20px; flex-wrap: wrap;
      margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid #ddd8d0;
    }
    .flow-wrap .flow-legend-item { display: flex; align-items: center; gap: 7px; font-family: 'Inter', sans-serif; font-size: 11px; color: #7a7068; }
    .flow-wrap .flow-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
    .flow-wrap .flow-row { display: flex; gap: 12px; align-items: stretch; }
    .flow-wrap .fnode {
      flex: 1; background: #ffffff;
      border: 1.5px solid #ddd8d0; border-radius: 6px;
      padding: 18px 16px 15px; position: relative; cursor: default;
    }
    .flow-wrap .fnode.hub { background: #0d1e1f; border-color: #006161; border-width: 2px; box-shadow: 0 4px 24px rgba(0,97,97,0.15); }
    .flow-wrap .fnode.floop { background: #fffbf0; border-top: 3px solid #c9a227; }
    .flow-wrap .fnode.problem { background: #fef9f9; border-top: 3px solid #b84b4b; }
    .flow-wrap .fnode.origin { border-top: 3px solid #4dbbbb; }
    .flow-wrap .fnode.endpoint { border-top: 3px solid #006161; }
    .flow-wrap .fnode-eye { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #7a7068; margin-bottom: 5px; }
    .flow-wrap .fnode.hub .fnode-eye { color: rgba(255,252,250,0.4); }
    .flow-wrap .fnode-title { font-family: 'Newsreader', serif; font-size: 14px; font-weight: 400; color: #004a4d; line-height: 1.25; margin-bottom: 6px; }
    .flow-wrap .fnode.hub .fnode-title { color: #fffcfa; font-size: 15px; }
    .flow-wrap .fnode-amt { font-family: 'Newsreader', serif; font-size: 24px; font-weight: 300; color: #006161; line-height: 1; display: block; margin-bottom: 5px; }
    .flow-wrap .fnode.hub .fnode-amt { color: #4dbbbb; font-size: 26px; }
    .flow-wrap .fnode.floop .fnode-amt { color: #7a5800; font-size: 17px; font-style: italic; }
    .flow-wrap .fnode.problem .fnode-amt { color: #b84b4b; font-size: 17px; }
    .flow-wrap .fnode-desc { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 300; color: #7a7068; line-height: 1.5; }
    .flow-wrap .fnode.hub .fnode-desc { color: rgba(255,252,250,0.38); }
    .flow-wrap .fnode-tip {
      display: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
      transform: translateX(-50%); background: #0d1e1f; color: rgba(255,252,250,0.85);
      font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 300; line-height: 1.6; padding: 10px 14px;
      border-radius: 4px; border: 1px solid rgba(77,187,187,0.3);
      width: 200px; z-index: 20; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    .flow-wrap .fnode:hover .fnode-tip { display: block; }
    .flow-wrap .fbadge {
      display: inline-block; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase; padding: 2px 8px; border-radius: 3px; margin-top: 6px;
    }
    .flow-wrap .fbadge.warn { background: #fde8e8; color: #b84b4b; }
    .flow-wrap .fbadge.floop { background: #fef3d0; color: #7a5800; }
    .flow-wrap .fbadge.info { background: #e8f2f2; color: #006161; }
    .flow-wrap .fconn { display: flex; gap: 12px; align-items: stretch; margin: 0; }
    .flow-wrap .fcol {
      flex: 1; display: flex; flex-direction: column; align-items: center;
      padding: 10px 8px 6px; gap: 3px;
    }
    .flow-wrap .fcol::before { content: ''; display: block; width: 2px; height: 14px; background: #006161; opacity: 0.3; border-radius: 1px; }
    .flow-wrap .fcol::after { content: ''; display: block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #006161; opacity: 0.45; margin-top: 1px; }
    .flow-wrap .fcol.gold::before { background: #c9a227; }
    .flow-wrap .fcol.gold::after  { border-top-color: #c9a227; }
    .flow-wrap .fcol.red::before  { background: #b84b4b; }
    .flow-wrap .fcol.red::after   { border-top-color: #b84b4b; }
    .flow-wrap .fcol.dim::before  { background: #7a7068; opacity: 0.2; }
    .flow-wrap .fcol.dim::after   { border-top-color: #7a7068; opacity: 0.25; }
    .flow-wrap .fcol.hidden { visibility: hidden; }
    .flow-wrap .fchip { font-family: 'Newsreader', serif; font-size: 12px; font-weight: 400; background: #006161; color: #fff; padding: 1px 9px; border-radius: 20px; white-space: nowrap; }
    .flow-wrap .fchip.gold  { background: #c9a227; }
    .flow-wrap .fchip.muted { background: #7a7068; }
    .flow-wrap .fchip.light { background: #4dbbbb; }
    .flow-wrap .fchip.red   { background: #b84b4b; }
    .flow-wrap .fcnote { font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 300; color: #7a7068; white-space: nowrap; text-align: center; }
    .flow-wrap .floop-back {
      margin: 20px 0 0; padding: 14px 20px;
      background: #fffbf0; border: 1px solid rgba(201,162,39,0.25);
      border-left: 4px solid #c9a227; border-radius: 0 6px 6px 0;
      display: flex; align-items: center; gap: 16px;
    }
    .flow-wrap .floop-icon { font-size: 24px; color: #c9a227; opacity: 0.7; flex-shrink: 0; }
    .flow-wrap .floop-lbl { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #7a5800; margin-bottom: 3px; }
    .flow-wrap .floop-body { font-family: 'Newsreader', serif; font-size: 14px; font-weight: 300; color: #4a4540; line-height: 1.5; }
    .flow-wrap .floop-body strong { font-weight: 600; color: #7a5800; }
    .flow-wrap .finsight {
      margin-top: 32px; padding: 22px 28px;
      background: #e8f2f2; border-left: 4px solid #006161; border-radius: 0 6px 6px 0;
    }
    .flow-wrap .finsight-lbl { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #006161; margin-bottom: 8px; }
    .flow-wrap .finsight p { font-family: 'Newsreader', serif; font-size: 16px; font-weight: 300; color: #1a1814; line-height: 1.62; font-style: italic; }
    .flow-wrap .finsight p strong { font-weight: 600; font-style: normal; color: #004a4d; }
    .flow-wrap .fdiag-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ddd8d0; display: flex; gap: 48px; flex-wrap: wrap; }
    .flow-wrap .fcol-title { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #7a7068; margin-bottom: 8px; }
    .flow-wrap .ffoot-col ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
    .flow-wrap .ffoot-col ul li { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 300; color: #7a7068; padding-left: 14px; position: relative; line-height: 1.5; }
    .flow-wrap .ffoot-col ul li::before { content: '—'; position: absolute; left: 0; color: #4dbbbb; font-size: 9px; top: 1px; }
    

/* ─── DETAILS CHEVRON ─── */
  details[open] .meth-chevron { transform: rotate(180deg); }

/* ════════════════════════════════════════════════════════════════════
 * AUTOPSY SECTION — "The Document That Disclaims Itself"
 * Added when the DNC published its commissioned-but-disclaimed autopsy.
 * ════════════════════════════════════════════════════════════════════ */

/* ─── HERO REVISIONS ─── */
.why-this-exists {
  background: #0d1e1f;
  color: var(--snow);
  border-left: 4px solid #4dbbbb;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 28px;
  margin: 0 0 var(--gap);
  position: relative;
}
.why-this-exists .wte-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: #4dbbbb; margin-bottom: 10px;
}
.why-this-exists .wte-body {
  font-family: 'Newsreader', serif;
  font-size: 15.5px; font-weight: 300; line-height: 1.65;
  color: rgba(255,252,250,0.92);
}
.why-this-exists .wte-body strong {
  color: var(--snow); font-weight: 500;
}

/* ─── AUTOPSY SECTION SHELL ─── */
.autopsy-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: #b84b4b;
  margin-bottom: 12px;
}
.autopsy-eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 2px; background: #b84b4b;
}
.autopsy-stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: var(--gap);
}
.autopsy-stat {
  background: var(--card-bg); border: 1px solid var(--rule);
  border-top: 3px solid #b84b4b; border-radius: var(--radius);
  padding: 18px 18px; position: relative;
}
.autopsy-stat-num {
  font-family: 'Newsreader', serif; font-size: 34px; font-weight: 300;
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.autopsy-stat-lbl {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-muted); margin-top: 5px;
}
.autopsy-stat-sub {
  font-size: 11.5px; font-weight: 300; color: var(--ink-light);
  line-height: 1.5; margin-top: 6px;
}

/* ─── INCOMPLETENESS MAP ─── */
.toc-map {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.toc-section {
  background: var(--card-bg); border: 1px solid var(--rule);
  border-left: 3px solid var(--rule); border-radius: 4px;
  padding: 12px 14px; transition: all 0.15s; cursor: default;
}
.toc-section.status-present       { border-left-color: #2e7d5f; }
.toc-section.status-flagged       { border-left-color: #c9a227; background: #fffbf0; }
.toc-section.status-blank         { border-left-color: #b84b4b; background: #fef9f9; }
.toc-section.status-pending       { border-left-color: #8a5000; background: #fff3e0; }
.toc-section.status-placeholder   { border-left-color: #b84b4b; background: #fef9f9; }
.toc-name {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--ink); line-height: 1.35; margin-bottom: 4px;
}
.toc-status {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.9px; text-transform: uppercase;
}
.toc-section.status-present .toc-status      { color: #2e7d5f; }
.toc-section.status-flagged .toc-status      { color: #8a5000; }
.toc-section.status-blank .toc-status,
.toc-section.status-placeholder .toc-status  { color: #b84b4b; }
.toc-section.status-pending .toc-status      { color: #8a5000; }
.toc-note {
  font-size: 11.5px; font-weight: 300; color: var(--ink-light);
  line-height: 1.55; margin-top: 6px;
}

/* ─── MARGINALIA BROWSER ─── */
.marg-controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.marg-filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.marg-filter-btn {
  background: var(--card-bg); border: 1px solid var(--rule); border-radius: 3px;
  padding: 5px 11px; font-family: 'Inter', sans-serif; font-size: 11.5px;
  color: var(--ink-light); cursor: pointer; transition: all 0.12s;
  letter-spacing: 0.2px;
}
.marg-filter-btn:hover { border-color: #b84b4b; color: #b84b4b; }
.marg-filter-btn.active {
  background: #b84b4b; border-color: #b84b4b; color: var(--white); font-weight: 500;
}
.marg-count {
  font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--ink-muted);
  margin-left: auto;
}
.marg-list { display: flex; flex-direction: column; gap: 10px; }
.marg-row {
  background: var(--card-bg); border: 1px solid var(--rule);
  border-left: 3px solid #b84b4b; border-radius: 4px;
  padding: 14px 16px; transition: border-color 0.12s;
}
.marg-row:hover { border-color: #b84b4b; }
.marg-row-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 6px;
}
.marg-type-tag {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  background: #fde8e8; color: #b84b4b; font-size: 10px; font-weight: 600;
}
.marg-type-tag.t-sourcing             { background: #fde8e8; color: #b84b4b; }
.marg-type-tag.t-factuality           { background: #fde8e8; color: #b84b4b; }
.marg-type-tag.t-math                 { background: #fef3d0; color: #7a5800; }
.marg-type-tag.t-methodology          { background: #fff3e0; color: #8a5000; }
.marg-type-tag.t-internal_contradiction { background: #f9dede; color: #6b1515; }
.marg-type-tag.t-structural_absence   { background: #e2eef8; color: #1a4fbb; }
.marg-type-tag.t-recycled_material    { background: #f0eaf8; color: #5c2d9e; }
.marg-page {
  color: var(--ink-muted); letter-spacing: 0.4px;
}
.marg-section {
  color: var(--ink-light); font-weight: 400; text-transform: none;
  letter-spacing: 0.2px; font-size: 11px;
}
.marg-text {
  font-family: 'Newsreader', serif; font-size: 14.5px; font-weight: 400;
  color: var(--ink); line-height: 1.55; margin-bottom: 6px;
}
.marg-attached {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 300;
  color: var(--ink-muted); line-height: 1.55;
  border-left: 2px solid var(--rule); padding-left: 10px; margin-top: 6px;
}
.marg-attached em { font-style: normal; color: var(--ink-muted); }
.marg-attached-label {
  display: block; font-family: 'Inter', sans-serif; font-size: 9.5px;
  font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 3px; opacity: 0.7;
}

/* ─── AUTHOR DIAGNOSIS CARD ─── */
.author-card {
  background: linear-gradient(180deg, #fffbf0 0%, var(--card-bg) 100%);
  border: 1px solid #e8ddb0; border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: var(--gap);
}
.author-card .ac-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase; color: #8a5000;
  margin-bottom: 8px;
}
.author-card .ac-title {
  font-family: 'Newsreader', serif; font-size: 22px; font-weight: 400;
  color: var(--ink); line-height: 1.25; margin-bottom: 12px;
}
.author-card .ac-body {
  font-size: 14px; font-weight: 300; color: var(--ink-light);
  line-height: 1.72; margin-bottom: 14px;
}
.author-card .ac-emphasis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--card-bg); border: 1px solid var(--rule);
  border-radius: 6px; padding: 16px 18px; margin-top: 12px;
}
.author-card .ac-col-label {
  font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 8px;
}
.author-card .ac-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.author-card .ac-col li {
  font-size: 12.5px; color: var(--ink); padding-left: 14px; position: relative;
  line-height: 1.5;
}
.author-card .ac-col li::before {
  content: '—'; position: absolute; left: 0; color: #c9a227; font-size: 11px;
}

/* ─── DISCLAIMER PULL QUOTE ─── */
.disclaimer-quote {
  background: #0d1e1f; border-radius: var(--radius);
  padding: 32px 36px; margin-bottom: var(--gap); position: relative;
  border-left: 4px solid #b84b4b;
}
.disclaimer-quote .dq-text {
  font-family: 'Newsreader', serif; font-size: clamp(17px, 2vw, 22px);
  font-weight: 300; color: var(--snow); line-height: 1.55; font-style: italic;
}
.disclaimer-quote .dq-attr {
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: #b84b4b;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .author-card .ac-emphasis { grid-template-columns: 1fr; }
}

/* ─── DISCLAIMED AUTHOR SCORE BARS ─── */
.author-score-bars {
  display: flex; flex-direction: column; gap: 14px;
}
.asb-row {
  display: grid; grid-template-columns: 220px 1fr 36px;
  align-items: center; gap: 14px;
}
.asb-label {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--ink); text-align: right; line-height: 1.3;
}
.asb-label small {
  display: block; font-size: 10px; font-weight: 400; color: var(--ink-muted);
  letter-spacing: 0.4px; margin-top: 2px;
}
.asb-track {
  position: relative; height: 12px; background: #f0ede8; border-radius: 3px;
  overflow: hidden;
}
.asb-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #b84b4b 0%, #c97a2e 100%);
  border-radius: 3px; transition: width 0.5s var(--ease, ease);
}
.asb-fill.zero { background: repeating-linear-gradient(45deg, #f0ede8 0, #f0ede8 4px, #fff 4px, #fff 8px); border: 1px dashed #b84b4b; }
.asb-num {
  font-family: 'Newsreader', serif; font-size: 18px; font-weight: 400;
  color: var(--ink); text-align: left; line-height: 1;
}
.asb-num.zero { color: #b84b4b; font-style: italic; font-size: 14px; }
.asb-evidence {
  grid-column: 1 / -1; font-size: 11.5px; font-weight: 300;
  color: var(--ink-muted); line-height: 1.55;
  margin-top: -8px; padding-left: 234px; font-style: italic;
}

.asb-row.zero .asb-label { color: var(--ink-muted); }

@media (max-width: 800px) {
  .asb-row { grid-template-columns: 1fr; gap: 6px; }
  .asb-label { text-align: left; }
  .asb-evidence { padding-left: 0; }
}

/* ─── FAULT-LINE LEGEND (added when disclaimed-author marker is present) ─── */
.fls-legend {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule);
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-muted);
}
.fls-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.fls-legend-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fef9f9; border: 2px dashed #b84b4b;
}

/* ─── MARGINALIA — verified badge + editorial note ─── */
.marg-row.refined { border-left-color: #2e7d5f; }
.marg-row.refined:hover { border-color: #2e7d5f; }
.marg-refined {
  margin-left: auto;
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: #2e7d5f; background: #d6f0e7;
  padding: 2px 8px; border-radius: 3px;
}
.marg-editorial {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 300;
  color: var(--ink-light); line-height: 1.55;
}
.marg-editorial-label {
  display: block; font-family: 'Inter', sans-serif; font-size: 9.5px;
  font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: #2e7d5f; margin-bottom: 3px;
}

/* ─── MARGIN OBJECTIONS DENSITY MAP ─── */
.marg-heatmap-wrap {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
}
.marg-heatmap {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 700px;
}
.marg-hm-colheader {
  display: flex; gap: 4px; align-items: center;
  padding-bottom: 6px; margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.marg-hm-colheader-spacer { flex: 0 0 150px; }
.marg-hm-colheader-labels { display: flex; gap: 4px; flex: 1; }
.marg-hm-collabel {
  flex: 1; font-family: 'Inter', sans-serif; font-size: 9.5px;
  font-weight: 500; letter-spacing: 0.3px; color: var(--ink-muted);
  text-align: center; min-width: 0;
}
.marg-hm-row {
  display: flex; gap: 4px; align-items: stretch;
  transition: background 0.12s;
}
.marg-hm-row.row-active { background: rgba(184, 75, 75, 0.05); border-radius: 4px; }
.marg-hm-rowlabel {
  flex: 0 0 150px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 4px 10px 4px 6px;
  background: transparent; border: 1px solid transparent;
  border-radius: 3px; cursor: pointer; transition: all 0.12s;
  font-family: 'Inter', sans-serif;
}
.marg-hm-rowlabel:hover {
  border-color: rgba(184, 75, 75, 0.35);
  background: rgba(184, 75, 75, 0.04);
}
.marg-hm-row.row-active .marg-hm-rowlabel {
  border-color: #b84b4b;
  background: rgba(184, 75, 75, 0.08);
}
.marg-hm-typename {
  font-size: 11.5px; font-weight: 500; color: var(--ink);
  letter-spacing: 0.1px;
}
.marg-hm-row.row-active .marg-hm-typename { color: #b84b4b; }
.marg-hm-rowcount {
  font-family: 'Newsreader', serif; font-size: 13px; font-weight: 400;
  color: var(--ink-muted);
}
.marg-hm-row.row-active .marg-hm-rowcount { color: #b84b4b; }
.marg-hm-cells { display: flex; gap: 4px; flex: 1; }
.marg-hm-cell {
  flex: 1; min-width: 0;
  height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--white);
  border: 1.5px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.12s;
}
.marg-hm-cell.empty {
  color: var(--ink-muted);
  background: #f5f3ef !important;
  cursor: default;
}
.marg-hm-cell:hover:not(.empty) {
  transform: scale(1.08);
  border-color: var(--ink);
}
.marg-hm-cell.active {
  border-color: var(--ink);
  outline: 2px solid #b84b4b;
  outline-offset: 1px;
}

/* ─── COMPACT LIST (drill-down) ─── */
.marg-list.marg-list-compact { gap: 8px; }
.marg-list.marg-list-compact .marg-row { padding: 10px 14px; }
.marg-list.marg-list-compact .marg-text {
  font-size: 13.5px; line-height: 1.5; margin-bottom: 4px;
}
.marg-list.marg-list-compact .marg-attached,
.marg-list.marg-list-compact .marg-editorial { font-size: 11.5px; }

@media (max-width: 800px) {
  .marg-hm-rowlabel { flex-basis: 110px; }
  .marg-hm-colheader-spacer { flex-basis: 110px; }
  .marg-hm-typename { font-size: 10.5px; }
  .marg-hm-cell { height: 28px; font-size: 10.5px; }
}

/* ════════════════════════════════════════════════════════════════════
 * VERTICAL RAIL LAYOUT + HOME PAGE + PAGE ROUTING
 *
 * Added when we ported from the horizontal sticky-nav layout to the
 * vertical collapsible rail. Reuses existing color vars (--stormy-teal,
 * --paper, --rail-bg etc.) so the palette stays identical to the
 * pre-port live site.
 * ════════════════════════════════════════════════════════════════════ */

/* New variables specific to the rail */
:root {
  --rail-bg-2:    #0d1e1f;
  --rail-ink:     #fffcfa;
  --rail-muted:   rgba(255,252,250,0.50);
  --rail-rule:    rgba(255,252,250,0.10);
  --rail-w:       260px;
  --rail-w-mini:  72px;
  --max-w-page:   1320px;
  --rule-2:       #ece8df;
  --positive:     #2e7d5f;
  --pending:      #8a5000;
  --f-display:    'Newsreader', serif;
  --f-body:       'Inter', sans-serif;
}

/* The old horizontal sticky nav is hidden once the rail exists.
   Kept in source so the legacy file can still use it. */
.sticky-nav { display: none !important; }
.site-header { display: none !important; }
.limitation-banner { display: none !important; }

/* ─── LAYOUT ─── */
body { background: var(--paper); }
.layout {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.25s cubic-bezier(0.16,1,0.3,1);
}
.layout.rail-mini { grid-template-columns: var(--rail-w-mini) 1fr; }

/* ─── THE RAIL ─── */
.rail {
  background: var(--rail-bg-2);
  color: var(--rail-ink);
  position: sticky; top: 0; align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid #0a1717;
  z-index: 50;
}
.rail-header {
  /* Toggle button only — wordmark was removed because it didn't add
     information for a user who's already navigating the site it labels. */
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--rail-rule);
  margin-bottom: 16px;
}
.rail-wordmark {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--rail-ink); line-height: 1;
}
.rail-wordmark em { font-style: italic; color: #4dbbbb; font-weight: 400; }
.rail-toggle {
  background: none; border: 1px solid var(--rail-rule);
  border-radius: 3px; padding: 6px 8px;
  color: var(--rail-muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s; line-height: 0;
}
.rail-toggle:hover { color: var(--rail-ink); border-color: rgba(255,252,250,0.30); }
.rail-group { padding: 0 8px; margin-bottom: 24px; }
.rail-group-label {
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rail-muted);
  margin-bottom: 12px; padding-left: 6px;
}
.rail-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  font-family: var(--f-body);
  font-size: 13.5px; font-weight: 400;
  color: rgba(255,252,250,0.78); text-decoration: none;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-bottom: 2px; cursor: pointer;
}
.rail-link:hover { background: rgba(255,252,250,0.04); color: var(--rail-ink); }
.rail-link.active {
  background: rgba(0,97,97,0.30);
  color: var(--rail-ink);
  border-left-color: #4dbbbb;
  font-weight: 500;
}
.rail-link.active.is-autopsy {
  background: rgba(184,75,75,0.18);
  border-left-color: #b84b4b;
}
.rail-link-icon {
  flex-shrink: 0; width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: currentColor; opacity: 0.7;
}
.rail-link.active .rail-link-icon { opacity: 1; }
.rail-link-label {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-link-badge {
  flex-shrink: 0; font-size: 9.5px; font-weight: 600;
  background: #b84b4b; color: var(--rail-ink);
  padding: 1px 6px; border-radius: 8px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.rail-link-lock {
  flex-shrink: 0; color: rgba(255,252,250,0.35); opacity: 0.7;
}
.rail-link:hover .rail-link-lock { color: rgba(255,252,250,0.55); }
.rail-footer {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--rail-rule);
}
.rail-meta {
  font-family: var(--f-body);
  font-size: 10.5px;
  color: var(--rail-muted); line-height: 1.7;
}
.rail-meta strong { color: rgba(255,252,250,0.85); font-weight: 500; }

/* Mini mode */
.rail-mini .rail-wordmark { display: none; }
.rail-mini .rail-group-label { font-size: 0; height: 1px; background: var(--rail-rule); margin: 12px 4px; }
.rail-mini .rail-link-label,
.rail-mini .rail-link-badge,
.rail-mini .rail-link-lock { display: none; }
.rail-mini .rail-link { justify-content: center; padding: 12px 0; }
.rail-mini .rail-link-icon { width: 20px; height: 20px; opacity: 0.9; }
.rail-mini .rail-footer { display: none; }
.rail-mini .rail-header { padding-bottom: 16px; }

/* ─── MAIN AREA ─── */
.main-area { padding: 0; min-width: 0; }
.main-inner-v {
  max-width: var(--max-w-page);
  margin: 0 auto;
  padding: 56px 64px 96px;
}
.page-v { display: none; }
.page-v.active { display: block; }

/* ─── HOME PAGE ─── */
.home-hero {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.home-eyebrow {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--stormy-teal);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.home-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1.5px;
  background: var(--stormy-teal);
}
.home-hero h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px; max-width: 13ch;
}
.home-hero h1 em {
  font-style: italic; color: var(--stormy-teal); font-weight: 300;
}
.home-hero .dek {
  font-family: var(--f-display);
  font-weight: 300; font-size: 19px;
  line-height: 1.55; color: var(--ink-light);
  /* Wider than typical body width so the hero copy doesn't read as a
     narrow column floating in a wide page. ~88 characters at this size
     still stays inside the readability range for serif body text. */
  max-width: 88ch; margin-bottom: 32px;
}
.home-hero .meta {
  display: flex; gap: 36px; align-items: baseline; flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-family: var(--f-display);
  font-size: 30px; font-weight: 400;
  line-height: 1; color: var(--ink);
  letter-spacing: -0.01em;
}
.meta-label {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.7px; text-transform: uppercase;
  color: var(--ink-muted);
}
.meta-divider {
  width: 1px; height: 30px; background: var(--rule); align-self: center;
}
.start-block { margin-bottom: 64px; }
.start-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; gap: 24px;
}
.start-h2 {
  font-family: var(--f-display);
  font-weight: 400; font-size: 28px;
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink);
}
.start-sub {
  font-family: var(--f-body);
  font-size: 12.5px; color: var(--ink-muted);
  font-weight: 400; letter-spacing: 0.3px;
  flex-shrink: 0;
}
.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.start-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--stormy-teal);
  border-radius: var(--radius);
  padding: 28px 30px 24px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.start-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,97,97,0.10);
  border-color: var(--stormy-teal);
}
.start-card.autopsy { border-top-color: #b84b4b; }
.start-card.autopsy:hover {
  border-color: #b84b4b;
  box-shadow: 0 4px 18px rgba(184,75,75,0.12);
}
.start-card .card-eyebrow-v {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--stormy-teal); margin-bottom: 10px;
}
.start-card.autopsy .card-eyebrow-v { color: #b84b4b; }
.start-card .card-title-v {
  font-family: var(--f-display);
  font-weight: 400; font-size: 21px;
  line-height: 1.25; color: var(--ink);
  margin-bottom: 10px;
}
.start-card .card-text-v {
  font-family: var(--f-body);
  font-size: 13px; font-weight: 300;
  color: var(--ink-light); line-height: 1.6;
  flex: 1; margin-bottom: 18px;
}
.start-card .card-arrow-v {
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.5px; color: var(--stormy-teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.start-card.autopsy .card-arrow-v { color: #b84b4b; }
.start-card .card-arrow-v::after { content: '→'; transition: transform 0.15s; }
.start-card:hover .card-arrow-v::after { transform: translateX(3px); }
.home-pull {
  background: var(--rail-bg-2);
  color: var(--rail-ink);
  padding: 40px 44px;
  border-radius: var(--radius);
  border-left: 4px solid #4dbbbb;
  margin-bottom: 64px;
}
.home-pull .label {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: #4dbbbb; margin-bottom: 14px;
}
.home-pull .body {
  font-family: var(--f-display);
  font-weight: 300; font-size: 22px;
  line-height: 1.5; color: var(--rail-ink);
  /* Widened so the Through Line block doesn't read as a narrow column
     inside a wide dark panel. ~78ch at 22px stays inside the
     readability range without becoming a long line. */
  max-width: 78ch;
}
.home-pull .body strong { font-weight: 500; color: #4dbbbb; }
.home-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--rule);
}
.home-aud-item .label {
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 8px;
}
.home-aud-item .text {
  font-family: var(--f-display);
  font-size: 15px; font-weight: 400;
  color: var(--ink-light); line-height: 1.55;
}

/* ─── Section headers used inside non-home pages ─── */
.page-section-v { margin-bottom: 36px; }
.page-section-v .section-eyebrow-v {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--stormy-teal);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.page-section-v .section-eyebrow-v::before {
  content: ''; display: inline-block; width: 22px; height: 1.5px;
  background: var(--stormy-teal);
}
.page-section-v.autopsy .section-eyebrow-v,
.page-section-v.autopsy .section-eyebrow-v::before { color: #b84b4b; background-color: #b84b4b; }
.page-section-v .section-eyebrow-v { /* avoid background paint */ }
.page-section-v.autopsy .section-eyebrow-v { color: #b84b4b; }
.page-section-v.autopsy .section-eyebrow-v::before { background: #b84b4b; }
.page-section-v .section-h2-v {
  font-family: var(--f-display);
  font-weight: 400; font-size: 36px;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px; max-width: 28ch;
}
.page-section-v .section-dek-v {
  font-family: var(--f-display);
  font-weight: 300; font-size: 17px;
  line-height: 1.6; color: var(--ink-light);
  max-width: 62ch; margin-bottom: 28px;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .layout { grid-template-columns: var(--rail-w-mini) 1fr; }
  .rail .rail-wordmark,
  .rail .rail-link-label,
  .rail .rail-link-badge,
  .rail .rail-link-lock,
  .rail .rail-footer { display: none; }
  .rail .rail-link { justify-content: center; padding: 12px 0; }
  .rail-group-label { font-size: 0; height: 1px; background: var(--rail-rule); margin: 12px 4px; }
  .main-inner-v { padding: 40px 32px 80px; }
  .start-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto;
    flex-direction: row; overflow-x: auto;
    padding: 12px 16px;
  }
  .rail-header, .rail-footer { display: none; }
  .rail-group { display: flex; gap: 4px; margin-bottom: 0; padding: 0; }
  .rail-group-label { display: none; }
  .rail-link { flex-shrink: 0; padding: 8px 12px; }
  .rail-link-label { display: inline; }
  .start-grid { grid-template-columns: 1fr; }
  .home-audience { grid-template-columns: 1fr; gap: 18px; }
}

/* ─── RAIL CONTACT FORM ─── */
.rail-contact {
  margin-top: 24px;
  padding: 16px 8px 0;
  border-top: 1px solid var(--rail-rule);
}
.rail-contact-label {
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rail-muted);
  margin-bottom: 12px;
  padding-left: 4px;
}
.rail-contact-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rail-contact-input {
  background: rgba(255,252,250,0.04);
  border: 1px solid var(--rail-rule);
  border-radius: 3px;
  padding: 8px 10px;
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--rail-ink);
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.rail-contact-input::placeholder { color: rgba(255,252,250,0.32); }
.rail-contact-input:focus {
  outline: none;
  border-color: #4dbbbb;
  background: rgba(77,187,187,0.06);
}
.rail-contact-textarea {
  resize: vertical;
  min-height: 48px;
  font-family: var(--f-body);
  line-height: 1.45;
}
.rail-contact-button {
  background: #006161;
  color: var(--rail-ink);
  border: 1px solid #006161;
  border-radius: 3px;
  padding: 8px 10px;
  font-family: var(--f-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.rail-contact-button:hover { background: #4dbbbb; border-color: #4dbbbb; color: #0d1e1f; }
.rail-contact-button:disabled {
  background: rgba(255,252,250,0.12);
  border-color: var(--rail-rule);
  color: rgba(255,252,250,0.4);
  cursor: not-allowed;
}
.rail-contact-status {
  font-family: var(--f-body);
  font-size: 10.5px;
  color: var(--rail-muted);
  min-height: 14px;
  line-height: 1.4;
}
.rail-contact-status.success { color: #4dbbbb; }
.rail-contact-status.error   { color: #ff8a8a; }

/* Hide form in mini-rail mode + on mobile horizontal scroll mode */
.rail-mini .rail-contact { display: none; }
@media (max-width: 1100px) {
  .rail-contact { display: none; }
}
@media (max-width: 720px) {
  .rail-contact { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
 * "WHERE THE MONEY WENT" BLOCK + FOUR-UP START GRID + MONEY PAGE
 *
 * The Money block sits inside the Home hero area, after the H1/dek/meta
 * row, before the Where-to-start cards. It's the project's TLDR.
 * Visually prominent without overpowering the H1.
 * ════════════════════════════════════════════════════════════════════ */

.money-block {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-top: 3px solid #b84b4b;
  border-radius: var(--radius);
  padding: 32px 36px 28px;
  margin-bottom: 56px;
}
.money-eyebrow {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: #b84b4b;
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 10px;
}
.money-eyebrow::before {
  content: ''; display: inline-block; width: 22px; height: 1.5px; background: #b84b4b;
}
.money-h2 {
  font-family: var(--f-display);
  font-weight: 400; font-size: 26px;
  line-height: 1.2; color: var(--ink);
  margin-bottom: 24px;
  max-width: 30ch;
}
.money-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.money-stat {
  padding: 22px 24px 18px 0;
  border-right: 1px solid var(--rule);
}
.money-stat:nth-child(4n) { border-right: none; padding-right: 0; }
.money-stat:first-child { padding-left: 0; }
.money-stat + .money-stat { padding-left: 24px; }
.money-stats .money-stat { padding-right: 24px; }
.money-stats .money-stat:nth-child(4n) { padding-right: 0; }
.money-num {
  font-family: var(--f-display);
  font-size: 42px; font-weight: 400;
  line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.money-lbl {
  font-family: var(--f-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: #b84b4b;
  margin-bottom: 6px;
}
.money-sub {
  font-family: var(--f-body);
  font-size: 12px; font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.55;
}
.money-footnote {
  font-family: var(--f-body);
  font-size: 12px; font-weight: 300;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  max-width: 88ch;
}
.money-footnote em { color: var(--ink-light); font-style: italic; }

/* Four-up grid for the start cards */
.start-grid.four-up {
  grid-template-columns: repeat(4, 1fr);
}
.start-card.money {
  border-top-color: #b84b4b;
}
.start-card.money .card-eyebrow-v,
.start-card.money .card-arrow-v {
  color: #b84b4b;
}
.start-card.money:hover {
  border-color: #b84b4b;
  box-shadow: 0 4px 18px rgba(184,75,75,0.12);
}

/* ─── MONEY PAGE — section eyebrow uses the red accent ─── */
.page-v[data-page="money"] .section-eyebrow-v {
  color: #b84b4b;
}
.page-v[data-page="money"] .section-eyebrow-v::before {
  background: #b84b4b;
}

/* Responsive */
@media (max-width: 1100px) {
  .money-stats { grid-template-columns: repeat(2, 1fr); }
  .money-stat { border-right: none !important; border-bottom: 1px solid var(--rule); padding: 18px 24px 18px 0 !important; }
  .money-stat:nth-child(2n) { padding-right: 0 !important; }
  .money-stat:nth-child(2n + 1) { border-right: 1px solid var(--rule) !important; padding-right: 24px !important; }
  .money-stat:nth-last-child(-n+2) { border-bottom: none; }
  .start-grid.four-up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .money-stats { grid-template-columns: 1fr; }
  .money-stat { padding: 18px 0 !important; border-right: none !important; border-bottom: 1px solid var(--rule); }
  .money-stat:last-child { border-bottom: none; }
  .start-grid.four-up { grid-template-columns: 1fr; }
  .money-h2 { font-size: 22px; }
  .money-num { font-size: 36px; }
}

/* ════════════════════════════════════════════════════════════════════
 * COLLAPSIBLE CARDS — used in the autopsy section for long visualizations
 *
 * Wraps the existing .card pattern in <details>. The summary is the
 * card-title; clicking it expands/collapses the rest. Native HTML
 * behavior, no JS needed.
 * ════════════════════════════════════════════════════════════════════ */
.card-collapsible {
  display: block;
}
.card-collapsible > .card-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin: 0;
}
.card-collapsible > .card-summary::-webkit-details-marker { display: none; }
.card-collapsible > .card-summary .card-title {
  flex: 1;
  display: inline-block;
}
.card-collapsible > .card-summary .card-summary-hint {
  flex-shrink: 0;
  font-family: var(--f-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--stormy-teal);
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.card-collapsible > .card-summary:hover .card-summary-hint {
  border-color: var(--stormy-teal);
  background: var(--accent-light);
}
.card-collapsible[open] > .card-summary .card-summary-hint::after { content: ''; }
.card-collapsible[open] > .card-summary .card-summary-hint {
  background: var(--stormy-teal);
  color: var(--snow);
  border-color: var(--stormy-teal);
}
.card-collapsible[open] > .card-summary .card-summary-hint::before { content: 'Collapse'; }
.card-collapsible > .card-summary .card-summary-hint::before { content: 'Expand'; }
.card-collapsible > .card-summary .card-summary-hint { font-size: 0; }
.card-collapsible > .card-summary .card-summary-hint::before { font-size: 11px; }

/* Follow the Money rail link uses the red accent on active. */
.rail-link.is-money.active {
  background: rgba(184,75,75,0.18);
  border-left-color: #b84b4b;
}

/* Follow the Money page intro reads full content width — the dek is
   doing setup work, not paragraph reading, so the 62ch cap was making
   it look like a narrow column floating in the page. */
.page-v[data-page="money"] .section-dek-v {
  max-width: none;
}

/* ════════════════════════════════════════════════════════════════════
 * WHO PAYS THE BILL — visualization on the Follow the Money page
 *
 * Two-column layout: left side is real Pew/Catalist 2024 voter data
 * (bars with actual percentages); right side is an editorial observation
 * about the consultant cohort, explicitly tagged as research in progress.
 *
 * The asymmetry between a populated chart on the left and a sparse
 * "we haven't audited this yet" panel on the right is itself the point.
 * ════════════════════════════════════════════════════════════════════ */

.who-pays-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,252,250,0.10);
}
.who-pays-eyebrow {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: #b84b4b;
  margin-bottom: 12px;
}
.who-pays-title {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 400;
  color: #fffcfa; line-height: 1.3;
  max-width: 42ch;
  margin: 0;
}
.who-pays-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* align-items: start so the right column sizes to its own content
     instead of stretching to match the taller left column. Was causing
     the dashed-border editorial box to look like it was floating away
     from its content. */
  align-items: start;
  gap: 36px;
  margin-bottom: 28px;
}
.who-pays-col-label {
  font-family: var(--f-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: #4dbbbb;
  margin-bottom: 6px;
}
.who-pays-col-sub {
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 300;
  color: rgba(255,252,250,0.55);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Left column — bars */
.who-pays-bars {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.who-pays-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 42px;
  align-items: center;
  gap: 12px;
}
.who-pays-bar-name {
  font-family: var(--f-body);
  font-size: 12px; font-weight: 500;
  color: rgba(255,252,250,0.92);
  text-align: right;
}
.who-pays-bar-row.low .who-pays-bar-name {
  color: rgba(255,252,250,0.55);
}
.who-pays-bar-track {
  position: relative;
  height: 14px;
  background: rgba(255,252,250,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.who-pays-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.who-pays-bar-num {
  font-family: var(--f-display);
  font-size: 17px; font-weight: 400;
  color: #4dbbbb;
  line-height: 1;
  text-align: left;
}
.who-pays-bar-row.low .who-pays-bar-num {
  color: rgba(255,252,250,0.55);
}
.who-pays-col-note {
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 300;
  color: rgba(255,252,250,0.65);
  line-height: 1.65;
  padding-top: 14px;
  border-top: 1px solid rgba(255,252,250,0.08);
}

/* Right column — editorial cohort panel */
.who-pays-cohort {
  background: rgba(255,252,250,0.04);
  border: 1px dashed rgba(255,252,250,0.18);
  border-radius: 6px;
  padding: 22px 22px 18px;
}
.who-pays-cohort-label {
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: #b84b4b;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255,252,250,0.15);
}
.who-pays-cohort-body {
  font-family: var(--f-body);
  font-size: 12.5px; font-weight: 300;
  color: rgba(255,252,250,0.78);
  line-height: 1.65;
  margin: 0 0 12px 0;
}
.who-pays-cohort-body:last-child { margin-bottom: 0; }
.who-pays-cohort-body strong {
  color: rgba(255,252,250,0.95);
  font-weight: 500;
}

/* Conclusion below the grid */
.who-pays-conclusion {
  font-family: var(--f-body);
  font-size: 13.5px; font-weight: 300;
  color: rgba(255,252,250,0.85);
  line-height: 1.7;
  padding-top: 22px;
  border-top: 1px solid rgba(255,252,250,0.10);
}
.who-pays-conclusion strong {
  display: block;
  font-family: var(--f-display);
  font-size: 18px; font-weight: 400;
  color: #fffcfa;
  line-height: 1.4;
  margin-bottom: 12px;
}

@media (max-width: 800px) {
  .who-pays-grid { grid-template-columns: 1fr; gap: 28px; }
  .who-pays-bar-row { grid-template-columns: 100px 1fr 38px; gap: 8px; }
  .who-pays-bar-name { font-size: 11px; }
}

/* ─── LEAN PROFILES — 3-up grid that centers the orphan row ─── */
.lean-profiles-3up {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: var(--gap);
}
.lean-profiles-3up > * {
  /* Three per row at desktop. The (1 / 3) calc accounts for the 16px gap. */
  flex: 0 1 calc((100% - 32px) / 3);
  min-width: 280px;
  max-width: calc((100% - 32px) / 3);
}
@media (max-width: 980px) {
  .lean-profiles-3up > * {
    flex: 0 1 calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}
@media (max-width: 640px) {
  .lean-profiles-3up > * {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════
 * AMPLIFICATION TOOLKIT
 * ════════════════════════════════════════════════════════════════════ */

/* Rail footer CTA button (replaces the old .rail-meta block) */
.rail-toolkit-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--rail-ink, #fffcfa); text-decoration: none;
  background: linear-gradient(135deg, #006161, #0a7d7d);
  border: 1px solid rgba(77,187,187,0.45);
  border-radius: 6px; cursor: pointer;
  transition: filter 0.15s, transform 0.05s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(0,97,97,0.35);
}
.rail-toolkit-btn:hover { filter: brightness(1.12); box-shadow: 0 3px 14px rgba(0,97,97,0.5); }
.rail-toolkit-btn:active { transform: translateY(1px); }
.rail-toolkit-icon { flex-shrink: 0; display: inline-flex; opacity: 0.95; }
.rail-toolkit-label { flex: 1; min-width: 0; }
.rail-mini .rail-toolkit-label { display: none; }
.rail-mini .rail-toolkit-btn { justify-content: center; padding: 11px 0; }

/* Toolkit page hero */
.tk-hero {
  background: linear-gradient(135deg, #0d2426 0%, #0a3436 100%);
  border-radius: 8px; border: 1px solid rgba(77,187,187,0.22);
  border-left: 4px solid #4dbbbb;
  padding: 34px 36px; margin-bottom: 26px;
}
.tk-hero-eyebrow {
  font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #4dbbbb; margin-bottom: 12px;
}
.tk-hero-title {
  font-family: 'Newsreader', serif; font-weight: 400;
  font-size: 32px; line-height: 1.15; letter-spacing: -0.02em;
  color: #fffcfa; margin: 0 0 14px;
}
.tk-hero-dek {
  font-family: var(--f-body); font-weight: 300; font-size: 14.5px;
  line-height: 1.75; color: rgba(255,252,250,0.72);
  max-width: 640px; margin: 0;
}

/* Share-link row */
.tk-linkrow {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  align-items: center;
  background: var(--card-bg, #fff); border: 1px solid var(--rule, #e6e2db);
  border-left: 3px solid var(--stormy-teal);
  border-radius: 6px; padding: 16px 20px; margin-bottom: 34px;
}
.tk-linkrow-label {
  font-family: var(--f-body); font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--stormy-teal);
  white-space: nowrap;
}
.tk-linkrow-input {
  font-family: var(--f-body); font-size: 14px; color: var(--ink);
  padding: 8px 12px; border: 1px solid var(--rule, #e6e2db);
  border-radius: 4px; background: var(--paper, #f5f3ef); width: 100%;
}
.tk-linkrow-input:focus { outline: none; border-color: var(--stormy-teal); background: #fff; }
.tk-linkrow-note {
  grid-column: 2; font-size: 11.5px; color: var(--ink-muted);
  font-style: italic; line-height: 1.5;
}

/* Copy blocks */
.tk-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-bottom: 8px;
}
.tk-copyblock {
  display: flex; flex-direction: column;
  background: var(--card-bg, #fff); border: 1px solid var(--rule, #e6e2db);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tk-copyblock-wide { grid-column: 1 / -1; }
.tk-copyblock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #eef4f3;
  border-bottom: 1px solid var(--rule, #e6e2db);
}
.tk-copyblock-label {
  font-family: var(--f-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--stormy-teal);
}
.tk-copy {
  font-family: var(--f-body); font-size: 12px; font-weight: 500;
  color: #fff; background: var(--stormy-teal);
  border: none; border-radius: 4px; padding: 6px 16px; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
}
.tk-copy:hover { background: var(--dark-teal); }
.tk-copy.is-copied { background: #2f8f5b; }
.tk-copytext {
  font-family: var(--f-body); font-size: 14px; font-weight: 300;
  line-height: 1.7; color: var(--ink);
  padding: 18px 18px 20px; white-space: pre-wrap; word-break: break-word;
  flex: 1;
}

/* Infographic gallery */
.tk-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.tk-figure {
  margin: 0; display: flex; flex-direction: column;
  border: 1px solid var(--rule, #e6e2db); border-radius: 8px;
  overflow: hidden; background: var(--card-bg, #fff);
}
.tk-figure img { display: block; width: 100%; height: auto; }
.tk-figure.is-empty .tk-figthumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; background: repeating-linear-gradient(45deg, #f0ede8, #f0ede8 10px, #eae6df 10px, #eae6df 20px);
  color: var(--ink-muted); font-family: 'Newsreader', serif; font-size: 44px;
  border-bottom: 1px solid var(--rule, #e6e2db);
}
.tk-figure.is-empty .tk-figthumb::after {
  content: attr(data-empty-label); position: absolute; margin-top: 74px;
  font-family: var(--f-body); font-size: 11px; letter-spacing: 0.4px;
  font-weight: 400; color: var(--ink-muted); text-align: center; padding: 0 10px;
}
.tk-figcap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px;
}
.tk-figcap-text {
  font-family: var(--f-body); font-size: 12.5px; font-weight: 400;
  color: var(--ink-light); line-height: 1.35;
}
.tk-figcap-num {
  font-family: var(--f-body); font-size: 9.5px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--stormy-teal);
  display: block; margin-bottom: 3px;
}
.tk-dl {
  flex-shrink: 0; font-family: var(--f-body); font-size: 11.5px; font-weight: 500;
  color: var(--stormy-teal); text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(0,97,97,0.35); border-radius: 4px; padding: 5px 10px;
  transition: background 0.15s, color 0.15s;
}
.tk-dl:hover { background: var(--stormy-teal); color: #fff; }
.tk-figure.is-empty .tk-dl { opacity: 0.4; pointer-events: none; }

@media (max-width: 720px) {
  .tk-grid { grid-template-columns: 1fr; }
  .tk-copyblock-wide { grid-column: auto; }
  .tk-hero { padding: 26px 22px; }
  .tk-hero-title { font-size: 26px; }
  .tk-linkrow { grid-template-columns: 1fr; }
  .tk-linkrow-note { grid-column: auto; }
}
