/* v3-pages.css — shared primitives for the nine v3 content pages.
   Additive only: never overrides an existing rule, only adds classes the v3
   DESIGN-FIT specs call for. Loaded AFTER faq.css on v3 pages only.
   Owner: orchestrator (W0). Page agents add page-unique rules to their own
   css/v3-<slug>.css, they do NOT edit this file. */

/* ---- readable measure for long-form body copy on content pages ---- */
.v3 .signal-copy { max-width: 62ch; }
.v3 .signal-copy p + p { margin-top: 1.05rem; }
.v3 .alethia .lead { max-width: 68ch; }

/* two hero sub-lines must not read as one block (spec B1, renew) */
.hero-inner .hero-sub + .hero-sub { margin-top: .6rem; opacity: .82; }

/* ---- micro: an aside/estimate line, visually subordinate ---- */
.v3 .micro,
.v3 .alethia .micro {
  font-size: .82rem;
  color: var(--text-2);
  letter-spacing: .01em;
  margin-top: .5rem;
}

/* ---- code.formula: the single calculation line, monospace, full width ---- */
.v3 code.formula {
  display: block;
  font-family: var(--font-mono);
  font-size: .95rem;
  padding: .75rem 1rem;
  margin: 1rem 0;
  border-left: 2px solid var(--sky);
  background: rgba(169, 196, 222, .07);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow-x: auto;
}
.alethia .light code.formula { background: rgba(28, 53, 71, .06); }

/* ---- worksheet: a diagnose question with room to write (spec B3) ---- */
.v3 .worksheet { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.v3 .worksheet > li {
  border-top: var(--hairline);
  padding: 1.15rem 0 1.45rem;
}
.v3 .worksheet > li:last-child { border-bottom: var(--hairline); }
.v3 .worksheet h3 {
  font-size: var(--step-h3);
  font-weight: var(--w-regular);
  letter-spacing: var(--track-tight);
  margin: 0 0 .4rem;
}
.v3 .worksheet .rule {
  display: block;
  height: 1px;
  margin-top: 1.4rem;
  background: rgba(169, 196, 222, .22);
}
.alethia .light .worksheet .rule { background: rgba(28, 53, 71, .18); }

/* ---- ol.steps: 01..0N cascade numbering inside a bento cell (spec B5) ---- */
.v3 .cell ol.steps { counter-reset: s; list-style: none; padding: 0; margin: .9rem 0 0; }
.v3 .cell ol.steps li {
  counter-increment: s;
  display: flex;
  gap: .7rem;
  padding: .5rem 0;
  border-top: var(--hairline);
  font-size: .93rem;
  line-height: 1.5;
}
.v3 .cell ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--sky);
  flex: 0 0 auto;
  padding-top: .18em;
}
.v3 .cell .step-letter {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: var(--track-label);
}
.v3 .cell .cell-link {
  display: inline-block;
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--sky);
}

/* ---- governance-panel: data-handling guidance. MUST render ABOVE the
       prompt block it guards (dealbreaker rule, ledger e6014122e61c). ---- */
.v3 .governance-panel {
  border: 1px solid rgba(201, 154, 62, .45);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
  background: rgba(201, 154, 62, .06);
}
.v3 .governance-panel .gov-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.v3 .governance-panel p { font-size: .92rem; line-height: 1.6; margin: 0 0 .5rem; }
.v3 .governance-panel p:last-child { margin-bottom: 0; }

/* ---- prompt-block: the runnable AI instruction ---- */
.v3 .prompt-block { margin: 0 0 1.25rem; }
.v3 .prompt-block pre {
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: var(--hairline);
  background: rgba(12, 26, 38, .55);
  color: var(--pale);
  overflow-x: auto;
  margin: 0;
}
.v3 .prompt-copy {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--pale);
  background: transparent;
  border: 1px solid rgba(169, 196, 222, .3);
  border-radius: 999px;
  padding: .5em 1.2em;
  cursor: pointer;
}
.v3 .prompt-copy:hover { border-color: var(--sky); color: var(--sky); }
.v3 .prompt-copy[data-copied="1"] { border-color: var(--teal); color: var(--teal); }

/* ---- boundary-note: the honest limit. Muted, deliberately quiet, no CTA. ---- */
.v3 .boundary-note {
  padding: var(--space-section) var(--gutter);
  background: rgba(60, 87, 104, .10);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.v3 .boundary-note .inner { max-width: 62ch; margin: 0 auto; }
.v3 .boundary-note h2 {
  font-size: var(--step-h3);
  font-weight: var(--w-regular);
  letter-spacing: var(--track-tight);
  margin: 0 0 .8rem;
}
.v3 .boundary-note p { font-size: .96rem; line-height: 1.7; color: var(--text-2); }

/* ---- links-row: internal links as full bridge sentences, not naked anchors ---- */
.v3 .links-row { max-width: 68ch; margin: 0 auto; padding: 0; list-style: none; }
.v3 .links-row li { padding: .75rem 0; border-top: var(--hairline); font-size: .95rem; line-height: 1.6; }
.v3 .links-row li:last-child { border-bottom: var(--hairline); }

/* ---- data figures (CBS-style bento cell where the number IS the argument) ---- */
.v3 .bento .cell .figure {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: var(--w-light);
  letter-spacing: var(--track-tight);
  color: var(--sky);
  line-height: 1.05;
  margin-bottom: .35rem;
}
.v3 .source-line {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: .9rem;
}

/* ---- 375px safety: nothing on a v3 page may push the page sideways ---- */
@media (max-width: 480px) {
  .v3 .prompt-block pre { font-size: .78rem; padding: 1rem; }
  .v3 code.formula { font-size: .84rem; }
  .v3 .cell ol.steps li { font-size: .88rem; }
}
