/* Trothward COMPOSED site (S331) — A+C composed = the site; B = the classroom.
   ONE visual register: the green-ledger (paper, deep pledge-green, ink) carried
   from the S326 Claude Design prototypes (the design authority). Type FACES are
   system stacks (self-contained: no external fonts, no trackers, no frameworks —
   the declared-restraint posture of the built variants); type SCALE and hierarchy
   follow the prototypes. 375-first; wider viewports enlarge, never redesign.
   Motion respects prefers-reduced-motion everywhere. */
:root {
  --paper: #f5f6f1;
  --card: #ffffff;
  --ink: #1c211c;
  --green: #1e6b3c;
  --green-dark: #0f4a27;
  --muted: #5f6b58;
  --faint: #8b947f;
  --soft: #e9ede1;
  --border: #cdd4c4;
  --border-dash: #aeb8a4;
  --dark: #1c211c;
  --dark-muted: #7d8a74;
  --dark-soft: #e9ede1;
  --shadow: rgba(30, 107, 60, 0.35);
  --sil: #40483c;
  --sil-soft: #8b947f;
  --sun: #cdd4a4;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --sans: -apple-system, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
img, video, svg { max-width: 100%; }
main { max-width: 60rem; margin: 0 auto; padding: 0 1rem 2.5rem; }

/* ---------- header ---------- */
header.site { padding: 1.1rem 1rem 0; max-width: 60rem; margin: 0 auto; }
header.site .bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  flex-wrap: wrap;
}
header.site .mark {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
}
header.site .eyebrow {
  font: 600 0.62rem/1 var(--mono); letter-spacing: 0.16em; color: var(--muted);
  text-transform: uppercase; white-space: nowrap;
}

/* ---------- the shared receipt/instrument family ---------- */
.gcard {
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: 0.9rem 1rem 0.75rem;
  position: relative;
  box-shadow: 6px 6px 0 var(--shadow);
}
.gcard .green-edge, .rcard .green-edge {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green);
}
.rcard {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  position: relative;
}
.card-eyebrow {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  font: 600 0.62rem/1.3 var(--mono); letter-spacing: 0.13em; color: var(--green);
  text-transform: uppercase;
}
.card-eyebrow .quiet { color: var(--faint); letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.chip-stamp {
  font: 700 0.62rem/1 var(--mono); color: #fff; background: var(--green);
  padding: 0.22rem 0.45rem; letter-spacing: 0.1em; white-space: nowrap; flex: none;
}
.card-title {
  font-family: var(--sans); font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  margin: 0.4rem 0 0;
}
.card-sub { font-size: 0.78rem; color: var(--muted); margin: 0.3rem 0 0; }

/* seal line + live chain chips (the verify.js contract classes) */
.seal-line {
  margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px dotted var(--border);
  font: 400 0.72rem/1.7 var(--mono); color: var(--faint); word-break: break-word;
}
code.chain-chip {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--border); border-bottom-width: 2px;
  padding: 0.12rem 0.4rem; word-break: break-all;
}
code.chain-chip.verifiable { cursor: pointer; border-color: var(--green); }
code.chain-chip.verifiable::after {
  content: " ⇢ verify"; font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  color: var(--green-dark); white-space: nowrap;
}
code.chain-chip.verifiable:hover, code.chain-chip.verifiable:focus-visible {
  background: #eef3ec; outline: 2px solid var(--green); outline-offset: 1px;
}
code.chain-chip.verifiable.busy::after { content: " … verifying"; color: var(--muted); }
.verify-result {
  font: 400 0.74rem/1.55 var(--mono); border-radius: 3px; padding: 0.5rem 0.7rem;
  margin: 0.45rem 0 0.1rem;
}
.verify-result.ok { background: #eaf2ec; border: 1px solid #b5cfbc; color: var(--green-dark); }
.verify-result.broken { background: #f7efe4; border: 1px solid #ddc79a; color: #6d5416; }
.verify-result.unknown { background: #efefec; border: 1px solid var(--border); color: var(--muted); }

/* ---------- fold rhythm + clause eyebrows ---------- */
.fold { padding: 1.9rem 0 0; }
.clause-head {
  font: 600 0.64rem/1.5 var(--mono); letter-spacing: 0.16em; color: var(--green);
  text-transform: uppercase; margin: 0 0 0.75rem;
}

/* ---------- fold 0 · the grant masthead ---------- */
.masthead { padding-top: 1.1rem; }
.grant-lines { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; line-height: 1.55; margin: 0.55rem 0 0; }
.grant-lines .maynot { color: var(--muted); margin-top: 0.35rem; }
.mast-words { padding: 1.35rem 0 0; }
.mast-words h1 {
  font-family: var(--sans); font-weight: 700; font-size: 1.55rem; line-height: 1.22;
  margin: 0; max-width: 22ch;
}
.mast-sub { font-size: 0.78rem; color: var(--muted); margin: 0.55rem 0 0; max-width: 40ch; }

/* ---------- the honest nudge + the refusal (client-side render, mints nothing) ---------- */
.nudge {
  margin: 1.15rem 0 0; background: var(--soft); border: 1px dashed var(--border-dash);
  padding: 0.8rem 0.95rem; display: flex; align-items: center; justify-content: space-between;
  gap: 0.7rem; flex-wrap: wrap;
}
.nudge-lead { font-size: 0.76rem; color: var(--sil); margin: 0; }
.nudge-lead .quiet { color: var(--faint); }
button.nudge-btn {
  flex: none; font: 700 0.72rem/1.35 var(--sans); letter-spacing: 0.04em;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--ink);
  padding: 0.65rem 0.85rem; cursor: pointer; text-transform: uppercase;
}
button.nudge-btn:hover { background: var(--paper); }
button.nudge-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
button.nudge-btn.asked { color: var(--muted); border-color: var(--border); cursor: default; }
.refusal-card {
  background: var(--card); border: 1.5px solid var(--ink); margin-top: 0.85rem;
  padding: 0.95rem 1rem 0.7rem 1.15rem; position: relative; box-shadow: 6px 6px 0 var(--shadow);
}
.refusal-card[hidden] { display: none; }
.refusal-edge {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: repeating-linear-gradient(45deg, var(--green) 0 6px, #fff 6px 12px);
}
.refused-stamp {
  font: 700 0.7rem/1 var(--mono); color: #fff; background: var(--green);
  padding: 0.3rem 0.5rem; letter-spacing: 0.12em; white-space: nowrap; flex: none;
  transform: rotate(-3deg);
}
.refusal-card .card-title { max-width: 20ch; }
.refusal-code { font: 500 0.74rem/1.4 var(--mono); color: var(--green); margin: 0.45rem 0 0; }
.refusal-note { font-size: 0.76rem; color: var(--muted); margin: 0.4rem 0 0; }
.refusal-honest {
  font-size: 0.72rem; color: var(--muted); margin: 0.6rem 0 0; padding-top: 0.5rem;
  border-top: 1px dotted var(--border);
}
@keyframes stampIn {
  0% { transform: scale(1.9) rotate(-8deg); opacity: 0; }
  70% { transform: scale(0.96) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}
@keyframes revealCard { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.refusal-card:not([hidden]) { animation: revealCard 0.35s ease-out; }
.refusal-card:not([hidden]) .refused-stamp { animation: stampIn 0.45s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .refusal-card:not([hidden]), .refusal-card:not([hidden]) .refused-stamp { animation: none; }
}

/* ---------- clause 1 · the triad ---------- */
.triad { display: flex; flex-direction: column; gap: 0.6rem; }
.triad .rcard { padding-left: 1.15rem; }
.triad .card-title { font-size: 0.98rem; }
.unfold-cta {
  display: inline-block; margin-top: 0.6rem; font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.1em; color: var(--green); border: 1px solid var(--green);
  padding: 0.55rem 0.75rem; text-transform: uppercase;
}
.unfold-cta:hover { background: #eef3ec; text-decoration: none; }

/* ---------- the classroom door ---------- */
.class-door {
  margin-top: 1.4rem; background: var(--dark); color: var(--paper);
  padding: 1rem 1.1rem 1.1rem;
}
.class-door .card-eyebrow { color: #79a98b; }
.class-door .card-title { color: var(--paper); }
.class-door .card-sub { color: var(--dark-muted); }
.class-door .unfold-cta { color: var(--paper); border-color: var(--green); background: var(--green); }
.class-door .unfold-cta:hover { background: var(--green-dark); }

/* ---------- clause 2 · the film (tap-to-play ONLY) ---------- */
.film-frame {
  position: relative; background: var(--dark); border: 1px solid var(--border);
  aspect-ratio: 16 / 9; overflow: hidden;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.7rem; background: rgba(28, 33, 28, 0.55);
  border: 0; width: 100%; cursor: pointer; padding: 0;
}
.film-cover:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.film-cover .ring {
  width: 52px; height: 52px; border: 2px solid var(--dark-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.film-cover .tri {
  width: 0; height: 0; border-left: 16px solid var(--dark-soft);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px;
}
.film-cover .line {
  font: 400 0.66rem/1.5 var(--mono); color: #b9c4b0; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0 1rem; text-align: center;
}
.film-honest { font-size: 0.74rem; color: var(--muted); margin: 0.6rem 0 0; }

/* ---------- clause 3 · the honest tiles ---------- */
.tiles { display: flex; flex-direction: column; gap: 0.55rem; }
.tile { flex: 1 1 0; background: var(--card); border: 1px solid var(--border); padding: 0.8rem 0.85rem; }
.tile-n { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; line-height: 1; display: block; }
.tile-l { font-size: 0.7rem; color: var(--muted); line-height: 1.5; display: block; margin-top: 0.35rem; }
.unproven-call {
  margin-top: 0.95rem; background: var(--soft); border-left: 3px solid var(--green);
  padding: 0.75rem 0.9rem; font-size: 0.76rem; color: var(--sil);
}

/* ---------- footer (dark, the grant kept) ---------- */
footer.site { background: var(--dark); margin-top: 2.4rem; }
footer.site .inner { max-width: 60rem; margin: 0 auto; padding: 1.7rem 1rem 1.6rem; }
.grant-close {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem; line-height: 1.4;
  color: var(--paper); margin: 0; max-width: 30ch;
}
.check-cta {
  display: inline-block; margin-top: 0.8rem; font: 600 0.7rem/1 var(--mono);
  letter-spacing: 0.14em; color: var(--paper); background: var(--green);
  border: 1px solid var(--green); padding: 0.65rem 0.9rem; text-transform: uppercase;
}
.check-cta:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.foot-chains { font: 400 0.66rem/1.8 var(--mono); color: var(--dark-muted); margin: 1rem 0 0; word-break: break-word; }
.foot-nav { margin: 1rem 0 0; font-size: 0.74rem; }
.foot-nav a { color: var(--dark-soft); margin-right: 1.1rem; }
footer.site .honesty {
  border-top: 1px solid #39413a; margin-top: 1.1rem; padding-top: 0.95rem;
  font-size: 0.74rem; line-height: 1.65; color: #b9c4b0;
}
footer.site .honesty strong { color: var(--paper); }
footer.site .steward {
  font-size: 0.74rem; line-height: 1.65; color: #b9c4b0; margin: 0.8rem 0 0;
}
footer.site .steward strong { color: var(--paper); }

/* ==========================================================================
   /receipt — Variant C one click down: the receipt, opened (hero COMPRESSED).
   ========================================================================== */
.rc-open-label {
  font: 600 0.62rem/1.5 var(--mono); letter-spacing: 0.16em; color: var(--muted);
  text-transform: uppercase; margin: 1.2rem 0 0.6rem;
}
.rc-hero { text-align: center; padding: 1rem 1rem 0.75rem; }
.rc-hero .rc-mark { font: 700 0.66rem/1 var(--mono); letter-spacing: 0.24em; color: var(--faint); }
.rc-hero .card-title { font-size: 1.25rem; margin-top: 0.6rem; }
.rc-hero .sealed-stamp { display: inline-block; margin-top: 0.7rem; transform: rotate(-3deg); }
.rc-hero .seal-line { text-align: left; }
.unfold-hint {
  font: 500 0.66rem/1 var(--mono); color: var(--faint); letter-spacing: 0.14em;
  text-align: center; margin: 1.1rem 0 0; text-transform: uppercase;
}
.panel-strip { display: flex; flex-direction: column; margin-top: 1.2rem; }
.panel-label {
  background: var(--soft); border: 1px solid var(--border); padding: 0.45rem 0.85rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  font: 600 0.6rem/1.4 var(--mono); letter-spacing: 0.13em; color: var(--muted);
  text-transform: uppercase;
}
.panel-label .quiet { color: var(--faint); letter-spacing: 0.03em; text-transform: none; font-weight: 400; text-align: right; }
.panel-body { background: var(--card); border: 1px solid var(--border); border-top: 0; padding: 0.85rem 1rem; position: relative; }
.panel-body.edge-green { padding-left: 1.15rem; }
.panel-body .acts-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.panel-body .acts-list li { margin: 0.4rem 0; font-size: 0.8rem; }
.panel-body .acts-list strong { font-family: var(--sans); }
.grant-ul { list-style: none; margin: 0.45rem 0 0; padding: 0; }
.grant-ul li { margin: 0.42rem 0; font-size: 0.8rem; }
.grant-ul strong { font-family: var(--sans); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--green-dark); }
.name-line { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin: 0.45rem 0 0; }
.name-line u { text-decoration: none; border-bottom: 1px solid var(--ink); padding-right: 1.6rem; }
.offer-row { display: flex; justify-content: space-between; gap: 0.7rem; align-items: flex-start; margin-top: 0.4rem; }
.offer-row .card-title { margin-top: 0; max-width: 20ch; }
.unproven-stamp {
  flex: none; font: 700 0.6rem/1.35 var(--mono); color: var(--green);
  border: 2px solid var(--green); padding: 0.35rem 0.45rem; letter-spacing: 0.08em;
  transform: rotate(-3deg); text-align: center;
}
/* the unfold motion — panels fold down as they enter; reduced-motion/no-JS renders open */
.js .panel { transform: perspective(800px) rotateX(-55deg); transform-origin: top; opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease; }
.js .panel.open { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .panel { transform: none; opacity: 1; transition: none; }
}
.refold { background: var(--dark); margin: 2.2rem -1rem 0; padding: 2.2rem 1rem 2rem; }
.refold-label {
  font: 600 0.62rem/1 var(--mono); letter-spacing: 0.18em; color: var(--dark-muted);
  text-transform: uppercase; margin: 0 0 1.1rem;
}
.refold-stack { position: relative; max-width: 26rem; margin: 0 auto; }
.refold-stack .sheet {
  position: absolute; border: 1px solid var(--border); background: var(--soft);
}
.refold-stack .sheet.s1 { left: 10px; right: 10px; top: 14px; bottom: -8px; transform: rotate(2deg); }
.refold-stack .sheet.s2 { left: 5px; right: 5px; top: 7px; bottom: -4px; background: var(--paper); transform: rotate(-1.2deg); }
.refold-stack .gcard { text-align: center; }
.refold-verify { font: 400 0.68rem/1.7 var(--mono); color: var(--dark-muted); text-align: center; margin: 1.4rem auto 0; max-width: 32ch; word-break: break-word; }
.back-cta {
  display: block; width: fit-content; margin: 1.1rem auto 0; font: 600 0.68rem/1.4 var(--mono);
  letter-spacing: 0.12em; color: var(--paper); background: var(--green); padding: 0.7rem 0.95rem;
  text-transform: uppercase; text-align: center;
}
.back-cta:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

/* ==========================================================================
   /day — the classroom: multi-persona by CONFIG (the time-locked day, THE STOP).
   ========================================================================== */
.day-head h1 { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; line-height: 1.25; margin: 1.1rem 0 0; }
.day-sub { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; max-width: 44ch; }
.picker {
  margin: 1rem 0 0; background: var(--soft); border: 1px dashed var(--border-dash);
  padding: 0.7rem 0.9rem; font-size: 0.74rem; color: var(--sil);
}
.picker .picker-lead { font: 600 0.62rem/1.6 var(--mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); display: block; }
.picker a { margin-right: 0.9rem; }
.picker .here { color: var(--ink); font-weight: 700; }
.persona-cards { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.1rem; }
.persona-cards .rcard { padding-left: 1.15rem; }
.day-strip { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.3rem; }
.move-eyebrow {
  font: 700 0.58rem/1 var(--mono); letter-spacing: 0.16em; color: var(--faint);
  text-transform: uppercase; margin: 0.9rem 0 -0.25rem;
}
.step-card { padding-left: 1.15rem; }
.step-card .stamp-line { margin: 0.45rem 0 0; }
.stamp-pill {
  display: inline-block; font: 700 0.62rem/1 var(--mono); letter-spacing: 0.08em;
  padding: 0.24rem 0.5rem; white-space: nowrap;
}
.stamp-pill.done { color: #fff; background: var(--green); }
.stamp-pill.held { color: #6d5416; background: #f4ecd8; border: 1px solid #ddc79a; }
.stamp-pill.refusedp { color: #fff; background: var(--green); }
.stamp-pill.granted { color: var(--green-dark); background: #eaf2ec; border: 1px solid #b5cfbc; }
.held-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #c9a05a; }
.hatch-edge {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: repeating-linear-gradient(45deg, var(--green) 0 6px, #fff 6px 12px);
}
/* the human-layer scene slot (Leg C): fixed-aspect, <video>-ready; v1 = stylized stills.
   Real footage drops into .scene-media without relayout (tap-to-play only, disclosed). */
.scene-slot { margin: 0.35rem 0; }
.scene-media {
  position: relative; aspect-ratio: 400 / 220; background: var(--soft);
  border: 1px solid var(--border); overflow: hidden;
}
.scene-media svg, .scene-media video { display: block; width: 100%; height: 100%; }
.scene-cap { display: flex; justify-content: space-between; gap: 0.6rem; font: 400 0.66rem/1.6 var(--mono); color: var(--faint); margin-top: 0.25rem; flex-wrap: wrap; }
.scene-cap .disclose { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.58rem; }
/* THE STOP — the time-lock */
.stop-card { border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding-left: 1.15rem; }
.choice { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.choice button {
  font: 700 0.78rem/1 var(--sans); letter-spacing: 0.08em; padding: 0.75rem 1.1rem;
  cursor: pointer; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
}
.choice button.ghost { background: var(--card); color: var(--ink); }
.choice button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.chose { font-size: 0.76rem; color: var(--green-dark); margin: 0.6rem 0 0; }
.stop-note { font-size: 0.72rem; color: var(--muted); margin: 0.7rem 0 0; padding-top: 0.55rem; border-top: 1px dotted var(--border); }
.day-after[hidden] { display: none; }
.still-wait { font-size: 0.78rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }
/* the day, closed */
.stack-block { margin-top: 1.3rem; }
.stack-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.stack-list li {
  background: var(--card); border: 1px solid var(--border); padding: 0.5rem 0.75rem;
  margin: 0.35rem 0; font-size: 0.76rem; display: flex; gap: 0.55rem; align-items: baseline;
  flex-wrap: wrap;
}
.closing { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; margin: 0.9rem 0 0; }
.meter-note { font-size: 0.74rem; color: var(--muted); margin: 0.35rem 0 0; }
.tier-strip {
  margin-top: 1.4rem; background: var(--soft); border-left: 3px solid var(--green);
  padding: 0.8rem 0.95rem; font-size: 0.76rem; color: var(--sil);
}
.tier-strip strong { font-family: var(--sans); }
.tier-strip .tier-foot { color: var(--faint); font-size: 0.7rem; margin-top: 0.35rem; display: block; }
.ledger-note { font-size: 0.7rem; color: var(--faint); margin: 0.9rem 0 0; }

/* ==========================================================================
   /services — the catalog page (BRaaS-emitted, read-only)
   ========================================================================== */
.svc h1 { font-family: var(--sans); font-weight: 700; font-size: 1.55rem; line-height: 1.22; margin: 1.1rem 0 0.6rem; }
.svc h2 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 1.7rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--soft); }
.svc h3 { font-family: var(--sans); font-weight: 700; font-size: 0.92rem; margin: 1.2rem 0 0.4rem; }
.svc p { font-size: 0.82rem; margin: 0 0 0.85rem; max-width: 62ch; }
.svc .prov { color: var(--muted); font-size: 0.76rem; }
/* the wide catalog table scrolls inside its own box, never the page */
.svc table {
  border-collapse: collapse; width: 100%; margin: 0.9rem 0; font-size: 0.76rem;
  background: var(--card); display: block; overflow-x: auto;
}
.svc th, .svc td { border: 1px solid var(--border); padding: 0.45rem 0.65rem; text-align: left; vertical-align: top; }
.svc th { background: var(--soft); font-family: var(--sans); }
.chip {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font: 700 0.66rem/1.6 var(--sans); white-space: nowrap;
}
.chip.live { background: #eaf2ec; color: var(--green-dark); border: 1px solid #b5cfbc; }
.chip.preview { background: #f4efe4; color: #7a5f1e; border: 1px solid #e0d3ae; }
.live-pipe { display: flex; flex-direction: column; gap: 0.2rem; margin: 1rem 0 1.2rem; }
.pipe-box { background: var(--card); border: 1px solid var(--border); padding: 0.5rem 0.75rem; font-size: 0.74rem; }
.pipe-box.rule-box { border-left: 3px solid var(--green); }
.pipe-box code { font-size: 0.72rem; background: var(--paper); border: 1px solid var(--border); padding: 0.08rem 0.3rem; word-break: break-all; }
.pipe-box span { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 0.1rem; }
.pipe-arrow { align-self: center; color: var(--green-dark); transform: rotate(90deg); }
.chip.pipe-chip { align-self: flex-start; margin-top: 0.25rem; }

/* ==========================================================================
   wider viewports — the enlargement, never the redesign
   ========================================================================== */
@media (min-width: 768px) {
  body { font-size: 1rem; }
  main, header.site { padding-left: 1.5rem; padding-right: 1.5rem; }
  .live-pipe { flex-direction: row; align-items: center; }
  .pipe-arrow { transform: none; }
  .chip.pipe-chip { align-self: center; margin: 0 0 0 0.5rem; }
  .mast-words h1 { font-size: 2rem; }
  .triad { flex-direction: row; align-items: stretch; }
  .triad .rcard { flex: 1 1 0; }
  .tiles { flex-direction: row; }
  .tile-n { font-size: 1.8rem; }
  .persona-cards { flex-direction: row; }
  .persona-cards .rcard { flex: 1 1 0; }
  .rc-hero .card-title { font-size: 1.5rem; }
  .refold { margin-left: -1.5rem; margin-right: -1.5rem; }
}
@media (min-width: 1024px) {
  .masthead { display: flex; gap: 2.2rem; align-items: flex-start; }
  .masthead .mast-instrument { flex: 1 1 52%; order: 2; }
  .masthead .mast-words { flex: 1 1 48%; order: 1; padding-top: 0.4rem; }
  .mast-words h1 { font-size: 2.4rem; }
  .day-strip { max-width: 44rem; margin-left: auto; margin-right: auto; }
}
