/* ════════════════════════════════════════════════════════════════════════
   PHM DIAGNOSTIC · RESULT — REBUILD (v2)
   A ground-up visible redesign of the Result surface. Loaded LAST so it owns
   the look; the four worker-bound classes (.doc-masthead, .sec-eyebrow,
   .masthead-h1, .masthead-deck, .id-value) and the live-injected reads
   (.doc-section / .sec-h / .sec-p / .signal-strip) are restyled here so both
   the static showcase and the live read render cleanly.

   Idea: the diagnostic is a POSITION ON A CLOSING CASCADE. The page is a short
   sequence of single-idea "acts" with one dark signature visualization, not a
   stack of bordered modules.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --rb-ink:    #15151A;
  --rb-ink-2:  rgba(21,21,26,0.64);
  --rb-ink-3:  rgba(21,21,26,0.42);
  --rb-line:   rgba(21,21,26,0.12);
  --rb-canvas: #FBFAF7;
  --rb-accent: #010048;
  --rb-amber:  #A6601A;
  --rb-crim:   #A82818;
  --rb-dark:   #101014;
}

/* ── reset the old paper shell ── */
body { background: var(--rb-canvas) !important; }
.phm-journey { background: var(--rb-canvas) !important; }
body.phm-calm { background: var(--rb-canvas) !important; }
.rb.brief {
  background: var(--rb-canvas) !important;
  padding: 0 0 88px !important;
}
.rb.brief::before, .rb.brief::after { display: none !important; }

.rb-doc {
  max-width: 1080px;
  margin: 0 auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 48px;
}
.rb-doc::before, .rb-doc::after { display: none !important; }

/* shared inner column for readable text */
.rb-wrap { max-width: 760px; }

/* ── kicker: the single labelling device (replaces all the mono cruft) ── */
.rb-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rb-accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.rb-kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--rb-accent);
}
.rb-kicker--dark { color: rgba(255,255,255,0.62); }
.rb-kicker--dark::before { background: rgba(255,255,255,0.45); }

/* ═══ ACT 0 · MASTHEAD ═════════════════════════════════════════════════════ */
.rb-mast.doc-masthead {
  border: none !important;
  padding: 84px 0 0 !important;
  position: relative;
}
.rb-stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rb-ink-3);
  margin-bottom: 34px;
}
.rb-mast .sec-eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--rb-accent) !important;
  margin-bottom: 22px;
}
.rb-mast .sec-eyebrow::before { width: 26px !important; background: var(--rb-accent) !important; }
.rb-mast .sec-eyebrow-meta { color: var(--rb-ink-3) !important; }

.rb-mast .masthead-h1 {
  font-family: var(--display-font);
  font-weight: 800 !important;
  font-size: clamp(30px, 4.2vw, 52px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  color: var(--rb-ink) !important;
  max-width: 16ch;
  margin: 0 0 26px !important;
  text-wrap: balance;
  background: none !important;
}
.rb-mast .masthead-h1 em {
  font-style: normal !important;
  color: var(--rb-accent) !important;
  background: none !important;
}
.rb-mast .masthead-deck {
  font-family: var(--font);
  font-weight: 400 !important;
  font-size: clamp(16px, 1.5vw, 19px) !important;
  line-height: 1.6 !important;
  color: var(--rb-ink-2) !important;
  max-width: 56ch;
  margin: 0 !important;
}

/* quiet identity strip (carries the .id-value JS hooks, no boxes) */
.rb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 56px;
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--rb-line);
}
.rb-meta > div { display: flex; flex-direction: column; gap: 5px; }
.rb-meta dt {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rb-ink-3);
}
.rb-meta dd {
  font-family: var(--display-font);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; color: var(--rb-ink);
}

/* ═══ ACT 1 · THE DECISION (hero) ══════════════════════════════════════════ */
.rb-decision { padding: 88px 0 96px; }
.rb-tradeoff {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  max-width: 860px;
}
.rb-cost { display: flex; flex-direction: column; gap: 12px; }
.rb-cost-label {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rb-ink-3);
}
.rb-cost-num {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.84;
  letter-spacing: -0.05em;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.rb-cost--now  .rb-cost-num { color: var(--rb-amber); }
.rb-cost--wait .rb-cost-num { color: var(--rb-crim); }
.rb-cost--wait .rb-cost-label { color: var(--rb-crim); }
.rb-arrow {
  font-family: var(--display-font);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: var(--rb-ink-3);
  line-height: 1;
  padding-bottom: 18px;
}
.rb-decision-line {
  font-family: var(--font);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--rb-ink-2);
  max-width: 46ch;
  margin: 52px 0 0;
  text-wrap: pretty;
}
.rb-decision-line strong { color: var(--rb-ink); font-weight: 600; }
.rb-decision-line .rb-deadline { color: var(--rb-accent); font-weight: 600; white-space: nowrap; }

/* ═══ ACT 2 · THE CASCADE (dark signature) ═════════════════════════════════
   Full-bleed dark band. One premium chart: baseline → you-are-here →
   threshold → cascade, with the cost-of-waiting curve rising 3×. */
.rb-cascade {
  background: var(--rb-dark) !important;
  color: #fff;
  margin: 0 calc(50% - 50vw);       /* full-bleed out of the centred column */
  padding: 96px calc(50vw - 540px + 48px);
}
@media (max-width: 1136px) { .rb-cascade { padding-left: 48px; padding-right: 48px; } }
.rb-cascade-inner { max-width: 1080px; margin: 0 auto; }
.rb-cascade-h {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 56px;
  text-wrap: balance;
}
.rb-chart { position: relative; }
.rb-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.rb-cascade-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.rb-read {
  flex: 1 1 0;
  min-width: 150px;
  padding: 26px 30px 26px 0;
}
.rb-read + .rb-read { padding-left: 30px; border-left: 1px solid rgba(255,255,255,0.10); }
.rb-read-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 14px;
}
.rb-read-num {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}
.rb-read--now .rb-read-num { color: #E8A040; }
.rb-read--cascade .rb-read-num { color: #E0796B; }
.rb-read-sub {
  font-family: var(--font);
  font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,0.58);
  margin-top: 10px;
}
.rb-cascade-source {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  margin-top: 38px;
  line-height: 1.6;
}
.rb-cascade-source a { color: rgba(255,255,255,0.72); border-bottom: 1px solid rgba(255,255,255,0.3); }

/* ═══ ACT 3 · WHERE YOU STAND (conditions as a clean list) ═════════════════ */
.rb-stand { padding: 96px 0 88px; }
.rb-conditions { list-style: none; margin: 0; padding: 0; }
.rb-cond {
  display: grid;
  grid-template-columns: 56px 1fr 130px;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--rb-line);
}
.rb-cond:last-child { border-bottom: 1px solid var(--rb-line); }
.rb-cond-mark {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em;
  padding-top: 4px;
}
.rb-cond--gap     .rb-cond-mark { color: var(--rb-crim); }
.rb-cond--partial .rb-cond-mark { color: var(--rb-accent); }
.rb-cond--ok      .rb-cond-mark { color: var(--rb-ink-3); }
.rb-cond-h {
  font-family: var(--display-font);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em; color: var(--rb-ink);
  margin: 0 0 8px;
}
.rb-cond-body {
  font-family: var(--font);
  font-size: 15px; line-height: 1.6; color: var(--rb-ink-2);
  max-width: 60ch;
}
.rb-cond-status {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: right;
  padding-top: 4px;
}
.rb-cond--gap     .rb-cond-status { color: var(--rb-crim); }
.rb-cond--partial .rb-cond-status { color: var(--rb-accent); }
.rb-cond--ok      .rb-cond-status { color: var(--rb-ink-3); }

/* ═══ ACT 4 · THE MOVE ═════════════════════════════════════════════════════ */
.rb-move { padding: 0 0 96px; }
.rb-move-card {
  border-left: 3px solid var(--rb-accent);
  padding-left: 40px;
  max-width: 760px;
}
.rb-move-h {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--rb-ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.rb-move-when {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rb-accent);
  margin-bottom: 22px;
}
.rb-move-detail {
  font-family: var(--font);
  font-size: 16px; line-height: 1.65; color: var(--rb-ink-2);
  margin: 0 0 22px;
}
.rb-move-detail strong { color: var(--rb-ink); font-weight: 600; }
.rb-validated {
  font-family: var(--font);
  font-size: 14px; line-height: 1.6; color: var(--rb-ink-2);
  padding-top: 18px;
  border-top: 1px solid var(--rb-line);
}
.rb-validated b { font-weight: 600; color: var(--rb-ink); }

/* ═══ ACT 5 · GATE ═════════════════════════════════════════════════════════ */
.rb-gate {
  background: var(--rb-dark);
  color: #fff;
  border-radius: 2px;
  padding: 56px 56px 52px;
  margin: 0 0 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.rb-gate-h {
  font-family: var(--display-font);
  font-weight: 700; font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.16; letter-spacing: -0.02em; color: #fff;
  margin: 16px 0 16px; text-wrap: balance;
}
.rb-gate-h em { font-style: italic; color: #E8A040; }
.rb-gate-deck {
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.66); margin: 0 0 26px; max-width: 44ch;
}
.rb-gate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rb-gate-list li {
  font-family: var(--font); font-size: 14px; color: rgba(255,255,255,0.82);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.rb-gate-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 11px; height: 1px; background: #E8A040; }
.rb-gate-aside { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 40px; }
.rb-gate-quote {
  font-family: var(--display-font); font-weight: 600; font-style: italic;
  font-size: 17px; line-height: 1.45; color: #fff; margin: 0 0 14px;
}
.rb-gate-attr {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding-bottom: 26px; margin-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.rb-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rb-trust div { font-family: var(--font); font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.7); }
.rb-trust b { display: block; font-family: var(--display-font); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 2px; }
.rb-gate-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.14); }
.rb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: 2px; transition: all var(--ease);
}
.rb-btn--primary { background: #fff; color: var(--rb-dark); }
.rb-btn--primary:hover { background: #E8A040; }
.rb-btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.rb-btn--ghost:hover { border-color: #fff; }
.rb-gate-or { font-family: var(--font); font-size: 13px; color: rgba(255,255,255,0.55); }
.rb-gate-or a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); }

/* ════════════════════════════════════════════════════════════════════════
   MOTION — entrance reveals + cascade draw-in. All gated on
   prefers-reduced-motion AND html.rb-motion (set by JS), so no-JS, print,
   PDF export, and reduced-motion users always see the full end-state.
   ════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  html.rb-motion .rb-reveal { opacity: 0; transform: translateY(20px); }
  html.rb-motion .rb-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity 0.7s cubic-bezier(.2,.6,.2,1), transform 0.7s cubic-bezier(.2,.6,.2,1);
  }
  html.rb-motion .rb-reveal.d1.is-in { transition-delay: 0.07s; }
  html.rb-motion .rb-reveal.d2.is-in { transition-delay: 0.14s; }
  html.rb-motion .rb-reveal.d3.is-in { transition-delay: 0.21s; }
  html.rb-motion .rb-reveal.d4.is-in { transition-delay: 0.28s; }

  /* cascade curve draws in left→right when its section enters */
  html.rb-motion .rb-chart polyline[data-draw],
  html.rb-motion .rb-sample-chart polyline[data-draw] {
    stroke-dasharray: var(--dash); stroke-dashoffset: var(--dash);
  }
  html.rb-motion .rb-chart.is-in polyline[data-draw],
  html.rb-motion .rb-sample-chart.is-in polyline[data-draw] {
    transition: stroke-dashoffset 1.15s cubic-bezier(.33,.85,.3,1) 0.15s;
    stroke-dashoffset: 0;
  }
  /* "you are here" marker + label settle in after the curve passes */
  html.rb-motion .rb-chart [data-here] { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
  html.rb-motion .rb-chart.is-in [data-here] {
    transition: opacity 0.5s ease 0.85s, transform 0.6s cubic-bezier(.34,1.56,.5,1) 0.85s;
    opacity: 1; transform: scale(1);
  }
  /* threshold + cascade annotations fade up last */
  html.rb-motion .rb-chart [data-mark] { opacity: 0; }
  html.rb-motion .rb-chart.is-in [data-mark] { transition: opacity 0.6s ease 1.05s; opacity: 1; }
}

/* ═══ NOTES (quiet) ════════════════════════════════════════════════════════ */
.rb-notes { padding: 0 0 24px; }
.rb-notes-list {
  list-style: none; counter-reset: n; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px;
}
.rb-notes-list li {
  font-family: var(--font); font-size: 13px; line-height: 1.55;
  color: var(--rb-ink-3); padding-left: 22px; position: relative; counter-increment: n;
}
.rb-notes-list li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 11px; color: var(--rb-accent); font-weight: 600;
}
.rb-notes-list b { color: var(--rb-ink-2); font-weight: 600; }
.rb-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rb-line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--rb-ink-3);
}
.rb-foot b { color: var(--rb-ink-2); font-weight: 600; }

/* ═══ LIVE-MODE INJECTED READS (worker stack uses old classes) ═════════════
   Keep these clean so the live read inherits the calm register. */
.rb #phm-fn-reads-stack { padding-top: 40px; }
.rb .doc-section {
  position: static !important;
  padding: 40px 0 !important;
  border-bottom: 1px solid var(--rb-line) !important;
}
.rb .doc-section .doc-rail { display: none !important; }
.rb .sec-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--rb-accent) !important; margin-bottom: 16px;
}
.rb .sec-h {
  font-family: var(--display-font); font-weight: 700;
  font-size: 22px; letter-spacing: -0.015em; color: var(--rb-ink) !important;
  margin-bottom: 14px;
}
.rb .sec-p { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--rb-ink-2) !important; max-width: 70ch; }
.rb .signal-strip {
  background: #F4F3FA !important; border: none !important; border-left: 3px solid var(--rb-accent) !important;
  padding: 22px 26px !important; margin-top: 22px !important;
}
.rb .signal-strip-label { color: var(--rb-accent) !important; }
.rb .signal-strip-text { font-family: var(--display-font); font-weight: 600; color: var(--rb-ink) !important; }

/* ═══ responsive ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .rb-doc { padding: 0 24px; }
  .rb-tradeoff { grid-template-columns: 1fr; gap: 30px; }
  .rb-arrow { transform: rotate(90deg); padding: 0; }
  .rb-cond { grid-template-columns: 44px 1fr; }
  .rb-cond-status { grid-column: 2; text-align: left; padding-top: 0; }
  .rb-cascade-readout { flex-direction: column; }
  .rb-read + .rb-read { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .rb-gate { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .rb-gate-aside { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding-left: 0; padding-top: 28px; }
  .rb-notes-list { grid-template-columns: 1fr; }
  /* cascade full-bleed: avoid negative padding from calc(50vw-540px+48px) */
  .rb-cascade { padding-left: 24px !important; padding-right: 24px !important; padding-top: 56px; padding-bottom: 56px; }
  .rb-cascade-h { font-size: 22px; margin-bottom: 32px; }
  /* SVG text scales with the viewBox — below ~560px the axis labels become
     unreadable. Let the chart scroll horizontally at a legible min-width. */
  .rb-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px 8px; }
  .rb-chart svg { min-width: 540px; }
  .rb-cascade-readout { margin-top: 32px; }
  /* section rhythm tightens on phones */
  .rb-decision { padding: 56px 0 64px; }
  .rb-stand, .rb-move { padding: 64px 0; }
  .rb-cost-num { font-size: clamp(46px, 15vw, 68px); }
}

/* ════════════════════════════════════════════════════════════════════════
   ENTRY surface (diagnostic.html) — same language, URL read as the anchor
   ════════════════════════════════════════════════════════════════════════ */
.rb-entry { padding: 76px 0 88px; }
.rb-entry .rb-prompt {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  color: var(--rb-ink);
  margin: 0 0 26px;
  max-width: 20ch;
}
.rb-field {
  display: flex;
  align-items: stretch;
  max-width: 760px;
  background: #fff;
  border: 1.5px solid var(--rb-line);
  border-radius: 2px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.rb-field:focus-within { border-color: var(--rb-accent); box-shadow: 0 0 0 4px rgba(1,0,72,0.10); }
.rb-proto {
  display: flex; align-items: center;
  padding: 0 2px 0 24px;
  font-family: var(--font); font-size: clamp(16px,1.6vw,19px);
  color: var(--rb-ink-3); white-space: nowrap;
}
.rb-entry #phmUrlInput {
  flex: 1; min-width: 0;
  border: none !important; background: transparent !important;
  padding: 24px 14px !important;
  font-family: var(--font) !important; font-size: clamp(16px,1.6vw,19px) !important;
  color: var(--rb-ink) !important; font-weight: 500 !important;
}
.rb-entry #phmUrlInput:focus { outline: none !important; }
.rb-entry #phmUrlInput::placeholder { color: var(--rb-ink-3) !important; font-weight: 400; }
.rb-submit {
  border: none; cursor: pointer;
  background: var(--rb-accent); color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0 32px; white-space: nowrap;
  transition: background var(--ease);
}
.rb-submit:hover { background: var(--rb-dark); }
.rb-helper {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 20px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--rb-ink-3);
}
.rb-helper strong { color: var(--rb-ink-2); font-weight: 600; }
.rb-loading { margin-top: 24px; max-width: 760px; padding: 16px 20px; background: #F4F3FA; border-left: 3px solid var(--rb-accent); }
.rb-loading .phm-status-dot::before, .rb-loading .phm-status-dot > i, .rb-loading .phm-status-dot::after { background: var(--rb-accent) !important; }
.rb-alt {
  display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap;
  max-width: 760px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--rb-line);
}
.rb-alt-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rb-ink-3); }
.rb-alt p { flex: 1; min-width: 260px; margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--rb-ink-2); }
.rb-alt p strong { color: var(--rb-ink); font-weight: 600; }
.rb-alt a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rb-accent); border-bottom: 1px solid var(--rb-accent); white-space: nowrap; }

/* steps (Entry act 2) + reused as generic numbered sequence */
.rb-steps { list-style: none; margin: 0; padding: 0; }
.rb-step {
  display: grid; grid-template-columns: 52px 1fr 150px; gap: 28px;
  align-items: start; padding: 28px 0; border-top: 1px solid var(--rb-line);
}
.rb-step:last-child { border-bottom: 1px solid var(--rb-line); }
.rb-step-n { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--rb-ink-3); padding-top: 4px; }
.rb-step.is-here .rb-step-n { color: var(--rb-accent); }
.rb-step-h { font-family: var(--display-font); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--rb-ink); margin: 0 0 8px; }
.rb-step-body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--rb-ink-2); max-width: 56ch; }
.rb-step-dur { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rb-ink-3); text-align: right; padding-top: 4px; }
.rb-step.is-here .rb-step-dur { color: var(--rb-accent); }

/* provenance lead sentence above the quiet stat strip */
.rb-prov-lead { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--rb-ink-2); max-width: 64ch; margin: 0; }
.rb-prov-lead strong { color: var(--rb-ink); font-weight: 600; }

/* "What the read returns" — sets expectations, previews the deliverable */
.rb-receive { padding: 0 0 90px; }
.rb-receive-lead {
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--rb-ink-2); max-width: 60ch; margin: 0 0 6px;
}
.rb-receive-lead strong { color: var(--rb-ink); font-weight: 600; }
.rb-receive-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rb-ink-3); margin-bottom: 36px;
}
.rb-receive-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rb-line);
}
.rb-receive-item {
  padding: 30px 40px 30px 0;
  border-bottom: 1px solid var(--rb-line);
}
.rb-receive-item:nth-child(odd) { border-right: 1px solid var(--rb-line); padding-right: 40px; }
.rb-receive-item:nth-child(even) { padding-left: 40px; }
.rb-receive-n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rb-accent); margin-bottom: 14px;
}
.rb-receive-h {
  font-family: var(--display-font); font-weight: 700; font-size: 19px;
  letter-spacing: -0.015em; color: var(--rb-ink); margin: 0 0 8px;
}
.rb-receive-body {
  font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--rb-ink-2);
  max-width: 42ch; margin: 0 0 14px;
}
.rb-receive-eg {
  font-family: var(--font); font-size: 13px; line-height: 1.5;
  color: var(--rb-ink-3); font-style: italic;
  padding-left: 14px; border-left: 2px solid var(--rb-line);
}
.rb-receive-eg .now  { font-style: normal; font-family: var(--display-font); font-weight: 700; color: var(--rb-amber); }
.rb-receive-eg .wait { font-style: normal; font-family: var(--display-font); font-weight: 700; color: var(--rb-crim); }
.rb-receive-eg b { font-style: normal; color: var(--rb-ink-2); font-weight: 600; }
@media (max-width: 720px) {
  .rb-receive-grid { grid-template-columns: 1fr; }
  .rb-receive-item, .rb-receive-item:nth-child(odd) { border-right: none; padding: 26px 0; }
  .rb-receive-item:nth-child(even) { padding-left: 0; }
}

/* ── Sample-read preview: a real picture of the deliverable ── */
.rb-sample { max-width: 880px; }
.rb-sample-card {
  border: 1px solid var(--rb-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 36px 80px -34px rgba(21,21,26,0.40), 0 10px 26px -14px rgba(0,0,0,0.12);
  overflow: hidden;
}
.rb-sample-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  background: var(--rb-dark); color: rgba(255,255,255,0.82);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}
.rb-sample-bar > span:not(.dot):not(.rb-sample-bar-r) { overflow: hidden; text-overflow: ellipsis; }
.rb-sample-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: #E8A040; box-shadow: 0 0 0 3px rgba(232,160,64,0.22); }
.rb-sample-bar-r { margin-left: auto; color: rgba(255,255,255,0.5); }
.rb-sample-inner { padding: 34px 40px 0; }
.rb-sample-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rb-accent); margin-bottom: 20px; }
.rb-sample-tradeoff { display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.rb-sample-tradeoff > div { display: flex; flex-direction: column; gap: 8px; }
.rb-sample-tradeoff .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rb-ink-3); }
.rb-sample-tradeoff .n { font-family: var(--display-font); font-weight: 800; font-size: clamp(40px, 6.2vw, 72px); line-height: 0.82; letter-spacing: -0.045em; }
.rb-sample-tradeoff .now { color: var(--rb-amber); }
.rb-sample-tradeoff .wait { color: var(--rb-crim); }
.rb-sample-tradeoff .arr { font-family: var(--display-font); font-weight: 300; font-size: 34px; color: var(--rb-ink-3); padding-bottom: 16px; }
.rb-sample-chart { margin-top: 28px; background: var(--rb-dark); border-radius: 5px; padding: 22px 26px 14px; }
.rb-sample-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.rb-sample-move {
  margin: 28px -40px 0; padding: 20px 40px 26px;
  border-top: 1px solid var(--rb-line);
  font-family: var(--font); font-size: 14.5px; color: var(--rb-ink-2); line-height: 1.5;
}
.rb-sample-move .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rb-accent); margin-right: 14px; }
.rb-sample-move b { color: var(--rb-ink); font-weight: 600; }
.rb-sample-cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rb-ink-3); margin-top: 18px; }

.rb-returns { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 44px; max-width: 840px; }
.rb-returns li { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--rb-ink-2); padding-left: 24px; position: relative; }
.rb-returns li::before { content: ""; position: absolute; left: 0; top: 9px; width: 13px; height: 1px; background: var(--rb-accent); }
.rb-returns b { color: var(--rb-ink); font-weight: 600; }
@media (max-width: 720px) {
  .rb-returns { grid-template-columns: 1fr; }
  .rb-sample-inner { padding: 26px 24px 0; }
  .rb-sample-tradeoff { gap: 18px; }
  .rb-sample-tradeoff .n { font-size: clamp(38px, 12vw, 56px); }
  .rb-sample-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rb-sample-chart svg { min-width: 420px; }
  .rb-sample-move { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
}

/* ════════════════════════════════════════════════════════════════════════
   READOUT + CALIBRATION — fold the existing worker-driven mastheads/panels
   into the rb language without touching their JS-bound structure.
   ════════════════════════════════════════════════════════════════════════ */

/* clean the existing masthead chrome (meta strip / classmark / rule / byline) */
.rb-mast .masthead-top { display: block !important; margin-bottom: 22px !important; }
.rb-mast .masthead-meta { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rb-ink-3) !important; }
.rb-mast .masthead-meta > span { border: none !important; padding: 0 4px 0 0 !important; }
.rb-mast .masthead-meta strong { color: var(--rb-ink-2) !important; font-weight: 600; }
.rb-mast .masthead-classmark { position: static !important; border: none !important; background: none !important; padding: 0 !important; color: var(--rb-accent) !important; letter-spacing: 0.16em; white-space: normal; }
.rb-mast .masthead-classmark::before { display: none !important; }
.rb-mast .masthead-rule { display: none !important; }
.rb-mast .masthead-byline { display: none !important; }
.rb-mast .masthead-deck { margin-top: 22px !important; }

/* identity row → quiet, borderless (Readout) */
.rb .id-row { border: none !important; border-top: 1px solid var(--rb-line) !important; margin-top: 30px !important; }
.rb .id-cell { border: none !important; min-height: 0 !important; padding: 18px 36px 0 0 !important; }
.rb .id-cell + .id-cell { padding-left: 0 !important; }
.rb .id-label { color: var(--rb-ink-3) !important; }
.rb .id-value { font-family: var(--display-font); font-weight: 600; font-size: 16px !important; color: var(--rb-ink) !important; }
.rb .id-value.amber { color: var(--rb-amber) !important; }
.rb .id-value.crimson { color: var(--rb-crim) !important; }
.rb .id-sub { color: var(--rb-ink-3) !important; }
.rb .url-ctx { border-color: var(--rb-line) !important; border-radius: 3px; }

/* Readout bespoke sections → calmer in the rb canvas */
.rb .exposure-row { background: none !important; border-left: 3px solid var(--rb-crim) !important; margin: 0 !important; }
.rb .exposure-val { color: var(--rb-crim) !important; }
.rb .chain, .rb .scen { border-color: var(--rb-line) !important; }
.rb .cta-row .btn-start, .rb .btn-start { background: var(--rb-accent) !important; border-color: var(--rb-accent) !important; border-radius: 2px; }

/* ── Calibration panel → single clean container, no nested boxes ── */
.rb .calib { border: none !important; box-shadow: none !important; background: transparent !important; }
.rb .calib-hdr { background: var(--rb-dark) !important; border: none !important; border-radius: 5px 5px 0 0; }
.rb .calib-hdr-badge { color: #E8A040 !important; border-right-color: rgba(255,255,255,0.18) !important; }
.rb .calib-hdr-badge .dot { background: #E8A040 !important; }
.rb .calib-rail { border-bottom: 1px solid var(--rb-line) !important; }
.rb .rail-step { border-right-color: var(--rb-line) !important; }
.rb .rail-step.active { background: rgba(1,0,72,0.05) !important; }
.rb .rail-step.active::before { background: var(--rb-accent) !important; }
.rb .rail-step.active .rs-num { color: var(--rb-accent) !important; }
.rb .calib-body { padding: 34px 0 28px !important; }
.rb .calib-q-eyebrow { color: var(--rb-accent) !important; }
.rb .calib-q-eyebrow::before { background: var(--rb-accent) !important; }
.rb .calib-q-text { font-family: var(--display-font); color: var(--rb-ink) !important; font-size: clamp(20px,2.2vw,26px) !important; }
.rb .calib-opt { border-color: var(--rb-line) !important; border-radius: 3px; }
.rb .calib-opt.selected { background: rgba(1,0,72,0.05) !important; border-color: var(--rb-accent) !important; }
.rb .calib-opt.selected .calib-opt-letter { background: var(--rb-accent) !important; border-color: var(--rb-accent) !important; }
.rb .calib-actions { background: transparent !important; border-top: 1px solid var(--rb-line) !important; padding: 18px 0 !important; }
.rb .btn-next { background: var(--rb-accent) !important; border-color: var(--rb-accent) !important; border-radius: 2px; }
.rb .btn-back { border-radius: 2px; }
.rb .complete-banner { border-color: var(--rb-line) !important; border-left: 3px solid var(--rb-accent) !important; border-radius: 0 4px 4px 0; }
.rb .complete-banner-head { background: rgba(1,0,72,0.03) !important; }
.rb .complete-banner-status { background: rgba(1,0,72,0.08) !important; color: var(--rb-accent) !important; }
.rb .ans-ledger { padding: 24px 0 8px !important; }
.rb .ans-num { color: var(--rb-accent) !important; }
.rb .complete-cta { background: transparent !important; border-top: 1px solid var(--rb-line) !important; padding: 24px 0 !important; }
.rb .btn-cal-primary { background: var(--rb-accent) !important; border-color: var(--rb-accent) !important; border-radius: 2px; }

/* ── Calibration "read sharpening" meter: uncertainty narrows per answer ── */
.rb-sharpen { padding: 22px 0 6px; }
.rb-sharpen-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 16px; }
.rb-sharpen-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rb-ink-3); }
.rb-sharpen-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rb-accent); font-weight: 600; }
.rb-sharpen-track {
  position: relative; height: 44px;
  background: linear-gradient(to right, rgba(26,104,56,0.06), rgba(1,0,72,0.05) 58%, rgba(168,40,24,0.08));
  border: 1px solid var(--rb-line); border-radius: 3px; overflow: hidden;
}
.rb-sharpen-band {
  position: absolute; top: -1px; bottom: -1px; left: 9%; width: 78%;
  background: rgba(1,0,72,0.10);
  border-left: 1.5px solid rgba(1,0,72,0.35); border-right: 1.5px solid rgba(1,0,72,0.35);
  transition: left 0.55s cubic-bezier(.4,0,.2,1), width 0.55s cubic-bezier(.4,0,.2,1), background 0.4s ease;
}
.rb-sharpen-band.is-mapped { background: rgba(1,0,72,0.18); }
.rb-sharpen-mark { position: absolute; top: 0; bottom: 0; left: 48%; width: 2px; margin-left: -1px; background: var(--rb-accent); }
.rb-sharpen-mark::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--rb-accent); opacity: 0; transition: opacity 0.4s ease;
}
.rb-sharpen-band.is-mapped ~ .rb-sharpen-mark::before { opacity: 1; box-shadow: 0 0 0 4px rgba(1,0,72,0.14); }
.rb-sharpen-thresh { position: absolute; top: 0; bottom: 0; left: 62%; border-left: 1px dashed rgba(168,40,24,0.5); }
.rb-sharpen-axis { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--rb-ink-3); }
.rb-sharpen-axis .mid { color: var(--rb-crim); }

/* drop the left doc-rail on these worker pages (rb uses no rail) */
.rb .doc-rail { display: none !important; }
.rb .doc-section { padding-left: 0 !important; padding-right: 0 !important; }
.rb .doc-masthead { padding-left: 0 !important; padding-right: 0 !important; }

/* neutralize the paper-document shell; constrain to the rb column */
.rb .result-wrap {
  max-width: 1080px; margin: 0 auto;
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 0 48px !important;
}
.rb .result-wrap::before, .rb .result-wrap::after { display: none !important; }
.rb .doc-footer { border-top-color: var(--rb-line) !important; color: var(--rb-ink-3) !important; margin-top: 52px !important; }
@media (max-width: 720px) { .rb .result-wrap { padding: 0 24px !important; } }

@media (max-width: 720px) {
  .rb-field { flex-direction: column; }
  .rb-proto { padding: 18px 0 0 22px; }
  .rb-submit { padding: 18px; }
  .rb-step { grid-template-columns: 44px 1fr; }
  .rb-step-dur { grid-column: 2; text-align: left; padding-top: 0; }
}
