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

/* ============================================================
   Home page v2 — fewer words, more visual hierarchy
   ============================================================ */
.v2-hero { padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.4rem); }
.v2-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.v2-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem; padding: .4rem .85rem;
  background: var(--teal-soft); color: var(--teal-dark);
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.v2-title {
  font-family: var(--serif); font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.06; letter-spacing: -.02em; margin: 0 0 1rem; color: var(--ink);
}
.v2-title em { font-style: italic; color: var(--teal); }
.v2-lede { font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.6; color: var(--ink-soft); max-width: 34ch; margin: 0 0 1.6rem; }
.v2-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.4rem; }
.v2-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v2-btn svg { width: 17px; height: 17px; }
.v2-btn:hover { transform: translateY(-1px); }
.v2-btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(13, 107, 97, .22); }
.v2-btn-primary:hover { background: var(--teal-dark); }
.v2-btn-danger { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(180, 35, 24, .18); }
.v2-btn-danger:hover { background: #96190f; }
.v2-btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.v2-btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.v2-note { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 0; max-width: 44ch; }
.v2-note svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--teal); }

.v2-hero-art { position: relative; display: flex; justify-content: center; }
.v2-art-ring {
  position: absolute; inset: 6% 4% auto auto; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--mint), transparent 65%);
  filter: blur(2px);
}
.v2-art-card {
  position: relative; width: min(100%, 380px); padding: 1.6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); text-align: center;
}
.v2-art-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: .9rem;
  background: var(--teal-soft); color: var(--teal-dark);
}
.v2-art-icon svg { width: 32px; height: 32px; }
.v2-art-quote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; margin: 0 0 1.1rem; color: var(--ink); }
.v2-art-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.v2-art-chips span {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .7rem; border-radius: 999px; background: var(--mint);
  font-size: .78rem; font-weight: 600; color: var(--teal-dark);
}
.v2-art-chips svg { width: 14px; height: 14px; }
.v2-art-float {
  position: absolute; bottom: -.4rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.v2-art-float svg { width: 14px; height: 14px; }

.v2-section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.v2-head { margin-bottom: 1.6rem; }
.v2-kicker {
  margin: 0 0 .35rem; color: var(--teal); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.v2-head h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; color: var(--ink); }

.v2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.v2-card {
  display: flex; align-items: center; gap: .95rem;
  padding: 1rem 1.05rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.v2-card:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.v2-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; flex: none;
}
.v2-tile svg { width: 26px; height: 26px; }
.v2-tile-teal { background: var(--teal-soft); color: var(--teal-dark); }
.v2-tile-gold { background: var(--gold-soft); color: #8a5f06; }
.v2-tile-mint { background: var(--green-soft); color: var(--green); }
.v2-tile-red { background: var(--red-soft); color: var(--red); }
.v2-tile-coral { background: var(--coral-soft); color: #a83f26; }
.v2-tile-blue { background: #e6eefb; color: #24488a; }
.v2-card-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.v2-card-body strong { font-size: 1rem; letter-spacing: -.01em; }
.v2-card-sub { font-size: .84rem; line-height: 1.35; color: var(--muted); }
.v2-card-arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--line-strong); transition: transform .16s ease, color .16s ease; }
.v2-card:hover .v2-card-arrow { transform: translateX(3px); color: var(--teal); }

.v2-emergency {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--red-soft); border: 1px solid #f3c9c2;
}
.v2-emergency-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: #fff; color: var(--red);
}
.v2-emergency-ic svg { width: 24px; height: 24px; }
.v2-emergency-copy { display: flex; flex-direction: column; gap: .18rem; flex: 1 1 240px; }
.v2-emergency-copy strong { color: #7d1a12; font-size: 1rem; }
.v2-emergency-copy span { color: #7d1a12; font-size: .9rem; line-height: 1.45; }

.v2-footer { margin-top: clamp(2rem, 5vw, 3.5rem); }
.v2-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
.v2-footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 52ch; }
.v2-footer-brand h3 { font-family: var(--serif); margin: 0 0 .2rem; }
.v2-footer-updated { font-size: .8rem !important; }
.v2-footer-links h3 { font-size: .95rem; margin: 0 0 .6rem; }
.v2-footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.v2-footer-links a { color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.v2-footer-links a:hover { color: var(--teal); }
.v2-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem;
}
.v2-footer-src { display: flex; gap: .9rem; }
.v2-footer-src a { color: var(--muted); }

@media (max-width: 900px) {
  .v2-hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .v2-hero-art { order: 2; }
  .v2-art-card { width: min(100%, 340px); }
  .v2-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Keep the headline in the first screen; the art card is decorative. */
  .v2-hero-art { display: none; }
  .v2-lede { max-width: none; }
}
@media (max-width: 560px) {
  .v2-grid { grid-template-columns: 1fr; }
  .v2-actions .v2-btn { flex: 1 1 auto; justify-content: center; }
}

/* v2 icons use the same stroke sprite as the rest of the site */
.v2-hero svg, .v2-section svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Home v2.1 — livelier hero, accent cards, entrance motion */
.v2-hero { position: relative; overflow: hidden; padding: clamp(1.8rem, 4.5vw, 3.6rem) 0 clamp(1.2rem, 3vw, 2rem); }
.v2-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.v2-blob { position: absolute; border-radius: 50%; filter: blur(64px); }
.v2-blob-1 { width: 440px; height: 440px; background: #cfe9e2; opacity: .6; top: -160px; right: 4%; }
.v2-blob-2 { width: 340px; height: 340px; background: #fbe3c4; opacity: .5; bottom: -170px; left: -80px; }
.v2-blob-3 { width: 280px; height: 280px; background: #e3ecfb; opacity: .45; top: 28%; left: 42%; }
.v2-hero-grid { position: relative; z-index: 1; }
.v2-title { font-size: clamp(2.3rem, 6vw, 4rem); }
.v2-title em { position: relative; display: inline-block; }

.v2-note {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 1.15rem 0 0; padding: .55rem .95rem;
  background: rgba(255, 253, 248, .9); border: 1px solid var(--line);
  border-radius: 999px; max-width: 60ch;
  color: var(--ink-soft); font-size: .78rem; line-height: 1.4;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
.v2-note strong { color: var(--teal-dark); font-size: .75rem; letter-spacing: .05em; }
.v2-note svg { color: var(--teal); width: 16px; height: 16px; flex: none; }

#topics { padding-top: clamp(.8rem, 2vw, 1.4rem); }
.v2-grid { gap: 1rem; }
.v2-card {
  position: relative; overflow: hidden; padding: 1.15rem 1.25rem;
  background: linear-gradient(180deg, #fffefa 0%, var(--paper) 100%);
}
.v2-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--teal); opacity: 0; transition: opacity .18s ease;
}
.v2-card:nth-child(1)::before { background: var(--teal); }
.v2-card:nth-child(2)::before { background: var(--gold); }
.v2-card:nth-child(3)::before { background: var(--green); }
.v2-card:nth-child(4)::before { background: var(--red); }
.v2-card:nth-child(5)::before { background: var(--coral); }
.v2-card:nth-child(6)::before { background: #24488a; }
.v2-card:hover::before { opacity: 1; }
.v2-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(23, 49, 46, .10); }
.v2-tile { width: 58px; height: 58px; border-radius: 18px; }
.v2-tile svg { width: 28px; height: 28px; }
.v2-card-body strong { font-size: 1.02rem; }
.v2-card-arrow { color: var(--teal); opacity: .55; }
.v2-card:hover .v2-card-arrow { opacity: 1; }

.v2-emergency { background: linear-gradient(120deg, #fdeae6 0%, #fbdcd5 100%); border-color: #f0bdb2; }
.v2-emergency .v2-btn-danger:hover { background: #96190f; }

@media (prefers-reduced-motion: no-preference) {
  .v2-card { animation: v2rise .45s cubic-bezier(.2, .7, .3, 1) both; }
  .v2-card:nth-child(2) { animation-delay: .04s; }
  .v2-card:nth-child(3) { animation-delay: .08s; }
  .v2-card:nth-child(4) { animation-delay: .12s; }
  .v2-card:nth-child(5) { animation-delay: .16s; }
  .v2-card:nth-child(6) { animation-delay: .20s; }
  @keyframes v2rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (max-width: 640px) {
  .v2-note { border-radius: 16px; align-items: flex-start; }
}

/* ============================================================
   Reading layout for the guide pages
   ============================================================ */
.v2-doc { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.v2-doc p { line-height: 1.65; }
.v2-doc .section-lede,
.v2-doc .wrap > p { max-width: 68ch; }
.v2-doc h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 .55rem;
  padding-top: 0;
}
.v2-doc section:first-of-type h2 { padding-top: 0; border-top: 0; }
.v2-doc h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.v2-doc .timeline-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .7rem; }
.v2-doc .timeline-mark { background: var(--teal); color: #fff; }
.v2-doc .card, .v2-doc article.card { background: linear-gradient(180deg, #fffefa, var(--paper)); }
.v2-doc .callout { border-radius: var(--radius); }
.v2-doc .callout p { max-width: none; }
.v2-doc ul, .v2-doc ol { padding-left: 1.15rem; }
.v2-doc li { margin-bottom: .35rem; line-height: 1.55; }

/* Safety warnings block */
.v2-safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1rem; }
.v2-safety-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.05rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  border-top-width: 4px;
}
.v2-safety-item.v2-no { border-top-color: var(--red); }
.v2-safety-item.v2-yes { border-top-color: var(--green); }
.v2-safety-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--red-soft); color: var(--red);
}
.v2-safety-item.v2-yes .v2-safety-ic { background: var(--green-soft); color: var(--green); }
.v2-safety-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-safety-body strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.v2-safety-body p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) { .v2-safety { grid-template-columns: 1fr; } }

/* Plate check: compact two-column layout instead of a tall stack */
.plate-figure { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; }
.plate-svg { width: 150px; height: auto; }
.plate-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem; margin: .45rem 0 .35rem; padding: 0; list-style: none; }
.plate-legend li { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: .82rem; line-height: 1.35; }
.plate-legend strong { display: block; font-size: .86rem; }
.plate-legend .dot { margin-top: .32rem; flex: none; }
.plate-figure .table-note { font-size: .74rem; margin: 0; }
@media (max-width: 680px) {
  .plate-figure { grid-template-columns: 1fr; gap: .7rem; justify-items: start; }
  .plate-svg { width: 132px; }
}

/* One-line goal reminder on the food page */
.food-goal {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: .1rem 0 1rem; padding: .45rem .9rem;
  background: var(--mint); border: 1px solid #d5e8df;
  border-radius: 999px; color: var(--ink-soft);
  font-size: .82rem; line-height: 1.4;
}
.food-goal strong { color: var(--teal-dark); }
.food-goal svg { width: 15px; height: 15px; flex: none; color: var(--teal); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .food-goal { border-radius: 14px; align-items: flex-start; } }

/* Compact plate: the guidance lives inside the graphic */
.plate-figure--compact { display: block; text-align: center; }
.plate-figure--compact .plate-title { margin: 0 0 .35rem; font-size: 1rem; }
.plate-figure--compact .plate-svg { width: 100%; max-width: 340px; margin: 0 auto .4rem; display: block; }
.plate-figure--compact .table-note { margin: 0; }

/* Tighter rhythm on the guide pages */
.v2-doc .section { padding-top: clamp(1.1rem, 2.6vw, 1.8rem); padding-bottom: clamp(1.1rem, 2.6vw, 1.8rem); }
.v2-doc p { margin-bottom: .7rem; }
.v2-doc .hero { padding-bottom: clamp(1rem, 2.5vw, 1.6rem); }

/* Kill the dead space on guide pages */
.v2-doc .hero { padding: 26px 0 22px; }
.v2-doc .hero h1 { margin: .1rem 0 .4rem; }
.v2-doc .hero-note { margin-top: .5rem; }
.v2-doc .topic-hero-card { min-height: 0; padding: 1.1rem 1.2rem; }
.v2-doc .section { padding: 1rem 0 1.5rem; }
.v2-doc .section-head { margin-bottom: .8rem; }
.v2-doc .card, .v2-doc .tool, .v2-doc article.card { min-height: 0; }
.v2-doc .grid { gap: .8rem; }
.v2-doc .callout { margin: .8rem 0; }
.v2-doc .section-nav { padding: .35rem 0; }
.v2-doc .section-nav a { padding: .45rem .8rem; }
.v2-doc .timeline-item + .timeline-item { margin-top: .5rem; }
.v2-doc .compact-list li { margin-bottom: .2rem; }
@media (max-width: 760px) {
  .v2-doc .hero { padding: 18px 0 16px; }
}

/* The hero card is decoration; on phones it pushes content down */
@media (max-width: 900px) {
  .v2-doc .topic-hero-card { display: none; }
  .v2-doc .topic-hero-grid { grid-template-columns: 1fr !important; }
}

/* Compact nutrient strip on the food page */
.nutrient-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.nutrient-grid.compact .nutrient { padding: .55rem .65rem; }
.nutrient-grid.compact .nutrient p { font-size: .7rem; line-height: 1.35; margin: .15rem 0 0; }
.nutrient-grid.compact .nutrient strong { font-size: .82rem; }
@media (max-width: 760px) { .nutrient-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Safety reminders: two clear groups instead of a mixed list */
.v2-safety-compact { margin-top: 1rem; display: grid; gap: .45rem; }
.safety-row {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  padding: .6rem .85rem; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-left-width: 4px; font-size: .84rem; line-height: 1.45; color: var(--ink-soft);
}
.safety-row strong {
  font-size: .7rem; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}
.safety-row.avoid { border-left-color: var(--red); }
.safety-row.avoid strong { color: var(--red); }
.safety-row.do { border-left-color: var(--green); }
.safety-row.do strong { color: var(--green); }

/* Plate card: graphic on the left, nutrient keys on the right */
.plate-figure--compact {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.plate-figure--compact .plate-visual { text-align: center; }
.plate-figure--compact .plate-title { margin: 0 0 .35rem; font-size: .95rem; }
.plate-figure--compact .plate-svg { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
.plate-notes { display: grid; gap: .45rem; }
.plate-notes .nutrient {
  display: grid; grid-template-columns: 10px 1fr; gap: .2rem .55rem;
  align-items: baseline; padding: .45rem .6rem; border-radius: 10px;
  background: var(--mint); border: 1px solid #dfeee6;
}
.plate-notes .nutrient strong { font-size: .84rem; }
.plate-notes .nutrient p { margin: 0; grid-column: 2; font-size: .76rem; line-height: 1.35; color: var(--muted); }
.plate-notes .nutrient-dot { grid-row: 1 / span 2; align-self: start; margin-top: .35rem; }
.plate-figure--compact .table-note { grid-column: 1 / -1; margin: .2rem 0 0; text-align: center; }
@media (max-width: 720px) {
  .plate-figure--compact { grid-template-columns: 1fr; }
  .plate-figure--compact .table-note { text-align: left; }
}

/* Tighter food list card after dropping the legend */
.food-checker { padding: .85rem 1rem; }
.food-checker-form { margin-top: .35rem; }
#foodGrid { margin-top: .5rem; }
.card:has(#foodGrid) { padding: .9rem 1rem; }

/* Dialysis page: stop cards stretching and tighten their padding */
.v2-doc .grid { align-items: start; }
.v2-doc .card { padding: .85rem .95rem; }
.v2-doc .card h3 { margin: .35rem 0 .25rem; font-size: .98rem; }
.v2-doc .card p { font-size: .86rem; line-height: 1.45; margin: 0; }
.v2-doc .card .icon-badge { width: 38px; height: 38px; }
.v2-doc .card .icon-badge svg { width: 20px; height: 20px; }

/* Dialysis day: four steps in two columns instead of a tall stack */
.v2-doc .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.v2-doc .timeline-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .6rem;
  padding: .7rem .8rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; align-items: start;
}
.v2-doc .timeline-item::before { display: none; }
.v2-doc .timeline-mark {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; background: var(--teal-soft); color: var(--teal-dark);
}
.v2-doc .timeline-body h3 { margin: 0 0 .3rem; font-size: .92rem; }
.v2-doc .timeline-body .compact-list li { font-size: .8rem; line-height: 1.4; }
@media (max-width: 760px) { .v2-doc .timeline { grid-template-columns: 1fr; } }

/* Modality cards: icon beside the text instead of above it */
.v2-doc .grid > .card:has(> .icon-badge) { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: .7rem; align-items: start; }
.v2-doc .grid > .card:has(> .icon-badge) > .icon-badge { grid-row: 1 / span 2; align-self: start; }
.v2-doc .grid > .card:has(> .icon-badge) > h3 { margin: 0; }
.v2-doc .grid > .card:has(> .icon-badge) > p { margin-top: .15rem; }

/* Modality cards: compact row, icon beside the text */
.v2-doc .modality {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: start;
  padding: .7rem .8rem;
  border-radius: 14px;
}
.v2-doc .modality .icon-badge { grid-row: 1 / span 2; margin: 0; width: 34px; height: 34px; }
.v2-doc .modality .icon-badge svg { width: 18px; height: 18px; }
.v2-doc .modality h3 { margin: 0; font-size: .92rem; }
.v2-doc .modality p { margin: .1rem 0 0; font-size: .78rem; line-height: 1.4; }

/* Access section: consistent cards and a clear lead-in */
.access-intro { margin: 0 0 .6rem; font-size: .88rem; color: var(--ink-soft); }
.tab-panel .grid { gap: .6rem; }
.tab-panel .card { padding: .8rem .9rem; }
.tab-panel .card h3 { font-size: .92rem; margin: 0 0 .35rem; }
.tab-panel .card p { font-size: .82rem; line-height: 1.45; margin: 0; }
.tab-panel .compact-list li { font-size: .81rem; line-height: 1.45; margin-bottom: .2rem; }
.tab-panel .table-note {
  margin: .55rem 0 0; padding-top: .45rem; border-top: 1px dashed var(--line);
  font-size: .74rem; color: var(--muted);
}
.tabs { margin-bottom: .7rem; }

/* Single-line reminder instead of a full callout */
.session-note {
  display: block; width: 100%; box-sizing: border-box;
  margin: .8rem 0 0; padding: .7rem 1rem;
  background: var(--mint); border-left: 4px solid var(--teal);
  border-radius: 10px; font-size: .86rem; line-height: 1.5; color: var(--ink-soft);
  text-align: justify; text-justify: inter-word;
}
.session-note strong { color: var(--teal-dark); }

/* The session note spans the full content width (not the 68ch reading measure) */
.v2-doc .wrap > p.session-note, .session-note { max-width: none; }

/* Five things to watch: colour-coded cards with examples */
.watch-block { margin: 1rem 0 .4rem; }
.watch-title {
  margin: 0 0 .6rem; font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink);
}
.watch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.watch-card {
  position: relative; padding: .8rem .7rem .75rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; border-top-width: 3px;
}
.watch-card h3 { margin: .35rem 0 .25rem; font-size: .88rem; letter-spacing: -.01em; }
.watch-card p { margin: 0; font-size: .74rem; line-height: 1.4; color: var(--ink-soft); }
.watch-card .watch-ex { margin-top: .35rem; color: var(--muted); font-size: .7rem; }
.watch-dot { display: block; width: 10px; height: 10px; border-radius: 50%; }
.watch-card .sodium { background: #c0392b; }
.watch-card .potassium { background: #e3a63a; }
.watch-card .phosphorus { background: #7c5cd6; }
.watch-card .protein { background: #206b46; }
.watch-card .fluid { background: #2f6fb3; }
.watch-card:has(.sodium) { border-top-color: #c0392b; }
.watch-card:has(.potassium) { border-top-color: #e3a63a; }
.watch-card:has(.phosphorus) { border-top-color: #7c5cd6; }
.watch-card:has(.protein) { border-top-color: #206b46; }
.watch-card:has(.fluid) { border-top-color: #2f6fb3; }
@media (max-width: 900px) { .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .watch-grid { grid-template-columns: 1fr; } }

/* Section chips read as page tabs */
.section-nav-inner { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.section-nav-label {
  font-size: .66rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-right: .45rem;
}
.v2-doc .section-nav a {
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); font-weight: 700;
}
.v2-doc .section-nav a:hover { border-color: var(--teal); color: var(--teal-dark); }
.v2-doc .section-nav a.active {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.v2-doc .section-nav a.active::after { content: "✓"; margin-left: .35rem; font-size: .72rem; }

/* Colour-code each guide page tab */
.v2-doc .section-nav a[href="dialysis.html"] { background: #e9f4f0; border-color: #b5d9cf; color: #0b5f56; }
.v2-doc .section-nav a[href="session.html"]  { background: #fdf3e1; border-color: #ecd3a2; color: #8a5f06; }
.v2-doc .section-nav a[href="access.html"]   { background: #fdeee9; border-color: #f1c6ba; color: #a8402a; }
.v2-doc .section-nav a[href="dialysis.html"].active { background: #0d6b61; border-color: #0d6b61; color: #fff; }
.v2-doc .section-nav a[href="session.html"].active  { background: #b07a12; border-color: #b07a12; color: #fff; }
.v2-doc .section-nav a[href="access.html"].active   { background: #b3462c; border-color: #b3462c; color: #fff; }

/* Selected page tab: solid colour, obvious even if scripts strip the class */
.v2-doc .section-nav a[href="dialysis.html"][aria-current="page"] { background: #0d6b61; border-color: #0d6b61; color: #fff; }
.v2-doc .section-nav a[href="session.html"][aria-current="page"]  { background: #b07a12; border-color: #b07a12; color: #fff; }
.v2-doc .section-nav a[href="access.html"][aria-current="page"]   { background: #b3462c; border-color: #b3462c; color: #fff; }
.v2-doc .section-nav a[aria-current="page"]::after { content: " ✓"; font-weight: 700; }

/* Keep the five checks small; the search and list are the main content */
.watch-title { font-size: .95rem; margin: 0 0 .4rem; }
.watch-grid { gap: .4rem; }
.watch-card { padding: .5rem .55rem .45rem; border-radius: 10px; border-top-width: 2px; }
.watch-card h3 { font-size: .76rem; margin: .2rem 0 .15rem; }
.watch-card p { font-size: .68rem; line-height: 1.3; }
.watch-card .watch-ex { font-size: .64rem; margin-top: .2rem; }
.watch-dot { width: 8px; height: 8px; }
@media (max-width: 900px) { .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* No check mark on the selected tab — the solid colour is enough */
.v2-doc .section-nav a[aria-current="page"]::after { content: none; }

/* Compact food-checker result: one line instead of a billboard */
.food-checker-result {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem;
  margin-top: .45rem; padding: .45rem .7rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; box-shadow: none;
}
.food-checker-result h4 { margin: 0; font-size: .84rem; font-weight: 800; }
.food-checker-flags { gap: .3rem; }
.food-checker-flag {
  padding: .1rem .45rem; border: 1px solid #b98512; border-radius: 999px;
  background: var(--gold-soft); color: #6b4a06;
  font-size: .66rem; font-weight: 800; letter-spacing: .01em;
}

/* Page tabs match the access-type tabs: neutral pills, one teal selection */
.v2-doc .section-nav a[href^="dialysis.html"],
.v2-doc .section-nav a[href^="session.html"],
.v2-doc .section-nav a[href^="access.html"] {
  background: #fff; border-color: var(--line-strong); color: var(--ink);
}
.v2-doc .section-nav a[href^="dialysis.html"][aria-current="page"],
.v2-doc .section-nav a[href^="session.html"][aria-current="page"],
.v2-doc .section-nav a[href^="access.html"][aria-current="page"] {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
#pages { scroll-margin-top: 90px; }

/* Keep "Mas mabuti:" and its answer on one flowing line */
.food-card .swap { display: block; }
.food-card .swap strong,
.food-card .swap .tl,
.food-card .swap .en { display: inline; }
.food-card .swap strong { margin-right: .25rem; }

/* Everything to be careful about reads red; protein stays green */
.badge.k, .badge.p, .badge.na, .badge.fluid {
  background: #fee2e2; color: #991b1b; border: 1px solid #f2b8b5;
}
.badge.protein { background: #dcfce7; color: #166534; border: 1px solid #b7e4c7; }

/* Actual food badge classes: anything to watch reads red, protein green */
.badge.high-k, .badge.high-p, .badge.high-na, .badge.fluid {
  background: #fee2e2; color: #991b1b; border: 1px solid #f2b8b5;
}
.badge.protein { background: #dcfce7; color: #166534; border: 1px solid #b7e4c7; }

/* Page tabs: land instantly, no smooth-scroll bounce */
html { scroll-behavior: auto; }

/* Five checks: three on the first row, two below; dot beside the name */
.watch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.watch-card { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: .4rem; align-items: center; padding: .55rem .65rem .5rem; }
.watch-card h3 { grid-column: 2; margin: 0; font-size: .8rem; }
.watch-card p { grid-column: 2; }
.watch-dot { width: 10px; height: 10px; }
@media (max-width: 760px) { .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Search result flags read red like the food list */
.food-checker-flag {
  background: #fee2e2; color: #991b1b; border: 1px solid #f2b8b5;
}

/* Labs page hero matches the other subpages */
.health-guide-hero .account-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 .5rem; color: var(--teal); font-size: .72rem;
  letter-spacing: .09em; text-transform: uppercase; font-weight: 800;
}
.health-guide-hero .account-eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--coral); flex: none;
}
.health-guide-hero .privacy-note {
  border: 0; background: transparent; padding: 0; border-radius: 0;
  margin: .55rem 0 0; color: var(--muted); font-size: .85rem; width: auto;
  box-shadow: none;
}
.health-guide-hero .privacy-note span[aria-hidden] { display: none; }

/* Page tabs: hover feedback, and a smooth cross-fade between pages */
.v2-doc .section-nav a[href^="dialysis.html"]:hover,
.v2-doc .section-nav a[href^="session.html"]:hover,
.v2-doc .section-nav a[href^="access.html"]:hover {
  background: var(--teal-soft); border-color: var(--teal);
  color: var(--teal-dark); transform: translateY(-1px);
}
.v2-doc .section-nav a { transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* Compact textareas and buttons across the guide pages */
.v2-doc textarea { min-height: 0; height: auto; padding: .5rem .6rem; font-size: .86rem; line-height: 1.45; }
.symptom-form textarea { min-height: 58px; }
.v2-doc .account-button, .v2-doc .tool button[type="submit"] {
  min-height: 38px; padding: .5rem .9rem; font-size: .82rem; width: auto;
}
.v2-doc .food-checker-button { min-height: 36px; padding: .45rem .85rem; font-size: .82rem; }

/* Lab rows and symptom options: less air */
.lab-result-row { padding: .3rem .45rem; }
.lab-range-choices label { padding: .15rem .4rem; font-size: .7rem; }
.symptom-option { padding: .3rem .45rem; font-size: .8rem; }
.symptom-form fieldset { gap: .3rem; }

/* Last row of the five checks sits centred */
.watch-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.watch-card { flex: 1 1 30%; max-width: 32.5%; }
@media (max-width: 760px) { .watch-card { flex: 1 1 46%; max-width: 48%; } }

/* Section tabs on other pages match the page tabs */
.section-nav a { background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.section-nav a:hover { border-color: var(--teal); color: var(--teal-dark); }
.section-nav a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Labs hero sized like the other subpages */
.health-guide-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.health-guide-hero { margin: 0 0 .7rem; }

/* Free-text symptom box: two lines, not a panel */
.symptom-form textarea, #customSymptom { min-height: 52px; height: 52px; }
.v2-doc .account-button { min-height: 40px; }

/* Support tabs: hover tint and a solid teal selection, no ambiguity */
.section-nav a:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.section-nav a.active,
.section-nav a[aria-current="page"] {
  background: var(--teal) !important; border-color: var(--teal) !important; color: #fff !important;
}

/* In-page card preview (popups are blocked in some setups) */
.card-preview {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center;
  padding: 2rem 1rem; overflow: auto; background: rgba(23, 49, 46, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.card-preview[hidden] { display: none; }
.card-preview-sheet {
  background: #fff; border-radius: 14px; padding: 1.2rem 1.3rem;
  width: min(760px, 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.card-preview-bar { display: flex; gap: .5rem; margin-bottom: .9rem; }
.card-preview-body { color: var(--ink); }
.card-preview-body h1 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .2rem; }
.card-preview-body .sub { color: var(--muted); font-size: .78rem; margin-bottom: .8rem; }
.card-preview-body table { width: 100%; border-collapse: collapse; }
.card-preview-body th, .card-preview-body td { border: 1px solid var(--line-strong); padding: .4rem .55rem; font-size: .8rem; text-align: left; vertical-align: top; }
.card-preview-body th { width: 34%; background: var(--mint); }
.card-preview-body .emergency { margin-top: .8rem; border: 2px solid var(--ink); padding: .5rem .6rem; font-weight: 700; font-size: .8rem; }
@media print {
  body.print-card-mode .card-preview { position: static; background: none; padding: 0; }
  body.print-card-mode .card-preview-sheet { box-shadow: none; border-radius: 0; padding: 0; width: 100%; }
  body.print-card-mode .card-preview-bar { display: none; }
}

/* Preview table headers were white on mint — unreadable */
.card-preview-body th,
.card-preview-body td { color: var(--ink) !important; background-clip: padding-box; }
.card-preview-body th {
  background: var(--mint) !important; color: var(--ink) !important;
  text-transform: none; letter-spacing: 0; font-weight: 700;
}

/* PhilHealth: three figures in one row, chips as tidy lists */
.stat-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.stat-grid.three .stat { padding: .7rem .85rem; border-radius: 14px; }
.stat-grid.three .big { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.stat-grid.three .label { font-size: .74rem; line-height: 1.35; }
@media (max-width: 700px) { .stat-grid.three { grid-template-columns: 1fr 1fr; } }

.chip-row { display: grid; gap: .25rem; margin: .2rem 0 .5rem; }
.chip {
  display: flex; align-items: center; gap: .45rem; width: 100%;
  padding: .2rem 0; border: 0; background: transparent; border-radius: 0;
  font-size: .84rem; font-weight: 600; color: var(--ink-soft);
}
.chip svg { width: 14px; height: 14px; flex: none; color: var(--green); }

/* PhilHealth: quiet reminder, split package rows */
.note-soft { margin: .2rem 0 1rem; background: #f4f7f5; border-left-color: #b9d3c8; font-size: .8rem; }
.pkg-list { display: grid; gap: .6rem; }
.pkg { padding: .6rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pkg strong { display: block; margin-bottom: .15rem; font-size: .86rem; color: var(--teal-dark); }
.pkg p { margin: 0; font-size: .84rem; line-height: 1.5; }

/* Wallet card: 85.6 × 54 mm (ID-1), shown 2× on screen */
.dc-card {
  width: 85.6mm; height: 54mm; box-sizing: border-box;
  padding: 3mm; background: #fff; color: #111;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  display: flex; flex-direction: column; gap: 1.2mm;
  border: 0.3mm solid #111; border-radius: 2mm;
}
.card-preview-body .dc-card {
  transform: scale(2); transform-origin: top left;
  margin: 0 auto 54mm 0;
}
.dc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 0.3mm solid #111; padding-bottom: .6mm; }
.dc-head strong { font-size: 7.5pt; letter-spacing: .02em; }
.dc-head span { font-size: 5.5pt; color: #555; }
.dc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2mm; flex: 1; }
.dc-col { display: grid; align-content: start; gap: .5mm; }
.kv { font-size: 5.6pt; line-height: 1.2; display: grid; grid-template-columns: 15mm 1fr; gap: .6mm; }
.kv .k { color: #555; }
.kv .v { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-foot { font-size: 5.2pt; line-height: 1.15; border-top: 0.3mm solid #111; padding-top: .6mm; }

@media print {
  @page { margin: 10mm; }
  body.print-card-mode .card-preview-body .dc-card { transform: none; margin: 0; }
  body.print-card-mode .dc-card { border: 0.3mm solid #000; }
}

/* Room for several medicines and notes on the card */
.dc-wide { display: grid; gap: .4mm; }
.dc-wide .kv { grid-template-columns: 10mm 1fr; }
.dc-wide .kv .v { white-space: normal; }
.dc-wide .lines2 { min-height: 4.6mm; line-height: 1.15; display: block; }

/* Card: English only, medicines and notes get their own areas */
.dc-cols { flex: 0 0 auto; }
.dc-meds { margin-top: .6mm; display: grid; grid-template-columns: 14mm 1fr; gap: .6mm; }
.dc-meds .k, .dc-notes .k { font-size: 5.4pt; color: #555; }
.dc-meds .med-lines { font-size: 5.4pt; line-height: 1.15; min-height: 6mm; }
.dc-notes {
  margin-top: .4mm; border: 0.25mm solid #444; border-radius: 1mm;
  padding: .8mm; display: grid; grid-template-columns: 10mm 1fr; gap: .6mm;
  min-height: 7mm;
}
.dc-notes .note-lines { font-size: 5.4pt; line-height: 1.15; }
.dc-card { justify-content: space-between; }

/* Card: identity on the left, medicines on the right, notes above the rule */
.dc-cols { flex: 1 1 auto; align-items: start; }
.dc-col-meds { border-left: 0.2mm solid #ccc; padding-left: 1.6mm; display: flex; flex-direction: column; gap: .5mm; }
.dc-col-meds .k { font-size: 5.4pt; color: #555; }
.dc-col-meds .med-lines { font-size: 5.4pt; line-height: 1.2; white-space: normal; }
.dc-notes { margin-top: auto; margin-bottom: .6mm; border: 0.25mm solid #444; border-radius: 1mm; padding: .7mm; display: grid; grid-template-columns: 9mm 1fr; gap: .6mm; }
.dc-notes .note-lines { font-size: 5.4pt; line-height: 1.15; white-space: normal; }
.dc-foot { margin-top: 0; }

/* Visual pass: every section heading gets an accent and an icon */
.v2-doc h2, .health-guide-hero h1 + * h2 { position: relative; padding-left: 2.4rem; }
.v2-doc h2::before {
  content: ""; position: absolute; left: 0; top: .1em;
  width: 1.7rem; height: 1.7rem; border-radius: 10px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23084b45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v16H6.5A2.5 2.5 0 0 0 4 21V5.5Z'/%3E%3Cpath d='M8 7h8M8 11h6'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

/* Session page: four illustrated steps */
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.step-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; }
.step-top { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; }
.step-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); flex: none; }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-card:nth-child(2) .step-icon { background: var(--gold-soft); color: #8a5f06; }
.step-card:nth-child(3) .step-icon { background: #e6eefb; color: #24488a; }
.step-card:nth-child(4) .step-icon { background: #fdeee9; color: #a8402a; }
.step-meta { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.step-num { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 .35rem; margin-right: .25rem; }
.step-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.step-list { margin: 0; padding-left: 1rem; }
.step-list li { font-size: .82rem; line-height: 1.45; margin-bottom: .2rem; }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }

/* Step number sits on the same line as the time label */
.step-meta { display: flex; align-items: center; gap: .35rem; }
.step-meta .tl, .step-meta .en { display: inline; }

/* Force the number and label onto one line, even in narrow cards */
.step-meta { flex-wrap: nowrap; white-space: nowrap; }

.step-meta { display: block; }
.step-meta .step-num { display: inline; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 .4rem; margin-right: .2rem; }

/* Emergency: stronger visual hierarchy for the three traffic levels */
.traffic-grid { gap: .7rem; }
.traffic-card { padding: 1rem 1.1rem; border-radius: 14px; }
.traffic-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; }
.traffic-card.red h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.traffic-card.red h3::before {
  content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: #b42318 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17v.1'/%3E%3C/svg%3E") center/14px no-repeat;
}
.traffic-card.amber h3::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: #e3a63a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 8v4M12 16v.1'/%3E%3C/svg%3E") center/11px no-repeat;
}
.traffic-card.green h3::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: #206b46 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
}
.traffic-card .traffic-dot { display: none; }
