@charset "utf-8";
/*!
 * studentloanrefinances.com — style.css
 * Serious indigo / graphite. Mobile-first. Single family (Sora).
 * v1.0.0 — 2026-08-08
 *
 * House rules baked in:
 *   - grids use minmax(0,1fr) so long numbers never blow the column out
 *   - every table lives inside .table-wrap { overflow-x:auto }
 *   - the "$" prefix padding rule comes AFTER the generic input rule and wins
 *     on specificity, so it can never be undone by the base styles
 *   - ad slots reserve their height up front (no CLS)
 */

/* ================================================================== *
   TOKENS
   ================================================================== */
:root {
  --night:      #141733;   /* header + hero slab, result panel */
  --night-2:    #1d2146;
  --night-3:    #2a2f5e;
  --ink:        #12141f;
  --ink-2:      #2a2e3d;
  --slate:      #575d75;
  --slate-2:    #8189a3;
  --line:       #dcdfeb;
  --line-2:     #edeff6;
  --paper:      #f5f6fb;
  --card:       #ffffff;

  --indigo:     #3b3f9e;
  --indigo-d:   #2b2e78;
  --indigo-l:   #ecedfa;
  --indigo-fog: #f4f4fd;
  --violet:     #8f96ff;   /* on-dark accent */

  --ember:      #b83d0e;   /* what it costs */
  --ember-l:    #fdf1ea;
  --ember-2:    #ff9a6b;   /* on-dark cost */

  --good:       #14664e;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --shadow-1: 0 1px 2px rgba(18,20,31,.05), 0 4px 14px rgba(18,20,31,.06);
  --shadow-2: 0 18px 44px rgba(15,18,45,.16);

  --f: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================================== *
   BASE
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.72rem, 5.4vw, 2.65rem); font-weight: 800; }
h2 { font-size: clamp(1.24rem, 3.2vw, 1.62rem); }
h3 { font-size: 1.06rem; }
p  { margin: 0 0 1.05em; }
a  { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-d); }
img, svg { max-width: 100%; height: auto; }
small { font-size: .82em; }
b, strong { font-weight: 700; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 700px) { .wrap { padding: 0 26px; } }

.section { padding: 34px 0; }
.section.tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 52px 0; } }

.kicker {
  margin: 0 0 6px;
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--indigo);
}

/* ================================================================== *
   HEADER + HERO — one dark slab, hairline grid texture
   ================================================================== */
.topbar {
  background: var(--night);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--violet), var(--indigo));
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
}
.brand .thin { font-weight: 400; color: #b9bedd; }

.mainnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
  font-size: .875rem;
}
.mainnav a {
  color: #c3c8e6;
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: #fff; border-bottom-color: var(--violet); }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--violet); }

/* On phones the nav is one scrollable strip instead of two wrapped rows —
   it keeps the answer above the fold. */
@media (max-width: 699px) {
  .topbar .wrap { padding-bottom: 8px; }
  .mainnav {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; }
}

.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  padding: 26px 0 46px;
  background-image:
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
}
@media (min-width: 900px) { .hero { padding: 40px 0 58px; } }
.hero-in { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .35em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #d5d9f5;
}
.eyebrow i { width: 16px; height: 2px; background: var(--violet); border-radius: 2px; }

/* R4 — the direct answer, overlapping the slab edge */
.r4 {
  position: relative;
  margin: 22px 0 -70px;
  padding: 18px 20px 18px 22px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r);
  border-left: 4px solid var(--indigo);
  box-shadow: var(--shadow-2);
}
.r4 p { margin: 0; font-size: 1.015rem; line-height: 1.66; }
@media (min-width: 900px) {
  .r4 { padding: 22px 26px; font-size: 1.06rem; }
}
.hero + .section { padding-top: 92px; }

/* ================================================================== *
   CALCULATOR
   ================================================================== */
.calc-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 960px) {
  .calc-shell { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 22px; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  min-width: 0;
}
@media (min-width: 700px) { .panel { padding: 24px; } }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.panel-head h2 { margin: 0; font-size: 1.12rem; }
.panel-head .note {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.field { margin-bottom: 16px; min-width: 0; }
.field:last-of-type { margin-bottom: 18px; }

.lbl {
  display: block;
  margin-bottom: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.lbl .hint {
  display: block;
  font-size: .74rem;
  font-weight: 400;
  color: var(--slate-2);
  letter-spacing: 0;
}

/* --- generic control styling (the $ / % rules below override the padding) --- */
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select,
.rowset input[type="text"],
.rowset input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23575d75' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
  padding-right: 34px;
}
.field input:focus-visible,
.field select:focus-visible,
.rowset input:focus-visible,
.btn:focus-visible,
.btn-ghost:focus-visible,
.seg button:focus-visible {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(59,63,158,.18);
}
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }

/* --- $ and % affixes -------------------------------------------------- *
   Declared AFTER the generic rule and with higher specificity, so the
   padding they need can never be reverted by the base input styling.      */
.field .money,
.field .pct,
.rowset .money,
.rowset .pct { position: relative; display: block; min-width: 0; }

.field .money::before,
.rowset .money::before {
  content: "$";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--slate);
  pointer-events: none;
  z-index: 1;
}
.field .pct::after,
.rowset .pct::after {
  content: "%";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--slate);
  pointer-events: none;
  z-index: 1;
}
.field .money > input[type="text"],
.field .money > input[type="number"] { padding-left: 27px; }
.field .money.wide > input[type="text"],
.field .money.wide > input[type="number"] { padding-left: 27px; }
.field .pct > input[type="number"],
.field .pct > input[type="text"] { padding-right: 30px; }
.rowset .money > input[type="text"],
.rowset .money > input[type="number"] { padding-left: 24px; }
.rowset .pct > input[type="number"] { padding-right: 26px; }

/* --- slider ---------------------------------------------------------- */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
}
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
.slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  margin-top: -6.5px;
  border-radius: 4px;
  background: var(--indigo);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20,23,51,.35);
}
.slider::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: var(--indigo);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20,23,51,.35);
}
.slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--slate-2);
  margin-top: -2px;
}

.row2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.row2 .field { margin-bottom: 16px; }

.field-note {
  margin: 8px 0 0;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--slate);
}

/* --- segmented control ------------------------------------------------ */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--indigo-fog);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seg button {
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  padding: 7px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--indigo); color: #fff; }

/* --- buttons ---------------------------------------------------------- */
.btn {
  width: 100%;
  padding: 13px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: var(--indigo);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.btn:hover { background: var(--indigo-d); }
.btn-ghost {
  display: inline-block;
  margin-bottom: 14px;
  padding: 9px 14px;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-fog);
  border: 1px dashed var(--indigo);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--indigo-l); }
.btn-ghost[disabled] { opacity: .45; cursor: not-allowed; }

/* --- repeatable rows -------------------------------------------------- */
.rowset-head {
  display: none;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 6px;
}
.rowset-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--indigo-fog);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: relative;
}
.rowset-row > *:first-child { grid-column: 1 / -1; padding-right: 34px; }
.row-x {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.row-x:hover { color: var(--ember); border-color: var(--ember); }
.row-x[disabled] { opacity: .35; cursor: not-allowed; }

/* Stacked rows are the default, so each repeated field carries its own
   micro-label. The $ and % affixes already own ::before / ::after
   respectively, so the label takes whichever pseudo-element is still free. */
.rowset-row { row-gap: 20px; padding-top: 14px; }
.rowset-row .money[data-lab]::after,
.rowset-row .pct[data-lab]::before {
  content: attr(data-lab);
  position: absolute;
  left: 2px;
  top: -15px;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-2);
  pointer-events: none;
}

/* One row per loan only once the PANEL itself is wide enough — the calculator
   sits in a half-width column on desktop, so a viewport media query would
   squeeze four fields into 500px and clip the figures. Browsers without
   container queries simply keep the stacked layout above. */
.panel { container-type: inline-size; }

@container (min-width: 600px) {
  .rowset-head {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr) minmax(0, .8fr) minmax(0, 1fr) 30px;
    padding: 0 12px;
  }
  .rowset-head.cols3 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, 1fr) 30px; }
  .rowset-row {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr) minmax(0, .8fr) minmax(0, 1fr) 30px;
    padding: 10px 12px;
    row-gap: 8px;
  }
  .rowset-row.cols3 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, 1fr) 30px; }
  .rowset-row > *:first-child { grid-column: auto; padding-right: 0; }
  .row-x { position: static; }
  .rowset-row .money[data-lab]::after,
  .rowset-row .pct[data-lab]::before { content: none; }
  .rowset input[type="text"],
  .rowset input[type="number"] { font-size: .95rem; padding: 10px 11px; }
  .rowset .money::before { left: 10px; }
  .rowset .pct::after { right: 10px; }
  .rowset .money > input[type="text"],
  .rowset .money > input[type="number"] { padding-left: 22px; }
  .rowset .pct > input[type="number"] { padding-right: 24px; }
}

/* ================================================================== *
   RESULT PANEL — dark ledger
   ================================================================== */
.out {
  position: relative;
  background: var(--night);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px 18px 22px;
  box-shadow: var(--shadow-2);
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 700px) { .out { padding: 26px 24px 26px; } }
.out::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--indigo) 55%, var(--ember-2));
}
.out.flash { animation: flash .55s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px rgba(143,150,255,.55), var(--shadow-2); } to { box-shadow: var(--shadow-2); } }

.out-lbl {
  margin: 0 0 2px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a5abd0;
}
.out-big {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.out-sub { margin: 0 0 14px; color: #c6cbe8; font-size: .95rem; line-height: 1.55; }
.out-sub b { color: #fff; }
.copyable { cursor: pointer; border-bottom: 2px dashed rgba(255,255,255,.22); }
.copyable:hover { border-bottom-color: var(--violet); }
.copied {
  position: absolute;
  top: 14px; right: 16px;
  padding: 3px 9px;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--violet);
  color: var(--night);
  opacity: 0;
  transition: opacity .18s;
}
.copied.show { opacity: 1; }

/* proportional bar */
.split {
  display: flex;
  height: 9px;
  margin: 4px 0 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
}
.split i { display: block; height: 100%; }
.s-pri { background: var(--violet); }
.s-int { background: var(--ember-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; color: #a5abd0; margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.k-pri { background: var(--violet); }
.k-int { background: var(--ember-2); }

/* ledger rows */
.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,.14);
  font-size: .93rem;
  min-width: 0;
}
.rows li > span { color: #bcc2e2; min-width: 0; }
.rows li > span small { display: block; font-size: .76rem; color: #878fb3; color: #8b92b8; line-height: 1.4; }
.rows li > b { font-weight: 700; white-space: nowrap; }
.rows li.hi > b { color: var(--ember-2); }
.rows li.good > b { color: #7ee0b8; }
.rows li.tot {
  border-bottom: 0;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 2px solid rgba(255,255,255,.2);
  font-size: 1.02rem;
}
.rows li.tot > span { color: #fff; font-weight: 600; }

/* two-column comparison rows */
.rows.duo li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .85fr); gap: 10px; text-align: right; }
.rows.duo li > span { text-align: left; }
.rows.duo li.head { border-bottom: 1px solid rgba(255,255,255,.3); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #a5abd0; }
.rows.duo li.head > b { font-weight: 600; color: #a5abd0; }
.rows.duo li > b { white-space: normal; overflow-wrap: anywhere; }

.verdict {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(143,150,255,.14);
  border-left: 3px solid var(--violet);
  font-size: .92rem;
  line-height: 1.5;
}
.verdict.warn { background: rgba(255,154,107,.13); border-left-color: var(--ember-2); }
.out-note {
  margin: 16px 0 0;
  font-size: .8rem;
  line-height: 1.6;
  color: #9aa1c4;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 2px; }
.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
  color: #d3d7f0;
}
.chip b { color: #fff; }

/* facts strip under the calculator */
.facts {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 20px;
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact {
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--indigo);
  border-radius: var(--r-sm);
  min-width: 0;
}
.fact.amber { border-left-color: var(--ember); }
.fact .k { margin: 0 0 3px; font-size: .74rem; color: var(--slate); line-height: 1.35; }
.fact .v { margin: 0; font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }

/* the honesty panel: what refinancing federal loans gives up */
.lossbox {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--ember-l);
  border: 1px solid #f2d3c1;
  border-top: 3px solid var(--ember);
  border-radius: var(--r);
}
.lossbox h3 { margin: 0 0 8px; font-size: 1rem; color: #8f2f0a; }
.lossbox ul { margin: 0; padding-left: 20px; }
.lossbox li { margin-bottom: 6px; font-size: .92rem; line-height: 1.55; color: #5c3320; }
.lossbox li:last-child { margin-bottom: 0; }
.lossbox p { margin: 10px 0 0; font-size: .85rem; color: #7a4a33; }

/* ================================================================== *
   TABLES
   ================================================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  margin-bottom: 8px;
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 10px;
  font-size: .84rem;
  color: var(--slate);
  border-bottom: 1px solid var(--line-2);
}
thead th {
  position: sticky; top: 0;
  background: var(--indigo-fog);
  text-align: right;
  padding: 9px 14px;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
thead th:first-child { text-align: left; }
tbody td {
  padding: 9px 14px;
  text-align: right;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
tbody td:first-child { text-align: left; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody td.int { color: var(--ember); }
tbody tr.is-final td { background: var(--indigo-fog); font-weight: 700; }
.scroll-hint { margin: 0 0 4px; font-size: .78rem; color: var(--slate-2); }

/* ================================================================== *
   PROSE (writer body copy)
   ================================================================== */
.prose { max-width: 74ch; font-size: 1.02rem; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.3em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--indigo);
  color: var(--slate);
  font-style: normal;
}
.prose .table-wrap { margin: 1.4em 0; }
.prose table { min-width: 420px; }
.illustrative {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--indigo-l);
  color: var(--indigo-d);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.callout {
  margin: 1.4em 0;
  padding: 15px 18px;
  background: var(--indigo-fog);
  border: 1px solid var(--line);
  border-left: 3px solid var(--indigo);
  border-radius: var(--r-sm);
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--ember-l); border-color: #f2d3c1; border-left-color: var(--ember); }

/* ================================================================== *
   CLUSTER LINKS / HUB CARDS
   ================================================================== */
.neighbours { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: n; }
.neighbours li { counter-increment: n; border-top: 1px solid var(--line); }
.neighbours li:last-child { border-bottom: 1px solid var(--line); }
.neighbours a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  text-decoration: none;
  color: var(--ink);
}
.neighbours a::before {
  content: counter(n, decimal-leading-zero);
  font-size: .78rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: .02em;
}
.neighbours a::after {
  content: "→";
  color: var(--slate-2);
  font-size: 1rem;
  transition: transform .15s;
}
.neighbours a:hover { color: var(--indigo); background: var(--indigo-fog); }
.neighbours a:hover::after { transform: translateX(3px); color: var(--indigo); }
.neighbours .t { font-weight: 600; }
.neighbours .d { display: block; font-size: .85rem; font-weight: 400; color: var(--slate); }

.cluster { list-style: none; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; }
@media (min-width: 640px) { .cluster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cluster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ccard {
  display: block;
  height: 100%;
  padding: 16px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
a.ccard:hover { border-color: var(--indigo); box-shadow: 0 10px 26px rgba(20,23,51,.12); transform: translateY(-1px); }
.ccard .t { display: block; font-weight: 700; margin-bottom: 5px; letter-spacing: -.01em; }
.ccard .d { display: block; font-size: .87rem; color: var(--slate); line-height: 1.5; }
.ccard.soon { position: relative; border-style: dashed; background: #fbfbfe; box-shadow: none; }
.ccard.soon .t { color: var(--ink-2); }
.ccard.soon::after {
  content: "in progress";
  position: absolute;
  top: 13px; right: 14px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.ccard.soon .t { padding-right: 88px; }

/* ================================================================== *
   BYLINE / SOURCES / ADS / FOOTER
   ================================================================== */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--slate);
}
.byline .who { font-weight: 600; color: var(--ink-2); }
.byline .sep { color: var(--line); }

.sources { margin-top: 26px; }
.sources h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.sources ul { margin: 0; padding-left: 20px; }
.sources li { font-size: .85rem; color: var(--slate); margin-bottom: 7px; line-height: 1.55; }

.adslot {
  display: block;
  margin: 22px auto;
  text-align: center;
  overflow: hidden;
}
.adslot-728 { min-height: 90px; }
.adslot-native { min-height: 250px; }
.adslot-320 { min-height: 100px; }
@media (max-width: 699px) { .adslot-728 { display: none; } }
@media (min-width: 700px) { .adslot-320 { display: none; } }

.site-foot {
  background: var(--night);
  color: #b9bedd;
  padding: 34px 0 26px;
  font-size: .9rem;
}
.foot-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 22px;
}
@media (min-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; } }
.site-foot h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: #c8cdec; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
  line-height: 1.6;
  color: #8f96b8;
}

/* utility */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
