/* ============================================================
   Delta — By the Numbers
   Shares the About page's token set; this is a sub-page of About
   and reads as one continuous surface with it.
   ============================================================ */

:root{
  --bg:          #FDF4EB;
  --bg-warm:     #FBEEE1;
  --card:        #FEFAF5;
  --card-2:      #FCF0E4;
  --deep:        #191241;

  --ink:         #1C1245;
  --purple:      #2A1B58;
  --ink-soft:    rgba(28,18,69,.78);
  --ink-mute:    rgba(28,18,69,.55);

  --orange:      #CB5209;
  --orange-lit:  #D8641C;

  --line:        rgba(28,18,69,.12);
  --line-soft:   rgba(28,18,69,.07);

  --serif: "Playfair Display", Georgia, serif;
  --quote: "Newsreader", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(20px, 3.2vw, 56px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0; min-height:100%;
  background:
    radial-gradient(120% 70% at 50% 0%, #FEF8F1 0%, var(--bg) 55%, var(--bg-warm) 100%);
  color:var(--ink); font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}

svg{ fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.grain{
  position:fixed; inset:0; z-index:9000; pointer-events:none;
  opacity:.42; mix-blend-mode:multiply;
  background-image:
    radial-gradient(rgba(28,18,69,.045) .6px, transparent .7px),
    radial-gradient(rgba(150,85,30,.035) .6px, transparent .7px);
  background-size:3px 3px, 5px 5px; background-position:0 0, 2px 1px;
}

/* ---------- Header (shared chrome) ---------- */

.site-header{
  position:relative; z-index:20;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:clamp(16px,1.8vw,26px) var(--pad-x);
  border-bottom:1px solid var(--line-soft);
}
.brand{ display:flex; align-items:center; gap:clamp(12px,1.3vw,22px); }
.brand__home{ display:inline-flex; align-items:center; border-radius:6px; }
.brand__home:focus-visible{ outline:3px solid var(--orange); outline-offset:4px; }
.brand__logo{ height:clamp(30px,2.7vw,48px); width:auto; display:block; }
.brand__wordmark{
  font-family:var(--serif); font-style:italic; font-weight:700;
  font-size:clamp(30px,2.7vw,48px); line-height:1; color:var(--ink); letter-spacing:-.02em;
}
.brand__rule{ width:1px; height:clamp(24px,2vw,36px); background:var(--line); }
.brand__tag{ margin:0; font-size:clamp(13px,1.05vw,18px); font-weight:500; letter-spacing:-.005em; }

.site-nav{ display:flex; align-items:center; gap:clamp(14px,1.9vw,38px); }
.site-nav a{
  position:relative; color:var(--ink); text-decoration:none;
  font-size:clamp(13px,.95vw,16px); font-weight:600; letter-spacing:-.005em;
  padding-bottom:6px; transition:color .25s var(--ease);
}
.site-nav a:not(.btn-share):hover{ color:var(--orange); }
.site-nav a.is-current::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2.5px; border-radius:2px; background:var(--orange);
}
.btn-share{
  border:1.5px solid var(--orange); color:var(--orange) !important;
  border-radius:999px; padding:.62em 1.35em; cursor:pointer;
  transition:background .3s var(--ease), color .3s var(--ease);
}
.btn-share:hover{ background:var(--orange); color:var(--card) !important; }

/* ---------- Layout ---------- */

.bn{ padding:0 var(--pad-x) clamp(20px,2.4vw,36px); }

/* ---------- Hero ---------- */

.bn-hero{
  display:grid;
  grid-template-columns:minmax(280px, 1fr) minmax(0, 1.28fr);
  gap:clamp(22px,2.8vw,56px);
  align-items:start;
  padding:clamp(18px,2.2vw,38px) 0 clamp(18px,2vw,32px);
}

.bn-eyebrow{
  margin:0 0 clamp(8px,.8vw,14px); font-size:12px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--orange);
}
.bn-title{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(38px,4.1vw,78px); line-height:1.0;
  letter-spacing:-.03em; color:var(--ink);
}
.bn-rule{
  display:block; width:62px; height:3px; border-radius:2px; background:var(--orange);
  margin:clamp(14px,1.4vw,24px) 0 clamp(13px,1.3vw,20px);
}
.bn-lede{ margin:0; font-size:clamp(14.5px,1.08vw,19px); line-height:1.6; color:var(--ink-soft); max-width:34ch; }

.bn-short{
  background:var(--deep); color:#F6F1FF; border-radius:12px;
  padding:clamp(20px,1.8vw,32px) clamp(20px,1.9vw,34px) clamp(22px,2vw,36px);
  box-shadow:0 26px 50px -30px rgba(20,10,50,.55);
}
.bn-short__hd{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(20px,1.6vw,28px); letter-spacing:-.02em; color:#fff;
}
.bn-short__rule{
  display:block; width:40px; height:2.5px; border-radius:2px; background:var(--orange);
  margin:clamp(10px,.9vw,15px) 0 clamp(12px,1.1vw,18px);
}
.bn-short p{ margin:0; font-size:clamp(13px,1vw,17px); line-height:1.65; color:rgba(246,241,255,.9); }

/* ---------- Headline figures ---------- */

.bn-figures{
  display:grid; grid-template-columns:repeat(4, 1fr);
  gap:clamp(12px,1.2vw,22px);
  padding-bottom:clamp(14px,1.5vw,24px);
}

.bn-fig{
  display:flex; align-items:flex-start; gap:clamp(12px,1.1vw,20px);
  background:var(--card); border-radius:12px;
  padding:clamp(16px,1.4vw,26px) clamp(15px,1.3vw,24px);
  box-shadow:0 14px 30px -24px rgba(70,45,20,.4);
}
.bn-fig__icon{
  flex:none; display:grid; place-items:center;
  width:clamp(44px,3.6vw,64px); aspect-ratio:1; border-radius:50%;
  background:var(--card-2); color:var(--orange);
}
.bn-fig__icon svg{ width:50%; height:50%; stroke-width:1.7; }

.bn-fig__num{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(26px,2.5vw,44px); line-height:1;
  letter-spacing:-.03em; color:var(--ink);
}
.bn-fig__num--word{ font-size:clamp(22px,2.05vw,36px); }
.bn-fig__num--date{ font-size:clamp(20px,1.85vw,33px); white-space:nowrap; }
.bn-fig__unit{
  font-size:.52em; font-weight:500; letter-spacing:-.01em;
  margin-left:.18em; color:var(--ink);
}

.bn-fig__label{
  margin:clamp(7px,.6vw,11px) 0 0;
  font-size:clamp(12px,.92vw,15.5px); font-weight:700;
  letter-spacing:-.008em; color:var(--ink);
}
.bn-fig__rule{
  display:block; width:26px; height:2px; border-radius:2px; background:var(--orange);
  margin:clamp(8px,.7vw,12px) 0 clamp(9px,.8vw,14px);
}
.bn-fig__copy{ margin:0; font-size:clamp(11.5px,.88vw,14.5px); line-height:1.5; color:var(--ink-soft); }

/* ---------- Detail row ---------- */

.bn-detail{
  display:grid; grid-template-columns:minmax(0,1.68fr) minmax(0,1fr);
  gap:clamp(12px,1.2vw,22px);
  padding-bottom:clamp(14px,1.5vw,24px);
}

.bn-panel{
  background:var(--card); border-radius:12px;
  padding:clamp(18px,1.5vw,28px) clamp(18px,1.5vw,28px) clamp(18px,1.6vw,28px);
  box-shadow:0 14px 30px -24px rgba(70,45,20,.4);
}
.bn-panel__hd{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(17px,1.4vw,24px); letter-spacing:-.02em; color:var(--ink);
}
.bn-panel__rule{
  display:block; width:30px; height:2.5px; border-radius:2px; background:var(--orange);
  margin:clamp(9px,.8vw,14px) 0 clamp(14px,1.3vw,22px);
}

/* --- Bar comparison --- */

/* The status panel next door is the taller of the two, and the grid row
   stretches both to match. Rather than leave a block of dead space under
   the bars, the comparison group centres itself in whatever height it is
   given. */
.bn-stack{ display:flex; flex-direction:column; }
.bn-stack__grid{
  margin:0; padding:0; list-style:none; flex:1 1 auto;
  display:grid; grid-template-columns:repeat(3, 1fr);
  align-content:center;
  gap:clamp(14px,1.4vw,26px);
}
.bn-cmp{ min-width:0; padding-left:clamp(14px,1.4vw,26px); border-left:1px solid var(--line-soft); }
.bn-cmp:first-child{ padding-left:0; border-left:0; }

.bn-cmp__hd{
  margin:0 0 clamp(14px,1.3vw,22px);
  font-size:clamp(12px,.94vw,15.5px); color:var(--ink-soft);
}
.bn-cmp__hd b{ color:var(--ink); }
.bn-cmp__hd em{ font-style:normal; font-weight:700; color:var(--orange); }

/* Both bars of a pair share one grid, so the two tracks are guaranteed the
   same length. Given a row each, the differing label widths ("5 mg" vs
   "0.4 mg (the cap)") would size their columns independently and the
   comparison would be drawn against two different scales. */
.bn-cmp__rows{
  display:grid; grid-template-columns:minmax(0,auto) minmax(0,1fr);
  align-items:center;
  column-gap:clamp(8px,.7vw,12px); row-gap:clamp(10px,.95vw,16px);
}
.bn-cmp__key{
  font-size:clamp(10px,.78vw,13px); color:var(--ink-mute);
  white-space:nowrap;
}
.bn-cmp__track{ display:block; height:clamp(12px,1.1vw,16px); min-width:0; }
.bn-cmp__bar{
  display:block; height:100%; border-radius:3px;
  background:var(--orange);
  /* Widths are set per bar from the real ratio (0.4 mg against the can),
     so the cap stub is genuinely 1/12.5, 1/25 and 1/50 of its neighbour
     rather than a token sliver. --grow is driven by the reveal below. */
  width:calc(var(--w, 100%) * var(--grow, 1));
  min-width:3px;
  transition:width .95s cubic-bezier(0.22, 1, 0.36, 1);
}
.bn-cmp__bar--cap{ background:var(--purple); }

.bn-cmp__foot{
  margin:clamp(14px,1.3vw,22px) 0 0;
  font-size:clamp(11px,.85vw,14px); color:var(--ink-soft);
}

/* --- Status list --- */

.bn-status__list{ margin:0; }
.bn-status__row{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center; gap:clamp(10px,.9vw,16px);
  padding:clamp(10px,.95vw,16px) 0;
  border-bottom:1px solid var(--line-soft);
}
.bn-status__row:last-child{ border-bottom:0; }
.bn-status__icon{
  flex:none; display:grid; place-items:center;
  width:clamp(30px,2.5vw,42px); aspect-ratio:1; border-radius:50%;
  background:var(--card-2); color:var(--orange);
}
.bn-status__icon svg{ width:52%; height:52%; stroke-width:1.6; }
.bn-status__row dt{ margin:0; font-size:clamp(12px,.92vw,15.5px); color:var(--ink); }
.bn-status__row dd{
  margin:0; font-size:clamp(12px,.92vw,15.5px); font-weight:600;
  color:var(--ink); white-space:nowrap; text-align:right;
}

/* ---------- Closing band ---------- */

.bn-band{
  display:flex; align-items:center; gap:clamp(16px,2vw,40px); flex-wrap:wrap;
  padding:clamp(16px,1.6vw,28px) clamp(18px,1.8vw,32px);
  background:var(--card-2); border-radius:14px;
}
.bn-band__say{ display:flex; align-items:center; gap:clamp(14px,1.4vw,26px); flex:1 1 400px; min-width:0; }
.bn-band__icon{
  flex:none; display:grid; place-items:center;
  width:clamp(52px,4.4vw,74px); aspect-ratio:1; border-radius:50%;
  background:#fff; color:var(--orange);
}
.bn-band__icon svg{ width:50%; height:50%; stroke-width:1.6; }
.bn-band__hd{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(19px,1.85vw,33px); letter-spacing:-.025em; line-height:1.1; color:var(--ink);
}
.bn-band__rule{
  display:block; width:44px; height:2.5px; border-radius:2px; background:var(--orange);
  margin:clamp(9px,.8vw,14px) 0 clamp(8px,.7vw,12px);
}
.bn-band__sub{ margin:0; font-size:clamp(12.5px,.95vw,16px); color:var(--ink-soft); }

.bn-band__div{ width:1px; align-self:stretch; min-height:60px; background:var(--line); }

.bn-band__act{ flex:0 1 auto; }
.bn-band__lead{ margin:0 0 clamp(10px,.9vw,15px); font-size:clamp(12.5px,.95vw,16px); color:var(--ink-soft); }

.bn-cta{
  display:inline-flex; align-items:center; gap:.9em;
  background:var(--orange); color:#FFF6EE; text-decoration:none;
  border-radius:6px; padding:clamp(10px,.9vw,15px) clamp(16px,1.4vw,24px);
  font-size:clamp(12px,.9vw,15px); font-weight:700;
  letter-spacing:.09em; text-transform:uppercase;
  transition:background .28s var(--ease);
}
.bn-cta svg{ width:1.3em; height:1.3em; stroke-width:2; transition:transform .3s var(--ease); }
.bn-cta:hover{ background:var(--orange-lit); }
.bn-cta:hover svg{ transform:translateX(4px); }
.bn-cta:focus-visible{ outline:3px solid var(--purple); outline-offset:3px; }

/* ---------- Fine print ---------- */

.bn-fine{
  margin:clamp(14px,1.4vw,24px) 0 0; text-align:center;
  font-size:clamp(11px,.82vw,13.5px); line-height:1.7; color:var(--ink-mute);
}
.bn-fine__div{ display:inline-block; margin:0 .7em; color:var(--line); }

/* ---------- Responsive ---------- */

@media (max-width:1180px){
  .bn-hero{ grid-template-columns:1fr; }
  .bn-lede{ max-width:52ch; }
  .bn-figures{ grid-template-columns:repeat(2, 1fr); }
  .bn-detail{ grid-template-columns:1fr; }
  .bn-stack__grid{ grid-template-columns:1fr; gap:0; }
  .bn-cmp{
    padding:clamp(14px,1.3vw,20px) 0 0; border-left:0;
    border-top:1px solid var(--line-soft); margin-top:clamp(14px,1.3vw,20px);
  }
  .bn-cmp:first-child{ padding-top:0; border-top:0; margin-top:0; }
}

@media (max-width:900px){
  .brand__tag, .brand__rule{ display:none; }
  .btn-share{ white-space:nowrap; padding:.55em 1.05em; font-size:12.5px; }

  .bn-figures{ grid-template-columns:1fr; }
  .bn-fig__num--date{ white-space:normal; }
  .bn-band__div{ display:none; }
  .bn-band__act{ flex:1 1 100%; }
  .bn-cta{ width:100%; justify-content:center; }
  .bn-fine__div{ display:block; height:0; overflow:hidden; margin:0; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .bn-cmp__bar{ transition:none; }
  .bn-cta, .bn-cta svg{ transition-duration:.01ms; }
}

/* ---------- Odds panel (Kalshi tracker) ----------
   Replaces the cap-comparison panel. The slot stays visibly empty until a
   live feed is wired: a placeholder percentage here would read as a fact
   about the bill's chances, and it would be stale on arrival. */
.bn-odds__sub{
  margin:0 0 clamp(14px,1.4vw,22px);
  font-family:var(--sans); font-size:clamp(14px,1.05vw,17px);
  line-height:1.5; color:var(--ink-soft);
}

.bn-odds__slot{
  display:grid; place-items:center;
  min-height:clamp(150px,16vw,220px);
  padding:clamp(18px,1.8vw,28px);
  border:1px dashed var(--line);
  background:rgba(255,255,255,.04);
}

.bn-odds__placeholder{
  margin:0; max-width:40ch; text-align:center;
  font-family:var(--sans); font-size:clamp(12.5px,.95vw,14.5px);
  line-height:1.6; color:var(--ink-mute);
}

.bn-odds__flag{
  display:block; margin:0 0 .6em;
  font-size:10.5px; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:var(--orange);
}

/* ---------- Live odds (rendered by kalshi.js) ----------
   Only ever on screen when a real number came back. The dial is a conic
   sweep rather than a bar so the figure reads as a probability and not as
   a progress meter toward something. */
.bn-odds__slot.is-live{
  border-style:solid;
  border-color:var(--line);
  background:rgba(255,255,255,.05);
  place-items:stretch;
}

.odds{
  display:flex; align-items:center; gap:clamp(16px,2vw,30px);
  width:100%;
}

.odds__dial{
  position:relative; flex:none;
  width:clamp(104px,10vw,140px); aspect-ratio:1;
  display:grid; place-items:center;
}
.odds__fill{
  position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(var(--orange) var(--p), rgba(255,255,255,.12) 0);
  -webkit-mask:radial-gradient(circle, transparent 60%, #000 61%);
  mask:radial-gradient(circle, transparent 60%, #000 61%);
}
.odds__pct{
  position:relative;
  font-family:var(--sans); font-weight:800;
  font-size:clamp(26px,2.6vw,36px); letter-spacing:-.02em;
  color:var(--ink);
}
.odds__sign{ font-size:.55em; margin-left:.08em; }

.odds__body{ min-width:0; }

.odds__q{
  margin:0 0 .35em;
  font-family:var(--sans); font-weight:700;
  font-size:clamp(14px,1.15vw,18px); line-height:1.35; color:var(--ink);
}
.odds__leg{
  margin:0 0 .2em;
  font-family:var(--sans); font-size:clamp(12px,.9vw,13.5px);
  color:var(--ink-soft);
}
.odds__meta{
  margin:.6em 0 0;
  font-family:var(--sans); font-size:11.5px; line-height:1.55;
  color:var(--ink-mute);
}
.odds__meta a{ color:inherit; text-decoration:underline; }
.odds__meta a:hover{ color:var(--ink); }

@media (max-width:620px){
  .odds{ flex-direction:column; align-items:flex-start; gap:14px; }
}

@media (prefers-reduced-motion:reduce){
  .odds__fill{ transition:none; }
}
