/* ACSC Indonesia Dashboard — design tokens + components
   Mobile-first; desktop breakpoint 880px (per blueprint Section 4) */

:root {
  /* palette */
  --c-bg: #fafaf7;
  --c-surface: #ffffff;
  --c-border: #e5e3dd;
  --c-text: #1a1a1a;
  --c-text-muted: #6b6962;
  --c-accent: #b13d2a;       /* ARC red — primary */
  --c-accent-soft: #f4d9d3;
  --c-acute: #d97757;
  --c-chronic: #4a7a8c;
  --c-vaccine: #6f8c5a;
  --c-other: #8a7c6e;
  --c-true: #2c4a3e;
  --c-conditional: #c69d6e;
  --c-warn: #b58400;

  /* typography */
  --ff-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-serif: "Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.4rem;
  --fs-xl: 2rem;
  --fs-xxl: 2.8rem;
  --lh-tight: 1.2;
  --lh-base: 1.55;

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  /* radius + shadow */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.08);

  /* layout */
  --max-w: 1200px;
  --tap: 56px;
}

/* base reset */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--ff-serif); font-weight: 600; line-height: var(--lh-tight); margin: 0; }
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-3) 0; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
small { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* header / global nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--s-3) var(--s-4);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.nav-brand { font-family: var(--ff-serif); font-weight: 600; font-size: var(--fs-md); }
.nav-brand small { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: -2px; }
.nav-links { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-left: auto; }
.nav-link {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.nav-link.active { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }
.nav-link:hover { background: var(--c-bg); text-decoration: none; }

/* container */
.container { max-width: var(--max-w); margin: 0 auto; padding: var(--s-5) var(--s-4); }
.section { padding: var(--s-6) 0; }

/* eyebrow */
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

/* hero */
.hero { padding: var(--s-7) 0 var(--s-6); border-bottom: 1px solid var(--c-border); }
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, var(--fs-xxl));
  margin-bottom: var(--s-4);
  max-width: 32ch;
}
.hero h1 .hero-stat {
  color: var(--c-accent);
  font-weight: 700;
}
.hero .lede { font-size: var(--fs-md); color: var(--c-text-muted); max-width: 65ch; }
.hero .lede strong { color: var(--c-text); }

/* story strip */
.story-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.story-card {
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.story-card .num {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  color: var(--c-accent);
  margin-bottom: var(--s-2);
}
.story-card h4 { margin-bottom: var(--s-2); font-size: var(--fs-base); }
.story-card p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }

/* True vs Conditional bar */
.tc-bar {
  margin-top: var(--s-7);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.tc-bar h3 { margin-bottom: var(--s-3); }
.tc-bar .desc { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); max-width: 65ch; }
.tc-track {
  display: flex;
  height: 48px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.tc-true {
  background: var(--c-true);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.tc-conditional {
  background: var(--c-conditional);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.tc-legend { display: flex; gap: var(--s-5); margin-top: var(--s-3); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--c-text-muted); }
.tc-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tc-legend .lt::before { background: var(--c-true); }
.tc-legend .lc::before { background: var(--c-conditional); }

/* KPI strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.kpi-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  min-height: 110px;
}
.kpi-card .label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.kpi-card .value { font-family: var(--ff-serif); font-size: var(--fs-xl); line-height: 1.1; color: var(--c-text); }
.kpi-card .unit { font-size: var(--fs-xs); color: var(--c-text-muted); margin-left: 4px; }
.kpi-card .delta { font-size: var(--fs-xs); margin-top: var(--s-2); color: var(--c-text-muted); }

/* nav cards */
.nav-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.nav-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  min-height: var(--tap);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.nav-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--c-accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.nav-card .icon { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.nav-card h3 { margin-bottom: var(--s-2); font-size: var(--fs-md); }
.nav-card .persona { font-size: var(--fs-xs); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s-3); }
.nav-card .preview { font-size: var(--fs-sm); color: var(--c-text-muted); font-style: italic; }

/* footer */
.footer {
  margin-top: var(--s-8);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.footer h5 { margin-bottom: var(--s-2); color: var(--c-text); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.04em; }
.footer code {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--s-2);
  border-radius: var(--r-sm);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  white-space: pre-wrap;
}

/* Section 3C — Browse list */
.browse-header { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; margin-bottom: var(--s-4); }
.browse-header h2 { flex: 1 1 100%; }
.browse-header .summary { font-size: var(--fs-sm); color: var(--c-text-muted); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-bottom: var(--s-4);
}
.filter-group { display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: center; }
.filter-group .label { font-size: var(--fs-xs); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-right: var(--s-2); }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  border-radius: 999px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.chip.active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  font-weight: 600;
}
.chip:hover:not(.active) { border-color: var(--c-accent); color: var(--c-accent); }

.search-input {
  flex: 1 1 200px;
  min-width: 160px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font: inherit;
  background: #fff;
}
.search-input:focus { outline: 2px solid var(--c-accent); outline-offset: -1px; }

.sort-select {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.disease-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.disease-card:hover { box-shadow: var(--shadow-1); border-color: var(--c-accent); }
.disease-card .icd { font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--c-text-muted); }
.disease-card h4 { margin: var(--s-1) 0 var(--s-2) 0; }
.disease-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.disease-card .group { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-2); }
.disease-card .burden { font-size: var(--fs-xs); color: var(--c-text-muted); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--fs-xs);
  border-radius: 999px;
  font-weight: 600;
}
.tag-true { background: rgba(44,74,62,0.12); color: var(--c-true); }
.tag-conditional { background: rgba(198,157,110,0.18); color: #6f5630; }
.tag-acute { background: rgba(217,119,87,0.15); color: #9a4622; }
.tag-chronic { background: rgba(74,122,140,0.15); color: #2d5260; }
.tag-vaccine-preventable, .tag-vaccine { background: rgba(111,140,90,0.15); color: #455c33; }
.tag-other { background: rgba(138,124,110,0.15); color: #5a4f43; }

.empty-state {
  text-align: center;
  padding: var(--s-7);
  color: var(--c-text-muted);
  font-style: italic;
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--s-3);
}
.modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  padding: var(--s-5);
  box-shadow: var(--shadow-2);
}
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-text-muted);
  padding: 0 var(--s-2);
}
.modal h3 { margin-right: 32px; }
.modal-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px dashed var(--c-border); font-size: var(--fs-sm); }
.modal-row:last-child { border-bottom: 0; }
.modal-row .k { color: var(--c-text-muted); }
.modal-row .v { text-align: right; font-weight: 500; max-width: 60%; }

/* Featured CTA section — maroon block standout */
.land-section.featured {
  background: linear-gradient(135deg, var(--c-accent) 0%, #8e2f1f 100%);
  color: white;
  position: relative;
  margin: var(--s-7) calc(-1 * var(--s-4)) 0;
  padding: var(--s-7) var(--s-5) var(--s-6) !important;
  border-radius: var(--r-lg);
  border-top: 0 !important;
  overflow: hidden;
}
.land-section.featured::before { display: none !important; }
.land-section.featured::after {
  content: "";
  position: absolute;
  top: -3in; right: -3in;
  width: 8in; height: 8in;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.land-section.featured .eyebrow {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.land-section.featured h3 {
  color: white;
  font-size: 1.9rem;
  max-width: 24ch;
}
.land-section.featured .lead {
  color: rgba(255,255,255,0.92) !important;
  font-size: var(--fs-md);
  max-width: 70ch;
}
.land-section.featured .nav-card {
  background: white;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--c-text);
  position: relative;
  z-index: 1;
}
.land-section.featured .nav-card:hover {
  border-color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.land-section.featured .nav-card .icon {
  color: var(--c-accent);
  font-weight: 700;
}
.land-section.featured .nav-card .persona {
  color: var(--c-accent);
  font-weight: 700;
}
.land-section.featured .nav-card h3 {
  color: var(--c-text);
  font-size: var(--fs-md);
  max-width: none;
}
.land-section.featured .nav-card .preview {
  color: var(--c-text-muted);
}

@media (max-width: 600px) {
  .land-section.featured {
    margin: var(--s-5) calc(-1 * var(--s-3)) 0;
    padding: var(--s-5) var(--s-4) !important;
    border-radius: var(--r-md);
  }
  .land-section.featured h3 { font-size: 1.4rem; }
}

/* Generic landing section wrapper — strong divider style shared with .concept-section & .process-section */
.land-section,
.concept-section,
.process-section {
  position: relative;
  padding: var(--s-7) 0 var(--s-6) 0;
  margin: 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 0;
}

.land-section::before,
.concept-section::before,
.process-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 72px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 0 0 2px 0;
}

.land-section h3 { margin-bottom: var(--s-2); }
.land-section .lead { color: var(--c-text-muted); font-size: var(--fs-sm); max-width: 70ch; margin-bottom: var(--s-5); }
.land-section .eyebrow,
.concept-section .eyebrow,
.process-section .eyebrow {
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: var(--s-3);
}

/* Purpose card */
.purpose-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-true);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-top: var(--s-3);
}
.purpose-card .label { font-size: var(--fs-xs); color: var(--c-true); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: var(--s-2); }
.purpose-card h4 { font-family: var(--ff-serif); font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.purpose-card p { font-size: var(--fs-sm); margin-bottom: var(--s-3); line-height: 1.6; }
.purpose-targets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
@media (min-width: 880px) { .purpose-targets { grid-template-columns: repeat(3, 1fr); } }
.target-pill {
  background: var(--c-bg);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}
.target-pill strong { display: block; font-size: var(--fs-sm); margin-bottom: 4px; color: var(--c-text); }
.target-pill span { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; }

/* Data disclaimer banner (web) */
.disclaimer-banner {
  background: rgba(177,61,42,0.06);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: 1.55;
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.disclaimer-banner .ico {
  font-size: var(--fs-md);
  color: var(--c-accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}
.disclaimer-banner strong { color: var(--c-accent); }

/* Bridging: contextual */
.bridge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (min-width: 880px) { .bridge-grid { grid-template-columns: 1fr 1fr; } }
.bridge-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.bridge-card.local { border-left: 4px solid var(--c-true); }
.bridge-card.risk { border-left: 4px solid var(--c-accent); }
.bridge-card .label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-3);
}
.bridge-card.local .label { color: var(--c-true); }
.bridge-card.risk .label { color: var(--c-accent); }
.bridge-card h4 { font-family: var(--ff-serif); font-size: var(--fs-md); margin-bottom: var(--s-3); }
.bridge-card ul { margin: 0; padding-left: var(--s-4); font-size: var(--fs-sm); }
.bridge-card ul li { margin-bottom: var(--s-2); line-height: 1.5; }
.bridge-card ul li strong { color: var(--c-text); }

.bridge-conclusion {
  background: linear-gradient(to right, rgba(44,74,62,0.06), rgba(177,61,42,0.06));
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.bridge-conclusion strong { color: var(--c-text); }

/* Concept explainer: ACSC vs PPH (inherits divider from shared rule above) */
.concept-section h3 { margin-bottom: var(--s-2); }
.concept-section .lead {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-5);
  max-width: 70ch;
}
.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.concept-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.concept-card .label {
  font-size: var(--fs-xs);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.concept-card h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  margin-bottom: var(--s-3);
  color: var(--c-text);
}
.concept-card p { font-size: var(--fs-sm); margin-bottom: var(--s-3); line-height: 1.6; }
.concept-card .examples {
  background: var(--c-bg);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--s-3);
}
.concept-card .examples strong { color: var(--c-text); display: block; margin-bottom: 4px; font-size: var(--fs-xs); }

.concept-flow {
  background: linear-gradient(to right, rgba(44,74,62,0.04), rgba(177,61,42,0.04));
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-top: var(--s-3);
}
.concept-flow h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  margin-bottom: var(--s-3);
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.flow-path {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 28px minmax(140px, 1fr) 28px minmax(140px, 1fr);
  gap: var(--s-2);
  align-items: center;
}
.flow-pill {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  line-height: 1.3;
}
.flow-pill.start { background: var(--c-bg); }
.flow-pill.good { background: rgba(44,74,62,0.12); border-color: var(--c-true); color: var(--c-true); font-weight: 600; }
.flow-pill.bad { background: rgba(177,61,42,0.1); border-color: var(--c-accent); color: var(--c-accent); font-weight: 600; }
.flow-pill.process { background: var(--c-surface); }
.flow-pill.process.fail { color: var(--c-accent); border-color: rgba(177,61,42,0.3); }
.flow-pill.process.ok { color: var(--c-true); border-color: rgba(44,74,62,0.3); }
.flow-arrow {
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--fs-md);
  font-weight: 600;
}
@media (max-width: 879px) {
  .flow-path { grid-template-columns: 1fr; gap: 4px; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

@media (min-width: 880px) {
  .concept-grid { grid-template-columns: 1fr 1fr; }
}

/* INA-ACSC process flow on Landing (inherits divider from shared rule) */
.process-section h3 { margin-bottom: var(--s-2); }
.process-section .desc { color: var(--c-text-muted); font-size: var(--fs-sm); max-width: 70ch; margin-bottom: var(--s-5); }

.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  position: relative;
}
.process-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  position: relative;
}
.process-step .step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: var(--s-2);
}
.process-step h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  margin-bottom: var(--s-2);
  color: var(--c-text);
}
.process-step p { font-size: var(--fs-sm); margin: 0 0 var(--s-2) 0; color: var(--c-text-muted); }
.process-step .meta {
  font-size: var(--fs-xs);
  color: var(--c-accent);
  font-family: var(--ff-mono);
  display: block;
  padding-top: var(--s-2);
  border-top: 1px dashed var(--c-border);
  margin-top: var(--s-2);
}

@media (min-width: 880px) {
  .process-flow {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-2);
  }
  .process-step::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-accent);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 1;
  }
  .process-step:last-child::after { display: none; }
}

/* Section: Executive Summary */
.exec-section { padding: var(--s-6) 0; border-bottom: 1px solid var(--c-border); }
.exec-section:last-child { border-bottom: 0; }
.exec-section h2 { margin-bottom: var(--s-2); }
.exec-section .lead { color: var(--c-text-muted); margin-bottom: var(--s-5); max-width: 70ch; }

.exec-headline {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 3vw, var(--fs-xl));
  line-height: 1.3;
  margin: var(--s-3) 0 var(--s-2) 0;
  max-width: 32ch;
}
.exec-yoy { font-size: var(--fs-sm); color: var(--c-text-muted); }
.exec-yoy .up { color: var(--c-accent); font-weight: 600; }
.exec-yoy .down { color: var(--c-true); font-weight: 600; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin: var(--s-5) 0;
}
.stat-cell {
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.stat-cell .label { font-size: var(--fs-xs); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s-2); }
.stat-cell .value { font-family: var(--ff-serif); font-size: var(--fs-xl); line-height: 1; color: var(--c-text); }
.stat-cell .unit { font-size: var(--fs-xs); color: var(--c-text-muted); margin-left: 4px; }
.stat-cell .delta { font-size: var(--fs-sm); margin-top: var(--s-2); display: inline-block; padding: 2px 8px; border-radius: 999px; }
.stat-cell .delta.up { background: rgba(177,61,42,0.12); color: var(--c-accent); }
.stat-cell .delta.down { background: rgba(44,74,62,0.12); color: var(--c-true); }
.stat-cell .delta.flat { background: var(--c-bg); color: var(--c-text-muted); }

.dual-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-3); }
.rank-table {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.rank-table h4 { margin-bottom: var(--s-1); }
.rank-table .desc { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-3); }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px dashed var(--c-border); align-items: center; }
.rank-row:last-child { border-bottom: 0; }
.rank-row .rank { font-family: var(--ff-mono); color: var(--c-text-muted); font-size: var(--fs-sm); text-align: right; }
.rank-row .name { font-size: var(--fs-sm); }
.rank-row .val { font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--c-text); white-space: nowrap; }
.rank-row .shift { font-size: var(--fs-xs); margin-left: var(--s-2); }
.rank-row .shift.up { color: var(--c-accent); }
.rank-row .shift.down { color: var(--c-true); }

.bar-row { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.bar-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(0, 1.6fr);
  gap: var(--s-4);
  align-items: center;
  font-size: var(--fs-sm);
  padding: 6px 0;
  border-bottom: 1px dashed var(--c-border);
}
.bar-item:last-child { border-bottom: 0; }
.bars-pair { display: grid; gap: 4px; }
.bar-line {
  display: grid;
  grid-template-columns: 44px 1fr 80px;
  gap: var(--s-2);
  align-items: center;
}
.bar-line .lbl {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bar-line .b-val {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
  color: var(--c-text);
  font-weight: 600;
}
.bar-line .bar-fill.cost-tone { opacity: 0.55; }
.bar-track {
  display: block;
  background: var(--c-bg);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  width: 100%;
  min-width: 40px;
}
.bar-fill { display: block; height: 100%; min-height: 8px; border-radius: 999px; transition: width 0.2s ease; }
.bar-fill.acute { background: var(--c-acute); }
.bar-fill.chronic { background: var(--c-chronic); }
.bar-fill.vaccine, .bar-fill.vaccine-preventable { background: var(--c-vaccine); }
.bar-fill.other { background: var(--c-other); }
.bar-item .b-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bar-item .b-name .name { font-size: var(--fs-sm); color: var(--c-text); font-weight: 600; }
.bar-item .b-name .icds { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--c-text-muted); }
.bar-item .b-name .group { font-size: 0.72rem; color: var(--c-text-muted); margin-top: 2px; }

.pathway-stack {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.pathway-stack h4 { margin-bottom: var(--s-2); }
.pathway-stack .desc { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-3); }
.pathway-track {
  display: flex;
  height: 36px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin-bottom: var(--s-3);
}
.pathway-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 4px;
  text-overflow: clip;
}
@media (max-width: 600px) {
  .pathway-seg { font-size: 10px; }
}
.pathway-seg-0 { background: #b13d2a; }
.pathway-seg-1 { background: #d97757; }
.pathway-seg-2 { background: #c69d6e; }
.pathway-seg-3 { background: #4a7a8c; }
.pathway-seg-4 { background: #6f8c5a; }
.pathway-seg-5 { background: #8a7c6e; }
.pathway-legend { display: grid; grid-template-columns: 1fr; gap: var(--s-1); font-size: var(--fs-sm); }
.pathway-legend .row { display: flex; align-items: center; gap: var(--s-2); }
.pathway-legend .swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.pathway-legend .name { flex: 1; }
.pathway-legend .pct { font-family: var(--ff-mono); color: var(--c-text-muted); }

.insight-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.insight-card {
  border-left: 3px solid var(--c-accent);
  background: var(--c-surface);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-top: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.insight-card h5 { font-family: var(--ff-serif); font-size: var(--fs-md); margin-bottom: var(--s-1); }
.insight-card p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }

.cta-row { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-link {
  display: inline-block;
  padding: var(--s-3) var(--s-4);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.cta-link:hover { background: #8e2f1f; text-decoration: none; }
.cta-link.secondary { background: transparent; border: 1px solid var(--c-border); color: var(--c-text); }
.cta-link.secondary:hover { background: var(--c-surface); }

@media (min-width: 880px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .dual-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Section 2A — Status & Burden */
.context-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
}
.breadcrumb { display: flex; gap: var(--s-2); align-items: center; }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb .sep { color: var(--c-text-muted); opacity: 0.5; }
.breadcrumb .current { color: var(--c-text); font-weight: 600; }

.chart-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}
.chart-card h4 { margin-bottom: var(--s-1); }
.chart-card .desc { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-3); }
.chart-wrap { position: relative; height: 280px; }
@media (min-width: 880px) {
  .chart-wrap { height: 340px; }
}

/* Choropleth grid (Phase 1) */
.choro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (min-width: 600px) { .choro-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .choro-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .choro-grid { grid-template-columns: repeat(6, 1fr); } }

.choro-cell {
  padding: var(--s-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.1s ease;
}
.choro-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.choro-cell .name { font-size: var(--fs-xs); font-weight: 600; line-height: 1.15; color: rgba(0,0,0,0.8); }
.choro-cell .rate { font-size: var(--fs-sm); font-family: var(--ff-mono); margin-top: var(--s-1); color: rgba(0,0,0,0.7); }

/* Slope chart tooltip */
.slope-wrap { position: relative; }
.slope-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--c-text);
  color: #fff;
  padding: var(--s-3);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-sm);
  min-width: 240px;
  max-width: 320px;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 10;
  line-height: 1.45;
}
.slope-tooltip.visible { opacity: 0.96; }
.slope-tooltip .name { font-family: var(--ff-serif); font-size: var(--fs-md); margin-bottom: var(--s-2); display: block; }
.slope-tooltip .row { display: flex; justify-content: space-between; gap: var(--s-3); padding: 2px 0; font-size: var(--fs-xs); }
.slope-tooltip .row .k { opacity: 0.7; }
.slope-tooltip .row .v { font-family: var(--ff-mono); }
.slope-tooltip .shift {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: var(--fs-xs);
}
.slope-tooltip .shift .up { color: #f5a974; font-weight: 600; }
.slope-tooltip .shift .down { color: #a3c098; font-weight: 600; }

/* SVG line hit-area cursor */
.slope-prov { cursor: pointer; }
.slope-prov.dim { opacity: 0.2 !important; }

.legend-row { display: flex; gap: var(--s-2); align-items: center; margin: var(--s-3) 0; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--c-text-muted); }
.legend-bar { display: flex; height: 12px; flex: 1 1 200px; min-width: 160px; max-width: 320px; border-radius: 2px; overflow: hidden; border: 1px solid rgba(0,0,0,0.08); }
.legend-bar > span { flex: 1; }

/* Data table — generic */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.data-table th, .data-table td {
  padding: var(--s-2) var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.data-table th {
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  background: var(--c-bg);
}
.data-table td.num { font-family: var(--ff-mono); text-align: right; }
.data-table tbody tr:hover { background: var(--c-bg); }

/* Section 4: Methods */
.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (min-width: 880px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }

.method-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.method-card h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  margin-bottom: var(--s-2);
}
.method-card .step {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.method-card p { font-size: var(--fs-sm); color: var(--c-text); margin: 0 0 var(--s-2) 0; }
.method-card .src {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--c-border);
}

.flow-diagram {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.flow-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--s-3);
  align-items: start;
}
.flow-step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-sm);
  font-family: var(--ff-serif);
}
.flow-step .body { font-size: var(--fs-sm); }
.flow-step .body strong { color: var(--c-text); }
.flow-step .body code { font-family: var(--ff-mono); font-size: 0.78rem; background: var(--c-bg); padding: 1px 4px; border-radius: 2px; }
.flow-arrow { padding-left: 14px; color: var(--c-text-muted); font-size: var(--fs-md); line-height: 1; }

.glossary-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}
.glossary-search {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  margin-bottom: var(--s-3);
}
.glossary-list { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
@media (min-width: 880px) { .glossary-list { grid-template-columns: repeat(2, 1fr); } }
.glossary-item {
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--c-border);
}
.glossary-item dt { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 2px; }
.glossary-item dd { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }

.download-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
.download-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}
.download-item .name { font-family: var(--ff-mono); font-size: var(--fs-sm); }
.download-item .desc { font-size: var(--fs-xs); color: var(--c-text-muted); }
.download-item .size { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--c-text-muted); }
.download-item a { color: var(--c-accent); font-weight: 600; font-size: var(--fs-sm); }

.copy-btn {
  margin-top: var(--s-2);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  cursor: pointer;
}
.copy-btn:hover { background: var(--c-accent-soft); border-color: var(--c-accent); }
.copy-btn.copied { background: var(--c-true); color: #fff; border-color: var(--c-true); }

/* placeholder */
.placeholder {
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-7) var(--s-4);
  text-align: center;
  color: var(--c-text-muted);
  font-style: italic;
}

/* loading */
.loading { padding: var(--s-7); text-align: center; color: var(--c-text-muted); }
.error {
  padding: var(--s-4);
  background: rgba(181,132,0,0.1);
  border: 1px solid var(--c-warn);
  border-radius: var(--r-md);
  color: #6e5000;
}

/* desktop ≥ 880px */
@media (min-width: 880px) {
  .container { padding: var(--s-6) var(--s-5); }
  .story-strip { grid-template-columns: repeat(4, 1fr); }
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
  .nav-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-link { padding: var(--s-2) var(--s-4); }
}

/* desktop ≥ 1100px — slightly larger hero */
@media (min-width: 1100px) {
  .hero h1 { font-size: var(--fs-xxl); }
}

/* Print button in nav */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-2) var(--s-3);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: var(--fs-xs);
  font-family: var(--ff-sans);
  cursor: pointer;
  font-weight: 600;
  margin-left: var(--s-2);
}
.print-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.print-btn::before { content: "⤓"; font-size: 1rem; line-height: 1; }

/* ───────── SLIDE DECK (rendered on print) ───────── */
.slide-deck { display: none; }
.slide-deck.preview {
  display: block;
  background: #2a2a2a;
  padding: 0.3in 0;
  min-height: 100vh;
}

.slide {
  width: 13.333in;
  height: 7.5in;
  padding: 0;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  margin: 0 auto 0.4in auto;
  display: grid;
  grid-template-rows: 0.5in 1fr 0.32in;
  box-sizing: border-box;
  position: relative;
  break-after: page;
  page-break-after: always;
  overflow: hidden;
  font-family: var(--ff-sans);
  color: var(--c-text);
}
.slide:last-child { break-after: auto; page-break-after: auto; margin-bottom: 0; }
.slide::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8pt;
  background: var(--c-accent);
  z-index: 2;
}

.slide-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.18in;
  align-items: center;
  padding: 0.18in 0.5in 0 0.55in;
  font-size: 9pt;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  position: relative;
  min-height: 0;
}
.slide-head::after {
  content: "";
  position: absolute;
  left: 0.55in;
  right: 0.5in;
  bottom: -1pt;
  height: 2pt;
  background: var(--c-accent);
}
.slide-head .brand {
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6pt;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.slide-head .brand::before {
  content: "";
  display: inline-block;
  width: 8pt; height: 8pt;
  border-radius: 50%;
  background: var(--c-accent);
}
.slide-head .section-label {
  font-family: var(--ff-serif);
  font-size: 11pt;
  font-weight: 600;
  color: var(--c-text);
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
}
.slide-head .meta { font-family: var(--ff-mono); font-weight: 500; }

.slide-body {
  padding: 0.25in 0.5in 0.1in 0.55in;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.slide-body h1, .slide-body h2 {
  font-family: var(--ff-serif);
  margin: 0 0 0.14in 0;
  line-height: 1.08;
  color: var(--c-text);
}
.slide-body h1 { font-size: 40pt; max-width: 22ch; font-weight: 600; }
.slide-body h2 {
  font-size: 28pt;
  max-width: none;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}
.slide-body h3 { font-size: 16pt; font-family: var(--ff-serif); margin: 0 0 0.1in 0; font-weight: 600; }
.slide-body p { font-size: 13pt; line-height: 1.55; margin: 0 0 0.14in 0; max-width: 80ch; }
.slide-body p.lead { font-size: 14.5pt; color: var(--c-text-muted); margin-bottom: 0.22in; max-width: 75ch; line-height: 1.45; }
.slide-body strong { color: var(--c-text); }

.slide-foot {
  padding: 0.06in 0.5in 0.08in 0.55in;
  border-top: 1px solid #f0f0f0;
  font-size: 7.5pt;
  color: var(--c-text-muted);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.2in;
  align-items: center;
  background: #fafaf7;
  min-height: 0;
}
.slide-foot .src { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slide-foot .brand-mark {
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.slide-foot .date { text-align: right; font-family: var(--ff-mono); white-space: nowrap; }

/* Cover slide */
/* COVER — dramatic */
.slide.cover {
  grid-template-rows: 1fr;
  background: linear-gradient(135deg, #fafaf7 0%, white 100%);
  position: relative;
}
.slide.cover .slide-head, .slide.cover .slide-foot { display: none; }
.slide.cover::before { display: none; }
.slide.cover::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1.4in;
  height: 100%;
  background: linear-gradient(180deg, var(--c-accent) 0%, #8e2f1f 100%);
  z-index: 1;
}
.cover-side {
  position: absolute;
  top: 0; left: 0;
  width: 1.4in;
  height: 100%;
  z-index: 2;
  padding: 0.45in 0.3in;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover-side .org {
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.cover-side .org-sub {
  font-size: 7.5pt;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 6pt;
  line-height: 1.4;
}
.cover-side .vert-mark {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 8pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 auto;
}
.cover-side .footer-mark {
  font-size: 8pt;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  font-family: var(--ff-mono);
}
.cover-inner {
  padding: 0.7in 0.7in 0.5in 1.7in;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  overflow: hidden;
}
.cover-eyebrow {
  font-size: 10pt;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 8pt;
}
.cover-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28pt;
  height: 2pt;
  background: var(--c-accent);
}
.cover-headline {
  font-family: var(--ff-serif);
  font-size: 50pt;
  line-height: 1.05;
  font-weight: 600;
  color: var(--c-text);
  max-width: 14ch;
  margin: 0;
  align-self: center;
  margin-top: -0.2in;
}
.cover-headline .hero-stat {
  display: block;
  color: var(--c-accent);
  font-weight: 700;
  font-size: 110pt;
  line-height: 0.9;
  margin-bottom: 8pt;
  letter-spacing: -2pt;
}
.cover-tagline {
  font-size: 13pt;
  color: var(--c-text-muted);
  max-width: 70ch;
  line-height: 1.45;
  margin-top: 0.2in;
  font-weight: 400;
}
.cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3in;
  padding-top: 0.25in;
  border-top: 1px solid #ddd;
}
.cover-strip .cell { display: flex; flex-direction: column; gap: 4pt; }
.cover-strip .lbl {
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  font-weight: 700;
}
.cover-strip .val {
  font-family: var(--ff-serif);
  font-size: 22pt;
  color: var(--c-text);
  line-height: 1;
  font-weight: 600;
}
.cover-strip .hint {
  font-size: 8pt;
  color: var(--c-text-muted);
}

/* Two-column layout for konsep slides */
.slide-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4in;
  flex: 1;
}
.slide-2col .col h3 { color: var(--c-accent); border-bottom: 2px solid var(--c-accent); padding-bottom: 5pt; margin-bottom: 0.14in; font-size: 15pt; }
.slide-2col .col.alt h3 { color: var(--c-true); border-bottom-color: var(--c-true); }
.slide-2col .col p { font-size: 12pt; line-height: 1.55; }
.slide-2col .col ul { padding-left: 18pt; font-size: 12pt; line-height: 1.55; margin: 0; }
.slide-2col .col ul li { margin-bottom: 6pt; }

/* Process slide: 5 steps horizontal */
.slide-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.18in;
  align-items: stretch;
}
.slide-process .step {
  background: #fafaf7;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 4pt;
  padding: 0.2in 0.18in;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6pt;
}
.slide-process .step .num {
  font-family: var(--ff-serif);
  font-size: 32pt;
  color: var(--c-accent);
  line-height: 1;
  font-weight: 600;
}
.slide-process .step h4 { font-size: 13pt; margin: 0; font-weight: 600; }
.slide-process .step p { font-size: 11pt; line-height: 1.45; margin: 0; }
.slide-process .step .meta {
  font-size: 9pt;
  color: var(--c-accent);
  padding-top: 6pt;
  border-top: 1px dashed var(--c-border);
  font-family: var(--ff-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Findings slide: 4 cards */
.slide-findings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0.2in;
}
.slide-findings .find-card {
  background: #fafaf7;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: 4pt;
  padding: 0.22in 0.22in;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 5pt;
}
.slide-findings .find-card .num { font-size: 26pt; color: var(--c-accent); font-family: var(--ff-serif); line-height: 1; font-weight: 600; }
.slide-findings .find-card h4 { font-size: 15pt; margin: 0; font-weight: 600; }
.slide-findings .find-card p { font-size: 12.5pt; line-height: 1.5; margin: 0; }

/* Numbers slide: KPI grid */
.slide-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2in;
  margin-bottom: 0.2in;
}
.slide-kpis .kpi {
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  padding: 0.15in;
  border-radius: 0 0 4pt 4pt;
}
.slide-kpis .kpi .lbl { font-size: 9pt; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); font-weight: 600; }
.slide-kpis .kpi .val { font-family: var(--ff-serif); font-size: 28pt; color: var(--c-text); margin-top: 5pt; line-height: 1; font-weight: 600; }
.slide-kpis .kpi .hint { font-size: 9pt; color: var(--c-text-muted); margin-top: 5pt; }

.slide .tc-track-print {
  display: flex;
  height: 32pt;
  border: 1px solid var(--c-border);
  border-radius: 4pt;
  overflow: hidden;
  margin-top: 0.15in;
}
.slide .tc-track-print > div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10pt;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6pt;
}
.slide .tc-track-print .true { background: var(--c-true); }
.slide .tc-track-print .cond { background: var(--c-conditional); }

.type-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2in;
  margin-top: 0.12in;
}
.type-cell {
  background: #fafaf7;
  padding: 0.14in;
  border-radius: 4pt;
  border-left: 3px solid #999;
  position: relative;
}
.type-cell .type-bar {
  height: 4pt;
  background: #999;
  border-radius: 2pt;
  margin-bottom: 6pt;
}
.type-cell .type-bar.acute { background: var(--c-acute); }
.type-cell .type-bar.chronic { background: var(--c-chronic); }
.type-cell .type-bar.vaccine, .type-cell .type-bar.vaccine-preventable { background: var(--c-vaccine); }
.type-cell .type-bar.other { background: var(--c-other); }
.type-cell .tnum {
  font-family: var(--ff-serif);
  font-size: 24pt;
  font-weight: 600;
  line-height: 1;
  color: var(--c-text);
}
.type-cell .tlbl {
  font-size: 9pt;
  font-weight: 600;
  margin-top: 4pt;
  color: var(--c-text);
}
.type-cell .tsub {
  font-size: 8pt;
  color: var(--c-text-muted);
  margin-top: 2pt;
}

/* BACK COVER — closing slide untuk semua PDF */
.slide.back-cover {
  grid-template-rows: 1fr;
  background: linear-gradient(135deg, #b13d2a 0%, #6f2517 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.slide.back-cover .slide-head, .slide.back-cover .slide-foot { display: none; }
.slide.back-cover::before { display: none; }
.slide.back-cover::after {
  content: "";
  position: absolute;
  top: -2in; right: -2in;
  width: 6in; height: 6in;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  z-index: 1;
}
.back-cover-inner {
  padding: 0.6in 0.7in;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.25in;
  height: 100%;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.back-cover-eyebrow {
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8pt;
}
.back-cover-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28pt; height: 2pt;
  background: white;
}
.back-cover-headline {
  font-family: var(--ff-serif);
  font-size: 44pt;
  line-height: 1.05;
  font-weight: 600;
  margin: 0;
  max-width: 22ch;
}
.back-cover-headline em {
  font-style: normal;
  color: #ffd6c8;
}
.back-cover-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5in;
  padding: 0.2in 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.back-cover-cta .col h4 {
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin: 0 0 8pt 0;
}
.back-cover-cta .col .link {
  font-family: var(--ff-mono);
  font-size: 14pt;
  font-weight: 600;
  color: white;
  word-break: break-all;
  margin-bottom: 6pt;
  letter-spacing: 0.02em;
}
.back-cover-cta .col p {
  font-size: 10pt;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 50ch;
}
.back-cover-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 9pt;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 0.18in;
}
.back-cover-foot .brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  font-size: 10pt;
}
.back-cover-foot .meta {
  font-family: var(--ff-mono);
  font-size: 8pt;
}

/* Province deep-dive cover (mirror Beranda cover style) */
.slide.province-cover {
  grid-template-rows: 1fr;
  background: linear-gradient(135deg, #fafaf7 0%, white 100%);
  position: relative;
}
.slide.province-cover .slide-head, .slide.province-cover .slide-foot { display: none; }
.slide.province-cover::before { display: none; }
.slide.province-cover::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1.4in;
  height: 100%;
  background: linear-gradient(180deg, var(--c-accent) 0%, #8e2f1f 100%);
  z-index: 1;
}
.slide.province-cover .cover-side {
  position: absolute;
  top: 0; left: 0;
  width: 1.4in;
  height: 100%;
  z-index: 2;
  padding: 0.45in 0.3in;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slide.province-cover .cover-side {
  overflow: hidden;
}
.cover-side .cover-logo {
  width: 0.65in;
  height: auto;
  display: block;
  margin-bottom: 0.16in;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.cover-side .org { font-size: 9pt; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }
.slide.province-cover .cover-side .org-sub { font-size: 7.5pt; opacity: 0.85; font-weight: 500; margin-top: 6pt; line-height: 1.4; }
.slide.province-cover .cover-side .vert-mark { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 8pt; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; opacity: 0.7; margin: 0 auto; }
.slide.province-cover .cover-side .footer-mark { font-size: 8pt; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; font-family: var(--ff-mono); }

.slide.province-cover .pcover-inner {
  padding: 0.55in 0.7in 0.5in 1.7in;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.18in;
  height: 100%;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  overflow: hidden;
}
.slide.province-cover .pcover-eyebrow {
  font-size: 10pt;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 8pt;
}
.slide.province-cover .pcover-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28pt; height: 2pt;
  background: var(--c-accent);
}
.slide.province-cover h1 {
  font-family: var(--ff-serif);
  font-size: 56pt;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  color: var(--c-text);
}
.slide.province-cover .pcover-meta {
  font-size: 12pt;
  color: var(--c-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3in;
}
.slide.province-cover .pcover-meta span strong { color: var(--c-text); font-family: var(--ff-mono); }

/* Province cover illustration — typographic & data-driven */
.slide.province-cover .pcover-illust {
  display: grid;
  grid-template-columns: 1fr 2.6in;
  gap: 0.45in;
  align-items: center;
  padding: 0.15in 0;
}

/* Rank scale visualization */
.rank-scale {
  position: relative;
  padding-top: 0.35in;
}
.rank-scale .label {
  font-size: 9pt;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8pt;
}
.rank-scale .label-meta { color: var(--c-accent); margin-left: 8pt; }
.rank-scale .scale-bars {
  display: flex;
  gap: 1.5pt;
  height: 0.55in;
  align-items: end;
  margin-bottom: 6pt;
  position: relative;
}
.rank-scale .scale-bars .bar {
  flex: 1;
  background: #d4cfc4;
  border-radius: 1pt 1pt 0 0;
  min-width: 3pt;
}
.rank-scale .scale-bars .bar.selected {
  background: var(--c-accent);
  position: relative;
}
.rank-scale .scale-bars .bar.selected::after {
  content: "▼";
  position: absolute;
  top: -14pt;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11pt;
  color: var(--c-accent);
}
.rank-scale .scale-foot {
  display: flex;
  justify-content: space-between;
  font-size: 8pt;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.rank-scale + .rank-scale { margin-top: 0.2in; }

/* Top conditions card on right of illust */
.top-cond-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 4pt;
  padding: 0.18in 0.2in;
}
.top-cond-card h4 {
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 0.12in 0;
}
.top-cond-card .item {
  display: grid;
  grid-template-columns: 22pt 1fr auto;
  gap: 6pt;
  font-size: 11pt;
  align-items: baseline;
  padding: 4pt 0;
  border-bottom: 1px dotted var(--c-border);
}
.top-cond-card .item:last-child { border-bottom: 0; }
.top-cond-card .item .num {
  font-family: var(--ff-mono);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 10pt;
}
.top-cond-card .item .name {
  font-size: 11pt;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.2;
}
.top-cond-card .item .v {
  font-family: var(--ff-mono);
  font-size: 9pt;
  color: var(--c-text-muted);
  font-weight: 600;
}
.slide.province-cover .ranking-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.22in;
  padding-top: 0.2in;
  border-top: 1px solid #ddd;
}
.slide.province-cover .rcell {
  display: flex;
  flex-direction: column;
  gap: 4pt;
}
.slide.province-cover .rcell .lbl { font-size: 8pt; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-accent); font-weight: 700; }
.slide.province-cover .rcell .val { font-family: var(--ff-serif); font-size: 26pt; color: var(--c-text); line-height: 1; font-weight: 600; }
.slide.province-cover .rcell .cmp { font-size: 9pt; color: var(--c-text-muted); margin-top: 2pt; }
.slide.province-cover .rcell .cmp .up { color: var(--c-accent); font-weight: 600; }
.slide.province-cover .rcell .cmp .down { color: var(--c-true); font-weight: 600; }

/* Province comparison slide */
.slide-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3in;
  flex: 1;
  min-height: 0;
}
.compare-col h3 {
  color: var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 5pt;
  margin-bottom: 0.1in;
  font-size: 13pt;
}
.compare-col.alt h3 { color: var(--c-true); border-bottom-color: var(--c-true); }
.compare-list {
  display: grid;
  grid-template-columns: 22pt 1fr 60pt;
  font-size: 8.8pt;
  gap: 4pt 8pt;
  align-items: center;
}
.compare-list .row {
  display: contents;
}
.compare-list .row .rk { color: var(--c-text-muted); font-family: var(--ff-mono); font-weight: 600; }
.compare-list .row .nm { color: var(--c-text); }
.compare-list .row .v { font-family: var(--ff-mono); text-align: right; font-weight: 600; }
.compare-list .row.highlight .rk,
.compare-list .row.highlight .nm,
.compare-list .row.highlight .v {
  background: rgba(177,61,42,0.12);
  color: var(--c-accent);
  font-weight: 700;
  padding: 3pt 4pt;
  border-radius: 2pt;
}
.compare-list .row.median { color: var(--c-text-muted); font-style: italic; }
.compare-list .row.median .rk { color: var(--c-text-muted); }
.compare-list .row.median .nm { color: var(--c-text-muted); }
.compare-list .row.median .v { color: var(--c-text-muted); }

/* SVG line chart (slide trend) */
.slide-chart { width: 100%; height: auto; max-height: 3.8in; min-height: 0; display: block; }
.slide-chart.tall { max-height: 4.6in; }
.slide-chart-wrap { padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.slide-chart-wrap > div { flex: 1; min-height: 0; }
.slide-chart-legend {
  display: flex;
  gap: 0.35in;
  flex-wrap: wrap;
  margin-bottom: 0.12in;
  font-size: 14pt;
  color: var(--c-text-muted);
}
.slide-chart-legend .item {
  display: inline-flex;
  align-items: center;
  gap: 7pt;
}
.slide-chart-legend .swatch {
  display: inline-block;
  width: 22pt;
  height: 6pt;
  border-radius: 1pt;
}
.slide-chart-legend .item strong { color: var(--c-text); font-weight: 600; }

/* Trend insight card under chart */
.trend-callout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.14in;
  margin-top: 0.1in;
}
.trend-callout .cell {
  background: #fafaf7;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  padding: 0.08in 0.12in;
  border-radius: 4pt;
}
.trend-callout .cell .lbl {
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  font-weight: 600;
}
.trend-callout .cell .val {
  font-family: var(--ff-serif);
  font-size: 16pt;
  color: var(--c-text);
  font-weight: 600;
  margin-top: 3pt;
  line-height: 1.05;
}
.trend-callout .cell .yoy { font-size: 8.5pt; margin-top: 2pt; }
.trend-callout .cell .yoy.up { color: var(--c-accent); font-weight: 600; }
.trend-callout .cell .yoy.down { color: var(--c-true); font-weight: 600; }

/* Top dx slide — list of diseases */
.slide-topdx {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.slide-topdx .row {
  display: grid;
  grid-template-columns: 28pt 1fr 100pt 92pt;
  gap: 10pt;
  align-items: center;
  font-size: 11pt;
  padding: 6pt 0 5pt 0;
  border-bottom: 1px dotted #ddd;
}
.slide-topdx .row .rk { color: var(--c-accent); font-family: var(--ff-mono); font-weight: 700; font-size: 10pt; }
.slide-topdx .row .nm strong { font-size: 12pt; font-weight: 600; line-height: 1.15; display: block; }
.slide-topdx .row .nm small { display: block; font-size: 9pt; color: var(--c-text-muted); font-family: var(--ff-mono); margin-top: 2pt; }
.slide-topdx .row .v { font-family: var(--ff-mono); text-align: right; font-weight: 600; font-size: 11pt; }
.slide-topdx .row .v.cost { color: var(--c-text-muted); font-weight: 500; }

/* Pathway slide */
.slide-pathway-track {
  display: flex;
  height: 30pt;
  border-radius: 4pt;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-bottom: 0.1in;
}
.slide-pathway-track div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9pt;
  font-weight: 600;
}
.slide-pathway-defs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.14in; flex: 1; }
.slide-pathway-defs .def {
  background: #fafaf7;
  padding: 0.14in;
  border-radius: 4pt;
  border-left: 3px solid;
}
.slide-pathway-defs .def h4 { font-size: 11.5pt; margin: 0 0 5pt 0; display: flex; align-items: center; gap: 6pt; font-weight: 600; }
.slide-pathway-defs .def p { font-size: 9.5pt; line-height: 1.45; margin: 0; }

/* Kab table slide */
.slide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5pt;
}
.slide-table th, .slide-table td {
  text-align: left;
  padding: 6pt 8pt;
  border-bottom: 1px solid #eee;
}
.slide-table th {
  background: #fafaf7;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  font-weight: 700;
}
.slide-table td.num { text-align: right; font-family: var(--ff-mono); }
.slide-table tr.highlight { background: rgba(177,61,42,0.06); font-weight: 600; }

/* Print: 16:9 widescreen, only slide deck visible */
@page {
  size: 13.333in 7.5in;
  margin: 0;
}
@page :first { size: 13.333in 7.5in; margin: 0; }
@page :left { size: 13.333in 7.5in; margin: 0; }
@page :right { size: 13.333in 7.5in; margin: 0; }

/* Print instruction modal (overlay before print fires) */
.print-instruct-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--s-4);
}
.print-instruct-card {
  background: white;
  border-radius: var(--r-lg);
  padding: var(--s-6);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-2);
  border-top: 4px solid var(--c-accent);
}
.print-instruct-card h3 {
  margin: 0 0 var(--s-3) 0;
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  color: var(--c-text);
}
.print-instruct-card .lede {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
  line-height: 1.55;
}
.print-instruct-card .steps {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}
.print-instruct-card .steps ol {
  margin: 0;
  padding-left: var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.print-instruct-card .steps ol li strong {
  color: var(--c-accent);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  background: white;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--c-border);
  display: inline-block;
  margin: 0 2px;
}
.print-instruct-card .actions {
  display: flex;
  gap: var(--s-3);
  justify-content: flex-end;
}
.print-instruct-card .btn {
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: var(--fs-sm);
  border: 1px solid var(--c-border);
  background: white;
  color: var(--c-text);
}
.print-instruct-card .btn.primary {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}
.print-instruct-card .btn.primary:hover { background: #8e2f1f; }
.print-instruct-card .skip-row {
  display: flex;
  align-items: center;
  gap: 6pt;
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

@media print {
  *,*::before,*::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body { margin: 0 !important; padding: 0 !important; height: auto !important; background: white !important; }
  body > *:not(.slide-deck) { display: none !important; }

  .slide-deck {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
    min-height: 0 !important;
  }
  .slide {
    box-shadow: none !important;
    margin: 0 !important;
    width: 13.333in !important;
    height: 7.5in !important;
    max-height: 7.5in !important;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    overflow: hidden !important;
  }
  .slide:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}


/* ── Mobile-friendly tweaks (max-width: 600px) ── */
@media (max-width: 600px) {
  .nav-inner { gap: var(--s-2); }
  .nav-brand-text { font-size: var(--fs-sm); }
  .nav-brand-text small { font-size: 0.7rem; }
  .nav-link { padding: var(--s-1) var(--s-2); font-size: 0.78rem; }
  .nav-links { gap: 4px; margin-left: 0; width: 100%; margin-top: var(--s-2); }
  .print-btn { font-size: 0.7rem; padding: 4px 8px; }

  .hero { padding: var(--s-5) 0 var(--s-4); }
  .hero h1 { font-size: 1.5rem; }
  .hero .lede { font-size: var(--fs-sm); }

  .flow-path { grid-template-columns: 1fr !important; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }

  .bar-item { grid-template-columns: minmax(100px, 1.2fr) minmax(0, 1.5fr); gap: var(--s-3); }
  .bar-line { grid-template-columns: 38px 1fr 60px; gap: 6px; }
  .bar-line .lbl { font-size: 0.65rem; }
  .bar-line .b-val { font-size: 0.78rem; min-width: 0; }
  .bar-item .b-name .name { font-size: 0.82rem; }

  .kpi-card .value { font-size: 1.4rem; }
  .stat-cell .value { font-size: 1.4rem; }

  .data-table { font-size: 0.78rem; }
  .data-table th, .data-table td { padding: 4px 6px; }

  .slope-tooltip { min-width: 200px; max-width: 260px; font-size: 0.78rem; }

  .rank-row { grid-template-columns: 24px 1fr auto; gap: 6px; font-size: 0.85rem; }
  .rank-row .val { font-size: 0.82rem; }
  .rank-row .shift { display: block; margin-left: 0 !important; margin-top: 2px; font-size: 0.72rem; }

  .modal { max-width: none; padding: var(--s-4); }
  .disclaimer-banner { font-size: 0.82rem; gap: var(--s-2); padding: var(--s-3); }
  .chart-card { padding: var(--s-3); }
  .chart-wrap { height: 240px; }
  .cover-headline { font-size: 1.6rem !important; }

  /* Print instruct overlay smaller */
  .print-instruct-card { padding: var(--s-4); }
  .print-instruct-card h3 { font-size: 1.05rem; }
  .print-instruct-card .steps ol { font-size: 0.78rem; }
}

/* Smaller phones */
@media (max-width: 380px) {
  .nav-link { padding: 3px 6px; font-size: 0.72rem; }
  .nav-links { gap: 2px; }
  .hero h1 { font-size: 1.3rem; }
  .filter-bar { padding: var(--s-2); gap: 6px; }
  .chip { padding: 4px 8px; font-size: 0.7rem; }
  .stat-cell .value { font-size: 1.2rem; }
  .kpi-card .value { font-size: 1.2rem; }
}
