/* 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: Arial, Helvetica, sans-serif;
  --ff-serif: Georgia, "Times New Roman", serif;
  --ff-mono: ui-monospace, "Courier New", 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); }

/* Country source badges — show which of {Canada, UK, AU, DE, KR} also list this ICD */
.country-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-1) 0;
  font-size: var(--fs-xs);
}
.ina-only {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(177,61,42,0.12);
  color: var(--c-accent);
  border: 1px solid rgba(177,61,42,0.3);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.universal {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(44,74,62,0.12);
  color: var(--c-true);
  border: 1px solid rgba(44,74,62,0.3);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.country-badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.country-badges .lbl { color: var(--c-text-muted); margin-right: 2px; }
.cc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.ina-only.inline, .universal.inline { font-size: 10px; padding: 1px 6px; }

.origin-summary {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  max-width: 60ch;
}
.origin-summary strong { color: var(--c-text); }

.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 — harmonized with PDF slide 2 styling (bolder, more contrast) */
.concept-flow {
  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-5);
  margin-top: var(--s-3);
}
.concept-flow h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--c-text);
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.flow-path {
  display: grid;
  grid-template-columns: minmax(140px, 2.4fr) 28px minmax(140px, 3fr) 28px minmax(140px, 2.2fr);
  gap: var(--s-2);
  align-items: stretch;
}
.flow-pill {
  padding: var(--s-3) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  background: white;
  border: 1px solid var(--c-border);
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-pill.start { background: var(--c-bg); }
/* Good path (rantai utuh → no rawat inap): solid green like PDF */
.flow-pill.good {
  background: var(--c-true);
  border-color: var(--c-true);
  color: white;
  font-weight: 700;
}
/* Bad path (link putus → PPH): solid maroon like PDF */
.flow-pill.bad {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: white;
  font-weight: 700;
}
.flow-pill.process { background: white; }
.flow-pill.process.fail {
  background: rgba(177,61,42,0.08);
  color: var(--c-accent);
  border-color: rgba(177,61,42,0.35);
}
.flow-pill.process.ok {
  background: rgba(44,74,62,0.08);
  color: var(--c-true);
  border-color: rgba(44,74,62,0.35);
}
.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: 42px minmax(60px, 1fr) minmax(110px, auto);
  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 palette — distinct hues (2026-05-19), kept in sync with pathwayColor() in app.js.
   A=ARC maroon, B=mustard, C=deep green-blue, D=muted purple, E=slate blue, F=neutral gray. */
.pathway-seg-0 { background: #b13d2a; }
.pathway-seg-1 { background: #d4a017; }
.pathway-seg-2 { background: #2c4a3e; }
.pathway-seg-3 { background: #7d5ba6; }
.pathway-seg-4 { background: #5a8caf; }
.pathway-seg-5 { background: #6c757d; }
.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; }

/* Lang toggle — segment control [ ID | EN ] */
.lang-segment {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-left: var(--s-2);
  background: var(--c-surface);
  height: 28px;
}
.lang-segment .lang-opt {
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  line-height: 1;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.lang-segment .lang-opt + .lang-opt {
  border-left: 1px solid var(--c-border);
}
.lang-segment .lang-opt:hover:not(.active) {
  background: var(--c-bg);
  color: var(--c-text);
}
.lang-segment .lang-opt:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}
.lang-segment .lang-opt.active {
  background: var(--c-accent);
  color: #fff;
}

/* ───────── 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 with theme colors + big stat */
.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: 6pt solid var(--c-accent);
  border-radius: 4pt;
  padding: 0.18in 0.22in;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 6pt;
  position: relative;
  overflow: hidden;
}
.slide-findings .find-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80pt; height: 80pt;
  background: var(--card-accent, var(--c-accent));
  opacity: 0.04;
  border-bottom-left-radius: 100%;
  pointer-events: none;
}
.slide-findings .find-card.scale { --card-accent: #b13d2a; border-left-color: #b13d2a; }
.slide-findings .find-card.insight { --card-accent: #4a7a8c; border-left-color: #4a7a8c; }
.slide-findings .find-card.analysis { --card-accent: #c89b2b; border-left-color: #c89b2b; }
.slide-findings .find-card.action { --card-accent: #6f8c5a; border-left-color: #6f8c5a; }
.slide-findings .find-card .find-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.16in;
}
.slide-findings .find-card .num {
  font-size: 32pt;
  color: var(--card-accent, var(--c-accent));
  font-family: var(--ff-serif);
  line-height: 1;
  font-weight: 700;
}
.slide-findings .find-card h4 {
  font-size: 16pt;
  margin: 0;
  font-weight: 700;
  color: var(--c-text);
  font-family: var(--ff-serif);
}
.slide-findings .find-card .find-card-stat {
  display: flex;
  align-items: baseline;
  gap: 8pt;
  padding: 6pt 0;
  border-top: 1px dotted #ddd;
  border-bottom: 1px dotted #ddd;
}
.slide-findings .find-card .find-card-stat .stat-num {
  font-family: var(--ff-mono);
  font-size: 24pt;
  font-weight: 700;
  line-height: 1;
  color: var(--card-accent, var(--c-accent));
}
.slide-findings .find-card .find-card-stat .stat-lbl {
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  font-weight: 600;
}
.slide-findings .find-card p { font-size: 11.5pt; line-height: 1.45; 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; }

/* Slide top-dx with bar visualization (mirror of web) — compact for 10 rows */
.slide-topdx-bars {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.slide-topdx-bars .bar-row {
  display: grid;
  grid-template-columns: 22pt minmax(2.6in, 1.4fr) minmax(0, 1.4fr);
  gap: 0.16in;
  align-items: center;
  padding: 3pt 0;
  border-bottom: 1px dotted #ddd;
}
.slide-topdx-bars .bar-row:last-child { border-bottom: 0; }
.slide-topdx-bars .bar-row .rk { color: var(--c-accent); font-family: var(--ff-mono); font-weight: 700; font-size: 11pt; }
.slide-topdx-bars .bars-pair { display: grid; gap: 3pt; }
.slide-topdx-bars .bar-line {
  display: grid;
  grid-template-columns: 36pt 1fr 96pt;
  gap: 5pt;
  align-items: center;
}
.slide-topdx-bars .bar-line .lbl {
  font-size: 8.5pt;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.slide-topdx-bars .bar-track {
  display: block;
  background: var(--c-bg);
  border-radius: 999px;
  height: 9pt;
  overflow: hidden;
  width: 100%;
}
.slide-topdx-bars .bar-fill { display: block; height: 100%; border-radius: 999px; }
.slide-topdx-bars .bar-fill.acute { background: var(--c-acute); }
.slide-topdx-bars .bar-fill.chronic { background: var(--c-chronic); }
.slide-topdx-bars .bar-fill.vaccine, .slide-topdx-bars .bar-fill.vaccine-preventable { background: var(--c-vaccine); }
.slide-topdx-bars .bar-fill.other { background: var(--c-other); }
.slide-topdx-bars .bar-fill.cost-tone { opacity: 0.55; }
.slide-topdx-bars .bar-line .b-val {
  font-family: var(--ff-mono);
  font-size: 10pt;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.slide-topdx-bars .nm strong { font-size: 12pt; font-weight: 600; line-height: 1.15; display: block; }
.slide-topdx-bars .nm small { display: block; font-size: 9pt; color: var(--c-text-muted); font-family: var(--ff-mono); margin-top: 1pt; }

/* Top dx slide-specific header compaction — frees vertical space so all 10 enlarged rows fit */
.slide:has(.slide-topdx-bars) .slide-body { padding-top: 0.14in; }
.slide:has(.slide-topdx-bars) .slide-body h2 { font-size: 20pt; margin-bottom: 0.06in; }
.slide:has(.slide-topdx-bars) .slide-body p.lead { font-size: 11pt; margin-bottom: 0.06in; line-height: 1.3; }

/* Konsep dasar slide — ACSC vs PPH cards + flow diagram */
.slide-concept-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.22in;
  margin-bottom: 0.2in;
}
.slide-concept-cards .card {
  background: #fafaf7;
  border-left: 5pt solid var(--c-conditional);
  padding: 0.16in 0.2in;
  border-radius: 4pt;
}
.slide-concept-cards .card.acsc { border-left-color: var(--c-conditional); }
.slide-concept-cards .card.pph { border-left-color: var(--c-true); background: rgba(44,74,62,0.05); }
.slide-concept-cards .card .card-label {
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: 4pt;
}
.slide-concept-cards .card h3 {
  font-family: var(--ff-serif);
  font-size: 22pt;
  font-weight: 700;
  margin: 0 0 2pt 0;
  line-height: 1;
}
.slide-concept-cards .card.acsc h3 { color: var(--c-conditional); }
.slide-concept-cards .card.pph h3 { color: var(--c-true); }
.slide-concept-cards .card .card-sub {
  font-family: var(--ff-serif);
  font-size: 10.5pt;
  font-style: italic;
  color: var(--c-text-muted);
  margin: 0 0 0.1in 0;
  line-height: 1.2;
}
.slide-concept-cards .card .card-body {
  font-size: 11pt;
  line-height: 1.4;
  margin: 0 0 0.1in 0;
  max-width: none;
}
.slide-concept-cards .card .card-meta {
  font-size: 9.5pt;
  line-height: 1.35;
  color: var(--c-text-muted);
  margin: 0;
  max-width: none;
}

.slide-concept-flow {
  background: linear-gradient(to right, rgba(44,74,62,0.05), rgba(177,61,42,0.05));
  border-radius: 6pt;
  padding: 0.16in 0.22in;
}
.slide-concept-flow h3 {
  font-family: var(--ff-serif);
  font-size: 12pt;
  font-weight: 600;
  margin: 0 0 0.12in 0;
  color: var(--c-text);
}
.slide-concept-flow .flow-rows {
  display: grid;
  gap: 0.1in;
}
.slide-concept-flow .flow-path {
  display: grid;
  grid-template-columns: 2.4fr 18pt 3fr 18pt 2.2fr;
  gap: 0.08in;
  align-items: stretch;
}
.slide-concept-flow .pill {
  padding: 0.07in 0.1in;
  border-radius: 4pt;
  font-size: 10pt;
  font-weight: 600;
  text-align: center;
  background: white;
  border: 1px solid var(--c-border);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-concept-flow .pill em {
  font-size: 7.5pt;
  font-style: normal;
  font-weight: 400;
  color: var(--c-text-muted);
  display: block;
  margin-top: 2pt;
  letter-spacing: 0;
}
.slide-concept-flow .pill.start { background: var(--c-surface); }
.slide-concept-flow .pill.ok { background: rgba(44,74,62,0.08); border-color: rgba(44,74,62,0.35); color: var(--c-true); }
.slide-concept-flow .pill.fail { background: rgba(177,61,42,0.08); border-color: rgba(177,61,42,0.35); color: var(--c-accent); }
.slide-concept-flow .pill.good { background: var(--c-true); border-color: var(--c-true); color: white; }
.slide-concept-flow .pill.bad { background: var(--c-accent); border-color: var(--c-accent); color: white; }
.slide-concept-flow .pill.good em,
.slide-concept-flow .pill.bad em { color: rgba(255,255,255,0.85); }
.slide-concept-flow .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16pt;
  font-weight: 700;
  color: var(--c-text-muted);
}
.slide-concept-flow .flow-caption {
  margin: 0.12in 0 0 0;
  font-size: 9pt;
  color: var(--c-text-muted);
  line-height: 1.4;
  max-width: none;
  font-style: italic;
}
.slide-concept-flow .flow-caption strong { color: var(--c-text); font-style: normal; }

/* Konteks lokal slide — 4 case cards Indonesia-specific + 2-col risk/factor */
.slide-case-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.14in;
  margin-bottom: 0.18in;
}
.slide-case-cards .case-card {
  background: white;
  border-radius: 6pt;
  padding: 0.12in 0.13in 0.13in 0.14in;
  border-top: 5pt solid var(--c-accent);
  box-shadow: 0 1pt 3pt rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.slide-case-cards .case-card.tropical { border-top-color: #b13d2a; }
.slide-case-cards .case-card.endemic { border-top-color: #4a7a8c; }
.slide-case-cards .case-card.nutrition { border-top-color: #c89b2b; }
.slide-case-cards .case-card.vaccine { border-top-color: #6f8c5a; }
.slide-case-cards .case-tag {
  font-size: 7pt;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 3pt;
}
.slide-case-cards .case-title {
  font-family: var(--ff-serif);
  font-size: 11.5pt;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6pt;
  color: var(--c-text);
}
.slide-case-cards .case-stat {
  display: flex;
  align-items: baseline;
  gap: 4pt;
  margin-bottom: 6pt;
  padding: 4pt 0;
  border-top: 1px dotted #e5e5d8;
  border-bottom: 1px dotted #e5e5d8;
}
.slide-case-cards .case-stat .num {
  font-family: var(--ff-mono);
  font-size: 18pt;
  font-weight: 700;
  line-height: 1;
  color: var(--c-text);
}
.slide-case-cards .case-card.tropical .case-stat .num { color: #b13d2a; }
.slide-case-cards .case-card.endemic .case-stat .num { color: #4a7a8c; }
.slide-case-cards .case-card.nutrition .case-stat .num { color: #c89b2b; }
.slide-case-cards .case-card.vaccine .case-stat .num { color: #6f8c5a; }
.slide-case-cards .case-stat .unit {
  font-size: 7.5pt;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.slide-case-cards .case-why {
  font-size: 8.5pt;
  line-height: 1.4;
  margin: 0;
  color: var(--c-text);
  max-width: none;
}
.slide-case-cards .case-why strong { color: var(--c-text); }

.slide-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2in;
}
.slide-context-grid .ctx-col {
  background: #fafaf7;
  padding: 0.12in 0.16in;
  border-radius: 4pt;
  border-left: 4pt solid #ddd;
}
.slide-context-grid .ctx-col.local { border-left-color: var(--c-true); }
.slide-context-grid .ctx-col.risk { border-left-color: var(--c-accent); background: rgba(177,61,42,0.04); }
.slide-context-grid .ctx-label {
  font-family: var(--ff-serif);
  font-size: 11pt;
  font-weight: 700;
  margin-bottom: 6pt;
  color: var(--c-text);
}
.slide-context-grid .ctx-col.local .ctx-label { color: var(--c-true); }
.slide-context-grid .ctx-col.risk .ctx-label { color: var(--c-accent); }
.slide-context-grid ul {
  margin: 0;
  padding-left: 0.16in;
  list-style: disc;
}
.slide-context-grid li {
  font-size: 8.5pt;
  line-height: 1.45;
  margin-bottom: 3pt;
  color: var(--c-text);
}
.slide-context-grid li strong { color: var(--c-text); }

/* Eksplorasi slide — 3 path cards + footer strip */
.slide-explore-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2in;
  margin-bottom: 0.18in;
}
.slide-explore-cards .explore-card {
  background: white;
  border-radius: 6pt;
  padding: 0.18in 0.2in 0.16in;
  border-top: 6pt solid var(--c-accent);
  box-shadow: 0 1pt 3pt rgba(0,0,0,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
}
.slide-explore-cards .explore-card.ringkasan { border-top-color: var(--c-accent); }
.slide-explore-cards .explore-card.deepdive { border-top-color: var(--c-true); }
.slide-explore-cards .explore-card.daftar { border-top-color: #c89b2b; }
.slide-explore-cards .card-num {
  position: absolute;
  top: 0.16in;
  right: 0.18in;
  font-family: var(--ff-mono);
  font-size: 22pt;
  font-weight: 700;
  color: rgba(0,0,0,0.08);
  line-height: 1;
}
.slide-explore-cards .card-icon {
  width: 36pt;
  height: 36pt;
  margin-bottom: 0.1in;
}
.slide-explore-cards .ringkasan .card-icon { color: var(--c-accent); }
.slide-explore-cards .deepdive .card-icon { color: var(--c-true); }
.slide-explore-cards .daftar .card-icon { color: #c89b2b; }
.slide-explore-cards .explore-card h3 {
  font-family: var(--ff-serif);
  font-size: 14pt;
  font-weight: 700;
  margin: 0 0 4pt 0;
  line-height: 1.15;
  color: var(--c-text);
}
.slide-explore-cards .card-sub {
  font-size: 9.5pt;
  color: var(--c-text-muted);
  margin: 0 0 0.12in 0;
  line-height: 1.35;
  font-style: italic;
  max-width: none;
}
.slide-explore-cards ul {
  margin: 0;
  padding-left: 0.16in;
  list-style: disc;
}
.slide-explore-cards li {
  font-size: 9.5pt;
  line-height: 1.4;
  margin-bottom: 2pt;
  color: var(--c-text);
}

.slide-explore-footer {
  display: grid;
  grid-template-columns: auto 1.4fr 1.2fr;
  gap: 0.2in;
  padding: 0.12in 0.18in;
  background: var(--c-bg);
  border-radius: 4pt;
  border-left: 4pt solid var(--c-accent);
}
.slide-explore-footer .foot-item .foot-lbl {
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 2pt;
}
.slide-explore-footer .foot-item .foot-val {
  font-size: 9.5pt;
  line-height: 1.3;
  color: var(--c-text);
  font-weight: 500;
}

/* Geografi slope chart — crude rank → adjusted rank slide */
.slide-slope-chart {
  display: block;
  width: 100%;
  margin-top: 0.08in;
  background: white;
}
.slide-slope-chart svg { display: block; width: 100%; height: auto; max-height: 5.5in; }

/* Pathway slide */
.slide-pathway-track {
  display: flex;
  height: 44pt;
  border-radius: 5pt;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-bottom: 0.08in;
}
.slide-pathway-track div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12pt;
  font-weight: 600;
}
/* Pathway compare rows — explicit label vs subtle overlay */
.pathway-row {
  display: grid;
  grid-template-columns: 1.5in 1fr;
  gap: 0.2in;
  align-items: center;
  margin-bottom: 0.08in;
}
.pathway-row-lbl {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.pathway-row-lbl .pathway-row-name {
  font-family: var(--ff-serif);
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-text);
}
.pathway-row-lbl .pathway-row-tag {
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-top: 3pt;
}
.pathway-row-lbl.prov .pathway-row-name { color: var(--c-accent); }
.pathway-row-lbl.prov .pathway-row-tag { color: var(--c-accent); }
.pathway-row-lbl.nat { opacity: 0.7; }
.slide-pathway-track.nat-overlay {
  height: 32pt;
  opacity: 0.6;
  border: 1px dashed rgba(0,0,0,0.18);
}
.slide-pathway-track.nat-overlay .pathway-seg { font-size: 11pt; }

.slide-pathway-defs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.16in; flex: 1; }
.slide-pathway-defs .def {
  background: #fafaf7;
  padding: 0.16in 0.16in 0.14in 0.16in;
  border-radius: 4pt;
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
  gap: 5pt;
}
.slide-pathway-defs .def h4 { font-size: 12.5pt; margin: 0; display: flex; align-items: center; gap: 7pt; font-weight: 700; line-height: 1.15; }
.slide-pathway-defs .def .def-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22pt;
  height: 22pt;
  background: rgba(0,0,0,0.04);
  border-radius: 5pt;
  flex-shrink: 0;
}
.slide-pathway-defs .def .def-icon svg { width: 14pt; height: 14pt; }
.slide-pathway-defs .def .def-desc { font-size: 11pt; line-height: 1.5; margin: 0; color: var(--c-text); }
.slide-pathway-defs .def .def-meta {
  font-size: 9.5pt;
  line-height: 1.45;
  margin: 0;
  color: var(--c-text-muted);
  padding-top: 5pt;
  border-top: 1px dashed var(--c-border);
}
.slide-pathway-defs .def .def-meta strong { color: var(--c-text); font-weight: 700; }

/* 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; }

/* Tour overlay — feature-introduction popovers */
.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 90;
  pointer-events: none;
}
.tour-spot {
  position: absolute;
  z-index: 91;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 9999px rgba(15,23,42,0.55), 0 0 0 4px var(--c-accent);
  background: transparent;
  pointer-events: none;
  transition: all 0.25s ease;
}
.tour-popover {
  position: absolute;
  z-index: 95;
  background: white;
  border-radius: var(--r-md);
  padding: var(--s-4);
  width: 320px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-2);
  border-top: 4px solid var(--c-accent);
}
.tour-popover .step-meta {
  font-size: var(--fs-xs);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.tour-popover h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  margin: 0 0 var(--s-2) 0;
  line-height: 1.3;
}
.tour-popover p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0 0 var(--s-3) 0; line-height: 1.5; }
.tour-popover .actions { display: flex; justify-content: space-between; gap: var(--s-2); align-items: center; }
.tour-popover .dots { display: flex; gap: 4px; }
.tour-popover .dots .dot { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.tour-popover .dots .dot.active { background: var(--c-accent); width: 18px; border-radius: 3px; }
.tour-popover .btn {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--c-border);
  background: white;
  color: var(--c-text);
}
.tour-popover .btn.primary {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}
.tour-popover .btn.primary:hover { background: #8e2f1f; }
.tour-popover .skip { font-size: 0.7rem; color: var(--c-text-muted); cursor: pointer; text-decoration: underline; }

.tour-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(177,61,42,0.08);
  border: 1px solid rgba(177,61,42,0.2);
  border-radius: var(--r-sm);
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  margin-left: var(--s-2);
}
.tour-trigger-btn:hover { background: rgba(177,61,42,0.14); }
.tour-trigger-btn::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); color: white; font-weight: 700; font-size: 0.7rem; }

/* 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);
}
/* Lang selector step (shown first when user clicks Cetak/PDF) */
.print-instruct-card.print-lang-card .lang-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.print-instruct-card .btn.lang-pick {
  font-size: 1rem;
  padding: 14pt 12pt;
  border: 1.5pt solid var(--c-border);
  background: white;
  text-align: center;
  cursor: pointer;
  border-radius: 4pt;
  font-family: var(--ff-body, Arial, Helvetica, sans-serif);
  transition: background 120ms ease, border-color 120ms ease;
}
.print-instruct-card .btn.lang-pick:hover {
  background: var(--c-surface-alt, #fafafa);
  border-color: var(--c-accent);
}
.print-instruct-card .btn.lang-pick.primary {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}
.print-instruct-card .btn.lang-pick.primary:hover { background: #8e2f1f; }
.print-instruct-card .btn.lang-pick .current-tag {
  font-size: 0.78rem;
  opacity: 0.75;
  display: block;
  margin-top: 2pt;
  font-weight: normal;
}
@media (max-width: 540px) {
  .print-instruct-card.print-lang-card .lang-pick-row { grid-template-columns: 1fr; }
}

@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 minmax(40px, 1fr) minmax(96px, auto); 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; }
}

/* ───────────── INA-ACSC tab — multi-section layout ───────────── */

/* Section A: Hero */
.ina-hero {
  padding: var(--s-6) 0 var(--s-5);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
}
.ina-hero .eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.ina-hero h1 {
  font-family: var(--ff-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--s-3) 0;
  max-width: 36ch;
}
.ina-hero .lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-text);
  max-width: 80ch;
  margin: 0;
}
.ina-hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin: var(--s-5) 0;
}
.ina-kpi {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-text-muted);
  border-radius: var(--r-sm);
  padding: var(--s-4);
}
.ina-kpi.accent { border-top-color: var(--c-accent); }
.ina-kpi.true { border-top-color: var(--c-true); }
.ina-kpi .num {
  font-family: var(--ff-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-text);
  margin-bottom: var(--s-1);
}
.ina-kpi.accent .num { color: var(--c-accent); }
.ina-kpi.true .num { color: var(--c-true); }
.ina-kpi .lbl {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--s-1);
}
.ina-kpi .hint {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.4;
}

.ina-hero-donut-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-5);
  align-items: center;
  margin-top: var(--s-5);
}
.ina-donut .svg-wrap { display: flex; justify-content: center; }
.ina-donut svg { width: 220px; height: 220px; }
.ina-donut .donut-legend {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.ina-donut .leg-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-sm);
}
.ina-donut .leg-row .sw { width: 14px; height: 14px; border-radius: 3px; }
.ina-donut .leg-row .leg-lbl { color: var(--c-text); font-weight: 500; }
.ina-donut .leg-row .leg-val { color: var(--c-text-muted); font-family: var(--ff-mono); font-size: var(--fs-xs); }

.ina-hero-donut-text h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  margin: 0 0 var(--s-3) 0;
  font-weight: 700;
}
.ina-hero-donut-text p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin: 0 0 var(--s-3) 0;
  max-width: 65ch;
}
.ina-hero-donut-text .c-accent { color: var(--c-accent); }
.ina-hero-donut-text .c-true { color: var(--c-true); }
.btn-link {
  display: inline-block;
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 1px;
}
.btn-link:hover { border-bottom-width: 2px; }

/* Section B: Concept + methodology */
.ina-concept {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
}
.ina-concept .eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.ina-concept h2 {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  margin: 0 0 var(--s-5) 0;
}
.ina-concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.concept-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.concept-block.alt { background: var(--c-bg); }
.concept-block h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0 0 var(--s-3) 0;
  color: var(--c-text);
}
.concept-block p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin: 0 0 var(--s-2) 0;
}
.concept-block .small {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--s-2);
}

/* Scoped to .concept-block (ina-concept) — must not override landing .tc-bar
   which is a layout container with h3 + desc + .tc-track + legend. */
.concept-block .tc-bar {
  display: flex;
  height: 36px;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.concept-block .tc-bar .tc-seg { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.concept-block .tc-bar .tc-seg.true { background: var(--c-true); color: white; }
.concept-block .tc-bar .tc-seg.cond { background: var(--c-conditional); color: white; }
.concept-block .tc-bar .tc-seg .tc-val { font-size: var(--fs-xs); font-weight: 700; line-height: 1; }
.concept-block .tc-bar .tc-seg .tc-pct { font-size: 10px; opacity: 0.85; }
.tc-list { margin: var(--s-2) 0 0 0; padding-left: var(--s-3); font-size: var(--fs-sm); }
.tc-list li { margin-bottom: var(--s-1); line-height: 1.45; }

.type-bars { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-2); }
.type-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-sm);
}
.type-bar-row .lbl { font-weight: 600; }
.type-bar-row .bar { background: var(--c-bg); border-radius: 999px; height: 10px; overflow: hidden; }
.type-bar-row .fill { height: 100%; border-radius: 999px; }
.type-bar-row .fill.acute { background: var(--c-acute); }
.type-bar-row .fill.chronic { background: var(--c-chronic); }
.type-bar-row .fill.vaccine-preventable { background: var(--c-vaccine); }
.type-bar-row .fill.other { background: var(--c-other); }
.type-bar-row .val { text-align: right; font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--c-text-muted); }

.method-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ms;
}
.method-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  align-items: start;
}
.method-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.method-step .body strong {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.method-step .body span {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* Section C: Comparison */
.ina-comparison {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
}
.ina-comparison .eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.ina-comparison h2 {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  margin: 0 0 var(--s-3) 0;
}
.ina-comparison .lead {
  font-size: var(--fs-sm);
  line-height: 1.55;
  max-width: 80ch;
  margin: 0 0 var(--s-5) 0;
}
.ina-comparison .c-accent { color: var(--c-accent); }
.ina-comparison .c-true { color: var(--c-true); }

.comp-histogram {
  background: var(--c-surface);
  padding: var(--s-4);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.comp-histogram h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  margin: 0 0 var(--s-3) 0;
  font-weight: 700;
}
.hist-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2);
  align-items: end;
  height: 200px;
  margin-bottom: var(--s-3);
}
.hist-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hist-val { font-family: var(--ff-mono); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--s-1); }
.hist-bar { width: 100%; height: 100%; background: var(--c-bg); border-radius: 4px 4px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.hist-fill { width: 100%; transition: height 0.3s ease; }
.hist-lbl { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: var(--s-1); text-align: center; }
.comp-histogram .small { font-size: var(--fs-xs); color: var(--c-text-muted); margin: 0; line-height: 1.45; }

.comp-spotlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.spotlight-col {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.spotlight-col.ina-only-col { border-top: 4px solid var(--c-accent); }
.spotlight-col.universal-col { border-top: 4px solid var(--c-true); }
.spotlight-col h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0 0 var(--s-2) 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ina-only-badge { background: rgba(177,61,42,0.12); color: var(--c-accent); border: 1px solid rgba(177,61,42,0.3); }
.universal-badge { background: rgba(44,74,62,0.12); color: var(--c-true); border: 1px solid rgba(44,74,62,0.3); }
.spotlight-col .col-intro { font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.45; margin: 0 0 var(--s-3) 0; }
.spotlight-list { display: flex; flex-direction: column; gap: var(--s-2); }
.spot-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: var(--s-3);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.spot-card:hover { box-shadow: var(--shadow-1); border-color: var(--c-accent); }
.spot-card.ina-only { border-left: 3px solid var(--c-accent); }
.spot-card.universal { border-left: 3px solid var(--c-true); }
.spot-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-2); margin-bottom: var(--s-1); }
.spot-head h4 { font-size: var(--fs-sm); font-weight: 700; margin: 0; line-height: 1.2; }
.spot-icds { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-1); }
.spot-burden { font-size: var(--fs-xs); }
.spot-burden .num { font-family: var(--ff-mono); font-weight: 700; color: var(--c-text); }
.spot-burden .unit { color: var(--c-text-muted); }
.spot-burden.empty { color: var(--c-text-muted); font-style: italic; }

/* Section E: Disease groups */
.ina-groups {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
}
.ina-groups .eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.ina-groups h2 {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  margin: 0 0 var(--s-2) 0;
}
.ina-groups .lead {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin: 0 0 var(--s-4) 0;
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-3);
}
.group-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: var(--s-3);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.group-card:hover { box-shadow: var(--shadow-1); border-color: var(--c-accent); }
.group-card h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0 0 var(--s-1) 0;
  line-height: 1.3;
}
.group-card .group-meta { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--s-1); }
.group-card .group-burden { font-size: var(--fs-xs); margin-bottom: var(--s-2); }
.group-card .group-burden strong { font-family: var(--ff-mono); }
.group-card .group-burden.empty { color: var(--c-text-muted); font-style: italic; }
.group-card .group-types { display: flex; flex-wrap: wrap; gap: 4px; }
.group-card .group-types .tag { font-size: 10px; padding: 1px 6px; }

/* Section D: Daftar wrapper — re-use existing filter-bar + card-grid */
.ina-daftar {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
}
.ina-daftar .eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.ina-daftar h2 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  margin: 0 0 var(--s-2) 0;
}
.ina-daftar .summary {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin: 0 0 var(--s-4) 0;
}

/* Section F: Methodology footer */
.ina-methodology {
  padding: var(--s-5) 0 var(--s-6);
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}
.ina-methodology .eyebrow {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.ina-methodology h2 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  margin: 0 0 var(--s-4) 0;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-4);
}
.method-grid h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0 0 var(--s-2) 0;
  color: var(--c-text);
}
.method-grid p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin: 0 0 var(--s-2) 0;
}
.method-grid ul { margin: 0 0 var(--s-2) 0; padding-left: var(--s-3); font-size: var(--fs-sm); }
.method-grid li { margin-bottom: var(--s-1); line-height: 1.4; }
.method-grid .small {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--s-2);
  word-break: break-all;
}
.method-grid code {
  font-family: var(--ff-mono);
  font-size: 10px;
  background: var(--c-surface);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Mobile breakpoints for INA-ACSC tab */
@media (max-width: 880px) {
  .ina-hero h1 { font-size: 1.6rem; }
  .ina-hero-kpis { grid-template-columns: 1fr 1fr; }
  .ina-hero-donut-row { grid-template-columns: 1fr; }
  .ina-concept-grid { grid-template-columns: 1fr; }
  .comp-spotlights { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .hist-bars { height: 140px; }
}


/* Tour replay button */
.tour-replay-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.tour-replay-btn:hover {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
}

/* Disease modal enrichment — sparkline + top-prov */
.modal-sub-label {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 1rem 0 0.4rem 0;
}
.modal-sparkline .svg-wrap {
  background: var(--c-bg);
  border-radius: var(--r-sm);
  padding: 0.4rem;
}
.modal-sparkline svg { display: block; max-width: 100%; height: auto; }
.modal-topprov .topprov-list { display: flex; flex-direction: column; gap: 2px; }
.modal-topprov .topprov-row {
  display: grid;
  grid-template-columns: 28px 1fr 100px 80px 14px;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-xs);
  padding: 6px 6px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, transform 0.12s ease;
}
.modal-topprov .topprov-row:hover {
  background: var(--c-bg);
  transform: translateX(2px);
  text-decoration: none;
}
.modal-topprov .topprov-row:hover .arrow { opacity: 1; transform: translateX(2px); }
.modal-topprov .topprov-row .rk { color: var(--c-accent); font-family: var(--ff-mono); font-weight: 700; }
.modal-topprov .topprov-row .nm { color: var(--c-text); }
.modal-topprov .topprov-row .bar { background: var(--c-bg); border-radius: 999px; height: 6px; overflow: hidden; display: block; }
.modal-topprov .topprov-row .bar .fill { background: var(--c-accent); height: 100%; display: block; border-radius: 999px; }
.modal-topprov .topprov-row .val { font-family: var(--ff-mono); text-align: right; color: var(--c-text-muted); }
.modal-topprov .topprov-row .arrow {
  color: var(--c-accent);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

/* Loading state — spinner + skeleton */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 6rem 1rem;
}
.loading::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.skeleton {
  background: linear-gradient(90deg, var(--c-bg), var(--c-surface), var(--c-bg));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modal Delphi voting viz */
.modal-delphi { margin-top: 1rem; }
.modal-delphi .delphi-concord {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: 0.6rem;
}
.modal-delphi .delphi-concord strong { color: var(--c-text); }
.modal-delphi .delphi-q { margin-bottom: 1rem; }
.modal-delphi .q-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.modal-delphi .q-stacked {
  display: flex;
  height: 22px;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.modal-delphi .q-stacked .q-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.modal-delphi .q-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 11px;
  color: var(--c-text-muted);
}
.modal-delphi .q-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 220px;
}
.modal-delphi .q-leg-item .sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.modal-delphi .q-leg-item .q-leg-label { color: var(--c-text); }
.modal-delphi .q-leg-item .q-leg-val { color: var(--c-text-muted); font-family: var(--ff-mono); margin-left: 2px; }

/* Compare picker — Deep Dive selector */
.compare-picker .compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.6rem 0;
}
.compare-chip {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}
.compare-chip:hover { border-color: var(--c-accent); }
.compare-chip.selected {
  background: var(--c-accent);
  color: white;
  border-color: var(--c-accent);
  font-weight: 600;
}
.compare-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#compare-go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Compare KPI grid */
.compare-kpi-grid {
  display: grid;
  gap: 1px;
  background: var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.compare-kpi-grid > div {
  background: var(--c-surface);
  padding: 0.6rem 0.8rem;
  font-size: var(--fs-sm);
}
.compare-kpi-grid .kpi-head {
  background: var(--c-bg);
  font-weight: 700;
  font-family: var(--ff-serif);
}
.compare-kpi-grid .kpi-head.metric-name { background: var(--c-surface); }
.compare-kpi-grid .kpi-metric-name {
  background: var(--c-bg);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.compare-kpi-grid .kpi-cell {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--c-text);
}

/* Compare top-dx side-by-side */
.compare-topdx-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.6rem;
}
.compare-topdx-grid .topdx-col {
  background: var(--c-surface);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem;
}
.compare-topdx-grid .topdx-col h5 {
  font-family: var(--ff-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.3rem;
}
.compare-topdx-grid .topdx-row {
  display: grid;
  grid-template-columns: 24px 1fr 60px 64px;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  font-size: var(--fs-xs);
}
.compare-topdx-grid .topdx-row .rk { color: var(--c-accent); font-family: var(--ff-mono); font-weight: 700; }
.compare-topdx-grid .topdx-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-topdx-grid .topdx-row .bar { background: var(--c-bg); border-radius: 999px; height: 5px; overflow: hidden; display: block; }
.compare-topdx-grid .topdx-row .bar .fill { background: var(--c-accent); height: 100%; display: block; }
.compare-topdx-grid .topdx-row .val { font-family: var(--ff-mono); text-align: right; color: var(--c-text-muted); }

/* Compare pathway rows */
.compare-pw-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.compare-pw-grid .pw-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.8rem;
  align-items: center;
}
.compare-pw-grid .pw-row.nat { border-top: 1px dashed var(--c-border); padding-top: 0.6rem; margin-top: 0.4rem; }
.compare-pw-grid .pw-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text);
  text-align: right;
}
.compare-pw-grid .pw-row.nat .pw-label { color: var(--c-text-muted); font-style: italic; }

/* Mobile compare adjustments */
@media (max-width: 880px) {
  .compare-kpi-grid { grid-template-columns: 1fr 1fr !important; font-size: 0.78rem; }
  .compare-topdx-grid { grid-template-columns: 1fr !important; }
  .compare-pw-grid .pw-row { grid-template-columns: 1fr; }
  .compare-pw-grid .pw-label { text-align: left; }
}

/* Export PNG button — overlay bottom-right of chart-card */
.chart-card { position: relative; }
.chart-card .export-btn {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-mono);
  opacity: 0.5;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 5;
}
.chart-card:hover .export-btn { opacity: 1; }
.chart-card .export-btn:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}


/* A11y: focus ring for keyboard users */
.disease-card:focus-visible,
.spot-card:focus-visible,
.group-card:focus-visible,
.compare-chip:focus-visible,
.tour-replay-btn:focus-visible,
.export-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.modal h3[tabindex] { outline: none; }

/* Site footer */
.site-footer {
  margin-top: 4rem;
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 1.4rem 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
}
.footer-cell { display: flex; align-items: center; gap: 0.5rem; }
.footer-cell.right { gap: 0.5rem; }
.footer-cell strong { font-family: var(--ff-serif); color: var(--c-text); }
.footer-cell .muted { color: var(--c-text-muted); }
.footer-cell a { color: var(--c-accent); text-decoration: none; font-weight: 500; }
.footer-cell a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Print stylesheet for web sections (when slide-deck NOT injected) */
@media print {
  body:not(:has(.slide-deck)) {
    background: white !important;
  }
  body:not(:has(.slide-deck)) .nav,
  body:not(:has(.slide-deck)) .print-btn,
  body:not(:has(.slide-deck)) .tour-replay-btn,
  body:not(:has(.slide-deck)) .export-btn,
  body:not(:has(.slide-deck)) .context-bar:has(select),
  body:not(:has(.slide-deck)) .filter-bar,
  body:not(:has(.slide-deck)) .compare-picker,
  body:not(:has(.slide-deck)) .cta-row,
  body:not(:has(.slide-deck)) .tour-overlay,
  body:not(:has(.slide-deck)) .tour-card {
    display: none !important;
  }
  body:not(:has(.slide-deck)) .container {
    max-width: 100% !important;
    padding: 0 0.5in !important;
  }
  body:not(:has(.slide-deck)) .chart-card,
  body:not(:has(.slide-deck)) section {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  body:not(:has(.slide-deck)) a[href]:after { content: ''; }  /* no URL after links */
  body:not(:has(.slide-deck)) .site-footer {
    border-top: 2px solid #ccc !important;
    margin-top: 2rem !important;
    page-break-before: avoid !important;
  }
}

/* Deep Dive: province title row with prominent Cetak/PDF button */
.deep-prov-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.deep-prov-title-row h2 {
  flex: 1 1 auto;
  min-width: 0;
}
.print-pdf-prominent {
  background: var(--c-accent);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(177, 61, 42, 0.25);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.print-pdf-prominent::before {
  content: "↓";
  font-weight: 900;
}
.print-pdf-prominent:hover {
  background: #8f3322;
  box-shadow: 0 3px 12px rgba(177, 61, 42, 0.4);
  transform: translateY(-1px);
}
.print-pdf-prominent:active { transform: translateY(0); }
.print-pdf-prominent:focus-visible {
  outline: 3px solid rgba(177, 61, 42, 0.4);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .deep-prov-title-row { flex-direction: column; align-items: flex-start; }
  .print-pdf-prominent { width: 100%; justify-content: center; }
}

/* Hide prominent button from web print (slide-deck handles its own) */
@media print {
  body:not(:has(.slide-deck)) .print-pdf-prominent { display: none !important; }
}

/* ============================================================
   MOTION DESIGN — entrance choreography (UI/UX revision 2026-05-16)
   ============================================================ */

@keyframes ina-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ina-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ina-pulse-dot {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(177,61,42,0.55); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 18px rgba(177,61,42,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(177,61,42,0); }
}

/* Hero stagger */
.hero > * { animation: ina-rise 0.7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero > *:nth-child(1) { animation-delay: 0.04s; }
.hero > *:nth-child(2) { animation-delay: 0.18s; }
.hero > *:nth-child(3) { animation-delay: 0.32s; }
.hero > *:nth-child(4) { animation-delay: 0.46s; }

.ina-hero > * { animation: ina-rise 0.7s cubic-bezier(.2,.7,.2,1) backwards; }
.ina-hero > *:nth-child(1) { animation-delay: 0.04s; }
.ina-hero > *:nth-child(2) { animation-delay: 0.18s; }
.ina-hero > *:nth-child(3) { animation-delay: 0.32s; }
.ina-hero > *:nth-child(4) { animation-delay: 0.46s; }

/* KPI strip stagger */
.kpi-strip > *,
.ina-hero-kpis > *,
.stat-row > * {
  animation: ina-rise 0.55s cubic-bezier(.2,.7,.2,1) backwards;
}
.kpi-strip > *:nth-child(1),
.ina-hero-kpis > *:nth-child(1),
.stat-row > *:nth-child(1) { animation-delay: 0.5s; }
.kpi-strip > *:nth-child(2),
.ina-hero-kpis > *:nth-child(2),
.stat-row > *:nth-child(2) { animation-delay: 0.6s; }
.kpi-strip > *:nth-child(3),
.ina-hero-kpis > *:nth-child(3),
.stat-row > *:nth-child(3) { animation-delay: 0.7s; }
.kpi-strip > *:nth-child(4),
.ina-hero-kpis > *:nth-child(4),
.stat-row > *:nth-child(4) { animation-delay: 0.8s; }

/* Sections fade in */
.land-section,
.concept-section,
.ina-concept,
.ina-comparison,
.ina-groups,
.ina-daftar,
.ina-methodology { animation: ina-fade 0.6s ease both; animation-delay: 0.3s; }

/* Modal entrance */
.modal-backdrop { animation: ina-fade 0.18s ease both; }
.modal { animation: ina-rise 0.32s cubic-bezier(.2,.7,.2,1) both; }

/* Card-grid stagger (browse) */
.card-grid > * { animation: ina-rise 0.4s ease backwards; }
.card-grid > *:nth-child(1) { animation-delay: 0.02s; }
.card-grid > *:nth-child(2) { animation-delay: 0.04s; }
.card-grid > *:nth-child(3) { animation-delay: 0.06s; }
.card-grid > *:nth-child(4) { animation-delay: 0.08s; }
.card-grid > *:nth-child(5) { animation-delay: 0.10s; }
.card-grid > *:nth-child(6) { animation-delay: 0.12s; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05ms !important;
  }
}

/* ============================================================
   M3: NAV + MODAL + CARD INTERACTIONS (UI/UX revision 2026-05-16)
   ============================================================ */

/* C5: Nav underline active indicator (override pill bg) */
.nav-link {
  position: relative;
  padding: var(--s-2) var(--s-3);
  border-radius: 0;
  background: transparent;
  color: var(--c-text-muted);
  transition: color 0.15s ease;
  font-weight: 500;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: var(--s-3); right: var(--s-3); bottom: -2px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(.2,.7,.2,1);
}
.nav-link.active {
  background: transparent !important;
  color: var(--c-accent) !important;
  font-weight: 700;
}
.nav-link.active::after { transform: scaleX(1); }
.nav-link:hover {
  background: transparent !important;
  color: var(--c-text);
  text-decoration: none;
}
.nav-link:hover::after { transform: scaleX(0.55); }

/* C5 mobile: scroll-snap nav strip alih-alih wrap */
@media (max-width: 600px) {
  .nav-links {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-top: var(--s-2);
    padding-bottom: 4px;
    width: 100%;
    scrollbar-width: thin;
  }
  .nav-link {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* C4: Modal craft */
.modal-backdrop {
  background: rgba(20, 18, 16, 0.62);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}
.modal {
  background: var(--c-surface);
  border-radius: 16px;
  max-width: 760px;
  border: 1px solid rgba(177,61,42,0.08);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.35),
    0 0 0 1px rgba(177,61,42,0.05),
    0 12px 24px -12px rgba(177,61,42,0.12);
  position: relative;
}
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), #d97757);
  border-radius: 0 0 3px 3px;
}

/* P2: Card hover lift + ↗ indicator */
.disease-card, .group-card, .spot-card {
  position: relative;
  transition: transform 0.2s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.22s ease,
              border-color 0.2s ease;
}
.disease-card:hover, .group-card:hover, .spot-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px -10px rgba(177,61,42,0.22),
    0 2px 6px rgba(0,0,0,0.05);
  border-color: var(--c-accent);
}
.disease-card::after,
.group-card::after,
.spot-card::after {
  content: "↗";
  position: absolute;
  top: 0.7rem; right: 0.85rem;
  color: var(--c-accent);
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.disease-card:hover::after,
.group-card:hover::after,
.spot-card:hover::after {
  opacity: 1;
  transform: none;
}

/* P5: Loading state — pulsing maroon dot */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 1rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(177,61,42,0.55);
  animation: ina-pulse-dot 1.4s cubic-bezier(.66,0,.34,1) infinite;
  border: none;     /* override old spinner ring */
}
/* D2: Tabular-nums + stylistic numerics for all stat displays */
.num, .value, .stat-num, .b-val,
.kpi-card .value,
.ina-kpi .num,
.find-card-stat .stat-num,
.spot-burden .num,
.modal-row .v,
.compare-kpi-grid .kpi-cell,
.topdx-row .val,
.topprov-row .val,
.data-table td.num,
.hist-val,
.donut-legend .leg-val {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Download Slide button — Beranda concept-section header */
.concept-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.download-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--c-accent);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(177,61,42,0.22);
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.download-slide-btn::before { content: "↓"; font-weight: 900; }
.download-slide-btn:hover {
  background: #8f3322;
  box-shadow: 0 3px 12px rgba(177,61,42,0.36);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}
.download-slide-btn:active { transform: translateY(0); }
@media (max-width: 600px) {
  .download-slide-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   METODE TAB — sticky TOC + sections (2026-05-16 revamp)
   ============================================================ */

.methods-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .methods-wrapper {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .methods-toc {
    position: sticky;
    top: calc(var(--s-3) + 60px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.4rem;
  }
}
.methods-toc {
  font-size: 0.85rem;
  border-right: 1px solid var(--c-border);
  padding-right: 1rem;
}
@media (max-width: 1099px) {
  .methods-toc {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding-right: 0;
    padding-bottom: 1rem;
  }
}
.methods-toc .toc-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.methods-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.methods-toc .toc-list li { margin: 0; }
.methods-toc .toc-list a {
  display: block;
  padding: 4px 8px;
  color: var(--c-text-muted);
  border-left: 2px solid transparent;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.methods-toc .toc-list a:hover {
  color: var(--c-text);
  background: var(--c-bg);
  text-decoration: none;
}
.methods-toc .toc-list a.active {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  font-weight: 600;
  background: var(--c-bg);
}

.methods-main { min-width: 0; }
.methods-main .methods-lead {
  font-size: 1rem;
  color: var(--c-text-muted);
  margin-bottom: 2.5rem;
  max-width: 70ch;
  line-height: 1.6;
}

.methods-section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0 0.6rem 0;
  scroll-margin-top: 80px;
}
.methods-section-head .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.methods-section-head h3 {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: 1.5rem;
}

.methods-main .section-lede {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.2rem 0;
  max-width: 75ch;
  line-height: 1.55;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 1rem 0 2rem;
}
@media (min-width: 880px) {
  .pipeline-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0.4rem;
    align-items: stretch;
  }
}
.pipe-node {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pipe-node.pipe-raw { border-top: 4px solid #6b6962; }
.pipe-node.pipe-process { border-top: 4px solid var(--c-chronic); }
.pipe-node.pipe-store { border-top: 4px solid var(--c-conditional); }
.pipe-node.pipe-transform { border-top: 4px solid var(--c-accent); }
.pipe-node.pipe-output { border-top: 4px solid var(--c-true); }
.pipe-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: var(--c-text);
  color: white;
  border-radius: 50%;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pipe-title {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.pipe-desc {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}
.pipe-src {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--c-accent);
  background: var(--c-bg);
  padding: 2px 6px;
  border-radius: 3px;
  word-break: break-all;
  align-self: flex-start;
}
.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-accent);
  font-weight: 700;
}
@media (max-width: 879px) {
  .pipe-arrow { transform: rotate(90deg); padding: 2px 0; }
}

.method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.badge.core {
  background: var(--c-accent);
  color: white;
}
.badge.prep {
  background: var(--c-bg);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.method-card.method-core { border-left: 3px solid var(--c-accent); }
.method-card.method-prep { border-left: 3px solid var(--c-border); }

.glossary-cat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.glossary-cat summary {
  padding: 0.7rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-bg);
  list-style: none;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 0.95rem;
}
.glossary-cat summary::-webkit-details-marker { display: none; }
.glossary-cat summary::before {
  content: "▾";
  margin-right: 0.5rem;
  color: var(--c-accent);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.glossary-cat:not([open]) summary::before { transform: rotate(-90deg); }
.glossary-cat .cat-title { flex: 1; }
.glossary-cat .cat-count {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  font-weight: 400;
}
.glossary-cat .glossary-list {
  margin: 0;
  padding: 0.6rem 1rem 0.8rem;
  display: grid;
  gap: 0.4rem;
}
@media (min-width: 880px) {
  .glossary-cat .glossary-list { grid-template-columns: 1fr 1fr; }
}
.glossary-cat .glossary-item {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--c-border);
}
.glossary-cat .glossary-item:last-child { border-bottom: 0; }
.glossary-cat dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-text);
  margin-bottom: 0.2rem;
}
.glossary-cat dd {
  margin: 0;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}

.cite-block .cite-pre {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  background: var(--c-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 0.6rem 0;
  border: 1px solid var(--c-border);
}
.cite-block { margin-bottom: 1rem; }

.download-extras {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--c-border);
}
.download-extras .extra-item {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.download-extras .extra-item strong { color: var(--c-text); }

.caveats-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 2rem;
}
.caveat-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-warn);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
}
.caveat-icon {
  width: 24px; height: 24px;
  background: var(--c-warn);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
}
.caveat-item h5 {
  margin: 0 0 0.2rem 0;
  font-size: 0.92rem;
  font-family: var(--ff-serif);
  color: var(--c-text);
}
.caveat-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0 2rem;
  position: relative;
  padding-left: 1.5rem;
}
.changelog-list::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--c-border);
}
.changelog-item {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
}
.changelog-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 1rem;
  width: 12px;
  height: 12px;
  background: var(--c-text-muted);
  border: 2px solid var(--c-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-border);
}
.changelog-item.current::before {
  background: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent), 0 0 0 5px rgba(177,61,42,0.15);
}
.cl-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}
.cl-version { font-family: var(--ff-mono); font-weight: 700; color: var(--c-text); }
.cl-date { color: var(--c-text-muted); font-family: var(--ff-mono); font-size: 0.78rem; }
.cl-badge {
  background: var(--c-accent);
  color: white;
  padding: 1px 7px;
  border-radius: 3px;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.changelog-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}
@media (min-width: 700px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
}
.team-avatar {
  width: 44px; height: 44px;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--ff-serif);
  flex-shrink: 0;
}
.team-info { display: flex; flex-direction: column; min-width: 0; }
.team-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.2;
}
.team-role {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 1px;
  line-height: 1.35;
}
.team-email {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--c-accent);
  margin-top: 2px;
}

.publication-status p { margin-bottom: 0.6rem; font-size: 0.88rem; line-height: 1.55; }

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 700px) { .version-grid { grid-template-columns: repeat(4, 1fr); } }
.vstat {
  background: var(--c-bg);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  border-left: 2px solid var(--c-accent);
}
.vstat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.vstat-value {
  font-family: var(--ff-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
}

/* Country breakdown panel — per-country overlap dengan INA-ACSC */
.country-breakdown {
  margin-top: 2rem;
  padding: 1.2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.country-breakdown h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  margin: 0 0 0.4rem 0;
}
.country-breakdown .small {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}
.country-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.country-row {
  display: grid;
  grid-template-columns: 130px 1fr 90px;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
}
.cb-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--c-text);
}
.cb-lbl .cb-name { font-size: 0.85rem; }
.cb-bar {
  display: flex;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}
.cb-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  font-family: var(--ff-mono);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.cb-fill.shared { background: var(--c-true); }
.cb-fill.ina-only { background: var(--c-accent); }
.cb-num {
  font-family: var(--ff-mono);
  font-weight: 700;
  text-align: right;
  font-size: 0.85rem;
  color: var(--c-text);
}
.leg-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 2px;
  vertical-align: middle;
}
.leg-sw.shared { background: var(--c-true); }
.leg-sw.ina-only { background: var(--c-accent); }
@media (max-width: 680px) {
  .country-row { grid-template-columns: 90px 1fr 70px; gap: 0.4rem; }
  .cb-lbl .cb-name { font-size: 0.75rem; }
}

/* Full INA-only table */
.ina-only-full {
  margin-top: 2rem;
}
.ina-only-full h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  margin: 0 0 0.4rem 0;
}
.ina-only-full .small {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.55;
  max-width: 75ch;
}
.ina-only-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-surface);
  max-height: 600px;
  overflow-y: auto;
}
.ina-only-table { width: 100%; border-collapse: collapse; }
.ina-only-table thead { position: sticky; top: 0; z-index: 1; }
.ina-only-table thead th {
  background: var(--c-bg);
  font-family: var(--ff-serif);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid var(--c-border);
  color: var(--c-text);
}
.ina-only-table thead th.num { text-align: right; }
.ina-only-table tbody td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.85rem;
  vertical-align: middle;
}
.ina-only-table tbody tr:hover { background: var(--c-bg); }
.ina-only-table tbody tr:hover td:first-child { color: var(--c-accent); }
.ina-only-table tbody td.num { font-family: var(--ff-mono); text-align: right; }
.ina-only-table .tag { font-size: 0.68rem; padding: 1px 6px; }

/* Floating Action Button — feedback widget (INA-ACSC tab only) */
#ina-feedback-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  background: var(--c-accent);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow:
    0 6px 16px -4px rgba(177,61,42,0.45),
    0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.15s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.2s ease, background 0.15s ease;
}
#ina-feedback-fab:hover {
  background: #8f3322;
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px -6px rgba(177,61,42,0.55),
    0 3px 8px rgba(0,0,0,0.15);
}
#ina-feedback-fab:active { transform: translateY(0); }
#ina-feedback-fab:focus-visible {
  outline: 3px solid rgba(177,61,42,0.4);
  outline-offset: 3px;
}
#ina-feedback-fab .fab-icon {
  font-size: 1.05rem;
  line-height: 1;
}
@media (max-width: 600px) {
  #ina-feedback-fab {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
  }
  #ina-feedback-fab .fab-label { display: none; }
  #ina-feedback-fab .fab-icon { font-size: 1.2rem; }
  #ina-feedback-fab {
    width: 50px; height: 50px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
}

/* Feedback modal */
.feedback-modal {
  max-width: 580px;
  padding: 1.5rem;
}
.feedback-modal h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.feedback-intro {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0 0 1.2rem 0;
}
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.feedback-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.feedback-form label > span {
  font-size: 0.78rem;
  color: var(--c-text);
  font-weight: 600;
}
.fb-input {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: var(--c-surface);
  color: var(--c-text);
  width: 100%;
  box-sizing: border-box;
}
.fb-input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: -1px;
  border-color: var(--c-accent);
}
.fb-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}
.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.fb-btn-primary {
  background: var(--c-accent);
  color: white;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.fb-btn-primary:hover { background: #8f3322; }
.fb-btn-secondary {
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.fb-btn-secondary:hover { color: var(--c-text); border-color: var(--c-text-muted); }

.feedback-success {
  text-align: center;
  padding: 1rem 0;
}
.feedback-success .fb-success-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  background: var(--c-true);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.feedback-success h3 {
  font-family: var(--ff-serif);
  margin-bottom: 0.6rem;
}
.feedback-success p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  margin: 0 auto 1.2rem;
  max-width: 42ch;
  line-height: 1.55;
}

/* Hide FAB in print */
@media print { #ina-feedback-fab { display: none !important; } }

/* Domain heatmap 5×20 — INA-ACSC section C */
.domain-heatmap {
  margin: 2rem 0;
  padding: 1.2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.domain-heatmap h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  margin: 0 0 0.4rem 0;
}
.domain-heatmap .small {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}
.hm-key {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 2px 0 4px;
}
.hm-key.full { background: var(--c-true); }
.hm-key.partial { background: var(--c-conditional); }
.hm-key.none { background: var(--c-bg); border: 1px solid var(--c-border); }

.heatmap-wrap {
  overflow-x: auto;
  margin: 0 -1.2rem;
  padding: 0 1.2rem;
}
.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px 2px;
  font-size: 0.82rem;
  min-width: 600px;
}
.heatmap-table th {
  font-family: var(--ff-serif);
  font-weight: 600;
  text-align: left;
  padding: 0.4rem 0.6rem;
  background: var(--c-bg);
  border-radius: 4px;
}
.heatmap-table th.hm-country-col { text-align: center; min-width: 70px; }
.hm-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hm-country .cc-badge { background: var(--c-text); color: white; }
.hm-country-name { font-size: 0.7rem; color: var(--c-text-muted); font-weight: 400; }

.heatmap-table td {
  padding: 0.45rem 0.6rem;
  background: var(--c-surface);
  border-radius: 4px;
  vertical-align: middle;
}
.heatmap-table td.hm-domain {
  font-weight: 500;
  color: var(--c-text);
  font-size: 0.82rem;
  background: var(--c-bg);
  min-width: 240px;
}
.heatmap-table td.hm-cell {
  text-align: center;
  font-family: var(--ff-mono);
  cursor: help;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.heatmap-table td.hm-cell:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
  position: relative;
}
.heatmap-table td.hm-cell.hm-full { background: var(--c-true); color: white; }
.heatmap-table td.hm-cell.hm-partial { background: var(--c-conditional); color: white; }
.heatmap-table td.hm-cell.hm-none { background: var(--c-bg); color: var(--c-text-muted); }
.hm-cell-mark { font-size: 1.05rem; line-height: 1; font-weight: 700; display: inline-block; }
.heatmap-footnote { margin-top: 1rem; font-size: 0.7rem; }
.heatmap-footnote code { font-family: var(--ff-mono); font-size: 0.7rem; background: var(--c-bg); padding: 1px 4px; border-radius: 2px; }

/* Disease modal — Delphi viz + per-ICD table polish */
.modal-delphi { 
  margin: 1.2rem 0 0.6rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(135deg, rgba(177,61,42,0.04), rgba(44,74,62,0.04));
  border-radius: 6px;
  border-left: 3px solid var(--c-accent);
}
.modal-delphi .modal-sub-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem 0;
}
.modal-delphi .modal-sub-label::before {
  content: "⚕";
  color: var(--c-accent);
  font-size: 1rem;
}

/* Per-ICD detail block (collapsible) */
.modal-icd-block {
  margin-top: 1rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
}
.modal-icd-block summary {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  background: var(--c-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
.modal-icd-block summary::-webkit-details-marker { display: none; }
.modal-icd-block summary::before {
  content: "▾";
  margin-right: 0.4rem;
  color: var(--c-accent);
  transition: transform 0.18s ease;
  font-size: 0.85rem;
}
.modal-icd-block:not([open]) summary::before { transform: rotate(-90deg); }
.modal-icd-block .modal-sub-label.inline { margin: 0; flex: 1; }
.modal-icd-block .modal-sub-label.inline::before { content: ''; }
.modal-icd-block .icd-count {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--c-text-muted);
  background: var(--c-surface);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
}
.icd-detail-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.icd-detail-table thead th {
  background: var(--c-surface);
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
  font-family: var(--ff-serif);
  text-align: left;
}
.icd-detail-table thead th.num { text-align: right; }
.icd-detail-table tbody td {
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.icd-detail-table tbody tr:last-child td { border-bottom: 0; }
.icd-detail-table tbody tr:hover { background: var(--c-bg); }
.icd-detail-table .icd-code {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--c-accent);
}
.icd-detail-table .num { font-family: var(--ff-mono); text-align: right; }

/* ────────── Policy Recommendations tab ────────── */
.policy-wrapper { max-width: var(--max-w); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-7); }
.policy-hero { padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-border); margin-bottom: var(--s-6); }
.policy-hero h2 { margin-top: var(--s-2); color: var(--c-text); }
.policy-lead { font-size: var(--fs-md); color: var(--c-text-muted); margin-top: var(--s-3); max-width: 75ch; line-height: 1.55; }
.policy-section { padding: var(--s-5) 0; }
.policy-section h3 { margin-top: var(--s-2); color: var(--c-text); }
.policy-section-lead { color: var(--c-text-muted); margin: var(--s-3) 0 var(--s-4); max-width: 75ch; font-size: var(--fs-base); }
.policy-recap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-4); }
.policy-recap-card { background: var(--c-surface); border-left: 4px solid var(--accent, var(--c-accent)); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: var(--s-2); }
.policy-recap-card .recap-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); font-weight: 600; }
.policy-recap-card .recap-val { font-family: var(--ff-serif); font-size: 2.4rem; line-height: 1.05; color: var(--accent, var(--c-accent)); font-weight: 700; }
.policy-recap-card .recap-sub { font-size: var(--fs-sm); color: var(--c-text); line-height: 1.5; }
.policy-recap-card .recap-link { font-size: var(--fs-sm); margin-top: auto; color: var(--accent, var(--c-accent)); font-weight: 600; }
.policy-stake-tablewrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.policy-stake-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.policy-stake-table thead th { background: var(--c-bg); padding: var(--s-3) var(--s-4); text-align: left; font-family: var(--ff-serif); font-weight: 600; border-bottom: 2px solid var(--c-border); color: var(--c-text); }
.policy-stake-table tbody td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border); vertical-align: top; }
.policy-stake-table tbody tr:last-child td { border-bottom: 0; }
.policy-stake-table .actor-cell { font-weight: 700; color: var(--c-accent); width: 22%; }
.policy-stake-table .lever-cell { font-style: italic; color: var(--c-text-muted); width: 30%; }
.policy-stake-table .role-cell { color: var(--c-text); }

/* Package cards (3 themes) */
.policy-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-4); }
.policy-pkg-card { background: var(--c-surface); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); border-top: 6px solid var(--pkg-c, var(--c-accent)); display: flex; flex-direction: column; gap: var(--s-4); }
.policy-pkg-card.pkg-quickwin { --pkg-c: #2c4a3e; --pkg-c-soft: #e0ebe6; }
.policy-pkg-card.pkg-strategic { --pkg-c: #c69d6e; --pkg-c-soft: #f4e9d9; }
.policy-pkg-card.pkg-transformational { --pkg-c: #b13d2a; --pkg-c-soft: #f4d9d3; }
.policy-pkg-card .pkg-head { display: flex; flex-direction: column; gap: var(--s-1); }
.policy-pkg-card .pkg-badge { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--pkg-c); font-weight: 700; }
.policy-pkg-card .pkg-title { color: var(--c-text); margin: 0; }
.policy-pkg-card .pkg-horizon { font-size: var(--fs-xs); color: var(--c-text-muted); }
.policy-pkg-card .pkg-sub { font-size: var(--fs-sm); color: var(--c-text-muted); font-style: italic; margin: 0; }
.policy-pkg-card .pkg-target { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); }
.policy-pkg-card .target-lbl { color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.policy-pkg-card .target-tag { background: var(--pkg-c-soft); color: var(--pkg-c); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.policy-pkg-card .block-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); font-weight: 700; margin-bottom: var(--s-2); }
.policy-pkg-card .pkg-levers, .policy-pkg-card .pkg-impact { margin: 0; padding-left: var(--s-4); font-size: var(--fs-sm); color: var(--c-text); }
.policy-pkg-card .pkg-levers li, .policy-pkg-card .pkg-impact li { margin-bottom: var(--s-2); line-height: 1.5; }
.policy-pkg-card .pkg-impact .bcr-row { list-style: none; margin-left: -1rem; margin-top: var(--s-3); padding: var(--s-2) var(--s-3); background: var(--pkg-c-soft); border-radius: var(--r-sm); color: var(--pkg-c); }
.policy-pkg-card .pkg-actors { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.policy-pkg-card .actor-tag { background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-text); padding: 2px 8px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600; }

/* Detail card grid */
.policy-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-4); }
.policy-detail-card { background: var(--c-surface); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); border-left: 4px solid var(--pkg-c, var(--c-accent)); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: var(--s-3); }
.policy-detail-card.pkg-quickwin { --pkg-c: #2c4a3e; }
.policy-detail-card.pkg-strategic { --pkg-c: #c69d6e; }
.policy-detail-card.pkg-transformational { --pkg-c: #b13d2a; }
.policy-detail-card h4 { color: var(--pkg-c); margin-bottom: var(--s-2); }
.policy-detail-card .detail-row .detail-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text-muted); font-weight: 700; margin-bottom: 2px; }
.policy-detail-card .detail-row p { margin: 0 0 var(--s-2) 0; font-size: var(--fs-sm); color: var(--c-text); line-height: 1.5; }

/* Comparison matrix */
.policy-matrix-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); margin-top: var(--s-4); }
.policy-matrix-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 1000px; }
.policy-matrix-table thead th { background: var(--c-bg); padding: var(--s-2) var(--s-3); text-align: left; font-family: var(--ff-serif); font-weight: 600; border-bottom: 2px solid var(--c-border); font-size: var(--fs-xs); color: var(--c-text); }
.policy-matrix-table tbody td { padding: var(--s-3); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.policy-matrix-table tbody tr:last-child td { border-bottom: 0; }
.policy-matrix-table .mat-pkg { font-weight: 700; }
.policy-matrix-table .mat-row.pkg-quickwin .mat-pkg { color: #2c4a3e; }
.policy-matrix-table .mat-row.pkg-strategic .mat-pkg { color: #c69d6e; }
.policy-matrix-table .mat-row.pkg-transformational .mat-pkg { color: #b13d2a; }
.policy-matrix-table .mat-num { font-family: var(--ff-mono); text-align: right; }
.policy-matrix-table .mat-feas { text-align: center; font-weight: 600; padding: var(--s-1) var(--s-2); }
.policy-matrix-table .mat-feas-H { color: #2c4a3e; }
.policy-matrix-table .mat-feas-M { color: #b58400; }
.policy-matrix-table .mat-feas-L { color: #8a4a3a; }
.policy-matrix-table .mat-best { background: #e0ebe6; }
.policy-matrix-table .mat-actors { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* Scatter wrap */
.policy-scatter-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-4); margin-top: var(--s-3); }
.policy-scatter-svg { width: 100%; height: auto; max-height: 520px; display: block; }

/* Roadmap */
.policy-road-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-4); margin-top: var(--s-3); }
.policy-roadmap-svg { width: 100%; height: auto; display: block; }

/* Disclaimer prominence */
.policy-disclaim { background: #fff7ed; border: 2px solid #c69d6e; border-left-width: 8px; border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-6) 0; }
.policy-disclaim .disclaim-title { font-family: var(--ff-serif); font-weight: 700; font-size: 1.15rem; color: #8a4a00; margin-bottom: var(--s-2); text-transform: uppercase; letter-spacing: 0.04em; }
.policy-disclaim p { font-size: 0.95rem; color: var(--c-text); line-height: 1.6; margin: 0; }

/* CTA */
.policy-cta { background: var(--c-bg); border-radius: var(--r-md); padding: var(--s-5); }
.policy-cta-links { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); }
.policy-cta-links .cta-link { display: inline-block; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; }
.policy-cta-links .cta-link.primary { background: var(--c-accent); color: #fff; }
.policy-cta-links .cta-link.primary:hover { opacity: 0.9; text-decoration: none; }
.policy-cta-links .cta-link.secondary { border: 1px solid var(--c-accent); color: var(--c-accent); }
.policy-cta-links .cta-link.secondary:hover { background: var(--c-accent-soft); text-decoration: none; }

/* Mobile: stack package cards + recap cards */
@media (max-width: 880px) {
  .policy-recap-cards { grid-template-columns: 1fr; }
  .policy-pkg-grid { grid-template-columns: 1fr; }
  .policy-detail-grid { grid-template-columns: 1fr; }
}

/* Policy slide (landing deck slide 12) */
.slide-policy-matrix { margin: 0.6in 0; }
.slide-policy-table { width: 100%; border-collapse: collapse; font-size: 22px; font-family: var(--ff-sans); }
.slide-policy-table thead th { background: #f4eee3; padding: 14px 18px; text-align: left; font-family: var(--ff-serif); font-weight: 700; font-size: 20px; color: #333; border-bottom: 3px solid #c69d6e; }
.slide-policy-table tbody td { padding: 16px 18px; border-bottom: 1px solid #eee; vertical-align: middle; }
.slide-policy-table tbody tr:last-child td { border-bottom: 0; }
.slide-policy-table .spl-pkg { font-weight: 700; font-family: var(--ff-serif); }
.slide-policy-table .spl-quickwin .spl-pkg { color: #2c4a3e; border-left: 6px solid #2c4a3e; }
.slide-policy-table .spl-strategic .spl-pkg { color: #c69d6e; border-left: 6px solid #c69d6e; }
.slide-policy-table .spl-transformational .spl-pkg { color: #b13d2a; border-left: 6px solid #b13d2a; }
.slide-policy-table .spl-bcr { font-weight: 700; font-family: var(--ff-serif); text-align: right; }
.slide-policy-foot { margin-top: 0.5in; padding: 12px 18px; background: #fff7ed; border-left: 4px solid #c69d6e; font-size: 16px; color: #5a3000; line-height: 1.4; }

/* Slide 12 Beyond PHC caveat strip — compact, doesn't overtake the slide */
.slide-policy-beyond { margin-top: 0.18in; padding: 10px 16px; background: #eef3ef; border-left: 4px solid #2c4a3e; font-size: 15px; color: #2c4a3e; line-height: 1.45; display: flex; align-items: flex-start; gap: 12px; }
.slide-policy-beyond .spb-tag { flex: 0 0 auto; font-family: var(--ff-serif); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; background: #2c4a3e; color: #fff; border-radius: 4px; }
.slide-policy-beyond .spb-text { flex: 1 1 auto; font-family: var(--ff-sans); }

/* Beyond PHC section in policy tab — re-use stake table; add scope distinctness */
.policy-beyond { border-left: 4px solid #2c4a3e; padding-left: var(--s-4); background: linear-gradient(to right, #f4f8f5 0%, transparent 60%); border-radius: var(--r-sm); }
.policy-beyond h3 { color: #2c4a3e; }
.policy-beyond-tablewrap { border-color: #c2d4c8; }
.policy-beyond-table thead th { background: #eef3ef; color: #2c4a3e; border-bottom-color: #2c4a3e; }
.policy-beyond-table .phc-cell { color: var(--c-text-muted); font-style: italic; }
.policy-beyond-closing { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); background: #eef3ef; border-left: 4px solid #2c4a3e; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--c-text); line-height: 1.55; }

/* Package card cross-sectoral actors block */
.pkg-actors-block .block-sublabel { margin-top: var(--s-3); font-size: 0.78rem; color: #2c4a3e; }
.pkg-actors-xsector .actor-tag-xsector { background: #eef3ef; color: #2c4a3e; border: 1px dashed #2c4a3e; }

/* Disclaimer body2 spacing */
.policy-disclaim .disclaim-body2 { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px dashed #c69d6e; }

/* ============================================================
   Sankey diagram (ACSC type → failure pathway flow)
   ============================================================ */
.sankey-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-top: var(--s-3);
}
.sankey-card h4 {
  font-family: var(--ff-serif);
  margin: 0 0 var(--s-1) 0;
  font-size: 1.1rem;
}
.sankey-card .desc {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--s-3);
  max-width: 80ch;
  line-height: 1.5;
}
.sankey-container {
  width: 100%;
  position: relative;
  min-height: 380px;
}
.sankey-container svg {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
}
.sankey-container .sankey-node-label {
  font-size: 11.5px;
  font-weight: 600;
  fill: #1f2937;
  pointer-events: none;
}
.sankey-container .sankey-node-value {
  font-size: 10.5px;
  font-family: var(--ff-mono, ui-monospace, Menlo, Consolas, monospace);
  fill: #4b5563;
  pointer-events: none;
}
.sankey-loading {
  text-align: center;
  padding: var(--s-5) var(--s-3);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}
.sankey-fallback {
  padding: var(--s-3);
  background: #f7f7f6;
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-3);
}
#sankey-tooltip {
  position: absolute;
  background: rgba(33,33,33,.92);
  color: #fff;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  max-width: 280px;
  pointer-events: none;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

/* Mobile: hide Sankey SVG, show stacked-bar fallback */
@media (max-width: 879px) {
  .sankey-svg-wrap { display: none; }
}
@media (min-width: 880px) {
  .sankey-mobile-fallback { display: none; }
}

/* ============================================================
   Pathway distribution toggle (Aggregate / By type) + breakdown bars
   ============================================================ */
.pathway-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.pathway-toggle {
  display: inline-flex;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
.pathway-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-size: var(--fs-sm);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--c-text-muted);
  cursor: pointer;
  border-right: 1px solid var(--c-border);
}
.pathway-toggle button:last-child { border-right: 0; }
.pathway-toggle button.active {
  background: #2c4a3e;
  color: #fff;
  font-weight: 600;
}
.pathway-toggle button:hover:not(.active) { background: #f1efe9; color: var(--c-text); }

.pathway-breakdown-wrap { margin-top: var(--s-2); }
.pb-data-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-left: 4px solid #f0ad4e;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 12px 0;
  font-family: var(--ff-sans);
}
.pb-data-warning::before {
  content: "⚠ ";
  font-weight: 700;
}
/* Softer info variant after taxonomy fix 2026-05-19 */
.pb-data-warning.pb-scope-note {
  background: #e7f3fe;
  color: #1b4f72;
  border: 1px solid #b6dcf6;
  border-left: 4px solid #3498db;
}
.pb-data-warning.pb-scope-note::before {
  content: "ℹ ";
}
.pathway-breakdown-bars {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 6px 12px;
  margin-bottom: var(--s-3);
  align-items: center;
}
.pathway-breakdown-bars .pb-label-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.pathway-breakdown-bars .pb-label {
  font-size: var(--fs-sm);
  color: var(--c-text);
  font-weight: 600;
  text-align: right;
  line-height: 1.2;
  word-break: break-word;
}
.pathway-breakdown-bars .pb-abs-label {
  font-size: 11px;
  color: #555;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pathway-breakdown-bars .pb-bar-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pathway-breakdown-bars .pb-bar {
  display: flex;
  height: 28px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.pathway-breakdown-bars .pb-ref-wrap {
  height: 6px;
  width: 100%;
  background: #f1efe9;
  border-radius: 3px;
  overflow: hidden;
}
.pathway-breakdown-bars .pb-ref-fill {
  height: 100%;
  background: #b8b3a8;
  border-radius: 3px;
  transition: width 0.2s ease;
}
.pathway-breakdown-caption {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: 4px;
  margin-bottom: var(--s-2);
  line-height: 1.4;
  font-style: italic;
}
.pathway-breakdown-bars .pb-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 4px;
}
.pathway-breakdown-bars .pb-seg-acute   { background: #d97757; }
.pathway-breakdown-bars .pb-seg-chronic { background: #4a7a8c; }
.pathway-breakdown-bars .pb-seg-vacc    { background: #6f8c5a; }
.pathway-breakdown-bars .pb-seg-other   { background: #8a7c6e; }
.pathway-breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: var(--s-2);
}
.pathway-breakdown-legend .lg-item { display: inline-flex; align-items: center; gap: 6px; }
.pathway-breakdown-legend .lg-sw { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
@media (max-width: 600px) {
  .pathway-breakdown-bars { grid-template-columns: 120px 1fr; }
  .pathway-breakdown-bars .pb-seg { font-size: 10px; }
}
