/* ════════════════════════════════════════════════════════════════
   PostgradTruth — Editorial / Brutalist
   Light: cream paper, deep ink, truth red.
   Dark: deep black, paper, brighter red.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #f4f1ea;
  --ink: #0e0e0e;
  --ink-soft: #4a4540;
  --ink-mute: #7a7368;
  --rule: #0e0e0e;
  --rule-soft: rgba(14, 14, 14, 0.18);
  --truth: #d0021b;
  --truth-soft: rgba(208, 2, 27, 0.08);
  --green: #1a7f3e;
  --green-soft: rgba(26, 127, 62, 0.1);
  --amber: #c47200;
  --amber-soft: rgba(196, 114, 0, 0.1);
  --red: #d0021b;
  --red-soft: rgba(208, 2, 27, 0.1);
  --pop: #1240ab;
  --highlight: #fff7c4;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --maxw: 1240px;
  --rule-w: 1.5px;
}

body.dark {
  --paper: #0c0c0b;
  --ink: #f4f1ea;
  --ink-soft: #c8c2b6;
  --ink-mute: #8a8478;
  --rule: #f4f1ea;
  --rule-soft: rgba(244, 241, 234, 0.18);
  --truth: #ff4d5a;
  --truth-soft: rgba(255, 77, 90, 0.12);
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --red: #ff4d5a;
  --red-soft: rgba(255, 77, 90, 0.12);
  --pop: #6aa3ff;
  --highlight: #4a3f00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* Subtle paper noise — hand-rolled SVG, ~2KB inline, no extra request */
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}
body.dark {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.serif, .mv, .vt, .score-num, .cs-val, .num, .emi-mv, .cname, h1, h2, h3, h4 {
  font-variant-numeric: lining-nums tabular-nums;
}
.serif { font-family: var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.mono  { font-family: var(--mono); }
.italic { font-style: italic; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--truth); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }

.rule { border: 0; border-top: var(--rule-w) solid var(--rule); margin: 0; }
.rule-soft { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }

/* ─── Masthead ─────────────────────────────────────────────── */
.masthead { border-bottom: 4px solid var(--rule); padding-top: 14px; background: var(--paper); }
.masthead-strip {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mute);
  padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap; gap: 8px 18px;
}
.masthead-strip > div { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .masthead-strip { font-size: 10px; gap: 6px 12px; }
  .masthead-strip > div { gap: 10px; }
}
.live-dot { display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--truth); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.masthead-title { padding: 18px 0 12px; text-align: center; }
.masthead-title h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(54px, 11vw, 148px); line-height: 1; letter-spacing: -.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  padding-bottom: 8px;
}
.masthead-title h1 em { font-style: italic; color: var(--truth); font-weight: 900; }
.masthead-sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(15px, 2vw, 22px); color: var(--ink-soft); margin-top: 18px;
}

.masthead-quote {
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  padding: 10px 0; margin-top: 14px; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  font-size: 14px;
}

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 90; background: var(--paper);
  border-bottom: var(--rule-w) solid var(--rule);
  backdrop-filter: saturate(180%);
}
.nav-inner {
  display: flex; gap: 6px; align-items: stretch; height: 46px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .nav-link, .nav-action { padding: 0 12px; font-size: 11px; }
}
.nav-link {
  display: flex; align-items: center; padding: 0 18px; cursor: pointer;
  border-right: 1px solid var(--rule-soft); white-space: nowrap; color: var(--ink);
  text-decoration: none;
}
.nav-link:first-child { border-left: 1px solid var(--rule-soft); }
.nav-link:hover { background: var(--ink); color: var(--paper); }
.nav-link.on { background: var(--truth); color: #fff; }
.nav-spacer { flex: 1; border-right: 1px solid var(--rule-soft); }
.nav-action {
  display: flex; align-items: center; padding: 0 14px; cursor: pointer;
  border-right: 1px solid var(--rule-soft); color: var(--ink-mute);
}
.nav-action:hover { color: var(--truth); }

/* ─── Live verdict ticker ─────────────────────────────────── */
.ticker {
  position: sticky; top: 46px; z-index: 80;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px;
  padding: 8px 0; border-bottom: 2px solid var(--rule);
  display: none;
}
.ticker.show { display: block; }
.ticker-inner { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ticker-tag { color: var(--truth); font-weight: 700; letter-spacing: .08em; }
.ticker-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--paper); padding: 2px 9px;
}

/* ─── Hero / manifesto block ─────────────────────────────── */
.manifesto {
  display: grid; grid-template-columns: 2fr 1fr; gap: 36px;
  padding: 36px 0; border-bottom: var(--rule-w) solid var(--rule);
}
@media (max-width: 720px) { .manifesto { grid-template-columns: 1fr; gap: 22px; } }
.manifesto-lead {
  font-family: var(--serif); font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.18; font-weight: 500; letter-spacing: -.012em;
}
.manifesto-lead .h { background: var(--highlight); padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.manifesto-lead em { color: var(--truth); font-style: italic; font-weight: 600; }
/* Drop cap — newspaper opening flourish */
.manifesto-lead::first-letter {
  font-family: var(--serif); font-weight: 900; font-style: normal;
  float: left; font-size: clamp(72px, 11vw, 132px); line-height: .82;
  margin: 6px 14px 0 0; padding: 0; color: var(--truth);
  font-variation-settings: 'opsz' 144;
}
@media (max-width: 720px) {
  .manifesto-lead::first-letter { font-size: 64px; margin: 4px 10px 0 0; }
}
.manifesto-stats { display: flex; flex-direction: column; gap: 14px; border-left: var(--rule-w) solid var(--rule); padding-left: 22px; }
.manifesto-stat .num { font-family: var(--serif); font-weight: 800; font-size: 38px; line-height: 1; }
.manifesto-stat .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

/* ─── Section heads ───────────────────────────────────────── */
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--truth); margin-bottom: 6px;
}
.section-h {
  font-family: var(--serif); font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(26px, 4vw, 44px); line-height: 1.05;
  border-bottom: var(--rule-w) solid var(--rule);
  padding-bottom: 10px; margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  position: relative;
}
.section-h::before {
  content: ''; position: absolute; left: 0; bottom: -7px; width: 64px; height: 5px;
  background: var(--truth);
}
.section-h .num {
  font-family: var(--mono); font-size: 14px; font-weight: 400;
  color: var(--ink-mute); letter-spacing: .04em;
}
.section { padding: 40px 0; position: relative; }
/* small newspaper ornament between sections */
.section + .section::before {
  content: '❦'; display: block; text-align: center; color: var(--ink-mute);
  font-size: 14px; margin-top: -28px; margin-bottom: 14px; opacity: .35;
}

/* ─── Track picker ───────────────────────────────────────── */
.tracks {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border: var(--rule-w) solid var(--rule);
}
@media (max-width: 980px) { .tracks { grid-template-columns: repeat(3, 1fr); } .tracks .track:nth-child(3n) { border-right: 0; } .tracks .track:nth-child(-n+3) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .tracks { grid-template-columns: repeat(2, 1fr); } .tracks .track { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule); } .tracks .track:nth-child(2n) { border-right: 0 !important; } .tracks .track:nth-last-child(-n+2) { border-bottom: 0; } }
.track {
  padding: 22px 18px 20px; cursor: pointer; transition: background .15s;
  border-right: 1px solid var(--rule); position: relative;
}
.track:last-child { border-right: 0; }
.track:hover { background: var(--ink); color: var(--paper); }
.track.on { background: var(--truth); color: #fff; }
.track .t-num { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; opacity: .7; }
.track .t-name { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1; margin-top: 6px; }
.track .t-desc { font-size: 12px; margin-top: 8px; opacity: .8; line-height: 1.4; }

/* ─── Inputs ─────────────────────────────────────────────── */
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1 / -1; }
.fl {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mute);
}
.fi, .fs, textarea {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--rule); padding: 11px 14px;
  font-family: var(--mono); font-size: 14px; width: 100%;
  border-radius: 0;
}
.fi:focus, .fs:focus, textarea:focus { outline: 2px solid var(--truth); outline-offset: -2px; }
.fs { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230e0e0e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
body.dark .fs { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f4f1ea' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fs option { background: var(--paper); color: var(--ink); }
textarea { font-family: var(--sans); resize: vertical; min-height: 70px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .form-grid, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; } }

.takehome {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  padding: 6px 0; display: flex; gap: 8px; align-items: center;
}
.takehome b { color: var(--ink); font-weight: 700; }

/* ─── Chips ─────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  padding: 6px 12px; border: 1.5px solid var(--rule); cursor: pointer;
  background: transparent; color: var(--ink); transition: all .12s;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip.on { background: var(--truth); color: #fff; border-color: var(--truth); }

/* ─── College table ─────────────────────────────────────── */
.tbl-wrap { border: var(--rule-w) solid var(--rule); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 14px; text-align: left;
}
.tbl td {
  padding: 12px 14px; border-bottom: 1px solid var(--rule-soft);
  font-size: 13px; vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--truth-soft); }
.tbl .col-name { font-family: var(--serif); font-weight: 700; font-size: 15px; }
.tbl .col-name a { text-decoration: none; border-bottom: 1px dotted var(--ink); }
.tbl .col-name a:hover { color: var(--truth); border-color: var(--truth); }
.tbl .num-cell { font-family: var(--mono); font-size: 13px; }
.tbl .ctc-cell { font-family: var(--mono); font-weight: 600; color: var(--green); }
.tbl .cut-cell { font-family: var(--mono); color: var(--pop); }
.cchk { width: 16px; height: 16px; accent-color: var(--truth); cursor: pointer; }

.search-box {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--rule);
  font-family: var(--mono); font-size: 13px; background: transparent; color: var(--ink);
  margin-bottom: 8px;
}
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-row .chip { font-size: 11px; padding: 5px 10px; }

/* ─── Calculate button (huge) ─────────────────────────── */
.calc-btn {
  width: 100%; padding: 28px; background: var(--ink); color: var(--paper);
  border: 4px solid var(--ink); font-family: var(--serif); font-weight: 900;
  font-size: clamp(24px, 4vw, 36px); letter-spacing: -.01em;
  cursor: pointer; transition: all .18s; margin: 22px 0; line-height: 1;
}
.calc-btn:hover { background: var(--truth); border-color: var(--truth); color: #fff; }
.calc-btn .arrow { display: inline-block; transition: transform .2s; }
.calc-btn:hover .arrow { transform: translateX(8px); }
.calc-btn small {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-top: 8px;
}

/* ─── Truth Score ───────────────────────────────────── */
.truth-score-block {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px;
  border: var(--rule-w) solid var(--rule);
  padding: 30px; align-items: center;
}
@media (max-width: 720px) { .truth-score-block { grid-template-columns: 1fr; gap: 18px; padding: 22px; } }
.score-num {
  font-family: var(--serif); font-weight: 900; font-size: clamp(120px, 22vw, 220px);
  line-height: .85; letter-spacing: -.05em;
}
.score-num small { font-size: .35em; color: var(--ink-mute); font-weight: 600; }
.score-bar {
  height: 8px; background: var(--rule-soft); margin-top: 16px;
  border: 1px solid var(--rule); position: relative;
}
.score-bar .fill { height: 100%; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.score-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }
.score-oneliner {
  font-family: var(--serif); font-size: clamp(20px, 3vw, 32px);
  line-height: 1.2; font-weight: 700; letter-spacing: -.012em;
}
.score-oneliner em { color: var(--truth); font-style: italic; }
.score-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px;
  margin-top: 14px; border: 1.5px solid;
}
.score-tag.green { color: var(--green); border-color: var(--green); }
.score-tag.amber { color: var(--amber); border-color: var(--amber); }
.score-tag.red { color: var(--red); border-color: var(--red); }

/* ─── Metric trio ─────────────────────────────────────── */
.metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: var(--rule-w) solid var(--rule); margin-top: 22px;
}
@media (max-width: 720px) { .metric-row { grid-template-columns: 1fr; } .metric-row > *:not(:last-child) { border-bottom: 1px solid var(--rule); border-right: 0 !important; } }
.met { padding: 22px; border-right: 1px solid var(--rule); }
.met:last-child { border-right: 0; }
.ml { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.mv { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1; margin-top: 6px; letter-spacing: -.02em; }
.ms { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }

/* ─── Verdict / anti-rec blocks ───────────────────────── */
.verdict {
  border: var(--rule-w) solid; padding: 22px 26px; margin-top: 22px;
  background: var(--paper); position: relative;
}
.verdict.green { border-color: var(--green); background: var(--green-soft); }
.verdict.amber { border-color: var(--amber); background: var(--amber-soft); }
.verdict.red { border-color: var(--red); background: var(--red-soft); }
.vt { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; line-height: 1.15; letter-spacing: -.012em; }
.verdict.green .vt { color: var(--green); }
.verdict.amber .vt { color: var(--amber); }
.verdict.red .vt { color: var(--red); }
.vb { font-size: 15px; line-height: 1.6; color: var(--ink); }

.anti-rec {
  border: var(--rule-w) solid var(--rule); border-left-width: 6px; border-left-color: var(--truth);
  padding: 18px 22px; margin-top: 14px; background: var(--paper);
}
.anti-rec h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--truth); margin-bottom: 10px;
}
.anti-rec ul { list-style: none; }
.anti-rec li {
  padding: 5px 0 5px 22px; position: relative; font-size: 14px; line-height: 1.55;
}
.anti-rec li::before {
  content: '✕'; position: absolute; left: 0; color: var(--truth); font-weight: 700;
}

/* ─── Cost waterfall ─────────────────────────────────── */
.bars-box { border: var(--rule-w) solid var(--rule); padding: 22px; margin-top: 22px; }
.bar-item { margin-bottom: 16px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-meta-l { color: var(--ink-soft); font-family: var(--sans); }
.bar-meta-v { font-family: var(--mono); font-weight: 600; }
.btrack { height: 7px; background: var(--rule-soft); border: 1px solid var(--rule); overflow: hidden; }
.bfill { height: 100%; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bfill.acc { background: var(--ink); }
.bfill.amber { background: var(--amber); }
.bfill.red { background: var(--red); }

/* ─── Comparison cards ──────────────────────────────── */
.cmp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 720px) { .cmp-grid { grid-template-columns: 1fr; } }
.ccard { border: var(--rule-w) solid var(--rule); padding: 18px; }
.ccard.best { border-width: 3px; border-color: var(--green); position: relative; }
.ccard.best::after {
  content: 'BEST MATCH'; position: absolute; top: -1px; right: -1px;
  background: var(--green); color: #fff; padding: 4px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
}
.cname { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-bottom: 12px; line-height: 1.2; }
.crow { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--rule-soft); font-size: 13px; }
.ck { color: var(--ink-mute); font-family: var(--sans); }
.cv { font-family: var(--mono); font-weight: 500; text-align: right; max-width: 60%; }

/* ─── Stories / alumni cards ────────────────────────── */
.stories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@media (max-width: 720px) { .stories-grid { grid-template-columns: 1fr; } }
.story-card {
  border: var(--rule-w) solid var(--rule); padding: 22px; background: var(--paper);
}
.story-card .pull {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  line-height: 1.4; margin-bottom: 14px; letter-spacing: -.005em;
}
.story-card .pull::before { content: '“'; font-size: 50px; line-height: 0; vertical-align: -22px; color: var(--truth); margin-right: 4px; }
.story-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.story-meta b { color: var(--ink); font-weight: 600; }
.story-tag { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border: 1px solid var(--green); color: var(--green); margin-top: 10px; }

/* ─── Salary chart ──────────────────────────────────── */
.chart-box { border: var(--rule-w) solid var(--rule); padding: 22px; margin-top: 22px; }
.chart-box canvas { width: 100%; height: 260px; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
.chart-legend i { display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; }

/* ─── Coaching ROI box ──────────────────────────────── */
.coaching-box { border: var(--rule-w) solid var(--rule); padding: 22px; }
.coach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
@media (max-width: 720px) { .coach-grid { grid-template-columns: repeat(2, 1fr); } }
.coach-card {
  border: 1.5px solid var(--rule); padding: 12px; cursor: pointer; transition: all .12s;
}
.coach-card:hover { background: var(--ink); color: var(--paper); }
.coach-card.on { background: var(--truth); color: #fff; border-color: var(--truth); }
.coach-card .nm { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.coach-card .pr { font-family: var(--mono); font-size: 12px; margin-top: 4px; opacity: .8; }
.coach-card .sr { font-family: var(--mono); font-size: 11px; opacity: .65; margin-top: 2px; }
.coach-result {
  background: var(--ink); color: var(--paper); padding: 16px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
}
.coach-result b { color: var(--truth); }

/* ─── EMI ───────────────────────────────────────────── */
.emi-box { border: var(--rule-w) solid var(--rule); padding: 22px; }
.bank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 16px; }
@media (max-width: 720px) { .bank-grid { grid-template-columns: repeat(2, 1fr); } }
.bank-btn {
  border: 1.5px solid var(--rule); padding: 10px; cursor: pointer; transition: all .12s;
}
.bank-btn:hover { background: var(--ink); color: var(--paper); }
.bank-btn.on { background: var(--green); color: #fff; border-color: var(--green); }
.bank-name { font-family: var(--serif); font-weight: 700; font-size: 14px; }
.bank-rate { font-family: var(--mono); font-size: 11px; margin-top: 2px; opacity: .85; }
.emi-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--rule); }
@media (max-width: 720px) { .emi-result { grid-template-columns: 1fr; } .emi-result > *:not(:last-child) { border-right: 0 !important; border-bottom: 1px solid var(--rule); } }
.emi-metric { padding: 14px; border-right: 1px solid var(--rule); }
.emi-metric:last-child { border-right: 0; }
.emi-ml { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.emi-mv { font-family: var(--serif); font-weight: 800; font-size: 22px; margin-top: 4px; }
.emi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
@media (max-width: 720px) { .emi-grid { grid-template-columns: 1fr; } }
.slider-wrap { display: flex; gap: 10px; align-items: center; }
.slider-wrap input[type=range] { flex: 1; accent-color: var(--truth); }
.slider-val { font-family: var(--mono); font-size: 13px; color: var(--truth); min-width: 60px; text-align: right; }

/* ─── City COL / What-if ─────────────────────────── */
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .col-grid { grid-template-columns: 1fr; } }
.col-card { border: var(--rule-w) solid var(--rule); padding: 18px; }
.col-card .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.col-card .num { font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1; margin: 8px 0 4px; }
.col-card .num.green { color: var(--green); }
.col-card .num.red { color: var(--red); }
.col-card .desc { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }
.col-card .slider { width: 100%; accent-color: var(--truth); margin: 8px 0; }

/* ─── Visa overlay ─────────────────────────────── */
.visa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--rule-w) solid var(--rule); }
@media (max-width: 720px) { .visa-grid { grid-template-columns: 1fr; } .visa-grid > *:not(:last-child) { border-right: 0 !important; border-bottom: 1px solid var(--rule); } }
.visa-card { padding: 18px; border-right: 1px solid var(--rule); }
.visa-card:last-child { border-right: 0; }
.visa-flag { font-family: var(--serif); font-weight: 800; font-size: 22px; margin-bottom: 4px; }
.visa-stat { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.visa-stat b { color: var(--ink); font-weight: 700; }

/* ─── Actions row ─────────────────────────────── */
.actions-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: var(--rule-w) solid var(--rule); margin-top: 22px; }
@media (max-width: 720px) { .actions-row { grid-template-columns: repeat(2, 1fr); } .actions-row > *:nth-last-child(1) { grid-column: 1 / -1; } }
.act { padding: 16px; cursor: pointer; border-right: 1px solid var(--rule); text-align: center; transition: all .12s; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.act:last-child { border-right: 0; }
.act:hover { background: var(--ink); color: var(--paper); }
.act .ai { display: block; font-size: 18px; margin-bottom: 4px; }

/* ─── Footer ─────────────────────────────────── */
footer { border-top: 4px solid var(--rule); margin-top: 60px; padding: 30px 0 50px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.foot-grid a { display: block; font-family: var(--sans); font-size: 14px; padding: 4px 0; text-decoration: none; color: var(--ink); border-bottom: 1px dotted transparent; width: max-content; }
.foot-grid a:hover { color: var(--truth); border-color: var(--truth); }
.foot-mast { font-family: var(--serif); font-weight: 900; font-size: 36px; line-height: .9; }
.foot-mast em { color: var(--truth); font-style: italic; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; }

/* ─── Modals / overlays ──────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 14, 14, .8); backdrop-filter: blur(2px);
  align-items: center; justify-content: center; padding: 20px;
}
.overlay.show { display: flex; }
.modal {
  background: var(--paper); border: 4px solid var(--rule);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 30px;
}
.modal h3 { font-family: var(--serif); font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 22px; }

/* ─── Toasts ─────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: var(--paper); padding: 14px 18px;
  border: 2px solid var(--truth); font-family: var(--mono); font-size: 13px;
  max-width: 360px; transform: translateX(100%); animation: toast-in .25s ease forwards;
  pointer-events: auto;
}
.toast.out { animation: toast-out .2s ease forwards; }
@keyframes toast-in { to { transform: translateX(0); } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* ─── Theme toggle ──────────────────────────── */
.theme-toggle { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--rule-soft); }
.theme-toggle:hover { background: var(--ink); color: var(--paper); }

/* ─── Page loader ───────────────────────────── */
.page-loader { position: fixed; inset: 0; background: var(--paper); z-index: 999; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity .4s; }
.page-loader.done { opacity: 0; pointer-events: none; }
.loader-mast { font-family: var(--serif); font-weight: 900; font-size: 60px; letter-spacing: -.04em; line-height: .9; }
.loader-mast em { color: var(--truth); font-style: italic; }
.loader-bar { width: 160px; height: 3px; background: var(--rule-soft); margin-top: 16px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--truth); width: 0; animation: load-grow 1.2s ease-out forwards; }
@keyframes load-grow { to { width: 100%; } }

/* ─── Scroll progress ───────────────────────── */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; background: var(--truth); width: 0; z-index: 100; transition: width .1s linear; }

/* ─── Disclaimer / data tag ─────────────────── */
.disclaimer { background: var(--amber-soft); border: 1.5px solid var(--amber); padding: 12px 16px; font-size: 13px; line-height: 1.55; display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.disclaimer b { color: var(--ink); }
.disclaimer .x { margin-left: auto; color: var(--ink-mute); font-size: 16px; cursor: pointer; }

/* ─── College page ──────────────────────────── */
.college-hero { padding: 30px 0; border-bottom: var(--rule-w) solid var(--rule); display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
@media (max-width: 720px) { .college-hero { grid-template-columns: 1fr; } }
.college-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 7vw, 84px); line-height: .92; letter-spacing: -.03em; }
.college-hero .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }
.college-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--rule-w) solid var(--rule); margin-top: 22px; }
@media (max-width: 720px) { .college-stats { grid-template-columns: 1fr 1fr; } }
.cs-cell { padding: 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) { .cs-cell:nth-child(even) { border-right: 0; } .cs-cell:nth-last-child(-n+2) { border-bottom: 0; } }
.cs-cell:last-child, .cs-cell:nth-child(4) { border-right: 0; }
.cs-cell:nth-last-child(-n+4) { border-bottom: 0; }
.cs-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.cs-val { font-family: var(--serif); font-weight: 800; font-size: 28px; margin-top: 4px; line-height: 1; }
.cs-sub { font-size: 12px; color: var(--ink-mute); margin-top: 4px; font-family: var(--mono); }

.btn-primary {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 14px 22px; font-family: var(--mono); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--ink); transition: all .15s;
}
.btn-primary:hover { background: var(--truth); border-color: var(--truth); color: #fff; }

.btn-ghost {
  display: inline-block; background: transparent; color: var(--ink);
  padding: 14px 22px; font-family: var(--mono); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--ink); transition: all .15s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ─── Stories wall ─────────────────────────── */
.wall-grid { columns: 2; column-gap: 14px; margin-top: 22px; }
@media (max-width: 720px) { .wall-grid { columns: 1; } }
.wall-card { break-inside: avoid; border: var(--rule-w) solid var(--rule); padding: 18px; margin-bottom: 14px; background: var(--paper); }
.wall-quote { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
.wall-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }

/* ─── Reverse calc result ──────────────────── */
.path-rec {
  border: var(--rule-w) solid var(--rule); padding: 22px; margin-top: 14px;
}
.path-rec h3 { font-family: var(--serif); font-weight: 800; font-size: 22px; }
.path-rec .why { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 6px; font-size: 15px; line-height: 1.5; }
.path-rec .stats { display: flex; gap: 18px; margin-top: 10px; font-family: var(--mono); font-size: 12px; flex-wrap: wrap; }
.path-rec .stats span b { color: var(--truth); }

/* ─── Print ─────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; font-size: 11px; }
  .nav, .ticker, .calc-btn, .actions-row, .scroll-prog, .toast-wrap, .page-loader, footer .foot-bottom { display: none !important; }
  .truth-score-block, .verdict, .anti-rec, .bars-box, .ccard, .met, .story-card { break-inside: avoid; }
}

/* helpers */
.hide { display: none !important; }
.show { display: block !important; }
.row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--ink-mute); }
.small { font-size: 12px; }
.tag { font-family: var(--mono); font-size: 10px; padding: 2px 7px; border: 1px solid var(--rule); color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }

.live-fx { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); display: inline-flex; gap: 12px; flex-wrap: wrap; }
.live-fx span b { color: var(--ink); font-weight: 600; }

/* spec note */
.spec-note { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding: 10px 14px; border-left: 3px solid var(--truth); background: var(--truth-soft); margin-top: 8px; line-height: 1.5; }
