/* ---- reset ---- */
*,*::before,*::after{box-sizing:border-box}
html{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;scroll-behavior:smooth}
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd,ul,ol{margin:0}
ul[class]{list-style:none;padding:0}
img,picture,svg,video{max-width:100%;display:block}
input,button,textarea,select{font:inherit}

/* ---------------------------------------------------------------
   DART MAIL — chart identity in Union red and navy
   Navy carries the sea and the external routes.
   Red carries the domestic mesh, the failure points, and the ask.
   --------------------------------------------------------------- */

:root {
  --ground:      #EDF1F7;
  --ground-deep: #E1E7F0;
  --surface:     #FAFBFD;
  --surface-2:   #FFFFFF;
  --ink:         #0A1633;
  --ink-2:       #41527A;
  --ink-3:       #7683A4;
  --rule:        #C5CEDF;
  --rule-soft:   #DAE0EC;
  --accent:      #C8102E;
  --accent-soft: #F7DEE2;
  --navy:        #012169;
  --navy-soft:   #D7DEEE;
  --shadow:      0 1px 2px rgba(10,22,51,.06), 0 12px 28px -14px rgba(10,22,51,.3);

  --step--2: .75rem;
  --step--1: .8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  1.6rem;
  --step-3:  clamp(1.9rem, 3.2vw, 2.5rem);
  --step-4:  clamp(2.5rem, 5.8vw, 4.2rem);

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --on-accent: #FFFFFF;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --max: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #05102A;
    --ground-deep: #020A1C;
    --surface:     #0B1A3C;
    --surface-2:   #10224A;
    --ink:         #DEE5F5;
    --ink-2:       #93A3C4;
    --ink-3:       #6A7BA0;
    --rule:        #1E3160;
    --rule-soft:   #16264B;
    --accent:      #FF4A5F;
    --accent-soft: #3A0A14;
    --navy:        #6E8BD6;
    --navy-soft:   #12224A;
    --shadow:      0 1px 2px rgba(0,0,0,.45), 0 16px 34px -16px rgba(0,0,0,.8);
    --on-accent:   #1A0206;
  }
}

:root[data-theme="dark"] {
  --ground:      #05102A;
  --ground-deep: #020A1C;
  --surface:     #0B1A3C;
  --surface-2:   #10224A;
  --ink:         #DEE5F5;
  --ink-2:       #93A3C4;
  --ink-3:       #6A7BA0;
  --rule:        #1E3160;
  --rule-soft:   #16264B;
  --accent:      #FF4A5F;
  --accent-soft: #3A0A14;
  --navy:        #6E8BD6;
  --navy-soft:   #12224A;
  --shadow:      0 1px 2px rgba(0,0,0,.45), 0 16px 34px -16px rgba(0,0,0,.8);
  --on-accent:   #1A0206;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.graticule {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image:
    repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, var(--rule-soft) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
}

.page { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
}
.eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--rule); }
.eyebrow .fix { color: var(--accent); }

/* ---------------- masthead ---------------- */

.masthead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead .bar { display: flex; align-items: center; gap: 1.5rem; min-height: 62px; }
.mark {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-family: var(--sans); font-weight: 800;
  letter-spacing: -.02em; font-size: 1.0625rem;
  margin-right: auto;
}
.mark .flag {
  display: block;
  flex: none;
  width: 26px;
  height: 13px;
  box-shadow: 0 0 0 1px var(--rule);
}
.mark .uk { color: var(--ink-3); font-weight: 500; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; }

.navlinks { display: flex; gap: 1.4rem; font-family: var(--sans); font-size: var(--step--1); font-weight: 500; }
.navlinks a { text-decoration: none; color: var(--ink-2); }
.navlinks a:hover { color: var(--accent); }
@media (max-width: 780px) { .navlinks { display: none; } }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1);
  padding: .72rem 1.15rem;
  border-radius: 2px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- hero ---------------- */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.2rem); }
.hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}
@media (max-width: 940px) { .hero .grid { grid-template-columns: 1fr; } }

.hero-copy { display: flex; flex-direction: column; gap: 1.35rem; align-items: flex-start; }

.badge {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  padding: .32rem .62rem;
}

h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--accent); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }

/* the promise, lifted out of the lede onto its own line —
   same face and colour as the lede, larger so it still carries */
.claim-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink-2);
  text-wrap: balance;
  max-width: 28ch;
  margin-top: -.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.stamp {
  font-family: var(--mono); font-size: var(--step--2);
  color: var(--ink-3); line-height: 1.9;
  border-top: 1px solid var(--rule-soft);
  padding-top: .8rem; width: 100%; max-width: 34rem;
}

/* ---------------- chart panel ---------------- */

.chart {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: .9rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 620px) { .chart-head span + span { display: none; } }
.chart-canvas-wrap { position: relative; aspect-ratio: 5 / 4; }
.chart canvas { display: block; width: 100%; height: 100%; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.toggle button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1);
  padding: .6rem .5rem; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.toggle button:not([aria-pressed="true"]):hover { background: var(--rule-soft); color: var(--ink); }

.chart-note { font-family: var(--mono); font-size: var(--step--2); line-height: 1.6; color: var(--ink-2); min-height: 4.8em; }
.chart-note b { color: var(--accent); font-weight: 500; }

/* ---------------- sections ---------------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule-soft); scroll-margin-top: 74px; }
.section-head { display: flex; flex-direction: column; gap: 1rem; max-width: 60ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(1.8rem, 3vw, 2.4rem);
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.prose { display: flex; flex-direction: column; gap: 1.05rem; max-width: 62ch; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* highlighter for the two findings that matter most */
.hl {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  padding: .1em .22em;
  margin: 0 -.06em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pull {
  border-left: 3px solid var(--accent);
  padding: .2rem 0 .2rem 1.1rem;
  font-family: var(--sans); font-weight: 600;
  font-size: var(--step-2); letter-spacing: -.02em;
  line-height: 1.25; color: var(--ink);
}

.figure {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 881px) { .figure { position: sticky; top: 88px; } }
.figure h4 {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}
.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px dashed var(--rule); align-items: baseline;
}
.tl-row:last-child { border-bottom: 0; }
.tl-row .d { font-family: var(--mono); font-size: var(--step--1); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tl-row .t { font-size: .96rem; color: var(--ink-2); }
.tl-row.crit .d { color: var(--accent); }
.tl-row .t strong { color: var(--ink); font-weight: 600; }
.tl-row.crit .t strong { color: var(--accent); }

/* ---------------- plain-English explainers ---------------- */

.plain-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.plain {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  padding: 1.35rem 1.4rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.plain .label {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.plain h3 { font-size: var(--step-1); }
.plain p { color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.plain p.analogy { color: var(--ink); }
.plain p.analogy strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .88em; }

/* ---------------- Fig. 3 — dependency cards ---------------- */

.fig3 { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.fig3-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem;
  border-bottom: 1px solid var(--rule); padding-bottom: .75rem;
}
.fig3-head h3 { font-size: var(--step-2); }
.fig3-head .cap {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.fig3-key {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: .9rem;
  font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3);
}
.fig3-key span { display: inline-flex; align-items: center; gap: .4rem; }
.fig3-key i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fig3-key .k-hold { background: var(--navy); }
.fig3-key .k-fail { background: var(--accent); }

.deps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.dep {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.15rem 1.05rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.dep h4 {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.02em; color: var(--ink); text-transform: none;
}
.dep .side { display: flex; flex-direction: column; gap: .15rem; }
.dep .side-label {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase;
}
.dep .side.home .side-label { color: var(--navy); }
.dep .side.away .side-label { color: var(--accent); }
.dep .side p { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.dep .side.home p { min-height: 4.5em; }
@media (max-width: 520px) { .dep .side.home p { min-height: 0; } }

.waterline {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin: .15rem 0;
}
.waterline::before, .waterline::after {
  content: ""; height: 0; flex: 1;
  border-top: 2px dashed var(--navy); opacity: .55;
}

.verdict {
  align-self: flex-start;
  margin-top: .2rem;
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 2px;
  border: 1px solid var(--navy); color: var(--navy);
}
.dep[data-state="fail"] { border-left: 3px solid var(--accent); }
.dep[data-state="fail"] .verdict {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.dep[data-state="hold"] { border-left: 3px solid var(--navy); }

/* ---------------- soundings ---------------- */

.soundings {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--rule); background: var(--surface);
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.sounding { padding: 1.25rem 1.2rem; border-right: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: .3rem; }
.sounding:last-child { border-right: 0; }
.sounding .v {
  font-family: var(--sans); font-weight: 800; font-size: 1.85rem;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1;
  color: var(--navy);
}
.sounding .l { font-family: var(--mono); font-size: var(--step--2); line-height: 1.5; color: var(--ink-2); }
.sounding.flag .v { color: var(--accent); }

/* ---------------- steps ---------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.step { padding: 1.6rem 1.5rem 1.8rem; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .6rem; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: var(--step--1); color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-2); font-size: .98rem; }

/* ---------------- candour panel ---------------- */

.candour {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--navy);
  background: var(--navy-soft);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.candour h3 { font-size: var(--step-1); color: var(--navy); }
.candour ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .85rem 2rem; }
.candour li { position: relative; padding-left: 1.4rem; font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
.candour li::before { content: "—"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--navy); font-size: .8rem; line-height: 1.9; }
.candour li strong { color: var(--ink); font-weight: 600; }

/* ---------------- plans ---------------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 1.15rem; margin-top: clamp(2rem, 4vw, 2.8rem); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -1px; right: -1px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase; padding: .28rem .55rem;
}
.plan .name { font-family: var(--sans); font-weight: 700; font-size: var(--step-1); letter-spacing: -.02em; }
.plan .who { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }

.price { display: flex; flex-direction: column; gap: .25rem; }
.price .row { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.price .amt { font-family: var(--sans); font-weight: 800; font-size: 2.5rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.price .amt.quote { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.price .per { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-2); }
.price .was { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.price .was s { text-decoration-thickness: 1px; }

.feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.feats li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .55rem; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.feats li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); margin-top: .5rem; margin-left: .1rem; }

.plan-actions { display: flex; flex-direction: column; gap: .5rem; }
.plan-note { font-family: var(--mono); font-size: var(--step--2); line-height: 1.55; color: var(--accent); }
.plan-note:empty { display: none; }

.terms { margin-top: 1.4rem; border: 1px dashed var(--rule); padding: 1rem 1.1rem; font-size: .93rem; color: var(--ink-2); max-width: 78ch; }
.terms strong { color: var(--ink); font-weight: 600; }
.terms-no-border { margin-top: 1.4rem; border: 0px dashed var(--rule); padding: 1rem 1.1rem; font-size: .93rem; color: var(--ink-2); max-width: 78ch; }

/* ---------------- reserve ---------------- */

.reserve {
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 820px) { .reserve { grid-template-columns: 1fr; } }
.reserve h2 { font-size: var(--step-2); margin-top: 1rem; }
.reserve .blurb { color: var(--ink-2); margin-top: .8rem; max-width: 42ch; }

form { display: flex; flex-direction: column; gap: .85rem; }
.field { display: flex; flex-direction: column; gap: .32rem; }
label { font-family: var(--mono); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
label .opt { text-transform: none; letter-spacing: 0; }
input, select {
  font-family: var(--sans); font-size: .97rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 2px; padding: .68rem .7rem; width: 100%;
}
input::placeholder { color: var(--ink-3); }
input:focus, select:focus { border-color: var(--accent); }
.form-msg { font-family: var(--mono); font-size: var(--step--2); line-height: 1.6; color: var(--accent); }
.consent { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); line-height: 1.6; }

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

.foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 1.3rem; font-family: var(--sans); font-size: var(--step--1); }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.smallprint { margin-top: 1.8rem; font-family: var(--mono); font-size: var(--step--2); line-height: 1.75; color: var(--ink-3); max-width: 82ch; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ================================================================
   MULTI-PAGE ADDITIONS
   ================================================================ */

/* --- inner-page hero --- */
.page-hero { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.page-hero h1 { font-size: var(--step-3); max-width: 20ch; }
.page-hero .lede { margin-top: 1.1rem; max-width: 58ch; font-size: var(--step-1); }
.page-hero .eyebrow { margin-bottom: 1rem; }

/* --- homepage teaser cards --- */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.teaser {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: .7rem;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.teaser:hover { border-top-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.teaser .n {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.teaser h3 { font-size: var(--step-1); color: var(--ink); }
.teaser p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; flex: 1; }
.teaser .go {
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1);
  color: var(--accent); display: inline-flex; align-items: center; gap: .35rem;
}
.teaser:hover .go::after { transform: translateX(3px); }
.teaser .go::after { content: "→"; transition: transform .16s ease; }

/* --- what-if list --- */
.whatifs { display: flex; flex-direction: column; gap: 1.1rem; margin-top: clamp(2rem, 4vw, 2.8rem); }
.whatif {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.5rem 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.4rem 2.2rem;
  align-items: start;
}
@media (max-width: 800px) { .whatif { grid-template-columns: 1fr; gap: 1.1rem; } }
.whatif .q { display: flex; flex-direction: column; gap: .6rem; }
.whatif h3 { font-size: var(--step-1); color: var(--ink); }
.whatif h3 .lead { color: var(--accent); }
.whatif .q p { color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.whatif .q p + p { margin-top: .5rem; }

.record {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--navy);
  background: var(--ground);
  padding: .95rem 1rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.record .rlabel {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.record ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.record li { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.record a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.record a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.record .src { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); display: block; margin-top: .1rem; }

/* --- next-page footer link --- */
.nextup {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.nextup .t { display: flex; flex-direction: column; gap: .2rem; }
.nextup .k { font-family: var(--mono); font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nextup .v { font-family: var(--sans); font-weight: 700; font-size: var(--step-1); letter-spacing: -.02em; }

/* --- active nav state --- */
.navlinks a[aria-current="page"] { color: var(--accent); }

/* an inner-page hero already provides the top breathing room */
.page-hero + .section { border-top: 0; padding-top: clamp(.5rem, 1.5vw, 1.2rem); }

/* standby clarifier under the hero claim */
.stand-note {
  font-size: .95rem; line-height: 1.6; color: var(--ink-2);
  max-width: 42ch; border-left: 2px solid var(--navy); padding-left: .9rem;
}
.stand-note strong { color: var(--ink); font-weight: 600; }

/* navy backdrop for the "Four things kept in Britain" section */
.section-navy {
  background: var(--navy);
  border-top-color: color-mix(in srgb, var(--on-accent) 20%, transparent);
}
.section-navy .eyebrow { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.section-navy .eyebrow::after { background: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.section-navy .section-head h2 { color: var(--on-accent); }
.section-navy .section-head p { color: color-mix(in srgb, var(--on-accent) 82%, transparent); }

/* --- the four sovereign pillars --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border: 1px solid var(--navy);
  margin-top: clamp(2rem, 4vw, 2.8rem);
  background: var(--surface);
}
.pillar {
  padding: 1.4rem 1.35rem 1.5rem;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: .55rem;
}
.pillar:last-child { border-right: 0; }
.pillar .gb {
  align-self: flex-start;
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-accent); background: var(--navy);
  padding: .22rem .45rem; border-radius: 2px;
}
.pillar h3 { font-size: 1.05rem; color: var(--ink); }
.pillar p { font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 700px) { .pillar { border-right: 0; border-bottom: 1px solid var(--rule); } .pillar:last-child { border-bottom: 0; } }

/* plain-English definition line inside a pillar */
.pillar .plainly {
  font-style: italic;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-3);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: .55rem;
}

/* --- Fig. 2 — the domestic relay strip --- */
.relay {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.3rem 1.6rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.relay-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 1.5rem .1rem .6rem;
}
.relay-node {
  flex: 0 0 auto;
  width: 6.8rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center;
}
.relay-node .chip {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .5rem; border-radius: 2px;
}
.chip-home { background: var(--navy); color: var(--on-accent); }
.chip-away { background: var(--accent); color: var(--on-accent); }
.relay-node .rn-label { font-family: var(--sans); font-weight: 600; font-size: .8rem; line-height: 1.3; color: var(--ink); }
.relay-node .rn-label small { display: block; font-weight: 400; color: var(--ink-3); font-size: .72rem; margin-top: .15rem; }
.relay-hop {
  flex: 1 1 2.4rem; min-width: 1.8rem;
  height: 0; margin-top: .73rem;
  border-top: 2px dashed var(--navy); opacity: .55;
  position: relative;
}
.relay-hop span {
  position: absolute; top: -1.5em; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}

/* overseas relay nodes double as hover/focus triggers */
.relay-node.away { cursor: help; }
.relay-node.away .rn-label { border-bottom: 1px dashed var(--ink-3); padding-bottom: .15rem; }
.relay-node.away:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* shared popover, fixed-position so it escapes the track's scroll clipping */
.relay-pop {
  position: fixed;
  z-index: 60;
  width: min(17rem, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
  padding: .95rem 1.05rem;
  text-align: left;
}
.relay-pop[hidden] { display: none; }
.relay-pop .rp-label {
  font-family: var(--mono); font-size: var(--step--2);
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.relay-pop h4 { font-family: var(--sans); font-weight: 700; font-size: .98rem; letter-spacing: -.01em; color: var(--ink); margin-top: .4rem; }
.relay-pop p { margin-top: .5rem; font-size: .85rem; line-height: 1.55; color: var(--ink-2); }

.fig-foot { margin-top: .2rem; }
.fig-foot a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.fig-foot a:hover { text-decoration-color: var(--accent); }

/* --- the standby interjection between hero and pillars --- */
.interject {
  background: var(--accent);
  border-top: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent);
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
}
.interject .big {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-3);
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--on-accent);
  text-wrap: balance;
}
.interject .sub {
  margin-top: .9rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: color-mix(in srgb, var(--on-accent) 85%, transparent);
  max-width: 58ch;
}
