/*
  forge.css: SAMPLE THE FORGE, round 2 - THE INTERACTIVE WALKTHROUGH. Loaded after ../home.css; every rule is scoped under
  body.page-forge. Direction B's grammar (../b/b.css), kept from round 1 rect for rect:
    nav     the home page's markup on its own 1680 column (--nav-column, STANDING for every rebuild page)
    HERO    two columns inside the 1440 column, split 45 / 55
              LEFT   b.css's three-row grid (1fr / auto / 1fr): the eyebrow at the end of row 1, THE WALKTHROUGH in row 2
                     (centred on the ring's centre), the Doctrine line at the floor of row 3; the column is THE BLOCK,
                     --block-w wide (forge.js, b.js's rule)
              RIGHT  the Forge's badge, as large as one screen allows, and the status strip held under it (in round 1's
                     Replay row: the same reservation, so the fit and B's centring rules are unchanged)
  THE WALKTHROUGH: four steps stacked in one grid cell (the panel is the tallest step's height from the first frame);
  ‹ hangs in the gutter left of the text (so the text keeps the eyebrow's edge), › sits in a lane at the column's right.
  THE SETTINGS ROW (.fs): the Forge's own settings.css rules, copied value for value and scoped under .fs, scaled as one
  piece by --fs-zoom (CSS zoom, so every px of the Forge's, the 140 px width included, is multiplied by the same number).
  Below lg (1024px) the columns stack: the badge first, then the walkthrough, then the Doctrine line.
*/

:root {
  --z: 1.1; /* first paint only; forge.js writes the real one */
  --quote-size: clamp(13px, 0.62vw, 15px);   /* b.css */
  --hl-size: clamp(26px, 2.05vw, 54px);      /* b.css */
  --doctrine-gold: #e3c778;                  /* b.css: the Doctrine's founding gold */
  /* the status strip under the rings (round 1's Replay row: its gap and its height; forge.js reads the laid-out row) */
  --status-gap: clamp(10px, 0.9vw, 22px);
  --status-h: clamp(34px, 1.95vw, 46px);
  /* the walkthrough's reading size: one step over round 1's stage lines */
  --walk-size: clamp(15px, 0.8vw, 20px);
  --arrow: clamp(40px, 2.1vw, 50px);
  --arrow-gap: clamp(12px, 0.75vw, 18px);
  /* the Settings row's scale on the page: the Forge's 13 px window at 1.15, the largest at which its column-header row
     stays on one line in the 616 px column (at 1.2 "Tamper Proof" wraps; measured) */
  --fs-zoom: 1.15;
  /* the inks. Steel is the badge's own vulnerable caption ink; the capture is the pods' cyan; gold is the badge's
     (tokens.css --cer-gold-hot), FORTIFIED only. */
  --stage-steel: #a4bac7;
  --stage-capture: var(--accent);
  --stage-gold: var(--cer-gold-hot);
  --stage-unlit: #5d6378;
  --walk-ink: color-mix(in srgb, var(--ink) 80%, var(--bg));
}

body.page-forge { --nav-column: 1680px; }
body.page-forge::before { content: none; }

/* ---------- the stage: nav, then the hero, then the gutter (b.css) ---------- */
.page-forge .stage { justify-content: flex-start; }
/* r256 (rulings.md Fri 09:03, sitting 15 C4): once the 15m lockout seals the badge at the column's centre it grows to the XL preset (forge.js
   SEALED_BADGE_PRESET, k = 1.6) and the unscaled .ceremony box (1347.6 px wide at 1920) reaches 1950.3, past the 1920 viewport, so the page grew a
   horizontal scrollbar. The box's overflow past the stage's own edge holds no ink (the sealed rings are hidden), so the stage clips horizontally:
   `clip`, not `hidden`, so it makes no scroll container and leaves the vertical axis alone. The badge's rendered size and centre are untouched. */
.page-forge .stage { overflow-x: clip; }
.page-forge .centre {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  width: min(var(--column), 100%);
}
.page-forge .hero {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  /* laptop-fit 1: the row is the ring stack's height, so a left column taller than the ring never grows the row (the centred row lifted the headline by half the excess) */
  grid-template-rows: calc(714px * var(--z));
  align-items: stretch;
  align-content: center;
  min-height: 0;
}

/* ---------- LEFT ---------- */
.page-forge .copy {
  align-self: start;   /* laptop-fit 1: the column starts at the ring's top and, where it is taller than the ring, runs down from the headline */
  min-height: calc(714px * var(--z));   /* and is never shorter than the ring, so the Doctrine line keeps the ring's floor */
  justify-self: start;
  min-width: 0;
  display: grid;
  width: var(--block-w, max-content);
  grid-template-columns: minmax(0, 1fr);
  /* r21 (the owner, Mon: "the forge page left side stuff to be lower , even if its more condensed ? compared to the splash
     page everything looks too high"): the creed no longer floats centred between two equal rows; it sits on the floor,
     just above the Doctrine line, so the eyebrow lands as low as the panel's height allows */
  /* r249: the headline stands on the shared slot (../slot.css): row 1 is the slot, the eyebrow at its end, the creed under it, the Doctrine line at the
     floor of the last row. (Was minmax(0, 1fr) auto auto: the headline's y followed the walkthrough's height, so it moved with the scrollbar's text reflow.) */
  grid-template-rows: var(--slot-hl) auto minmax(0, 1fr);
  /* r28: no room reserved for the status strip any more: it hangs under the ring without taking any (see .status-row), so
     the Doctrine line lands on B's floor, where the splash page's does */
}
.page-forge .eyebrow {
  grid-row: 1;
  align-self: end;
  margin: 0 0 calc(var(--hl-size) * 0.9);
  font-size: var(--eb-size);   /* slot.css: the one eyebrow size */
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: left;
}
.page-forge .eyebrow span { display: block; }

.page-forge .creed {
  grid-row: 2;
  display: block;
  width: 100%;
  margin-bottom: calc(var(--walk-size) * 1.6); /* the air between the Download note and the Doctrine line (r21) */
}

/* ================= THE WALKTHROUGH ================= */
.page-forge .walk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--arrow);
  grid-template-rows: auto auto;
  column-gap: var(--arrow-gap);
  width: 100%;
}
/* the steps span the whole column (the Settings row needs every px of it); the arrows sit either side of the HEADING,
   centred on its two lines (every step's heading is two lines, so the arrows never move) */
.page-forge .walk-stack { grid-area: 1 / 1 / 2 / 3; display: grid; min-width: 0; }
.page-forge .walk-step .hl { max-width: calc(100% - var(--arrow) - var(--arrow-gap)); }
.page-forge .walk-step {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
.page-forge .walk-step.is-current { visibility: visible; opacity: 1; transition: opacity 0.22s var(--ease-out), visibility 0s; }

/* the heading: B's beats' type (Archivo 800, -0.025em, word-spacing 0.09em) at the creed's scale, kept from round 1 */
.page-forge .hl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-size: var(--hl-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  word-spacing: 0.09em;
  white-space: nowrap;
  color: var(--ink);
}
.page-forge .hl-line { display: block; }

.page-forge .walk-text { margin-top: calc(var(--hl-size) * 0.36); } /* was 0.5 (r21, condensed) */
.page-forge .walk-text p {
  margin: 0;
  font-size: var(--walk-size);
  line-height: 1.55;
  color: var(--walk-ink);
  text-wrap: pretty;
}
.page-forge .walk-text p + p { margin-top: 0.7em; }
.page-forge .walk-text em { font-style: italic; color: var(--ink); }
/* capitals mint canon: the stage words carry their own ink, never bold */
.page-forge .canon { letter-spacing: 0.04em; font-weight: 600; }
.page-forge .canon-steel { color: var(--stage-steel); }
.page-forge .canon-gold { color: var(--stage-gold); }
/* the step's doing part, anchored to the panel's floor so steps 2 and 3 put the Settings row on the same y (the owner,
   2026-10-18 ~23:5x: "the settings example rectangle didnt move ... that parts great"): both carry the same empty room
   under the row (.walk-gap), so the two rows share one y, 0 px apart */
.page-forge .walk-do {
  margin-top: auto;
  padding-top: calc(var(--hl-size) * 0.42); /* was 0.6 (r21, condensed) */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--walk-size) * 0.9);
}

/* the confirmation line: its two lines are laid out from frame one; the text is revealed on the badge's own beat (a cut,
   in the same paint as the crest's data-phase, so the line can never lead the badge) */
.page-forge .walk-confirm {
  margin: 0;
  width: 100%;
  min-height: calc(var(--walk-size) * 1.5 * 2);
  font-size: var(--walk-size);
  line-height: 1.5;
  color: var(--ink);
}
.page-forge .walk-confirm[data-shown="false"] .confirm-text { visibility: hidden; }
/* step 2 carries no confirmation line (r11), but keeps the empty room the line had: its Settings row stays on the same y
   as step 3's, and where r10 had it. Nothing is written in it, so the label under the row can sit in it. */
/* r21: the empty room is gone. It reserved the room the label was drawn up into; the label now has its own slot (.walk-foot) and
   the rows still share one y, because both steps now end on the row itself. */
.page-forge .walk-gap { display: none; }
.page-forge .walk-confirm .lead { font-weight: 700; }

/* the arrows: the house's plain control (round 1's Replay voice) in a square, sharp corners */
.page-forge .walk-arrow {
  grid-row: 1;
  align-self: start;
  margin-top: calc(var(--hl-size) * 1.15 - var(--arrow) / 2);
  position: relative;
  z-index: 1;
  width: var(--arrow);
  height: var(--arrow);
  display: grid;
  place-items: center;
  padding: 0 0 0.12em;
  font: inherit;
  font-size: calc(var(--arrow) * 0.62);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.page-forge .walk-prev { grid-column: 1; justify-self: start; margin-left: calc(-1 * (var(--arrow) + var(--arrow-gap))); }
.page-forge .walk-next { grid-column: 2; }
.page-forge .walk-arrow:hover { color: var(--ink); border-color: rgba(138, 138, 154, 0.4); }
.page-forge .walk-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.page-forge .walk-arrow:active { transform: translateY(1px); }
.page-forge .walk-arrow[aria-disabled="true"] { cursor: default; color: var(--stage-unlit); border-color: rgba(138, 138, 154, 0.1); transform: none; }
html[data-walk-done="true"] .page-forge .walk-next[aria-disabled="false"] { color: var(--accent); border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.055); }
html[data-walk-done="true"] .page-forge .walk-next[aria-disabled="false"]:hover { color: var(--cyan-hot); border-color: var(--accent); background: rgba(34, 211, 238, 0.1); }

/* the next step's name, under the text (it lights with ›). ONE FIXED SLOT, the same y on every step (the owner,
   2026-10-18 ~23:5x: "i do like how the original had the set your limits, tamper proof etc buttons in the same spot ... i
   just thought initially the set your limits and tamper proof was hiding too far down and it tied into the download button.
   if we can find a happy medium where they are still spaced somewhat equally"). Its row stays reserved where round 2 had
   it (nothing else moves); the label is drawn a constant distance higher, picked once at 2560 so the gap from the
   example's floor to the label and the gap from the label to DOWNLOAD THE FORGE read equal, the lower never the smaller. */
.page-forge .walk-foot {
  grid-area: 2 / 1;
  /* r21: the label's slot is its own row now (no transform): the same air above it as below it, one fixed place on every step */
  margin: calc(var(--walk-size) * 1.15) 0 calc(1.5 * (clamp(13px, 0.7vw, 17px) - var(--walk-size)));   /* r213: the row keeps its old height (the larger line grows into the air below), so the walk block and its headline stay on the shared slot */
  font-size: var(--walk-size);   /* r213 (his word: "I think we would want to go with the tools size."): the Tools page's "› Sample The Forge" size (was clamp(13px, 0.7vw, 17px)) */
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.page-forge .walk-next-label { cursor: pointer; }
.page-forge .walk-foot[data-state="waiting"] .walk-next-label { color: var(--stage-unlit); cursor: default; }
.page-forge .walk-foot[data-state="ready"] .walk-next-label { color: var(--accent); }
.page-forge .walk-foot[data-state="end"] .walk-next-label { visibility: hidden; }
/* and its arrow with it: the slot is held, nothing is drawn or pressable until the crest has been pressed (r20) */
html[data-walk-step="3"]:not([data-walk-done="true"]) .page-forge .walk-next { visibility: hidden; }

/* step 4's words after the press, in the text's own slot (three lines reserved) */
.page-forge .walk-confirm-board { min-height: 0; line-height: 1.55; }

/* DOWNLOAD THE FORGE and the trial line: on every step, under the panel, left-flush (the owner's ruling, 2026-10-18) */
.page-forge .cta { order: 0; flex-direction: column; align-items: flex-start; gap: 0.7em; margin-top: calc(var(--walk-size) * 1.15); }
.page-forge .cta-note { margin: 0; font-size: clamp(13px, 0.74vw, 18px); letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; }   /* r265: the house cyan, as the splash's note (his word: "i like the blue") */

/* ================= THE FORGE'S SETTINGS ROW =================
   settings.css (Empire HQ forge/src/renderer, read-only), its rules for the Risk Settings block, value for value. The
   window's own base (html, body: --forge-panel ground, --forge-text, --forge-font-sans, 13px; #settings-root padding
   16px 18px) is the frame's. Only the scoping (.fs) and the zoom are the page's. */
.page-forge .fs {
  zoom: var(--fs-zoom);
  width: 100%; /* under standardized zoom a percentage resolves in the zoomed space: 100% IS the column's width */
  padding: 16px 18px;
  background: var(--forge-panel);
  border: 1px solid var(--line);
  color: var(--forge-text);
  font-family: var(--forge-font-sans);
  font-size: 13px;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
}
.page-forge .fs h2 { margin: 0 0 2px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forge-accent); font-weight: bold; }
.page-forge .fs .block { border-top: 0; }
.page-forge .fs .row { display: flex; gap: 6px; align-items: center; padding: 3px 0; flex-wrap: wrap; }
.page-forge .fs .field {
  flex: 1;
  min-width: 60px;
  padding: 4px 7px;
  font: inherit;
  font-size: 12px;
  color: var(--forge-text);
  background: var(--forge-tint-weak);
  border: 1px solid var(--forge-border);
  border-radius: 4px;
  color-scheme: dark;
}
.page-forge .fs .field:focus { outline: 2px solid var(--forge-accent); outline-offset: 1px; border-color: var(--forge-accent); }
.page-forge .fs button.small:focus-visible,
.page-forge .fs input[type="checkbox"]:focus-visible { outline: 2px solid var(--forge-accent); outline-offset: 1px; }
.page-forge .fs button.small {
  padding: 4px 9px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  color: var(--forge-text);
  background: transparent;
  border: 1px solid var(--forge-border);
  border-radius: 4px;
}
.page-forge .fs button.small:disabled { opacity: 0.45; cursor: not-allowed; }
.page-forge .fs .risk-account-row { gap: 10px; }
.page-forge .fs .risk-account-label { flex: 1; min-width: 90px; font-size: 12px; font-weight: 600; }
.page-forge .fs .risk-account-balance,
.page-forge .fs .risk-account-pnl { min-width: 70px; text-align: right; opacity: 0.85; font-size: 12px; }
.page-forge .fs .risk-account-header {
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--forge-border);
}
.page-forge .fs .risk-account-header .risk-account-label,
.page-forge .fs .risk-account-header .risk-account-balance,
.page-forge .fs .risk-account-header .risk-account-pnl { font-weight: inherit; opacity: 1; font-size: inherit; }
.page-forge .fs .risk-account-header-dll { flex: 1; min-width: 120px; }
.page-forge .fs .risk-account-header-tp { white-space: nowrap; }
/* r22: the sample's condensed table. One grid for the header and the row so the columns line up and fill the width:
   Account | Balance | Daily Loss Limit | Tamper Proof | Push (right edge). No title, no Realized P&L. */
.page-forge .fs .risk-account-header,
.page-forge .fs .risk-account-row {
  display: grid;
  /* LIVE 9 (Sat 2026-10-31, his cousin's laptop — a screen under 1920 wide): the fixed tracks (140 + 112 + 52 + four 16 px gaps = 368 of the
     row's ~400 zoomed px at 1280–1440) starved the two fr columns to ~20 px, so "Eval 50K" wrapped and "50000" ran under the limit field, and the
     ACCOUNT / BALANCE headers printed over each other. Now every track's floor is its own text (max-content) and only the limit field gives way
     (140 → its text); the gap narrows with the row. At 1920 the tracks resolve exactly as before (the fr columns had room). */
  grid-template-columns: minmax(max-content, 1.15fr) minmax(max-content, 1fr) minmax(0, 140px) max-content 52px;
  column-gap: clamp(10px, 1.1vw, 16px);
  align-items: center;
}
.page-forge .fs .risk-account-label,
.page-forge .fs .risk-account-balance { min-width: 0; text-align: left; white-space: nowrap; }
.page-forge .fs .risk-account-header-dll { min-width: 0; white-space: nowrap; }
.page-forge .fs .risk-account-row .field { width: 100%; min-width: 0; }
.page-forge .fs .risk-account-row .push-button { justify-self: end; }
.page-forge .fs .field-label { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.page-forge .fs .field.pending { border-color: var(--forge-accent); background: var(--forge-accent-wash); }
.page-forge .fs .field-label.pending { color: var(--forge-accent); }
.page-forge .fs .push-block { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--forge-border); }
.page-forge .fs .push-row { gap: 8px; justify-content: flex-end; }
.page-forge .fs button.push-button:disabled { opacity: 0.45; cursor: not-allowed; }
/* the page's own: a readonly limit takes no caret; the inert checkbox takes no press (the walkthrough guides) */
.page-forge .fs .field[readonly] { cursor: default; }
.page-forge .fs .field-label.is-inert { pointer-events: none; }
.page-forge .fs .field-label:not(.is-inert) { cursor: pointer; }

/* THE HOUSE PULSE: Command's .empire-pulse-glow (Empire HQ app/globals.css ~633-692, LANE 740, Jake 2026-10-16: "always
   pulse glowing, not too fast, not too slow, not too bright, not too dim"), its four numbers verbatim: 2.4 s ease-in-out,
   opacity 0.30 -> 0.90, a 1 px ring at 0.55 and an 18px/3px halo at 0.4 of the accent. Only opacity animates, on a layer
   that takes no layout, so the control's box is identical at the trough and the peak. Reduced motion: a steady 0.6. */
@keyframes house-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.page-forge .fs .house-pulse { position: relative; }
.page-forge .fs .house-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgb(34 211 238 / 0.75), 0 0 18px 3px rgb(34 211 238 / 0.6);
  opacity: 0.4;
  animation: house-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.page-forge .fs .field-label.house-pulse::after { inset: -3px -6px; border-radius: 4px; }

/* ---------- the Doctrine line at the floor (b.css, kept from round 1) ---------- */
.page-forge .floor {
  grid-row: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: safe center;
  justify-content: flex-end;
  margin-bottom: calc(21.5px * var(--z) - 21px);
}
.page-forge .doctrine {
  margin: 0;
  width: max-content;
  max-width: 100%;
  text-align: center;
  color: var(--doctrine-gold);
  font-size: var(--quote-size);
  line-height: 1.5;
  letter-spacing: 0.012em;
}
.page-forge .doctrine blockquote { margin: 0; }
.page-forge .doctrine p { font-weight: 500; text-wrap: balance; }
.page-forge .doctrine figcaption { margin-top: 0.3em; font-weight: 400; letter-spacing: 0.04em; white-space: nowrap; text-align: right; color: color-mix(in srgb, var(--doctrine-gold) 72%, transparent); }

/* ---------- RIGHT: the badge, and the status strip under it ---------- */
.page-forge .crest-row { flex-direction: column; justify-content: center; align-items: center; min-width: 0; }
/* the three stages, folded small: the canon words in a row; the current one in its ink, the rest unlit. The ink CUTS on
   the badge's own beat (forge.js follows data-phase after every paint). */
.page-forge .status-row {
  list-style: none;
  margin: var(--status-gap) 0 0;
  padding: 0;
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.6vw, 40px);
  font-size: clamp(11px, 0.6vw, 15px);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--stage-unlit);
}
/* r29: the status strip (VULNERABLE / FORTIFIED under the ring) is gone; the rules for it are removed with it. */
.page-forge .status-row li[data-state="passed"] { color: var(--ink-dim); }
.page-forge .status-row li[data-stage="vulnerable"][data-state="current"] { color: var(--stage-steel); }
.page-forge .status-row li[data-stage="fortified"][data-state="current"] { color: var(--stage-gold); }

/* the badge on a page: the crest's ink takes the press on step 4 only (the Forge's own press: ceremony.ts queues it on
   pointerdown, the document's mouseup takes it); the shield shows no number (the page has no streaks) */
.page-forge .ceremony .crest svg { pointer-events: none; cursor: default; }
html[data-crest-live="true"] .page-forge .ceremony .crest svg { pointer-events: auto; cursor: pointer; }
.page-forge .ceremony .days { display: none; }

/* ================= THE BOARD (round 3) =================
   The board's own rules are the Forge's: board-overlay.css, generated from overlay.css (every declaration byte for byte,
   scoped to this element). What follows is ONLY the page's half, the seams of a board that has no window of its own:
     - the frame: the window's body (overlay.css L15: the sans face, the text ink, no selection) is this element, and the
       page's own resets (home.css `* { margin: 0; padding: 0; box-sizing: border-box }`) are rolled back to the browser's
       defaults inside it, as the window has them (`:where` keeps that at zero specificity, so every Forge rule wins);
     - the window's place: main fits a window to the board and keeps the drawers' room around it (board.ts
       reportContentDimensionsIfChanged -> --board-reserve-x / -y). On the page the stage is the window: the reserve is 0,
       so #forge-root stands flush on the stage's right edge, and forge.js sets the frame's top (the composition);
     - its arrival: laid out from the first frame, hidden and inert, revealed after the crest press (round 2's 260 ms);
     - LEAVE THE CHARTS: inert in round 3; live from round 4 (a left click opens the Forge's own sheet, forge.js);
     - THE HOUSE PULSE on the cue (the HONOR chip, then the first HONOR button): the same four numbers as Push's, below. */
.page-forge .crest-stage { position: relative; }.page-forge .forge-board {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  --board-reserve-x: 0px;
  --board-reserve-y: 0px;
  font-family: var(--forge-font-sans);
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
  color: var(--forge-text);
  user-select: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
:where(.page-forge .forge-board) *,
:where(.page-forge .forge-board) *::before,
:where(.page-forge .forge-board) *::after { box-sizing: revert; margin: revert; padding: revert; }
.page-forge .forge-board[data-shown="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-forge .forge-board[data-shown="true"] #forge-root { pointer-events: auto; }
/* the cue's halo reaches 18px past the chip, and .board-categories (overflow-y: auto, overflow-x: hidden in collapse: the
   Forge's last resort for a board taller than its screen, overlay.css L671/L704) would cut it at the chip's right and lower
   edges. A three-chip board on this page is never taller than its room (measured: the categories' scroll height equals its
   height at every screen), and the fans are flyouts that escape the scroller anyway, so the page lets it show. */
body.page-forge .forge-board .board-categories { overflow: visible; }
.page-forge .forge-board .house-pulse { position: relative; }
.page-forge .forge-board .house-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgb(34 211 238 / 0.75), 0 0 18px 3px rgb(34 211 238 / 0.6);
  opacity: 0.4;
  animation: house-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
/* a behaviour button clips its own children (overlay.css L1426: overflow hidden, for the charge fill), so the pseudo-element
   would be cut to nothing; on a button the same pulse is drawn by the button's OWN shadow (an element's overflow never clips
   its own box-shadow): the same ring and halo, their alphas times the house pulse's opacity (0.30 -> 0.90), on its clock */
@keyframes house-pulse-own {
  0%, 100% { box-shadow: 0 0 0 1px rgb(34 211 238 / 0.3), 0 0 18px 3px rgb(34 211 238 / 0.24); }
  50% { box-shadow: 0 0 0 1px rgb(34 211 238 / 0.75), 0 0 18px 3px rgb(34 211 238 / 0.6); }
}
.page-forge .forge-board .board-button.house-pulse { animation: house-pulse-own 2.4s ease-in-out infinite; }
.page-forge .forge-board .board-button.house-pulse::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .page-forge .forge-board, .page-forge .forge-board[data-shown="true"] { transition: none; transform: none; }
  .page-forge .forge-board .house-pulse::after { animation: none; opacity: 0.6; }
  .page-forge .forge-board .board-button.house-pulse { animation: none; box-shadow: 0 0 0 1px rgb(34 211 238 / 0.45), 0 0 18px 3px rgb(34 211 238 / 0.36); }
}

/* ================= ROUND 4: THE BOARD HIDING, AND THE TWO POPUP WINDOWS =================
   THE MASK (lossCardLifecycle.ts:220 board.hide() -> main.ts hideBoardSurface, the masked-visibility door; daySeal.ts armSeal
   -> hideBoard): the board goes invisible at once and takes no click, and its window keeps its bounds, so on the page it keeps
   its room (nothing reflows) and no transition plays (the door is a cut, not a fade). */
.page-forge .forge-board[data-masked="true"] { opacity: 0; transition: none; }
.page-forge .forge-board[data-masked="true"] #forge-root { pointer-events: none; }
/* THE POPUP WINDOWS (lossCardWindow.ts LOSS_CARD_WIDTH 662; leaveSheet.ts LEAVE_SHEET_WIDTH 420), centred on the work area of
   the board's display (electron/lossCard.ts -> leaveSheet.ts computeLeaveSheetBounds): on the page the board's display is the
   stage (the right column's square), so each window is centred on it, at the badge's own scale (--z: the medium preset's 1.0
   on a screen). The window is this element; its width is the Forge's and its height the content height its renderer reports
   (forge.js). Inside it, the window's UA defaults (home.css's resets rolled back at zero specificity, as on the board). */
.page-forge .forge-popup {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  transform-origin: 0 0;
  transform: scale(var(--z));
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
}
:where(.page-forge .forge-popup) *,
:where(.page-forge .forge-popup) *::before,
:where(.page-forge .forge-popup) *::after { margin: revert; padding: revert; }

/* where the hero has no gutter left of it, ‹ steps inside the column */
@media (min-width: 1024px) and (max-width: 1094px) {
  .page-forge .walk { padding-left: calc(var(--arrow) + var(--arrow-gap)); }
}

/* ---------- BELOW lg: the columns stack, the badge first ---------- */
@media (max-width: 1023px) {
  body.page-forge { grid-template-columns: minmax(0, 1fr); }
  :root { --z: 0.4; --fs-zoom: 1; }
  /* m2: `.page-forge .nav { overflow: hidden }` RETIRED (the nav no longer overflows; the clip hid the phone panel) */
  .page-forge .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: var(--gutter); justify-items: center; align-items: start; align-content: start; }
  .page-forge .crest-row { order: -2; }
  .page-forge .copy { display: contents; padding: 0; }
  .page-forge .eyebrow { grid-row: auto; order: -1; margin: 0; text-align: center; max-width: 100%; }
  .page-forge .creed { grid-row: auto; order: 0; width: 100%; max-width: 36em; }
  .page-forge .hl { white-space: normal; }
  .page-forge .walk { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 14px; }
  .page-forge .walk-stack { grid-area: 1 / 1 / 2 / 4; }
  .page-forge .walk-prev { grid-area: 2 / 1; margin-left: 0; margin-top: 0; width: 44px; height: 44px; align-self: center; }
  .page-forge .walk-next { grid-area: 2 / 3; margin-top: 0; width: 44px; height: 44px; align-self: center; }
  .page-forge .walk-step .hl { max-width: 100%; }
  .page-forge .walk-foot { grid-area: 2 / 2; align-self: center; text-align: center; margin: 0; transform: none; }
  .page-forge .cta-note { white-space: normal; }
  .page-forge .floor { grid-row: auto; order: 2; margin-bottom: 0; width: 100%; min-width: 0; align-items: center; }
  .page-forge .doctrine { width: auto; max-width: 100%; }
  .page-forge .doctrine p, .page-forge .doctrine figcaption { white-space: normal; text-wrap: balance; }
  .page-forge .status-row { height: auto; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 560px) {
  .page-forge .ceremony .socket .tag { font-size: calc(11px / var(--z)); white-space: normal; width: 6em; text-align: center; }
  .page-forge .status-row { margin-top: 52px; }
}

/* reduced motion: the walkthrough still works; the steps cut, the pulse holds still (Command's steady 0.6) */
@media (prefers-reduced-motion: reduce) {
  .page-forge .walk-step, .page-forge .walk-step.is-current { transition: none; }
  .page-forge .fs .house-pulse::after { animation: none; opacity: 0.6; }
  .page-forge .walk-arrow:active { transform: none; }
}

/* r38: the denial note under LEAVE THE CHARTS before the loss card has been met (fixed: it takes no room, moves nothing) */
.leave-deny {
  position: fixed;
  z-index: 40;
  margin: 0;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text, #e8edf2);
  background: rgba(8, 12, 18, 0.94);
  border: 1px solid rgba(160, 175, 190, 0.45);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.leave-deny[data-on="true"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .leave-deny { transition: none; } }

/* r39: step 4's three middle lines run together; the first and last lines keep their space */
.page-forge .walk-text p.tight + p.tight { margin-top: 0; }

/* r40: the instruction the stranger must do to move on reads in the accent (the same blue the lit Next label wears); colour only, no bold */
.page-forge .walk-text .do-this { color: var(--accent); }
/* r44 (his eye: "the x and protected look a bit fuzzy"): the sealed badge's lock word and break-seal ✕ live inside .badge, which
   ceremony.css (~554) promotes with will-change: filter, box-shadow, transform. A promoted layer keeps the raster scale it was
   drawn at, so the page's growth (a transform; the Forge's own presets are a window zoom that re-lays the badge out) stretched
   the medium-size bitmap 1.3x. Once grown and settled the hint is dropped, so the layer is re-rastered at its LARGE size; it
   returns with the next move (the shrink), as the Forge's own RE-RASTER NUDGE does for a paused ring (ceremony.css ~257). */
html[data-badge-pose="centre"] .page-forge #forge-mount .badge { will-change: auto; }
/* r43 (his word: "Sabotage in the sabotage red"): the board's own Sabotage ink, the token its chip, drawer title and ledger rows
   wear (board-overlay.css ~1114 / ~1381 / ~1534: var(--forge-vulnerable), tokens.css:362 #e05260); colour only, no bold */
.page-forge .walk-text .tier-sabotage { color: var(--forge-vulnerable); }

/* r41: the loss card's "example data *" line (the page's own, small, quiet; the card's own content is untouched) */
.popup-root .sample-note {
  margin: 0;
  padding: 6px 14px 8px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(160, 175, 190, 0.7);
}

/* r46 (his word: "is it inexpensive to add our footer from our actual page to our test"): the live compliance footer, CSS copied verbatim
   from the live index.html (FOOTER block, unmodified), so the test shows the page's real bottom. scrollbar-gutter: the page now scrolls on
   a short window, and a scrollbar appearing must not shove the layout left. */
html { scrollbar-gutter: stable; }
/* ================= FOOTER (compliance) ================= */
footer {
  text-align: center;
  padding: 26px 24px 30px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(138,138,154,0.55);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}
.compliance-footer {
  max-width: 1080px;
  margin: 22px auto;
  text-align: left;
}
.disclosure {
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.disclosure-title {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 700;
  margin-bottom: 6px;
}
.disclosure-more {
  font-size: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
}
.disclosure-more a,
.attribution-line a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: rgba(138,138,154,0.35);
  text-underline-offset: 2px;
}
.disclosure-more a:hover,
.attribution-line a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.attribution {
  max-width: 1080px;
  margin: 0 auto 18px;
  text-align: left;
}
.attribution-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-dim);
  margin-bottom: 16px;
  text-align: center;
}
.attribution-label { color: var(--ink-dim); }
.attribution-sep { color: rgba(138,138,154,0.4); }
.platform-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.platform-logo img {
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.platform-logo:hover img { opacity: 1; }
.platform-logo--ninjatrader img { height: 20px; width: auto; }
.platform-logo--kinetick {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease;
}
.platform-logo--kinetick:hover { border-color: rgba(255, 255, 255, 0.18); }
.platform-logo--kinetick img { display: block; height: 52px; width: auto; opacity: 1; }
.attribution-note {
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-dim);
}
.footer-copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(138,138,154,0.14);
}
/* r46: the nav + stage keep the page's old full-window grid inside one screen block, so the footer below it adds scroll and takes
   nothing from the stage (the ring, the Doctrine line and the walk sit exactly where they did). */
body.page-forge { display: block; }
.page-forge .forge-screen { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }

/* r49 (his word: "all instructional steps be pulsing Set Daily Loss Limits then the next one then the next one"): the lit Next label breathes while it is ready, the house pulse timing; still under reduced motion */
.page-forge .walk-foot[data-state="ready"] .walk-next-label { animation: cta-pulse 1.4s ease-in-out infinite;   /* LIVE 9: the one breath in home.css */ }
@media (prefers-reduced-motion: reduce) { .page-forge .walk-foot[data-state="ready"] .walk-next-label { animation: none; } }

/* r127 (his word: "remove the doctrine quotes from everywhere but the splash page"): the quote is not drawn; the element stays because the board's floor and
   the column's geometry (forge.js box(".doctrine"), fitQuote) are measured from it, so nothing on the page moves */
.page-forge .doctrine { visibility: hidden; }

/* C2 (the chair's ruling 3): the Forge page's cyan pool follows the badge's stage - the splash's rule (b/b.css:41), --ring-x / --ring-y written by the inline script in index.html. home.css is untouched. If his eye says no: one line, `.page-forge body::before { background: none }`, and the page goes black like Tools. */
/* c9 (his word Sat 2026-10-31): his eye said no — the pool is OFF, here and site-wide; only the badge's ceremony lights the ground.
   Was: radial-gradient(ellipse 40% 62% at var(--ring-x, 50%) var(--ring-y, 54%), rgba(34, 211, 238, 0.045), transparent 70%) */
body.page-forge::before {
  background: none;
}
