/* Social Breathalyzer — report page styles (Wave 9c rebuild + Wave 9.1b breathalyzer)
 *
 * Visual grammar: WaPo's Oct–Dec 2025 TikTok investigation +
 *   the breathalyzer-instrument metaphor (Wave 9.1, see
 *   docs/wave-9-1-breathalyzer-visual-brief-2026-05-03.md):
 *   - Generous whitespace, large serif sectional dividers
 *   - KPI tiles with gold accent bar at top, navy header text, large display number
 *   - Sparklines: navy stroke + gold terminal point
 *   - Reference lines: gray-thin if uncrossed, bold-colored if crossed
 *   - One dark-bg section: the cohort bubble scatter
 *   - Headline hero: acid-lime highlight figure (matches the homepage)
 *   - Linear severity bar (Wave 9.1b D2): three-zone (Link Blue → Burnt Amber →
 *     Dark Navy) gauge with participant marker — replaces red traffic-light
 *   - Aligned-bar comparison pairs (Wave 9.1b B3/B4): Apple Screen Time pattern
 *
 * Brand: Navy + Gold + Burnt Amber `#b8871c` (warning tint approved Wave 9.1).
 *        No red/maroon anywhere on this audience-facing page.
 *
 * 2026-07-08 homepage-accent alignment: the muted accents were brightened to
 * match the socialbreathalyzer.ai homepage (sb-design.css) palette —
 *   - link blue `#5B5BFF`  -> electric indigo `#5B5BFF` (--sb-cyber)
 *   - top-border red (was #dc2626) / alert red (was #e5322d) -> hot pink `#FF3D7F` (--sb-pop)
 *   - lime highlights unified on `#C8FF3D` (--sb-lime)
 *   - page background warmed `#FFF8F0` -> cream `#FFF8F0` (--sb-paper)
 * The gold/amber "warning + you" system is intentionally left intact: bright
 * yellow reads only as a fill on the homepage, never as text, and several
 * amber uses here are small text that must stay legible.
 *
 * 2026-07-08 bolder pass: pushed further toward the homepage punch —
 *   - semantic split: HOT PINK now marks "you got worse / this is you / you
 *     crossed a line" (ramp %, KPI delta.up, compare delta/you, bar-pair up
 *     bar + delta, crossed threshold border + count). Amber is retained only
 *     as the steady warning-zone / structural warm accent (severity zone,
 *     late-night heatmap, cohort markers) — NOT for period-over-period gains.
 *   - warmed the cool-blue explanatory panels (.what-means, .china-sidebar,
 *     .v1-notice, .brain-neuro) from `#f4f8fc`/`#c9d8e6` to warm cream
 *     `#FCF2E4`/`#F0DEC2` so nothing on the page still reads corporate-blue.
 * Sun yellow was deliberately NOT used for fills: it has too little contrast
 * on this light background (it only pops behind a dark border, as on the
 * homepage cards / share-card heroes).
 */

/* =========================================================================
 * Page shell
 * ========================================================================= */

.report-body {
  background: #FFF8F0;
}

.report {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  color: #111827;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .report { padding: 2rem 2rem 6rem; }
}

/* =========================================================================
 * Hero
 * ========================================================================= */

.report-hero {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-top: 8px solid #FF3D7F;
  border-radius: 6px;
  padding: 1.5rem 1.25rem 1.4rem;
  margin-bottom: 2rem;
}

.report-hero .brand-mark {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

.report-greeting {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.95rem;
  color: #111827;
  line-height: 1.1;
}

.customer-tag[hidden] { display: none; }
.customer-tag {
  display: inline-block;
  margin-left: 0.7rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  background: #111827;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.report-date-range {
  margin: 0.7rem 0 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.muted { color: #4b5563; }

@media (min-width: 768px) {
  .report-greeting { font-size: 2.4rem; }
  .report-hero { padding: 2rem 2rem 1.6rem; }
}

/* =========================================================================
 * Section dividers (WaPo "After one week / one month" style)
 * ========================================================================= */

.temporal-divider {
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #111827;
}
.temporal-divider .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5B5BFF;
  margin-bottom: 0.3rem;
}
.temporal-divider h3 {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  color: #111827;
  font-weight: 700;
}

/* =========================================================================
 * Per-platform section
 * ========================================================================= */

.platform-report {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .platform-report { padding: 2.25rem 2.5rem; }
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e5e9ed;
}
.platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #111827;
  color: #ffffff;
  padding: 0.4rem;
  border-radius: 4px;
  line-height: 1;
}
.platform-mark svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}
.platform-name {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
}
.platform-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b5563;
}

/* =========================================================================
 * Hero callout (the most visceral fact)
 * ========================================================================= */

.hero-callout {
  background: #fffaec;
  border: 1px solid #f3d27a;
  border-left: 5px solid #f59e0b;
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  margin: 1.2rem 0 2rem;
}
.hero-callout .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #8a6712;
  margin-bottom: 0.35rem;
}
.hero-callout .text {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}
.hero-callout .cite {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #4b5563;
}

/* =========================================================================
 * KPI tiles (compulsion signature, comparisons, exec summary)
 * ========================================================================= */

/* Section label sitting directly above a tile-grid (e.g. "Compulsion
 * signature"). The global h1-h4 reset zeroes heading margin, so without
 * this the heading text sits flush against the first card's colored
 * top border. */
.section-h4 {
  margin: 0 0 0.9rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: #111827;
  font-weight: 700;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .tile-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .tile-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .tile-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
/* Wave 9.1a — bumped from 880px to 1024px to eliminate the
 * horizontal-overflow bug at intermediate viewport widths (the parent
 * .report + .platform-report padding plus grid gap pushed the 3-column
 * layout past the viewport in the ~880-1100px range). */
@media (min-width: 1024px) {
  .tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-top: 4px solid #FF3D7F;
  border-radius: 4px;
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  /* Wave 9.1a — allow grid/flex children to shrink below content
   * intrinsic min-width; without this, long tabular numbers can force
   * the column wider than its track. */
  min-width: 0;
}
.kpi-card .header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111827;
  font-weight: 600;
}
/* Wave 9.1a — headline numerics use a tabular-aligned sans-serif
 * stack so digits line up vertically across the 3-tile compulsion-
 * signature row. Section/body headings remain Georgia serif. */
.kpi-card .value,
.kpi-card .delta,
.compare-delta,
.big-number .value,
.headline-number {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
}
.kpi-card .value {
  font-size: 2rem;
  line-height: 1;
  color: #111827;
}
.kpi-card .value.small { font-size: 1.5rem; }
.kpi-card .delta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}
.kpi-card .delta.up { color: #FF3D7F; }
.kpi-card .caption {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.45;
}
/* Definition sits directly under the tile name: pull it up close to the
 * header, add a little space before the headline number. */
.kpi-card .caption-top {
  margin-top: -0.1rem;
  margin-bottom: 0;
}

/* Compulsion-signature tiles reserve fixed vertical space for their two
 * variable-length rows — the definition caption and the "Week 1 … over N
 * weeks" delta — so the headline number, sparkline, and quote all line up
 * across the three cards regardless of how many lines each card's text wraps
 * to. Scoped to .signature-card so other KPI tiles (cohort, comparisons)
 * aren't padded. Only applied at >=600px, where the grid is multi-column and
 * cards share a row; on single-column mobile the rows stack, so the reserves
 * would just add dead space (e.g. under the delta-less Automaticity card). */
@media (min-width: 600px) {
  .signature-card .caption-top {
    min-height: 3.4rem; /* up to three lines of definition text */
  }
  .signature-card .delta {
    min-height: 2.7rem; /* up to two lines, incl. a wrapped delta */
  }
}
.kpi-card .sparkline-wrap {
  height: 38px;
  margin-top: 0.15rem;
}
.kpi-card .quote {
  font-size: 0.78rem;
  color: #4b5563;
  font-style: italic;
  margin: 0.15rem 0 0;
  line-height: 1.4;
  border-top: 1px dotted #d8dde2;
  padding-top: 0.6rem;
}

/* =========================================================================
 * Big number (single-tile callouts, e.g. Loads Served)
 * ========================================================================= */

.big-number {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-top: 6px solid #111827;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.big-number .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #5B5BFF;
  margin-bottom: 0.5rem;
}
.big-number .value {
  /* Wave 9.1a — tabular sans-serif (overrides earlier Georgia default
   * for headline numerics; see .kpi-card .value rule). */
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums slashed-zero;
}
@media (min-width: 768px) {
  .big-number .value { font-size: 4.2rem; }
}
.big-number .caption {
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Per-platform hours split — sits directly under the combined total in the
 * exec summary. Pulled up against the .big-number card's bottom margin. */
.platform-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -1rem 0 2rem;
}
.split-pill {
  display: inline-flex;
  align-items: baseline;
  font-size: 0.9rem;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.split-pill strong {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums slashed-zero;
  margin-right: 0.1rem;
}
.split-pill .split-span {
  color: #6b7280;
  font-size: 0.82rem;
  margin-left: 0.25rem;
}

/* =========================================================================
 * Chart cards
 * ========================================================================= */

.chart-block {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 2rem;
}
.chart-block h4 {
  margin: 0 0 0.3rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: #111827;
  font-weight: 700;
}
.chart-block .subtitle {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #4b5563;
}
.chart-wrap {
  position: relative;
  height: 280px;
}
.chart-wrap.tall { height: 360px; }
.chart-wrap.short { height: 200px; }

/* Weekly ramp — HTML hero above the canvas so the headline stays crisp. */
.ramp-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.35rem 0 1rem;
}
.ramp-pct {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  color: #FF3D7F;
  font-variant-numeric: tabular-nums slashed-zero;
}
.ramp-hero.down .ramp-pct { color: #3f7d3f; }
.ramp-hero.flat .ramp-pct { color: #4b5563; }
.ramp-arrow { font-size: 0.66em; }
.ramp-mult {
  background: #C8FF3D;
  color: #111827;
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.28rem 0.62rem;
  border-radius: 6px;
}
@media (min-width: 768px) { .ramp-pct { font-size: 3.3rem; } }

.chart-cite {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #4b5563;
  font-style: italic;
  line-height: 1.5;
}

/* Threshold summary cards — sit above the daily-minutes chart. The day count
 * is the primary element; crossed thresholds get a brand-gold accent. */
.threshold-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.threshold-card {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-top: 4px solid #d8dde2;
  border-radius: 4px;
  padding: 0.85rem 0.9rem;
}
.threshold-card.crossed {
  border-top-color: #FF3D7F;
}
.threshold-card .tc-days {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 2.25rem;
  line-height: 1;
  color: #9ca3af;
}
.threshold-card.crossed .tc-days {
  color: #FF3D7F;
}
.threshold-card .tc-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  margin-top: 0.3rem;
}
.threshold-card .tc-desc {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.4;
  margin-top: 0.3rem;
}
@media (max-width: 640px) {
  .threshold-cards { grid-template-columns: 1fr; }
}

/* =========================================================================
 * Side-by-side comparison cards (you vs cohort, first-vs-current)
 * ========================================================================= */

.compare-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .compare-pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.compare-card {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
}
.compare-card.you {
  border: 2px solid #FF3D7F;
  background: #fffaec;
}
.compare-card .role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b5563;
  margin-bottom: 0.4rem;
}
.compare-card.you .role { color: #FF3D7F; font-weight: 600; }
.compare-card .heading {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.6rem;
}
.compare-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.4rem;
  column-gap: 0.8rem;
  font-size: 0.92rem;
}
.compare-card dt { color: #4b5563; }
.compare-card dd { margin: 0; font-weight: 600; color: #111827; }

.compare-delta {
  margin: 0.85rem 0 2rem;
  text-align: center;
  font-size: 1.1rem;
  /* Wave 9.1a — tabular sans-serif for headline numerics (was Georgia). */
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
}
.compare-delta .up { color: #FF3D7F; }

/* =========================================================================
 * BSMAS self-check
 * ========================================================================= */

.bsmas-block {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  padding: 1.25rem 1.3rem;
  margin-bottom: 2rem;
}
.bsmas-block h4 {
  margin: 0 0 0.4rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: #111827;
  font-weight: 700;
}
.bsmas-block .intro {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
}
.bsmas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bsmas-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 0;
  border-bottom: 1px solid #eef1f4;
}
.bsmas-row:last-child { border-bottom: 0; }
.bsmas-body { flex: 1 1 auto; min-width: 0; }
.bsmas-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin-bottom: 0.1rem;
}
.bsmas-component {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  font-weight: 800;
}
.bsmas-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.bsmas-tag.in-data { background: #C8FF3D; color: #111827; }
.bsmas-tag.reflect { background: #eef1f4; color: #4b5563; }
.bsmas-tag.none { color: #9aa3ad; border: 1px solid #e5e9ed; }
.bsmas-def {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0.1rem 0 0.35rem;
}
.bsmas-evidence {
  font-size: 0.92rem;
  color: #111827;
  line-height: 1.45;
}
.bsmas-question {
  font-size: 0.92rem;
  color: #4b5563;
  font-style: italic;
  line-height: 1.45;
}
.bsmas-footer {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.5;
}

/* =========================================================================
 * What-this-means panels (collapsible per platform)
 * ========================================================================= */

.what-means {
  margin-bottom: 2rem;
  background: #FCF2E4;
  border: 1px solid #F0DEC2;
  border-radius: 4px;
  padding: 0.2rem 1.2rem;
}
.what-means summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.what-means summary::-webkit-details-marker { display: none; }
.what-means summary::after {
  content: " +";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #5B5BFF;
}
.what-means[open] summary::after { content: " \2212"; }
.what-means .body { padding: 0.2rem 0 1rem; font-size: 0.92rem; line-height: 1.6; }
.what-means .body p { margin: 0 0 0.7rem; }
.what-means .body p:last-child { margin-bottom: 0; }
.what-means .body .quote {
  border-left: 3px solid #f59e0b;
  padding: 0.4rem 0.9rem;
  background: #ffffff;
  margin: 0.6rem 0;
  font-style: italic;
  color: #111827;
}
.what-means .body .actions {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}
.what-means .body .actions li { margin-bottom: 0.3rem; }

/* =========================================================================
 * Cohort bubble scatter (the dark section, mirrors WaPo dark-mode treatment)
 * ========================================================================= */

.cohort-block {
  background: #111827;
  color: #f4f8fc;
  border-radius: 6px;
  padding: 1.5rem 1.4rem 1.6rem;
  margin: 1.5rem 0 2rem;
}
.cohort-block h4 {
  margin: 0 0 0.4rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
}
.cohort-block .subtitle {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: #c9d8e6;
}
.cohort-block .chart-wrap {
  background: #0e2a4f;
  border-radius: 4px;
  padding: 0.6rem;
}
.cohort-block .chart-cite {
  color: #c9d8e6;
}
.cohort-summary {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #111827;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #ffffff;
  border-left: 4px solid #f59e0b;
}
.cohort-summary strong { color: #f59e0b; }

/* Cohort placement mini-bars on you-vs-median tiles */
.cohort-placement-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 0.7rem 0 0;
}
.cohort-bar {
  position: relative;
  height: 8px;
  background: #e5e9ed;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.cohort-bar .marker {
  position: absolute;
  top: -3px;
  width: 14px;
  height: 14px;
  background: #f59e0b;
  border: 2px solid #111827;
  border-radius: 50%;
  transform: translateX(-50%);
}
.cohort-bar .median-tick {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 8px;
  background: #4b5563;
}
.cohort-text {
  font-size: 0.85rem;
  color: #4b5563;
}
.cohort-text strong { color: #111827; }

/* =========================================================================
 * Exec summary
 * ========================================================================= */

.exec-summary {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-top: 8px solid #111827;
  border-radius: 6px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .exec-summary { padding: 2rem 2.25rem; }
}
.exec-summary h2 {
  margin: 0 0 0.4rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  color: #111827;
}
.exec-summary .subtitle {
  margin: 0 0 1.5rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* =========================================================================
 * Exec summary — Option 1 editorial hero
 * The giant total is the star: no nested box, left-aligned, oversized. The
 * platform split is one stacked bar; the secondary stats are a divided strip.
 * ========================================================================= */
.exec-summary .big-number {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: left;
  margin: 0 0 1.4rem;
}
.exec-summary .big-number .label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}
.exec-summary .big-number .value {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.55rem;
}
@media (min-width: 768px) {
  .exec-summary .big-number .value { font-size: 6rem; }
}
.exec-summary .big-number .caption {
  text-align: left;
  max-width: 60ch;
  margin: 0;
}
.big-workdays {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.5;
}
.big-workdays .hl {
  background: #C8FF3D;
  color: #111827;
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  padding: 0.05em 0.38em;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Platform proportion bar */
.platform-bar-wrap { margin: 0 0 1.5rem; }
.platform-bar {
  display: flex;
  width: 100%;
  height: 30px;
  border: 1px solid #111827;
  border-radius: 6px;
  overflow: hidden;
}
.platform-bar-seg { display: block; height: 100%; min-width: 3px; }
.platform-bar-seg + .platform-bar-seg { border-left: 2px solid #ffffff; }
.platform-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  margin-top: 0.75rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #111827;
}
.legend-dot { width: 0.7rem; height: 0.7rem; border-radius: 3px; flex: none; }
.legend-item strong { font-weight: 700; }
.legend-hrs {
  color: #4b5563;
  font-variant-numeric: tabular-nums slashed-zero;
}

/* Borderless secondary-stat strip */
.stat-strip {
  display: flex;
  padding-top: 1.15rem;
}
.exec-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0.95rem;
}
.exec-stat:first-child { padding-left: 0; }
.stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa3ad;
  margin-bottom: 0.4rem;
}
.stat-value {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.05;
  font-variant-numeric: tabular-nums slashed-zero;
}
.stat-value.alert { color: #FF3D7F; }
@media (max-width: 560px) {
  .stat-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 0.9rem; }
  .exec-stat, .exec-stat:first-child { padding: 0; }
  .stat-value { font-size: 1.55rem; }
}
.china-sidebar {
  background: #FCF2E4;
  border: 1px solid #F0DEC2;
  border-left: 4px solid #111827;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
}
.china-sidebar h5 {
  margin: 0 0 0.4rem;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: #111827;
}
.china-sidebar p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.china-sidebar .row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dotted #d8dde2;
  font-size: 0.9rem;
}
.china-sidebar .row:last-of-type { border-bottom: 0; }
.china-sidebar .row .label { color: #4b5563; }
.china-sidebar .row .value { font-weight: 600; color: #111827; }

/* =========================================================================
 * Platform tabs — shown with 2+ platforms, directly under the exec summary.
 * Lets the reader page through one platform's report at a time instead of
 * scrolling the whole stack.
 * ========================================================================= */

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0.4rem;
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.platform-tab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.platform-tab:hover { background: #f4f8fc; color: #111827; }
.platform-tab:focus-visible {
  outline: 2px solid #5B5BFF;
  outline-offset: 2px;
}
.platform-tab.is-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}
.platform-tab.is-active .platform-tab-mark {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}
.platform-tab-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f4f8fc;
  color: #111827;
}
.platform-tab-mark svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
@media (max-width: 560px) {
  .platform-tab-label { display: none; }
  .platform-tab { flex: 1 1 0; padding: 0.6rem; }
  .platform-tab-mark { width: 1.7rem; height: 1.7rem; font-size: 0.8rem; }
  .platform-tab-mark svg { width: 1.15rem; height: 1.15rem; }
}

/* =========================================================================
 * Stage progress rail (recommendation #1)
 * A slim sticky "you are here" rail for the Build -> Sustain -> Climax ->
 * Reflection chapters. The dock is the sticky element and pins just beneath
 * the sticky site header (--sb-subnav-top is measured in report.js). Built
 * mobile-first: on narrow screens each step stacks its number over a short
 * label so all four fit in one row.
 * ========================================================================= */
.stage-rail-dock {
  position: sticky;
  top: var(--sb-subnav-top, 0px);
  z-index: 25;
  background: #fff8f0;
  padding: 0.5rem 0 0.6rem;
  margin: 0 0 1.75rem;
}
.stage-rail-dock[hidden] { display: none; }
.stage-rail {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  padding: 0.4rem 0.5rem 0.55rem;
  box-shadow: 0 6px 18px -14px rgba(17, 24, 39, 0.5);
}
.stage-rail-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stage-rail-platform {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-right: 0.55rem;
  border-right: 1px solid #e5e9ed;
}
.stage-rail-platform[hidden] { display: none; }
.stage-rail-platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 5px;
  background: #111827;
  color: #ffffff;
}
.stage-rail-platform-mark svg { width: 1rem; height: 1rem; display: block; }
.stage-rail-platform-name {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.stage-rail-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}
.stage-rail-item { flex: 1 1 0; min-width: 0; }
.stage-rail-step {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.3rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa3ad;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.stage-rail-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #eef1f4;
  color: #6b7280;
  font-size: 0.65rem;
}
.stage-rail-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-rail-step:hover { background: #f4f8fc; color: #111827; }
.stage-rail-step.is-done { color: #4b5563; }
.stage-rail-step.is-done .stage-rail-num { background: #111827; color: #ffffff; }
.stage-rail-step.is-active { color: #111827; }
.stage-rail-step.is-active .stage-rail-num { background: #f59e0b; color: #111827; }
.stage-rail-step:focus-visible { outline: 2px solid #5B5BFF; outline-offset: 2px; }
.stage-rail-progress {
  height: 3px;
  margin: 0.45rem 0.15rem 0;
  border-radius: 999px;
  background: #eef1f4;
  overflow: hidden;
}
.stage-rail-progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: #f59e0b;
  transition: width 0.25s ease;
}
@media (max-width: 560px) {
  .stage-rail-step {
    flex-direction: column;
    gap: 0.22rem;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.15rem;
  }
  .stage-rail-num { width: 1.1rem; height: 1.1rem; font-size: 0.6rem; }
  /* Two-word labels wrap instead of truncating; reserve two lines so the
     numerals stay aligned across single- and double-line steps. */
  .stage-rail-label {
    white-space: normal;
    overflow: visible;
    text-align: center;
    line-height: 1.15;
    min-height: 2.3em;
    display: flex;
    align-items: center;
  }
  /* Keep the glyph as the platform cue; drop the word to protect step room. */
  .stage-rail-platform-name { display: none; }
  .stage-rail-platform { gap: 0; padding-right: 0.45rem; }
  .stage-rail-platform-mark { width: 1.7rem; height: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-rail-progress-fill { transition: none; }
  .stage-rail-step { transition: none; }
}

/* =========================================================================
 * Legacy-V1 notice
 * ========================================================================= */

.v1-notice {
  background: #FCF2E4;
  border: 1px solid #F0DEC2;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: #111827;
  line-height: 1.5;
}
.v1-notice strong { color: #111827; }

/* =========================================================================
 * Footer
 * ========================================================================= */

.report-footer {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  padding: 1.4rem 1.3rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
}
.report-footer h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: #111827;
  font-family: Georgia, serif;
}
.report-footer p { margin: 0 0 0.6rem; }
.report-footer .report-footer-links a {
  color: #5B5BFF;
  text-decoration: none;
}
.report-footer .report-footer-links a:hover { text-decoration: underline; }

.brain-neuro {
  border: 1px solid #F0DEC2;
  background: #FCF2E4;
  border-radius: 4px;
  padding: 0 1.2rem;
  margin-bottom: 1.2rem;
}
.brain-neuro summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}
.brain-neuro summary::-webkit-details-marker { display: none; }
.brain-neuro summary::after { content: " +"; color: #5B5BFF; }
.brain-neuro[open] summary::after { content: " \2212"; }
.brain-neuro .brain-neuro-body { padding: 0 0 1rem; line-height: 1.6; }
.brain-neuro .quote {
  font-style: italic;
  border-left: 3px solid #f59e0b;
  padding: 0.4rem 0.9rem;
  background: #ffffff;
  margin: 0 0 0.5rem;
}
.brain-neuro .cite {
  font-size: 0.82rem;
  color: #4b5563;
  margin: 0 0 0.7rem;
}

.citations-list {
  margin: 1.2rem 0 0.4rem;
  font-size: 0.88rem;
}
.citations-list > summary {
  cursor: pointer;
  color: #111827;
  font-weight: 600;
  padding: 0.4rem 0;
}
.citations-list ol.citations {
  margin: 0.4rem 0 0;
  padding-left: 1.4rem;
  color: #4b5563;
  line-height: 1.5;
}
.citations-list ol.citations li {
  margin: 0 0 0.35rem;
}
.citations-list ol.citations a {
  color: #5B5BFF;
}

/* =========================================================================
 * Loading / empty / pending states
 * ========================================================================= */

.report-loading,
.report-empty,
.report-pending {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 640px;
}
.report-empty h2,
.report-pending h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, serif;
  color: #111827;
}
.report-empty p,
.report-pending p,
.report-loading {
  color: #4b5563;
  margin: 0;
}

/* =========================================================================
 * Print
 * ========================================================================= */

@media print {
  .site-header, .site-footer, .brain-neuro summary::after { display: none; }
  .platform-report, .exec-summary, .report-hero, .chart-block { break-inside: avoid; }
  .cohort-block { background: #f4f8fc; color: #111827; }
  .cohort-block h4 { color: #111827; }
  .cohort-block .subtitle, .cohort-block .chart-cite { color: #4b5563; }
}

/* ── Wave 9d — topic distribution horizontal bar list ───────────────── */
.topic-list {
  list-style: none;
  margin: 0.4rem 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.topic-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.topic-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.topic-label {
  color: #111827;
  font-weight: 600;
  font-family: Georgia, serif;
}
.topic-meta {
  color: #4b5563;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  white-space: nowrap;
}
.topic-track {
  position: relative;
  width: 100%;
  height: 14px;
  background: #f4f8fc;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e9ed;
}
.topic-bar {
  height: 100%;
  background: #111827;
  border-radius: 3px 0 0 3px;
  transition: width 0.4s ease;
  min-width: 4px;
}
.topic-row:nth-child(1) .topic-bar { background: #111827; }
.topic-row:nth-child(2) .topic-bar { background: #5B5BFF; }
.topic-row:nth-child(3) .topic-bar { background: #5B5BFF; }
.topic-row:nth-child(n+4) .topic-bar { background: #6a8aa8; }

/* =========================================================================
 * Wave 9.1b — Aligned bar pair comparison (B3 + B4).
 * Replaces the old side-by-side .compare-card stat tables.
 * ========================================================================= */

.bar-pair-block {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  padding: 1.1rem 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
}
.bar-pair-block h4 {
  margin: 0 0 0.85rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.bar-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem 1rem;
  align-items: end;
  /* Shared baseline; the y-axis is the reading line. */
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.bar-col .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-align: center;
}
.bar-col .value-above {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.3rem;
}
.bar-col .bar {
  width: 100%;
  max-width: 120px;
  background: #6a8aa8;
  border-radius: 4px 4px 0 0;
  /* Height set inline. Min height for visibility. */
  min-height: 8px;
}
.bar-col.first .bar { background: #6a8aa8; }
.bar-col.current.up .bar { background: #FF3D7F; }
.bar-col.current.down .bar { background: #5B5BFF; }
.bar-col.current.flat .bar { background: #6a8aa8; }
.bar-axis-base {
  grid-column: 1 / -1;
  height: 1px;
  background: #111827;
  margin-top: -1px;
}
.bar-pair-delta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  color: #6a8aa8;
  padding-bottom: 0.4rem;
}
.bar-pair-delta.up { color: #FF3D7F; }
.bar-pair-delta.down { color: #5B5BFF; }
.bar-pair-delta .arrow {
  font-size: 0.55em;
  font-weight: 700;
  line-height: 1;
}
.bar-pair-raw {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: center;
}
.bar-pair-secondary {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #4b5563;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
 * Wave 9.1b — Linear severity bar (breathalyzer pattern D2).
 * Used as the climax tile when no Habit Moment is available.
 * Three zones: Link Blue (below) → Burnt Amber (warning) → Dark Navy (severe).
 * Redundant non-color cue: zone badge text + dashed threshold lines.
 * ========================================================================= */

.severity-block {
  background: #ffffff;
  border: 1px solid #d8dde2;
  border-top: 4px solid #b8871c;
  border-radius: 4px;
  padding: 1.1rem 1.2rem 1.3rem;
  margin-bottom: 1.6rem;
}
.severity-block h4 {
  margin: 0 0 0.2rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  color: #111827;
  font-weight: 700;
}
.severity-block .subtitle {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: #4b5563;
}
.severity-bar-wrap {
  position: relative;
  margin: 0.4rem 0;
  padding: 2rem 0 2.6rem; /* top: room for the marker label; bottom: room for (possibly 2-line) tick labels */
}
.severity-bar-rail {
  position: relative;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.severity-bar-rail .zone {
  height: 100%;
}
.severity-bar-rail .zone-below { background: #5B5BFF; }
.severity-bar-rail .zone-warn { background: #b8871c; }
.severity-bar-rail .zone-above { background: #111827; }
.severity-threshold {
  position: absolute;
  top: 2rem;
  height: 14px;
  width: 0;
  border-left: 1px dashed #4b5563;
  pointer-events: none;
}
.severity-threshold .label {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: translateX(-50%);
  width: 2.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5563;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
}
.severity-marker {
  position: absolute;
  top: 1.2rem;
  width: 0;
  height: calc(14px + 0.8rem);
  border-left: 3px solid #111827;
  transform: translateX(-50%);
}
.severity-marker .marker-value {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  font-variant-numeric: tabular-nums slashed-zero;
  background: #ffffff;
  padding: 1px 4px;
  border: 1px solid #111827;
  border-radius: 3px;
}
.severity-zone-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.severity-zone-badge.below { background: #e6f0f8; color: #5B5BFF; }
.severity-zone-badge.warn { background: #f7ecd1; color: #6e5212; }
.severity-zone-badge.above { background: #d9dde4; color: #111827; }
.severity-readout {
  margin: 1.3rem 0 0;
  text-align: right;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
  font-variant-numeric: tabular-nums slashed-zero;
}

/* =========================================================================
 * Wave 9.1b — BSMAS linework SVG icons (B14).
 * Inline SVG, navy 1.5px stroke. Sits between checkbox and label.
 * ========================================================================= */

.bsmas-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #9aa3ad;
  margin-top: 1px;
}
.bsmas-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bsmas-row.detected .bsmas-icon { color: #111827; }

/* =========================================================================
 * Wave 9.1b — Cohort identity-statement tile lead (B10).
 * ========================================================================= */

.cohort-summary .identity {
  display: block;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.cohort-summary .identity strong { color: #f59e0b; }
.cohort-summary .sub {
  display: block;
  font-size: 0.85rem;
  color: #c9d8e6;
  font-weight: 400;
}

/* ─────────────────────────────────────────────────────────────────────
 * Wave 9.1c — late-night 7×24 heatmap (brand refresh 2026-07).
 *
 * 7 rows (Mon top, Sun bottom) × 24 cols, hour axis reordered to a 6 AM
 * start so late-night hours sit contiguously at the trailing edge. Every
 * cell shares one intensity scale (globalMax); hue carries the zone:
 *   - empty: #efe9df (warm cream-gray)
 *   - daytime: #e7e3f2 → #2a1a4a (bruise)
 *   - late-night (>= cutoff or < 6 AM): #ffd9e7 → #e01b5b (pop/pink),
 *     with a single pink divider drawn at the start of the block.
 *
 * Background colors are set inline by report.js (per-cell intensity).
 * ──────────────────────────────────────────────────────────────────── */
.lh-heatmap-wrap {
  margin: 0.5rem 0 0.25rem;
  overflow-x: auto;
}
.lh-heatmap {
  display: grid;
  grid-template-columns: 2.4rem repeat(24, 1fr);
  gap: 2px;
  align-items: stretch;
  min-width: 480px;
}
.lh-corner { background: transparent; }
.lh-hour-label,
.lh-day-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.65rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.lh-day-label {
  justify-content: flex-end;
  padding-right: 0.4rem;
  font-weight: 600;
}
.lh-hour-label { padding: 0.15rem 0; }
.lh-cell {
  aspect-ratio: 1;
  width: 100%;
  min-height: 12px;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: outline-color 0.12s ease;
}
.lh-cell:hover,
.lh-cell:focus { outline: 2px solid var(--sb-ink, #0b0b12); outline-offset: 0; z-index: 2; }

.lh-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin: 0.55rem 0 0.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  color: #4b5563;
}
.lh-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.3rem;
}
.lh-swatch-empty { background: #efe9df; border: 1px solid #ddd6c8; }
.lh-swatch-below { background: linear-gradient(to right, #e7e3f2, #2a1a4a); }
.lh-swatch-warn { background: linear-gradient(to right, #ffd9e7, #e01b5b); }
.lh-legend-text { color: #4b5563; }

/* Axis annotation under the reordered grid: leading pad matches the day-label
 * column, then day/late-night spans split 17:7 to mirror the column groups.
 * Desktop-only — the rotated mobile axis reads hours vertically instead. */
.lh-axis {
  display: flex;
  margin: 0.35rem 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5a5a66;
}
.lh-axis-pad { flex: 0 0 2.4rem; }
.lh-axis-day { flex: 17; text-align: center; }
.lh-axis-night { flex: 7; text-align: center; color: var(--sb-pop, #ff3d7f); }
@media (max-width: 600px) { .lh-axis { display: none; } }

.lh-summary {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  color: #111827;
  margin: 0.4rem 0 0.25rem;
}
.lh-summary strong { color: var(--sb-pop, #ff3d7f); font-variant-numeric: tabular-nums; }

/* Layout swap: render the desktop axis (7 rows × 24 cols) on >=600px,
 * and the rotated mobile axis (24 rows × 7 cols, hour-down, days
 * across) on <600px. report.js emits both grids; the alternate is
 * hidden via display:none. Keeps DOM trivial (168 cells per grid)
 * and avoids any CSS-grid auto-placement gymnastics. */
.lh-heatmap-mobile { display: none; }
@media (max-width: 600px) {
  .lh-heatmap-desktop { display: none; }
  .lh-heatmap-mobile {
    display: grid;
    grid-template-columns: 2.4rem repeat(7, 1fr);
    gap: 2px;
    min-width: 0;
  }
  .lh-heatmap-mobile .lh-hour-label {
    justify-content: flex-end;
    padding-right: 0.4rem;
    aspect-ratio: auto;
    min-height: 12px;
  }
  .lh-heatmap-mobile .lh-day-label {
    justify-content: center;
    padding-right: 0;
    font-weight: 600;
  }
  .lh-heatmap-wrap { overflow-x: visible; }
}

/* =========================================================================
 * Wave 9.1d — Per-platform section-cover splash.
 *
 * Full-viewport chapter-break that opens each per-platform section. Renders
 * the headline figure in the acid-lime highlight style (.platform-cover-figure).
 *
 * Mobile note: 100svh (small viewport height) is used in addition to 100vh
 * so iOS Safari's collapsing-address-bar chrome doesn't push the bottom
 * scroll-hint behind the bar on first paint. svh is supported in iOS
 * Safari 15.4+ (Mar 2022) and on Android Chrome 108+; older browsers fall
 * back to the 100vh declaration above it (no @supports needed because the
 * later svh value simply ignores on unsupporting engines).
 *
 * Width: the cover lives inside #platform-sections which is inside the
 * .report column (max 1100px). To break out to viewport width without
 * restructuring the DOM, we use the standard
 *   width: 100vw; margin-left: calc(-50vw + 50%)
 * trick so the cover spans the full viewport regardless of the parent's
 * constrained width.
 * ========================================================================= */

.platform-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  /* Reduced from full-viewport (100vh) to a normal hero size — the new
   * brand is calm/clinical, not dramatic chapter-break theater. */
  min-height: auto;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #FFF8F0;
  border-top: 4px solid #FF3D7F;
  padding: 3.5rem 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Top 12% — wordmark + period framing in 14px navy uppercase. */
.platform-cover-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}
.platform-cover-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #111827;
  color: #ffffff;
  padding: 0.4rem;
  border-radius: 4px;
  line-height: 1;
}
.platform-cover-mark svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}
.platform-cover-label {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #111827;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums slashed-zero;
}

/* Center 60% — headline figure + framing sentence + citation chip. */
.platform-cover-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  max-width: 920px;
  padding: 1rem 0;
}

/* Headline figure — the homepage acid-lime highlight treatment. The key
 * figure (e.g. "DAY 41", "+58%", "12 HRS") sits in a black-bordered lime
 * box, slightly rotated, in Bricolage Grotesque — matching index.astro's
 * `bg-lime border-3 border-ink rotate-[-1.5deg]` headline mark. */
.platform-cover-figure {
  width: 100%;
  text-align: center;
  line-height: 1;
}
.platform-cover-figure-mark {
  display: inline-block;
  font-family: "Bricolage Grotesque", 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(3.25rem, 13vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #0B0B12;
  background: #C8FF3D;
  border: 3px solid #0B0B12;
  border-radius: 4px;
  padding: 0.12em 0.28em 0.18em;
  transform: rotate(-1.5deg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 24px Inter Navy framing sentence — heavier than the inline 9.1b 18px. */
.platform-cover-sentence {
  margin: 0;
  max-width: 720px;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
  color: #111827;
  text-align: center;
}

/* Inline citation pill (12px Navy) — the screenshot-friendly source line. */
.platform-cover-cite {
  display: inline-block;
  max-width: 720px;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  font-style: italic;
  color: #111827;
  background: rgba(19, 60, 110, 0.06);
  border: 1px solid rgba(19, 60, 110, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  text-align: center;
}

/* Bottom 12% — bobbing "Scroll for the breakdown" hint. */
.platform-cover-hint {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #4b5563;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  animation: platformCoverHintBob 1.8s ease-in-out infinite;
}
.platform-cover-hint-text {
  text-transform: uppercase;
}
.platform-cover-hint-arrow {
  font-size: 1.15rem;
  line-height: 1;
  color: #111827;
}

@keyframes platformCoverHintBob {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .platform-cover-hint { animation: none; }
}

/* =========================================================================
 * Wave 9.1d — Reveal-on-scroll for post-cover tiles.
 * IntersectionObserver in report.js toggles .tile-revealed; CSS handles
 * the 200ms opacity + 12px translateY transition. Reduced motion = on
 * by default, no animation.
 * ========================================================================= */

.tile-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  will-change: opacity, transform;
}
.tile-reveal.tile-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tile-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================================
 * Wave 9.1e — Per-platform 9:16 share-card system.
 *
 * Three pieces:
 *  1. .share-section + .share-button — the in-flow trigger at the bottom of
 *     each per-platform section (navy ghost, brand-conformant).
 *  2. .share-modal + children — accessible modal preview with Download PNG.
 *  3. .share-card + children — the off-screen 1080x1920 receipt-style
 *     template that html2canvas snapshots into a PNG. The same CSS also
 *     drives the smaller, scaled preview shown inside the modal.
 *
 * Visual reference: docs/wave-9-1-breathalyzer-visual-brief-2026-05-03.md
 *   pattern D3 (court-admissible breath-test receipt) + section E motif
 *   confirmation. NO red — Navy / Dark Navy / Gold / Light Gray only.
 * ========================================================================= */

/* --- 1. Share button + container per platform section --- */
.share-section {
  margin: 1.5rem 0 0.5rem;
  display: flex;
  justify-content: center;
}
.share-button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #111827;
  border: 1.5px solid #111827;
  border-radius: 4px;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.share-button:hover,
.share-button:focus-visible {
  background: #111827;
  color: #ffffff;
  outline: none;
}
.share-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 188, 62, 0.55);
}
.share-button-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 1;
}

/* --- 2. Share modal --- */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.share-modal[hidden] { display: none; }
.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 31, 58, 0.72);
}
.share-modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #d8dde2;
}
.share-modal-header h2 {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: #111827;
}
.share-modal-close {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.share-modal-close:hover,
.share-modal-close:focus-visible {
  color: #111827;
  outline: none;
}
.share-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.share-modal-preview {
  background: #f4f8fc;
  border: 1px dashed #b8c0c8;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  /* Preview thumbnail is the rendered <img> at <= 280px wide. */
}
.share-modal-preview img {
  display: block;
  /* The card is a 9:16 (1080x1920) portrait. width:auto + height:auto let the
     image keep its aspect ratio when max-height (not max-width) is the binding
     constraint; without width:auto the <img width/height> attrs pin the width
     while max-height clamps the height, stretching the card. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60vh;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.share-modal-rendering {
  margin: 0;
  font-style: italic;
  color: #4b5563;
  font-size: 0.9rem;
}
.share-modal-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.5;
}
.share-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #d8dde2;
}
.share-modal-cancel,
.share-modal-download {
  appearance: none;
  border-radius: 4px;
  padding: 0.65rem 1.2rem;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  border: 1.5px solid #111827;
}
.share-modal-cancel {
  background: transparent;
  color: #111827;
}
.share-modal-cancel:hover,
.share-modal-cancel:focus-visible {
  background: #f4f8fc;
  outline: none;
}
.share-modal-download {
  background: #111827;
  color: #ffffff;
}
.share-modal-download:hover:not(:disabled),
.share-modal-download:focus-visible:not(:disabled) {
  background: #0d2548;
  outline: none;
}
.share-modal-download:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* --- 3. Off-screen render stage --- */
.share-card-stage {
  position: fixed;
  /* Far off-screen — rendered, but never visible to the user. We can't use
     display:none because html2canvas needs real layout boxes. */
  left: -10000px;
  top: 0;
  width: 1080px;
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}

/* --- 4. The 9:16 share card itself (1080x1920 fixed dimensions) --- */
.share-card {
  /* Hard-pinned to 1080x1920 so html2canvas snapshots the exact target
     dimensions regardless of viewport. The receipt motif owns the canvas. */
  width: 1080px;
  height: 1920px;
  background: #fefefe;
  color: #111827;
  position: relative;
  box-sizing: border-box;
  /* Two thin dotted vertical edges = "tear-off receipt" signal. Top and
     bottom intentionally clean. */
  border-left: 2px dotted #111827;
  border-right: 2px dotted #111827;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  /* Wave 10 — five bands summing to 1920: header, meta, hero body, itemized
     ledger, footer. The ledger absorbs the row the single citation block used
     to hold. Fixed px (not fr) so html2canvas snapshots identical layout. */
  grid-template-rows:
    230px   /* top band: wordmark + subhead */
    196px   /* metadata grid */
    520px   /* body — platform lockup + total-time hero */
    784px   /* itemized ledger — up to 5 sourced line items */
    190px;  /* footer band */
  padding: 0;
  overflow: hidden;
}

/* Top band — wordmark + subhead + Navy rule. Top-aligned: centering the
   lockup in the tall 230px band left a large empty gap above it that read as
   "header sits too low". */
.share-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 44px 64px 20px;
  border-bottom: 1px solid #111827;
  text-align: center;
}
.share-card-wordmark {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 14px;
  line-height: 1;
}
.share-card-subhead {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  margin: 0;
  line-height: 1;
}

/* Metadata grid */
.share-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 14px;
  padding: 36px 80px;
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 24px;
  color: #111827;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-content: center;
}
.share-card-meta-row {
  display: grid;
  /* 170px, not 130px: the widest label ("INSTRUMENT") is ~145px in this mono
     face and ran straight into its value ("INSTRUMENTSB-01"). */
  grid-template-columns: 170px 1fr;
  gap: 18px;
  line-height: 1.2;
  white-space: nowrap;
}
.share-card-meta-row.right {
  text-align: right;
  grid-template-columns: 1fr 170px;
}
.share-card-meta-row.right .share-card-meta-key { order: 2; }
.share-card-meta-row.right .share-card-meta-val { order: 1; }
.share-card-meta-key {
  color: #4b5563;
  font-weight: 600;
}
.share-card-meta-val {
  color: #111827;
  font-weight: 700;
}

/* Body — the reading */
.share-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 60px;
  text-align: center;
}
/* Platform logo chip + name, above the reading. */
.share-card-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 48px;
}
.share-card-platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #111827;
  color: #ffffff;
  border-radius: 14px;
}
.share-card-platform-mark svg {
  display: block;
  width: 48px;
  height: 48px;
}
.share-card-platform-name {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  line-height: 1;
}

/* The hero — total time in a platform-tinted highlight box (matches the
   report cover's acid-lime treatment; hue keyed to the platform, see below). */
.share-card-hero {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  border: 6px solid #0B0B12;
  border-radius: 8px;
  padding: 26px 48px 32px;
  transform: rotate(-1.5deg);
  background: #C8FF3D; /* default; overridden per data-platform below */
  text-align: center;
}
.share-card-hero-label {
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1;
}
.share-card-hero-big {
  display: inline-block;
  font-family: "Bricolage Grotesque", 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  /* Auto-fit applied by JS via inline font-size — starts ~200px, scales down
     to fit the plate. This is the baseline. */
  font-size: 200px;
  /* line-height stays at exactly 1 (not sub-1.0): html2canvas draws this large
     glyph low within the line box, so anything above 1 piles the extra leading
     onto the TOP of the number. The sub-line's own margin-top (below) keeps it
     clear of the descender, so the bottom needs no cushion here. */
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin: 0;
}
.share-card-hero-sub {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 40px 0 0;
  line-height: 1.15;
}

/* Per-platform hero swatch. Gold bottom band (footer) stays constant across
   platforms as the shared Social Breathalyzer signature; only the hero hue
   changes. YouTube uses gold, NOT red — the "no red" rule (PRD B8) forbids
   red for this audience even though it's YouTube's brand color. */
.share-card-hero[data-platform="tiktok"] { background: #C8FF3D; }
.share-card-hero[data-platform="tiktok"] .share-card-hero-big { color: #14171F; }
.share-card-hero[data-platform="tiktok"] .share-card-hero-label,
.share-card-hero[data-platform="tiktok"] .share-card-hero-sub { color: #3B4A0E; }

.share-card-hero[data-platform="instagram"] { background: #C9B6F7; }
.share-card-hero[data-platform="instagram"] .share-card-hero-big { color: #14171F; }
.share-card-hero[data-platform="instagram"] .share-card-hero-label,
.share-card-hero[data-platform="instagram"] .share-card-hero-sub { color: #3A2168; }

.share-card-hero[data-platform="facebook"] { background: #B5D4F4; }
.share-card-hero[data-platform="facebook"] .share-card-hero-big { color: #042C53; }
.share-card-hero[data-platform="facebook"] .share-card-hero-label,
.share-card-hero[data-platform="facebook"] .share-card-hero-sub { color: #0C447C; }

.share-card-hero[data-platform="youtube"] { background: #F2D9A6; }
.share-card-hero[data-platform="youtube"] .share-card-hero-big { color: #412402; }
.share-card-hero[data-platform="youtube"] .share-card-hero-label,
.share-card-hero[data-platform="youtube"] .share-card-hero-sub { color: #633806; }

/* Itemized ledger — up to 5 sourced line items, receipt-style. */
.share-card-ledger {
  padding: 16px 80px 0;
  display: flex;
  flex-direction: column;
}
.share-card-ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #111827;
  padding-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}
.share-card-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e7eb;
  /* Grow rows equally to fill the fixed-height ledger band. Without this, a
     card with only 3-5 items left a large dead gap above the footer. Content
     stays vertically centered (align-items) whatever the row count. */
  flex: 1 1 0;
}
.share-card-item:last-child { border-bottom: none; }
.share-card-item-idx {
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 38px;
  font-weight: 700;
  color: #b6bdc8;
  line-height: 1;
}
.share-card-item-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.share-card-item-label {
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 1;
}
.share-card-item-value {
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111827;
  line-height: 1.15;
  white-space: nowrap;
  /* overflow must stay visible: html2canvas clips the bottom half of the glyphs
     when this box is overflow:hidden. Values are length-capped upstream (see
     share-readouts.js) so they don't run into the source chip. */
  overflow: visible;
}
.share-card-item-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, "Courier New", monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* line-height:1 so the label centers inside the pill; the default (~1.4)
     leading stacked on top of the padding made every chip look top-heavy. */
  line-height: 1;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
}
/* Document chip = external published/filed source (darker). Export chip = a
   raw count from the participant's own file (lighter). Plan §5. */
.share-card-item-chip.doc { border: 2px solid #111827; color: #111827; }
.share-card-item-chip.export { border: 2px solid #9ca3af; color: #6b7280; }

/* Footer band — site URL + brand-gold strip */
.share-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 1px dotted #111827;
  padding: 28px 64px 36px;
  text-align: center;
}
.share-card-url {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1;
}
.share-card-method {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-style: italic;
  color: #4b5563;
  margin: 0;
  line-height: 1.3;
}
.share-card-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: #f59e0b;
}

