/* Sample story pages (markham-aviation.html): night data cards, charts drawn by js/story.js. Charts sit on
   the night surface in both themes, so their colours are fixed night tokens. */

.st { --c-bg: #232321; --c-p1: #2a2a27; --c-p2: #32322f; --c-ln: rgba(238, 235, 228, 0.12); --c-grid: rgba(238, 235, 228, 0.08);
  --c-tx: #eeebe4; --c-tx2: #a8a59e; --c-tx3: #7d7a73; --c-tp: #ff6a4d; --c-tpw: rgba(255, 106, 77, 0.16); --c-gn: #6cc08e; --c-gnw: rgba(108, 192, 142, 0.16);
  --c-grey: #5a5853; --c-part: #e9c46a; }

/* ---------- Hero ---------- */
.st-hero { padding: 150px 0 110px; margin-top: -92px; overflow: hidden; position: relative; }
.st-hero .wrap { position: relative; }
.st-hero__title { max-width: 13em; }
.st-hero__lede { margin-top: 26px; max-width: 40em; }
.st-hero__lede b { color: var(--n-ink); font-weight: 500; }
.st-hero__map { margin-top: 56px; }

.st-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--n-rule); }
.st-facts > div { padding: 22px 20px 4px 0; display: grid; gap: 4px; }
.st-facts > div + div { padding-left: 20px; border-left: 1px solid var(--n-rule); }
.st-facts dt { font-size: 13px; color: var(--n-soft); font-weight: 500; }
.st-facts dd { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; color: var(--n-ink); }
.st-facts small { font-size: 13px; color: var(--n-faint); }

/* ---------- Section heads ---------- */
.st-head { display: grid; gap: 18px; max-width: 52em; margin-bottom: 44px; }
.st-step { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--tape); }
.night .st-step { color: var(--n-tape); }
.st-band { margin-top: var(--sec); padding: 120px 0; }
.st-note { margin-top: 12px; font-size: 13px; color: var(--n-faint); }

/* ---------- Cards ---------- */
.st-card { margin: 0; border-radius: 14px; background: var(--c-bg); color: var(--c-tx); box-shadow: 0 0 0 1px var(--c-ln), var(--shadow-device); overflow: hidden; min-width: 0; }
.night .st-card { box-shadow: 0 0 0 1px var(--c-ln); background: #1f1f1d; }
.st-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--c-ln); font-size: 13px; }
.st-card__head b { font-weight: 600; }
.st-card__r { margin-left: auto; font-size: 12px; color: var(--c-tx3); }
.st-card__head b + .st-card__r { margin-left: auto; }
.st-card__body { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.st-card__body svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.st-card__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 11px 18px 13px; border-top: 1px solid var(--c-ln); font-size: 12px; color: var(--c-tx2); }
.st-card__foot span { display: inline-flex; align-items: center; gap: 7px; }
.st-chip { font-size: 11.5px; font-weight: 600; color: var(--c-gn); background: var(--c-gnw); border-radius: 4px; padding: 2px 9px; }
.st-chip--model { color: #e9c46a; background: rgba(233, 196, 106, 0.14); }
.st-k { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: var(--c-tx2); }
.st-k--line { height: 2px; border-radius: 1px; background: var(--c-tx); }
.st-k--dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-tx); }
.st-k--warn { background: var(--c-tp); }
.st-k--go { background: var(--c-gn); }
.st-k--grey { background: var(--c-grey); }
.st-k--part { background: var(--c-part); }
.st-k--fix { background: repeating-linear-gradient(135deg, rgba(255, 106, 77, 0.5) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px rgba(255, 106, 77, 0.5); }
.st-k--rule { height: 0; border-top: 1.5px solid var(--c-tx3); border-radius: 0; }

/* SVG parts shared by every chart */
.st svg text { fill: var(--c-tx2); font-size: 11px; }
.st svg .t-strong { fill: var(--c-tx); font-weight: 600; font-size: 12px; }
.st svg .t-faint { fill: var(--c-tx3); }
.st svg .t-warn { fill: var(--c-tp); font-weight: 600; }
.st svg .t-go { fill: var(--c-gn); font-weight: 600; }
.st svg .t-halo { paint-order: stroke; stroke: #1f1f1d; stroke-width: 5px; stroke-linejoin: round; }
.st svg .grid { stroke: var(--c-grid); stroke-width: 1; }
.st svg .axis { stroke: var(--c-ln); stroke-width: 1; }
.st svg [data-tip] { cursor: default; outline: none; }
.st svg [data-tip]:focus-visible { outline: 2px solid var(--c-tp); }

/* ---------- Map ---------- */
.st-map svg { min-width: 640px; }
.st-map .grat { stroke: rgba(238, 235, 228, 0.06); stroke-width: 1; }
.st-map .route { fill: none; stroke: rgba(238, 235, 228, 0.32); stroke-linecap: round; transition: stroke 0.25s, opacity 0.25s; }
.st-map .route.is-dim { opacity: 0.25; }
.st-map .route.is-hi { stroke: var(--c-tx); }
.st-map .pk { fill: var(--c-tx); }
.st-map .stn { fill: var(--c-bg); stroke: var(--c-tx); stroke-width: 1.6; }
.st-map .stn--base { fill: var(--c-tx); }
.st-map .ac { fill: var(--c-tx2); stroke: var(--c-bg); stroke-width: 2; }
.st-map .ac--aog { fill: var(--c-tp); }
.st-map .lbl { fill: var(--c-tx); font-size: 12px; font-weight: 600; }
.st-map .lbl-s { fill: var(--c-tx3); font-size: 10.5px; }
.st-map .aog-tag rect { fill: var(--c-tpw); stroke: rgba(255, 106, 77, 0.5); }
.st-map .aog-tag text { fill: var(--c-tp); font-weight: 600; font-size: 11px; }

/* ---------- Systems inventory ---------- */
.st-sys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.st-sys__i { border-radius: 12px; background: var(--sheet); padding: 16px 16px 14px; display: grid; gap: 10px; align-content: start; }
.st-sys__i b { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.st-sys__i .n { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.st-sys__i .n small { font-size: 12.5px; color: var(--soft); letter-spacing: 0; margin-left: 4px; font-weight: 400; }
.st-sys__bar { height: 4px; border-radius: 2px; background: var(--well); overflow: hidden; }
.st-sys__bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; width: 0; transition: width 1.2s var(--out); }
.st-sys.is-in .st-sys__bar i { width: var(--w); }
.st-sys__t { display: flex; flex-wrap: wrap; gap: 4px; }
.st-sys__t span { font: 11px "SF Mono", Menlo, Consolas, monospace; color: var(--soft); background: var(--paper); border-radius: 4px; padding: 2px 5px; }

.st-grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.st-grid2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.st-side { display: grid; gap: 10px; align-content: center; }
.st-big { font-size: clamp(56px, 7vw, 96px); line-height: 0.95; font-weight: 500; letter-spacing: -0.055em; }
.st-big span:first-child { color: var(--tape); }
.st-side__t { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.st-side__p { font-size: 16px; color: var(--soft); max-width: 30em; }

/* ---------- Flow and graph ---------- */
.st-flow svg { min-width: 760px; }
.st-flow .band { fill: rgba(238, 235, 228, 0.13); transition: fill 0.25s, opacity 0.25s; }
.st-flow .band.is-hi { fill: rgba(108, 192, 142, 0.42); }
.st-flow .band.is-dim { opacity: 0.35; }
.st-flow .node { fill: var(--c-tx); }
.st-flow .node--p { fill: var(--c-gn); }
.st-flow .node--m { fill: var(--c-tp); }
.js .st-flow .band { opacity: 0; transition: opacity 0.9s var(--out) calc(var(--i, 0) * 25ms), fill 0.25s; }
.js [data-st="flow"].is-in .st-flow .band { opacity: 1; }
.js [data-st="flow"].is-in .st-flow .band.is-dim { opacity: 0.35; }

.st-weeks { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--n-rule); counter-reset: w; }
.st-weeks li { padding: 18px 18px 0 0; display: grid; gap: 6px; align-content: start; position: relative; }
.st-weeks li + li { padding-left: 18px; border-left: 1px solid var(--n-rule); }
.st-weeks li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--n-go); }
.st-weeks li + li::before { left: -4px; }
.st-weeks b { font-size: 15px; font-weight: 600; }
.st-weeks span { font-size: 14px; color: var(--n-soft); }

.st-band .st-card + .st-card, .st-band .st-note + .st-card { margin-top: 56px; }
.st-graph svg { min-width: 680px; }
.st-graph .edge { stroke: rgba(238, 235, 228, 0.16); stroke-width: 1.2; fill: none; transition: stroke 0.2s, opacity 0.2s; }
.st-graph .gnode rect { fill: #2b2d29; stroke: rgba(108, 192, 142, 0.5); stroke-width: 1.2; transition: stroke 0.2s, fill 0.2s; }
.st-graph .gnode:hover rect, .st-graph .gnode:focus-visible rect { fill: #313530; }
.st-graph .gnode.is-marked rect { stroke: rgba(255, 106, 77, 0.7); fill: #322d29; }
.st-graph .gnode text { fill: var(--c-tx); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.st-graph .gnode .n { fill: var(--c-tx3); font-size: 11.5px; font-weight: 400; }
.st-graph .gnode { cursor: default; }
.st-graph svg.is-tracing .edge:not(.on) { opacity: 0.12; }
.st-graph svg.is-tracing .edge.on { stroke: var(--c-gn); stroke-width: 1.6; }
.st-graph svg.is-tracing .gnode:not(.on) { opacity: 0.3; }
.js .st-graph .gnode { opacity: 0; transition: opacity 0.7s var(--out) calc(var(--i, 0) * 40ms); }
.js [data-st="graph"].is-in .st-graph .gnode { opacity: 1; }
.js [data-st="graph"].is-in .st-graph svg.is-tracing .gnode:not(.on) { opacity: 0.3; }
.js .st-graph .edge { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--out) calc(var(--i, 0) * 18ms + 300ms), stroke 0.2s, opacity 0.2s; }
.js [data-st="graph"].is-in .st-graph .edge { stroke-dashoffset: 0; }

/* ---------- The morning ---------- */
.st-feed { list-style: none; display: grid; gap: 0; margin-bottom: 28px; border-top: 1px solid var(--rule); }
.st-feed li { display: grid; grid-template-columns: 70px minmax(0, 15em) minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.st-feed time { font: 500 14px "SF Mono", Menlo, Consolas, monospace; color: var(--soft); }
.st-feed b { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.st-feed span { font-size: 15px; color: var(--soft); }
.st-feed li.is-hi time, .st-feed li.is-hi b { color: var(--tape); }
.st-gantt svg { min-width: 820px; }
.st-gantt .row-bg { fill: rgba(238, 235, 228, 0.03); }
.st-gantt .fl { rx: 4; }
.st-gantt .fl--old { fill: none; stroke: rgba(238, 235, 228, 0.3); stroke-width: 1.2; stroke-dasharray: 3 3; }
.st-gantt .fl--go { fill: var(--c-gn); }
.st-gantt .fl--warn { fill: var(--c-tp); }
.st-gantt .fl--part { fill: var(--c-part); }
.st-gantt .fl--fix { fill: url(#st-hatch); stroke: rgba(255, 106, 77, 0.6); stroke-width: 1; }
.st-gantt .fl--aog { fill: rgba(255, 106, 77, 0.08); }
.st-gantt .fl-t { fill: var(--c-bg); font-size: 10.5px; font-weight: 600; pointer-events: none; }
.st-gantt .fl-t--l { fill: var(--c-tx); }
.st-gantt .ev { stroke: var(--c-tx3); stroke-width: 1; }
.st-gantt .ev--hi { stroke: var(--c-tp); stroke-width: 1.4; }
.st-gantt .swap { fill: none; stroke: var(--c-gn); stroke-width: 1.3; stroke-dasharray: 2 3; }
.js .st-gantt .anim { opacity: 0; transform: translateX(-10px); transform-box: fill-box; transition: opacity 0.6s var(--out) calc(var(--i, 0) * 90ms + 200ms), transform 0.8s var(--out) calc(var(--i, 0) * 90ms + 200ms); }
.js [data-st="gantt"].is-in .st-gantt .anim { opacity: 1; transform: none; }

.st-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; }
.st-stats > div { display: grid; gap: 6px; align-content: start; padding: 18px 20px 0 0; border-top: 2px solid var(--ink); }
.st-stats > div + div { margin-left: 20px; }
.st-stats b { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.st-stats span { font-size: 14.5px; color: var(--soft); max-width: 18em; }

/* ---------- Deferrals ---------- */
.st-chart svg { min-width: 460px; }
.st-chart--wide svg { min-width: 720px; }
.st-chart .bar { fill: var(--c-grey); }
.st-chart .bar--warn { fill: var(--c-tp); }
.st-chart .bar--go { fill: var(--c-gn); }
.st-chart .lol { stroke: var(--c-grey); stroke-width: 2; stroke-linecap: round; }
.st-chart .lol--warn { stroke: var(--c-tp); }
.st-chart .dot { fill: var(--c-tx2); stroke: var(--c-bg); stroke-width: 2; }
.st-chart .dot--warn { fill: var(--c-tp); }
.st-chart .thr { stroke: var(--c-tx3); stroke-width: 1.5; }
.st-chart .trend { fill: none; stroke: var(--c-tx); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-chart .trend-area { fill: rgba(108, 192, 142, 0.07); }
.st-chart .golive { stroke: var(--c-gn); stroke-width: 1.4; }
.st-chart .xh { stroke: var(--c-tx2); stroke-width: 1; }
.st-chart .xh-dot { fill: var(--c-tx); stroke: var(--c-bg); stroke-width: 2; }
.js .st-chart .grow { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform 1s var(--out) calc(var(--i, 0) * 70ms + 150ms); }
.js .st-chart .rise-y { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; transition: transform 0.9s var(--out) calc(var(--i, 0) * 45ms + 150ms); }
.js .is-in .st-chart .grow, .js .is-in .st-chart .rise-y { transform: none; }
.js .st-chart .trend { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--out) 0.2s; }
.js .is-in .st-chart .trend { stroke-dashoffset: 0; }
.st-callout { margin-top: 28px; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.02em; max-width: 36em; color: var(--soft); }
.st-callout b { color: var(--ink); font-weight: 500; }

/* ---------- Results ---------- */
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.st-tile { border-radius: 14px; background: #1f1f1d; box-shadow: 0 0 0 1px var(--c-ln); padding: 18px 18px 20px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.st-tile b { font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -0.05em; color: var(--n-ink); }
.st-tile > span:last-child { font-size: 14px; color: var(--n-soft); }

/* ---------- What they can do ---------- */
.st-can { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-can__i { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 14px 14px 16px; border-radius: 14px; background: var(--sheet); color: var(--ink); transition: background 0.25s, transform 0.35s var(--out); }
.st-can__i:hover { background: var(--well); }
.st-can__i > b { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-top: 6px; }
.st-can__i > span { font-size: 14px; color: var(--soft); }
.st-can__i > em { font-style: normal; justify-self: start; font-size: 11.5px; font-weight: 600; color: var(--go); background: var(--go-wash); border-radius: 4px; padding: 2px 9px; margin-top: 4px; }
.st-can__art { height: 128px; border-radius: 10px; background: #232321; color: #eeebe4; padding: 14px; display: grid; align-content: center; gap: 6px; font-size: 12px; overflow: hidden; }
.st-can__art--diff span { font: 12px "SF Mono", Menlo, Consolas, monospace; }
.st-can__art .d-m { color: #ff8f73; }
.st-can__art .d-p { color: #6cc08e; }
.st-can__art .d-c { color: #a8a59e; font-family: var(--font) !important; margin-top: 4px; }
.st-can__art--kpi small, .st-can__art--eval span, .st-can__art--eval small { color: #a8a59e; }
.st-can__art--kpi strong, .st-can__art--eval strong { font-size: 38px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.st-can__art--kpi i { font-style: normal; justify-self: start; font-size: 11px; font-weight: 600; color: #6cc08e; background: rgba(108, 192, 142, 0.16); border-radius: 4px; padding: 2px 8px; }
.st-can__art--share span, .st-can__art--access span, .st-can__art--drop span { display: flex; align-items: center; gap: 8px; color: #eeebe4; }
.st-can__art--share i { width: 7px; height: 7px; border-radius: 50%; background: #6cc08e; flex: none; }
.st-can__art--share .off i { background: #ff6a4d; }
.st-can__art .off { color: #7d7a73 !important; }
.st-can__art .ok { color: #6cc08e !important; }
.st-can__art--access span::before, .st-can__art--drop span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #7d7a73; flex: none; }
.st-can__art--model svg { width: 100%; height: 76px; }
.st-can__art--model .ax { stroke: rgba(238, 235, 228, 0.2); fill: none; }
.st-can__art--model .diag { stroke: rgba(238, 235, 228, 0.2); stroke-dasharray: 3 3; fill: none; }
.st-can__art--model .roc { stroke: #6cc08e; stroke-width: 2; fill: none; }
.st-can__art--model small { color: #a8a59e; }
.st-can__art--code code { font: 12px/1.55 "SF Mono", Menlo, Consolas, monospace; color: #eeebe4; background: none; padding: 0; border-radius: 0; white-space: pre; }
.st-can__art--code i { font-style: normal; color: #6cc08e; }
.st-can__art--code s { text-decoration: none; color: #e9c46a; }

.st-fine { margin-top: 72px; }
.st-fine p { font-size: 14px; color: var(--soft); max-width: 60em; padding-top: 18px; border-top: 1px solid var(--rule); }
.st-fine b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* ---------- Tooltip and data tables ---------- */
.st-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 260px; padding: 9px 11px; border-radius: 9px; background: #121211; color: #eeebe4; font-size: 12.5px; line-height: 1.4; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(238, 235, 228, 0.12); opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; }
.st-tip.is-on { opacity: 1; transform: none; }
.st-tip b { display: block; font-weight: 600; margin-bottom: 2px; }
.st-tip span { color: #a8a59e; }
.st-data { border-top: 1px solid var(--c-ln); font-size: 12.5px; color: var(--c-tx2); }
.st-data summary { cursor: pointer; padding: 10px 18px; list-style: none; }
.st-data summary::-webkit-details-marker { display: none; }
.st-data summary::before { content: "+ "; }
.st-data[open] summary::before { content: "− "; }
.st-data .tw { overflow-x: auto; padding: 0 18px 14px; }
.st-data table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.st-data th, .st-data td { text-align: left; padding: 5px 12px 5px 0; border-bottom: 1px solid var(--c-ln); white-space: nowrap; }
.st-data th { color: var(--c-tx3); font-weight: 600; }
.st-data td { color: var(--c-tx); }

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

/* ---------- Narrow screens ---------- */
@media (max-width: 1040px) {
  .st-sys, .st-can, .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid2, .st-grid2--even { grid-template-columns: minmax(0, 1fr); }
  .st-weeks { grid-template-columns: minmax(0, 1fr); }
  .st-weeks li, .st-weeks li + li { padding: 14px 0 14px 22px; border-left: 1px solid var(--n-rule); }
  .st-weeks li::before, .st-weeks li + li::before { top: 20px; left: -4px; }
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .st-stats > div + div { margin-left: 0; }
}
@media (max-width: 720px) {
  .st-hero { padding: 120px 0 72px; }
  .st-hero__map { margin-top: 36px; }
  .st-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .st-facts > div:nth-child(n+3) { border-top: 1px solid var(--n-rule); }
  .st-band { padding: 88px 0; }
  .st-sys { grid-template-columns: minmax(0, 1fr); }
  .st-can, .st-tiles { grid-template-columns: minmax(0, 1fr); }
  .st-feed li { grid-template-columns: 56px minmax(0, 1fr); }
  .st-feed li span { grid-column: 2; }
  .st-card__head, .st-card__foot { padding-left: 14px; padding-right: 14px; }
  .st-card__r { display: none; }
}

/* Section heads with a drawing beside them */
.st-head--art { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.st-head__text { display: grid; gap: 18px; align-content: center; }
.st-art { width: 100%; height: auto; }
.st-art--night { filter: invert(0.9) hue-rotate(180deg); }
@media (max-width: 1000px) {
  .st-head--art { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .st-art { max-width: 560px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-art:not(.st-art--night) { filter: invert(0.9) hue-rotate(180deg); } }
:root[data-theme="dark"] .st-art:not(.st-art--night) { filter: invert(0.9) hue-rotate(180deg); }

/* Basemap under the route map */
.st-map .land { fill: rgba(238, 235, 228, 0.055); stroke: rgba(238, 235, 228, 0.26); stroke-width: 0.8; stroke-linejoin: round; }
.st-map .lake { fill: var(--c-bg); stroke: rgba(238, 235, 228, 0.16); stroke-width: 0.6; }
.st-map .border { fill: none; stroke: rgba(238, 235, 228, 0.16); stroke-width: 0.8; stroke-dasharray: 3 3; }
.st-map .place { fill: rgba(238, 235, 228, 0.32); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.st-map .place--water { fill: rgba(238, 235, 228, 0.22); font-style: italic; font-weight: 400; letter-spacing: 0.03em; }
.st-map .grat { stroke: rgba(238, 235, 228, 0.035); }

/* Markham Aviation's own identity: the logo and Markham Display */
@font-face { font-family: "Markham Display"; src: url("../fonts/markham-display.woff2") format("woff2"); font-display: swap; }
.mk-logo { display: block; width: auto; height: 64px; color: var(--n-ink); margin-bottom: 36px; }
.mk-logo--feature { height: 56px; margin-bottom: 4px; }
.st-map .lbl { font-family: "Markham Display", var(--font); letter-spacing: 0.07em; font-weight: 400; }
.st-map .aog-tag text { font-family: "Markham Display", var(--font); letter-spacing: 0.06em; }
@media (max-width: 720px) { .mk-logo { height: 46px; margin-bottom: 26px; } .mk-logo--feature { height: 42px; } }
/* The hero: text on the left, the three-view drawing on the right */
.st-hero__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.st-hero__art { width: 100%; height: auto; }
@media (max-width: 1000px) { .st-hero__top { grid-template-columns: minmax(0, 1fr); gap: 28px; } .st-hero__art { max-width: 520px; } }

/* ---------- The simulation: data inventory and what ran on it ---------- */
.st-sub { margin-top: 72px; margin-bottom: 20px; font-size: 21px; line-height: 1.15; font-weight: 500; letter-spacing: -0.025em; }
.st-inv { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.st-inv > div { border-radius: 12px; background: var(--sheet); padding: 16px 16px 18px; display: grid; gap: 4px; align-content: start; }
.st-inv b { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.st-inv > div > span { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.st-inv ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 5px; font-size: 14px; font-variant-numeric: tabular-nums; }
.st-ran { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--rule); }
.st-ran > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.st-ran dt { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.st-ran dd { font-size: 15px; color: var(--soft); }
@media (max-width: 1040px) {
  .st-inv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-ran { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .st-inv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-ran > div { grid-template-columns: minmax(0, 1fr); }
  .st-sub { margin-top: 56px; }
}
@media (max-width: 420px) { .st-inv { grid-template-columns: minmax(0, 1fr); } }
