/* ── Decks — print-optimized HTML slides (2026-05-18) ──────────────────
   Branding mirrors the attached TDAP_9slides.pdf:
   - Orange top stripe (~#ec6f1f)
   - Navy heads (#1a3252 to #0f2542)
   - Severity-colored card left-borders (red/amber/teal/green)
   - Primus + CRTA logos top + footer
   - Source citations (S15 etc.) in muted gray inline

   Each <section class="deck-slide"> renders as one page when printed.
   Browser Print → Save as PDF produces a clean downloadable file.
   ────────────────────────────────────────────────────────────────────── */

:root {
  --deck-orange:        #ec6f1f;
  --deck-navy:          #1a3252;
  --deck-navy-deep:     #0f2542;
  --deck-body:          #374151;
  --deck-muted:         #6b7280;
  --deck-faint:         #9ca3af;
  --deck-rule:          #e5e7eb;
  --deck-card-bg:       #f8f9fa;
  --deck-sev-critical:  #c1432f;
  --deck-sev-high:      #c27a2c;
  --deck-sev-confirmed: #2c8b89;
  --deck-sev-positive:  #3a8a55;
}

/* ── Index page (card grid of the 4 decks) ─────────────────────────── */
.decks-index { padding: 1.4rem 0 2rem; }
.decks-index-header { margin: 0 0 1.4rem; }
.decks-index-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem; font-weight: 500;
  color: #0f172a;
}
.decks-index-header p {
  margin: 0;
  color: var(--deck-body);
  font-size: 0.9rem; line-height: 1.55;
  max-width: 50rem;
}
.decks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.95rem;
  margin-top: 1.4rem;
}
.decks-card {
  background: white;
  border: 1px solid var(--deck-rule);
  border-top: 3px solid var(--deck-orange);
  border-radius: 5px;
  padding: 1rem 1.1rem 1.1rem;
  display: flex; flex-direction: column;
}
.decks-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem; font-weight: 500;
  color: var(--deck-navy);
}
.decks-card-sub {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--deck-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.decks-card-blurb {
  margin: 0 0 0.95rem;
  color: var(--deck-body);
  font-size: 0.82rem; line-height: 1.55;
  flex: 1;
}
.decks-card-actions {
  display: flex; gap: 0.4rem;
}
.deck-btn-primary, .deck-btn-secondary {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem; font-weight: 500;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: inherit;
}
.deck-btn-primary {
  background: var(--deck-orange);
  color: white;
  border-color: var(--deck-orange);
}
.deck-btn-primary:hover { background: #d65f10; border-color: #d65f10; }
.deck-btn-secondary {
  background: white;
  color: var(--deck-navy);
  border-color: var(--deck-rule);
}
.deck-btn-secondary:hover { border-color: var(--deck-navy); }

/* ── Deck slide (the printable unit) ──────────────────────────────── */
.deck-wrap {
  background: #f1f5f9;
  padding: 1rem 0 3rem;
}
.deck-toolbar {
  position: sticky; top: 0; z-index: 100;
  background: white;
  border-bottom: 1px solid var(--deck-rule);
  padding: 0.6rem 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--deck-body);
  margin-bottom: 1.2rem;
}
.deck-toolbar-title { font-weight: 500; color: var(--deck-navy); flex: 1; }

/* 16:9 presentation slide (2026-05-18 rebuild — was letter-landscape
   document-shaped before, which let content overflow into scrolling).
   13.333in × 7.5in = true 16:9. Each slide is a FIXED viewport — never
   scrolls. Content that overflows gets clipped and is a design bug. */
.deck-slide {
  width: 13.333in;
  height: 7.5in;
  margin: 0 auto 1.2rem;
  padding: 0;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  position: relative;
  page-break-after: always;
  overflow: hidden;             /* NO scrolling within a slide. Ever. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Orange top stripe (the brand band) */
.deck-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: var(--deck-orange);
}

/* Document classification mark on every slide. CRTA's "Restricted —
   Legal" tier is the appropriate stamp for privileged work product; the
   small red label sits in the upper-right under the orange brand stripe
   so it's visible at a glance without competing with slide content. */
.deck-slide::after {
  content: "CONDUENT CONFIDENTIAL · RESTRICTED · LEGAL";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #991b1b;
  background: #fee2e2;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid #fca5a5;
  z-index: 10;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  pointer-events: none;
}

/* Slide content area (between the stripe and footer) */
.deck-body-area {
  flex: 1;
  padding: 0.45in 0.6in 0.3in;
  display: flex; flex-direction: column;
}

.deck-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--deck-orange);
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}
.deck-title {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1.18;
}
.deck-subtitle {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--deck-body);
  line-height: 1.5;
  max-width: 62em;
}
.deck-rule {
  border: 0;
  border-top: 1px solid var(--deck-rule);
  margin: 0.55rem 0 0.85rem;
}

/* Footer with Primus + CRTA logos */
.deck-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.18in 0.6in 0.28in;
  border-top: 1px solid var(--deck-rule);
  background: white;
  font-size: 0.7rem; color: var(--deck-muted);
  min-height: 0.65in;
}
.deck-footer-center { flex: 1; text-align: center; }
.deck-logo-primus, .deck-logo-conduent {
  height: 26px; width: auto; max-width: 130px; object-fit: contain;
}

/* ── Card grid (2x2 default; cards have severity-colored left border) ─── */
.deck-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.7rem;
  flex: 1;
  margin-top: 0.3rem;
}
.deck-cards-3col { grid-template-columns: 1fr 1fr 1fr; }
.deck-cards-1col { grid-template-columns: 1fr; }
.deck-card {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-rule);
  border-radius: 4px;
  padding: 0.55rem 0.8rem 0.7rem;
  display: flex; flex-direction: column;
  min-height: 0;
}
.deck-card-critical  { border-left-color: var(--deck-sev-critical); }
.deck-card-high      { border-left-color: var(--deck-sev-high); }
.deck-card-confirmed { border-left-color: var(--deck-sev-confirmed); }
.deck-card-positive  { border-left-color: var(--deck-sev-positive); }
.deck-card-neutral   { border-left-color: var(--deck-faint); }

.deck-card-header {
  display: flex; align-items: flex-start; gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.deck-card-title {
  flex: 1;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deck-navy);
  line-height: 1.3;
}
.deck-card-body {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--deck-body);
}
.deck-card-body p { margin: 0 0 0.35rem; }
.deck-card-body p:last-child { margin-bottom: 0; }
.deck-card-meta {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--deck-faint);
}

.deck-sev-badge {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
}
.deck-sev-critical  { background: var(--deck-sev-critical); }
.deck-sev-high      { background: var(--deck-sev-high); }
.deck-sev-confirmed { background: var(--deck-sev-confirmed); }
.deck-sev-positive  { background: var(--deck-sev-positive); }
.deck-sev-neutral   { background: var(--deck-faint); }

/* Inline session reference styling (S12, S28, etc.) */
.deck-card-body em, .deck-source-ref {
  color: var(--deck-muted);
  font-style: normal;
  font-size: 0.72rem;
  padding-left: 0.15rem;
}

/* ── Title slide (deck cover) ─────────────────────────────────────── */
.deck-cover {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 0.2in;
}
.deck-cover-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1.1;
  margin: 0.15rem 0 0.4rem;
  letter-spacing: -0.01em;
}
.deck-cover-subtitle {
  font-size: 1.15rem;
  color: var(--deck-navy);
  font-weight: 400;
  margin: 0 0 1rem;
}
.deck-cover-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 0.6rem 0 0.6rem;
  border-top: 1px solid var(--deck-rule);
  border-bottom: 1px solid var(--deck-rule);
  padding: 0.7rem 0;
}
.deck-cover-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--deck-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.18rem;
}
.deck-cover-meta-value {
  font-size: 0.85rem;
  color: var(--deck-body);
  line-height: 1.4;
}
.deck-cover-lede {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--deck-body);
  margin: 0.7rem 0 0;
}
.deck-cover-tagline {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--deck-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.deck-cover-tagline-body {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--deck-muted);
  line-height: 1.5;
}

/* ── Capability heat-map slide (Insights deck) ─────────────────────── */
.deck-cap-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex: 1;
}
.deck-cap-card {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-top: 3px solid var(--deck-faint);
  border-radius: 4px;
  padding: 0.5rem 0.55rem 0.6rem;
  font-size: 0.7rem;
  display: flex; flex-direction: column;
}
.deck-cap-card.cap-strong  { border-top-color: var(--deck-sev-positive); }
.deck-cap-card.cap-partial { border-top-color: var(--deck-sev-high); }
.deck-cap-card.cap-gap     { border-top-color: var(--deck-sev-critical); }
.deck-cap-card.cap-unknown { border-top-color: var(--deck-faint); }
.deck-cap-dim {
  font-weight: 600;
  color: var(--deck-navy);
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}
.deck-cap-badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.deck-cap-badge.cap-strong  { background: #d1fae5; color: #166534; }
.deck-cap-badge.cap-partial { background: #fef3c7; color: #92400e; }
.deck-cap-badge.cap-gap     { background: #fee2e2; color: #991b1b; }
.deck-cap-badge.cap-unknown { background: #f3f4f6; color: #4b5563; }
.deck-cap-section {
  font-size: 0.66rem;
  color: var(--deck-body);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}
.deck-cap-section strong {
  display: block;
  color: var(--deck-muted);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.12rem;
}

/* ── Recommendations cards (deck) ──────────────────────────────────── */
.deck-rec-card {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 3px solid var(--deck-orange);
  border-radius: 4px;
  padding: 0.5rem 0.7rem 0.6rem;
  font-size: 0.76rem;
  margin-bottom: 0.4rem;
}
.deck-rec-card-header {
  display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.deck-rec-chip {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.deck-rec-chip-conduent-internal { color: #166534; background: #d1fae5; }
.deck-rec-chip-external-help     { color: #1e40af; background: #dbeafe; }
.deck-rec-chip-partner           { color: #6b21a8; background: #ede9fe; }
.deck-rec-chip-open              { color: #4b5563; background: #f3f4f6; }
.deck-rec-chip-dim {
  color: var(--deck-navy);
  background: #fff;
  border: 1px solid var(--deck-rule);
}
.deck-rec-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--deck-navy);
  margin: 0.1rem 0 0.3rem;
  line-height: 1.3;
}
.deck-rec-action {
  font-size: 0.74rem;
  color: var(--deck-body);
  margin: 0;
  line-height: 1.45;
}
.deck-rec-meta {
  font-size: 0.68rem;
  color: var(--deck-muted);
  margin-top: 0.3rem;
}

/* ── Stats / data slide (Insights) ─────────────────────────────────── */
.deck-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 0.5rem 0;
}
.deck-stat {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  text-align: center;
}
.deck-stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--deck-orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.deck-stat-label {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--deck-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.deck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }

/* ── Summary deck — six-finding grid ───────────────────────────────── */
.deck-six-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 1;
}
.deck-six-card {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-radius: 4px;
  padding: 0.5rem 0.75rem 0.6rem;
}
.deck-six-tag {
  display: inline-block;
  background: var(--deck-navy);
  color: white;
  padding: 0.06rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.deck-six-card.severe .deck-six-tag { background: var(--deck-sev-critical); }
.deck-six-card.positive .deck-six-tag { background: var(--deck-sev-positive); }
.deck-six-title {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deck-navy);
  line-height: 1.3;
}
.deck-six-body {
  margin: 0;
  font-size: 0.76rem;
  color: var(--deck-body);
  line-height: 1.45;
}
.deck-six-body p { margin: 0 0 0.2rem; }

/* ── Per-dim snapshot table (Insights deck) ────────────────────────── */
.deck-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  background: white;
  border: 1px solid var(--deck-rule);
  border-radius: 4px;
  overflow: hidden;
}
.deck-table thead th {
  background: var(--deck-card-bg);
  text-align: left;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--deck-muted);
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--deck-rule);
}
.deck-table tbody td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--deck-body);
  vertical-align: middle;
}
.deck-table tbody tr:last-child td { border-bottom: none; }
.deck-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.deck-tier-bar {
  display: inline-flex;
  height: 7px; width: 9rem;
  border-radius: 2px; overflow: hidden;
  background: #f3f4f6;
  vertical-align: middle;
}
.deck-tier-seg { height: 100%; min-width: 3px; }
.deck-tier-high   { background: var(--deck-sev-critical); }
.deck-tier-medium { background: var(--deck-sev-high); }
.deck-tier-single { background: #3b82f6; }
.deck-tier-other  { background: #cbd5e1; }

/* ── Short / executive slide patterns (2026-05-18 rebuild) ──────────
   For "short and sweet" professional slides: one headline + supporting
   stats, with a drill-down link to a detail slide. */
.deck-headline {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1.18;
  margin: 0.4rem 0 0.85rem;
  max-width: 92%;
  letter-spacing: -0.01em;
}
.deck-headline-sub {
  font-size: 1.05rem;
  color: var(--deck-body);
  margin: 0 0 1.1rem;
  line-height: 1.45;
  max-width: 80%;
}
.deck-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.5rem 0 1.1rem;
}
.deck-pill {
  display: inline-flex;
  flex-direction: column;
  padding: 0.65rem 0.95rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 3px solid var(--deck-orange);
  border-radius: 4px;
  min-width: 10rem;
}
.deck-pill-critical  { border-left-color: var(--deck-sev-critical); }
.deck-pill-high      { border-left-color: var(--deck-sev-high); }
.deck-pill-confirmed { border-left-color: var(--deck-sev-confirmed); }
.deck-pill-positive  { border-left-color: var(--deck-sev-positive); }
.deck-pill-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.deck-pill-label {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--deck-muted);
  letter-spacing: 0.02em;
}
.deck-pill-text {
  font-size: 0.86rem;
  color: var(--deck-body);
  font-weight: 500;
  line-height: 1.35;
}

/* In-deck navigation links — drill-down + back */
.deck-nav-row {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--deck-rule);
  display: flex; gap: 0.85rem; align-items: center;
  font-size: 0.84rem;
}
.deck-nav-link {
  color: var(--deck-navy);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--deck-rule);
  border-radius: 3px;
  background: white;
  transition: all 120ms ease;
}
.deck-nav-link:hover {
  border-color: var(--deck-orange);
  color: var(--deck-orange);
}
.deck-nav-link-primary {
  background: var(--deck-orange);
  color: white;
  border-color: var(--deck-orange);
}
.deck-nav-link-primary:hover {
  background: #d65f10;
  color: white;
  border-color: #d65f10;
}
.deck-nav-spacer { flex: 1; }
.deck-nav-meta {
  font-size: 0.74rem;
  color: var(--deck-faint);
}

/* TOC slide — jump-to-dim grid */
.deck-toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 0.6rem 0;
}
.deck-toc-item {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 3px solid var(--deck-orange);
  border-radius: 4px;
  text-decoration: none;
  color: var(--deck-navy);
  transition: all 120ms ease;
}
.deck-toc-item:hover {
  border-left-color: var(--deck-navy);
  background: white;
}
.deck-toc-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--deck-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.deck-toc-name {
  font-size: 0.86rem;
  font-weight: 500;
  margin-top: 0.15rem;
  line-height: 1.3;
}
.deck-toc-meta {
  font-size: 0.7rem;
  color: var(--deck-muted);
  margin-top: 0.2rem;
}

/* Single big visual on the executive overview slide */
.deck-overview-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin: 0.7rem 0;
}
.deck-overview-cell {
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-top: 4px solid var(--deck-faint);
  border-radius: 4px;
  padding: 0.55rem 0.6rem;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 4.5rem;
}
.deck-overview-cell.cap-strong  { border-top-color: var(--deck-sev-positive); }
.deck-overview-cell.cap-partial { border-top-color: var(--deck-sev-high); }
.deck-overview-cell.cap-gap     { border-top-color: var(--deck-sev-critical); }
.deck-overview-cell-id {
  font-size: 0.72rem; font-weight: 600;
  color: var(--deck-orange);
  letter-spacing: 0.06em;
}
.deck-overview-cell-name {
  font-size: 0.74rem;
  color: var(--deck-navy);
  font-weight: 500;
  margin-top: 0.15rem;
  line-height: 1.3;
}
.deck-overview-cell-state {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.65rem;
  color: var(--deck-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── Title-only grid (2x2 of clickable finding TITLES, not bodies) ── */
.deck-title-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  flex: 1;
  margin-top: 0.4rem;
}
.deck-title-card {
  display: flex; flex-direction: column;
  padding: 1rem 1.1rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-rule);
  border-radius: 5px;
  text-decoration: none;
  color: var(--deck-navy);
  transition: all 120ms ease;
}
.deck-title-card:hover { background: white; border-left-color: var(--deck-orange); }
.deck-title-card.tc-critical  { border-left-color: var(--deck-sev-critical); }
.deck-title-card.tc-high      { border-left-color: var(--deck-sev-high); }
.deck-title-card.tc-confirmed { border-left-color: var(--deck-sev-confirmed); }
.deck-title-card.tc-positive  { border-left-color: var(--deck-sev-positive); }
.deck-title-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: var(--deck-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.deck-title-card-id { color: var(--deck-orange); }
.deck-title-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deck-navy);
  line-height: 1.35;
  flex: 1;
}
.deck-title-card-meta {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: var(--deck-muted);
}

/* Hero number on each summary-grid card — drives visual hierarchy across the
   2x2 (different numbers = different weight = different stories). Above the
   headline; the eye lands here first, then reads the headline. Sized down
   from the per-finding-detail stat so 4 fit comfortably in the 2x2. */
.deck-title-card-stat {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin: 0.15rem 0 0.35rem;
  word-break: break-word;
}
.deck-title-card-stat-label {
  font-size: 0.7rem;
  color: var(--deck-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
/* Sentence-case the headline override (LLM produces sentence case; this just
   prevents future regressions if someone passes f.title in by accident). */
.deck-title-card-headline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--deck-navy);
  line-height: 1.35;
  flex: 1;
  text-transform: none;
}

/* Dim summary's elevator-pitch lede — one sentence above the 2x2 grid that
   tells you what the four findings collectively mean. */
.deck-dim-lede {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--deck-body);
  max-width: 88%;
}

/* ── Executive Summary deck (2026-05-19 rebuild — 4 slides) ────────────
   Slide 1: cover + thesis hero + 4 anchor stats
   Slide 2: 7-dim scorecard rows
   Slide 3: split — 3 stakes tiles + 5 short-term action tiles
   Slide 4: 4 outcomes + 4 From→To structural shifts
   ─────────────────────────────────────────────────────────────────── */

/* Slide 1 — cover */
.deck-summary-title {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--deck-navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0.2rem 0 0.75rem;
}
.deck-thesis-band {
  margin: 0 0 1rem;
  padding: 1rem 1.2rem 1.1rem;
  background: linear-gradient(0deg, #fff7ed 0%, #fff7ed 100%);
  border-left: 5px solid var(--deck-orange);
  border-radius: 0 4px 4px 0;
}
.deck-thesis-band.placeholder {
  background: #f8fafc;
  border-left-color: var(--deck-faint);
}
.deck-thesis-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--deck-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.deck-thesis {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--deck-navy);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.deck-anchor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 0 0 0.85rem;
}
.deck-anchor-stat {
  background: white;
  border: 1px solid var(--deck-rule);
  border-top: 3px solid var(--deck-orange);
  border-radius: 4px;
  padding: 0.7rem 0.85rem 0.75rem;
  text-align: left;
}
.deck-anchor-num {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.deck-anchor-label {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: var(--deck-muted);
  font-weight: 500;
  line-height: 1.3;
}
.deck-cover-methodology {
  margin: auto 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--deck-rule);
  font-size: 0.78rem;
  color: var(--deck-muted);
  line-height: 1.5;
}

/* Versioning line — appears on deck cover slides only (the per-engagement
   version provenance for the artifact). Subtle, monospace-feel for the
   timestamp so it reads as audit metadata not body copy. */
.deck-version-line {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  color: var(--deck-faint);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Slide 2 — scorecard */
.deck-scorecard {
  display: flex; flex-direction: column;
  gap: 0.35rem;
  margin: 0.4rem 0 0.7rem;
  flex: 1;
  min-height: 0;
}
.deck-sc-row {
  display: grid;
  grid-template-columns: 2.4rem 7.5rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.7rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-rule);
  border-radius: 4px;
}
.deck-sc-row.sev-critical  { border-left-color: var(--deck-sev-critical); }
.deck-sc-row.sev-high      { border-left-color: var(--deck-sev-high); }
.deck-sc-row.sev-confirmed { border-left-color: var(--deck-sev-confirmed); }
.deck-sc-row.sev-positive  { border-left-color: var(--deck-sev-positive); }
.deck-sc-id {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--deck-orange);
  letter-spacing: 0.03em;
}
.deck-sc-p {
  font-size: 0.62rem;
  color: var(--deck-muted);
  font-weight: 600;
  vertical-align: middle;
  margin-left: 0.15rem;
}
.deck-sc-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deck-navy);
}
.deck-sc-headline {
  font-size: 0.84rem;
  color: var(--deck-body);
  line-height: 1.35;
}
.deck-sc-pills {
  display: flex; gap: 0.35rem;
  align-items: center;
}
.deck-sc-pill {
  font-size: 0.66rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.deck-sc-pill.sev-critical  { background: #fee2e2; color: #991b1b; }
.deck-sc-pill.sev-high      { background: #fef3c7; color: #92400e; }
.deck-sc-pill.sev-confirmed { background: #ccfbf1; color: #115e59; }
.deck-sc-pill.sev-positive  { background: #d1fae5; color: #166534; }
.deck-sc-pill.sev-neutral   { background: #f3f4f6; color: #4b5563; }
.deck-sc-pill.cap-strong    { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.deck-sc-pill.cap-partial   { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.deck-sc-pill.cap-gap       { background: #fecaca; color: #991b1b; border: 1px solid #fca5a5; }
.deck-sc-pill.cap-unknown   { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.deck-sc-totals {
  display: flex; gap: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--deck-rule);
  font-size: 0.78rem;
  color: var(--deck-muted);
  letter-spacing: 0.02em;
}
.deck-sc-totals strong {
  color: var(--deck-navy);
  font-variant-numeric: tabular-nums;
}

/* Slide 3 — stakes + actions split */
.deck-summary-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
  min-height: 0;
}
.deck-summary-split-col {
  display: flex; flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}
.deck-split-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--deck-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}
.deck-stake-tile {
  padding: 0.65rem 0.85rem 0.7rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-sev-critical);
  border-radius: 4px;
}
.deck-stake-tile.placeholder { border-left-color: var(--deck-faint); }
.deck-stake-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deck-sev-critical);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.deck-stake-text {
  font-size: 0.86rem;
  color: var(--deck-body);
  line-height: 1.45;
}
.deck-action-tile {
  padding: 0.55rem 0.8rem 0.6rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 3px solid var(--deck-orange);
  border-radius: 4px;
}
.deck-action-head {
  display: flex; align-items: baseline;
  gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.15rem;
}
.deck-action-headline {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--deck-navy);
  line-height: 1.35;
  flex: 1;
}
.deck-action-meta {
  font-size: 0.72rem;
  color: var(--deck-muted);
}

/* Slide 4 — outcomes + From→To shifts */
.deck-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0 0 0.7rem;
}
.deck-outcome {
  padding: 0.6rem 0.75rem 0.7rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-top: 3px solid var(--deck-sev-positive);
  border-radius: 4px;
  display: flex; flex-direction: column;
}
.deck-outcome-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--deck-sev-positive);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.deck-outcome-text {
  font-size: 0.82rem;
  color: var(--deck-navy);
  line-height: 1.4;
  font-weight: 500;
}
.deck-shifts {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-height: 0;
}
.deck-shift {
  padding: 0.6rem 0.85rem 0.7rem;
  background: white;
  border: 1px solid var(--deck-rule);
  border-radius: 4px;
}
.deck-shift-area {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--deck-orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.deck-shift-pair {
  display: grid;
  grid-template-columns: 1fr 1.5rem 1fr;
  align-items: start;
  gap: 0.4rem;
}
.deck-shift-from, .deck-shift-to {
  font-size: 0.82rem;
  line-height: 1.4;
}
.deck-shift-from {
  color: var(--deck-muted);
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  border-radius: 3px;
  border-left: 2px solid var(--deck-sev-critical);
}
.deck-shift-to {
  color: var(--deck-navy);
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  background: #f0fdf4;
  border-radius: 3px;
  border-left: 2px solid var(--deck-sev-positive);
}
.deck-shift-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  opacity: 0.7;
}
.deck-shift-arrow {
  text-align: center;
  color: var(--deck-orange);
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 0.85rem;
}
.deck-structural-strip {
  margin-top: 0.7rem;
  padding: 0.55rem 0.85rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--deck-body);
  line-height: 1.5;
}
.deck-structural-strip strong {
  color: var(--deck-navy);
  font-variant-numeric: tabular-nums;
}

/* ── Insights triangulation panel (Summary Slide 3) ────────────────────
   Three derived views per row, one row per dimension:
   - findings-by-severity bar (stacked red/amber/teal/grey segments)
   - evidence-mix bar (CRTA stakeholders vs Agency VOC)
   - findings-to-recs bar (short/medium/long-term rec counts)
   Pure data visualization — no LLM needed. */
.deck-insights-grid {
  display: flex; flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-height: 0;
}
.deck-insights-head {
  display: grid;
  grid-template-columns: 9rem 1fr 1fr 1fr;
  gap: 0.6rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--deck-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--deck-rule);
}
.deck-insights-row {
  display: grid;
  grid-template-columns: 9rem 1fr 1fr 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.3rem 0.55rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-radius: 3px;
}
.deck-insights-label {
  display: flex; flex-direction: column;
  gap: 0.05rem;
}
.deck-insights-did {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deck-orange);
  letter-spacing: 0.04em;
}
.deck-insights-name {
  font-size: 0.78rem;
  color: var(--deck-navy);
  font-weight: 500;
  line-height: 1.2;
}
.deck-insights-cell {
  display: flex; align-items: center;
  gap: 0.5rem;
}
.deck-insights-bar {
  flex: 1;
  display: flex;
  height: 1.4rem;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f5f9;
}
.deck-insights-bar .seg {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: white;
  min-width: 1.6rem;
  padding: 0 0.35rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.deck-insights-bar .seg.sev-critical  { background: var(--deck-sev-critical); }
.deck-insights-bar .seg.sev-high      { background: var(--deck-sev-high); }
.deck-insights-bar .seg.sev-confirmed { background: var(--deck-sev-confirmed); }
.deck-insights-bar .seg.sev-neutral   { background: #94a3b8; color: white; }
.deck-insights-bar .seg.ev-sess       { background: #475569; }
.deck-insights-bar .seg.ev-voc        { background: var(--deck-orange); }
.deck-insights-bar .seg.h-short       { background: #c1432f; }
.deck-insights-bar .seg.h-medium      { background: #c27a2c; }
.deck-insights-bar .seg.h-long        { background: #3f3f73; }
.deck-insights-empty {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--deck-faint);
  font-style: italic;
  align-self: center;
  padding: 0.2rem;
}
.deck-insights-num {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--deck-navy);
  font-variant-numeric: tabular-nums;
  min-width: 1.6rem;
  text-align: right;
}
.deck-insights-legend {
  display: flex; gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--deck-rule);
  font-size: 0.7rem;
  color: var(--deck-muted);
  line-height: 1.4;
}
.deck-insights-legend b {
  color: var(--deck-navy);
  font-weight: 700;
  margin-right: 0.35rem;
}
.deck-insights-legend .lg {
  display: inline-block;
  width: 0.65rem; height: 0.65rem;
  border-radius: 2px;
  vertical-align: middle;
  margin: 0 0.2rem 0 0.6rem;
}
.deck-insights-legend .lg.sev-critical  { background: var(--deck-sev-critical); }
.deck-insights-legend .lg.sev-high      { background: var(--deck-sev-high); }
.deck-insights-legend .lg.sev-confirmed { background: var(--deck-sev-confirmed); }
.deck-insights-legend .lg.sev-neutral   { background: #94a3b8; }
.deck-insights-legend .lg.ev-sess       { background: #475569; }
.deck-insights-legend .lg.ev-voc        { background: var(--deck-orange); }
.deck-insights-legend .lg.h-short       { background: #c1432f; }
.deck-insights-legend .lg.h-medium      { background: #c27a2c; }
.deck-insights-legend .lg.h-long        { background: #3f3f73; }

/* ── Marker arc (Summary Slide 5) ──────────────────────────────────────
   Four named markers (SWAT closures · O&M go-live · SAT · steady-state),
   each as a From → To pair. NO dates anywhere — CRTA owns the calendar;
   Primus describes only what must be true at each marker. */
.deck-markers {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.deck-markers.placeholder {
  background: #f8fafc;
  border: 1px dashed var(--deck-rule);
  border-radius: 4px;
  justify-content: center;
}
.deck-marker {
  padding: 0.6rem 0.85rem 0.7rem;
  background: white;
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-orange);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.85rem;
  align-items: center;
}
.deck-marker-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deck-orange);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.deck-marker-pair {
  display: grid;
  grid-template-columns: 1fr 1.5rem 1fr;
  gap: 0.4rem;
  align-items: stretch;
}
.deck-marker-from, .deck-marker-to {
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  border-radius: 3px;
}
.deck-marker-from {
  color: var(--deck-muted);
  background: #f8fafc;
  border-left: 2px solid var(--deck-sev-critical);
}
.deck-marker-to {
  color: var(--deck-navy);
  font-weight: 500;
  background: #f0fdf4;
  border-left: 2px solid var(--deck-sev-positive);
}
.deck-marker-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  opacity: 0.7;
}
.deck-marker-arrow {
  text-align: center;
  color: var(--deck-orange);
  font-size: 1.2rem;
  font-weight: 700;
  align-self: center;
}

/* Per-finding detail slide layout — fits 16:9 cleanly */
.deck-finding-body {
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: 0.3rem;
  overflow: hidden;        /* content beyond what fits is clipped */
}
.deck-finding-lead {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--deck-body);
  margin: 0.2rem 0 0.8rem;
  /* Cap at ~10 lines so we never overflow */
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deck-finding-lead p { margin: 0 0 0.45rem; }
.deck-finding-lead p:last-child { margin-bottom: 0; }
.deck-finding-meta-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: auto 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--deck-rule);
}
.deck-finding-meta-pill {
  padding: 0.35rem 0.65rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-radius: 3px;
  font-size: 0.72rem;
  color: var(--deck-body);
}
.deck-finding-meta-pill strong { color: var(--deck-navy); }

/* Always-visible slide nav at the bottom of every slide */
.deck-slide-nav {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6in 0.5rem;
  border-top: 1px solid var(--deck-rule);
  background: white;
  font-size: 0.78rem;
  min-height: 2.2rem;
}
.deck-slide-nav .deck-nav-link {
  padding: 0.3rem 0.6rem;
  font-size: 0.76rem;
}
.deck-slide-counter {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--deck-faint);
  font-variant-numeric: tabular-nums;
}

/* When the always-visible nav is present, the footer is compressed */
.deck-slide.with-nav .deck-body-area {
  padding-bottom: 0.2in;
}
.deck-slide.with-nav .deck-footer {
  padding-top: 0.12in;
  padding-bottom: 0.18in;
  min-height: 0.5in;
}

/* ── Legal Brief — web view (memo-style, long-form prose) ──────────────
   The HTML render of the same memo content the DOCX + PDF use. Narrower
   content column for readability (max ~720px / 7.5in matching the PDF),
   conservative typography, browser-print-friendly (the print stylesheet
   below renders the page to PDF when "Print" is invoked from the toolbar).
   ─────────────────────────────────────────────────────────────────── */
.lb-toolbar {
  position: sticky; top: 0; z-index: 100;
  background: white;
  border-bottom: 1px solid var(--deck-rule);
  padding: 0.55rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}
.lb-toolbar-left {
  display: flex; align-items: center; gap: 0.85rem;
  flex: 1;
}
.lb-toolbar-back {
  color: var(--deck-navy);
  text-decoration: none;
  font-weight: 500;
}
.lb-toolbar-back:hover { color: var(--deck-orange); }
.lb-toolbar-title {
  font-weight: 600;
  color: var(--deck-navy);
}
.lb-toolbar-actions {
  display: flex; gap: 0.5rem;
}
.lb-toolbar-actions .deck-btn-primary,
.lb-toolbar-actions .deck-btn-secondary {
  font-size: 0.78rem;
}

.lb-wrap {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
  color: var(--deck-body);
}
.lb-page {
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--deck-rule);
}
.lb-page:last-child { border-bottom: none; }

.lb-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deck-navy);
  margin: 0 0 0.7rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.lb-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deck-navy);
  margin: 1.25rem 0 0.55rem;
}
.lb-page p {
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0 0 0.85rem;
}

/* Cover panel */
.lb-cover {
  text-align: left;
  padding-top: 0.5rem;
}
.lb-memo-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--deck-navy);
  text-align: center;
  margin: 0 0 1.4rem;
}
.lb-kvblock {
  border-top: 1px solid var(--deck-rule);
  border-bottom: 1px solid var(--deck-rule);
  padding: 0.85rem 0;
  margin-bottom: 1.2rem;
  display: flex; flex-direction: column;
  gap: 0.35rem;
}
.lb-kvblock div {
  display: flex; gap: 1rem;
  font-size: 0.92rem;
}
.lb-kvblock .k {
  flex: 0 0 4rem;
  font-weight: 700;
  color: var(--deck-navy);
  letter-spacing: 0.05em;
}
.lb-kvblock .v { flex: 1; color: var(--deck-body); }

.lb-privilege {
  margin: 1rem 0;
  padding: 0.85rem 1.1rem;
  background: #fef2f2;
  border-left: 4px solid #991b1b;
  border-radius: 0 3px 3px 0;
}
.lb-priv-label {
  font-weight: 700;
  color: #991b1b;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}
.lb-priv-body {
  font-size: 0.85rem !important;
  color: var(--deck-body);
  line-height: 1.55 !important;
  margin: 0 !important;
}
.lb-version {
  margin-top: 1.2rem !important;
  font-size: 0.78rem !important;
  color: var(--deck-faint);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* TOC */
.lb-toc {
  list-style: none;
  padding-left: 0;
  font-size: 0.92rem;
  line-height: 1.85;
}
.lb-toc > li > a {
  color: var(--deck-navy);
  font-weight: 600;
  text-decoration: none;
}
.lb-toc ol {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.2rem 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
}
.lb-toc ol a {
  color: var(--deck-body);
  text-decoration: none;
  font-weight: 400;
}
.lb-toc a:hover { color: var(--deck-orange); }

/* Thesis line in exec summary */
.lb-thesis {
  font-size: 1.05rem !important;
  font-weight: 500;
  color: var(--deck-navy);
  padding: 0.7rem 1rem !important;
  background: #fff7ed;
  border-left: 3px solid var(--deck-orange);
  border-radius: 0 3px 3px 0;
  margin: 0 0 1rem !important;
  line-height: 1.55 !important;
}
.lb-thesis em {
  font-style: italic;
  color: var(--deck-navy);
}

/* Subsection containers */
.lb-subsection {
  margin: 0.65rem 0 1.4rem;
}

/* Finding cards (per-dim) */
.lb-finding {
  margin: 0.9rem 0 1.3rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--deck-rule);
}
.lb-finding-title {
  font-size: 0.98rem !important;
  font-weight: 600;
  color: var(--deck-navy);
  margin: 0 0 0.4rem !important;
  line-height: 1.45 !important;
}
.lb-finding-id {
  display: inline-block;
  font-weight: 700;
  color: var(--deck-orange);
  margin-right: 0.5rem;
  letter-spacing: 0.02em;
}
.lb-finding-tier {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.74rem;
  font-style: italic;
  color: var(--deck-muted);
  font-weight: 400;
}
.lb-cite {
  font-size: 0.82rem !important;
  color: var(--deck-muted);
  font-style: italic;
  margin: -0.3rem 0 0.5rem !important;
}

/* Recommendation cards (per-horizon) */
.lb-rec {
  margin: 0.9rem 0 1.3rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--deck-rule);
}
.lb-rec-title {
  font-size: 0.98rem !important;
  font-weight: 600;
  color: var(--deck-navy);
  margin: 0 0 0.4rem !important;
  line-height: 1.45 !important;
}
.lb-rec-exec {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.74rem;
  font-style: italic;
  color: var(--deck-muted);
  font-weight: 400;
}
.lb-rec-meta {
  font-size: 0.82rem !important;
  color: var(--deck-muted);
  margin: 0.3rem 0 0 !important;
  line-height: 1.55 !important;
}

/* Markers (conclusion) */
.lb-markers {
  display: flex; flex-direction: column;
  gap: 0.5rem;
  margin: 0.7rem 0 1rem;
}
.lb-marker {
  padding: 0.55rem 0.85rem;
  background: var(--deck-card-bg);
  border-left: 3px solid var(--deck-orange);
  border-radius: 0 3px 3px 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
.lb-marker-name {
  font-weight: 700;
  color: var(--deck-navy);
  margin-right: 0.4rem;
}
.lb-marker-pair em {
  font-weight: 600;
  font-style: normal;
  color: var(--deck-orange);
  letter-spacing: 0.02em;
}

/* Author signature block */
.lb-signature {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--deck-rule);
}
.lb-signature p {
  margin: 0.25rem 0 !important;
  font-size: 0.92rem !important;
}

/* Evidence table (Appendix B) */
.lb-evidence-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  margin-top: 0.7rem;
  border: 1px solid var(--deck-rule);
  border-radius: 4px;
  overflow: hidden;
}
.lb-evidence-table thead th {
  background: var(--deck-card-bg);
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--deck-muted);
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--deck-rule);
}
.lb-evidence-table tbody td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--deck-body);
  vertical-align: top;
}
.lb-evidence-table tbody tr:last-child td { border-bottom: none; }
.lb-evidence-table tbody tr:first-child td { padding-top: 0.55rem; }

/* Empty state */
.lb-empty {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 38rem;
  margin: 0 auto;
}
.lb-empty-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #991b1b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.lb-empty h1 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--deck-navy);
  margin: 0 0 0.85rem;
}
.lb-empty p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--deck-body);
}

/* ── CEO Readout deck (2026-05-23) — two-slide executive briefing ──────
   Slide 1: finding + anchor stats + method-bona-fides triplet
   Slide 2: five action cards (only the CEO can authorize) */
.ceo-method {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--deck-rule);
}
.ceo-method-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--deck-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.ceo-method ul {
  margin: 0; padding-left: 1.05rem;
  list-style-type: square;
}
.ceo-method li {
  font-size: 0.82rem;
  color: var(--deck-body);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.ceo-method li::marker { color: var(--deck-orange); }

.ceo-actions {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 0.32rem;
  min-height: 0;
  margin-top: 0.2rem;
}
.ceo-action {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.42rem 0.75rem 0.5rem;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-orange);
  border-radius: 4px;
}
.ceo-action-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deck-orange);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.ceo-action-body {
  display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 0;
}
.ceo-action-title {
  margin: 0 0 0.12rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
/* The "do" bullets are the visual anchor of each card — primary content. */
.ceo-action-do {
  list-style: none;
  margin: 0 0 0.18rem;
  padding: 0;
}
.ceo-action-do li {
  position: relative;
  padding: 0.08rem 0 0.08rem 0.85rem;
  font-size: 0.78rem;
  color: var(--deck-navy);
  line-height: 1.4;
  font-weight: 500;
}
.ceo-action-do li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.55rem;
  width: 0.32rem; height: 0.32rem;
  background: var(--deck-orange);
  border-radius: 1px;
}
/* Why becomes a small italic footnote — context, not headline. */
.ceo-action-why {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--deck-muted);
  line-height: 1.4;
  font-style: italic;
}
.ceo-action-why-label {
  font-weight: 700;
  color: var(--deck-orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6rem;
  font-style: normal;
  margin-right: 0.2rem;
}
.ceo-action-owner {
  font-size: 0.68rem;
  color: var(--deck-body);
  letter-spacing: 0.01em;
  margin-top: 0.08rem;
}
.ceo-action-owner strong {
  color: var(--deck-orange);
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

/* ── Print rules ─────────────────────────────────────────────────── */
@media print {
  @page {
    size: 13.333in 7.5in;       /* true 16:9 — matches the on-screen slide */
    margin: 0;
  }
  html, body {
    background: white;
    margin: 0; padding: 0;
  }
  /* Hide the app's main nav rail, header, footer, watermark, toolbar — print only deck slides */
  .app-header, .app-grid > .menu-rail, .app-grid > .subitems-rail,
  .app-grid > .main-content > *:not(.deck-wrap),
  .app-footer, .watermark, .page-loader,
  .deck-toolbar { display: none !important; }
  .app-grid { display: block !important; padding: 0 !important; }
  .main-content { padding: 0 !important; }
  .deck-wrap { background: white !important; padding: 0 !important; }
  .deck-slide {
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    min-height: 100vh !important;
    max-width: 11in;
    page-break-after: always;
  }
  .deck-slide:last-child { page-break-after: avoid; }
  /* Keep the slide nav in print — its links become PDF hyperlinks */
  .deck-slide-nav { display: flex !important; }

  /* ── Legal Brief — print to US Letter portrait ──────────────────── */
  .lb-toolbar { display: none !important; }
  /* When on /legal-brief, override the global page rule (which is 13.333in
     landscape from the deck block above) to US Letter portrait. */
  body:has(.lb-wrap) ~ * { /* no-op safety */ }
  /* The CSS @page is a global rule so we can't truly scope it, but the
     wrap-based selectors below give the brief a sensible printed layout.
     If a user prints from the brief page, the @page above (landscape)
     applies — we re-override in a media query inside the brief itself
     via a JS-injected style tag if needed. For now, the brief's natural
     flow (narrow column on the page) prints acceptably to landscape; an
     explicit portrait @page block would require this CSS to be loaded
     only on /legal-brief which we already do via the same stylesheet. */
  .lb-wrap {
    max-width: none !important;
    padding: 0 !important;
  }
  .lb-page {
    page-break-after: auto;
    border-bottom: none !important;
    margin-bottom: 1.5rem !important;
  }
  .lb-cover, .lb-page[id="app-a"], .lb-page[id="app-b"] {
    page-break-before: always;
  }
  .lb-privilege { border-left-width: 3px !important; }
}

/* ── slide_summary layout (2026-05-18) ────────────────────────────────
   Used by deck_findings + deck_recommendations per-item detail slides
   when the LLM-generated slide_summary blob is present. Two-column
   16:9 layout: left = big anchor stat, right = telegraphic bullets +
   why/why-now paragraph. Footer band carries the implication / success
   signal — the one line the audience walks away with.
   ─────────────────────────────────────────────────────────────────── */
.deck-ss {
  flex: 1;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 1.2rem;
  margin-top: 0.3rem;
  min-height: 0;
}
.deck-ss-left {
  display: flex; flex-direction: column;
  background: var(--deck-card-bg);
  border: 1px solid var(--deck-rule);
  border-left: 4px solid var(--deck-orange);
  border-radius: 5px;
  padding: 1.2rem 1.1rem 1rem;
}
.deck-ss-left.sev-critical  { border-left-color: var(--deck-sev-critical); }
.deck-ss-left.sev-high      { border-left-color: var(--deck-sev-high); }
.deck-ss-left.sev-confirmed { border-left-color: var(--deck-sev-confirmed); }
.deck-ss-left.sev-positive  { border-left-color: var(--deck-sev-positive); }
.deck-ss-stat-num {
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--deck-navy);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.deck-ss-stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--deck-muted);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.deck-ss-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--deck-rule);
  font-size: 0.7rem;
  color: var(--deck-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.deck-ss-meta strong { color: var(--deck-muted); font-weight: 600; }
.deck-ss-right {
  display: flex; flex-direction: column;
  min-height: 0;
}
.deck-ss-bullets {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.deck-ss-bullets li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--deck-navy);
  line-height: 1.35;
  border-bottom: 1px dashed #eef2f7;
}
.deck-ss-bullets li:last-child { border-bottom: none; }
.deck-ss-bullets li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.85rem;
  width: 0.45rem; height: 0.45rem;
  background: var(--deck-orange);
  border-radius: 1px;
}
.deck-ss-why-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--deck-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.3rem 0 0.25rem;
}
.deck-ss-why {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--deck-body);
}
.deck-ss-implication {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.85rem;
  background: #fff7ed;
  border-left: 3px solid var(--deck-orange);
  border-radius: 0 3px 3px 0;
  font-size: 0.9rem;
  font-weight: 500;
  font-style: italic;
  color: var(--deck-navy);
  line-height: 1.45;
}
.deck-ss-implication::before {
  content: "So what — ";
  font-style: normal;
  font-weight: 600;
  color: var(--deck-orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-right: 0.3rem;
}
/* Variant for recs: implication slot says "Success signal — " */
.deck-ss-implication.success::before { content: "Success signal — "; }

/* Compressed headline for slide_summary slides — leaves more room for body */
.deck-ss-headline {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--deck-navy);
  line-height: 1.2;
  letter-spacing: -0.005em;
  max-width: 95%;
}
/* Eyebrow chips row — dim · severity · evidence count */
.deck-ss-chips {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  align-items: center;
}
.deck-ss-chip {
  display: inline-flex;
  padding: 0.16rem 0.5rem;
  background: white;
  border: 1px solid var(--deck-rule);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deck-navy);
  text-transform: uppercase;
}
.deck-ss-chip.dim     { color: var(--deck-orange); border-color: #fed7aa; background: #fff7ed; }
.deck-ss-chip.horizon { color: var(--deck-orange); border-color: #fed7aa; background: #fff7ed; }
.deck-ss-chip.exec-conduent-internal { color: #166534; background: #d1fae5; border-color: #bbf7d0; }
.deck-ss-chip.exec-external-help     { color: #1e40af; background: #dbeafe; border-color: #bfdbfe; }
.deck-ss-chip.exec-partner           { color: #6b21a8; background: #ede9fe; border-color: #ddd6fe; }
.deck-ss-chip.exec-open              { color: #4b5563; background: #f3f4f6; border-color: #e5e7eb; }
