/* ==========================================================================
   pslove — AI Opportunity Portfolio · Blood-skinned stylesheet
   Forked from styles.css. Same structural classes (the render JS is shared);
   Blood brand tokens + no outlined boxes. Color is semantic state, never
   decoration. The deterministic layer wears Blood crimson — the rules are
   the point, so they get the brand colour.
   ========================================================================== */

:root {
  --bg: #FAF4EE;          /* warm bone */
  --bg-2: #F1E7DC;        /* deeper cream tint */
  --ink: #1B1210;         /* warm near-black */
  --ink-2: #3A2C27;
  --muted: #8B776C;       /* warm taupe */
  --muted-2: #AC9C90;
  --rule: #E6D8CB;
  --rule-soft: #EFE5D9;

  --accent: #C20D2E;      /* Blood crimson */
  --ok:     #1F6B4A;      /* deep green */
  --warn:   #B0641C;      /* warm ochre */
  --danger: #C20D2E;      /* Blood crimson — the refusal colour */
  --ok-soft: #DCEAE1;
  --warn-soft: #F4E5CF;
  --danger-soft: #F6DAD9;

  --display: 'Archivo', 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans:    'Inter Tight', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max-wide: 1180px;
  --max-prose: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* Utility ---------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  margin: 0;
}
.k-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}

/* ==========================================================================
   Header
   ========================================================================== */
header.page {
  border-bottom: 1px solid var(--rule);
  padding: 24px 28px 22px;
  background: var(--bg);
}
header.page .inner { max-width: var(--max-wide); margin: 0 auto; }
header.page .eyebrow.brand {
  color: var(--accent); font-weight: 700; letter-spacing: 0.16em;
  margin-bottom: 9px;
}
header.page h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 33px; line-height: 1.0;
  letter-spacing: -0.028em; font-weight: 800;
}
header.page .header-meta {
  margin-top: 11px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
header.page .by {
  margin: 0; font-size: 12.5px; color: var(--muted); font-family: var(--mono);
  letter-spacing: 0.01em;
}
header.page .by code {
  background: var(--bg-2); padding: 1px 5px; border-radius: 3px;
  font-size: 11.5px; color: var(--ink);
}
header.page nav {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}
header.page nav a { color: var(--muted); text-decoration: none; margin-left: 22px; }
header.page nav a:hover { color: var(--accent); }

/* ==========================================================================
   Main layout
   ========================================================================== */
main { max-width: var(--max-wide); margin: 0 auto; padding: 34px 28px 80px; }
section { margin-bottom: 36px; }

/* ==========================================================================
   Hero / intake
   ========================================================================== */
.hero {
  background: transparent;
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.hero .thesis {
  font-family: var(--display);
  font-size: 27px; line-height: 1.22; font-weight: 600; letter-spacing: -0.022em;
  margin: 0 0 14px; color: var(--ink);
  text-wrap: balance; max-width: 940px;
}
.hero .thesis em { font-style: normal; }
.hero .thesis .mark {
  background: linear-gradient(180deg, transparent 58%, rgba(194, 13, 46, 0.18) 58%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .what {
  font-size: 15.5px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 28px; max-width: 760px;
  text-wrap: pretty;
}

.intake { display: grid; gap: 18px; }
.intake .field { display: grid; gap: 6px; }
.intake label {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); font-weight: 600;
}
/* Underline inputs — no boxed fields. Editorial, not a form. */
.intake input[type="text"],
.intake textarea {
  width: 100%; padding: 8px 2px; border: none;
  border-bottom: 1.5px solid var(--rule); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.5;
  transition: border-color 0.12s;
}
.intake textarea { resize: vertical; min-height: 58px; }
.intake input::placeholder, .intake textarea::placeholder { color: var(--muted-2); }
.intake input:focus, .intake textarea:focus {
  outline: none; border-bottom-color: var(--accent); border-bottom-width: 1.5px;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg-2); font-size: 12px; color: var(--ink-2); cursor: pointer;
  font-family: var(--mono); letter-spacing: 0.01em;
  transition: background 0.12s, color 0.12s;
}
.chip:hover { background: #fff; color: var(--accent); }
.chip.active { background: var(--ink); color: var(--bg); }

.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 200px; }

.btn {
  padding: 10px 22px; border-radius: 3px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase;
  font-family: var(--mono);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover:not(:disabled) { background: transparent; color: var(--accent); border-color: var(--accent); }
.muted-note { font-size: 12.5px; color: var(--muted); margin: 0; font-family: var(--mono); }

/* ==========================================================================
   VERDICT
   ========================================================================== */
#result { margin-top: 0; }

/* Sample banner — no box; a left crimson rule + tint. */
.sample-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 28px;
}
.sample-banner .tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--ink); color: var(--bg);
  padding: 5px 9px; border-radius: 3px; white-space: nowrap;
}
.sample-banner .msg {
  flex: 1; min-width: 260px;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.sample-banner .try-own {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  padding: 8px 13px; border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.sample-banner .try-own:hover { background: var(--ink); color: var(--bg); }

.result-empty { margin-bottom: 8px; }
.result-empty .heading {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.result-empty .heading h2 {
  font-family: var(--display);
  font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin: 0;
}
.result-empty .heading .right {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
}
.result-empty-msg {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.02em; margin: 0; line-height: 1.6;
}

.verdict { margin: 0 0 44px; }
.verdict-head {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.verdict-band { background: var(--muted); border-radius: 2px; }
.verdict.PILOT_NOW           .verdict-band { background: var(--ok); }
.verdict.REDESIGN_WORKFLOW   .verdict-band { background: var(--warn); }
.verdict.FIX_READINESS_FIRST .verdict-band { background: var(--warn); }
.verdict.DO_NOT_PURSUE       .verdict-band { background: var(--danger); }

.verdict-head-content { display: grid; gap: 11px; padding: 2px 0; }
.verdict-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
}
.verdict-label .v-state {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  letter-spacing: 0.04em; margin-left: 10px; color: var(--ink);
}
.verdict.PILOT_NOW           .verdict-label .v-state { color: var(--ok); }
.verdict.REDESIGN_WORKFLOW   .verdict-label .v-state { color: var(--warn); }
.verdict.FIX_READINESS_FIRST .verdict-label .v-state { color: var(--warn); }
.verdict.DO_NOT_PURSUE       .verdict-label .v-state { color: var(--danger); }

.verdict-decision {
  font-family: var(--display);
  font-size: 44px; line-height: 1.04; font-weight: 700; letter-spacing: -0.03em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.verdict-quote {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 17px; line-height: 1.5; color: var(--muted);
  margin: 4px 0 0; max-width: 720px; position: relative;
}
.verdict-quote::before { content: "\201C"; margin-right: 2px; }
.verdict-quote::after  { content: "\201D"; margin-left: 2px; }

.verdict-meta-stack {
  display: grid; gap: 14px; padding: 4px 0;
  text-align: right; align-self: stretch; align-content: space-between;
  min-width: 160px;
}
.verdict-meta-row { display: grid; gap: 3px; }
.verdict-meta-row .lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.verdict-meta-row .val { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }

/* Override badge — no box. The rules-beat-the-model moment, stated plainly. */
.override-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.override-tag .arrow { color: var(--ink); font-weight: 700; }
.override-tag .from { text-decoration: line-through; color: var(--muted-2); }
.override-tag .to   { color: var(--danger); font-weight: 700; }
.verdict.PILOT_NOW         .override-tag .to { color: var(--ok); }
.verdict.REDESIGN_WORKFLOW .override-tag .to,
.verdict.FIX_READINESS_FIRST .override-tag .to { color: var(--warn); }

/* ==========================================================================
   KPI STRIP — ruled data strip, not boxes
   ========================================================================== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 36px;
}
.kpi {
  padding: 16px 18px 18px;
  border-right: 1px solid var(--rule);
  display: grid; gap: 6px; align-content: start; position: relative;
}
.kpi:last-child { border-right: none; }
.kpi .kpi-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.kpi .kpi-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); flex-shrink: 0;
}
.kpi.is-named .kpi-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.kpi .kpi-value {
  font-family: var(--display); font-size: 16px; line-height: 1.32;
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.kpi.expanded .kpi-value { -webkit-line-clamp: unset; overflow: visible; }
.kpi.is-empty .kpi-value { color: var(--muted-2); font-style: italic; font-weight: 400; }
.kpi .kpi-note { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 0; }
.kpi.kpi-clamped { cursor: pointer; }
.kpi .kpi-toggle {
  display: none; font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px;
}
.kpi.kpi-clamped .kpi-toggle { display: block; }
.kpi.kpi-clamped:hover .kpi-toggle { color: var(--accent); }

/* ==========================================================================
   PARTNER'S CALL — the diagnosis
   ========================================================================== */
.partners-call {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px;
  padding: 4px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.partners-call .ttl { display: grid; gap: 8px; align-content: start; }
.partners-call .ttl .eyebrow { margin: 0; }
.partners-call .ttl .friction-stack { display: grid; gap: 6px; margin-top: 4px; }
.friction-pill {
  display: grid; grid-template-columns: 78px 1fr; align-items: baseline; gap: 10px; padding: 0;
}
.friction-pill .tier {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.friction-pill .name {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em;
}
.partners-call .body p {
  font-family: var(--display); font-size: 22px; line-height: 1.4; font-weight: 400;
  margin: 0; max-width: 720px; letter-spacing: -0.014em; text-wrap: pretty;
}

/* ==========================================================================
   COMMITTEE READOUT
   ========================================================================== */
.committee {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px;
  padding: 0 0 28px; border-bottom: 1px solid var(--rule); margin-bottom: 28px;
}
.committee .ttl .eyebrow { margin-bottom: 8px; }
.committee .ttl .small { font-size: 12px; color: var(--muted); margin: 0; }
.committee .body { max-width: 720px; }
.committee .lede {
  font-family: var(--display);
  font-size: 19px; line-height: 1.42; font-weight: 600;
  letter-spacing: -0.012em; margin: 0 0 18px; color: var(--ink);
}
.committee .bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: b; }
.committee .bullets li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.committee .bullets li::before {
  content: counter(b, decimal-leading-zero); counter-increment: b;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--accent); padding-top: 2px;
}

/* ==========================================================================
   90-DAY PLAN — ink top-rules, no dots
   ========================================================================== */
.plan-90 { padding: 0 0 28px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.plan-90 .plan-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px;
}
.plan-90 .plan-head h3 {
  font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.018em; margin: 0;
}
.plan-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plan-phase { padding-top: 14px; border-top: 2px solid var(--ink); }
.plan-phase .node { display: none; }
.plan-phase .date {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin: 0 0 6px;
}
.plan-phase .title {
  font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.012em;
  margin: 0 0 10px; color: var(--ink);
}
.plan-phase .body { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ==========================================================================
   BETTER ASK — ink colour-block (not an outlined box)
   ========================================================================== */
.better-ask {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 0 0 8px; margin-bottom: 28px;
}
.better-ask .ttl .eyebrow { margin-bottom: 8px; }
.better-ask .ttl .small { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.better-ask .card {
  background: var(--ink); color: var(--bg); border-radius: 4px; padding: 22px 26px;
  font-family: var(--display); font-size: 18px; line-height: 1.45;
  letter-spacing: -0.01em; font-weight: 400; max-width: 760px; position: relative;
}
.better-ask .card::before {
  content: "\2192"; font-family: var(--mono); font-size: 13px; font-weight: 700;
  position: absolute; left: -22px; top: 26px; color: var(--accent);
}
@media (max-width: 760px) { .better-ask .card::before { display: none; } }

/* ==========================================================================
   PREREAD ACTIONS
   ========================================================================== */
.preread-actions { margin: 14px 0 36px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ==========================================================================
   SCORING DETAIL
   ========================================================================== */
details.scoring-detail { margin-top: 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.scoring-detail summary {
  cursor: pointer; padding: 14px 0;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.scoring-detail summary::-webkit-details-marker { display: none; }
details.scoring-detail summary:hover { color: var(--accent); }
details.scoring-detail summary .caret { font-size: 9px; transition: transform 0.15s; }
details.scoring-detail[open] summary .caret { transform: rotate(180deg); }
details.scoring-detail .body { padding: 14px 0 22px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }
.detail-block .section-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); font-weight: 600;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}

.facts-grid { display: grid; grid-template-columns: 1fr; gap: 0; font-size: 13px; line-height: 1.5; }
.facts-row {
  display: grid; grid-template-columns: 184px 52px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--rule-soft); align-items: baseline;
}
.facts-row:last-child { border-bottom: none; }
.facts-row .k { color: var(--ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.01em; font-weight: 500; }
.facts-row .y { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.facts-row .y.yes { color: var(--ok); }
.facts-row .y.no  { color: var(--danger); }
.facts-row .y.lvl { color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.facts-row .v { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.fires-list { display: grid; gap: 12px; }
.fire-row {
  padding: 11px 14px; background: var(--bg-2); border-radius: 3px;
  border-left: 3px solid var(--danger); display: grid; gap: 4px;
}
.fire-row .top { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.fire-row .id { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ink); }
.fire-row .meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.fire-row .reason { font-size: 13px; color: var(--ink-2); margin: 2px 0 0; line-height: 1.5; }
.no-fires { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }

.dim-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dim-table tr { border-bottom: 1px dashed var(--rule-soft); }
.dim-table tr:last-child { border-bottom: none; }
.dim-table th, .dim-table td { text-align: left; vertical-align: top; padding: 9px 8px 9px 0; }
.dim-table th { font-weight: 500; color: var(--ink); font-size: 12.5px; width: 38%; font-family: var(--mono); letter-spacing: 0.01em; }
.dim-table td.score { width: 60px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dim-table td.score .swatch { display: inline-block; width: 26px; height: 8px; border-radius: 1px; background: var(--rule); margin-right: 8px; vertical-align: middle; }
.dim-table td.score.low  { color: var(--danger); }
.dim-table td.score.low  .swatch { background: var(--danger); }
.dim-table td.score.med  { color: var(--warn); }
.dim-table td.score.med  .swatch { background: var(--warn); }
.dim-table td.score.high { color: var(--ok); }
.dim-table td.score.high .swatch { background: var(--ok); }
.dim-table td.evidence { color: var(--muted); line-height: 1.45; font-size: 12.5px; }

/* ==========================================================================
   METHOD — pipeline + kill-switches
   ========================================================================== */
#method { scroll-margin-top: 60px; margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
#method > .heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
#method > .heading h2 { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
#method > .heading .right { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* Pipeline — ruled columns, no outer box. */
.pipeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-bottom: 44px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: transparent;
}
.pipe-stage {
  padding: 16px 18px 18px; border-right: 1px solid var(--rule);
  display: grid; gap: 6px; align-content: start; position: relative;
}
.pipe-stage:last-child { border-right: none; }
.pipe-stage .tier {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700; padding: 2px 6px; border-radius: 2px; width: max-content;
}
.pipe-stage .tier.io      { background: var(--bg-2); color: var(--muted); }
.pipe-stage .tier.llm     { background: #EBE1D6; color: #6E5C53; }   /* warm neutral — no AI purple */
.pipe-stage .tier.rules   { background: var(--danger-soft); color: var(--danger); }  /* deterministic = Blood crimson */
.pipe-stage .tier.output  { background: var(--ink); color: var(--bg); }
.pipe-stage .name { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.014em; margin: 4px 0 4px; color: var(--ink); }
.pipe-stage .body { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0 0 6px; }
.pipe-stage .out {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.01em;
  padding-top: 8px; border-top: 1px dashed var(--rule); margin-top: auto;
}
.pipe-stage .out .lab { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 3px; font-weight: 600; }
.pipe-stage::after {
  content: "\2192"; position: absolute; right: -7px; top: 20px;
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  background: var(--bg); width: 14px; height: 16px;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.pipe-stage:last-child::after { display: none; }
@media (max-width: 880px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe-stage { border-right: none; border-bottom: 1px solid var(--rule); }
  .pipe-stage:last-child { border-bottom: none; }
  .pipe-stage::after { content: "\2193"; right: 16px; top: auto; bottom: -8px; }
}

/* Kill-switches table */
.killswitch-block { margin-bottom: 36px; }
.killswitch-block .block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.killswitch-block .block-head h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.014em; margin: 0; }
.killswitch-block .block-head .precedence { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }
.killswitch-block .precedence b { color: var(--accent); font-weight: 700; }

table.ks { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ks thead th {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); font-weight: 600;
  text-align: left; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink);
}
table.ks tbody tr { border-bottom: 1px dashed var(--rule); }
table.ks tbody tr:last-child { border-bottom: 1px solid var(--rule); }
table.ks tbody td { padding: 12px 12px 12px 0; vertical-align: top; font-size: 13px; line-height: 1.45; }
table.ks .id-cell { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink); width: 22%; }
table.ks .trigger-cell { width: 30%; color: var(--ink-2); }
table.ks .trigger-cell code { font-family: var(--mono); font-size: 11.5px; color: var(--ink); background: var(--bg-2); padding: 1px 5px; border-radius: 2px; white-space: nowrap; }
table.ks .forbid-cell, table.ks .force-cell { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }
table.ks .forbid-cell code, table.ks .force-cell code { display: inline-block; margin: 1px 4px 1px 0; padding: 2px 6px; border-radius: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; }
table.ks .forbid-cell code { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1px; }
table.ks .force-cell code { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer.page {
  border-top: 1px solid var(--rule); padding: 22px 28px 36px;
  color: var(--muted); font-size: 12.5px; font-family: var(--mono); letter-spacing: 0.01em;
}
footer.page .inner { max-width: var(--max-wide); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
footer.page a { color: var(--muted); }
footer.page a:hover { color: var(--accent); }

/* ==========================================================================
   Errors
   ========================================================================== */
.error {
  background: var(--danger-soft); color: var(--danger);
  padding: 11px 14px; border-radius: 3px; border-left: 3px solid var(--danger);
  font-size: 14px; margin-top: 12px; font-family: var(--mono);
}

/* ==========================================================================
   Tweaks dock
   ========================================================================== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  background: var(--ink); color: var(--bg); border-radius: 6px; padding: 14px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  box-shadow: 0 10px 32px rgba(27,18,16,0.22); display: none; min-width: 220px;
}
.tweaks.open { display: grid; gap: 12px; }
.tweaks .twk-head { display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; font-weight: 600; color: var(--muted-2); font-size: 10.5px; letter-spacing: 0.14em; }
.tweaks .twk-head button { background: transparent; border: none; color: var(--muted-2); font-size: 14px; cursor: pointer; }
.tweaks .twk-section { display: grid; gap: 6px; }
.tweaks .twk-label { color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.tweaks .twk-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.tweaks .twk-opt {
  background: transparent; color: var(--bg); border: 1px solid #4A3A35;
  padding: 6px 8px; border-radius: 3px; font-family: var(--mono);
  font-size: 10.5px; cursor: pointer; text-align: left; letter-spacing: 0.04em; text-transform: uppercase;
}
.tweaks .twk-opt:hover { border-color: var(--bg); }
.tweaks .twk-opt.active { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 780px) {
  .verdict-head { grid-template-columns: 5px 1fr; }
  .verdict-meta-stack { display: none; }
  .verdict-decision { font-size: 34px; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .partners-call, .committee, .better-ask { grid-template-columns: 1fr; gap: 14px; }
  .plan-track { grid-template-columns: 1fr; gap: 18px; }
  .plan-phase { padding-top: 14px !important; }
  header.page .inner { flex-direction: column; align-items: flex-start; }
  header.page nav a { margin-left: 0; margin-right: 18px; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  body { background: #fff; font-size: 11pt; color: #000; }
  header.page nav, .intake, .chips, .row, .verdict-meta-stack,
  details.scoring-detail, .preread-actions, footer.page, .tweaks,
  #method { display: none !important; }
  .hero { border: none; }
  main { padding: 0 14mm; }
}
