/* Airfieldpath resource site. The visual language is the proof of concept's own tokens (poc/build/style.css) and the
   plain, information-first look of airport wayfinding and authority documents: thin rules, real tables, numbered
   sections, small-caps labels, one accent (Runway Blue). Light is the Authority colours scheme; dark is a toggle.
   No gradients, no blur, no glow, no icons. */
:root {
  --font-display: 'Space Grotesk', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px); --max: 1180px; --measure: 74ch;
}
:root, [data-mode="light"] {
  /* light-depth r1: a darker page ground so white panels lift, heavier grey rules, a darker Runway Blue for text, the house green as the second accent */
  --bg: #e1e7f0; --surface: #ffffff; --surface-2: #ecf0f6; --border: #b3bfd0; --border-2: #8190a8; --rule: #6f7e97; --on-info: #ffffff;
  --text: #0c1322; --text-dim: #3a4b66; --text-muted: #4f5f79;
  --info: #17509a; --info-fill: #dbe9fb; --info-line: #7fa9de; --ok: #17703c; --ok-fill: #e0f3e8; --sim: #7a5400; --sim-fill: #fdf5dd;
  --sh1: 0 1px 2px rgba(16,23,38,.16), 0 1px 1px rgba(16,23,38,.10);
  --sh2: 0 2px 4px rgba(16,23,38,.12), 0 6px 14px rgba(16,23,38,.12);
  --sh3: 0 4px 8px rgba(16,23,38,.14), 0 14px 28px rgba(16,23,38,.16);
  color-scheme: light;
}
[data-mode="dark"] {
  --bg: #070b16; --surface: #0e1528; --surface-2: #141d33; --border: #22304f; --border-2: #2e3d61;
  --text: #f3f6fb; --text-dim: #b3c1d8; --text-muted: #8796b2;
  --info: #5aa9ff; --info-fill: #0d1d36; --info-line: #23426e; --sim: #f6c343; --sim-fill: #2a2210; --rule: #3a4b72; --on-info: #06101f; --ok: #3ddc84; --ok-fill: #0d2a1c;
  --sh1: none; --sh2: none; --sh3: 0 6px 18px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-body); }
img, video { max-width: 100%; display: block; }
a { color: var(--info); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
code, pre, .sha, .tm, .num { font-family: var(--font-mono); }
code { font-size: .88em; background: var(--surface-2); padding: 0 4px; }
pre { font-size: 13px; background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; overflow-x: auto; max-width: 100%; white-space: pre-wrap; word-break: break-word; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: 0; }
p { margin: 0 0 .9em; max-width: var(--measure); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--text-dim); }
.skip { position: absolute; left: 8px; top: -50px; background: var(--surface); border: 1px solid var(--info); padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border-2); }
.toprow { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { display: block; font: 600 18px/1.1 var(--font-display); }
.brand small { display: block; font: 11px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.secnav { margin-left: auto; position: relative; }
.secnav summary { cursor: pointer; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border-2); list-style: none; }
.secnav summary::-webkit-details-marker { display: none; }
.secnav summary::after { content: ' +'; }
.secnav[open] summary::after, .secnav details[open] summary::after { content: ' -'; }
.secnav ol { list-style: none; margin: 0; padding: 6px 0; position: absolute; right: 0; top: 100%; min-width: 260px; background: var(--surface); border: 1px solid var(--border-2); z-index: 20; }
.secnav li a { display: block; padding: 7px 14px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.secnav li a:hover { background: var(--info-fill); }
.secnav li a[aria-current] { box-shadow: inset 3px 0 0 var(--info); font-weight: 600; }
.secnav .n { display: inline-block; width: 1.4em; font-family: var(--font-mono); color: var(--text-muted); }
.mode { display: inline-flex; border: 1px solid var(--border-2); }
.mode button { background: none; border: 0; padding: 6px 10px; font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--info); color: var(--on-info); }

.crumbs { padding-top: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: 13.5px; color: var(--text-dim); }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--text-muted); }
.crumbs a { color: var(--text-dim); }

/* page head */
.page, .front { padding-top: 14px; padding-bottom: 56px; }
.lab { font: 600 11.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.ph { border-bottom: 1px solid var(--border-2); padding: 10px 0 18px; margin-bottom: 22px; }
.ph h1, .intro h1 { font-size: clamp(25px, 4.2vw, 36px); max-width: 28ch; }
.ph h1 { max-width: none; }
.lede { font-size: 18px; color: var(--text-dim); margin: 10px 0 8px; max-width: 70ch; }
.stat { font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--info-line); color: var(--info); vertical-align: middle; }
.stat.sim { color: var(--sim); border-color: var(--sim); background: var(--sim-fill); }

/* front page */
.intro { padding: 26px 0 16px; }
.intro .lede { max-width: 62ch; }
.lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 8px; }
.player video { width: 100%; max-width: 1000px; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--border-2); }
figcaption { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; max-width: var(--measure); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--border-2); background: var(--surface); }
.counters div { padding: 10px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.counters dt { font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.counters dd { margin: 2px 0 0; font: 600 26px/1.1 var(--font-mono); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 26px 0; border: 1px solid var(--border-2); background: var(--surface); }
.door { padding: 16px 18px; border-right: 1px solid var(--border); }
.door:last-child { border-right: 0; }
.door h2 { font-size: 20px; margin-bottom: 4px; }
.door ul { list-style: none; margin: 8px 0 0; padding: 0; }
.door li { padding: 6px 0; border-top: 1px solid var(--border); font-size: 15px; }
.contents h2, .grp h2 { font-size: 21px; margin: 0 0 4px; padding-top: 4px; }
.contents { margin-top: 28px; }
.grp { margin-top: 30px; }
.grp h2 { border-top: 2px solid var(--text); padding-top: 8px; margin-bottom: 8px; }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 0; padding: 0; }
.sub { font-size: 15px; margin: 22px 0 8px; font-family: var(--font-display); }

/* tables */
.tw { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--border-2); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { font: 600 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-2); background: var(--surface-2); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.r { text-align: right; } td.num, th.num, .matrix td:first-child { white-space: nowrap; width: 4.5em; color: var(--text-dim); }
.files, .defs { width: 100%; border: 1px solid var(--border-2); background: var(--surface); margin: 4px 0 18px; }
.sha { font-size: 12px; color: var(--text-muted); word-break: break-all; }
.sha .more { display: none; }
.evi { font: 12px var(--font-mono); color: var(--text-muted); margin-top: 3px; }
.mfilter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0; font-size: 14px; }
.mfilter input, .mfilter select { font: inherit; padding: 6px 8px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); }
.mfilter input { min-width: 240px; }
tr:target td { background: var(--info-fill); }

/* blocks */
.kv { margin: 0 0 18px; border-top: 1px solid var(--border-2); max-width: 860px; }
.kv div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.kv dt { font: 11.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding-top: 3px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.dt { border: 1px solid var(--border-2); background: var(--surface); margin: 0 0 8px; }
.dt > summary { cursor: pointer; padding: 10px 14px; font: 600 15px var(--font-display); list-style: none; }
.dt > summary::-webkit-details-marker { display: none; }
.dt > summary::before { content: '+'; display: inline-block; width: 1.3em; font-family: var(--font-mono); color: var(--info); }
.dt[open] > summary::before { content: '-'; }
.dt[open] > summary { border-bottom: 1px solid var(--border); }
.dtb { padding: 10px 14px 4px; }
.dtb .tw { border: 0; margin-left: -2px; }
.plain { margin: 0 0 14px; padding-left: 20px; max-width: var(--measure); }
.plain li { margin: 3px 0; }
.shot img { border: 1px solid var(--border-2); max-width: 880px; width: 100%; }
.quote { margin: 0 0 18px; padding: 4px 0 4px 16px; border-left: 3px solid var(--info); }
.quote blockquote { margin: 0; font-size: 18px; max-width: var(--measure); }
.narr { margin: 12px 0; max-width: 640px; } .narr audio { width: 100%; } .src { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.clip video { width: 100%; max-width: 820px; background: #000; }
.action { display: inline-block; padding: 8px 14px; border: 1px solid var(--info); color: var(--info); text-decoration: none; font-weight: 600; font-size: 15px; }
.action:hover { background: var(--info); color: var(--on-info); }
.chap { list-style: none; margin: 0 0 12px; padding: 0; }
.chap li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.chap button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.chap button:hover .tm { text-decoration: underline; }
.chap .tm { display: inline-block; min-width: 4.2em; color: var(--info); font-size: 13px; }
.chl { display: block; margin-left: 4.2em; font-size: 13px; color: var(--text-dim); }
.md h3, .md h4, .md h5 { margin: 20px 0 8px; } .md ul, .md ol { max-width: var(--measure); padding-left: 22px; } .md blockquote { border-left: 3px solid var(--border-2); margin: 0 0 1em; padding-left: 12px; color: var(--text-dim); max-width: var(--measure); }
.flow3 { display: grid; grid-template-columns: 1fr 1.15fr 1fr; border: 1px solid var(--border-2); background: var(--surface); margin: 8px 0 18px; }
.flow3 section { padding: 14px 16px; border-right: 1px solid var(--border); }
.flow3 section:last-child { border-right: 0; }
.flow3 .mid { background: var(--info-fill); border-left: 2px solid var(--info); border-right: 2px solid var(--info); }
.flow3 h3 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.flow3 ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.flow3 li { margin: 5px 0; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; border-top: 1px solid var(--border-2); padding-top: 14px; }
.pn a { text-decoration: none; max-width: 48%; } .pn small { display: block; font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); } .pn .nx { margin-left: auto; text-align: right; }
.foot { border-top: 1px solid var(--border-2); background: var(--surface); padding: 18px 0 28px; font-size: 14px; }
.foot p { margin: 0 0 6px; max-width: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .doors { grid-template-columns: 1fr; } .door { border-right: 0; border-bottom: 1px solid var(--border); } .door:last-child { border-bottom: 0; }
  .flow3 { grid-template-columns: 1fr; } .flow3 section { border-right: 0; border-bottom: 1px solid var(--border); } .flow3 .mid { border-left: 0; border-right: 0; border-top: 2px solid var(--info); border-bottom: 2px solid var(--info); }
  .kv div { grid-template-columns: 1fr; gap: 0; }
  .secnav { margin-left: 0; } .mode { margin-left: auto; }
  .defs td::before { display: none; } .defs tr { display: table-row; padding: 0; } .defs td { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--border); }
  table.stack thead, .files thead { position: absolute; left: -9999px; }
  .idx td::before { display: none; } .idx td.num { display: inline-block; width: auto; margin-right: 8px; } .idx td:nth-child(2) { display: inline-block; font-weight: 600; } .idx td.r { display: block; color: var(--text-muted); font-size: 13px; } .idx td.r::before { display: inline; content: 'Pages: '; }
  table.stack tr, .files tr { display: block; padding: 8px 10px; border-bottom: 1px solid var(--border); }
  table.stack td, .files td { display: block; border: 0; padding: 2px 0; }
  table.stack td::before, .files td::before { content: attr(data-l); display: block; font: 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
  td.num { width: auto; } .r { text-align: left; }
  .mfilter input { min-width: 0; width: 100%; }
}
@media (min-width: 761px) { .sha .more { display: inline; } }

/* ---- gallery, panels, explainers, why-different ---- */
.mainlinks { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.mainlinks a { color: var(--text); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.mainlinks a:hover, .mainlinks a[aria-current] { border-bottom-color: var(--info); }
.look { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.tile2 { display: block; background: var(--surface); border: 1px solid var(--border-2); padding: 14px 16px; text-decoration: none; color: var(--text); }
.tile2 b { display: block; font: 600 17px var(--font-display); color: var(--info); margin-bottom: 4px; }
.tile2 span { color: var(--text-dim); font-size: 14.5px; }
.tile2 .tn { display: inline-block; font: 600 12px var(--font-mono); margin-right: 8px; color: var(--text-muted); }
.tiles2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.tile { text-align: left; background: var(--surface); border: 1px solid var(--border-2); padding: 10px 12px; color: var(--text); cursor: pointer; font: inherit; }
.tile b { display: block; font: 600 15px var(--font-display); }
.tile .tn { font: 600 11px var(--font-mono); color: var(--text-muted); margin-right: 6px; }
.tile .tc { color: var(--text-dim); font-size: 13px; }
.tile[aria-pressed="true"], .fc[aria-pressed="true"] { background: var(--info); border-color: var(--info); color: var(--on-info); }
.tile[aria-pressed="true"] .tc, .tile[aria-pressed="true"] .tn { color: var(--on-info); }
.ctl { background: var(--surface); border: 1px solid var(--border-2); padding: 14px; margin-bottom: 18px; }
.ctlrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.ctlrow label { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ctlrow input[type=search], .ctlrow select { font: inherit; padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); max-width: 100%; }
.srch { flex: 1 1 260px; } .srch input { flex: 1; min-width: 0; }
.clr { font: inherit; padding: 6px 12px; background: none; border: 1px solid var(--border-2); color: var(--text); cursor: pointer; }
.cnt { margin: 0 0 0 auto; font: 600 14px var(--font-mono); }
.fg { border-top: 1px solid var(--border); padding: 6px 0; }
.fg summary { cursor: pointer; font-weight: 600; font-size: 14.5px; padding: 4px 0; }
.fg .sel { font-weight: 400; color: var(--info); }
.fcs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px; }
.fsub { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.lh { font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-right: 6px; }
.fc { font: 13px var(--font-body); padding: 4px 9px; border: 1px solid var(--border-2); background: var(--bg); color: var(--text); cursor: pointer; }
.fc .n { color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; }
.fc[aria-pressed="true"] .n { color: var(--on-info); }
.hint { font-size: 13px; margin: 8px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border-2); display: flex; flex-direction: column; min-width: 0; }
.panel[hidden] { display: none; }
.panel.hero { grid-column: 1 / -1; flex-direction: row; }
.panel.hero .pimg { flex: 1 1 52%; max-width: 52%; }
.panel.hero .pbody { flex: 1 1 48%; }
.pimg img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-bottom: 1px solid var(--border); }
.panel.hero .pimg img { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
.pic.none { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-muted); font-size: 13px; border-bottom: 1px solid var(--border); }
.psrc { font-size: 11px; color: var(--text-muted); margin: 4px 10px 0; line-height: 1.3; }
.pbody { padding: 10px 14px 14px; min-width: 0; }
.pbody h2, .pbody h3, .pbody h4 { font-size: 17px; margin: 0 0 4px; }
.pbody h2 a, .pbody h3 a, .pbody h4 a { color: var(--text); text-decoration: none; }
.pbody h2 a:hover, .pbody h3 a:hover, .pbody h4 a:hover { text-decoration: underline; }
.one { color: var(--text-dim); font-size: 14.5px; margin: 0 0 8px; }
.fits { list-style: none; display: flex; margin: 8px 0; padding: 0; border: 1px solid var(--border-2); font: 11.5px var(--font-mono); }
.fits li { flex: 1; text-align: center; padding: 4px 2px; color: var(--text-muted); border-right: 1px solid var(--border); }
.fits li:last-child { border-right: 0; }
.fits li.on { background: var(--info); color: var(--on-info); font-weight: 600; }
.fl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 6px 0; font-size: 13px; }
.fl div { display: flex; gap: 8px; } .fl dt { color: var(--text-muted); width: 96px; flex: none; } .fl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nl { color: var(--text-muted); font-style: italic; }
.lk { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chip { font: 12px var(--font-mono); padding: 2px 7px; border: 1px solid var(--info-line); background: var(--info-fill); color: var(--info); text-decoration: none; }
.chip.sc, .chip.so, .chip.hw { font-family: var(--font-body); }
.chip:hover { border-color: var(--info); }
.chipmore { display: inline; } .chipmore summary { display: inline; cursor: pointer; font-size: 12px; color: var(--info); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: none; }
.stt { font: 600 11px var(--font-mono); text-transform: uppercase; padding: 1px 5px; border: 1px solid var(--info-line); }
.stt.designed { color: var(--sim); border-color: var(--sim); } .stt.read { color: var(--info); }
.parts { margin: 10px 0 0; border-top: 1px solid var(--border); padding-top: 6px; } .parts summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.empty { padding: 24px; text-align: center; color: var(--text-dim); border: 1px dashed var(--border-2); }
.cpanel { margin: 0 0 22px; } .cpanel .panel { flex-direction: row; } .cpanel .pimg { flex: 0 0 42%; max-width: 42%; }
.related { margin-top: 30px; border-top: 1px solid var(--border-2); padding-top: 14px; } .relrow { margin-bottom: 10px; }
.viewer .vbox { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; border: 1px solid var(--border-2); background: #000; }
.viewer .vbox img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.vgo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 16px var(--font-body); padding: 12px 18px; background: var(--info); color: var(--on-info); border: 0; cursor: pointer; max-width: 90%; }
.vframe { width: 100%; height: 100%; border: 0; display: block; }
.eclips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eclip { margin: 0; background: var(--surface); border: 1px solid var(--border-2); } .eclip video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; object-fit: cover; }
.eclip figcaption { padding: 8px 12px; font-size: 13.5px; color: var(--text-dim); }
.hgroup, .viewer, section[aria-labelledby^=e] { margin-bottom: 26px; } .hgroup .panel { margin-bottom: 14px; }
/* diagrams */
.dgf { margin: 0 0 22px; } .dg { width: 100%; height: auto; display: block; max-width: 1180px; }
.dg-v { display: none; }
.dg-box rect { fill: var(--surface); stroke: var(--border-2); stroke-width: 1.5; } .dg-box.ours rect { fill: var(--info-fill); stroke: var(--info); stroke-width: 2.5; } .dg-box.ext rect { stroke-dasharray: 5 4; }
.dg-t { fill: var(--text); font: 600 14px var(--font-body); } .dg-s { fill: var(--text-dim); font: 13px var(--font-body); }
.dg-a { stroke: var(--text-dim); stroke-width: 2; fill: none; } .dg-ah { fill: var(--text-dim); }
.prose { max-width: 74ch; } .see { margin-top: 26px; border-top: 1px solid var(--border-2); padding-top: 14px; } .seecols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* why */
.claim { background: var(--surface); border: 1px solid var(--border-2); margin-bottom: 10px; } .claim > summary { cursor: pointer; padding: 12px 14px; display: flex; gap: 12px; align-items: baseline; list-style: none; }
.claim > summary::-webkit-details-marker { display: none; } .cn { font: 600 13px var(--font-mono); color: var(--info); } .ct { font: 600 17px var(--font-display); }
.cb { padding: 0 14px 14px 40px; } .under { margin-top: 8px; } .under summary { cursor: pointer; color: var(--info); font-size: 14px; }
.tr3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 12px; } .trl { max-height: 460px; overflow: auto; border: 1px solid var(--border-2); background: var(--surface); }
.tri { display: block; width: 100%; text-align: left; font: 13.5px var(--font-body); padding: 6px 10px; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); cursor: pointer; text-decoration: none; }
.tri.on { background: var(--info); color: var(--on-info); } .tri.on .dim, .tri.on .stt { color: var(--on-info); } .trg { font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; background: var(--surface-2); color: var(--text-muted); }
#tr-comp { padding: 6px 10px; }
.gantt ol { list-style: none; padding: 0; margin: 0; } .gantt li a { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.gl { font-weight: 600; font-size: 14.5px; } .gt { display: block; position: relative; height: 10px; background: var(--surface-2); } .gt i { position: absolute; top: 0; bottom: 0; background: var(--info); } .gd { font-size: 12.5px; color: var(--text-dim); }
.fam4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .fcard { background: var(--surface); border: 1px solid var(--border-2); padding: 12px; } .fcard h3 { font-size: 16px; margin-bottom: 6px; } .mono { font-family: var(--font-mono); font-size: 12px; }
.why section { margin-bottom: 30px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fam4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid, .look, .eclips, .seecols, .tr3, .fam4 { grid-template-columns: minmax(0, 1fr); }
  .panel.hero, .cpanel .panel { flex-direction: column; } .panel.hero .pimg, .cpanel .pimg { max-width: none; flex: none; } .panel.hero .pimg img { border-right: 0; border-bottom: 1px solid var(--border); }
  .dg-h { display: none; } .dg-v { display: block; max-width: 340px; margin: 0 auto; }
  .cb { padding-left: 14px; } .cnt { margin-left: 0; width: 100%; } .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mainlinks { width: 100%; order: 5; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- redesign: calm grid, uniform 16:10 media, one search, eight chips ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.media { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; border-bottom: 1px solid var(--border); }
.media .pic, .media img, .media video { display: block; width: 100%; height: 100%; }
.media img, .media video { object-fit: cover; } .media video { position: absolute; inset: 0; background: #fff; }
.media.none { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-muted); font-size: 13px; }
.panel.hero .pimg { flex: 1 1 52%; max-width: 52%; } .panel.hero .media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-bottom: 0; } .panel.hero .pimg, .cpanel .pimg { min-width: 0; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chiprow .fc { font-size: 15px; padding: 7px 14px; }
.morerow { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.morebtn { font: inherit; font-size: 14.5px; background: none; border: 0; padding: 4px 0; color: var(--info); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { font: inherit; font-size: 14.5px; background: none; border: 0; padding: 4px 0; color: var(--text-dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.morepanel { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); } .morepanel[hidden] { display: none; }
.sfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sf { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--text-dim); } .sf select { font: 15px var(--font-body); padding: 7px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); max-width: 100%; }
.ctlrow { margin-bottom: 8px; } .srch input { width: 100%; font-size: 16px; padding: 10px 12px; }
.psrc { margin: 6px 12px 0; }
.grid { gap: 20px; }
@media (max-width: 760px) { .chiprow .fc { font-size: 14px; padding: 6px 11px; } .sfs { grid-template-columns: minmax(0, 1fr); } .panel.hero .pimg { max-width: none; } }
.gh { grid-column: 1 / -1; margin-top: 14px; border-bottom: 1px solid var(--border-2); padding-bottom: 6px; } .gh h2 { font-size: 21px; } .gh p { margin: 2px 0 0; font-size: 14px; } .gh[hidden] { display: none; }
.badge { position: absolute; left: 8px; top: 8px; font: 600 12px var(--font-mono); background: rgba(255,255,255,.92); color: #101726; padding: 2px 6px; border: 1px solid var(--border-2); }
.act { margin: 8px 0 0; font-size: 14px; } .act a { font-weight: 600; }
.funnel { margin: 10px 0 0; padding: 6px 10px; border-left: 3px solid var(--info); background: var(--info-fill); font-size: 14px; color: var(--text); max-width: none; } .funnel b { font: 600 11.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }

.notice { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-dim); padding: 6px 0; }
.notice[hidden] { display: none; }
.notice p { margin: 0; max-width: none; }

/* light-depth r1: depth, rules and accents, all from the tokens above (dark takes the same rules with flat shadows) */
.top { box-shadow: var(--sh2); position: relative; z-index: 5; border-bottom: 2px solid var(--border-2); border-top: 5px solid var(--info); }
.foot { border-top: 4px solid var(--info); }
.ph { border-bottom: 3px solid var(--info); }
.grp h2 { border-top: 3px solid var(--info); }
.lab, .tile2 .tn, .secnav .n { color: var(--ok); }
.panel, .tile2, pre { box-shadow: var(--sh1); transition: box-shadow .15s, transform .15s; }
.panel:hover, .tile2:hover, .panel:focus-within { box-shadow: var(--sh3); }
.panel:hover, .tile2:hover { transform: translateY(-3px); }
.panel { border-top: 3px solid var(--info); }
.tile2 { border-left: 5px solid var(--info); }
.tile2:hover { background: var(--info-fill); }
.mainlinks a { font-weight: 600; }
.mainlinks a:hover, .mainlinks a[aria-current] { border-bottom: 3px solid var(--info); color: var(--info); }
.chip { background: var(--info-fill); border-color: var(--info); font-weight: 600; }
.chip:hover { background: var(--info); color: var(--on-info); }
.action { background: var(--info); color: var(--on-info); border-color: var(--info); box-shadow: var(--sh1); }
.action:hover { background: #0f3a74; border-color: #0f3a74; }
.secnav summary { border: 1.5px solid var(--info); color: var(--info); font-weight: 600; }
.secnav ol { box-shadow: var(--sh3); }
table th, table td { border-bottom-color: var(--border-2); }
a { text-decoration-thickness: 1.5px; }
@media (prefers-reduced-motion: reduce) { .panel:hover, .tile2:hover { transform: none; } }

/* how it works: picture-led tiles, equal height, one image size and place */
.tiles2.pic { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.tile2.pc { display: flex; flex-direction: column; padding: 0; border-left: 1px solid var(--border-2); border-top: 5px solid var(--info); }
.tile2.pc .ti { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 2px solid var(--border-2); background: var(--surface-2); position: relative; }
.tile2.pc .ti img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tile2.pc .ti .tn { position: absolute; left: 8px; top: 8px; background: var(--info); color: var(--on-info); font: 700 13px var(--font-mono); padding: 2px 8px; margin: 0; }
.tile2.pc .tt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile2.pc b { font: 700 18px/1.2 var(--font-display); margin: 0; }
.tile2.pc:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; }
@media (max-width: 900px) { .tiles2.pic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles2.pic { grid-template-columns: 1fr; } }

/* explainer pages: a brochure. hero, feature diagram, thumbnail row, image-and-text panels */
.bhero { margin: 0 0 28px; }
.bhero .frame { border: 2px solid var(--border-2); box-shadow: var(--sh3); background: var(--surface); }
.bhero video, .bhero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; display: block; background: var(--surface-2); }
.bhero figcaption { padding: 10px 14px; font-size: 14px; color: var(--text-dim); border-top: 2px solid var(--border-2); }
.bhero figcaption b { color: var(--text); }
.feature { background: var(--surface); border: 2px solid var(--border-2); box-shadow: var(--sh2); padding: 18px; margin: 0 0 28px; }
.feature .dg { max-width: 100%; }
.brochure h2 { font-size: 24px; border-top: 3px solid var(--info); padding-top: 10px; margin: 36px 0 14px; }
.thumbs, .seepan { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: stretch; margin: 0 0 18px; padding: 0; list-style: none; }
.thumbs a, .seepan a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border-2); border-top: 3px solid var(--info); box-shadow: var(--sh1); text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.thumbs a:hover, .seepan a:hover { box-shadow: var(--sh3); transform: translateY(-3px); }
.thumbs img, .seepan img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; border-bottom: 2px solid var(--border-2); }
.thumbs .tx, .seepan .tx { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.thumbs b, .seepan b { font: 700 15.5px/1.25 var(--font-display); color: var(--info); }
.thumbs span, .seepan span { font-size: 13.5px; color: var(--text-dim); }
.brochure .prose { font-size: 17.5px; line-height: 1.65; }
.brochure .prose p:first-child { font-size: 20px; line-height: 1.5; }
.relgrid .panel { height: 100%; } .relgrid .pbody { display: flex; flex-direction: column; flex: 1; } .relgrid .pimg img { aspect-ratio: 3 / 2; object-position: top left; }
@media (max-width: 900px) { .grid.relgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .grid.relgrid { grid-template-columns: 1fr; } }

/* home top: the message, the film holder and one next action on the first screen */
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 0 14px; align-items: start; }
.hero2 h1 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.12; max-width: 24ch; margin: 0 0 10px; }
.hero2 .lede { font-size: 17px; margin-bottom: 8px; }
.hero2 .why { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.hero2 .acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hero2 .action.alt { background: var(--surface); color: var(--info); }
.hero2 .action.alt:hover { background: var(--info); color: var(--on-info); }
.hero2 .player { margin: 0; border: 2px solid var(--border-2); box-shadow: var(--sh3); background: var(--surface); }
.hero2 .player video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.hero2 .player figcaption { padding: 8px 12px; font-size: 13.5px; border-top: 2px solid var(--border-2); }
@media (min-width: 1000px) { .hero2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding-top: 28px; } }
@media (max-width: 560px) { .hero2 .lab { margin-bottom: 4px; } .hero2 .lede, .hero2 .why { margin-bottom: 6px; } .hero2 .player figcaption { font-size: 12.5px; } }
@media (max-width: 560px) { .mainlinks { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; } .toprow { gap: 10px; } }
.filt { background: var(--info-fill); border: 2px solid var(--info); padding: 8px 12px; margin: 0 0 12px; max-width: none; }
