/* HerHealth Liberia — voice-first, low-text, mobile-first design. No frameworks or web fonts. */
:root {
  --brand: #7a2f68; --brand-2: #a23f8a; --brand-50: #fbf2f8; --brand-100: #f4e1ee;
  --teal: #0e7a70; --teal-50: #e5f5f2; --sun: #f2a33a; --sun-50: #fff4e2;
  --red: #b3261e; --red-50: #fdecea; --green: #1b7a45; --green-50: #e6f6ec; --amber: #8a5300; --amber-50: #fff3d6;
  --ink: #241a22; --ink-2: #6a5a66; --line: #ece2e9; --bg: #fcf9fa; --card: #fff;
  --r: 22px; --r-sm: 14px; --sh: 0 2px 6px rgba(60,20,50,.05), 0 10px 30px rgba(60,20,50,.08);
  --fs: 1.0625rem; --dock-h: 74px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f6eef3; --ink-2: #cbb9c5; --line: #3a2a35; --bg: #140d12; --card: #1f151c;
    --brand-50: #2a1724; --brand-100: #3a1f33; --teal-50: #10302c; --sun-50: #33260f; --red-50: #3a1513; --green-50: #12291b; --amber-50: #33260c;
    --brand: #e7a6d6; --teal: #6fd6c9; --red: #ff9b93; --green: #86e0a8; --amber: #ffcf70; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: var(--fs)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; color: var(--ink); background: var(--bg); }
body.has-dock { padding-bottom: calc(var(--dock-h) + 18px + env(safe-area-inset-bottom)); }
img, svg { max-width: 100%; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); } h2 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
.page { width: min(760px, 100% - 32px); margin: 0 auto; padding: 18px 0 28px; }
.center { text-align: center; } .muted { color: var(--ink-2); } .small, .tiny { font-size: .85rem; color: var(--ink-2); } .tiny { font-size: .8rem; }
.strong { font-weight: 650; } .text-alert { color: var(--red); } .lead { color: var(--ink-2); font-size: 1.05em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 800; color: var(--brand-2); }
.stack { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 18px; }

/* ---------------- top bar ---------------- */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
.is-bare .bar { position: fixed; inset: 0 0 auto 0; background: transparent; backdrop-filter: none; justify-content: flex-end; }
.bar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.bar-lang { margin-left: auto; display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 12px; height: 44px; }
.bar-lang select { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; height: 42px; padding-right: 6px; max-width: 110px; }
.bar-lang select:focus { outline: none; }
.quick-exit { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: #fff; font: inherit; font-weight: 800; font-size: .9rem; box-shadow: 0 6px 16px rgba(179,38,30,.35); transition: transform .15s; }
@media (prefers-color-scheme: dark) { .quick-exit { background: #c92a21; } }
.quick-exit:active { transform: scale(.95); }
@media (max-width: 380px) { .bar-logo span { display: none; } .quick-exit { padding: 0 12px; } }
.review-banner, .offline-banner { text-align: center; font-size: .82rem; font-weight: 700; padding: 6px 12px; }
.review-banner { background: var(--amber-50); color: var(--amber); } .offline-banner { background: var(--ink); color: var(--bg); }

/* ---------------- bottom dock (phone and computer) ---------------- */
.dock { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(520px, 100% - 20px); height: var(--dock-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 12px 36px rgba(60,20,50,.18); padding: 0 6px 8px; }
.dock-item { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 700; min-height: 56px; justify-content: flex-end; }
.dock-ic { display: grid; place-items: center; width: 44px; height: 32px; border-radius: 12px; transition: background .2s, color .2s, transform .2s; }
.dock-ic svg { width: 24px; height: 24px; }
.dock-item[aria-current] { color: var(--brand); } .dock-item[aria-current] .dock-ic { background: var(--brand-100); }
.dock-mic .dock-ic { width: 64px; height: 64px; border-radius: 50%; margin-top: -30px; color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px rgba(122,47,104,.45); border: 4px solid var(--bg); }
.dock-mic .dock-ic svg { width: 28px; height: 28px; }
.dock-mic[aria-current] .dock-ic { background: linear-gradient(145deg, var(--brand), var(--brand-2)); transform: scale(1.04); }
@media (prefers-color-scheme: dark) { .dock-mic .dock-ic { background: linear-gradient(145deg, #8f3a7c, #b14d97); } }

/* ---------------- voice hero (home + ask) ---------------- */
.voice-hero, .ask-hero { position: relative; text-align: center; padding: 26px 8px 8px; }
.voice-hero::before { content: ""; position: absolute; inset: -18px -40px auto; height: 330px; z-index: -1;
  background: radial-gradient(260px 200px at 50% 38%, var(--brand-100), transparent 70%), radial-gradient(240px 180px at 80% 10%, var(--teal-50), transparent 70%); }
.mic-big { position: relative; display: inline-grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff; text-decoration: none; background: radial-gradient(circle at 35% 30%, #b8529e, var(--brand) 60%, #5d2150);
  box-shadow: 0 18px 40px rgba(122,47,104,.42), inset 0 -8px 18px rgba(0,0,0,.18); transition: transform .2s; -webkit-tap-highlight-color: transparent; }
.mic-big svg { width: 70px; height: 70px; stroke-width: 1.8; position: relative; z-index: 1; }
.mic-big:active { transform: scale(.96); }
.mic-ring { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand-2) 45%, transparent); animation: breathe 2.6s ease-in-out infinite; }
.mic-big.is-listening { background: radial-gradient(circle at 35% 30%, #e0473e, var(--red) 60%, #7d1a14); }
.mic-big.is-listening .mic-ring { border-color: rgba(179,38,30,.55); animation: pulse 1.1s ease-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.voice-title { margin: 22px 0 6px; font-size: clamp(1.45rem, 6vw, 1.9rem); }
.voice-sub { color: var(--ink-2); max-width: 30ch; margin: 0 auto 8px; }
.voice-status { min-height: 1.6em; font-weight: 700; color: var(--brand); margin: 6px 0; }
.type-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; padding: 0 16px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.hear-btn { position: absolute; right: 0; top: 10px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--teal); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh); }
.hear-btn svg { width: 26px; height: 26px; } .hear-btn.is-speaking { background: var(--teal); color: #fff; }

.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; }
.big3-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 112px; border-radius: var(--r);
  text-decoration: none; font-weight: 800; font-size: 1rem; color: var(--ink); background: var(--card); border: 2px solid var(--line); box-shadow: var(--sh); transition: transform .15s; }
.big3-btn:active { transform: scale(.97); }
.big3-ic { font-size: 2.3rem; line-height: 1; }
.b-listen { background: var(--teal-50); border-color: color-mix(in srgb, var(--teal) 25%, transparent); }
.b-help { background: var(--sun-50); border-color: color-mix(in srgb, var(--sun) 35%, transparent); }
.b-urgent { background: var(--red-50); border-color: color-mix(in srgb, var(--red) 35%, transparent); color: var(--red); }

.sec-title { margin: 26px 0 12px; font-size: 1.1rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; min-height: 108px;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; box-shadow: var(--sh); transition: transform .15s; }
.tile:active { transform: scale(.97); }
.tile-ic { font-size: 2rem; line-height: 1; } .tile-l { font-size: .85rem; font-weight: 700; line-height: 1.25; }
.tile-n { position: absolute; top: 6px; right: 8px; font-size: .72rem; font-weight: 800; color: var(--ink-2); }
.trust { margin: 22px 0 0; text-align: center; font-size: .85rem; font-weight: 600; color: var(--green); }

/* ---------------- ask ---------------- */
.ask-type { margin: 14px 0 6px; }
.ask-row { display: flex; gap: 8px; align-items: flex-end; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 6px 6px 6px 16px; box-shadow: var(--sh); scroll-margin-top: 90px; }
.ask-row:focus-within { border-color: var(--brand-2); }
.ask-row textarea { flex: 1; border: 0; background: transparent; resize: none; font: inherit; color: var(--ink); padding: 10px 0; min-height: 44px; max-height: 160px; }
.ask-row textarea:focus { outline: none; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.send-btn svg { width: 22px; height: 22px; }
.suggest { margin-top: 18px; } .suggest-list { display: grid; gap: 8px; }
.suggest-btn { text-align: left; min-height: 48px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.suggest-btn::before { content: "💬 "; }
.answer:empty { display: none; } .answer { margin: 16px 0; }
.answer .a-card { border-radius: var(--r); padding: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.a-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.a-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; flex: none; background: var(--brand-50); }
.a-head h2 { margin: 0; font-size: 1.15rem; }
.a-q { font-size: .88rem; color: var(--ink-2); font-style: italic; }
.a-text { font-size: 1.08rem; }
.a-speak { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: 10px 0; border-radius: 18px; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; }
.a-speak svg { width: 24px; height: 24px; } .a-speak.is-speaking { background: var(--ink); }
.a-red { background: var(--red-50) !important; border: 2px solid var(--red) !important; } .a-red .a-badge { background: var(--red); color: #fff; } .a-red h2 { color: var(--red); }
.a-protect { background: var(--teal-50) !important; border: 2px solid var(--teal) !important; } .a-protect .a-badge { background: var(--teal); color: #fff; }
.a-crisis { background: var(--brand-50) !important; border: 2px solid var(--brand) !important; }
.a-src { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; font-size: .88rem; }
.a-again { display: block; margin: 14px auto 0; }
.typing { display: flex; justify-content: center; gap: 6px; padding: 26px; } .typing span { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* ---------------- lesson (article) ---------------- */
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.lesson-head { text-align: center; margin: 4px 0 16px; }
.lesson-ic { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--brand-50); font-size: 2.4rem; margin-bottom: 10px; }
.lesson-sum { color: var(--ink-2); }
.reviewed-chip { display: inline-block; background: var(--green-50); color: var(--green); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); margin-bottom: 16px;
  background: linear-gradient(135deg, var(--teal-50), var(--brand-50)); border: 1px solid var(--line); scroll-margin-top: 80px; }
.play-big { width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #19a596, var(--teal) 65%); box-shadow: 0 12px 26px rgba(14,122,112,.4); transition: transform .15s; }
.play-big:active { transform: scale(.95); }
.play-big svg { width: 38px; height: 38px; fill: currentColor; stroke: none; } .play-big .i-pause { display: none; }
.play-big.is-playing .i-pause { display: block; } .play-big.is-playing .i-play { display: none; }
.player-meta { display: grid; gap: 3px; min-width: 0; } .player-meta strong { font-size: 1.05rem; }
.bar-track { height: 8px; border-radius: 8px; background: rgba(0,0,0,.08); overflow: hidden; margin-top: 6px; }
.bar-track span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.stop-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.player .fold { grid-column: 1 / -1; margin: 0; }
.warn-card, .key-card { border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.warn-card { background: var(--amber-50); border: 2px solid color-mix(in srgb, var(--sun) 50%, transparent); }
.key-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.warn-card ul { padding-left: 1.2em; margin: 0 0 10px; } .warn-card li { margin-bottom: 6px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-50); color: var(--green); font-weight: 900; font-size: .85rem; }
.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; overflow: hidden; }
.fold summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; font-weight: 700; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "⌄"; margin-left: auto; transition: transform .2s; font-size: 1.2rem; }
.fold[open] summary::after { transform: rotate(180deg); }
.fold > :not(summary) { padding: 0 16px; } .fold > :last-child { padding-bottom: 14px; }
.fold-in { background: rgba(255,255,255,.55); }
@media (prefers-color-scheme: dark) { .fold-in { background: rgba(0,0,0,.2); } }
.fold #audioTranscript { max-height: 280px; overflow: auto; font-size: .95rem; color: var(--ink-2); }
.prose { font-size: calc(var(--fs) * var(--scale, 1)); }
.tools { display: flex; gap: 8px; padding-top: 4px !important; }
.icon-btn { min-width: 48px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.src-list { padding-left: 1.4em !important; } .src-list li { margin-bottom: 6px; }
.lesson-foot { display: flex; justify-content: center; margin: 14px 0; }
.thumbs { text-align: center; margin: 10px 0 14px; } .thumbs p { font-weight: 700; margin-bottom: 8px; }
.thumb-row { display: flex; justify-content: center; gap: 16px; }
.thumb { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); font-size: 2rem; cursor: pointer; transition: transform .15s; }
.thumb:active { transform: scale(.92); } .thumb:disabled { opacity: .5; }
.thanks { color: var(--green) !important; font-weight: 700; }

/* ---------------- lists ---------------- */
.page-top { margin: 6px 0 16px; }
.search { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; }
.search input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 44px; padding: 0 !important; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--sh); transition: transform .15s; }
.row:active { transform: scale(.98); }
.row-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; background: var(--brand-50); flex: none; }
.row-play { background: var(--teal); color: #fff; font-size: 1.2rem; border-radius: 50%; }
.row-t { display: grid; flex: 1; min-width: 0; } .row-t small { color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-go { font-size: 1.6rem; color: var(--ink-2); }

/* ---------------- shared components used by other pages ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:active { transform: scale(.98); } .btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; } .btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(122,47,104,.28); }
.btn-teal { background: var(--teal); color: #fff; } .btn-danger { background: var(--red); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: linear-gradient(135deg, #8f3a7c, #b14d97); } .btn-teal { background: #13877d; } .btn-danger { background: #c92a21; } }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-row, .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.pill-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.link { display: inline-block; margin: 4px 0 16px; font-weight: 700; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); }
label { font-weight: 650; display: block; margin-bottom: 4px; } .field { margin-bottom: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; } legend { font-weight: 750; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); margin-bottom: 14px; }
.card-tint { background: var(--brand-50); } .card-warn { background: var(--amber-50); } .card-alert { background: var(--red-50); border: 2px solid var(--red); }
.page-head { margin-bottom: 16px; } .section-title { margin: 26px 0 12px; }
.badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.badge-good { background: var(--green-50); color: var(--green); } .badge-warn { background: var(--amber-50); color: var(--amber); }
.badge-bad { background: var(--red-50); color: var(--red); } .badge-muted { background: var(--line); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .85rem; font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
.note { background: var(--amber-50); padding: 10px 14px; border-radius: var(--r-sm); font-size: .92rem; }
.filters { display: grid; gap: 4px 12px; } @media (min-width: 700px) { .filters { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } .filters .btn { margin-bottom: 14px; } }
.facility header { display: flex; justify-content: space-between; gap: 10px; } .facility h2 { margin: 0; }
.empty-state { text-align: center; } .empty-state svg { width: 46px; height: 46px; color: var(--brand); margin-bottom: 6px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; } @media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; box-shadow: var(--sh); }
.stat-icon { font-size: 1.4rem; } .stat-value { font-size: 1.7rem; font-weight: 850; color: var(--brand); line-height: 1.2; } .stat-label { font-size: .86rem; color: var(--ink-2); font-weight: 650; }
.defs dt { font-weight: 750; margin-top: 10px; } .defs dd { margin: 2px 0 0; color: var(--ink-2); }
.reviewer-grid { display: grid; gap: 12px; margin-top: 12px; } @media (min-width: 600px) { .reviewer-grid { grid-template-columns: 1fr 1fr; } }
.reviewer { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r-sm); padding: 12px; border: 1px solid var(--line); }
.reviewer div { display: grid; } .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; flex: none; }
.flow { padding-left: 1.2em; } .flow li { margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; } .table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px; border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.radio-card:has(input:checked) { border-color: var(--brand-2); background: var(--brand-50); }
.list-card { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }

/* ---------------- welcome ---------------- */
.welcome { min-height: 100svh; display: grid; place-items: center; padding: 76px 16px 24px;
  background: radial-gradient(700px 420px at 15% 0%, var(--brand-100), transparent 60%), radial-gradient(600px 400px at 100% 100%, var(--teal-50), transparent 60%), var(--bg); }
.welcome-card { width: min(500px, 100%); background: var(--card); border-radius: 30px; padding: 28px 22px; box-shadow: 0 24px 60px rgba(60,20,50,.16); border: 1px solid var(--line); }
.welcome-logo { display: block; margin-bottom: 10px; }
.lang-options { display: grid; gap: 12px; margin-bottom: 14px; }
.lang-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 0 20px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; text-align: left; }
.lang-option:hover { border-color: var(--brand-2); } .step[hidden] { display: none; }

/* ---------------- footer ---------------- */
.foot { width: min(760px, 100% - 32px); margin: 10px auto 0; padding: 18px 0 10px; border-top: 1px solid var(--line); }
.foot-note { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 16px; } .foot-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 600; }
.foot-small { font-size: .78rem; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
@media print { .quick-exit, .dock, .bar, .foot-links, .tools { display: none !important; } body { padding: 0; } .fold > * { display: block !important; } }
.a-web { border: 2px dashed color-mix(in srgb, var(--teal) 55%, transparent) !important; }
.a-web .a-badge { background: var(--teal-50); }
