  :root{
    /* ============ THE LEDGER — design tokens ============ */
    --navy:#0A1A33;               /* header/footer/flagship background */
    --navy-2:#0E2344;             /* flagship gradient end */
    --heading:#14161C;            /* headings & primary text (ink) */
    --steel:#8A6A3C;              /* kept var name for compat — now the gold-brown link/accent tone */
    --steel-light:rgba(184,146,90,0.12);  /* subtle gold tint background */
    --purple-dark:#8A6A3C;        /* kept var name for compat — gold-brown for outlined buttons */
    --purple-deep:#6B4F27;
    --gold:#1E7A4C;                /* kept var name for compat — "live" accent, now ledger green */
    --gold-soft:rgba(30,122,76,0.12);
    --gold-bright:#B8925A;
    --green:#1E7A4C;
    --green-dark:#155C39;
    --red:#A63A32;
    --bg:#FAF7F0;                 /* ivory page background */
    --card:#FFFFFF;               /* paper */
    --line:#E6E1D3;                /* warm hairline border */
    --ink:#14161C;
    --ink-soft:#585B66;
    --ink-faint:#8B8E99;
    --radius:8px;
    --radius-btn:6px;
    --shadow: 0px 2px 10px rgba(20,22,28,0.04);
    --shadow-micro: 0px 1px 4px rgba(20,22,28,0.05);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    background:var(--bg);
    font-family:'IBM Plex Sans', Helvetica, Arial, sans-serif;
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
    letter-spacing:normal;
  }
  .mono{font-family:'IBM Plex Mono',monospace;}
  .display{font-family:'Source Serif 4', Georgia, serif; font-weight:600; letter-spacing:-0.01em;}

  /* ---- Sticky live ticker — stock exchange tape ---- */
  .ticker-wrap{
    background:var(--navy);
    color:#fff;
    overflow:hidden;
    position:sticky; top:0; z-index:50;
    border-bottom:1px solid rgba(184,146,90,0.22);
  }
  .ticker-inner{
    display:flex;
    align-items:baseline;
    gap:36px;
    padding:9px 24px;
    white-space:nowrap;
    animation:scroll 38s linear infinite;
    width:max-content;
  }
  .ticker-wrap:hover .ticker-inner{animation-play-state:paused;}
  @keyframes scroll{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
  }
  .tick-item{display:flex; align-items:baseline; gap:8px; font-size:12.5px; font-family:'IBM Plex Mono',monospace;}
  .tick-label{color:rgba(255,255,255,0.5); font-weight:500; letter-spacing:.02em; font-family:'IBM Plex Sans',sans-serif;}
  .tick-val{font-family:'IBM Plex Mono',monospace; font-weight:600; letter-spacing:.01em; color:#fff;}
  .tick-up{color:#4ADE80;}
  .tick-down{color:#F0776D;}
  .tick-flat{color:rgba(255,255,255,0.6);}
  .tick-arrow{font-size:9px; margin-left:1px;}
  .live-dot{
    width:6px; height:6px; border-radius:50%;
    background:#4ADE80;
    box-shadow:0 0 0 0 rgba(74,222,128,0.6);
    animation:pulse 1.6s infinite;
    flex-shrink:0;
  }
  @keyframes pulse{
    0%{box-shadow:0 0 0 0 rgba(74,222,128,0.55);}
    70%{box-shadow:0 0 0 7px rgba(74,222,128,0);}
    100%{box-shadow:0 0 0 0 rgba(74,222,128,0);}
  }

  /* ---- Nav ---- */
  nav{
    background:var(--navy);
    border-bottom:1px solid rgba(184,146,90,0.18);
    position:sticky; top:33px; z-index:40;
  }
  .nav-inner{
    max-width:1200px; margin:0 auto;
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 24px;
  }
  .brand{display:flex; align-items:center;}
  .header-logo-chip{
    display:inline-flex; align-items:center; background:#ffffff; padding:6px 12px; border-radius:8px; line-height:0;
  }
  .header-logo-chip .logo-img{height:26px; width:auto; display:block;}
  .brand-mark{display:none;}
  .brand-name{font-family:'Source Serif 4', Georgia, serif; font-weight:700; font-size:16.5px; color:#fff;}
  .brand-name span{color:var(--gold-bright);}
  .nav-links{display:flex; gap:26px; align-items:center;}
  .nav-links a{
    color:rgba(255,255,255,0.68); text-decoration:none; font-size:13px; font-weight:500;
  }
  .nav-links a:hover{color:#fff;}
  .nav-cta{
    display:flex; align-items:center; gap:10px;
  }
  .search-pill{
    display:flex; align-items:center; gap:6px;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:100px;
    padding:7px 13px; font-size:12.5px; color:rgba(255,255,255,0.55);
  }
  .theme-pill{
    width:32px; height:32px; border-radius:8px; border:1px solid rgba(184,146,90,0.4);
    display:flex; align-items:center; justify-content:center; color:var(--gold-bright); font-size:14px;
  }

  /* ---- Hero ---- */
  .hero{
    max-width:1200px; margin:0 auto;
    padding:52px 24px 40px;
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:44px; align-items:center;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    background:transparent; color:var(--green-dark);
    border-radius:0; padding:0; font-size:11px; font-weight:700;
    letter-spacing:.12em; text-transform:uppercase; margin-bottom:18px;
  }
  .eyebrow .live-dot{background:var(--green);}
  .eyebrow::before{content:""; display:inline-block; width:26px; height:1px; background:var(--gold-bright);}
  .hero h1{
    font-family:'Source Serif 4', Georgia, serif; font-weight:600;
    font-size:42px; line-height:1.12; color:var(--heading);
    letter-spacing:-0.01em; margin-bottom:16px;
  }
  .hero h1 em{font-style:normal; color:var(--green-dark);}
  .hero p{font-size:14.5px; color:var(--ink-soft); line-height:1.65; max-width:460px; margin-bottom:26px;}
  .hero-ctas{display:flex; gap:12px;}
  .btn-primary{
    background:var(--navy); color:#fff; border:1px solid var(--navy); padding:13px 20px; border-radius:var(--radius-btn);
    font-size:13px; font-weight:600; cursor:pointer; font-family:'IBM Plex Sans',sans-serif; letter-spacing:.01em;
  }
  .btn-secondary{
    background:#fff; color:var(--navy); border:1px solid var(--line); padding:13px 20px; border-radius:var(--radius-btn);
    font-size:13px; font-weight:600; cursor:pointer; font-family:'IBM Plex Sans',sans-serif; letter-spacing:.01em;
  }
  .hero-sources{margin-top:24px; display:flex; align-items:center; gap:10px; font-size:11px; color:var(--ink-faint); letter-spacing:.02em;}
  .hero-sources .dot{width:3px; height:3px; border-radius:50%; background:var(--ink-faint);}

  /* ---- Flagship counter card ---- */
  .flagship{
    background:linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 65%, #0E2344 100%);
    border-radius:10px; padding:28px 26px; color:#fff;
    box-shadow:var(--shadow); position:relative; overflow:hidden;
    border:1px solid rgba(184,146,90,0.25);
  }
  .flagship::after{
    content:""; position:absolute; top:-60px; right:-60px; width:220px; height:220px; border-radius:50%;
    background:radial-gradient(circle, rgba(184,146,90,0.22), transparent 70%);
  }
  .flagship-top{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px; position:relative;}
  .flagship-label{font-size:11.5px; color:rgba(255,255,255,0.6); font-weight:600; letter-spacing:.08em; text-transform:uppercase;}
  .flagship-badge{
    display:flex; align-items:center; gap:6px; font-size:10px; color:#4ADE80;
    background:rgba(74,222,128,0.12); padding:4px 10px; border-radius:3px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
    border:1px solid rgba(74,222,128,0.3);
  }
  .flagship-value{
    font-family:'IBM Plex Mono',monospace; font-size:36px; font-weight:600; letter-spacing:-0.01em;
    position:relative; margin-bottom:6px;
  }
  .flagship-sub{font-size:12px; color:rgba(255,255,255,0.55); position:relative; margin-bottom:22px;}
  .flagship-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; position:relative;}
  .flagship-mini{
    background:rgba(255,255,255,0.05); border:1px solid rgba(184,146,90,0.2);
    border-radius:6px; padding:12px 13px;
  }
  .flagship-mini .l{font-size:10.5px; color:rgba(255,255,255,0.55); margin-bottom:5px;}
  .flagship-mini .v{font-family:'IBM Plex Mono',monospace; font-size:15px; font-weight:600;}
  .flagship-source{
    position:relative; margin-top:18px; font-size:10.5px; color:rgba(255,255,255,0.4);
    border-top:1px solid rgba(184,146,90,0.2); padding-top:12px;
  }

  /* ---- Section shell ---- */
  .section{max-width:1200px; margin:0 auto; padding:34px 24px;}
  .section-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:22px;}
  .section-eyebrow{font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--green-dark); margin-bottom:6px;}
  .section-title{font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:25px; color:var(--heading); letter-spacing:-0.01em;}
  .section-link{font-size:12.5px; color:var(--navy); font-weight:600; text-decoration:none; border-bottom:1px solid var(--gold-bright); padding-bottom:1px;}

  .card-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; background:transparent; border:none;}
  .stat-card{
    background:var(--card); border:1px solid var(--line); border-radius:4px;
    padding:18px 18px 16px; box-shadow:none;
    display:flex; flex-direction:column;
  }
  .stat-top{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; gap:8px;}
  .stat-icon{display:none;} /* no emoji / icon chips in the Ledger theme — typography carries the hierarchy */
  .ic-blue,.ic-gold,.ic-green{display:none;}
  .badge{
    font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
    padding:2px 7px; border-radius:3px; border:1px solid var(--line); background:transparent; white-space:nowrap;
  }
  .badge-live{color:var(--green-dark); border-color:rgba(30,122,76,0.35);}
  .badge-live::before{content:"● "; font-size:7px;}
  .badge-rate{color:var(--ink-faint); border-color:var(--line);}
  .stat-label{font-size:12px; color:var(--ink-soft); font-weight:600; margin-bottom:8px; line-height:1.4;}
  .stat-value{font-family:'IBM Plex Mono',monospace; font-size:19px; font-weight:600; color:var(--ink); margin-bottom:6px; letter-spacing:-0.01em;}
  .stat-change{font-size:11px; font-weight:600; margin-bottom:8px;}
  .stat-change.up{color:var(--green-dark);}
  .stat-change.flat{color:var(--ink-faint); font-weight:500;}
  .stat-story{font-size:11.5px; color:var(--ink-soft); line-height:1.55; margin-bottom:10px; flex-grow:1;}
  .stat-source{font-size:10px; color:var(--ink-faint); margin-top:auto; padding-top:10px; border-top:1px dashed var(--line);}

  /* ---- Sources strip ---- */
  .sources-strip{
    background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
    padding:20px 24px;
  }
  .sources-inner{
    max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  }
  .sources-title{font-size:11px; color:var(--ink-faint); font-weight:600; letter-spacing:.08em; text-transform:uppercase;}
  .sources-list{display:flex; gap:22px; flex-wrap:wrap;}
  .sources-list span{font-size:12.5px; color:var(--ink-soft); font-weight:600; font-family:'Source Serif 4', Georgia, serif;}

  /* ---- Footer ---- */
  footer{background:var(--navy); color:rgba(255,255,255,0.7); padding:40px 24px 22px; margin-top:20px; border-top:1px solid rgba(184,146,90,0.2);}
  .footer-inner{max-width:1200px; margin:0 auto;}
  .footer-grid{display:grid; grid-template-columns:1.4fr repeat(4, 1fr); gap:30px; margin-bottom:28px; padding-bottom:0;}
  .footer-brand p{font-size:12.5px; color:rgba(255,255,255,0.48); line-height:1.6; margin-top:10px; max-width:220px;}
  .footer-col h4{font-size:11px; color:var(--gold-bright); margin-bottom:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;}
  .footer-col a{display:block; font-size:12.5px; color:rgba(255,255,255,0.55); text-decoration:none; margin-bottom:9px;}
  .footer-bottom{
    border-top:1px solid rgba(184,146,90,0.18); padding-top:16px;
    display:flex; justify-content:space-between; font-size:11px; color:rgba(255,255,255,0.38); flex-wrap:wrap; gap:8px;
  }

  @media (max-width:900px){
    .hero{grid-template-columns:1fr;}
    .card-grid{grid-template-columns:repeat(2,1fr);}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .nav-links{display:none;}
  }

/* ============================================================
   ADDITIONS — logo, mobile nav, dark mode, inner-page templates
   ============================================================ */

/* ---- Mobile nav ---- */
.nav-toggle{
  display:none; background:none; border:1px solid rgba(184,146,90,0.4); border-radius:8px;
  width:36px; height:36px; align-items:center; justify-content:center; cursor:pointer;
  font-size:16px; color:var(--gold-bright);
}
.mobile-menu{
  display:none; flex-direction:column; gap:2px;
  background:var(--navy); border-top:1px solid rgba(184,146,90,0.2);
  padding:10px 24px 16px;
}
.mobile-menu.open{display:flex;}
.mobile-menu a{
  color:rgba(255,255,255,0.68); text-decoration:none; font-size:14px; font-weight:500;
  padding:11px 4px; border-bottom:1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child{border-bottom:none;}
.mobile-menu a.active{color:var(--gold-bright); font-weight:700;}

@media (max-width:900px){
  .nav-toggle{display:flex;}
  .nav-cta .search-pill{display:none;}
}

.nav-links a.active{color:#fff; position:relative;}
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-14px; height:2px; background:var(--gold-bright);
}

/* ---- Dark mode ---- */
html[data-theme="dark"]{
  --bg:#12100C;
  --card:#1C1913;
  --line:#332C20;
  --ink:#F3EFE6;
  --ink-soft:#B8B2A2;
  --ink-faint:#8A8474;
  --steel-light:#241f16;
  --heading:#F7F4EC;
  --gold-soft:rgba(30,122,76,0.18);
  --green-dark:#6FCF9A;
}
html[data-theme="dark"] .sources-strip{background:var(--card); border-color:var(--line);}
html[data-theme="dark"] .stat-source{color:var(--ink-faint);}
html[data-theme="dark"] .hero p, html[data-theme="dark"] .page-hero p{color:var(--ink-soft);}
html[data-theme="dark"] .btn-secondary{background:var(--card); border-color:var(--line); color:var(--gold-bright);}
html[data-theme="dark"] table.sources-table tr:hover td{background:var(--steel-light);}
html[data-theme="dark"] .flagship{box-shadow:0px 4px 24px rgba(0,0,0,0.4);}
html[data-theme="dark"] .eyebrow{color:#6FCF9A;}
html[data-theme="dark"] .section-link{color:var(--gold-bright);}

/* ---- Inner-page hero (smaller, for pillar/about/faq pages) ---- */
.page-hero{
  max-width:1200px; margin:0 auto; padding:44px 24px 8px;
}
.page-hero .section-eyebrow{margin-bottom:8px;}
.page-hero h1{
  font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:31px; color:var(--heading);
  letter-spacing:-0.01em; margin-bottom:12px;
}
.page-hero p{font-size:14.5px; color:var(--ink-soft); max-width:640px; line-height:1.65;}
.breadcrumb{font-size:12px; color:var(--ink-faint); margin-bottom:14px;}
.breadcrumb a{color:var(--green-dark); text-decoration:none;}

/* ---- Methodology / info box ---- */
.info-box{
  background:#fff; border:1px solid var(--line); border-left:3px solid var(--gold-bright); border-radius:2px;
  padding:18px 20px; font-size:13.5px; color:var(--heading); line-height:1.7; margin:26px 0;
}
html[data-theme="dark"] .info-box{background:var(--card); border-color:var(--line); border-left-color:var(--gold-bright);}
.info-box strong{font-weight:700;}

/* ---- Prose (legal, about) ---- */
.prose{max-width:760px; margin:0 auto; padding:8px 24px 60px;}
.prose h2{font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:20px; color:var(--heading); margin:28px 0 10px;}
.prose p{font-size:14px; color:var(--ink-soft); line-height:1.75; margin-bottom:12px;}
.prose ul{margin:0 0 14px 20px; color:var(--ink-soft); font-size:14px; line-height:1.75;}
.prose .updated{font-size:12px; color:var(--ink-faint); margin-bottom:24px;}

/* ---- FAQ accordion ---- */
.faq-list{max-width:760px; margin:0 auto; padding:8px 24px 60px;}
.faq-item{
  background:var(--card); border:1px solid var(--line); border-radius:4px;
  margin-bottom:10px; overflow:hidden;
}
.faq-item summary{
  padding:16px 18px; font-weight:600; font-size:14.5px; color:var(--heading);
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; font-size:18px; color:var(--ink-faint); font-weight:400;}
.faq-item[open] summary::after{content:"−";}
.faq-item .faq-a{padding:0 18px 18px; font-size:13.5px; color:var(--ink-soft); line-height:1.7;}

/* ---- Sources table ---- */
.sources-table-wrap{max-width:1000px; margin:0 auto; padding:8px 24px 60px;}
.sources-group h3{
  font-family:'Source Serif 4', Georgia, serif; font-weight:600; color:var(--heading); font-size:17px;
  margin:26px 0 10px;
}
table.sources-table{width:100%; border-collapse:collapse; font-size:13px;}
table.sources-table th{
  text-align:left; color:var(--ink-faint); font-weight:600; font-size:11px;
  text-transform:uppercase; letter-spacing:.05em; padding:8px 10px; border-bottom:1px solid var(--ink);
}
table.sources-table td{padding:10px; border-bottom:1px solid var(--line); color:var(--ink-soft);}
table.sources-table td a{color:var(--green-dark); text-decoration:none; font-weight:600;}
table.sources-table tr:hover td{background:var(--steel-light);}

/* ---- Blog ---- */
.blog-grid{max-width:1000px; margin:0 auto; padding:8px 24px 60px; display:grid; grid-template-columns:repeat(2,1fr); gap:14px;}
.blog-card{
  background:var(--card); border:1px solid var(--line); border-radius:4px; padding:22px;
  text-decoration:none; display:block; box-shadow:none;
}
.blog-card .eyebrow2{font-size:11px; color:var(--green-dark); font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;}
.blog-card h3{font-family:'Source Serif 4', Georgia, serif; font-weight:600; color:var(--heading); font-size:18px; margin-bottom:8px; line-height:1.3;}
.blog-card p{color:var(--ink-soft); font-size:13px; line-height:1.6;}
.blog-post{max-width:720px; margin:0 auto; padding:8px 24px 60px;}
.blog-post h1{font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:29px; color:var(--heading); margin-bottom:10px;}
.blog-post .meta{font-size:12px; color:var(--ink-faint); margin-bottom:24px;}
.blog-post p{font-size:14.5px; color:var(--ink-soft); line-height:1.8; margin-bottom:16px;}
.blog-post h2{font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:20px; color:var(--heading); margin:26px 0 10px;}

@media (max-width:700px){
  .blog-grid{grid-template-columns:1fr;}
}

/* ---- 404 ---- */
.error-page{
  max-width:600px; margin:0 auto; padding:90px 24px 100px; text-align:center;
}
.error-page .code{
  font-family:'IBM Plex Mono',monospace; font-size:60px; font-weight:600; color:var(--gold-bright);
  letter-spacing:-0.01em; margin-bottom:8px;
}
.error-page h1{font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:24px; color:var(--heading); margin-bottom:12px;}
.error-page p{color:var(--ink-soft); font-size:14.5px; margin-bottom:26px;}
.error-page .error-ctas{display:flex; gap:12px; justify-content:center;}

/* ---- Facts grid (us-facts.html) ---- */
.facts-grid{
  max-width:1200px; margin:0 auto; padding:8px 24px 60px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.fact-card{
  background:var(--card); border:1px solid var(--line); border-radius:4px; padding:18px; box-shadow:none;
}
.fact-card .f-label{font-size:11px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px;}
.fact-card .f-value{font-family:'Source Serif 4', Georgia, serif; font-size:19px; color:var(--heading); font-weight:600;}
@media (max-width:700px){.facts-grid{grid-template-columns:1fr 1fr;}}

/* ============================================================
   ADDITIONS v2 — category sub-headings + jump nav for expanded pillars
   ============================================================ */

.pillar-subhead{
  margin:36px 0 14px; padding-top:8px; border-top:1px solid var(--ink);
}
.pillar-subhead:first-child{border-top:none; padding-top:0; margin-top:8px;}
.pillar-subhead h2{
  font-family:'Source Serif 4', Georgia, serif; font-weight:600; font-size:18px; color:var(--heading);
  letter-spacing:-0.01em;
}

.cat-nav{
  display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 6px;
}
.cat-pill{
  font-size:11.5px; font-weight:600; color:var(--navy); background:transparent; border:1px solid var(--line);
  padding:6px 13px; border-radius:3px; text-decoration:none; white-space:nowrap;
}
.cat-pill:hover{background:var(--steel-light); border-color:var(--gold-bright);}
html[data-theme="dark"] .cat-pill{color:var(--gold-bright);}
html[data-theme="dark"] .cat-pill:hover{background:var(--steel-light);}

.pillar-count-note{
  font-size:12px; color:var(--ink-faint); margin:4px 0 8px;
}

/* ---- Header + footer logo — full-color logo needs a light chip against the dark navy ---- */
.footer-logo-chip{
  display:inline-block; background:#ffffff; padding:8px 14px; border-radius:8px; margin-bottom:12px;
  line-height:0;
}
.footer-logo-img{height:26px; width:auto; display:block;}
