/* ============================================================
   Dialysis Companion — Gabay sa Dialysis
   Design tokens and base
   ============================================================ */
:root {
  --ink: #17312e;
  --ink-soft: #38534f;
  --muted: #64756f;
  --cream: #f7f2e7;
  --paper: #fffdf8;
  --white: #ffffff;
  --teal: #0d6b61;
  --teal-dark: #084b45;
  --teal-deep: #063c38;
  --teal-soft: #e2f0eb;
  --mint: #eef6f1;
  --coral: #d55f42;
  --coral-soft: #fbe8df;
  --gold: #e3a63a;
  --gold-soft: #fff1cf;
  --red: #b42318;
  --red-soft: #fee5e2;
  --amber: #965b00;
  --amber-soft: #fff0d2;
  --green: #206b46;
  --green-soft: #e6f4ea;
  --line: #ded8c8;
  --line-strong: #c9c1ae;
  --shadow-sm: 0 2px 0 rgba(23, 49, 46, .04), 0 8px 24px rgba(23, 49, 46, .05);
  --shadow-md: 0 4px 0 rgba(23, 49, 46, .03), 0 18px 50px rgba(23, 49, 46, .1);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 72px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-top: 0; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: .45rem; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: #fff;
  border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

/* Bilingual visibility */
.tl, .en { display: block; }
svg text.tl, svg text.en { display: inline; }
.en {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .88em;
  line-height: 1.52;
  font-weight: 400;
}
html[data-lang="tl"] .en { display: none !important; }
html[data-lang="bi"] .same.en { display: none !important; }
html[data-lang="en"] .tl { display: none !important; }
html[data-lang="en"] .en { color: inherit; font-size: inherit; margin-top: 0; }
h1 .en, h2 .en, h3 .en, h4 .en {
  margin-top: .28rem;
  font-family: var(--sans);
  font-size: .38em;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}
html[data-lang="en"] h1 .en,
html[data-lang="en"] h2 .en,
html[data-lang="en"] h3 .en,
html[data-lang="en"] h4 .en {
  font-family: var(--serif);
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}
.btn .tl, .btn .en, .chip .tl, .chip .en,
.pill .tl, .pill .en, .badge .tl, .badge .en { display: inline; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Utility bar, header, navigation
   ============================================================ */
.utility-bar {
  background: var(--ink);
  color: #f4ecdc;
  font-size: .78rem;
  line-height: 1.4;
}
.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.utility-note { display: flex; align-items: center; gap: .5rem; opacity: .9; }
.utility-note .short { display: none; }
.utility-note .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 166, 58, .16);
}
.utility-actions { display: flex; align-items: center; gap: .5rem; }
.util-btn {
  border: 0; background: transparent; color: #f4ecdc; cursor: pointer;
  padding: 7px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
}
.util-btn:hover { background: rgba(255, 255, 255, .1); }
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .15);
}
.lang-switch button {
  border: 0; background: transparent; color: #e9dfcd; cursor: pointer;
  padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  letter-spacing: .02em;
}
.lang-switch button.active { background: var(--paper); color: var(--ink); }
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.brand-mark {
  width: 43px; height: 43px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, #1a887a, var(--teal-dark));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name {
  display: block; font-family: var(--serif); font-size: 1.42rem;
  font-weight: 700; letter-spacing: -.02em; line-height: 1;
}
.brand-sub {
  display: block; margin-top: .25rem; color: var(--muted);
  font-size: .62rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; line-height: 1.2;
}
.main-nav { display: flex; align-items: center; gap: .2rem; }
.main-nav a {
  display: inline-flex; align-items: center; padding: 10px 11px;
  border-radius: 10px; color: var(--ink-soft); text-decoration: none;
  font-size: .82rem; font-weight: 700;
}
.main-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.main-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.header-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--red); color: #fff; text-decoration: none;
  padding: 10px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800;
  white-space: nowrap;
}
.header-cta:hover { background: #8f190f; color: #fff; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink);
  cursor: pointer; place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 16px 20px 22px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  max-width: var(--wrap); margin-inline: auto;
}
.mobile-menu a {
  padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink-soft); font-size: .88rem; font-weight: 700;
}
.mobile-menu a:hover { background: var(--teal-soft); }
.mobile-menu a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.mobile-menu-foot {
  max-width: var(--wrap); margin: 14px auto 0; padding-top: 14px;
  border-top: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.menu-lang { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; }
.menu-lang .lang-switch { background: var(--teal-soft); border-color: var(--line); }
.menu-lang .lang-switch button { color: var(--teal-dark); }
.menu-lang .lang-switch button.active { background: var(--teal); color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden; padding: 58px 0 64px;
  background:
    radial-gradient(circle at 84% 18%, rgba(227, 166, 58, .16), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(13, 107, 97, .09), transparent 30%),
    var(--cream);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(var(--line-strong) .7px, transparent .7px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem; color: var(--teal-dark);
  font-size: .72rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow-line { width: 28px; height: 2px; background: var(--coral); display: inline-block; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 5.4vw, 4.85rem);
  line-height: .99; letter-spacing: -.045em; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--teal); font-style: italic; }
.hero h1 .en { margin-top: .5rem; }
.hero-lede {
  max-width: 59ch; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.15rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; font-weight: 800;
  font-size: .88rem; line-height: 1.2; cursor: pointer; transition: transform .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--teal-dark); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #8f190f; color: #fff; }
.btn-small { min-height: 38px; padding: 8px 13px; font-size: .78rem; }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.hero-note {
  display: flex; gap: .55rem; align-items: flex-start; max-width: 60ch;
  color: var(--muted); font-size: .8rem; line-height: 1.55;
}
.hero-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--teal); }
.hero-art { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-blob {
  position: absolute; width: 94%; aspect-ratio: 1; border-radius: 46% 54% 57% 43% / 44% 42% 58% 56%;
  background: linear-gradient(145deg, var(--teal-soft), #f6dfc7 85%);
  transform: rotate(-5deg); opacity: .8;
}
.hero-illustration {
  position: relative; z-index: 1; width: 88%; filter: drop-shadow(0 24px 34px rgba(8, 75, 69, .13));
}
.hero-card {
  position: absolute; z-index: 3; right: -4%; bottom: 3%;
  width: min(330px, 88%); background: rgba(255, 253, 248, .97);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-md); transform: rotate(1.6deg);
}
.hero-card-head {
  display: flex; align-items: center; gap: .5rem; color: var(--teal-dark);
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(32, 107, 70, .4); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(32, 107, 70, .35); }
  70% { box-shadow: 0 0 0 8px rgba(32, 107, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(32, 107, 70, 0); }
}
.mini-row {
  display: flex; align-items: center; gap: .65rem; padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.mini-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.mini-icon {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark); flex: 0 0 auto;
}
.mini-icon svg { width: 15px; height: 15px; }
.mini-row strong { display: block; font-size: .78rem; line-height: 1.3; }
.mini-row small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.mini-check { margin-left: auto; color: var(--green); font-weight: 900; font-size: .9rem; }
.hero-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; box-shadow: var(--shadow-sm);
  font-size: .68rem; font-weight: 800; color: var(--ink-soft);
}
.hero-float.top { top: 2%; left: -2%; transform: rotate(-2deg); }
.hero-float.left { bottom: 28%; left: -5%; transform: rotate(1.5deg); }
.hero-float svg { width: 15px; height: 15px; color: var(--coral); }

/* ============================================================
   Emergency strip and section nav
   ============================================================ */
.emergency-strip {
  background: var(--red); color: #fff; font-size: .82rem; line-height: 1.55;
}
.emergency-inner {
  display: flex; align-items: center; gap: 1rem; padding: 11px 0;
  flex-wrap: wrap; justify-content: center; text-align: center;
}
.emergency-inner strong { letter-spacing: .04em; }
.emergency-strip a { color: #fff; font-weight: 800; text-underline-offset: 3px; }
.emergency-strip .siren {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(255, 255, 255, .15); flex: 0 0 auto;
}
.emergency-strip .siren svg { width: 14px; height: 14px; }
.section-nav {
  position: sticky; top: var(--header-h); z-index: 70;
  background: rgba(255, 253, 248, .96); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.section-nav-inner {
  display: flex; align-items: center; gap: .25rem; overflow-x: auto;
  scrollbar-width: none; padding: 7px 0;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: 0 0 auto; padding: 7px 10px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: .72rem;
  font-weight: 800; white-space: nowrap; border: 1px solid transparent;
}
.section-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.section-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================
   Sections and cards
   ============================================================ */
.section { padding: 70px 0; border-top: 1px solid var(--line); scroll-margin-top: 180px; }
.section.tint { background: var(--mint); }
.section.dark {
  background: var(--teal-deep); color: #f4ecdc; border-top-color: rgba(255, 255, 255, .12);
}
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark p, .section.dark li { color: #e9e1cf; }
.section.dark .en { color: #c9c3b4; }
.section.dark a { color: #ffd98a; }
.section.dark .card, .section.dark .callout { color: var(--ink); }
.section.dark .card p, .section.dark .card li { color: var(--ink-soft); }
.section.dark .card .en { color: var(--muted); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr);
  margin-bottom: 30px; align-items: start;
}
.kicker {
  color: var(--coral); font-size: .68rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: .55rem;
}
.section.dark .kicker { color: #ffd98a; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.04; letter-spacing: -.035em; margin-bottom: .5rem;
}
.section-lede { max-width: 76ch; color: var(--ink-soft); font-size: 1rem; margin-bottom: 0; }
.section.dark .section-lede { color: #e9e1cf; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 23px; box-shadow: var(--shadow-sm);
}
.card.flat { box-shadow: none; }
.card h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: .45rem; letter-spacing: -.012em; }
.card h4 { font-size: .95rem; line-height: 1.35; margin-bottom: .35rem; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card p, .card li { font-size: .9rem; color: var(--ink-soft); }
.icon-card { position: relative; padding-top: 22px; }
.icon-badge {
  width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 13px; background: var(--teal-soft); color: var(--teal-dark);
}
.icon-badge.coral { background: var(--coral-soft); color: #9a3e28; }
.icon-badge.gold { background: var(--gold-soft); color: #805000; }
.icon-badge.red { background: var(--red-soft); color: var(--red); }
.icon-badge.green { background: var(--green-soft); color: var(--green); }
.icon-badge svg { width: 22px; height: 22px; }
.card-number {
  font-family: var(--serif); font-size: .95rem; color: var(--coral);
  font-weight: 700; margin-bottom: .35rem; letter-spacing: .04em;
}
.card-meta {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem;
  color: var(--teal-dark); font-size: .72rem; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
}
.guide-link-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: minmax(64px, auto) auto; column-gap: 10px;
  align-content: start;
  color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 210px; padding: 16px;
  border-color: rgba(23, 49, 46, .09);
  background: var(--paper);
}
.guide-link-card:hover, .guide-link-card:focus-visible {
  color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.guide-link-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--guide-accent, var(--teal));
}
.guide-link-card:nth-child(1) { --guide-accent: var(--teal); --guide-soft: var(--teal-soft); }
.guide-link-card:nth-child(2) { --guide-accent: #b34d36; --guide-soft: var(--coral-soft); }
.guide-link-card:nth-child(4) { --guide-accent: var(--red); --guide-soft: var(--red-soft); }
.guide-link-card:nth-child(5) { --guide-accent: var(--green); --guide-soft: var(--green-soft); }
.guide-link-card:nth-child(6) { --guide-accent: #95620d; --guide-soft: var(--gold-soft); }
.guide-link-card.guide-health-card { --guide-accent: var(--teal); --guide-soft: var(--teal-soft); }
.guide-link-card .icon-badge {
  grid-column: 1; grid-row: 1; align-self: start;
  width: 38px; height: 38px; margin: 0; border-radius: 12px;
  color: var(--guide-accent); background: var(--guide-soft);
}
.guide-link-card h3 {
  grid-column: 2; grid-row: 1; align-self: start;
  margin: 0; font-family: var(--serif); font-size: 1.125rem;
}
.guide-link-card > p { grid-column: 1 / -1; grid-row: 2; margin: .45rem 0 0; font-size: 1rem; line-height: 1.5; }
.guide-link-grid {
  width: 100%; max-width: 1060px; margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  align-items: stretch;
  gap: 16px;
}
.section-head .kicker {
  width: fit-content; padding: 5px 10px; border-radius: 999px;
  background: var(--coral-soft);
}

.hero .home-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.home-hero-art {
  position: relative; min-height: 430px; display: grid; place-items: center;
  isolation: isolate;
}
.home-hero-orbit {
  position: absolute; z-index: -1; width: min(94%, 410px); aspect-ratio: 1;
  border: 1px solid rgba(13, 107, 97, .17); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fffdf8 0 19%, #e2f0eb 54%, #f6dfc7 100%);
  transform: rotate(-9deg);
}
.home-hero-orbit::before, .home-hero-orbit::after {
  content: ""; position: absolute; inset: 8%; border: 1px dashed rgba(13, 107, 97, .22);
  border-radius: 50%;
}
.home-hero-orbit::after { inset: 18%; border-style: solid; opacity: .55; }
.home-hero-card {
  position: relative; width: min(390px, 88%); padding: 28px;
  border: 1px solid rgba(222, 216, 200, .9); border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, .95); box-shadow: var(--shadow-md);
  transform: rotate(1.5deg);
}
.home-hero-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.home-hero-icon, .topic-hero-icon {
  width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 20px; background: var(--teal-soft); color: var(--teal-dark);
}
.home-hero-icon svg, .topic-hero-icon svg { width: 31px; height: 31px; }
.home-hero-kicker, .topic-hero-kicker {
  color: var(--teal-dark); font-size: .68rem; font-weight: 900;
  letter-spacing: .12em; line-height: 1.45; text-transform: uppercase;
}
.home-hero-quote {
  margin-bottom: 23px; font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -.035em;
}
.home-hero-tags, .topic-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.home-hero-tags { padding-top: 17px; border-top: 1px solid var(--line); }
.home-hero-tags > span, .topic-hero-tags > span {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-size: .68rem; font-weight: 800;
}
.home-hero-float {
  position: absolute; right: 0; bottom: 12%; display: inline-flex; align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm); color: var(--teal-dark); font-size: .72rem;
  font-weight: 900; letter-spacing: .04em; transform: rotate(3deg);
}

.subpage-hero { background: linear-gradient(125deg, #fffdf8 5%, #eef6f1 62%, #f8efe2 100%); }
.hero .topic-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.topic-hero-copy { max-width: 70ch; }
.topic-hero-card {
  --topic-accent: var(--teal-dark);
  --topic-soft: var(--teal-soft);
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 285px; overflow: hidden; padding: 26px;
  border: 1px solid rgba(222, 216, 200, .9); border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 253, 248, .98), var(--topic-soft));
  box-shadow: var(--shadow-md);
}
.topic-hero-card::after {
  content: ""; position: absolute; z-index: 0; width: 190px; height: 190px;
  top: -105px; right: -70px; border: 1px solid currentColor; border-radius: 50%;
  color: var(--topic-accent); opacity: .14;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .16), 0 0 0 40px rgba(255, 255, 255, .12);
}
.topic-hero-card > * { position: relative; z-index: 1; }
.topic-hero-card .topic-hero-icon {
  width: 54px; height: 54px; margin-bottom: 18px;
  color: var(--topic-accent); background: rgba(255, 255, 255, .8);
}
.topic-hero-card .topic-hero-kicker { color: var(--topic-accent); margin-bottom: 8px; }
.topic-hero-title {
  margin-bottom: 9px; font-family: var(--serif); font-size: 1.55rem;
  font-weight: 700; line-height: 1.12; letter-spacing: -.025em;
}
.topic-hero-desc { max-width: 38ch; margin-bottom: 20px; color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }
.topic-hero-tags { margin-top: auto; }
.topic-hero-card--daily { --topic-accent: #a64b34; --topic-soft: var(--coral-soft); }
.topic-hero-card--emergency { --topic-accent: var(--red); --topic-soft: var(--red-soft); }
.topic-hero-card--benefits { --topic-accent: #875a0c; --topic-soft: var(--gold-soft); }
.topic-hero-card--support { --topic-accent: var(--green); --topic-soft: var(--green-soft); }
.topic-hero-card--emergency .topic-hero-call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 13px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: .78rem; font-weight: 900; text-decoration: none;
}
.topic-hero-call svg { width: 16px; height: 16px; }
.callout {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 4px solid var(--teal); background: var(--teal-soft);
  padding: 17px 19px; margin: 18px 0;
}
.callout.danger { border-color: var(--red); background: var(--red-soft); }
.callout.warning { border-color: var(--gold); background: var(--gold-soft); }
.callout.success { border-color: var(--green); background: var(--green-soft); }
.callout.info { border-color: var(--teal); background: var(--teal-soft); }
.callout h3, .callout h4 { margin-bottom: .35rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .btn { margin-top: .6rem; }
.callout-label {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .65rem;
  font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem;
}
.callout.danger .callout-label { color: var(--red); }
.callout.warning .callout-label { color: var(--amber); }
.callout.success .callout-label { color: var(--green); }
.callout.info .callout-label { color: var(--teal-dark); }

/* ============================================================
   Tables, timeline, steps
   ============================================================ */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: 18px;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .87rem; }
th, td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th {
  background: var(--teal-dark); color: #fff; font-size: .66rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
td { color: var(--ink-soft); }
td strong { color: var(--ink); }
td .en { font-size: .82em; margin-top: .18rem; }
tbody tr:nth-child(even) td { background: rgba(226, 240, 235, .22); }
.table-note { margin-top: 9px; color: var(--muted); font-size: .76rem; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 17px;
  padding-bottom: 22px; position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 23px; top: 47px; bottom: 0;
  width: 1px; background: var(--line-strong);
}
.timeline-item:last-child::before { display: none; }
.timeline-mark {
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-strong);
  color: var(--teal-dark); font-family: var(--serif); font-weight: 700; font-size: .95rem;
  position: relative; z-index: 1;
}
.timeline-item:nth-child(1) .timeline-mark { background: var(--gold-soft); border-color: #e8c987; }
.timeline-item:nth-child(2) .timeline-mark,
.timeline-item:nth-child(5) .timeline-mark { background: var(--teal-soft); border-color: #a9cfc5; }
.timeline-item:nth-child(4) .timeline-mark { background: var(--coral-soft); border-color: #e7b6a7; }
.timeline-body { padding-top: 3px; }
.timeline-body h3 { font-size: 1rem; margin-bottom: .25rem; }
.timeline-body p, .timeline-body li { font-size: .87rem; color: var(--ink-soft); }
.timeline-body ul { margin-bottom: 0; }
.step-grid { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 253, 248, .75);
}
.step::before {
  content: counter(step, decimal-leading-zero); font-family: var(--serif);
  color: var(--coral); font-weight: 700; font-size: .95rem; line-height: 1.5;
}
.step strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.step p { margin: 0; font-size: .81rem; color: var(--ink-soft); }
.step .en { font-size: .78em; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tab {
  min-height: 42px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--ink-soft); font-weight: 800; font-size: .79rem; cursor: pointer;
}
.tab:hover { background: var(--teal-soft); }
.tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.tab-panel { animation: panelIn .22s ease both; }
@keyframes panelIn { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Checklists
   ============================================================ */
.checklist { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.check-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  background: rgba(255, 253, 248, .82); border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer; transition: background .15s, border-color .15s;
}
.check-item:hover { border-color: var(--teal); }
.check-item input {
  width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal);
  flex: 0 0 auto; cursor: pointer;
}
.check-item span { font-size: .84rem; line-height: 1.45; }
.check-item .en { font-size: .8em; }
.check-item.done { background: var(--green-soft); border-color: #b7d8c1; }
.check-item.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(32, 107, 70, .35); }
.check-item.done .en { text-decoration: none; }
.progress-line { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; }
.progress-track {
  flex: 1; height: 8px; border-radius: 999px; background: #e7e1d3; overflow: hidden;
  border: 1px solid rgba(23, 49, 46, .08);
}
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #2b9c89); transition: width .25s ease; }
.progress-text { min-width: 64px; text-align: right; color: var(--teal-dark); font-size: .74rem; font-weight: 800; }
.checklist-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 10px; }

/* ============================================================
   Form fields and tools
   ============================================================ */
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .78rem; font-weight: 800; color: var(--ink-soft); }
.field .hint { font-size: .72rem; color: var(--muted); line-height: 1.45; margin: 0; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink); border-radius: 10px; padding: 10px 11px; font-size: .9rem;
  min-height: 44px;
}
input:hover, select:hover, textarea:hover { border-color: #a9a18f; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid rgba(13, 107, 97, .17); outline-offset: 1px; }
textarea { min-height: 82px; resize: vertical; }
.tool {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.tool-head { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 14px; }
.tool-head .icon-badge { width: 37px; height: 37px; border-radius: 11px; margin: 0; flex: 0 0 auto; }
.tool-head .icon-badge svg { width: 18px; height: 18px; }
.tool-head h3 { margin: 0 0 2px; font-size: 1rem; }
.tool-head p { margin: 0; font-size: .78rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-add { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.quick-add button {
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--teal-dark);
  border-radius: 999px; padding: 6px 10px; cursor: pointer; font-size: .72rem; font-weight: 800;
}
.quick-add button:hover { background: var(--teal-soft); }
.fluid-readout {
  display: flex; align-items: baseline; gap: .4rem; margin: 12px 0 4px;
  color: var(--teal-dark); font-weight: 800;
}
.fluid-readout .big { font-family: var(--serif); font-size: 2.3rem; line-height: 1; letter-spacing: -.04em; }
.fluid-readout .unit { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fluid-sub { margin: 0 0 10px; color: var(--muted); font-size: .76rem; }
.meter { height: 11px; border-radius: 999px; background: #e9e3d5; overflow: hidden; border: 1px solid rgba(23, 49, 46, .08); }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #49a890); border-radius: inherit; transition: width .25s, background .25s; }
.meter.over span { background: linear-gradient(90deg, #d55f42, var(--red)); }
.meter-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; margin-top: 5px; }
.result-box {
  margin-top: 12px; border-radius: 12px; padding: 12px 14px;
  background: var(--teal-soft); color: var(--teal-dark); font-size: .84rem; font-weight: 700;
}
.result-box.warning { background: var(--amber-soft); color: var(--amber); }
.result-box.danger { background: var(--red-soft); color: var(--red); }
.result-box strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.result-box p { margin: 0; font-weight: 500; color: inherit; }

/* ============================================================
   Food finder, symptoms, stats
   ============================================================ */
.food-legend { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: 3px 7px;
  border-radius: 999px; font-size: .6rem; font-weight: 900; letter-spacing: .05em;
  line-height: 1.5; text-transform: uppercase; white-space: nowrap;
}
.badge.k { background: #fde8d7; color: #9a3412; }
.badge.p { background: #eee6fb; color: #5b21b6; }
.badge.na { background: #fee2e2; color: #991b1b; }
.badge.protein { background: #dcfce7; color: #166534; }
.badge.fluid { background: #dbeafe; color: #1e40af; }
.food-count { margin: 0 0 12px; color: var(--muted); font-size: .75rem; }
.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.food-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: 0 1px 0 rgba(23, 49, 46, .03);
}
.food-card h3 { font-size: .92rem; line-height: 1.3; margin: 0 0 .35rem; }
.food-card h3 .en { font-size: .72em; }
.food-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.food-card p { margin: 0; font-size: .77rem; line-height: 1.5; color: var(--ink-soft); }
.food-card .swap {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: .74rem; color: var(--teal-dark);
}
.food-card .swap strong { color: var(--teal-dark); }
.food-empty {
  grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 26px; text-align: center; color: var(--muted); font-size: .85rem;
}
.food-checker { margin: 1rem 0 1.2rem; padding: 1rem; border: 1px solid #c9ded4; border-radius: 15px; background: #f2f8f4; }
.food-checker h3 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.15rem; }
.food-checker-intro, .food-checker-disclaimer { color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.food-checker-intro { margin: 0 0 .75rem; }
.food-checker-form { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.food-checker-form label { flex: 1 1 100%; font-size: .84rem; font-weight: 800; }
.food-checker-form input { flex: 1 1 240px; min-width: 0; min-height: 38px; padding: .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.food-checker-form input:focus { outline: 3px solid rgba(13,107,97,.18); border-color: var(--teal); }
.food-checker-button { min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-size: .88rem; font-weight: 800; cursor: pointer; }
.food-checker-button:hover { background: var(--teal-dark); }
.food-checker-result { width: 100%; margin-top: .65rem; padding: .65rem .85rem; border: 2px solid #8aaca1; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(23, 49, 46, .08); }
.food-checker-result h4 { margin: 0 0 .45rem; font-size: 1rem; }
.food-checker-flags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.food-checker-flag { padding: .42rem .75rem; border: 2px solid #713f12; border-radius: 999px; background: #ffbf00; color: #382000; font-size: .9rem; font-weight: 900; }
.food-checker-disclaimer { margin: .75rem 0 0; font-size: .75rem; }
.symptom-grid { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 14px; }
.symptom-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: 9px 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--ink-soft); font-size: .76rem; font-weight: 800; cursor: pointer;
}
.symptom-btn:hover { background: var(--teal-soft); border-color: var(--teal); }
.symptom-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.symptom-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.symptom-dot.red { background: var(--red); }
.symptom-dot.green { background: var(--green); }
.triage-result {
  border-radius: 14px; border: 1px solid var(--line); background: var(--teal-soft);
  padding: 16px; min-height: 116px;
}
.triage-result.red { background: var(--red-soft); border-color: #f0b6af; }
.triage-result.amber { background: var(--amber-soft); border-color: #ecd29d; }
.triage-result.green { background: var(--green-soft); border-color: #b8d9c2; }
.triage-result h3 { font-size: 1rem; margin-bottom: .25rem; }
.triage-result p { font-size: .84rem; color: var(--ink-soft); }
.triage-result .actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.triage-level {
  display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .45rem;
  font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
.triage-result.red .triage-level { color: var(--red); }
.triage-result.amber .triage-level { color: var(--amber); }
.triage-result.green .triage-level { color: var(--green); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat {
  background: rgba(255, 253, 248, .8); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.stat .big { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1; color: var(--teal-dark); letter-spacing: -.04em; }
.stat .label { display: block; margin-top: .35rem; font-size: .68rem; color: var(--muted); font-weight: 700; line-height: 1.35; }
.section.dark .stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.section.dark .stat .big { color: #ffd98a; }
.section.dark .stat .label { color: #ded7c7; }

/* ============================================================
   Accordions, glossary, care card
   ============================================================ */
details.accordion {
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  margin-bottom: 7px; overflow: hidden;
}
details.accordion summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 13px 15px;
  color: var(--ink); font-weight: 800; font-size: .88rem; line-height: 1.4;
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.2rem; color: var(--teal);
  flex: 0 0 auto; line-height: 1;
}
details.accordion[open] summary::after { content: "−"; }
details.accordion[open] summary { background: var(--teal-soft); }
.accordion-body { padding: 14px 15px 15px; border-top: 1px solid var(--line); }
.accordion-body p, .accordion-body li { font-size: .85rem; color: var(--ink-soft); }
.accordion-body > :last-child { margin-bottom: 0; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.glossary-item { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.glossary-item dt { font-weight: 800; font-size: .87rem; }
.glossary-item dd { margin: .15rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.care-card-preview {
  background: linear-gradient(150deg, #fffdf8, #f3f8f2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: relative; overflow: hidden;
}
.care-card-preview::before {
  content: ""; position: absolute; right: -48px; top: -48px; width: 160px; height: 160px;
  border-radius: 50%; background: var(--teal-soft); opacity: .75;
}
.care-card-head { position: relative; display: flex; justify-content: space-between; gap: 1rem; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.care-card-head h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.care-card-head p { margin: 0; color: var(--muted); font-size: .72rem; }
.care-card-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.care-card-grid div { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.care-card-grid dt { font-size: .62rem; color: var(--muted); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.care-card-grid dd { margin: 1px 0 0; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }

/* ============================================================
   Quiz, footer, floating UI
   ============================================================ */
.quiz-question {
  border: 1px solid var(--line); background: var(--paper); border-radius: 14px;
  padding: 16px; margin: 0 0 9px;
}
.quiz-question legend { font-weight: 800; font-size: .9rem; padding: 0; line-height: 1.4; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.quiz-options label {
  display: flex; align-items: center; gap: .45rem; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 9px; font-size: .8rem; cursor: pointer;
}
.quiz-options label:hover { background: var(--teal-soft); }
.quiz-options input { width: 16px; height: 16px; min-height: 0; accent-color: var(--teal); }
.quiz-feedback {
  display: none; margin-top: 9px; padding: 9px 11px; border-radius: 9px;
  font-size: .79rem; background: var(--teal-soft); color: var(--teal-dark);
}
.quiz-question.correct { border-color: #8dc7a5; background: var(--green-soft); }
.quiz-question.incorrect { border-color: #e8a79f; background: var(--red-soft); }
.quiz-question.correct .quiz-feedback,
.quiz-question.incorrect .quiz-feedback { display: block; }
.quiz-result { margin-top: 10px; font-weight: 800; color: var(--teal-dark); font-size: .9rem; }
.quiz-result p { margin: .2rem 0 0; font-weight: 500; font-size: .84rem; color: var(--ink-soft); }

.site-footer {
  background: var(--ink); color: #e9e1cf; padding: 38px 0 24px; font-size: .82rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-family: var(--serif); font-size: 1.15rem; margin-bottom: .4rem; }
.site-footer p, .site-footer li { color: #c9c3b4; font-size: .78rem; line-height: 1.6; }
.site-footer a { color: #ffd98a; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 24px; padding-top: 15px;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: #a9a394; font-size: .7rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer-links a { color: #ffd98a; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px;
  font-size: .8rem; font-weight: 700; z-index: 300; opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.back-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  color: var(--teal-dark); display: grid; place-items: center; z-index: 80;
  box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top svg { width: 18px; height: 18px; }
.print-area { display: none; }
.hidden { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .home-hero-grid, .hero .topic-hero-grid { grid-template-columns: 1fr; }
  .home-hero-art { min-height: 340px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero { padding: 40px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .home-hero-grid, .hero .topic-hero-grid { grid-template-columns: 1fr; }
  .home-hero-art { min-height: 340px; }
  .topic-hero-card { min-height: 250px; }
  .hero-art { min-height: 390px; width: min(100%, 500px); margin-inline: auto; }
  .hero-card { bottom: 0; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .utility-note .long { display: none; }
  .utility-note .short { display: inline; }
  .utility-inner { min-height: 36px; }
  .header-inner { gap: .75rem; }
  .brand-sub { font-size: .55rem; }
  .header-cta { display: none; }
  .section { padding: 48px 0; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-head h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .grid-2, .grid-3, .grid-4, .step-grid, .glossary-grid, .form-grid { grid-template-columns: 1fr; }
  .guide-link-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .food-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.7rem); }
  .home-hero-art { min-height: 310px; margin-top: -1rem; }
  .home-hero-card { width: calc(100% - 18px); padding: 22px; }
  .home-hero-float { right: 0; bottom: 3%; }
  .hero .topic-hero-grid { gap: 1.5rem; }
  .topic-hero-card { min-height: 0; padding: 22px; }
  .topic-hero-title { font-size: 1.4rem; }
  .hero-card { width: 88%; right: 0; }
  .hero-float.left { left: 0; }
  .hero-float.top { left: 0; }
  .emergency-inner { font-size: .77rem; }
  .section.dark .grid-2 { grid-template-columns: 1fr; }
  .care-card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .main-nav { display: none; }
  .mobile-menu-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .back-top { right: 12px; bottom: 12px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero-float { font-size: .6rem; padding: 6px 9px; }
  .hero-art { min-height: 350px; }
  .hero-card { padding: 14px; }
  .hero-card-head { font-size: .58rem; }
  .btn { font-size: .82rem; }
  .lang-switch button { padding: 4px 7px; }
}

/* ============================================================
   Concise layout additions
   ============================================================ */
.census-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 18px; max-width: 560px; margin: 0 0 1.1rem; padding: 10px 14px;
  background: rgba(255, 253, 248, .82); border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .18s, transform .18s;
}
.census-strip:hover { border-color: var(--teal); transform: translateY(-1px); color: var(--ink); }
.census-label {
  display: block; font-size: .6rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.census-title {
  display: inline-block; padding: 4px 8px; border: 1px solid #d4a72c;
  border-radius: 6px; background: #fff1a8; color: #263238;
  font-size: .78rem; line-height: 1.25; letter-spacing: .025em;
}
.census-subtitle {
  display: block; margin-top: 4px; font-size: .62rem; line-height: 1.35;
  font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--muted);
}
.census-counts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.census-counts span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.census-counts strong {
  font-family: var(--serif); font-size: 1.2rem; line-height: 1;
  color: var(--ink); margin-right: 2px;
}
.census-open {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--teal-dark); font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.census-open svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .census-strip { align-items: flex-start; }
  .census-open { width: 100%; }
}
.hero { padding: 46px 0 52px; }
.hero-grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 4vw, 3.6rem); }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.3rem); margin-bottom: 1rem; }
.hero-lede { font-size: clamp(.98rem, 1.1vw, 1.08rem); margin-bottom: 1.25rem; }
.hero-note { font-size: .78rem; }
.hero-compass { position: relative; display: grid; place-items: center; min-height: 360px; }
.compass-ring {
  position: absolute; width: 94%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fffdf8, #e2f0eb 62%, #f6dfc7);
  opacity: .82;
}
.compass-ring::after {
  content: ""; position: absolute; inset: 7%; border: 1px dashed var(--line-strong); border-radius: 50%;
}
.compass-card {
  position: relative; z-index: 1; width: min(360px, 100%);
  background: rgba(255, 253, 248, .97); border: 1px solid var(--line);
  border-radius: 22px; padding: 17px; box-shadow: var(--shadow-md);
}
.compass-head {
  display: flex; align-items: center; gap: .5rem; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); margin-bottom: 10px; color: var(--teal-dark);
  font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.compass-head .en { margin-top: 0; font-size: .92em; }
.compass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.compass-tile { padding: 10px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.compass-tile .mini-icon { width: 28px; height: 28px; margin-bottom: 7px; }
.compass-tile strong { display: block; font-size: .8rem; line-height: 1.25; }
.compass-tile small { display: block; margin-top: 1px; font-size: .65rem; color: var(--muted); line-height: 1.35; }
.compass-tile small .en { margin-top: 0; font-size: .95em; }
.compass-foot {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: .66rem; color: var(--muted); text-align: center; font-weight: 700;
}
.compass-foot .en { margin-top: 0; font-size: .92em; }
.section { padding: 54px 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
.section-lede { font-size: .96rem; }
.modality-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.modality {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow-sm);
}
.modality .icon-badge { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 9px; }
.modality h3 { font-size: .95rem; margin-bottom: .25rem; }
.modality p { font-size: .8rem; color: var(--ink-soft); margin: 0; }
.lfl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.lfl-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px; text-align: center; box-shadow: var(--shadow-sm);
}
.lfl-item .icon-badge { width: 38px; height: 38px; border-radius: 12px; margin: 0 auto 8px; }
.lfl-item strong { display: block; font-size: .88rem; }
.lfl-item p { margin: .15rem 0 0; font-size: .75rem; color: var(--muted); line-height: 1.45; }
.plate-figure {
  display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.plate-svg { width: 100%; max-width: 320px; justify-self: center; }
.plate-title { font-size: 1.2rem; margin-bottom: .45rem; }
.plate-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.plate-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; align-items: start; }
.plate-legend li strong { display: block; font-size: .92rem; color: var(--ink); }
.plate-legend li .tl, .plate-legend li .en { font-size: .84rem; line-height: 1.45; }
.plate-legend li .en { margin-top: .05rem; }
.plate-legend .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .4rem; }
.dot.veg { background: #8fcf9f; }
.dot.rice { background: var(--gold); }
.dot.protein { background: var(--coral); }
.dot.fruit { background: var(--teal); }
.nutrient-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.nutrient {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; box-shadow: var(--shadow-sm);
}
.nutrient strong { display: block; font-size: .82rem; }
.nutrient p { margin: .3rem 0 0; font-size: .76rem; line-height: 1.45; color: var(--ink-soft); }
.nutrient-dot { display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 6px; }
.nutrient-dot.sodium { background: var(--red); }
.nutrient-dot.potassium { background: var(--gold); }
.nutrient-dot.phosphorus { background: #7c5cbf; }
.nutrient-dot.protein { background: var(--green); }
.traffic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.traffic-card { border-radius: 16px; padding: 20px; border: 1px solid; }
.traffic-card.red { background: var(--red-soft); border-color: #f0b6af; grid-column: 1 / -1; }
.traffic-card.amber { background: var(--amber-soft); border-color: #ecd29d; }
.traffic-card.green { background: var(--green-soft); border-color: #b8d9c2; }
.traffic-card.red ul { columns: 2; column-gap: 36px; }
.traffic-card h3 { display: flex; align-items: flex-start; gap: .45rem; font-size: 1rem; line-height: 1.3; margin-bottom: .6rem; }
.traffic-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; margin-top: .32rem; background: var(--amber); }
.traffic-card.red .traffic-dot { background: var(--red); }
.traffic-card.green .traffic-dot { background: var(--green); }
.traffic-card ul { margin: 0; padding-left: 1rem; }
.traffic-card li { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: .4rem; break-inside: avoid; }
.traffic-card li:last-child { margin-bottom: 0; }
.traffic-card .table-note { margin-top: 8px; }
.emergency-checker { max-width: 760px; margin: 1.5rem auto 0; padding: clamp(1.1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.emergency-checker h3 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.25rem; }
.emergency-checker-intro, .emergency-checker-hint, .emergency-checker-disclaimer { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; font-weight: 400; }
.emergency-checker-intro { margin: 0 0 .9rem; }
.emergency-checker-form label { display: block; margin-bottom: .35rem; font-size: .84rem; font-weight: 700; }
.emergency-checker-form textarea { display: block; width: 100%; min-height: 100px; padding: .75rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; resize: vertical; }
.emergency-checker-form textarea:focus { outline: 3px solid rgba(13,107,97,.18); border-color: var(--teal); }
.emergency-checker-hint { margin: .35rem 0 .65rem; }
.emergency-checker-button { min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-size: .88rem; font-weight: 800; cursor: pointer; }
.emergency-checker-button:hover { background: var(--teal-dark); }
.emergency-checker-result { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid; border-radius: 12px; }
.emergency-checker-result h4 { margin: 0 0 .4rem; font-size: 1rem; }
.emergency-checker-result p { margin: 0; font-size: .88rem; line-height: 1.55; }
.emergency-checker-result a { display: inline-block; margin-top: .75rem; padding: .5rem .85rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 900; text-decoration: none; }
.emergency-checker-result[data-level="red"] { border-color: #f0b6af; background: var(--red-soft); color: #75251f; }
.emergency-checker-result[data-level="yellow"] { border-color: #ecd29d; background: var(--amber-soft); color: #68460b; }
.emergency-checker-result[data-level="green"] { border-color: #b8d9c2; background: var(--green-soft); color: #245c35; }
.emergency-checker-disclaimer { margin: .9rem 0 0; }
.emergency-info { margin-top: 16px; }
.mini-id-card {
  display: flex; flex-direction: column; height: 100%; padding: 16px 18px; border-radius: 16px;
  background: var(--teal-deep); color: #f4ecdc; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-md);
  transition: transform .18s, border-color .18s;
}
.mini-id-card:hover { transform: translateY(-1px); color: #fff; border-color: rgba(255, 255, 255, .35); }
.mini-id-head { display: flex; align-items: center; gap: 9px; }
.mini-id-badge {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #ffd98a;
}
.mini-id-badge svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-id-head strong { display: block; font-family: var(--serif); font-size: 1.02rem; line-height: 1.1; }
.mini-id-head small {
  display: block; margin-top: 1px; font-size: .55rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: #c9c3b4;
}
.mini-id-open { margin-left: auto; color: #ffd98a; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.mini-id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 13px 0 0; }
.mini-id-grid div { min-width: 0; }
.mini-id-grid dt {
  margin: 0; font-size: .53rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #c9c3b4;
}
.mini-id-grid dd {
  margin: 1px 0 0; font-size: .78rem; font-weight: 700; line-height: 1.35;
  color: #fff; overflow-wrap: anywhere;
}
.mini-id-note {
  margin: 12px 0 0; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .66rem; line-height: 1.5; color: #c9c3b4;
}
.mini-id-card .mini-id-note { margin-top: auto; }
.mini-id-card .en { color: #c9c3b4; }
@media (max-width: 420px) { .mini-id-grid { grid-template-columns: 1fr; } }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: 6px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  color: var(--ink-soft); font-size: .74rem; font-weight: 700; line-height: 1.35;
}
.chip svg { width: 12px; height: 12px; color: var(--teal); flex: 0 0 auto; }
.chip .tl + .en { margin-left: .35rem; }
.compact-card { padding: 18px; }
.compact-card .icon-badge { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 9px; }
.compact-card h3 { font-size: .95rem; }
.compact-card p { font-size: .8rem; }
.checklist.two-col { grid-template-columns: 1fr 1fr; }
.compact-list { margin: 0; padding-left: 1.1rem; }
.compact-list li { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: .35rem; }
.compact-list li:last-child { margin-bottom: 0; }
.subhead { font-family: var(--serif); font-size: 1.35rem; margin: 26px 0 .3rem; letter-spacing: -.02em; }
.footer-sub { margin: -.2rem 0 .6rem; color: #ffd98a; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chip svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.food-grid {
  max-height: 600px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.food-grid::-webkit-scrollbar { width: 6px; }
.food-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.food-grid::-webkit-scrollbar-track { background: transparent; }
.food-scroll-note { margin: -.35rem 0 .7rem; color: var(--muted); font-size: .72rem; }
@media (max-width: 1080px) {
  .modality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-compass { min-height: 0; margin-top: 6px; }
  .nutrient-grid, .stat-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .section { padding: 38px 0; }
  .hero { padding: 34px 0 40px; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .nutrient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #meds .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist.two-col { grid-template-columns: 1fr; }
  .plate-figure { grid-template-columns: 1fr; padding: 18px; }
  .plate-svg { max-width: 260px; }
  .compass-card { width: 100%; }
  .traffic-grid { grid-template-columns: 1fr; }
  .traffic-card.red ul { columns: 1; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .care-card-grid { grid-template-columns: 1fr 1fr; }
  .food-grid { max-height: 480px; }
}
@media (max-width: 520px) {
  .nutrient-grid, .lfl, .modality-grid, .stat-grid.three, #meds .grid-4,
  .traffic-grid, .form-grid, .care-card-grid { grid-template-columns: 1fr; }
  .traffic-card.red { grid-column: auto; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: .5rem; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .utility-bar, .site-header, .section-nav, .emergency-strip, .hero-art, .home-hero-art, .hero-compass,
  .hero-actions, .hero-note, .back-top, .toast, .no-print, .mobile-menu,
  .section-nav, .checklist-actions, .quick-add, .symptom-grid,
  .tool button, .header-cta { display: none !important; }
  .hero { padding: 0 0 18px; background: #fff; }
  .hero::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .home-hero-grid, .hero .topic-hero-grid { grid-template-columns: 1fr; }
  .section { padding: 18px 0; border-top: 1px solid #ccc; break-inside: avoid; }
  .section.tint, .section.dark { background: #fff; color: #000; }
  .section.dark h2, .section.dark h3, .section.dark p, .section.dark li { color: #000; }
  .card, .callout, .tool, .food-card, .care-card-preview { box-shadow: none; break-inside: avoid; }
  .card, .callout, .food-card, .triage-result { border-color: #bbb; }
  .table-wrap { overflow: visible; }
  .mini-id-card { display: none !important; }
  .emergency-info { grid-template-columns: 1fr; }
  .traffic-grid { grid-template-columns: 1fr; }
  .traffic-card.red ul { columns: 1; }
  .food-grid { max-height: none !important; overflow: visible !important; }
  table { min-width: 0; }
  a { color: #000; text-decoration: none; }
  .tl, .en { display: block !important; }
  .en { color: #444 !important; }
  .print-area { display: none; }
  body.print-card-mode > * { display: none !important; }
  body.print-card-mode > .print-area { display: block !important; }
  .print-card {
    border: 2px solid #000; border-radius: 12px; padding: 18px; font-family: var(--sans);
    max-width: 700px; margin: 0 auto;
  }
  .print-card h1 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 4px; }
  .print-card .sub { font-size: .8rem; color: #444; margin-bottom: 14px; }
  .print-card table { min-width: 0; width: 100%; }
  .print-card th, .print-card td { border: 1px solid #999; padding: 6px 8px; font-size: .8rem; }
  .print-card th { background: #eee; color: #000; width: 30%; }
  .print-card .emergency { margin-top: 12px; border: 2px solid #000; padding: 8px; font-weight: 700; }
}

/* Line icons (the symbol sprite uses strokes, not fills) */
.brand-mark svg, .icon-badge svg, .mini-icon svg, .btn svg, .menu-toggle svg,
.header-cta svg, .back-top svg, .callout-label svg, .siren svg,
.hero-float svg, .hero-note svg, .triage-result svg, .section-nav svg, .footer svg,
.home-hero-icon svg, .topic-hero-icon svg, .topic-hero-call svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
