/* ACTS website styles. Brand: navy #0F1223, dark navy #0C1222, cyan #67CBDC, indigo #3F64AF, slate #676B76, light grey #A0A4AD. Font: Poppins (self-hosted). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }

:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { background: var(--bg); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout concept: navy-dominant institutional site. A dark hero carries the one idea (a different paper for every
   candidate); light content bands carry plain facts; a thin cyan-to-indigo rule, taken from the logo, is the only flourish.
   Palette is the ACTS brand set only: navy, dark navy, cyan, indigo, slate, light grey. */
:root {
  --bg: #FFFFFF;
  --panel: #F2F5F8;
  --ink: #0F1223;
  --body: #1E2230;
  --muted: #676B76;
  --line: #DCE1E8;
  --accent: #3F64AF;
  --cyan: #67CBDC;
  --indigo: #3F64AF;
  --btn-bg: #0F1223;
  --btn-fg: #FFFFFF;
  --btn-hover: #3F64AF;
  --show-light: block;
  --show-dark: none;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1222; --panel: #121A2F; --ink: #FFFFFF; --body: #D5D9E2; --muted: #A0A4AD; --line: #232B42;
    --accent: #67CBDC; --btn-bg: #67CBDC; --btn-fg: #0F1223; --btn-hover: #8AD9E6;
    --show-light: none; --show-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1222; --panel: #121A2F; --ink: #FFFFFF; --body: #D5D9E2; --muted: #A0A4AD; --line: #232B42;
  --accent: #67CBDC; --btn-bg: #67CBDC; --btn-fg: #0F1223; --btn-hover: #8AD9E6;
  --show-light: none; --show-dark: block; color-scheme: dark;
}
/* Bands that are navy in every theme */
.on-navy {
  --bg: #0C1222; --panel: #121A2F; --ink: #FFFFFF; --body: #D5D9E2; --muted: #A0A4AD; --line: #232B42;
  --accent: #67CBDC; --btn-bg: #67CBDC; --btn-fg: #0F1223; --btn-hover: #8AD9E6;
  background: var(--bg); color: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
/* full-bleed bands: cancel the body gutter, re-apply it inside */
.band { margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }

h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--body); max-width: 62ch; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.rule { height: 3px; width: 56px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--indigo) 40%, transparent 100%); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; }
.logo { height: 38px; width: auto; max-width: 100%; }
.logo-light { display: var(--show-light); }
.logo-dark { display: var(--show-dark); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
nav a { display: block; padding: 8px 12px; color: var(--body); text-decoration: none; font-size: 0.92rem; font-weight: 500; border-radius: 6px; }
nav a:hover { color: var(--ink); background: var(--panel); }
nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
nav a.nav-cta { background: var(--btn-bg); color: var(--btn-fg); margin-left: 6px; }
nav a.nav-cta:hover { background: var(--btn-hover); color: var(--btn-fg); }
nav a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 6px; border: 2px solid transparent; font: inherit; font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); }
.on-navy .btn-ghost { border-color: #3F64AF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding-block: clamp(52px, 7vw, 92px); }
.section.alt { background: var(--panel); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head .rule { margin-bottom: 6px; }

/* hero */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.figure { margin: 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.diagram-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(14px, 2.4vw, 24px); }

/* fact strip */
.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 26px 24px 26px 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; color: var(--ink); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.fact span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* before / after pairs */
.pairs { display: grid; border-top: 1px solid var(--line); }
.pairs-head, .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 5vw, 72px); }
.pairs-head { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pairs-head span:last-child { color: var(--accent); }
.pair { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pair p:first-child { color: var(--muted); }
.pair p:last-child { color: var(--ink); font-weight: 500; }
.pair .lbl { display: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* statement band */
.statement { padding-block: clamp(56px, 8vw, 104px); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.statement h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.statement p { color: var(--body); }
.statement .stack { display: grid; gap: 22px; }

/* lists */
.segments { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); }
.segments li { padding: 18px 0 18px 28px; border-top: 1px solid var(--line); position: relative; color: var(--ink); font-weight: 500; }
.segments li::before { content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.segments li span { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; margin-top: 2px; }

.cta { padding-block: clamp(48px, 7vw, 84px); }
.cta-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 22ch; }

/* page headers (inner pages) */
.page-head { padding-block: clamp(44px, 6vw, 80px); }
.page-head .rule { margin-bottom: 22px; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 20px; }

/* six systems */
.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.system { padding: 22px 0 30px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.system h3 { display: flex; align-items: center; gap: 10px; }
.system h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.system p { font-size: 0.95rem; color: var(--body); }

/* journey (a true sequence) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.step { display: grid; grid-template-columns: 52px minmax(0, 200px) minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; align-items: start; position: relative; }
.step::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.step:first-child::before { top: 40px; }
.step:last-child::before { bottom: calc(100% - 40px); }
.step .n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--cyan); color: var(--ink); font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.section.alt .step .n { background: var(--panel); }
.step h3 { padding-top: 9px; }
.step p { padding-top: 7px; color: var(--body); font-size: 0.96rem; }

/* system map */
.map { display: grid; grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr) 128px minmax(0, 1fr); align-items: stretch; }
.zone { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 18px; display: grid; gap: 14px; align-content: start; }
.zone > h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.sub { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 8px; background: var(--bg); }
.sub.key { border-color: var(--cyan); }
.sub > b { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.sub > span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--body); line-height: 1.4; }
.chip.ok { border-color: var(--cyan); color: var(--ink); }
.hop { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; font-size: 0.8rem; color: var(--muted); padding: 0 10px; line-height: 1.4; }
.hop svg { color: var(--accent); }

/* exam-centre network */
.net { display: grid; gap: 18px; }
.lane { display: grid; gap: 10px; }
.lane-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.chain { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; }
.node { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 14px 16px; display: grid; gap: 3px; height: 100%; align-content: start; }
.node b { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.node span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.lane.dashed .node { border-style: dashed; border-color: var(--indigo); }
.arr { color: var(--cyan); justify-self: center; }
.ups { border-radius: 10px; padding: 14px 18px; border: 1px solid var(--line); background: var(--bg); color: var(--body); font-size: 0.92rem; }
.ups b { color: var(--ink); margin-right: 6px; }

/* device screens */
.devs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 40px); }
.dev { margin: 0; display: grid; gap: 14px; justify-items: center; align-content: start; }
.dev figcaption { font-size: 0.88rem; color: var(--muted); line-height: 1.5; width: 100%; max-width: 320px; }
.dev figcaption b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.dev.wide { grid-column: 1 / -1; }
.dev.wide figcaption { max-width: 100%; }
.screen { width: 100%; max-width: 320px; min-height: 440px; display: flex; flex-direction: column; border-radius: 20px; border: 6px solid #1B2440; box-shadow: 0 0 0 1px #3F64AF, 0 18px 36px rgba(15, 18, 35, 0.22); overflow: hidden; font-size: 0.82rem; line-height: 1.45; }
.screen.wide { max-width: 100%; min-height: 0; border-radius: 14px; }
.s-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.85rem; }
.s-bar small { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.s-body { padding: 14px; display: grid; gap: 12px; align-content: start; flex: 1; }
.s-field { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--panel); border-radius: 6px; }
.s-field span:first-child { color: var(--muted); }
.s-field span:last-child { color: var(--ink); font-weight: 500; }
.s-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.s-b { text-align: center; padding: 9px 8px; border-radius: 6px; font-weight: 600; font-size: 0.82rem; border: 1.5px solid #3F64AF; color: var(--ink); }
.s-b.pri { background: var(--cyan); border-color: var(--cyan); color: #0F1223; }
.s-note { color: var(--muted); font-size: 0.78rem; }
.face { display: grid; justify-items: center; gap: 6px; padding: 6px 0 2px; }
.face svg { width: 128px; height: 128px; }
.face .ok { color: var(--cyan); font-weight: 600; font-size: 0.85rem; }
.q-text { color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.opt { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--body); }
.opt b { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #3F64AF; font-size: 0.75rem; color: var(--ink); }
.opt.sel { border-color: var(--cyan); background: rgba(103, 203, 220, 0.14); color: var(--ink); }
.opt.sel b { background: var(--cyan); border-color: var(--cyan); color: #0F1223; }
.pal { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.pal i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #3F64AF; }
.pal i.a { background: #3F64AF; }
.pal i.c { background: var(--cyan); border-color: var(--cyan); }
.pal i.n { border-color: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.75rem; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; border: 1.5px solid #3F64AF; vertical-align: -1px; }
.legend .la::before { background: #3F64AF; }
.legend .lc::before { background: var(--cyan); border-color: var(--cyan); }
.r-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; background: var(--panel); border-radius: 6px; color: var(--ink); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.pill.ok { border-color: var(--cyan); color: var(--cyan); }
.pill.flag { background: #FFFFFF; border-color: #FFFFFF; color: #0F1223; }
.dash { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 20px; padding: 16px; }
.tiles { display: grid; gap: 10px; align-content: start; }
.tile { background: var(--panel); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.tile p { color: var(--ink); font-weight: 600; font-size: 0.82rem; display: flex; justify-content: space-between; }
.tile p small { color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.seats { display: grid; grid-template-columns: repeat(12, 14px); gap: 6px; }
.seats i { width: 14px; height: 14px; border-radius: 50%; background: #3F64AF; opacity: 0.8; }
.seats i.f { background: #FFFFFF; opacity: 1; box-shadow: 0 0 0 3px rgba(103, 203, 220, 0.8); }
.flags { display: grid; align-content: start; overflow-x: auto; }
.f-head, .f-row { display: grid; grid-template-columns: 56px 86px 44px minmax(120px, 1fr) 140px; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); min-width: 470px; }
.f-head { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.f-row { color: var(--body); }
.f-row span:nth-child(4) { color: var(--ink); font-weight: 500; }

/* paper lifecycle */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 22px; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
.flow li { position: relative; padding-top: 38px; display: grid; gap: 6px; align-content: start; }
.flow li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px var(--bg); }
.section.alt .flow li::before { box-shadow: 0 0 0 5px var(--panel); }
.flow li:nth-child(n+4)::before { background: #3F64AF; }
.flow h3 { font-size: 0.98rem; }
.flow p { font-size: 0.88rem; color: var(--body); line-height: 1.55; }

/* simple two-column rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px clamp(24px, 5vw, 72px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.row p, .row ul { color: var(--body); }
.row ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.row li::marker { color: var(--cyan); }
.lead-principle { border: 1px solid #3F64AF; border-radius: 10px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 100%; }
.lead-principle h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); max-width: 26ch; }
.lead-principle p { max-width: 62ch; }

.note { border-left: 3px solid var(--cyan); padding: 4px 0 4px 18px; color: var(--ink); font-weight: 500; max-width: 62ch; }

/* about / contact */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.details { display: grid; gap: 22px; }
.detail { display: grid; gap: 2px; }
.detail dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
dl { margin: 0; }
.copy-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 5px; }
.form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.result { display: grid; gap: 12px; margin-top: 4px; }
.small { font-size: 0.85rem; color: var(--muted); }
.status { min-height: 1.4em; font-size: 0.88rem; color: var(--accent); font-weight: 500; }

/* footer */
.site-footer { padding-block: 48px 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.site-footer .logo { display: block; height: 40px; }
.site-footer h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.foot-rule { height: 2px; background: linear-gradient(90deg, var(--cyan), var(--indigo) 45%, transparent); }

/* diagram styling */
.dg-text { font-family: var(--font); fill: var(--ink); font-size: 13px; font-weight: 500; }
.dg-sub { font-family: var(--font); fill: var(--muted); font-size: 12.5px; font-weight: 400; }
.dg-box { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.dg-line { fill: var(--line); }
.dg-cyan { fill: var(--cyan); }
.dg-indigo { fill: var(--indigo); }
.dg-hard { fill: none; stroke: var(--ink); stroke-width: 2; }

@media (max-width: 960px) {
  .map { grid-template-columns: minmax(0, 1fr); }
  .hop { grid-auto-flow: column; justify-content: center; padding: 14px 0; }
  .hop svg { transform: rotate(90deg); }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .arr { transform: rotate(90deg); margin: 6px 0; }
  .devs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(var(--cyan), var(--indigo)); }
  .flow li { padding: 0 0 24px 44px; }
  .flow li::before { top: 2px; }
  .hero-grid, .statement-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .devs { grid-template-columns: minmax(0, 1fr); }
  .hdr { padding-block: 12px; }
  .logo { height: 32px; }
  nav { width: 100%; margin-inline: -4px; }
  nav a { padding: 7px 9px; font-size: 0.86rem; }
  nav a.nav-cta { margin-left: 0; }
  .pairs-head { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pair .lbl { display: block; }
  .segments { grid-template-columns: minmax(0, 1fr); }
  .systems { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 52px minmax(0, 1fr); }
  .step p { grid-column: 2; padding-top: 0; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tier-row { grid-template-columns: minmax(0, 1fr); }
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:nth-child(even) { border-left: 0; padding-left: 0; padding-right: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
