/* ============================================================================
   LendSight Seminar Kit - shared design system
   Professional presentation theme: print-ready, navy/teal, bank-document polish.
   Used by every seminar deck and handout. Edit here to restyle all seminars.
   ============================================================================ */

:root {
  /* Brand palette */
  --navy: #1B2559;
  --navy-2: #24306e;
  --teal: #00B4D8;
  --teal-dark: #0091ad;
  --gold: #FAB95B;
  --ink: #1A1A2E;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --bg-tint: #EEF6FA;      /* pale teal wash */
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --slide-pad: clamp(28px, 4.5vw, 72px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 37, 89, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 37, 89, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0c1030;   /* dark frame behind the white slide, stage feel */
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Deck viewport ---------- */
.deck {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: var(--slide-pad);
  background: var(--bg);
  animation: slideIn 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.slide.active { display: flex; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.995); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
}

/* Center a slide's content vertically when it wants to */
.slide.center { justify-content: center; }
.slide.center .slide-body { flex: 0 1 auto; }

.slide-body { flex: 1; display: flex; flex-direction: column; gap: clamp(14px, 2vw, 26px); min-height: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-dark); margin: 0;
}
h1.deck-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
h2.slide-title { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; margin: 0; color: var(--navy); }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; margin: 0; color: var(--ink); }
p.lead { font-size: clamp(17px, 1.9vw, 23px); line-height: 1.5; color: #33384d; margin: 0; max-width: 60ch; }
p { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; color: #33384d; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.accent { color: var(--teal-dark); }
strong { color: var(--ink); }

.slide-head { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Cards, grids, stats ---------- */
.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 1.8vw, 24px);
}
.card.tint { background: var(--bg-tint); border-color: #cfeaf3; }
.card.navy { background: var(--navy); color: #eaf0ff; border: none; }
.card.navy h3, .card.navy .stat-value { color: #fff; }
.card.navy .stat-label { color: #aebbe6; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); line-height: 1; }
.stat-value.teal { color: var(--teal-dark); }
.stat-value.good { color: var(--good); }
.stat-sub { font-size: 13px; color: var(--muted); }

/* Pill / tag */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-tint); color: var(--teal-dark); border: 1px solid #cfeaf3; }
.pill.good { background: #e7f9f1; color: #067a54; border-color: #b6ecd7; }
.pill.warn { background: #fdf3e2; color: #a9700f; border-color: #f6dcae; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 34px); align-items: center; height: 100%; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }

/* Bulleted value list */
ul.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.4; }
ul.checks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 6px; background: var(--teal) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat; }
ul.checks.warn li::before { background: var(--warn) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='8' x2='12' y2='13'/><circle cx='12' cy='17' r='0.6'/></svg>") center/14px no-repeat; }

/* Comparison table (bank-document look) */
table.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.compare th, table.compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: clamp(14px, 1.5vw, 17px); }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
table.compare thead th:first-child { border-top-left-radius: 8px; }
table.compare thead th:last-child { border-top-right-radius: 8px; }
table.compare tbody tr:nth-child(even) { background: var(--bg-subtle); }
table.compare td.label { color: var(--muted); font-weight: 600; }
table.compare tr.total td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--navy); }

/* Step / roadmap flow */
.flow { display: grid; gap: 14px; }
.flow.h { grid-auto-flow: column; grid-auto-columns: 1fr; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.step .num { width: 34px; height: 34px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.step h4 { margin: 0; font-size: clamp(15px, 1.5vw, 18px); color: var(--navy); }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* Speaker notes live in the deck markup but only surface in the presenter
   window (which reads their text). Never shown on the audience screen. */
.notes { display: none !important; }
.frame-mode .nav, .frame-mode .dots, .frame-mode .progress, .frame-mode .help-hint { display: none !important; }

/* Chutes-and-ladders roadmap board (SVG rendered by seminar-kit.js) */
.board-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; min-height: 0; flex: 1; padding-bottom: 30px; }
.board-svg { width: 100%; height: 100%; max-height: 100%; display: block; }
.board-legend { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: clamp(12px, 1.15vw, 14px); font-weight: 700; color: var(--ink); }
.board-legend .bl { display: inline-flex; align-items: center; gap: 8px; }
.board-legend .bl i { width: 22px; height: 0; border-top: 3px dashed; border-radius: 2px; }
.board-legend .bl-ladder i { border-top-style: solid; color: #16a34a; }
.board-legend .bl-chute i { color: #dc2626; }

/* Callout */
.callout { border-left: 4px solid var(--teal); background: var(--bg-tint); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout.gold { border-left-color: var(--gold); background: #fef7ec; }

/* Two-engine labels (cash flow vs wealth) - reinforce the separation rule */
.engine-tag { display:inline-flex; align-items:center; gap:8px; font-weight:800; letter-spacing:0.02em; }
.engine-tag.cash { color: #0091ad; }
.engine-tag.wealth { color: #067a54; }

/* ---------- Title slide ---------- */
.title-slide { background: linear-gradient(140deg, var(--navy) 0%, #101a4d 55%, #0b1236 100%); color: #fff; }
.title-slide h1.deck-title, .title-slide h2.slide-title { color: #fff; }
.title-slide .eyebrow { color: var(--teal); }
.title-slide p.lead { color: #c7d0f2; }
.title-slide .mesh { position: absolute; inset: 0; overflow: hidden; opacity: 0.5; pointer-events: none; }
.title-slide .mesh::before { content:""; position:absolute; width: 60vw; height: 60vw; right: -18vw; top: -22vw; background: radial-gradient(circle, rgba(0,180,216,0.55), transparent 62%); }
.title-slide .mesh::after { content:""; position:absolute; width: 46vw; height: 46vw; left: -14vw; bottom: -20vw; background: radial-gradient(circle, rgba(250,185,91,0.28), transparent 60%); }
.title-slide .slide-body { position: relative; z-index: 1; }

/* ---------- Branding blocks (LO + partner) ---------- */
.brand-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.brand-row .divider { width: 1px; height: 64px; background: rgba(255,255,255,0.25); }
.brand-card { display: flex; gap: 14px; align-items: center; }
.brand-card img.headshot { width: 62px; height: 62px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255,255,255,0.6); background:#dbe3ff; }
/* Portrait headshots: bias the circular crop to the top so the head shows and
   the lower body is cropped out. Applies to every avatar (deck, bar, cards). */
img.headshot { object-position: center top; }
.brand-card .b-name { font-weight: 800; font-size: 17px; line-height: 1.15; }
.brand-card .b-role { font-size: 12.5px; opacity: 0.85; }
.brand-card .b-meta { font-size: 12px; opacity: 0.8; margin-top: 3px; line-height: 1.4; }
/* On white slides */
.slide:not(.title-slide) .brand-card .b-name { color: var(--navy); }
.slide:not(.title-slide) .brand-card .b-role,
.slide:not(.title-slide) .brand-card .b-meta { color: var(--muted); }
.slide:not(.title-slide) .brand-row .divider { background: var(--line); }
.logo-strip { display:flex; align-items:center; gap: 18px; flex-wrap: wrap; }
.logo-strip img { height: 30px; width:auto; object-fit: contain; }

/* ---------- Chrome: progress, footer, nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--teal); width: 0; z-index: 50; transition: width 300ms cubic-bezier(0.16,1,0.3,1); }

.slide-footer {
  position: absolute; left: var(--slide-pad); right: var(--slide-pad); bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px;
}
.title-slide .slide-footer { color: #9aa6d8; border-top-color: rgba(255,255,255,0.15); }
.slide-footer .eh { display:inline-flex; align-items:center; gap:6px; font-weight:700; }
.slide-footer .eh svg { width: 14px; height: 14px; }
.slide-footer .pending { color: var(--warn); font-weight: 700; }
.page-num { font-variant-numeric: tabular-nums; }

/* Proprietary-IP copyright line (injected into every footer surface). */
.ls-copyright { font-size: 9.5px; line-height: 1.4; color: var(--muted); opacity: .9; }
.slide-footer { flex-wrap: wrap; }
.slide-footer .ls-copyright { flex-basis: 100%; margin-top: 3px; }
.title-slide .slide-footer .ls-copyright { color: rgba(255,255,255,.5); }
.lp-foot .ls-copyright, .h-foot .ls-copyright { display: block; margin-top: 8px; color: inherit; opacity: .8; }
.ls-disclosures { display: block; margin-top: 8px; font-size: 9px; line-height: 1.45; color: inherit; opacity: .7; }

/* Nav arrows float on the right edge, vertically centered, so they never
   collide with the full-width compliance footer. */
.nav { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.nav button {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(12,16,48,0.5); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform 150ms ease, background 150ms ease; box-shadow: var(--shadow);
}
.nav button:hover { background: var(--teal-dark); transform: scale(1.08); }
.dots { display: none; } /* position is shown in the footer (n / total); dots removed to keep chrome clean */

/* Hint is a dark pill (readable on white slides) that fades out after a few seconds. */
.help-hint {
  position: fixed; left: 16px; top: 12px; z-index: 60; font-size: 11px; color: #fff;
  background: rgba(12,16,48,0.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px;
  animation: hintFade 0.6s ease 6s forwards;
}
@keyframes hintFade { to { opacity: 0; visibility: hidden; } }

/* ---------- QR block ---------- */
.qr-wrap { display:flex; gap:18px; align-items:center; }
.qr-wrap .qr { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--line); background:#fff; padding: 8px; }

/* ============================================================================
   MOBILE - stack every multi-column layout, reflow the deck for phones.
   ============================================================================ */
@media (max-width: 680px) {
  /* Flow the active slide in normal document flow so the PAGE scrolls. This
     avoids the fixed-height flex container that clips the top of tall slides. */
  html, body { height: auto; overflow: visible; }
  .deck { position: static; display: block; overflow: visible; }
  .slide {
    position: relative; inset: auto;
    min-height: 100vh; min-height: 100svh;
    padding: 26px 18px 88px;
    justify-content: flex-start;
  }
  .slide.center { justify-content: flex-start; }
  .slide-body { gap: 16px; flex: 0 0 auto; }

  /* Blanket min-width:0 so every flex/grid item can shrink below its content. */
  .slide, .slide * { min-width: 0; }
  p, p.lead, h1.deck-title, h2.slide-title, h3, .stat-value, .stat-sub,
  .callout, li, .b-name, .b-meta, .slide-footer, td, th { overflow-wrap: anywhere; }
  /* Checks lists: switch from flex to block with an absolutely-positioned icon,
     so the (anonymous) text node wraps instead of forcing the column wider. */
  ul.checks li { display: block; position: relative; padding-left: 32px; }
  ul.checks li::before { position: absolute; left: 0; top: 2px; width: 22px; }

  h1.deck-title { font-size: 32px; }
  h2.slide-title { font-size: 24px; }
  p.lead { font-size: 16px; max-width: none; }

  /* Stack every multi-column layout as plain BLOCKS. Block children are always
     <= parent width and wrap text, avoiding the grid/flex min-content expansion
     that was forcing the slide wider than the screen. */
  .split, .split.wide-left, .grid, .grid.c2, .grid.c3, .grid.c4, .flow, .flow.h, .brand-row { display: block; height: auto; }
  .split > * + *, .grid > * + *, .flow > * + *, .brand-row > * + * { margin-top: 14px; }
  .brand-row .divider { display: none; }
  .qr-wrap { flex-direction: column; align-items: flex-start; }

  /* Tables stay readable */
  table.compare th, table.compare td { padding: 8px 10px; font-size: 13px; }
  .stat-value { font-size: 26px; }

  /* Footer flows at the end of the (scrollable) slide instead of overlapping */
  .slide-footer { position: static; left: auto; right: auto; bottom: auto; margin-top: 20px; flex-wrap: wrap; gap: 6px 10px; }

  /* Nav to a small bottom-right pair; hint hidden */
  .nav { top: auto; bottom: 12px; right: 12px; transform: none; flex-direction: row; gap: 8px; }
  .nav button { width: 40px; height: 40px; }
  .dots, .help-hint { display: none; }
}

/* ============================================================================
   MOBILE - handouts (fixed 8.5in print sheet) fit to the phone width on screen.
   Print output is unchanged (it uses @page in each handout). Guarded to
   `screen` (not a bare max-width) because a Letter page's print content
   width is 8.5in = 816px - inside this same 820px breakpoint - so an
   unguarded query also matched at print time and collapsed every .two-col
   grid to a single column on every printed/PDF handout. Print pagination
   is handled entirely by @page + fitPrintScale() (seminar-kit.js), never by
   this rule.
   ============================================================================ */
@media screen and (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .sheet { width: 100% !important; min-height: auto !important; margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  .sheet * { min-width: 0; }
  .sheet .two-col, .sheet .cols { grid-template-columns: 1fr !important; }
  .sheet .snapshot { grid-template-columns: 1fr 1fr !important; }
  .sheet table, table.matrix, table.compare { font-size: 12px !important; }
  .sheet .cta-strip { flex-wrap: wrap; }
}

/* ============================================================================
   PRINT / PDF - stack every slide as a page. Same for deck export + handout.
   ============================================================================ */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { background: #fff; height: auto; }
  .deck { position: static; display: block; overflow: visible; }
  .progress, .nav, .dots, .help-hint { display: none !important; }
  .slide {
    position: relative; inset: auto; display: flex !important;
    width: 1280px; height: 720px; page-break-after: always; break-after: page;
    animation: none; box-shadow: none;
  }
  .slide:last-child { page-break-after: auto; }
  .title-slide { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* Utility */
.spacer { flex: 1; }
.row { display:flex; gap: 12px; align-items:center; }
.wrap { flex-wrap: wrap; }
.mt-a { margin-top: auto; }
.big { font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; color: var(--navy); letter-spacing:-0.02em; }
.vs-chip { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:999px; background:var(--navy); color:#fff; font-weight:800; font-size:14px; }

/* Co-marketing (RESPA cost-split) text: hide on single-branded (solo) pages,
   where there is no co-marketing partner, so the "co-marketed" claim is accurate. */
.ls-solo .ls-cobrand-only { display: none; }

/* ---- Co-branded contact bar on lead pages (kit-injected above .lp-foot). ---- */
.ls-contact-bar {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  flex-wrap: wrap; width: 100%; padding: 26px 20px; text-align: center;
}
.ls-contact-btn {
  display: inline-block; font: 800 14px Inter, sans-serif; text-decoration: none;
  padding: 12px 22px; border-radius: 10px; background: #fff; color: #1B2559;
  border: 1.5px solid #cfd6e6; transition: transform .12s;
}
.ls-contact-btn:hover { transform: translateY(-1px); border-color: #0091ad; }
.ls-contact-btn.primary { background: #0091ad; border-color: #0091ad; color: #fff; }
@media print { .ls-contact-bar { display: none !important; } }

/* ---- Interactive board (handout game): step tooltips + progress status. ---- */
.board-tip {
  display: none; position: absolute; z-index: 30; max-width: 240px;
  background: #1B2559; color: #fff; border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(27,37,89,.35); pointer-events: none;
  font-family: Inter, sans-serif;
}
.board-tip .bt-title { font-size: 12.5px; font-weight: 800; margin: 0 0 3px; }
.board-tip .bt-desc { font-size: 11.5px; line-height: 1.45; margin: 0; color: #c7d0f2; }
.board-tip .bt-ladder { font-size: 11px; line-height: 1.4; margin: 6px 0 0; color: #6ee7a0; font-weight: 700; }
.board-tip .bt-chute { font-size: 11px; line-height: 1.4; margin: 6px 0 0; color: #fca5a5; font-weight: 700; }
.board-status {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  background: #eef1f6; border: 1px solid #d7dcea;
  font: 600 12px Inter, sans-serif; color: #1B2559;
}
.board-status.good { background: #e7f6ec; border-color: #bfe6cd; color: #14532d; }
.board-status.bad { background: #fdecec; border-color: #f5c6c6; color: #7f1d1d; }
.board-status .bs-reset {
  font: 700 11px Inter, sans-serif; color: #547792; background: #fff;
  border: 1px solid #cfd6e6; border-radius: 8px; padding: 4px 10px; cursor: pointer;
  white-space: nowrap;
}
.board-status .bs-reset:hover { color: #1B2559; border-color: #9fb0cd; }
.board-tile.tappable:hover rect:first-of-type { filter: brightness(0.97); }
/* Connectors and their label pills must never intercept tile clicks. */
.board-link { pointer-events: none; }
/* No UA focus ring on tiles (the white box obscured neighboring tiles);
   the TAP NEXT glow ring is the visible cue. */
.board-tile { outline: none; }
.board-tile:focus { outline: none; }
/* Chute-hit feedback: pulse the chute you just slid down + the landing tile. */
@keyframes board-chute-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.board-link.board-flash { animation: board-chute-pulse 0.55s ease-in-out 3; }
.board-tile.board-land rect:first-of-type { animation: board-chute-pulse 0.55s ease-in-out 3; }
@media print {
  .board-tip, .board-status { display: none !important; }
  /* Exact one-Letter-page fit: kit JS sets --print-zoom from measured height. */
  .sheet { zoom: var(--print-zoom, 1); margin: 0 auto !important; min-height: auto !important; }
}

/* ---- Print break-control hygiene (applies everywhere) ----
   Keeps structural blocks intact across a page boundary, keeps headings
   attached to the content that follows them, keeps the compliance/footer
   block from being orphaned onto its own page, and never splits an image.
   Matters most for content that genuinely spans multiple print pages (hub
   grids, landing pages, decks); on single-page handouts fitPrintScale()
   already shrinks everything onto one Letter page so these rules are a
   no-op there. Scoped only to class names the kit itself defines (.card,
   .step, .callout, .stat, ul.checks, .board-*, .slide-footer) or already
   treats as a cross-piece convention in the compaction block below (.mini,
   .tl-row, .cta-strip, table.matrix/.compare rows, .snapshot .snap) - a
   piece's own one-off class names are out of scope for the kit. Both the
   modern (break-*) and legacy (page-break-*) property forms are set, same
   as the .slide pagination rule above, for older-engine coverage. */
@media print {
  .card, .step, .callout, .stat, .pill,
  .mini, .prop, .cta-strip, .board-legend, .board-wrap,
  .tl-row, .snapshot .snap, table.matrix tr, table.compare tr,
  ul.checks li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4,
  h1.deck-title, h2.slide-title, .h-title h1, .h-head h1 {
    break-after: avoid;
    page-break-after: avoid;
  }
  .slide-footer, .h-foot, .lp-foot, .ls-disclosures, .ls-copyright {
    break-inside: avoid;
    page-break-inside: avoid;
    break-before: avoid;
    page-break-before: avoid;
  }
  img, svg, .board-svg, .photo, .photo-fallback, .qr-wrap .qr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ---- Removed: legacy "Print compaction for one-page handouts (Legal)" ----
   Used to force-shrink .sheet-pad/.h-title/.cta-strip/.h-foot/.board-svg/
   .tl-row/.mini/table.matrix/.snapshot/.two-col with !important in print,
   back when these handouts were Legal-sized and needed a hard, unconditional
   shrink to fit. They are Letter now, and fitPrintScale() (seminar-kit.js)
   already scales the whole .sheet to fit one Letter page deterministically,
   proportionally, per piece. The !important rules here fought that: they
   always won over a piece's own @media print sizing (e.g. a piece's own
   `.h-title h1 { font-size: 42px }` in print was always overridden down to
   25px by this block, since !important beats a non-!important rule
   regardless of source order or specificity). Removed rather than scoped -
   no piece depends on it independent of fitPrintScale(), since every
   selector here only ever matches inside .sheet, and every .sheet already
   goes through the zoom-based fit.*/

/* ============================================================================
   INFOGRAPHIC DENSITY VOCABULARY (igx-*)  - added 2026-08-06
   Additive only. Consumed by seminars/<slug>/infographic-roadmap.html and
   content/<slug>/infographic.html. Nothing here overrides an existing .ig-*
   rule: every piece declares its own .ig-* block inline AFTER this stylesheet,
   so a same-name kit rule would always lose. Hence the separate igx- namespace.

   Rules for consumers:
     - Pieces set --igx-* custom properties inline on elements. Pieces never
       declare an .igx-* rule of their own.
     - Light bands (cream/white) use --igx-hN + --igx-hN-t.
       Dark bands (navy) use --igx-hN-l + --igx-dark-t.
     - Every number rendered through these classes must be a non-credit
       quantity or a program fact already published in the same piece.
   ============================================================================ */

:root {
  /* Poster palette. Identical values to the per-piece :root blocks, declared
     here so kit classes work even in a piece that has not declared them. A
     piece's own :root wins (same specificity, later in document order) and
     sets the same values, so this is a no-op visually. */
  --ig-navy: #1A3263;
  --ig-navy-2: #142650;
  --ig-gold: #FAB95B;
  --ig-steel: #547792;
  --ig-cream: #E8E2DB;
  --ig-cream-2: #F6F3EE;
  --igx-ink: #4b5a72;

  /* Option hues. Use in order h1, h2, h3, h4, h5 within one option group so
     sibling options are never the same color. Each hue: solid, tint (light
     bands), light (navy bands). */
  --igx-h1: #1A3263;  --igx-h1-t: rgba(26,50,99,0.12);    --igx-h1-l: #9FBBEC;
  --igx-h2: #0F766E;  --igx-h2-t: rgba(15,118,110,0.12);  --igx-h2-l: #5EEAD4;
  --igx-h3: #B07A1E;  --igx-h3-t: rgba(176,122,30,0.14);  --igx-h3-l: #FAB95B;
  --igx-h4: #6D3F7A;  --igx-h4-t: rgba(109,63,122,0.12);  --igx-h4-l: #D2B2E0;
  --igx-h5: #547792;  --igx-h5-t: rgba(84,119,146,0.14);  --igx-h5-l: #A9C4D9;
  --igx-dark-t: rgba(255,255,255,0.10);
}

/* ---- Option group: 2 to 4 parallel choices, visually differentiated ---- */
.igx-opts {
  display: grid; gap: 16px; align-items: stretch;
  grid-template-columns: repeat(var(--igx-cols, 3), minmax(0, 1fr));
}
.igx-opt {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px 15px; border-radius: 14px;
  background: var(--igx-dark-t);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 4px solid var(--igx-accent, var(--ig-gold));
}
.igx-opt.on-light {
  background: #fff;
  border-color: rgba(20,38,80,0.10);
  border-top-color: var(--igx-accent, var(--ig-navy));
  box-shadow: 0 6px 18px rgba(20,38,80,0.06);
}
.igx-opt h4, .igx-opt h3 {
  margin: 0; font: 800 17px/1.2 var(--font); color: #fff; letter-spacing: -0.01em;
}
.igx-opt.on-light h4, .igx-opt.on-light h3 { color: var(--ig-navy); }
.igx-opt p { margin: 0; font-size: 13px; line-height: 1.45; color: #cfd8ee; }
.igx-opt.on-light p { color: var(--igx-ink); }
.igx-opt .igx-spacer { flex: 1 1 auto; min-height: 0; }
.igx-opt-head { display: flex; align-items: center; gap: 12px; }

/* ---- Glyph badge: shape + hue carry as much signal as the glyph ---- */
.igx-badge {
  width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 13px;
  background: var(--igx-tint, var(--igx-dark-t));
  border: 1px solid var(--igx-accent, var(--ig-gold));
}
.igx-badge.round { border-radius: 999px; }
.igx-badge.notch { border-radius: 13px 13px 13px 4px; }
.igx-badge.solid { background: var(--igx-accent, var(--ig-gold)); border-color: var(--igx-accent, var(--ig-gold)); }
.igx-badge svg {
  width: 25px; height: 25px; display: block;
  fill: none; stroke: var(--igx-accent, var(--ig-gold));
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.igx-badge.solid svg { stroke: #fff; }
.igx-badge.lg { width: 56px; height: 56px; }
.igx-badge.lg svg { width: 30px; height: 30px; }

/* ---- Chips: one hard fact each, never a payment or a rate ---- */
.igx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.igx-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font: 800 10.5px/1.25 var(--font); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--igx-accent, var(--ig-navy));
  background: var(--igx-tint, var(--igx-dark-t));
  border: 1px solid var(--igx-accent, var(--ig-gold));
  white-space: nowrap;
}
.igx-chip .igx-k {
  font-weight: 700; letter-spacing: 0; text-transform: none; opacity: 0.75;
}
.igx-chip.plain { border-color: transparent; }

/* ---- Meter: qualitative 3-dot rating, same axes across sibling options ---- */
.igx-meters { display: flex; flex-direction: column; gap: 5px; }
.igx-meter {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  font: 700 11.5px/1.2 var(--font); color: #cfd8ee;
}
.igx-opt.on-light .igx-meter, .on-light .igx-meter { color: var(--igx-ink); }
.igx-meter .igx-dots { display: inline-flex; gap: 4px; }
.igx-meter i {
  display: block; width: 9px; height: 9px; border-radius: 999px;
  background: var(--igx-tint, var(--igx-dark-t));
  border: 1px solid var(--igx-accent, var(--ig-gold));
}
.igx-meter i.on { background: var(--igx-accent, var(--ig-gold)); }

/* ---- Stat band: 2 to 5 non-credit stats, hairline separated ---- */
.igx-stats {
  display: grid; gap: 1px; border-radius: 14px; overflow: hidden;
  background: rgba(20,38,80,0.12);
  grid-template-columns: repeat(var(--igx-cols, 4), minmax(0, 1fr));
}
.igx-stat { background: #fff; padding: 13px 16px; display: flex; flex-direction: column; gap: 3px; }
.igx-stat .igx-v {
  font: 800 25px/1 var(--font); letter-spacing: -0.02em;
  color: var(--igx-accent, var(--ig-navy)); font-variant-numeric: tabular-nums;
}
.igx-stat .igx-l {
  font: 800 10px/1.2 var(--font); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ig-steel);
}
.igx-stat .igx-s { font: 400 12px/1.4 var(--font); color: var(--igx-ink); }
.igx-stats.on-dark { background: rgba(255,255,255,0.18); }
.igx-stats.on-dark .igx-stat { background: rgba(255,255,255,0.06); }
.igx-stats.on-dark .igx-l, .igx-stats.on-dark .igx-s { color: #cfd8ee; }

/* ---- Mini bars: shares of a whole, non-credit quantities only ---- */
.igx-bars { display: flex; flex-direction: column; gap: 8px; }
.igx-bar {
  display: grid; grid-template-columns: var(--igx-labelw, 150px) 1fr auto;
  gap: 12px; align-items: center;
  font: 700 12px/1.25 var(--font); color: var(--igx-ink);
}
.igx-bar .igx-track {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--igx-tint, rgba(20,38,80,0.08));
}
.igx-bar .igx-fill {
  display: block; height: 100%; border-radius: 999px;
  width: var(--igx-pct, 0%); background: var(--igx-accent, var(--ig-navy));
}
.igx-bar .igx-val { font-variant-numeric: tabular-nums; color: var(--igx-accent, var(--ig-navy)); }
.igx-bars.on-dark .igx-bar { color: #cfd8ee; }
.igx-bars.on-dark .igx-track { background: rgba(255,255,255,0.14); }

/* ---- Donut: one share, pure CSS, prints correctly (kit forces exact colors) ---- */
.igx-donut {
  position: relative; width: 92px; height: 92px; border-radius: 999px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: conic-gradient(
    var(--igx-accent, var(--ig-navy)) 0 calc(var(--igx-pct, 0) * 1%),
    var(--igx-tint, rgba(20,38,80,0.10)) 0
  );
}
.igx-donut .igx-hole {
  width: 62px; height: 62px; border-radius: 999px; background: #fff;
  display: grid; place-items: center;
  font: 800 17px/1 var(--font); color: var(--igx-accent, var(--ig-navy));
  font-variant-numeric: tabular-nums;
}
.igx-donut.on-dark .igx-hole { background: var(--ig-navy-2); color: #fff; }

/* ---- Numbered flow rail: horizontal connector strip ---- */
.igx-rail {
  position: relative; display: grid; gap: 14px;
  grid-template-columns: repeat(var(--igx-cols, 4), minmax(0, 1fr));
}
.igx-rail::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 3px;
  background: repeating-linear-gradient(to right, var(--ig-steel) 0 8px, transparent 8px 15px);
}
.igx-rail .igx-node { position: relative; display: flex; flex-direction: column; gap: 7px; }
.igx-rail .igx-num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--igx-accent, var(--ig-navy)); color: #fff;
  font: 800 15px/1 var(--font); font-variant-numeric: tabular-nums;
}
.igx-rail .igx-node h4 { margin: 0; font: 800 14px/1.25 var(--font); color: var(--ig-navy); }
.igx-rail .igx-node p { margin: 0; font: 400 12.5px/1.45 var(--font); color: var(--igx-ink); }
.igx-rail.on-dark .igx-node h4 { color: #fff; }
.igx-rail.on-dark .igx-node p { color: #cfd8ee; }

/* ---- Row filler: kills the dead right half of a wide one-line card ---- */
.igx-rowfill { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.igx-rowfill > .igx-side {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  min-width: 180px; text-align: right;
}
.igx-rowfill > .igx-side .igx-chips { justify-content: flex-end; }

/* ---- Dense key/value block ---- */
.igx-kv {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px;
  margin: 0; font: 400 12.5px/1.45 var(--font); color: var(--igx-ink);
}
.igx-kv dt { font-weight: 800; color: var(--ig-navy); white-space: nowrap; }
.igx-kv dd { margin: 0; }
.igx-kv.on-dark dt { color: var(--ig-gold); }
.igx-kv.on-dark dd { color: #cfd8ee; }

/* ---- Generic dense columns ---- */
.igx-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.igx-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.igx-tight { gap: 10px; }

/* ---- Print: never split a density unit across the page boundary ---- */
@media print {
  .igx-opt, .igx-stat, .igx-bar, .igx-donut, .igx-rail .igx-node, .igx-kv {
    break-inside: avoid; page-break-inside: avoid;
  }
}

/* ---- Screen-only mobile stacking. `screen and` is REQUIRED: a Letter print
       page is 816px wide, so a bare max-width query also matches at print
       time (documented trap, see the .sheet mobile block above). ---- */
@media screen and (max-width: 860px) {
  .igx-opts, .igx-stats, .igx-rail, .igx-cols2, .igx-cols3 { grid-template-columns: minmax(0, 1fr); }
  .igx-rail::before { display: none; }
  .igx-rowfill { grid-template-columns: minmax(0, 1fr); }
  .igx-rowfill > .igx-side { align-items: flex-start; text-align: left; min-width: 0; }
  .igx-rowfill > .igx-side .igx-chips { justify-content: flex-start; }
  .igx-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .igx-bar .igx-track { grid-column: 1 / -1; }
}
