:root {
  --brand: #1b2a33;        /* Cotulla charcoal-navy */
  --brand-deep: #121d24;
  --accent: #e8862e;       /* builder amber */
  --accent-soft: #fdf0e2;
  --teal: #1f6f8b;
  --ink: #1f2430;
  --muted: #66707f;
  --line: #e3e7ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --good: #1e7d46;
  --bad: #b3402e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

header {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff; padding: 26px 0 22px;
  border-bottom: 4px solid var(--accent);
}
.brandline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wordmark { font-size: 27px; font-weight: 800; letter-spacing: 4px; }
.wordmark-sub { font-size: 12px; letter-spacing: 3.2px; color: var(--accent); font-weight: 700; }
.brand-sep { width: 1px; height: 22px; background: rgba(255,255,255,.3); align-self: center; margin: 0 8px; }
.appname { font-size: 17px; font-weight: 500; color: #dfe7ec; }
.tagline { margin: 6px 0 8px; color: var(--accent); font-size: 13px; font-style: italic; }
header .sub { margin: 0; max-width: 920px; color: #aebcc6; font-size: 13px; }

main { padding: 22px 20px 60px; }

/* sticky section navigation */
.jumpnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-deep); border-bottom: 1px solid rgba(255,255,255,.12);
}
.jumpnav-row {
  display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jumpnav-row::-webkit-scrollbar { display: none; }
.jumpnav a {
  color: #c4d0d9; text-decoration: none; font-size: 12.5px; font-weight: 600;
  padding: 9px 12px; white-space: nowrap; border-bottom: 2px solid transparent;
}
.jumpnav a:hover { color: #fff; border-bottom-color: var(--accent); }

/* horizontally swipeable tables on narrow screens */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 660px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 18px;
}
h2 { font-size: 16px; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }

.controls { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 22px; }
.control label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }

.picker { position: relative; }
.picker input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 14px; background: #fbfcfe;
}
.picker input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.options {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  max-height: 290px; overflow-y: auto; box-shadow: 0 8px 24px rgba(20,30,50,.13);
  display: none;
}
.options.open { display: block; }
.options div { padding: 8px 12px; cursor: pointer; font-size: 13.5px; }
.options div:hover, .options div.active { background: #eef3f8; }
.options .code { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.options .fp { color: var(--accent); font-size: 11px; margin-left: 6px; font-weight: 700; }
.options .cr { color: #1c6b51; font-size: 11px; margin-left: 6px; font-weight: 700; }

.chips { margin-top: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; }
.chip-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  font-weight: 700; margin-right: 3px; flex-basis: 100%;
}
.chip {
  border: 1px solid var(--line); background: #fbfcfe; color: var(--ink);
  border-radius: 12px; font-size: 11.5px; padding: 3px 10px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip.fp-chip { background: var(--accent-soft); border-color: #f0cda4; }
.chip.fp-chip.on { background: var(--accent); color: #fff; }
.chip.cr-chip { background: #e8f1ee; border-color: #bcd6cd; color: #14533f; font-weight: 600; }
.chip.cr-chip.on { background: #1c6b51; border-color: #1c6b51; color: #fff; }

.thr-badge {
  background: var(--accent); color: #fff; border-radius: 9px; padding: 1px 9px;
  font-size: 12.5px; margin-left: 6px;
}
input[type=range] { width: 100%; margin: 14px 0 4px; accent-color: var(--accent); }
.slider-hints { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.wage-label { margin-top: 14px; }
.wage-label .optional { color: var(--muted); font-weight: 400; font-size: 11.5px; }
#wageInput {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 14px; background: #fbfcfe; margin-bottom: 3px;
}
#wageInput:focus { outline: 2px solid var(--accent); border-color: transparent; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.stat .l { color: var(--muted); font-size: 12px; margin-top: 3px; }
.stat .s { color: var(--teal); font-size: 11.5px; margin-top: 5px; }

.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: 7px 8px;
}
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--ink); }
th.num, td.num { text-align: right; }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
tr:hover td { background: #f7f9fc; }
tr.fp-row td { background: var(--accent-soft); }
.simbar {
  display: inline-block; height: 8px; border-radius: 4px; background: var(--teal);
  vertical-align: middle; margin-right: 7px;
}
.pos { color: var(--good); font-weight: 600; }
.neg { color: var(--bad); }
.gapbtn {
  border: 1px solid var(--line); background: #fbfcfe; border-radius: 6px; cursor: pointer;
  font-size: 11.5px; padding: 3px 9px; color: var(--teal);
}
.gapbtn:hover { background: #eef3f8; }

.gaprow { display: grid; grid-template-columns: 220px 1fr 40px; align-items: center; gap: 10px; margin: 5px 0; font-size: 13px; }
.gaprow .bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #f0a95c, #e8862e); }
.gaprow .domain {
  font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); display: block;
}
.gaprow .val { color: var(--muted); font-size: 12px; text-align: right; }

#survival svg { width: 100%; height: auto; display: block; }

/* Cotulla local card */
.cotulla-card { border-top: 3px solid var(--accent); }
.crusoe-card { border-top: 3px solid #1c6b51; }
.crusoe-site { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cr-tag {
  display: inline-block; background: #1c6b51; color: #fff; font-size: 10.5px;
  font-weight: 700; letter-spacing: .6px; border-radius: 4px; padding: 2px 7px; margin-right: 7px;
}
.crusoe-site .city { font-weight: 600; font-size: 13.5px; }
.crusoe-site .progs { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.crusoe-site a { color: var(--teal); }
tr.cr-row td { background: #e8f1ee; }
.desc-sm { color: var(--muted); font-size: 11.5px; }
.campus { padding: 10px 0; border-bottom: 1px solid var(--line); }
.campus:last-child { border-bottom: 0; }
.campus .brand-tag {
  display: inline-block; background: var(--brand); color: #fff; font-size: 10.5px;
  font-weight: 700; letter-spacing: .6px; border-radius: 4px; padding: 2px 7px; margin-right: 7px;
}
.campus .city { font-weight: 600; font-size: 13.5px; }
.campus .progs { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.opportunity {
  background: var(--accent-soft); border-radius: 8px; padding: 10px 13px; margin-top: 12px;
  font-size: 13px;
}
.opportunity b { color: var(--brand); }

/* verdict panel */
.verdict-card { border-top: 4px solid var(--accent); }
.verdict-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.verdict-head h2 { font-size: 17px; margin: 0; }
.verdict-chip {
  padding: 4px 13px; border-radius: 14px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.vc-green { background: #dff0e6; color: var(--good); }
.vc-amber { background: var(--accent-soft); color: #b35f12; }
.vc-red { background: #fbe9e5; color: var(--bad); }
.verdict-line { font-size: 13.5px; margin: 10px 0 4px; max-width: 900px; }
.verdict-line a { color: var(--teal); font-weight: 600; }
.verdict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.verdict-grid .stat { background: #fbfcfe; }
.verdict-q2 { margin-top: 16px; font-size: 13.5px; }
.timeline { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.tl-step { flex: 1; min-width: 150px; border-top: 3px solid var(--teal); padding-top: 6px; }
.tl-step .w { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); font-weight: 700; }
.tl-step .t { font-size: 12.5px; margin-top: 2px; }
.tl-note { color: var(--muted); font-size: 11px; }

/* collapsed deep-dive sections */
details.deep {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 18px;
}
details.deep > summary {
  cursor: pointer; padding: 15px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary h2 { margin: 0; display: inline; }
details.deep > summary h2::before { content: "▸ "; color: var(--accent); }
details.deep[open] > summary h2::before { content: "▾ "; }
details.deep > summary .hint { color: var(--muted); font-size: 12px; }
details.deep > .deep-body {
  padding: 14px 14px 4px; background: var(--bg);
  border-top: 1px solid var(--line); border-radius: 0 0 10px 10px;
}

/* recruitment funnel card */
.funnel-card { border-top: 3px solid var(--teal); }
.funnel-controls { margin-bottom: 4px; }
.funnel-inputs { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 4px; }
.finput label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.finput .optional { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.finput-row { display: flex; gap: 6px; }
.finput input {
  width: 110px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 14px; background: #fbfcfe;
}
.finput input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.finput select {
  padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 12.5px; background: #fbfcfe; color: var(--ink);
}
.custom-chip { background: var(--brand); border-color: var(--brand); color: #fff; cursor: default; }

.frows { margin-top: 10px; }
.frow {
  display: grid; grid-template-columns: 225px 195px 85px 1fr;
  align-items: center; gap: 12px; padding: 5px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.frow:last-child { border-bottom: 0; }
.fr-rate { display: flex; align-items: center; gap: 5px; }
.fr-x, .fr-pct { color: var(--muted); font-size: 12px; }
.fr-rate input {
  width: 56px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px;
  font-size: 12.5px; text-align: right; background: #fbfcfe;
}
.fr-rate input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.q-badge {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
  border-radius: 4px; padding: 2px 6px; text-decoration: none; white-space: nowrap;
}
a.q-badge:hover { filter: brightness(.93); }
.q-sourced { background: #dff0e6; color: var(--good); }
.q-general { background: #e9eef4; color: var(--muted); }
.q-assumption { background: var(--accent-soft); color: #b35f12; }
.fr-count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fr-barwrap { min-width: 0; }
.fr-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #8fbfd0, var(--teal)); }

.funnel-cost { margin-top: 13px; font-size: 13.5px; }
.funnel-cost b { color: var(--brand); }
.cost-caveat { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
#funnelSupply { margin-top: 12px; }
#funnelSupply a { color: var(--teal); font-weight: 600; }
.opportunity.supply-green { background: #e7f3ec; }
.opportunity.supply-amber { background: var(--accent-soft); }
.opportunity.supply-red { background: #fbe9e5; }
.s-caveat { color: var(--muted); font-size: 11.5px; margin-top: 8px; }

/* programs list */
.prog { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.prog:last-child { border-bottom: 0; }
.prog .type-tag {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  border-radius: 4px; padding: 2px 6px; margin-left: 6px; background: #e9eef4; color: var(--muted);
}
.prog .type-tag.dc { background: #dff0e6; color: var(--good); }
.prog a { color: var(--teal); font-weight: 600; text-decoration: none; }
.prog a:hover { text-decoration: underline; }
.prog .desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.about p { color: var(--muted); font-size: 13px; }
.about h3 {
  font-size: 13px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 5px;
}
.about ul { margin: 6px 0; padding-left: 20px; }
.about li { color: var(--muted); font-size: 13px; margin: 5px 0; line-height: 1.5; }
.about a { color: var(--teal); text-decoration: none; font-weight: 600; }
.about a:hover { text-decoration: underline; }
.about em { font-style: italic; }
.hidden { display: none; }

html { scroll-padding-top: 48px; } /* keep anchors visible below sticky nav */

/* ===================================================== pitch page (pitch.html) */
.pitch-hero { padding: 40px 0 34px; }
.pitch-hero .eyebrow {
  display: inline-block; color: var(--accent); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px; border: 1px solid rgba(232,134,46,.5);
  border-radius: 4px; padding: 3px 9px; margin-bottom: 14px;
}
.pitch-hero h1 { font-size: 31px; line-height: 1.15; margin: 16px 0 10px; letter-spacing: -.4px; max-width: 760px; }
.pitch-hero .sub { font-size: 14px; max-width: 860px; }
.pitch-hero .sub a { color: var(--accent); font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.hero-stat { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; }
.hero-stat .v { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.hero-stat .l { color: #c8d2da; font-size: 12px; margin-top: 4px; line-height: 1.4; }
.hero-live { margin-top: 18px; font-size: 12.5px; color: #c8d2da; }
.hero-live a { color: var(--accent); font-weight: 600; }
.hero-live .live-badge { margin-right: 6px; }
.jumpnav .nav-explorer { color: var(--accent); font-weight: 700; margin-left: auto; }

body.pitch main { padding-top: 26px; }
body.pitch h2 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.2px; }
.lede { color: var(--ink); font-size: 14px; margin: 0 0 16px; max-width: 900px; }
.group-head {
  font-size: 12.5px; margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 5px;
}
body.pitch .cards { margin: 14px 0 18px; }
body.pitch .stat .s a { color: var(--teal); text-decoration: none; }

#pipelineTable .subtotal td { background: var(--accent-soft); font-weight: 700; font-size: 12.5px; }
#pipelineTable .cr-tag { margin-right: 7px; }
#pipelineTable .src { color: var(--muted); font-size: 11px; text-decoration: none; }
#pipelineTable .src:hover { color: var(--teal); }
#demandKicker b { color: var(--brand); }
#demandKicker a { color: var(--teal); }

.site-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.site-card {
  border: 1px solid var(--line); border-top: 3px solid #1c6b51; border-radius: 10px;
  padding: 14px 16px; background: #fdfefe;
}
.site-card h4 { margin: 0 0 3px; font-size: 15px; }
.site-line { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.mini .v { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.mini .l { color: var(--muted); font-size: 11px; margin-top: 1px; }
.ask-line { margin-top: 10px; font-size: 12.5px; background: #e8f1ee; border-radius: 6px; padding: 6px 10px; }
.site-note { margin-top: 8px; font-size: 12px; color: #7a4a12; background: var(--accent-soft); border-radius: 6px; padding: 6px 10px; }
.site-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px;
}
.site-foot a { color: var(--teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-foot a:hover { text-decoration: underline; }

.wage-cards { grid-template-columns: 1fr; }
#feederDemo td { font-size: 13px; }

.pfrow { display: grid; grid-template-columns: 340px 80px 1fr; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pf-rate { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
.pf-count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #8fbfd0, var(--teal)); }
.pf-cost { margin: 12px 0 4px; font-size: 13px; }
.pf-cost b { color: var(--brand); }
.pf-cost a { color: var(--teal); }

.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 6px; }
.proof { border-left: 3px solid var(--accent); padding: 3px 0 3px 12px; }
.p-stat { font-weight: 700; font-size: 14px; }
.p-detail { color: var(--muted); font-size: 12px; margin-top: 2px; }
.p-detail a { color: var(--teal); text-decoration: none; }
.invest-list { margin: 6px 0 14px; padding-left: 20px; }
.invest-list li { font-size: 13px; margin: 5px 0; color: var(--ink); }
.invest-list a { color: var(--teal); text-decoration: none; }
#sourcingNote a { color: var(--teal); }

.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.partner-region h4 { margin: 10px 0 2px; font-size: 13.5px; }
.partner-region .prog { padding: 6px 0; }

#scenarioTable td:nth-child(2) { background: var(--accent-soft); }
#scenarioTable .mix { font-size: 11.5px; color: var(--muted); }

/* newcomer chain (pitch method section) */
.chain { margin: 4px 0 10px; }
.chain-step {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 12px; margin-bottom: 8px;
}
.chain-step .v { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.chain-step .l { font-size: 12.5px; color: var(--ink); }
.chain-step .chain-src { color: var(--muted); font-size: 11px; }

/* smoke-test dashboard (pitch ask section) */
.smoke-head { font-size: 13.5px; margin: 6px 0 12px; }
.live-badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px;
  border-radius: 4px; padding: 2px 8px; margin-right: 8px;
  background: #e9eef4; color: var(--muted);
}
.live-badge.on { background: #dff0e6; color: var(--good); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.smoke-grid { grid-template-columns: repeat(3, 1fr); }
.smoke-tile.pending .v { color: var(--muted); font-weight: 400; }
.smoke-tile.pending { border-style: dashed; }

.ask-card { border-top: 3px solid var(--accent); }
.ask-list { margin: 10px 0; padding-left: 22px; }
.ask-list li { margin: 8px 0; font-size: 13.5px; }
.cta-row { margin-top: 16px; }
.cta {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 14px; border-radius: 8px; padding: 10px 18px; text-decoration: none;
}
.cta:hover { filter: brightness(1.06); }
.print-only { display: none; }

@media (max-width: 900px) {
  .site-grid, .proof-grid, .partner-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .pfrow { grid-template-columns: 1fr 80px; }
  .pf-barwrap { display: none; }
  .pitch-hero h1 { font-size: 25px; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .pitch-hero { padding: 24px 0 22px; }
  .pitch-hero h1 { font-size: 22px; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  body.pitch { background: #fff; font-size: 12px; }
  body.pitch .jumpnav, body.pitch .cta-row { display: none; }
  body.pitch .print-only { display: block; font-weight: 600; }
  body.pitch .card { border: 1px solid #ccc; break-inside: avoid; box-shadow: none; }
  body.pitch .site-card, body.pitch .proof, body.pitch .stat { break-inside: avoid; }
  body.pitch h2 { break-after: avoid; }
  body.pitch #sites, body.pitch #recruiting, body.pitch #cost { break-before: page; }
  body.pitch .pitch-hero, body.pitch .hero-stat .v, body.pitch .pf-bar,
  body.pitch #pipelineTable .subtotal td, body.pitch #scenarioTable td:nth-child(2) {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.pitch .table-wrap { overflow: visible; }
  body.pitch .table-wrap table { min-width: 0; }
  body.pitch .table-wrap::after { content: none; }
  @page { margin: 14mm; }
}

@media (max-width: 900px) {
  .controls, .two-col { grid-template-columns: 1fr; }
  .cards, .verdict-grid { grid-template-columns: 1fr 1fr; }
  .frow { grid-template-columns: 175px 175px 80px 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding: 0 12px; }
  main { padding: 14px 12px 40px; }
  .card { padding: 14px; border-radius: 8px; margin-bottom: 12px; }

  header { padding: 16px 0 14px; }
  .wordmark { font-size: 21px; letter-spacing: 3px; }
  .appname { font-size: 14px; }
  .brand-sep { margin: 0 4px; }
  header .sub { font-size: 12px; }
  .tagline { font-size: 12px; margin: 4px 0 6px; }

  .cards { gap: 8px; }
  .stat { padding: 11px 12px; }
  .stat .v { font-size: 19px; }
  .stat .l { font-size: 11px; }
  .stat .s { font-size: 10.5px; }

  .chip { font-size: 11px; padding: 3px 8px; }
  .chip-group { gap: 4px; }

  th, td { padding: 6px 6px; font-size: 12.5px; }
  th { font-size: 10.5px; }
  .simbar { display: none; } /* the number carries the information */
  .table-wrap {
    margin: 0 -14px; padding: 0 14px; /* let tables bleed to card edge */
  }
  .table-wrap::after {
    content: "swipe to see more →";
    display: block; text-align: right; color: var(--muted);
    font-size: 10.5px; padding: 6px 2px 0;
  }

  /* stack skill-gap rows: label on top, bar + value below */
  .gaprow { grid-template-columns: 1fr 40px; row-gap: 3px; margin: 9px 0; }
  .gaprow > div:first-child { grid-column: 1 / -1; }

  /* funnel rows: label on top, rate + count below; the number carries the info */
  .frow { grid-template-columns: 1fr auto; row-gap: 3px; padding: 8px 0; }
  .fr-label { grid-column: 1 / -1; font-weight: 600; }
  .fr-barwrap { display: none; }
  .funnel-inputs { gap: 12px; }

  .verdict-grid { grid-template-columns: 1fr; gap: 8px; }
  .verdict-head h2 { font-size: 15px; }
  .tl-step { min-width: 100%; }
  details.deep > summary { padding: 12px 14px; }
  details.deep > .deep-body { padding: 10px 8px 2px; }

  .options { max-height: 220px; }
  .opportunity { font-size: 12.5px; }
  .prog { font-size: 12.5px; }
  .about li { font-size: 12.5px; }
  h2 { font-size: 15px; }
}
