/* INFORM powered by PULSE - design system v2: tokens, base and shared components.
   Values are the handoff's exact values (README "Design tokens", component designs).
   Page layouts use the generated classes in inform-v2-gen.css. */

/* ---------- Tokens ---------- */
:root {
  --accent: #5fd3e6;
  --accent-hover: #8fe3f2;
  --bg: #0a1530;
  --bg-deep: #071226;
  --bg-panel: #081228;
  --bg-panel-2: #0b1733;
  --bg-input: #0e1c3d;
  --bg-footer: #081127;
  --text-h1: #f5f7ff;
  --text-h2: #f2f5ff;
  --text: #eaeefb;
  --text-2: #dfe6f3;
  --text-3: #b7c0d8;
  --lede: #b3bcd8;
  --muted: #9aa4c2;
  --label: #8b95b5;
  --faint: #7f8aa8;
  --faint-2: #7d87a8;
  --italic: #a9b8d8;
  --amber: #e0b066;
  --amber-legacy: #d8a24a;
  --ev-observed: #6fe0ad;
  --ev-documented: #8fd9c8;
  --ev-literature: #7fb6ff;
  --ev-target: #e0b066;
  --ev-unknown: #ff9d9d;
  --ev-concept: #9fb4e0;
  --ev-boundary: #c2cae3;
  --font-serif: 'Spectral', Georgia, serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Aliases for the interim legacy-bridge.css (older token names). */
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --cyan: var(--accent);
  --cyan-2: var(--accent-hover);
  --white: var(--text-h1);
  --body: var(--text-3);
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .065);
  --radius: 16px;
}

/* ---------- Base ----------
   No global box-sizing reset: the designs use the default content-box model
   (max-width + padding), and the generated layout classes depend on it. */
.legacy-page, .legacy-page *, .legacy-page *::before, .legacy-page *::after { box-sizing: border-box; }
/* Legacy V3 pages (via partials/head.php): the typography the previous stylesheet gave them. */
.legacy-page { color: #b7c2dc; font-size: 16px; line-height: 1.6; }
.legacy-page h1, .legacy-page h2, .legacy-page h3 { color: #f5f8ff; text-wrap: balance; }
.legacy-page h1 { margin: 0; max-width: 1000px; font: 400 clamp(38px, 5vw, 64px)/1.02 var(--font-serif); letter-spacing: -.025em; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg, canvas, video { max-width: 100%; }
a { color: var(--accent); }
/* :where() keeps this at element weight, so a link's own colour class wins on hover, as the designs'
   inline styles do. */
a:where(:hover) { color: var(--accent-hover); }
/* Form controls keep browser defaults (as in the designs); legacy pages inherit fonts as before. */
.legacy-page button, .legacy-page input, .legacy-page select, .legacy-page textarea { font: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(95, 211, 230, .25); }
:focus-visible { outline: 2px solid #5fd3e6; outline-offset: 3px; border-radius: 4px; transition: outline-offset .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(95, 211, 230, .55) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Designed page roots: never scroll sideways (decorative/positioned labels can overhang by a pixel). */
.page-root { overflow-x: clip; }

/* Shell for older-style pages (site_start/site_end) - same root as the designed pages. */
.page-shell { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-sans); overflow-x: clip; }

/* ---------- Brand lockup ---------- */
.lockup-host { display: block; }
.lockup { display: inline-flex; align-items: center; gap: .62em; line-height: 1; white-space: nowrap; }
.lockup--sm { font-size: 14px; }
.lockup--md { font-size: 17px; }
.lockup--lg { font-size: 22px; }
.lockup--xl { font-size: 34px; }
.lockup__mark { display: grid; grid-template-columns: repeat(3, .38em); grid-auto-rows: .38em; gap: .085em; padding: .1em; border-radius: .12em; background: rgba(4, 10, 24, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 .6em rgba(95, 211, 230, .12); }
.lockup__mark > span { border-radius: .07em; background: linear-gradient(180deg, #f3f5f9 0%, #cdd3dd 55%, #a3adbd 100%); box-shadow: inset 0 .03em 0 rgba(255, 255, 255, .75), inset 0 -.03em 0 rgba(0, 0, 0, .25), 0 .03em .06em rgba(0, 0, 0, .45); }
.lockup__mark > span.is-blue { background: linear-gradient(180deg, #5eaaf0 0%, #3386d6 58%, #2b70bd 100%); }
.lockup__inform { font-family: 'Michroma', 'Eurostile', 'Arial Black', sans-serif; font-size: 1em; letter-spacing: .05em; background: linear-gradient(180deg, #ffffff 0%, #e3e8ef 46%, #9ea9ba 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 .05em .05em rgba(0, 0, 0, .55)); }
.lockup__by { font-family: 'Poppins', 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: .56em; letter-spacing: .01em; color: #c3ccda; }
.lockup__pulse { position: relative; display: inline-block; font-family: 'Orbitron', 'Michroma', sans-serif; font-weight: 800; font-size: 1.06em; letter-spacing: .07em; background: linear-gradient(90deg, #2fb6e2 0%, #4fcfd9 48%, #94e9c5 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 .32em rgba(70, 205, 228, .45)); }
.lockup__flare { position: absolute; left: -1.1em; right: -1.1em; top: 54%; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(120, 230, 245, .95) 12%, rgba(120, 230, 245, 0) 30%, rgba(120, 230, 245, 0) 70%, rgba(120, 230, 245, .95) 88%, transparent 100%); box-shadow: 0 0 .3em rgba(95, 211, 230, .9); z-index: -1; }

/* ---------- Status dot ---------- */
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); flex: none; }
.status-dot--legacy { background: var(--amber-legacy); box-shadow: 0 0 8px var(--amber-legacy); }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 21, 48, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--font-sans); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 16px; border-radius: 6px; background: #5fd3e6; color: #06121f; font-family: var(--font-mono); font-size: 12px; text-decoration: none; }
.skip-link:focus { left: 12px; color: #06121f; }
.status-strip { border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(6, 14, 32, .6); }
.status-strip__inner { max-width: 1180px; margin: 0 auto; padding: 6px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8b95b5; }
.status-strip__stage { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.status-strip a { color: #8b95b5; text-decoration: none; }
.status-strip a:hover { color: #fff; }
.status-strip__reviewed { margin-left: auto; color: #7d87a8; }
.site-header__row { max-width: 1180px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.site-header__brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; justify-content: flex-end; }
.site-nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 7px 9px; border-radius: 7px; text-decoration: none; white-space: nowrap; color: #8b95b5; background: transparent; transition: color .18s ease, background .18s ease; }
.site-nav a:hover { color: #f2f5ff; background: rgba(255, 255, 255, .05); }
.site-nav a[aria-current="page"] { color: #f2f5ff; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: #9aa4c2; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 7px 10px; }
.search-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.no-js .search-btn { display: none; }
.kbd { padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .18); font-size: 10px; }
.access-cta { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 13px; border-radius: 8px; text-decoration: none; white-space: nowrap; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.access-cta:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.menu-btn { display: none; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #eef1fb; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 8px 12px; }
.site-menu { border-top: 1px solid rgba(255, 255, 255, .08); background: #0a1530; max-height: calc(100vh - 110px); overflow: auto; }
.site-menu__inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px 20px; display: flex; flex-direction: column; }
.site-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 16px; text-decoration: none; color: #8b95b5; }
.site-menu a[aria-current="page"] { color: #f2f5ff; }
.site-menu a span { color: var(--accent); }
@media (max-width: 1079.98px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-block; }
  .no-js .site-nav { display: flex; order: 3; flex-basis: 100%; justify-content: flex-start; }
  .no-js .menu-btn { display: none; }
}
@media (min-width: 1080px) { .site-menu { display: none !important; } }

/* ---------- Command palette (⌘K) ---------- */
.palette { position: fixed; inset: 0; z-index: 100; background: rgba(3, 8, 20, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; font-family: var(--font-sans); }
.palette__dialog { width: 100%; max-width: 620px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: #0b1733; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.palette__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.palette__key { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.palette__input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #eef1fb; font-size: 16px; font-family: var(--font-sans); }
.palette__esc { font-family: var(--font-mono); font-size: 10px; color: #7d87a8; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; padding: 2px 6px; }
.palette__results { max-height: 52vh; overflow: auto; padding: 6px; }
.palette__results:empty { display: none; }
.palette__option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; background: transparent; }
.palette__option[aria-selected="true"] { background: rgba(95, 211, 230, .12); }
.palette__kind { flex: 0 0 76px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8b95b5; }
.palette__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.palette__title { font-size: 14.5px; color: #eef1fb; }
.palette__sub { font-size: 12.5px; color: #8b95b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__empty { padding: 18px 12px; font-size: 14px; color: #8b95b5; }

/* ---------- Site footer ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--font-sans); color: #9aa4c2; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 54px 32px 44px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px 56px; justify-content: space-between; }
.site-footer__brand { max-width: 340px; }
.site-footer__lockup { margin-bottom: 18px; }
.site-footer__lockup a { text-decoration: none; }
.site-footer__expand { font-family: var(--font-mono); font-size: 11px; line-height: 1.85; letter-spacing: .03em; color: #7a85a6; }
.site-footer__expand div + div { margin-top: 4px; }
.site-footer__expand span { color: #aeb8d8; }
.site-footer__status { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8b95b5; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px 48px; flex: 1; min-width: 280px; }
.site-footer__heading { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #7d87a8; margin-bottom: 14px; }
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__links a { font-size: 13px; color: #9aa4c2; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.7; letter-spacing: .04em; color: #7d87a8; }

/* ---------- EvidenceTag + Term (tooltip is one shared element, see inform-core.js) ---------- */
.etag { --tone: #e0b066; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); background: color-mix(in srgb, var(--tone) 8%, transparent); color: var(--tone); cursor: help; white-space: nowrap; outline-offset: 2px; text-decoration: none; }
a.etag { cursor: pointer; }
a.etag:hover { color: var(--tone); }
.etag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); flex: none; }
.etag--observed { --tone: #6fe0ad; }
.etag--documented { --tone: #8fd9c8; }
.etag--literature { --tone: #7fb6ff; }
.etag--target { --tone: #e0b066; }
.etag--unknown { --tone: #ff9d9d; }
.etag--concept { --tone: #9fb4e0; }
.etag--boundary { --tone: #c2cae3; }
.term { text-decoration: underline dotted color-mix(in srgb, #5fd3e6 70%, transparent); text-underline-offset: 3px; cursor: help; }
.tip { --tone: #5fd3e6; position: fixed; z-index: 200; width: 300px; max-width: calc(100vw - 62px); padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: #0b1733; box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .7); display: flex; flex-direction: column; gap: 10px; font-family: var(--font-sans); font-weight: 400; font-style: normal; text-transform: none; letter-spacing: 0; white-space: normal; cursor: default; }
.tip--term { width: 280px; max-width: calc(100vw - 58px); padding: 14px 16px; gap: 8px; }
.tip__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--tone); }
.tip--term .tip__k { letter-spacing: .14em; color: #5fd3e6; }
.tip__p { font-size: 13px; line-height: 1.5; color: #dfe6f3; }
.tip__row { display: flex; flex-direction: column; gap: 3px; }
.tip__l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b95b5; }
.tip__v { font-size: 12.5px; line-height: 1.45; color: #b7c0d8; }
.tip__rev { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: #7d87a8; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 9px; }
.tip__go { font-family: var(--font-mono); font-size: 11px; color: #5fd3e6; text-decoration: none; }
.tip__go:hover { color: #5fd3e6; text-decoration: underline; }

/* ---------- Validation roadmap: Stage 1 gate board (Fig 6.2) ---------- */
.gates { margin-top: 30px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; background: #081228; scroll-margin-top: 140px; }
.gates__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.gates__decision { display: inline-flex; align-items: center; gap: 9px; color: #dfe6f3; }
.gates__decision i { width: 8px; height: 8px; border-radius: 50%; background: #e0b066; box-shadow: 0 0 10px #e0b066; }
.gates__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: #8b95b5; }
.gates__all { cursor: pointer; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 6px; padding: 5px 9px; }
.gates__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gate { --gate: #e0b066; --gate-glow: 0 0 10px #e0b066; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); background: #0b1733; scroll-margin-top: 140px; }
.gate.is-open { background: rgba(95, 211, 230, .05); }
.gate--future { --gate: #7d87a8; --gate-glow: none; }
.gate--closed { --gate: #6fe0ad; --gate-glow: 0 0 10px #6fe0ad; }
.gate__btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; }
.gate__btn:focus-visible { outline: 2px solid #5fd3e6; outline-offset: -2px; }
.no-js .gate__btn { cursor: default; }
.no-js .gate__caret { display: none; }
.gate__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gate__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.gate__state { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gate); }
.gate__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--gate); box-shadow: var(--gate-glow); }
.gate__name { font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1.3; color: #eef1fb; }
.gate__foot { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8b95b5; }
.gate__caret { color: var(--accent); }
.gate__detail { display: flex; flex-direction: column; gap: 12px; padding: 0 18px 18px; }
.gate__k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b95b5; }
.gate__q { font-size: 13.5px; line-height: 1.5; color: #dfe6f3; margin-top: 4px; }
.gate__ev { font-size: 13.5px; line-height: 1.5; color: #b7c0d8; margin-top: 4px; }
.gates__note { padding: 12px 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: #7f8aa8; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---------- Technology: Fig 3.1 compare two classes ---------- */
.cmp { padding: 26px 26px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: linear-gradient(160deg, rgba(95, 211, 230, .06), rgba(255, 255, 255, .01)); }
.cmp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cmp__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.cmp__sub { font-size: 13.5px; color: #9aa4c2; margin-top: 6px; }
.cmp__controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cmp__select { background: #0e1c3d; color: #eef1fb; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 8px 10px; font-family: var(--font-sans); font-size: 13.5px; }
.cmp__vs { font-family: var(--font-mono); font-size: 11px; color: #7d87a8; }
.cmp__axis { position: relative; margin-top: 26px; padding-bottom: 26px; }
.cmp__line { position: relative; height: 1px; background: rgba(255, 255, 255, .14); }
.cmp__tick { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cmp__tick span:first-child { width: 1px; height: 8px; background: rgba(255, 255, 255, .25); }
.cmp__tick span:last-child { font-family: var(--font-mono); font-size: 10px; color: #7d87a8; }
.cmp__rows { display: flex; flex-direction: column; gap: 14px; }
.cmp__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 22px; align-items: center; }
.cmp__track { position: relative; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.cmp__bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.cmp__none { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: #8b95b5; }
.cmp__text { display: flex; flex-direction: column; gap: 4px; }
.cmp__label { font-size: 14px; font-weight: 600; color: #eef1fb; }
.cmp__range { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--c); }
.cmp__note { font-size: 12.5px; line-height: 1.45; color: #9aa4c2; }
.cmp__foot { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: #7f8aa8; }
.cmp__fig { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #7f8aa8; }

/* ---------- Architecture: Fig 5.1 interactive register ---------- */
.amap-tools { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b95b5; }
.amap-tools__left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.amap-search { width: 200px; max-width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: 8px 11px; color: #eef1fb; font-family: var(--font-sans); font-size: 13px; text-transform: none; letter-spacing: 0; }
.amap-chip { cursor: pointer; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; padding: 7px 10px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #9aa4c2; }
.amap-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: #f2f5ff; }
.amap-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.amap-legend span { display: inline-flex; align-items: center; gap: 7px; }
.amap-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.amap-legend i.is-adj { background: none; border: 1px solid var(--accent); }
.amap { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; align-items: flex-start; }
.amap-aside { flex: 1 1 260px; min-width: 0; position: static; z-index: 2; padding: 22px 22px 20px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 14px; background: linear-gradient(165deg, rgba(95, 211, 230, .08), rgba(8, 18, 40, .9)); }
/* design says top:76px, which would slide under the 110px sticky header */
.amap.is-side .amap-aside { position: sticky; top: 126px; }
.amap-aside__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.amap-aside__band { color: var(--accent); }
.amap-aside__wp { color: #8b95b5; }
.amap-aside__id { font-family: var(--font-mono); font-size: 34px; line-height: 1; margin-top: 16px; color: #f2f5ff; }
.amap-aside__name { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.15; margin: 8px 0 0; color: #f2f5ff; }
.amap-aside__desc { font-size: 14px; line-height: 1.55; color: #b7c0d8; margin: 8px 0 0; }
.amap-aside__block { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.amap-aside__block + .amap-aside__block { margin-top: 16px; }
.amap-aside__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8b95b5; }
.amap-aside__if { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: #9aa4c2; }
.amap-aside__if b { font-weight: 400; font-family: var(--font-mono); color: var(--accent); }
.amap-govs { display: flex; flex-wrap: wrap; gap: 6px; }
.amap-gov { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); color: #c2cae3; }
.amap-grid { flex: 3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.amap-band { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .015); transition: border-color .2s ease, background .2s ease; }
.amap-band.is-active { border-color: color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 5%, rgba(255, 255, 255, .015)); }
.amap-band__head { padding: 4px 4px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.amap-band__top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.amap-band__tag { color: var(--accent); }
.amap-band__wp { color: #8b95b5; }
.amap-band__title { font-family: var(--font-serif); font-weight: 500; font-size: 17px; line-height: 1.2; margin: 8px 0 0; color: #f2f5ff; }
.amap-layer { all: unset; box-sizing: border-box; cursor: pointer; opacity: 1; scroll-margin-top: 140px; display: flex; flex-direction: column; gap: 3px; padding: 10px 11px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); transition: background .18s ease, border-color .18s ease; }
.amap-layer:focus-visible { outline: 2px solid #5fd3e6; outline-offset: 2px; }
.amap-layer.is-dim { opacity: .28; }
.amap-layer.is-adj { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.amap-layer.is-sel { border-color: var(--accent); background: var(--accent); }
.amap-layer__id { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--accent); }
.amap-layer__name { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #eef1fb; }
.amap-layer__desc { font-family: var(--font-sans); font-size: 12px; line-height: 1.4; color: #8b95b5; }
.amap-layer.is-sel .amap-layer__id, .amap-layer.is-sel .amap-layer__name { color: #06121f; }
.amap-layer.is-sel .amap-layer__desc { color: rgba(6, 18, 31, .78); }

/* ---------- Scroll reveals (inform-core.js; off under reduced motion) ---------- */
[data-reveal].reveal-pending { opacity: 0; transform: translateY(18px); }
[data-reveal][data-reveal-blur].reveal-pending { filter: blur(7px); }
[data-reveal].reveal-in { transition: opacity .85s cubic-bezier(.22, .61, .36, 1), transform .85s cubic-bezier(.22, .61, .36, 1), filter .7s ease; }

/* ---------- Mobile gutters (16px, no horizontal scroll) ---------- */
@media (max-width: 600px) {
  .status-strip__inner, .site-header__row, .site-footer__inner { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Phones: slim header (owner decision 30 Sep 2026) ----------
   The status strip is one swipeable line, and the header slides away while scrolling down
   and returns on scroll up (inform-core.js). Desktop keeps the designed pinned header. */
@media (max-width: 759.98px) {
  .status-strip__inner { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .status-strip__inner::-webkit-scrollbar { display: none; }
  .status-strip__inner > * { flex: none; }
  .status-strip__reviewed { margin-left: 0; }
  .site-header { transition: transform .25s ease; }
  .site-header.is-away { transform: translateY(-100%); }
}
@media (max-width: 759.98px) and (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

/* ---------- Home hero motion (vein pulse / sweep) ---------- */
@keyframes veinPulse { 0%, 100% { opacity: .42; } 50% { opacity: 1; } }
@keyframes veinSweep {
  0% { -webkit-mask-position: -55% 0; mask-position: -55% 0; }
  100% { -webkit-mask-position: 155% 0; mask-position: 155% 0; }
}
@keyframes floatHint { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(6px); opacity: 1; } }
[data-paused="true"] .has-veinpulse, [data-paused="true"] .has-veinsweep { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .has-veinpulse, .has-veinsweep { animation: none !important; }
}
/* Without JavaScript the pause control cannot work, so nothing moves (WCAG 2.2.2). */
.no-js .has-veinpulse, .no-js .has-veinsweep { animation: none !important; }
.no-js [data-hero-pause] { display: none; }
.no-js .story__visual { display: none; }

/* ---------- Home: small screens ----------
   The Home design is drawn at desktop width only (its prototype scrolls sideways
   below ~600px). These rules keep 360-719px usable; desktop is unchanged. */
.home-mast__brand .lockup--lg { font-size: min(22px, calc((100vw - 48px) / 17.6)); }
/* Below 960px the hero art would be a sliver (it starts 640px from the left): hide it. */
@media (max-width: 959.98px) {
  [data-hero-root] .home-hero-art { display: none; }
}
@media (max-width: 719.98px) {
  [data-hero-root] .home-chain { grid-template-columns: 1fr; gap: 22px; padding: 64px 0 52px; }
  [data-hero-root] .home-chain__link { display: none; }
}
@media (max-width: 599.98px) {
  [data-hero-root] .home-mast__bar { flex-wrap: wrap; }
  [data-hero-root] .home-mast__bar > a { margin-left: 0; }
}
@media (max-width: 479.98px) {
  [data-hero-root] .home-cta { gap: 20px; padding: 17px 20px; }
}

/* ---------- Responsive tables (labelled cards below 720px) ---------- */
@media (max-width: 720px) {
  [data-reflow-table] { min-width: 0 !important; }
  [data-reflow-head] { display: none !important; }
  [data-reflow-row]:not([hidden]) { padding: 8px 0; display: block !important; }
  [data-reflow-row] > [data-label] { padding: 6px 16px !important; }
  [data-reflow-row] > [data-label]::before { content: attr(data-label); display: block; font: 500 10px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #8b95b5; margin-bottom: 2px; }
}

/* ---------- SpecimenStory - Fig 1.1 (Home, Programme logic) ---------- */
.story { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; margin-top: 36px; font-family: var(--font-sans); }
.story__visual { flex: 1 1 460px; min-width: 0; position: static; z-index: 1; align-self: flex-start; }
.story.is-side .story__visual { position: sticky; top: 118px; }
.story__frame { position: relative; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #0f2146 0%, #081228 70%); }
.story__canvas { display: block; width: 100%; height: 460px; cursor: ns-resize; touch-action: none; outline-offset: -3px; }
.story__canvas.is-dragging { cursor: grabbing; }
.story__hud { position: absolute; top: 12px; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; pointer-events: none; }
.story__hud--l { left: 14px; letter-spacing: .1em; text-transform: uppercase; }
.story__hud--l .story__fig { color: #dfe6f3; }
.story__hud--l .story__state { color: var(--accent); }
.story__hud--r { right: 14px; align-items: flex-end; letter-spacing: .08em; color: #8b95b5; }
.story__load.is-high { color: #e0b066; }
.story__decision { position: absolute; right: 14px; bottom: 14px; width: min(250px, calc(100% - 28px)); padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; background: rgba(8, 18, 40, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.story__decision-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.story__decision-t { font-size: 14px; font-weight: 600; color: #eef1fb; margin-top: 6px; }
.story__decision-p { font-size: 12.5px; line-height: 1.45; color: #9aa4c2; margin-top: 4px; }
.story__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .07); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: #7f8aa8; }
.story__pause { cursor: pointer; font: inherit; color: #9aa8c0; background: transparent; border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; padding: 3px 8px; }
.no-js .story__pause { display: none; }
.story__steps { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.story__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.story__card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .015); transition: border-color .3s ease, background .3s ease, opacity .3s ease; opacity: .55; }
.story__card[aria-current="step"] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, rgba(255, 255, 255, .02)); opacity: 1; }
.story__card:focus-visible { outline: 2px solid #5fd3e6; outline-offset: 2px; }
.no-js .story__card { opacity: 1; cursor: default; }
.story__card-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.story__card-t { font-family: var(--font-serif); font-size: 24px; line-height: 1.15; color: #f2f5ff; }
.story__card-p { font-size: 14.5px; line-height: 1.55; color: #b7c0d8; }
.story__card-s { font-size: 13px; line-height: 1.5; color: #8b95b5; }
.story__layer { align-self: flex-start; margin: 8px 0 0 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); text-decoration: none; }
.story__layer:hover { text-decoration: underline; }
@media (max-width: 899.98px) {
  .story__steps { gap: 12px; }
  .story__step { min-height: auto; }
  .story__card { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .story__card { transition: none; }
}

/* ---------- Filtered lists (evidence ledger, glossary, governance matrix) ---------- */
.ledger-row:target { background: rgba(95, 211, 230, .08); }
.list-empty { padding: 24px 4px; color: #8b95b5; }
/* Search boxes and filter chips do nothing without JavaScript. */
.no-js [data-js-only] { display: none; }

/* ---------- Labs (labs.php) ---------- */
.lab-span.is-yes { border-color: rgba(95, 211, 230, .5); background: rgba(95, 211, 230, .08); }
.lab-span.is-yes .lab-span__label { color: #5fd3e6; }
.lab-noscript { margin: 0; padding: 10px 12px; font-size: 13px; color: #8b95b5; }
/* The labels are uppercase; keep the microstrain unit (µε) from turning into Greek capitals. */
.lab-unit { text-transform: none; }

/* ---------- Forms (contact, overview access, data room, sign in; includes/forms.php) ---------- */
.form-errors { margin-bottom: 22px; padding: 14px 16px; border: 1px solid rgba(255, 107, 107, .45); border-radius: 10px; background: rgba(255, 107, 107, .08); }
.form-errors__title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #ff9d9d; }
.form-errors__list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.form-errors__item { font-size: 13.5px; color: #ffd0d0; }
.form-sent { margin-bottom: 22px; padding: 14px 16px; border: 1px solid rgba(111, 224, 173, .45); border-radius: 10px; background: rgba(111, 224, 173, .08); font-size: 14px; line-height: 1.55; color: #cdf3e2; }
.form-errors, .form-sent, .signin-alert, [data-form-card] { scroll-margin-top: 140px; }
/* Data room: the stakeholder type is native radios drawn as the design's cards. */
.dr-type { display: flex; flex: 1 1 150px; min-width: 0; }
.dr-type > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dr-type > input:checked + span { border-color: #5fd3e6; background: rgba(95, 211, 230, .12); }
.dr-type > input:focus-visible + span { outline: 2px solid #5fd3e6; outline-offset: 3px; }
.dr-form .sc6ea10[aria-invalid="true"] { border-color: rgba(255, 107, 107, .6); }
/* Sign in: messages from the auth code (errors) and session notices. */
.signin-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(255, 107, 107, .45); border-radius: 10px; background: rgba(255, 107, 107, .08); font-size: 13.5px; color: #ffd0d0; }
.signin-alert--notice { border-color: rgba(216, 162, 74, .45); background: rgba(216, 162, 74, .06); color: #e9d3a6; }

/* ---------- Legal pages (includes/legal.php): inner-page pattern, contents column, review date ---------- */
.legal-meta { margin: 24px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8b95b5; }
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding: 44px 0 0; }
.legal-toc { position: sticky; top: 126px; }
.legal-toc__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8b95b5; }
.legal-toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 1px solid rgba(255, 255, 255, .09); }
.legal-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.45; color: #9aa4c2; text-decoration: none; transition: color .18s ease, border-color .18s ease; }
.legal-toc a:hover { color: #fff; border-left-color: rgba(255, 255, 255, .3); }
.legal-body { max-width: 720px; }
.legal-sec { padding: 0 0 30px; scroll-margin-top: 140px; }
.legal-sec + .legal-sec { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .07); }
.legal-sec h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: #f2f5ff; }
.legal-sec p, .legal-sec li { font-size: 15.5px; line-height: 1.7; color: #b7c0d8; }
.legal-sec p { margin: 12px 0 0; }
.legal-sec ul { margin: 12px 0 0; padding-left: 20px; }
.legal-sec li + li { margin-top: 6px; }
.legal-sec code { padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .05); font-family: var(--font-mono); font-size: .88em; color: #dfe6f3; }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .legal-toc { position: static; }
}
