
:root {
  --paper: #eef1f4;
  --grid: #e0e6eb;
  --grid-strong: #d3dbe2;
  --sheet: #ffffff;
  --recess: #e4e9ee;
  --blue: #1c4e79;
  --blue-dk: #12395c;
  --blue-lit: #2f6fa3;
  --tally: #c0392b;
  --gel: #d98a1f;
  --gel-pale: #fbf0dc;
  --plot: #0f8a7a;
  --ink: #12181f;
  --muted: #64717d;
  --line: #c8d2db;
  --hair: #dde4ea;
  --r: 4px;
  --sans: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.001em;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-lit); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 40;
  background: var(--blue-dk); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- masthead: a plan strip ---------- */

.top {
  background: var(--blue-dk);
  border-bottom: 3px solid var(--gel);
  position: sticky; top: 0; z-index: 30;
}
.bar {
  max-width: var(--shell); margin: 0 auto; padding: 11px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand {
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14.5px;
  color: #eaf1f7; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.brand .mark {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--gel); color: var(--blue-dk); padding: 4px 6px; border-radius: 2px;
}
.menu { display: flex; gap: 1px; flex-wrap: wrap; margin-left: auto; }
.menu a {
  display: block; padding: 6px 10px; font-size: 12.5px; color: #b9cbd9; text-transform: uppercase;
  letter-spacing: 0.07em; text-decoration: none; border-radius: 2px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.menu a:hover { background: var(--blue); color: #fff; }
.menu a[aria-current="page"] { color: var(--blue-dk); background: var(--gel); font-weight: 700; }

/* ---------- shell + hero ---------- */

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 22px 72px; }

.page-hero { padding: 42px 0 30px; }
.crumb-line {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tally); margin-bottom: 12px;
}
.eyebrow::before { content: "\25CF "; }
h1 {
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 640; margin: 0 0 18px; max-width: 21ch;
}
.lede { font-size: 18.5px; color: #33414d; max-width: 47ch; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: 11px 17px; border-radius: var(--r); font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em; border: 1px solid var(--blue-dk);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.btn:hover { background: var(--blue-lit); color: #fff; transform: translateY(-1px); }
.ghost {
  display: inline-block; border: 1px solid var(--line); background: var(--sheet);
  color: var(--ink); text-decoration: none; padding: 11px 17px; border-radius: var(--r);
  font-size: 14px; font-weight: 550;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* ---------- the floor plan (signature component) ---------- */

.plan {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 14px 12px;
  box-shadow: 0 16px 34px -26px rgba(18, 57, 92, 0.6);
  position: relative;
}
.plan::before {
  content: "PLAN VIEW \2014 NOT TO SCALE";
  position: absolute; top: -9px; left: 14px; background: var(--blue); color: #fff;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; padding: 2px 6px; border-radius: 2px;
}
.plan svg { display: block; width: 100%; height: auto; }
.plan foot, .plan .plan-foot {
  display: block; border-top: 1px solid var(--hair); margin-top: 12px; padding-top: 10px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}
.plan-flag {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: var(--tally);
  padding: 2px 6px; border-radius: 2px; margin-right: 6px;
}

/* ---------- sheets: every section is a numbered drawing ---------- */

main section {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 30px 30px;
  margin: 20px 0;
}
.sheet-tag {
  position: absolute; top: -1px; right: -1px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 3px 9px; border-radius: 0 var(--r) 0 var(--r);
}
h2 {
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.16; letter-spacing: -0.026em;
  font-weight: 640; margin: 0 0 16px; max-width: 30ch;
}
h2 .n {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 8px;
}
h3 { font-size: 17.5px; letter-spacing: -0.018em; font-weight: 640; margin: 24px 0 8px; }
p { margin: 0 0 14px; max-width: 68ch; }
ul, ol { max-width: 68ch; padding-left: 20px; }
li { margin-bottom: 7px; }
strong { font-weight: 660; }
.mono { font-family: var(--mono); font-size: 0.9em; background: var(--recess); padding: 1px 4px; border-radius: 2px; }
em { font-style: italic; color: #2b3742; }

/* ---------- jump list ---------- */

.jumplist {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 12px 0 0; border-top: 1px dashed var(--line); margin: 4px 0 0;
}
.jumplist a { color: var(--blue); text-decoration: none; }
.jumplist a:hover { color: var(--tally); text-decoration: underline; }

/* ---------- control stations (numbered cards) ---------- */

.stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 10px; margin: 20px 0; }
.station {
  border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r);
  background: var(--sheet); padding: 13px 14px;
}
.station .code {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 7px;
}
.station .role { display: block; font-weight: 660; letter-spacing: -0.012em; margin-bottom: 5px; }
.station .say { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.station.live { border-top-color: var(--tally); }
.station.live .code { color: var(--tally); }

/* ---------- rundown table with a tally column ---------- */

.rundown { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
caption {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--muted); padding: 12px 14px 0;
}
thead th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--mono); text-align: right; }
td.good { color: var(--plot); font-weight: 600; }
td.bad { color: var(--tally); font-weight: 600; }
td.warn { color: #8a5a12; font-weight: 600; }
.tally { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.tally.on { color: var(--tally); }
.tally.on::before { content: "\25CF "; }
.tally.off { color: var(--muted); }
.tally.off::before { content: "\25CB "; }

/* ---------- legend ---------- */

.legend { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 16px 0; padding: 0; list-style: none; max-width: none; }
.legend li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.legend .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.sw.blue { background: var(--blue); } .sw.tally { background: var(--tally); }
.sw.gel { background: var(--gel); } .sw.plot { background: var(--plot); }
.sw.grey { background: #9aa7b3; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.stat {
  background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--gel);
  border-radius: var(--r); padding: 14px 15px;
}
.stat .k {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.stat .v { display: block; font-family: var(--mono); font-size: 25px; font-weight: 600; color: var(--blue-dk); letter-spacing: -0.01em; }
.stat .d { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

/* ---------- ledger ---------- */

.ledger { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); margin: 20px 0; }
.ledger dl { margin: 0; }
.ledger div {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px;
  padding: 10px 15px; border-bottom: 1px solid var(--hair); align-items: baseline;
}
.ledger div:last-child { border-bottom: 0; }
.ledger dt { font-size: 14px; color: #2b3742; }
.ledger dd { margin: 0; font-family: var(--mono); font-size: 14px; text-align: right; color: var(--ink); }
.ledger .tot { background: var(--blue-dk); }
.ledger .tot dt { color: #cddcea; }
.ledger .tot dd { color: var(--gel); font-weight: 600; }

/* ---------- chips + flagger ---------- */

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; max-width: none; }
.chips li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; padding: 4px 9px;
  border-radius: 2px; border: 1px solid var(--line); background: var(--sheet); color: #33414d;
}
.chips li.green { border-color: #b6d9d2; background: #e8f4f1; color: #0b5c51; }
.chips li.amber { border-color: #ecd3a8; background: var(--gel-pale); color: #86530d; }
.chips li.red { border-color: #e6c0b8; background: #fbece9; color: #8d2c20; }
.chips li.blue { border-color: #bcd0e2; background: #e9f1f8; color: #1c4e79; }

.flagger { display: grid; gap: 10px; margin: 20px 0; }
.flagger > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
.flagger .chip {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 2px; text-align: center; background: var(--recess); color: #33414d;
}
.flagger .bad .chip { background: #fbece9; color: #8d2c20; }
.flagger .warn .chip { background: var(--gel-pale); color: #86530d; }
.flagger .ok .chip { background: #e8f4f1; color: #0b5c51; }
.flagger p { margin: 0; font-size: 15px; color: #2b3742; }

/* ---------- checklist ---------- */

.checklist { list-style: none; padding: 0; margin: 20px 0; counter-reset: c; }
.checklist li {
  position: relative; padding: 12px 14px 12px 48px; background: var(--sheet);
  border: 1px solid var(--line); border-bottom: 0; font-size: 15px; max-width: none;
}
.checklist li:first-child { border-radius: var(--r) var(--r) 0 0; }
.checklist li:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.checklist li::before {
  counter-increment: c; content: counter(c, decimal-leading-zero);
  position: absolute; left: 14px; top: 13px; font-family: var(--mono); font-size: 11px;
  color: var(--tally); letter-spacing: 0.05em;
}

/* ---------- callout / annotation ---------- */

.callout {
  background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--tally);
  border-radius: var(--r); padding: 15px 17px; margin: 22px 0;
}
.callout p { margin: 0 0 9px; font-size: 14.5px; color: #2b3742; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

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

.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center;
  background: var(--blue-dk); color: #e7eff6; border-radius: var(--r); padding: 22px 24px; margin: 24px 0 4px;
}
.band h3 { color: #fff; margin: 0 0 6px; font-size: 18px; }
.band p { color: #a9c0d2; margin: 0; font-size: 14.5px; }
.band .eyebrow { color: var(--gel); }
.band .hero-cta { margin: 0; }
.band .btn { background: var(--gel); color: var(--blue-dk); border-color: var(--gel); }
.band .ghost { background: transparent; border-color: #3c6485; color: #d3e0ea; }
.band .ghost:hover { border-color: #8fb0c8; color: #fff; }

/* ---------- split + recap + faq ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; margin: 18px 0; }
.side {
  background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--gel);
  border-radius: var(--r); padding: 16px 18px; align-self: start;
}
.side h3 { margin-top: 0; font-size: 15px; }
.side p, .side li { font-size: 14px; }
.side ul { max-width: none; }

.recap { background: var(--recess); border-radius: var(--r); padding: 18px 20px; margin: 24px 0; }
.recap h3 { margin-top: 0; }
.recap p, .recap li { font-size: 15px; }

.faq { margin: 18px 0; }
.qa { border-top: 1px dashed var(--line); padding: 16px 0 6px; }
.qa h3 { margin: 0 0 7px; font-size: 16.5px; }
.qa p { color: #2b3742; font-size: 15px; }

.fn { list-style: none; padding: 0; counter-reset: f; margin: 18px 0; }
.fn li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 13.5px;
  color: #3b4854; padding: 7px 0; border-bottom: 1px dashed var(--hair); max-width: none;
}
.fn b { font-family: var(--mono); font-size: 11px; color: var(--blue); }

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

.figure { margin: 24px 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hair);
  line-height: 1.6;
}
svg text { font-family: var(--mono); }

/* ---------- footer ---------- */

.footer { background: var(--blue-dk); color: #9fb6c8; padding: 42px 22px 34px; }
.foot-grid {
  max-width: var(--shell); margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 32px;
}
.footer .brand { color: #f0f5f9; }
.footer .brand .mark { background: var(--gel); color: var(--blue-dk); }
.footer p { font-size: 13.5px; line-height: 1.62; }
.foot-grid strong {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: #7f9bb0; margin-bottom: 12px;
}
.foot-grid a { display: block; color: #cddcea; text-decoration: none; font-size: 14px; padding: 3px 0; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.fine {
  max-width: var(--shell); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #23496b;
  font-size: 12px; color: #7f9bb0; line-height: 1.68;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: minmax(0, 1fr); }
  .menu { margin-left: 0; width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { padding: 0 14px 56px; }
  main section { padding: 26px 18px 22px; }
  .flagger > div { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .foot-grid { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
