:root {
  --ink: #18212B;
  --ink-2: #33404D;
  --muted: #45515E;
  --ground: #F6F7F9;
  --surface: #FFFFFF;
  --line: #E3E7ED;
  --line-2: #CBD2DC;
  --accent: #1F3FA8;
  --accent-hover: #142B78;
  --red: #B42318;
  --red-ink: #8F1D12;
  --red-bg: #FEF0EE;
  --red-line: #F4B7AE;
  --amber-ink: #7A3E00;
  --amber-bg: #FFF6E8;
  --amber-line: #F1DDB8;
  --green-bg: #E2F1E7;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; padding-bottom: 88px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#detail-title:focus { outline: none; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-weight: 700; font-size: 16px; }
.nav a { text-decoration: none; }
.pill-911 { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--red); color: #fff !important; }
.pill-911:hover { background: var(--red-ink); }

/* Home */
.hero { display: flex; flex-direction: column; gap: 18px; max-width: 760px; padding-top: 48px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 8vw, 84px); line-height: 0.98; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.search { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.search label { font-weight: 800; font-size: 15px; }
.search input { min-height: 52px; padding: 0 18px; font: inherit; font-size: 18px; border: 2px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); }
.search input:focus { border-color: var(--accent); outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line-2); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.count { margin: 16px 0 12px; font-size: 15px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 140px; padding: 20px; border-radius: 22px; color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(24, 33, 43, .08); }
.tile .tag { font-size: 12px; }
.tile-label { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.12; }
.tag { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.empty { font-size: 18px; color: var(--muted); }

/* Detail */
#detail { padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
#detail[hidden] { display: none; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 800; color: var(--ink); text-decoration: none; }
.back:hover { color: var(--ink); border-color: var(--ink); }
.detail-head { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.detail-head h2 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.04; }
.detail-head .lede { color: var(--ink-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 23px; }
.card ul { font-size: 18px; }
.card-911 { background: var(--red-bg); border: 2px solid var(--red-line); flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.card-911 > div { flex: 999 1 380px; display: flex; flex-direction: column; gap: 10px; }
.card-911 h3 { color: var(--red-ink); }
.btn-911 { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 16px; background: var(--red); color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; }
.btn-911:hover { background: var(--red-ink); color: #fff; }
.card-calm { background: var(--green-bg); border: 0; font-size: 18px; }
.card-doc { background: var(--amber-bg); border-color: var(--amber-line); }
.card-doc h3 { color: var(--amber-ink); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fine { margin: 0; font-size: 15px; color: var(--muted); }

/* Numbers */
.numbers { margin: 64px 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; scroll-margin-top: 90px; }
.numbers h2 { font-size: 26px; }
.numbers p { margin: 0; }
.card-dark { background: var(--ink); color: #fff; border: 0; }
.card-dark p { color: #D5DCE4; }
.card-dark a { color: #fff; }
.card-green { background: var(--green-bg); border: 0; }
.plain { list-style: none; padding: 0; font-size: 18px; }
.strong-link { font-weight: 800; }
.ped-form { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ped-form label { font-size: 14px; color: #D5DCE4; }
.ped-row { display: flex; gap: 8px; }
.ped-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; font: inherit; }
.ped-row button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }

/* Quick bar (phones) */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 6; }
.quickbar a { min-height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; text-decoration: none; }
.qb-911 { background: var(--red); color: #fff; }
.qb-911:hover { color: #fff; }
.qb-nurse { border: 2px solid var(--ink); color: var(--ink); }

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer .wrap { padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .quickbar { display: none; }
}
@media (max-width: 600px) {
  .topbar { position: static; }
  .nav { display: none; }
  .brand { font-size: 18px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 46px; }
  .lede { font-size: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 120px; padding: 14px; border-radius: 18px; }
  .tile-label { font-size: 19px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 24px -20px 0; padding: 0 20px 4px; }
  .chip { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}
