/* capacity route styles. Shared canon comes from /assets/base.css, which
 * loads after this file and wins any disagreement. */

:root {
  --blue: #4361EE;
  --miss: #C0392F;
  --blue-deep: #3149C7;
  --blue-soft: #8FA3FF;
  --tint-1: #DCE2FC;
  --tint-2: #C8D1FA;
  --tint-3: #B4C0F8;
  --tint-0: #EEF1FE;
  --ink: #0C0E14;
  --panel: #0B0D13;
  --panel-2: #12151D;
  --paper: #FFFFFF;
  --paper-2: #F6F7FA;
  --line: #E6E8EF;
  --line-dark: rgba(255, 255, 255, 0.14);
  --gray: #565C68;
  --gray-2: #5B6472;
  --dark-body: #B9BFCE;
  --font-display: var(--wl-font);
  --topbar: 7px;
  --leftbar: 4px;
  --radius: 12px;
  --radius-btn: 32px;
  --radius-ghost: 40px;
  --radius-input: 32px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--tint-2); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ---------- type ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--blue); text-transform: uppercase;
}
.kicker::before { content: ''; width: 9px; height: 9px; background: var(--blue); flex: none; }
.dark .kicker, .kicker.on-dark { color: var(--blue-soft); }
.dark .kicker::before, .kicker.on-dark::before { background: var(--blue); }

h1.display {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 500; letter-spacing: 0.015em; line-height: 1.12;
  margin: 18px 0 16px;
}
h2.headline {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500; letter-spacing: 0.012em; line-height: 1.16;
  margin: 14px 0 8px;
  overflow-wrap: anywhere; min-width: 0;
}
.lede { color: var(--gray); font-size: 16px; max-width: 62ch; }
.lede strong, h2.headline .n { font-weight: 800; color: var(--ink); }

.microlabel {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
}
.microlabel.gray { color: var(--gray-2); }
.help { font-size: 12.5px; color: var(--gray-2); line-height: 1.5; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: var(--gnav-h, 47px); z-index: 40;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; gap: 12px; }
/* the top-line result, carried in the sticky bar once the hero scrolls away */
.top-answer { display: flex; align-items: baseline; gap: 8px; margin-left: auto; margin-right: 4px; white-space: nowrap; min-width: 0; }
/* the hidden attribute must beat the flex display, or the dedupe observer is a no-op */
.top-answer[hidden] { display: none; }
.top-answer .ta-v { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; font-feature-settings: 'tnum' 1; }
.top-answer .ta-l { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-2); }
.top-answer.is-miss .ta-v { color: var(--miss); }
.top-answer.is-miss .ta-l { color: var(--miss); }
@media (max-width: 860px) { .top-answer .ta-l { display: none; } }
@media (max-width: 520px) { .top-answer { display: none !important; } }
.brand { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.brand::before { content: ''; width: 10px; height: 10px; background: var(--blue); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-link { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--gray); padding: 8px 10px; }
.top-link:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font-size: 16px; font-weight: 400; letter-spacing: 0;
  padding: 12px 24px; border-radius: var(--radius-btn); border: 1px solid var(--ink);
  background: var(--ink); color: #fff; box-shadow: none;
  transition: background 0.15s;
}
.btn:hover { background: #23262f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); border-radius: var(--radius-ghost); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-deep); }

/* ---------- hero (matches pipeline / team-buildout) ---------- */
.hero {
  --ink: #0A0A0A;
  --ink-2: #151515;
  --blue-light: #8FA3FF;
  --line-dark: #363B45;
  --muted-dark: #9AA3B2;
  --warm-off: #F2F3F6;
  background: var(--ink);
  color: var(--warm-off);
  padding: 56px 0 64px;
  border-top: 0;
}
.hero .wrap { padding-top: 0; padding-bottom: 0; }
.hero .grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px; align-items: stretch;
}
.hero .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-light);
}
.hero h1 {
  font-weight: 500; font-size: clamp(2.5rem, 6vw, 4.35rem);
  line-height: 1.12; letter-spacing: 0.015em;
  color: #fff; margin: 18px 0 24px;
}
.hero .sub { margin-top: 16px; font-size: 19px; font-weight: 400; color: var(--blue-light); max-width: none; }
.infobox { background: var(--ink-2); border-top: 8px solid var(--blue); border-radius: var(--radius); padding: 32px; height: 100%; box-shadow: none; }
.infobox .row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); }
.infobox .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); padding-top: 2px; }
.infobox .v { font-size: 14px; color: var(--warm-off); font-weight: 600; }
.infobox .v a { color: var(--blue-light); text-decoration: none; }
.infobox .v a:hover { color: #fff; }
.infobox .go { display: inline-block; margin-top: 14px; color: var(--blue-light); font-weight: 700; font-size: 14px; text-decoration: none; }
.infobox .go:hover { color: #fff; }
.infobox .go:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) {
  .infobox .row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .infobox .k { padding-top: 0; }
  .infobox .v { font-size: 15px; line-height: 1.45; }
}

/* ---------- sections ---------- */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block.first { border-top: 0; }
.section-head { margin-bottom: 34px; }

/* ---------- input cards ---------- */
.input-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  border: 0;
  border-radius: var(--radius); padding: 32px; background: var(--paper-2);
  box-shadow: none;
}
.card .microlabel { display: block; margin-bottom: 10px; }
.bigin {
  width: 100%; border: 0; background: transparent; color: var(--ink); min-height: 44px;
  font-family: inherit; font-size: 25px; font-weight: 800; letter-spacing: -0.01em;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  font-feature-settings: 'tnum' 1;
}
.bigin { border-bottom-color: var(--tint-2); }
.bigin:hover { border-bottom-color: var(--blue-soft); }
.bigin:focus { border-bottom-color: var(--blue); }
.bigin:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bigin.is-bad { border-bottom-color: var(--miss); color: var(--miss); }
.in-err[hidden] { display: none; }
.in-err { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--miss); }
.bigval { font-size: 25px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.bigval .u { font-size: 14px; font-weight: 700; color: var(--gray-2); margin-left: 2px; }
.card .help { margin-top: 8px; }

select.sel {
  /* 16px and tighter padding: at 17px the closed control clipped the last
     character of "$120K - median" under the chevron */
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-input); padding: 12px 28px 12px 16px; min-height: 44px;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%230C0E14' stroke-width='1.6' fill='none'/></svg>") no-repeat right 12px center;
  appearance: none; -webkit-appearance: none;
}
select.sel:hover { border-color: var(--gray-2); }

input[type='range'] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px;
  background: transparent; margin-top: 0;
}
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--track, var(--line)); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 5px solid var(--blue); margin-top: -7px;
  box-shadow: 0 1px 3px rgba(12, 14, 20, 0.25);
}
input[type='range']::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue); }
input[type='range']::-moz-range-thumb { width: 8px; height: 8px; background: #fff; border: 5px solid var(--blue); border-radius: 50%; }

.step { display: flex; align-items: center; gap: 12px; }
.step button {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1;
}
.step button:hover { border-color: var(--ink); }
.step button:active { transform: translateY(1px); }
.step .bigval { min-width: 34px; text-align: center; }

/* ---------- advanced drawer ---------- */
.adv { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; background: var(--paper-2); }
summary.adv-head { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 10px; }
summary.adv-head::-webkit-details-marker { display: none; }
summary.adv-head::before { content: '\203A'; color: var(--blue); font-weight: 800; transition: transform 140ms ease; }
.adv[open] summary.adv-head::before { transform: rotate(90deg); }
summary.adv-head:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { summary.adv-head::before { transition: none; } }
.adv-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray);
  border-bottom: 1px solid var(--line);
}
.adv-body { padding: 6px 18px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.adv-item label { display: block; margin-bottom: 6px; }
.adv-item input[type='text'], .adv-item input[type='number'], .adv-item select {
  width: 100%; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-input); padding: 7px 16px; background: var(--paper);
  font-feature-settings: 'tnum' 1;
}
.adv-item input:focus, .adv-item select:focus { border-color: var(--blue); }
.adv-item input:focus-visible, .adv-item select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.adv-check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.adv-check input { width: 15px; height: 15px; accent-color: var(--blue); }
.adv-comp { grid-column: 1 / -1; }
.adv-comp table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.adv-comp th { text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.adv-comp td { padding: 5px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.adv-comp td input { width: 110px; font-family: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: var(--radius-input); padding: 5px 12px; font-feature-settings: 'tnum' 1; }
.adv-comp td input:focus { border-color: var(--blue); }
.adv-comp td input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
/* The rate card is the one wide table here that is neither table.grid nor
   .wl-cards, so its Role column used to swipe off screen and leave the
   numbers with nothing to name them. Same sticky anchor the grid uses. */
.adv-comp th:first-child, .adv-comp td:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--paper-2);
}
.adv-comp thead th:first-child { z-index: 3; }
.lock { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--gray-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 1px; white-space: nowrap; }

/* ---------- dark panels ---------- */
/* Sized as a sidebar, not a hero: the 30px stat scale and 24px padding read
   as a second page next to the tables they support. */
.panel-dark {
  background: var(--panel); color: #fff; border-radius: var(--radius);
  border-top: var(--topbar) solid var(--blue); padding: 19px 21px;
}
.panel-dark .microlabel { color: var(--blue-soft); }
.pd-row { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.pd-row:last-of-type { border-bottom: 0; }
.pd-row .v { font-size: 23px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; margin-bottom: 3px; }
.pd-row .l { font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue-soft); }
.pd-row .d { font-size: 12.5px; color: var(--dark-body); margin-top: 3px; }
.pd-foot { padding-top: 13px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line-dark); }
.pd-foot .accent { color: var(--blue-soft); }
.pd-bullets { list-style: none; }
.pd-bullets li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; color: var(--dark-body); }
.pd-bullets li:last-child { border-bottom: 0; }
.pd-bullets li::before { content: ''; width: 8px; height: 8px; background: var(--blue); margin-top: 4px; }
.pd-bullets li strong { color: #fff; }

/* ---------- unit section ---------- */
.unit-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 26px; align-items: start; }
.chart-card { border: 0; border-radius: var(--radius); padding: 32px; background: var(--paper-2); box-shadow: none; }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: end; height: 190px; margin-top: 26px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar .amt { font-size: 16.5px; font-weight: 800; text-align: center; margin-bottom: 6px; font-feature-settings: 'tnum' 1; }
.bar .fill { background: var(--blue); border-radius: 2px 2px 0 0; min-height: 3px; }
.bar.zero .fill { background: var(--line); height: 3px; }
.bar.zero .amt { color: var(--gray-2); }
.bar-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 10px; text-align: center; }
.bar-caps .q { font-size: 12.5px; font-weight: 800; }
.bar-caps .m { font-size: 11.5px; color: var(--gray-2); margin-top: 1px; }
.unit-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.unit-cell { border: 0; border-radius: var(--radius); padding: 32px; background: var(--paper-2); box-shadow: none; }
.unit-cell .v { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.unit-cell .v .u { font-size: 13px; font-weight: 700; color: var(--gray-2); }
.unit-cell .l { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-2); margin-top: 3px; }
/* Beside the dark rail the band's column is ~490px, and four cells leave 77px
   of text box against the 105px that "$1.00M/yr" needs, so the value clipped
   at the card edge. Two-up restores the room; below 1020px the grid stacks
   and four across fits again. */
@media (min-width: 1021px) {
  .unit-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.methodline { margin-top: 16px; font-size: 12.5px; color: var(--gray-2); line-height: 1.6; }
.methodline strong { color: var(--gray); }

/* ---------- bridge ---------- */
.bridge { display: grid; grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1.06fr); gap: 0; align-items: stretch; }
.bx { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; background: var(--paper); min-width: 0; }
.bx .l { font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--blue); }
.bx .v { font-size: clamp(18px, 1.9vw, 24px); font-weight: 800; letter-spacing: -0.015em; margin-top: 5px; white-space: nowrap; }
.bx .d { font-size: 12px; color: var(--gray-2); margin-top: 3px; }
.bx.terminal { background: var(--blue); border-color: var(--blue); color: #fff; }
.bx.terminal .l, .bx.terminal .d { color: #F2F5FF; }
.op { display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: var(--gray-2); }
.target-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.target-chip .sep { color: var(--line); }
.target-chip .good { color: var(--blue); }
.target-chip .warn { color: #B4372E; }

/* ---------- schedule table ---------- */
.sched-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr); gap: 26px; align-items: start; }
.tablecard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: var(--topbar) solid var(--blue); }
.table-scroll {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left center / 34px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right center / 34px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(12, 14, 20, 0.16), rgba(12, 14, 20, 0)) left center / 13px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(12, 14, 20, 0.16), rgba(12, 14, 20, 0)) right center / 13px 100% no-repeat scroll;
}
.table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.scroll-cue { display: none; }
@media (max-width: 860px) {
  .scroll-cue {
    display: block; margin-bottom: 8px;
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray-2);
  }
  table.grid th:first-child, table.grid td:first-child {
    position: sticky; left: 0; z-index: 2; background: var(--paper);
  }
  /* the sticky repaint drops the dark header fill, so the text colour has to
     follow it back to ink or the label goes white on white */
  table.grid thead th:first-child { color: var(--ink); }
  table.grid thead th:first-child { z-index: 3; }
}

/* Desktop tables scroll too (the schedule runs seven columns), and a scrolled
   table must keep its row labels. Same sticky treatment the mobile band uses;
   each row type carries its own opaque fill so nothing bleeds through. */
@media (min-width: 861px) {
  table.grid th:first-child, table.grid td:first-child { position: sticky; left: 0; z-index: 2; background: var(--paper); }
  table.grid thead th:first-child { background: var(--ink); z-index: 3; }
  table.grid tr.sub td:first-child { background: var(--paper-2); }
}

/* ---------- companion link to the demand side ---------- */
a.xlink-card {
  display: grid; gap: 5px; text-decoration: none; margin-top: 22px;
  border: 0;
  border-radius: var(--radius); padding: 32px; background: var(--paper-2);
  box-shadow: none;
}
a.xlink-card:hover { border-color: var(--blue); }
a.xlink-card .xt { font-size: 17px; font-weight: 500; color: var(--ink); }
a.xlink-card .xd { font-size: 14.5px; font-weight: 500; color: var(--gray); }

/* ---------- the failure haircut, made explicit in section 04 ---------- */
table.grid tr.cut td { border-bottom: 0; padding-top: 10px; padding-bottom: 4px; color: var(--gray); font-weight: 700; }
table.grid tr.cut td.cutlbl, table.grid tr.net td.cutlbl { font-weight: 800; color: var(--ink); }
table.grid tr.net td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 800; padding: 10px 12px 2px; }
table.grid tr.net td.y1 { color: var(--blue); }

.haircut-note {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center;
  border: 0;
  border-radius: var(--radius); background: var(--paper-2);
  padding: 32px; margin-top: 20px; box-shadow: none;
}
.haircut-note h3 { font-size: 19px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.16; margin: 9px 0 9px; }
.haircut-note p { font-size: 14px; color: var(--gray); line-height: 1.6; max-width: 64ch; }
.haircut-note .hn-stat { text-align: right; border-left: 1px solid var(--line); padding-left: 26px; white-space: nowrap; }
.haircut-note .hn-stat .v { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; display: block; }
@media (max-width: 760px) {
  .haircut-note { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .haircut-note .hn-stat { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 15px; }
}

/* ---------- scenario state ---------- */
.plan-state { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.plan-flag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.grid th {
  background: var(--ink); color: #fff; text-align: right; padding: 10px 12px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid th:nth-child(2), table.grid td:nth-child(2) { text-align: left; }
table.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 700; font-feature-settings: 'tnum' 1; white-space: nowrap; }
table.grid td.seat { font-weight: 800; }
table.grid td.status { color: var(--gray-2); font-weight: 600; font-size: 12.5px; }
table.grid td.t0 { color: var(--gray-2); font-weight: 600; }
table.grid td.t1 { background: var(--tint-1); }
table.grid td.t2 { background: var(--tint-2); }
table.grid td.t3 { background: var(--tint-3); }
table.grid td.y1 { font-weight: 800; }
table.grid tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 800; padding: 11px 12px; }
.gridnote { font-size: 12px; color: var(--gray-2); margin-top: 10px; }
.mchart { margin-top: 22px; }
.mbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 64px; margin-top: 10px; }
.mbars .mb { background: var(--tint-2); border-radius: 2px 2px 0 0; min-height: 2px; }
.mbars .mb.hi { background: var(--blue); }
.mcaps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 6px; text-align: center; font-size: 9.5px; font-weight: 700; color: var(--gray-2); }

/* ---------- activity funnel ---------- */
.funnel { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1.06fr); align-items: stretch; margin-bottom: 26px; }
.fx { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 13px; min-width: 0; }
.fx .v { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.015em; }
.fx .l { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-2); margin-top: 4px; }
.fx.terminal { background: var(--blue); border-color: var(--blue); color: #fff; }
.fx.terminal .l { color: #F2F5FF; }
.rate { display: flex; align-items: center; justify-content: center; }
.rate span { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: var(--blue); }
.act-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr); gap: 26px; align-items: start; }
.band-dark { background: var(--panel); color: #fff; border-radius: var(--radius); border-left: var(--leftbar) solid var(--blue); padding: 18px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: baseline; margin-top: 26px; }
.band-dark .microlabel { color: var(--blue-soft); white-space: nowrap; }
.band-dark p { font-size: 14.5px; color: var(--dark-body); }
.band-dark p strong { color: #fff; }

/* ---------- burn ---------- */
.burn-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr); gap: 26px; align-items: start; }
table.grid td.role { font-weight: 800; white-space: normal; }
table.grid td.dim { color: var(--gray-2); font-weight: 600; }
table.grid tr.sub td { background: var(--paper-2); font-weight: 800; }

/* ---------- rule band + cta + footer ---------- */
.ruleband { background: var(--panel); color: #fff; border-top: var(--topbar) solid var(--blue); }
.ruleband .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: baseline; padding-top: 30px; padding-bottom: 30px; }
.ruleband .microlabel { color: var(--blue-soft); white-space: nowrap; }
.ruleband p { font-size: 16px; font-weight: 700; max-width: 70ch; }
.ruleband p .dim { color: var(--dark-body); font-weight: 600; }
.cta { border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 44px; padding-bottom: 44px; }
.cta h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; }
.cta p { color: var(--gray); font-size: 14px; margin-top: 4px; max-width: 56ch; }
.cta p a { color: var(--blue); font-weight: 700; text-decoration: none; }
.cta p a:hover { color: var(--blue-deep); }
footer.foot { border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; }
.foot-lockup { display: block; height: 24px; width: auto; flex: none; }
footer.foot .f { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-2); }
footer.foot a.f:hover { color: var(--ink); }
.foot-note { font-size: 11px; color: var(--gray-2); padding-bottom: 26px; }

/* ---------- states ---------- */
.hidden { display: none !important; }
.warnpanel { border: 1px solid var(--line); border-left: var(--leftbar) solid #B4372E; border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 14px; }
.warnpanel strong { font-weight: 800; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 99; max-width: min(92vw, 44ch); text-align: center; line-height: 1.5; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .input-grid, .adv-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-grid, .sched-grid, .act-grid, .burn-grid { grid-template-columns: minmax(0, 1fr); }
  .bridge { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); }
  .bridge .op.wide-only { display: none; }
  .bridge .bx { margin-bottom: 10px; }
  .funnel { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .funnel .rate.wide-only { display: none; }
  .funnel .fx { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .input-grid, .adv-body, .unit-band { grid-template-columns: minmax(0, 1fr); }
  .bars { height: 130px; gap: 8px; }
  .bar-caps { gap: 8px; }
  .bar-caps .m { display: none; }
  .bar .amt { font-size: 12px; }
  .bridge { grid-template-columns: minmax(0, 1fr); }
  .bridge .op { display: none; }
  .funnel { grid-template-columns: minmax(0, 1fr); }
  .funnel .rate { display: none; }
  .band-dark, .ruleband .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .top-link.optional { display: none; }
  section.block { padding: 48px 0 52px; }
  .hero .wrap { padding-top: 0; padding-bottom: 0; }
}

/* ---------- cockpit: inputs beside the plan ---------- */
.cockpit {
  display: grid;
  grid-template-columns: minmax(0, 0.39fr) minmax(0, 0.61fr);
  grid-template-areas:
    "rail main"
    "verdict verdict";
  column-gap: 32px;
  row-gap: 24px;
  align-items: start;
}
.cp-rail { grid-area: rail; padding: 0 8px 18px 0; }
.cp-main { grid-area: main; min-width: 0; }
.cockpit > .verdict { grid-area: verdict; }
/* Pin the rail only when all of it fits the viewport. A shorter screen keeps
   one scroll: the rail rides the page instead of scrolling inside itself. */
@media (min-height: 780px) and (min-width: 1021px) {
  .cp-rail { position: sticky; top: calc(var(--gnav-h, 47px) + 12px); }
}
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rail-hint { font-size: 11.5px; color: var(--gray-2); line-height: 1.5; margin-bottom: 10px; }
.cp-rail .input-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.cp-rail .card {
  padding: 10px 14px 9px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.cp-rail .card .help { margin-top: auto; }
.cp-rail .grid-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--gray-2);
  line-height: 1.45;
}
.cp-rail .card .microlabel { margin-bottom: 5px; }
.cp-rail .bigin, .cp-rail .bigval { font-size: 20px; min-height: 34px; }
.cp-rail input[type='range'] { height: 34px; }
.cp-rail .step { gap: 10px; }
.cp-rail .step button { width: 36px; height: 36px; }
.cp-rail .card .help { margin-top: auto; font-size: 11.5px; }
.cp-rail .btn { min-height: 36px; padding: 7px 11px; font-size: 10px; }

/* the verdict band */
.verdict {
  background: var(--panel); color: #fff; border-radius: var(--radius);
  border-top: var(--topbar) solid var(--blue); padding: 19px 24px 21px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 30px; flex-wrap: wrap;
}
.verdict .v-label { font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue-soft); }
.verdict .v-big { font-size: clamp(25px, 2.8vw, 33px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-top: 3px; }
.verdict .v-big .ok { color: var(--blue-soft); }
.verdict.is-miss .v-big, .verdict.is-miss .v-big .ok { color: #FF6B5E; }
.verdict .v-sub { color: var(--dark-body); font-size: 12.5px; margin-top: 4px; max-width: 52ch; }
.v-minis { display: flex; gap: 26px; }
.v-mini .n { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.v-mini .l { font-size: 9.5px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--blue-soft); margin-top: 2px; }

/* the assumptions band: the drawer's details stay legible while closed */
.cp-main .adv { margin-top: 0; background: var(--paper-2); }
.cp-main .adv-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 18px; border-bottom: 0; }
.cp-main .adv[open] .adv-head { border-bottom: 1px solid var(--line); }
.asm-k { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.asm-chips { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gray-2); line-height: 1.6; }
.asm-chips b { font-weight: 800; color: var(--ink); }
.asm-edit::after { content: 'Edit'; }
.cp-main .adv[open] .asm-edit::after { content: 'Close'; }
.asm-edit { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--tint-2); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
summary.adv-head:hover .asm-edit { border-color: var(--blue); }
.cp-main .adv-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; padding: 14px 18px 20px; }
.cp-main .adv-comp table { min-width: 480px; }

/* the plan, five expandable lines */
.memo { list-style: none; margin-top: 16px; }
.memo > li + li { margin-top: 12px; }
.mline {
  border: 0;
  border-radius: var(--radius); background: var(--paper-2);
  box-shadow: none;
  scroll-margin-top: calc(var(--gnav-h, 47px) + 16px);
}
summary.msum {
  list-style: none; cursor: pointer; min-height: 44px;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 13px; align-items: start; padding: 14px 18px 15px;
}
summary.msum::-webkit-details-marker { display: none; }
summary.msum:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.msum .mnum { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); }
.msum .ms { display: block; min-width: 0; }
.msum .mtitle { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -0.008em; line-height: 1.3; }
.msum .mt { display: block; font-size: 13.5px; font-weight: 500; color: var(--gray); letter-spacing: 0; line-height: 1.5; margin-top: 3px; }
.msum .mt strong { font-weight: 800; color: var(--ink); }
.msum .mnum { margin-top: 3px; }
.msum .mtag { white-space: nowrap; margin-top: 2px; }
.msum .mtag::after { content: '\2193'; color: var(--blue); font-size: 14px; font-weight: 800; }
.mline[open] > summary.msum .mtag::after { content: '\2191'; }
.mbody { border-top: 1px solid var(--line); padding: 22px 22px 26px; }
.mbody .section-head { margin-bottom: 26px; }
.mbody h2.headline { font-size: clamp(22px, 2.6vw, 30px); }
.mbody .sched-grid, .mbody .act-grid, .mbody .burn-grid, .mbody .unit-grid { grid-template-columns: minmax(0, 1fr); }
.mbody .bridge { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mbody .bridge .op { display: none; }
@media (max-width: 640px) { .mbody .bridge { grid-template-columns: minmax(0, 1fr); } }
.mbody .panel-dark { margin-top: 20px; }
@media (min-width: 1021px) {
  .mbody table.grid { min-width: 0; font-size: 12.5px; }
  .mbody table.grid td { padding: 8px 7px; }
  .mbody table.grid th { padding: 9px 7px; }
  .mbody table.grid td.status { white-space: normal; font-size: 11.5px; line-height: 1.35; }
  .mbody table.grid tr.total td, .mbody table.grid tr.net td { padding: 9px 7px 2px; }
}
.memo-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.memo-foot .note { font-size: 12px; color: var(--gray-2); margin-left: auto; max-width: 44ch; }

@media (min-width: 1021px) {
  .mbody .unit-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .cockpit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "verdict" "rail"; gap: 26px; }
  .cp-main .adv-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* answer first on a phone: the plan reads before the input stack */
  .cp-rail { position: static; padding: 0; }
  .cp-rail .input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-rail .adv-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-minis { gap: 20px; }
}
@media (max-width: 640px) {
  .cp-rail .input-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-main .adv-body { grid-template-columns: minmax(0, 1fr); }
  .cp-main .adv-head { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; }
  .cp-main .adv-head .asm-chips { grid-column: 1 / -1; grid-row: 2; }
  summary.msum { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; }
  .mbody { padding: 18px 14px 22px; }
}

/* ---------- print ---------- */
@media print {
  header.top, .top-actions, .cta, .toast, .cp-rail, .memo-foot, .msum .mtag { display: none !important; }
  .cockpit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "verdict" "main"; }
  .verdict { border: 1px solid var(--line); }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  section.block { padding: 28px 0; page-break-inside: avoid; }
  .hero .wrap { padding: 0; }
}


.v-hire-note { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--muted-dark-2, #B8BFCC); max-width: 62ch; }
