/* The CX Operator — design system.
   Precision dark "control room" publication: near-black console surfaces, hairline
   borders, squared radii, Space Grotesk display over an IBM Plex Mono metadata layer.
   Signal green (#22C55E) is a STATUS color — markers, live indicators, selection,
   primary action — never decoration. Motion is fast and crisp: 120–150ms hovers,
   400ms reveals, steps() for the cursor. One canonical file per brand. */

:root {
  color-scheme: dark;

  /* palette — teal-black console + signal green.
     Ground is Amp Chronicle's #091C1E (verified computed body background): a
     deep TEAL-black, not a neutral zinc. This is deliberate — cx-ventures-weekly
     used to sit on a near-identical neutral/warm near-black (#0C0A09) and the two
     sites were indistinguishable at a glance. Ventures has moved to salmon paper;
     operator stays the network's only dark site and takes a ground with an
     unmistakable cool-teal cast so it can never be confused for plain black. */
  --bg: #091C1E;
  --panel: #061417;         /* deepest: hero, header bands, footer, code */
  --surface: #0D2427;       /* raised: list panels, callouts, inputs */
  --surface-2: #123033;     /* hover / selected row */
  --surface-3: #17393D;     /* hover on already-raised */
  --ink: #fafafa;           /* headings              16.9:1 on bg */
  --ink-2: #d4d4d8;         /* body                  12.0:1 on bg */
  --muted: #a1a1aa;         /* secondary text         6.9:1 on bg */
  --faint: #8b8b95;         /* meta text — AA-safe    5.3:1 on bg, 4.6:1 on surface-2 */
  --ghost: #56565e;         /* NON-TEXT only: ticks, disabled strokes */
  --brand: #22c55e;         /* status green           7.8:1 on bg */
  --brand-bright: #4ade80;  /* status green, text    10.2:1 on bg */
  --brand-ink: #052e16;     /* text on green fills    6.5:1 on brand */
  --brand-tint: rgba(34, 197, 94, .1);
  --brand-line: rgba(34, 197, 94, .35);
  /* hairlines derived from the teal ground, per Amp Chronicle's single alpha rule */
  --line: #163336;
  --line-2: #21474B;
  --grid-line: rgba(190, 240, 240, .04);

  /* form */
  --radius: 6px;
  --radius-sm: 4px;
  --maxw: 1120px;

  /* spacing scale — one 4px-based ladder for rhythm & optical alignment */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* motion */
  --snap: .12s linear;                        /* console selection */
  --ease-out: cubic-bezier(.22, .61, .36, 1); /* reveals, no bounce */
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #21474B var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(34, 197, 94, .3); color: #f0fdf4; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* skip link — first tab stop, console-plate style */
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 16px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .15s var(--ease-out);
}
.skip:focus { top: 0; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b3f43; border: 3px solid var(--bg); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #2a5b60; }

/* mono metadata layer */
.kicker, .back, .crumb, .status, .chip, .index-cap, .signup-note,
.briefing-no, .briefing-meta, .meta-strip dt, .meta-strip dd,
.footer-label, .footer-desks, .footer-legal, .nav a, .nav-cta, .signup button {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 20, 23, .78);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid rgba(250, 250, 250, .06);
  transition: background-color .25s ease, border-color .25s ease;
}
.masthead.is-scrolled { background: rgba(6, 20, 23, .94); border-bottom-color: var(--line-2); }
/* console header — brand line on top, nav as a terminal tab-strip beneath */
.masthead-in { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; height: auto; padding-top: 11px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 1rem; color: var(--ink); white-space: nowrap; margin-right: auto; }
.nav {
  order: 5; flex: 1 0 100%; display: flex; gap: 0;
  margin: 11px 0 0; border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-weight: 500; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  padding: 12px 16px; border-right: 1px solid var(--line);
  transition: color var(--snap), background-color var(--snap);
}
.nav a:first-child { border-left: 1px solid var(--line); }
.nav a:hover { color: var(--ink); background: rgba(250, 250, 250, .03); }
.nav a[aria-current="page"] {
  color: var(--ink); background: rgba(250, 250, 250, .04);
  box-shadow: inset 0 2px 0 var(--brand);
}

/* status strip — the one place green glows */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: rgba(250, 250, 250, .02); padding: 5px 11px;
  font-size: .64rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  animation: status-pulse 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}
.nav-cta {
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: background-color var(--snap);
}
.nav-cta:hover { background: var(--brand-bright); }

/* ---------- hero ---------- */
.hero { background: var(--panel); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 72% 88% at 24% -8%, #000 30%, transparent 92%);
  mask-image: radial-gradient(ellipse 72% 88% at 24% -8%, #000 30%, transparent 92%);
}
/* ambient telemetry layer — sits above the static grid, below content (script paints it) */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: var(--sp-7); align-items: center;
  padding: 74px 24px 64px;
}
.hero-copy { min-width: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 500;
  color: var(--muted); margin: 0 0 20px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 1px; flex: none; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 700; color: var(--ink); margin: 0 0 18px; text-wrap: balance;
}
.cursor {
  display: inline-block; width: .46em; height: .74em; margin-left: .13em;
  background: var(--brand); transform: translateY(.03em);
  animation: cursor-blink 1.1s steps(1, end) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero-sub { font-size: 1.12rem; line-height: 1.6; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }

/* hero console exhibit — floor status board (schematic, not live data) */
.hero-console { margin: 0; min-width: 0; }
.console { display: block; width: 100%; height: auto; max-width: 372px; margin-left: auto; }
.console text { font-variant-numeric: tabular-nums; }
.con-frame { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.con-strip { stroke: var(--line); stroke-width: 1; }
.con-axis { stroke: var(--line-2); stroke-width: 1; }
.con-brand { fill: var(--muted); font: 600 9px var(--mono); letter-spacing: .18em; }
.con-label { fill: var(--ink); font: 600 10px var(--mono); letter-spacing: .14em; }
.con-sub { fill: var(--muted); font: 500 8px var(--mono); letter-spacing: .1em; }
.con-illus { fill: var(--faint); font: 600 8px var(--mono); letter-spacing: .2em; }
.con-num { fill: var(--muted); font: 500 8.5px var(--mono); letter-spacing: .02em; }
.con-kpi { fill: var(--ink); font: 600 9px var(--mono); letter-spacing: .12em; }
.con-legend { fill: var(--muted); font: 500 8px var(--mono); letter-spacing: .08em; }
.con-arc { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.con-band { fill: none; stroke: var(--brand-line); stroke-width: 6; stroke-linecap: round; }
.con-tick { stroke: var(--ghost); stroke-width: 1; }
.con-tick-major { stroke: var(--line-2); stroke-width: 1.4; }
.con-needle { stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.con-hub { fill: var(--ink); }
.con-hub-ring { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.con-mark, .con-node-core { fill: var(--brand); }
.con-target { stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; }
.con-node-ring { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.con-trace { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.con-trace-2 { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; stroke-linejoin: round; stroke-linecap: round; }
.console-cap { margin: 14px 0 0; font: 500 .68rem var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.console-cap b { color: var(--muted); font-weight: 600; }

/* signup — shared form component */
.signup { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 210px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .98rem;
  transition: border-color var(--snap), box-shadow var(--snap);
}
.signup input::placeholder { color: var(--faint); }
.signup input:hover { border-color: #45454e; }
.signup input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.signup input:-webkit-autofill,
.signup input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.signup button {
  padding: 12px 20px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  transition: background-color var(--snap);
}
.signup button:hover { background: var(--brand-bright); }
.signup button:active { transform: translateY(1px); }
/* wait / success / error states (script swaps label + toggles disabled) */
.signup button:disabled { cursor: wait; opacity: .78; transform: none; }
.signup button.is-error { background: transparent; color: var(--brand-bright); box-shadow: inset 0 0 0 1px var(--brand-line); }
.signup input:user-invalid { border-color: #f87171; }
.signup-note { margin: 14px 0 0; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* ---------- ops-standards band (expertise signal) — console log lines, not a grid ---------- */
.standards { border-bottom: 1px solid var(--line); background: var(--bg); }
.standards-in { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 8px; }
.std { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; }
.std + .std { border-top: 1px dashed var(--line); }
.std-k {
  display: flex; align-items: center; gap: 9px; margin: 0; flex: 0 0 176px;
  font: 600 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.std-k::before { content: ">"; color: var(--brand); font: 700 .72rem var(--mono); }
.std-v { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: none; }
.std-mark { flex: 0 0 auto; width: 19px; height: 19px; }
.std-mark-line { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.std-mark-check { fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- briefing index (console list) ---------- */
.feed { padding: 52px 24px 24px; }
/* The index is NORMAL FLOW, quantised to the character cell — no grid, no flex,
   no table, no multi-column. The measure is rounded down to a whole number of
   character widths and the gutters are sized in ch, so every column lands on the
   mono grid the way a terminal buffer does. Refs: The Monospace Web (the ch-measure
   and round(down, 100%, 1ch) technique) and Amp Chronicle's date-gutter ledger.
   The bordered panel is gone: raw buffer output has no frame. */
.briefings {
  counter-reset: briefing;
  --lh: 1.65rem;
  max-width: 92ch;
  max-width: calc(round(down, 100%, 1ch));   /* progressive: falls back to 92ch */
  border-top: 1px solid var(--line-2);
}
.index-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 0 0 10px; border-bottom: 1px solid var(--line-2);
}
.index-cap h2 { margin: 0; font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.index-cap span { font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* one entry = one block in normal flow; the index number is a 5ch inline gutter */
.briefing {
  display: block; position: relative;
  padding: var(--lh) 0 var(--lh) 5ch;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--snap), box-shadow var(--snap);
}
.briefing:hover { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--brand); }
.briefing:focus-visible { outline-offset: -2px; }
.briefing-no {
  position: absolute; left: 0; top: var(--lh);
  display: inline-block; width: 5ch;
  font-size: .74rem; font-weight: 500; color: var(--faint);
}
.briefing-no::before { counter-increment: briefing; content: counter(briefing, decimal-leading-zero); }
.briefing-main { min-width: 0; }
/* the owl rule, per The Monospace Web: rhythm comes from one line-height token */
.briefing-main > * + * { margin-top: calc(var(--lh) / 2); }
.briefing-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.chip {
  display: inline-block; font-size: .6rem; font-weight: 500; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 2px 7px;
}
.chip-live { color: var(--brand-bright); border-color: var(--brand-line); background: var(--brand-tint); }
.briefing-title { margin: 0; font-size: 1.13rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.briefing-summary {
  margin: 7px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 68ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* meta reads as a trailing log field, inline on the mono grid — not a right column */
.briefing-meta {
  display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint);
}
.briefing-meta span { display: inline-block; }
.briefing-meta span + span::before { content: "·"; margin: 0 .8ch; color: var(--line-2); }

/* featured (first) briefing — taller, elevated */
.briefing-feature { padding-top: 30px; padding-bottom: 32px; background: linear-gradient(180deg, rgba(250, 250, 250, .015), transparent); }
.briefing-feature .briefing-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; line-height: 1.16; max-width: 26ch; }
.briefing-feature .briefing-summary { -webkit-line-clamp: unset; display: block; font-size: 1.02rem; margin-top: 10px; max-width: 62ch; }
.briefing-feature:hover { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--brand); }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress-line { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

.article-band { background: var(--panel); border-bottom: 1px solid var(--line); }
.article-head { padding: 38px 24px 36px; }
.back { display: inline-block; font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 12px 0; margin: -12px 0; transition: color var(--snap); }
.back:hover { color: var(--brand-bright); }
.article-head h1 {
  color: var(--ink); font-size: clamp(1.9rem, 4.4vw, 2.75rem); line-height: 1.08;
  letter-spacing: -.03em; margin: 22px 0 14px; max-width: 26ch; text-wrap: balance;
}
.lede { font-size: 1.16rem; line-height: 1.6; color: var(--muted); max-width: 64ch; margin: 0; }

.meta-strip { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 30px 0 0; }
.meta-strip > div { padding: 2px 28px 2px 0; }
.meta-strip > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.meta-strip dt { margin: 0 0 5px; font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.meta-strip dd { margin: 0; font-size: .78rem; font-weight: 500; color: var(--ink-2); }

/* prose */
/* runbook column — a hairline ops rail runs down the left of the whole procedure */
.article .prose {
  border-left: 1px solid var(--line-2);
  padding-left: clamp(20px, 3.4vw, 36px);
  counter-reset: sec;
}
.prose { max-width: 720px; padding-top: 38px; font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); }
.prose > p:first-of-type:first-child { font-size: 1.17rem; color: var(--ink-2); }
.prose p { margin: 0 0 19px; text-wrap: pretty; }
.prose h2 {
  color: var(--ink); font-size: 1.42rem; letter-spacing: -.02em; line-height: 1.25;
  margin: 46px 0 14px; display: flex; align-items: baseline; gap: 12px; text-wrap: balance;
  counter-increment: sec;
}
/* numbered step plate, terminal register */
.prose h2::before {
  content: "S" counter(sec, decimal-leading-zero); flex: 0 0 auto; align-self: flex-start;
  font: 600 .66rem var(--mono); letter-spacing: .12em; color: var(--brand);
  border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 4px 7px 3px; border-radius: var(--radius-sm); margin-top: .3em;
  font-variant-numeric: tabular-nums;
}
.prose h3 { color: var(--ink); font-size: 1.16rem; letter-spacing: -.01em; margin: 32px 0 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--brand-line); text-underline-offset: 3px;
  transition: color var(--snap), text-decoration-color var(--snap);
}
.prose a:visited { color: var(--ink-2); text-decoration-color: var(--brand-line); } /* legible on dark — no browser purple */
.prose a:hover, .prose a:visited:hover { color: var(--brand-bright); text-decoration-color: var(--brand-bright); }
/* external references get a mono departure mark (added by the article enhancer) */
.prose a[data-ext]::after { content: "\2197"; font-family: var(--mono); font-size: .72em; margin-left: .28em; color: var(--faint); }
.prose a[data-ext]:hover::after { color: var(--brand-bright); }

/* checklists: hollow green squares; steps: mono index plates */
.prose ul, .prose ol { margin: 0 0 20px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 27px; margin: 10px 0; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border: 1.5px solid var(--brand); border-radius: 1px; }
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 50px; margin: 14px 0; min-height: 26px; }
.prose ol li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .12em; width: 34px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .72rem var(--mono); font-variant-numeric: tabular-nums;
  color: var(--brand-bright); background: var(--brand-tint);
  border: 1px solid var(--brand-line); border-radius: var(--radius-sm);
}

/* runbook callout */
.prose blockquote {
  margin: 26px 0; padding: 16px 20px 15px;
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--brand);
  border-radius: var(--radius-sm); color: var(--ink-2);
}
.prose blockquote::before {
  content: "Operator note"; display: block; margin: 0 0 8px;
  font: 500 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.prose blockquote p { margin: 0; font-size: 1.02rem; }
.prose blockquote p + p { margin-top: 10px; }

.prose code { font-family: var(--mono); font-size: .84em; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: var(--radius-sm); }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.6; margin: 0 0 20px; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 1em; }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); margin: 26px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }

/* data tables — mono heads, tabular figures, console row hover */
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: .95rem; line-height: 1.5; }
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 560px; }
.prose th {
  text-align: left; padding: 11px 16px; background: var(--panel);
  font: 600 .66rem var(--mono); font-variant-numeric: tabular-nums;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.prose td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background-color var(--snap); }
.prose tbody tr:hover { background: var(--surface-2); }
/* no-JS fallback: an unwrapped wide table still scrolls itself */
.prose > table { display: block; overflow-x: auto; }
.prose .table-wrap > table { display: table; }

/* key-takeaways — green-ruled ops-summary panel (tagged by the article enhancer) */
.takeaways {
  margin: 26px 0 30px; padding: 18px 22px 8px;
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--brand);
  border-radius: var(--radius-sm);
}
.takeaways-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 600 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.takeaways-head::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 1px; flex: none; }
.prose .takeaways ul { margin-bottom: 12px; }
.prose .takeaways li { font-size: .98rem; margin: 9px 0; }

/* FAQ — runbook Q&A register (tagged by the article enhancer) */
.faq-head {
  display: flex; align-items: center; gap: 10px; margin: 46px 0 16px;
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 1.4;
}
.prose h2.faq-head, .prose h3.faq-head {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; margin: 46px 0 16px;
}
.prose h2.faq-head::before, .prose h3.faq-head::before {
  content: ""; width: 8px; height: 8px; margin: 0; align-self: center;
  border: 0; background: var(--brand); padding: 0; border-radius: 1px;
}
.faq-head::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 1px; flex: none; }
.faq-head::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 40px; }
.faq { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.prose .faq-item { margin: 0; padding: 15px 18px 16px; font-size: 1rem; line-height: 1.62; }
.faq .faq-item + .faq-item { border-top: 1px solid var(--line); }
.prose .faq-item > strong {
  display: flex; gap: 10px; align-items: baseline;
  margin: 0 0 7px; color: var(--ink); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em;
}
.prose .faq-item > strong::before {
  content: "Q"; flex: none;
  font: 600 .64rem var(--mono); letter-spacing: .08em; color: var(--brand-bright);
  background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--radius-sm);
  padding: 2px 7px; transform: translateY(-1px);
}

/* ---------- static pages: ops documentation ---------- */
.crumb { display: flex; gap: 10px; align-items: baseline; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.crumb a { color: var(--faint); transition: color var(--snap); }
.crumb a:hover { color: var(--brand-bright); }
.crumb [aria-current] { color: var(--ink-2); }
.page .article-head h1 { margin-top: 20px; }

.prose-doc h2 {
  display: flex; align-items: center; gap: 10px; margin: 44px 0 16px;
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 1.4;
}
.prose-doc h2::before { content: ""; width: 8px; height: 8px; margin: 0; border-radius: 1px; background: var(--brand); align-self: center; flex: none; }
.prose-doc h2::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 40px; }
.prose-doc > h2:first-child { margin-top: 6px; }
.prose-doc > p:first-of-type:first-child { font-size: 1.1rem; }

/* newsletter page signup panel (shown via .page-newsletter only) */
.page-signup { display: none; }
.page-newsletter .page-signup { display: block; max-width: 720px; padding-top: 8px; }
.signup-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px 24px 26px; }
.signup-panel-head { font: 600 .7rem var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.signup-panel-head::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 1px; }
.signup-panel-sub { margin: 10px 0 18px; color: var(--muted); font-size: .98rem; }

/* ---------- related ---------- */
.related { padding: 54px 24px 8px; }

/* ---------- footer ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 76px; }
.footer-in { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px; padding: 46px 24px 0; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-name { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.footer-tag { color: var(--faint); font-size: .86rem; margin-top: 3px; max-width: 34ch; }
.footer-label { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer-col a { display: block; width: fit-content; color: var(--muted); font-size: .92rem; padding: 9px 0; margin: -2px 0; transition: color var(--snap); }
.footer-col a:hover { color: var(--ink); }
.footer-col a[aria-current="page"] { color: var(--ink); }
.footer-desks { display: flex; flex-direction: column; gap: 6px; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 26px;
  font-size: .68rem; letter-spacing: .04em; color: var(--faint);
}

/* ---------- motion ---------- */
/* one-time load choreography: hero copy + article/page headers */
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .article-head > * { animation: rise-in .45s var(--ease-out) backwards; }
.hero-copy > :nth-child(1), .article-head > :nth-child(1) { animation-delay: .04s; }
.hero-copy > :nth-child(2), .article-head > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3), .article-head > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4), .article-head > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5), .article-head > :nth-child(5) { animation-delay: .28s; }
.hero-console { animation: rise-in .5s var(--ease-out) .2s backwards; }

/* scroll reveals (JS adds .is-in; hidden state only when JS is present) */
.has-js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .article-head > *, .hero-console { animation: none; }
  .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .masthead, .briefing, .nav a, .back, .prose a, .footer-col a, .signup input, .signup button, .nav-cta, .crumb a { transition: none; }
  /* status pulse + cursor blink persist deliberately: discrete steps, no motion path.
     .hero-fx canvas paints a single static frame (no rAF) — handled in the page script. */
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-console { order: 2; }
  .console { margin: 0 auto; max-width: 440px; }
  .std { flex-direction: column; gap: 6px; padding: 15px 0; }
  .std-k { flex: none; }
  .meta-strip { grid-template-columns: repeat(2, auto); gap: 18px 0; }
  .meta-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .masthead-in { gap: 12px; padding-top: 10px; }
  .nav { margin-top: 10px; }
  .nav a { padding: 11px 13px; }
  .status { margin-left: auto; }
  .hero-in { padding: 54px 20px 46px; }
  .hero-sub { font-size: 1.04rem; }
  .feed { padding: 40px 16px 12px; }
  .wrap { padding: 0 16px; }
  .briefing { padding-left: 4ch; }
  .briefing-summary { -webkit-line-clamp: 3; }
  .article-head { padding: 30px 16px 30px; }
  .prose { padding-top: 30px; font-size: 1.05rem; }
  .prose ol li { padding-left: 44px; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose .faq-item { padding: 14px 14px 15px; }
  .takeaways { padding: 16px 16px 6px; }
  .related { padding: 44px 16px 8px; }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 38px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: 6px; margin-top: 30px; }
}
@media (max-width: 480px) {
  .status span { display: none; }
  .status { padding: 5px 7px; gap: 0; }
  .console { max-width: 100%; }
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .meta-strip > div { padding-right: 16px; }
  .meta-strip > div + div { padding-left: 16px; }
  .meta-strip > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ── article images (hero + card thumbs) ─────────────────────────────── */
/* Console output carries no art in the index: only 5 of 22 briefings have an image,
   so a picture floating mid-row read as accidental. The lead briefing keeps its board. */
.briefing:not(.briefing-feature) .briefing-thumb { display: none; }
.briefing-thumb { display:block; width:216px; height:108px; object-fit:cover; border:1px solid var(--line, #26262b); margin:8px 0 10px; }
.briefing-feature .briefing-thumb { width:100%; height:190px; }
.post-hero { margin:18px auto 26px; }
.post-hero img { display:block; width:100%; aspect-ratio:2/1; object-fit:cover; border:1px solid var(--line, #26262b); }
@media (max-width:640px){ .briefing-thumb{ width:100%; height:96px; } .briefing-feature .briefing-thumb{ height:130px; } }
