/* Status Gizi Antropometri Indonesia
   Oxford-navy static dashboard visual system. */

:root {
  --c-bg: #fafaf7;
  --c-surface: #ffffff;
  --c-raised: #fffdfa;
  --c-border: #e5e3dd;
  --c-border-strong: #d7d2c8;
  --c-text: #1a1a1a;
  --c-muted: #6b6962;
  --c-muted-2: #8c887f;
  --c-accent: #002147;
  --c-accent-dark: #00162f;
  --c-accent-soft: #dce8f5;
  --c-blue: #1f5f8b;
  --c-teal: #1f6f68;
  --c-gold: #d69a00;
  --c-olive: #6f8c5a;
  --ff-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-serif: Georgia, "Times New Roman", serif;
  --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.4rem;
  --fs-xl: 2rem;
  --fs-xxl: 2.8rem;
  --lh-tight: 1.18;
  --lh-base: 1.55;
  --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;
  --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 8px 22px rgba(29, 25, 20, 0.08);
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    linear-gradient(180deg, rgba(0,33,71,0.055), transparent 320px),
    var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; }
button { cursor: pointer; }
canvas {
  display: block;
  max-width: 100%;
}
small { color: var(--c-muted); font-size: var(--fs-xs); }
p { margin: 0; }
h1, h2, h3, h4 {
  color: var(--c-text);
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0;
}
h1 { font-size: clamp(2rem, 4.6vw, var(--fs-xxl)); max-width: 26ch; }
h2 { font-size: clamp(1.45rem, 2.8vw, var(--fs-xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  align-items: center;
  display: flex;
  gap: var(--s-4);
  margin: 0 auto;
  max-width: var(--max-w);
  padding: var(--s-3) var(--s-4);
  width: 100%;
}
.nav-brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  min-width: 235px;
}
.brand-mark {
  align-items: center;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  flex-shrink: 0;
  height: 42px;
  justify-content: center;
  margin-right: var(--s-3);
  padding: 3px;
  transition: transform 0.12s ease;
  width: 42px;
}
.brand-mark:hover { transform: scale(1.04); }
.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.nav-brand-text {
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  line-height: 1.15;
}
.nav-brand-text strong { font-weight: 600; }
.nav-brand-text small {
  display: block;
  font-family: var(--ff-sans);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}
.nav-link {
  border-radius: var(--r-sm);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  padding: var(--s-2) var(--s-3);
}
.nav-link:hover {
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
}
.nav-link.active {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
}

.container {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: var(--s-4) var(--s-4) var(--s-6);
  width: 100%;
}
.loading,
.error {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.error { color: #9f1d1d; }

.eyebrow {
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.lead,
.lede {
  color: var(--c-muted);
  font-size: var(--fs-md);
  line-height: 1.55;
  margin-top: var(--s-3);
  max-width: 68ch;
}

.hero {
  align-items: start;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  padding: var(--s-4) 0 var(--s-3);
}
.home-hero {
  grid-template-columns: minmax(0, 1fr);
}
.home-hero .hero-copy {
  max-width: 760px;
}
.hero-copy {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  padding: 0;
}
.hero-stat {
  color: var(--c-accent);
  font-weight: 700;
}
.story-strip {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--s-4);
}
.story-card,
.card,
.nav-card,
.target-pill {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.story-card {
  min-height: 136px;
  padding: var(--s-4);
}
.story-card .num {
  color: var(--c-accent);
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.story-card h4 {
  font-family: var(--ff-serif);
  font-size: var(--fs-base);
  margin-bottom: var(--s-2);
}
.story-card p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.land-section {
  border-top: 1px solid var(--c-border);
  margin: var(--s-5) 0 0;
  padding: var(--s-5) 0 var(--s-4);
  position: relative;
}
.land-section::before,
.section-head::before {
  background: var(--c-accent);
  border-radius: 0 0 2px 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: -2px;
  width: 72px;
}
.land-section .lead {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
  margin-top: var(--s-3);
  max-width: 70ch;
}
.compact-land {
  padding-bottom: var(--s-4);
}
.nav-cards {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.age-choice-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nav-card,
.age-choice-card {
  color: inherit;
  display: block;
  min-height: 148px;
  padding: var(--s-4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.nav-card:hover,
.age-choice-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-card .persona,
.age-choice-card .persona {
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.nav-card h3,
.age-choice-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--s-3);
}
.nav-card .preview {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.5;
}
.age-choice-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  position: relative;
}
.age-illustration {
  align-items: end;
  background: linear-gradient(180deg, rgba(0,33,71,0.06), rgba(255,255,255,0));
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  display: flex;
  height: 72px;
  justify-content: center;
  margin-bottom: var(--s-3);
  overflow: hidden;
  position: relative;
}
.age-illustration::before,
.age-illustration::after {
  background: currentColor;
  bottom: 10px;
  content: "";
  opacity: 0.18;
  position: absolute;
}
.age-illustration::before {
  height: 22px;
  left: 18%;
  width: 8px;
}
.age-illustration::after {
  height: 36px;
  right: 18%;
  width: 8px;
}
.age-illustration.u5 { color: var(--c-teal); }
.age-illustration.adolescent { color: var(--c-gold); }
.age-illustration.adult { color: var(--c-blue); }
.age-illustration.elder { color: var(--c-olive); }
.age-illustration .figure {
  background: currentColor;
  display: block;
  position: absolute;
}
.age-illustration .head {
  border-radius: 999px;
  height: 15px;
  top: 13px;
  width: 15px;
}
.age-illustration .body {
  border-radius: 12px 12px 4px 4px;
  bottom: 16px;
  height: 31px;
  width: 22px;
}
.age-illustration .base {
  border-radius: 999px;
  bottom: 10px;
  height: 5px;
  opacity: 0.35;
  width: 58px;
}
.age-illustration.u5 .head { top: 25px; }
.age-illustration.u5 .body { height: 20px; width: 20px; }
.age-illustration.adolescent .head { top: 18px; }
.age-illustration.adolescent .body { height: 27px; }
.age-illustration.adult .head { top: 10px; }
.age-illustration.adult .body { height: 37px; width: 24px; }
.age-illustration.elder .head { top: 12px; }
.age-illustration.elder .body { height: 35px; width: 23px; }
.age-illustration.elder::after {
  bottom: 8px;
  height: 43px;
  opacity: 0.35;
  right: 30%;
  transform: rotate(9deg);
  transform-origin: bottom center;
  width: 4px;
}
.age-choice-card .choice-metric {
  display: grid;
  gap: 2px;
  margin: var(--s-3) 0;
}
.age-choice-card .choice-metric span {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1;
}
.age-choice-card p {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.subheader-tabs {
  align-items: stretch;
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: var(--s-3);
  padding: var(--s-2);
}
.breakdown-tabs {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.subheader-tab {
  background: #fbfaf8;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: var(--s-3);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.subheader-tab:hover {
  background: #fff;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-1);
  text-decoration: none;
}
.subheader-tab.active {
  background: var(--c-accent-soft);
  border-color: var(--c-accent);
  box-shadow: inset 0 -3px 0 var(--c-accent);
}
.subheader-tab span {
  font-weight: 800;
  line-height: 1.2;
}
.subheader-tab small {
  color: var(--c-muted);
  line-height: 1.25;
}
.condition-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.landing-component-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.condition-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: var(--s-4);
}
.landing-component-card {
  min-height: 270px;
}
.landing-component-wide {
  min-height: 520px;
}
.landing-component-chart {
  min-height: 390px;
  position: relative;
  width: 100%;
}
.landing-component-chart canvas {
  max-height: 460px;
  width: 100% !important;
}
.year-pill {
  background: #f6f3ed;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
}
.condition-head {
  align-items: start;
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.condition-head .eyebrow {
  margin-bottom: var(--s-2);
}
.condition-list {
  display: grid;
  gap: var(--s-2);
}
.condition-row {
  border-left: 3px solid var(--c-accent);
  display: grid;
  gap: var(--s-2);
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
}
.condition-row-top {
  align-items: baseline;
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
}
.condition-row-top span {
  color: var(--c-text);
  font-size: var(--fs-sm);
}
.condition-row-top strong {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.condition-compare {
  align-items: center;
  display: grid;
  gap: var(--s-2);
  grid-template-columns: minmax(86px, 1fr) 18px minmax(86px, 1fr) 86px;
}
.condition-point {
  background: #f6f3ed;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 7px 9px;
}
.condition-point small {
  color: var(--c-muted-2);
  display: block;
  font-size: 0.68rem;
  line-height: 1.1;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.condition-point strong {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  line-height: 1.2;
}
.condition-arrow {
  color: var(--c-muted-2);
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  text-align: center;
}
.condition-delta {
  display: grid;
  gap: 1px;
  justify-items: end;
}
.condition-delta strong {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.condition-delta small {
  color: var(--c-muted-2);
  font-size: 0.68rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.condition-delta.up strong { color: var(--c-accent); }
.condition-delta.down strong { color: var(--c-teal); }
.condition-delta.neutral strong { color: var(--c-muted); }

.grid { display: grid; gap: var(--s-4); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi-strip {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--s-5);
}
.card {
  box-shadow: var(--shadow-1);
  padding: var(--s-4);
}
.card-head {
  align-items: flex-start;
  display: flex;
  gap: var(--s-4);
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.card .eyebrow + h3,
.card h3 + .table-wrap {
  margin-top: var(--s-3);
}
.kpi-card,
.kpi {
  min-height: 124px;
}
.kpi .label {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
  text-transform: uppercase;
}
.kpi .value {
  color: var(--c-text);
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.05;
  margin-top: var(--s-2);
}
.kpi .meta {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  margin-top: var(--s-2);
}

.section-head {
  align-items: end;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: var(--s-4);
  justify-content: space-between;
  margin: var(--s-5) 0 var(--s-3);
  padding-top: var(--s-5);
  position: relative;
}
.section-head p {
  color: var(--c-muted);
  margin-top: var(--s-2);
  max-width: 76ch;
}
.section-head.subhead {
  border-top: 0;
  margin: var(--s-4) 0 var(--s-3);
  padding-top: 0;
}
.section-head.subhead::before { display: none; }
.section-head.subhead h3 { font-size: var(--fs-md); }

.controls {
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: var(--s-3);
}
.controls.card {
  margin-top: var(--s-4);
  padding: var(--s-3);
}
.control-group {
  display: grid;
  gap: var(--s-1);
}
.control-group span {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.control-note {
  border-left: 3px solid var(--c-accent);
  flex: 1 1 260px;
  margin: 0;
  padding-left: var(--s-3);
}
select {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  min-height: 38px;
  padding: var(--s-2) var(--s-3);
}
select:focus {
  outline: 2px solid var(--c-accent-soft);
  outline-offset: 1px;
}
.pill {
  background: rgba(74,122,140,0.12);
  border-radius: 999px;
  color: #2d5260;
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 10px;
}

.mini-link,
.table-link {
  color: var(--c-accent);
  font-weight: 700;
}
.mini-link {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-accent);
  font-size: var(--fs-xs);
  padding: 6px 10px;
}
.mini-link:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

.sparkline {
  min-height: 138px;
  margin: var(--s-3) 0 var(--s-4);
}
.chart-wrap {
  min-height: 340px;
}
.compact-chart {
  min-height: 320px;
  margin-bottom: var(--s-3);
}
.subgroup-chart {
  min-height: 260px;
  margin-bottom: var(--s-3);
}
.subgroup-trend {
  min-height: 320px;
  margin-bottom: var(--s-3);
}
.deep-overview-grid {
  align-items: stretch;
  margin-top: var(--s-4);
}
.deep-trend-card {
  min-height: 420px;
}
.matrix-card .table-wrap {
  max-height: 390px;
}
.signal-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: var(--s-3);
}
.signal-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-height: 170px;
}
.signal-card h3 {
  color: var(--c-accent);
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
}
.signal-card .mini-link {
  align-self: flex-start;
  margin-top: auto;
}
.cutoff-context {
  border-left: 4px solid var(--c-accent);
  margin-top: var(--s-4);
}
.definition-card {
  overflow: hidden;
}
.definition-card .table-wrap {
  max-height: 430px;
}
.methods-outcome-card .table-wrap {
  max-height: none;
}
.definition-card table {
  min-width: 0;
  table-layout: fixed;
}
.definition-card th:first-child,
.definition-card td:first-child {
  width: 34%;
}
.definition-card td:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.definition-note {
  margin-bottom: var(--s-3);
}
.subnational-grid {
  align-items: start;
  margin-top: var(--s-4);
}
.subnational-map-card {
  min-height: 520px;
}
.map-legend {
  align-items: center;
  color: var(--c-muted);
  display: flex;
  font-size: var(--fs-xs);
  gap: var(--s-2);
  margin: var(--s-2) 0 var(--s-3);
  text-transform: uppercase;
}
.legend-ramp {
  background: linear-gradient(90deg, rgba(0,33,71,0.12), rgba(0,33,71,0.9));
  border-radius: 999px;
  height: 10px;
  width: 140px;
}
.province-tile-map {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}
.province-tile-map.district-map {
  max-height: 520px;
  overflow: auto;
}
.map-tile {
  background: rgba(0, 33, 71, var(--tile-alpha));
  border: 1px solid rgba(0, 33, 71, 0.12);
  border-radius: var(--r-sm);
  color: var(--c-accent-dark);
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 7px;
}
.map-tile:hover,
.map-tile.active {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent-soft);
  text-decoration: none;
}
.map-tile strong {
  font-size: 0.72rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.map-tile small {
  color: inherit;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
}
.shap-card {
  margin-top: var(--s-3);
  min-height: 390px;
}
.chart-wrap canvas {
  max-height: 370px;
  width: 100% !important;
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: auto;
}
table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}
th,
td {
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #f2f0eb;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}
td.num {
  font-family: var(--ff-mono);
  text-align: right;
}
tbody tr:hover { background: #fbfaf8; }

.note {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  margin-top: var(--s-3);
}
.method-note-card {
  border-left: 4px solid var(--c-teal);
  margin-top: var(--s-5);
}
.method-note-card p + p { margin-top: var(--s-2); }
.method-list {
  display: grid;
  gap: var(--s-4);
}
.method-list dt {
  color: var(--c-text);
  font-weight: 800;
}
.method-list dd {
  color: var(--c-muted);
  margin: 4px 0 0;
}

@media (max-width: 1080px) {
  .story-strip,
  .nav-cards,
  .age-choice-grid,
  .kpi-strip,
  .signal-grid,
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s-3);
  }
  .nav-brand { min-width: 0; }
  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: 0;
  }
  .container { padding: var(--s-3) var(--s-3) var(--s-6); }
  .hero {
    grid-template-columns: 1fr;
    padding: var(--s-4) 0;
  }
  .land-section {
    margin-top: var(--s-4);
    padding: var(--s-4) 0;
  }
  .subheader-tabs {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .condition-grid { grid-template-columns: 1fr; }
  .landing-component-grid { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 {
    font-size: 1.82rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  h2,
  h3,
  h4,
  .lead,
  .lede {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s-2);
    max-width: 100vw;
    overflow: visible;
  }
  .nav-brand {
    min-width: 0;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
    max-width: 100%;
    overflow-x: visible;
    padding-bottom: 2px;
    width: 100%;
  }
  .container,
  .hero,
  .hero-copy,
  .land-section,
  .condition-card {
    max-width: 100%;
    min-width: 0;
  }
  .brand-mark { height: 38px; width: 38px; }
  .nav-link { padding: 6px 8px; }
  .subheader-tabs,
  .breakdown-tabs {
    grid-template-columns: 1fr;
  }
  .subheader-tab {
    min-height: 0;
  }
  .story-strip,
  .nav-cards,
  .age-choice-grid,
  .kpi-strip,
  .signal-grid,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .card,
  .story-card,
  .nav-card,
  .age-choice-card,
  .condition-card {
    padding: var(--s-4);
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .chart-wrap { min-height: 300px; }
  .landing-component-card {
    overflow-x: auto;
  }
  .landing-component-chart {
    min-height: 360px;
    min-width: 920px;
  }
}
