/* Identidade do site iaparamedicos.com.br (lida em 23/10/2026) */
:root {
  --white: #ffffff;
  --bg: #fefefe;
  --gray-50: #f9fafb;
  --gray-100: #f5f5f7;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --ink: #1a1a1a;
  --muted: #666666;
  --navy: #2f3961;
  --navy-tint: rgba(47, 57, 97, 0.08);
  --slate: #0f172a;
  --red: #be3944;
  --red-tint: rgba(190, 57, 68, 0.1);
  --line: #e5e7eb;
  --head: "Space Grotesk", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1520px;
  --top-h: 72px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; color: inherit; }
a { color: var(--navy); }
:is(button, a, select, input):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.ap { background: var(--navy); }
.dot.dev { background: var(--gray-400); }
.dot.br { background: var(--red); }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 0 var(--gutter); height: var(--top-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; color: inherit; text-decoration: none; flex: none; }
.logo { font-family: var(--head); font-size: 22px; letter-spacing: .02em; white-space: nowrap; }
.logo b { color: var(--navy); font-weight: 700; }
.logo em { font-style: normal; color: var(--red); font-weight: 500; letter-spacing: .06em; }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.tabs a {
  display: flex; align-items: center; padding: 0 14px; height: 100%;
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--red); }
.ext {
  flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 9999px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 20px -10px rgba(47, 57, 97, .6);
}
.ext:hover { background: #262e50; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--gray-100), #fbfbfc 70%, var(--bg));
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(96px, 10vw, 140px);
  text-align: center;
}
.hero-in { max-width: 1000px; margin: 0 auto; }
.hero h1 {
  margin: 0; font-family: var(--head); font-weight: 500;
  font-size: clamp(48px, 8.4vw, 112px); line-height: .98; letter-spacing: -.05em; color: var(--navy);
}
.hero h1 span { color: var(--red); }
.eyebrow {
  display: inline-block; margin: 22px 0 0; padding: 7px 18px; border-radius: 9999px;
  background: #000; color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.lead { margin: 22px auto 0; max-width: 820px; color: var(--muted); font-size: clamp(17px, 1.7vw, 23px); font-weight: 300; line-height: 1.4; }
.lead strong { color: var(--ink); font-weight: 500; }
.hero .searchrow { margin: clamp(28px, 4vw, 40px) auto 0; max-width: 820px; }
.search {
  display: flex; align-items: center; gap: 14px; padding: 0 10px 0 24px; height: 64px;
  background: var(--white); color: var(--gray-400); border-radius: 9999px;
  border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .35);
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint), 0 20px 40px -24px rgba(15, 23, 42, .35); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); font-size: 17px; }
.search kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px auto 0; max-width: 900px; }
.chips button {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 9999px; padding: 8px 16px; font-family: var(--mono); font-size: 12.5px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chips button:hover { border-color: var(--gray-400); }
.chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips button[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px #fff; }
.hero.compact { padding-bottom: clamp(80px, 8vw, 110px); }
.hero.compact .searchrow, .hero.compact .chips { display: none; }

/* ---------- números ---------- */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: var(--max); margin: clamp(-72px, -6vw, -56px) auto 0; padding: 0;
  width: calc(100% - 2 * var(--gutter));
  background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(47, 57, 97, .6);
}
.stats div { padding: 26px 24px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stats div:first-child { border-left: 0; }
.stats dd { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(30px, 2.8vw, 42px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 10px; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.35; }
.stats .hl { background: var(--slate); }
.stats .hl dd { color: #fff; }
.stats .hl dd::after { content: "BR"; margin-left: 10px; vertical-align: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 2px 8px; border-radius: 9999px; background: var(--red); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.view { padding: 36px 0 64px; }
.vhead { margin: 8px 0 20px; }
.vhead h2 { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.045em; line-height: 1.02; color: var(--ink); }
.vhead p { margin: 10px 0 0; color: var(--muted); max-width: 780px; font-size: 16px; }

/* ---------- barra de filtros ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px;
  padding: 18px 20px; background: var(--gray-50); border: 1px solid var(--line); border-radius: var(--radius);
}
.toolbar label { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.toolbar label.grow { flex: 3 1 280px; }
.toolbar label span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toolbar select, .toolbar input {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); font-size: 14.5px; color: var(--ink); width: 100%;
}
.toolbar select:focus, .toolbar input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-tint); }
.tool-toggle, .m-only { display: none !important; }
.tool-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.btn {
  height: 44px; padding: 0 22px; border-radius: 9999px; border: 0;
  background: var(--red); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap;
  box-shadow: 0 16px 22px -10px rgba(239, 68, 68, .35);
}
.btn:hover { background: #a92f3a; }
.link { border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 500; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- lista + ficha ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 20px; margin-top: 20px; align-items: start; }
.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.list-head p { margin: 0; color: var(--muted); }
.list-head strong { font-family: var(--head); font-size: 30px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); margin-right: 4px; }
.legend { font-family: var(--mono); font-size: 11.5px; }
.legend .dot { margin-left: 12px; }
.active { display: flex; flex-wrap: wrap; gap: 6px; }
.active:not(:empty) { padding: 10px 22px; border-bottom: 1px solid var(--line); }
.active button { border: 0; background: var(--navy-tint); color: var(--navy); border-radius: 9999px; padding: 4px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
#rows { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - var(--top-h) - 130px); overflow-y: auto; }
#rows li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; width: 100%;
  padding: 16px 22px; border: 0; background: none; text-align: left; cursor: pointer; position: relative;
}
.row:hover { background: var(--gray-50); }
.row[aria-current="true"] { background: var(--gray-100); }
.row[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.row .nm { font-family: var(--head); font-weight: 500; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.row .en { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.row .sub { display: block; color: var(--gray-400); font-size: 12.5px; margin-top: 5px; overflow-wrap: anywhere; }
.row .sub code { font-family: var(--mono); font-size: 11.5px; }
.row .flag { display: inline-block; white-space: nowrap; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--red); background: var(--red-tint); border-radius: 9999px; padding: 2px 10px; }
.row .n { text-align: right; min-width: 92px; }
.row .n b { display: block; font-family: var(--head); font-size: 28px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.row .n small { color: var(--muted); font-size: 11.5px; }
.row .n.zero b { color: var(--gray-200); }
.bar { display: flex; height: 4px; margin: 8px 0 0 auto; border-radius: 9999px; overflow: hidden; background: var(--gray-200); }
.bar i { display: block; height: 100%; }
.bar .a { background: var(--navy); }
.bar .d { background: var(--gray-400); }
.more { display: block; margin: 18px auto; }
.empty { color: var(--muted); padding: 36px 4px; }

.detail {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
  padding: clamp(22px, 2.6vw, 40px);
  position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .3);
}
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.dhead a { color: var(--navy); font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.close { display: none; }
.detail h2 { margin: 14px 0 2px; font-family: var(--head); font-weight: 500; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -.045em; line-height: 1.02; color: var(--navy); overflow-wrap: anywhere; }
.detail .en { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tag { border: 1px solid var(--line); color: var(--ink); border-radius: 9999px; padding: 3px 12px; font-family: var(--mono); font-size: 11.5px; }
.tag.solid { background: #000; border-color: #000; color: #fff; letter-spacing: .1em; text-transform: uppercase; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 20px 0; font-size: 14.5px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; }
.kv .lnk, .lnk { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(47, 57, 97, .3); text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; font-weight: 600; text-align: left; }
.desc { color: #444; font-size: 15.5px; line-height: 1.7; font-weight: 300; }
.desc small { display: block; color: var(--gray-400); font-size: 12px; margin-top: 6px; font-weight: 400; }
.brasil {
  margin: 22px 0 0; padding: 20px 22px; border-radius: 16px;
  background: var(--navy); color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: center;
}
.brasil b { grid-row: span 2; font-family: var(--head); font-weight: 500; font-size: 52px; letter-spacing: -.05em; line-height: 1; }
.brasil strong { font-weight: 500; font-size: 15.5px; }
.brasil small { color: rgba(255, 255, 255, .65); font-size: 12.5px; }
.brasil::before { content: "NO BRASIL"; grid-column: 1 / -1; justify-self: start; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; padding: 3px 10px; border-radius: 9999px; background: var(--red); color: #fff; }
.brasil.zero { background: var(--gray-100); color: var(--ink); }
.brasil.zero b { color: var(--muted); }
.brasil.zero small { color: var(--muted); }
.sec { margin-top: 32px; }
.sec h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; font-family: var(--head); font-size: 24px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.sec h3 span { font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: 11.5px; letter-spacing: 0; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.funnel div { padding: 14px 16px; border-radius: 14px; background: var(--gray-100); }
.funnel div:first-child { background: var(--navy); color: #fff; }
.funnel div:first-child small { color: rgba(255, 255, 255, .7); }
.funnel b { display: block; font-family: var(--head); font-weight: 500; font-size: 30px; letter-spacing: -.04em; line-height: 1; }
.funnel small { color: var(--muted); font-size: 12px; }
.drugs { width: 100%; border-collapse: collapse; font-size: 14px; }
.drugs td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.drugs td:first-child { padding-left: 0; }
.drugs .dn { font-weight: 600; color: var(--ink); }
.drugs .dn small { display: block; color: var(--gray-400); font-weight: 400; font-size: 12px; font-family: var(--mono); }
.drugs .src { color: var(--muted); font-size: 12.5px; }
.drugs .src a { color: var(--navy); }
.stage { display: inline-block; border-radius: 9999px; padding: 2px 10px; font-family: var(--mono); font-size: 11px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.stage.s0 { background: var(--navy); border-color: var(--navy); color: #fff; }
.stage.s1, .stage.s2, .stage.s3, .stage.s4 { background: var(--navy-tint); border-color: transparent; color: var(--navy); }
.anv { display: inline-block; margin-top: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--red); background: var(--red-tint); border-radius: 9999px; padding: 2px 9px; white-space: nowrap; }
.anv.no { color: var(--gray-400); background: var(--gray-50); }
.syn { color: #444; font-size: 14px; }
.xr { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.xr span { border: 1px solid var(--line); border-radius: 9999px; padding: 2px 10px; }
.gap { background: var(--gray-100); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; padding: 14px 16px; font-size: 14.5px; color: var(--ink); }

/* ---------- terapias ---------- */
.tablewrap { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--gray-50); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr[data-i] { cursor: pointer; }
.table tr[data-i]:hover { background: var(--gray-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .tn { font-family: var(--head); font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.table .tn small { display: block; font-family: var(--mono); color: var(--gray-400); font-size: 11px; letter-spacing: 0; margin-top: 4px; }
.table tr.ind td { background: var(--gray-100); font-size: 14px; }
.ind h4 { margin: 0 0 6px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ind .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- cid ---------- */
.cid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.cap:hover { box-shadow: 0 20px 40px -30px rgba(15, 23, 42, .35); }
.cap > button { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; width: 100%; text-align: left; border: 0; background: none; padding: 20px; cursor: pointer; }
.cap > button span { font-family: var(--head); font-weight: 500; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.cap > button small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.cap > button b { font-family: var(--head); font-weight: 500; font-size: 30px; letter-spacing: -.04em; color: var(--navy); line-height: 1; }
.cap ul { list-style: none; margin: 0; padding: 0 20px 14px; max-height: 360px; overflow-y: auto; }
.cap li { border-top: 1px solid var(--line); }
.cap li button { display: grid; grid-template-columns: 56px 1fr; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 0; cursor: pointer; font-size: 14px; }
.cap li button:hover { color: var(--red); }
.cap li code { font-family: var(--mono); font-size: 12px; color: var(--navy); }
.cap.open { grid-column: 1 / -1; border-color: var(--navy); }

/* ---------- fontes ---------- */
.prose { max-width: 880px; }
.prose h3 { font-family: var(--head); font-weight: 500; font-size: 28px; letter-spacing: -.03em; margin: 34px 0 8px; }
.prose li { margin: 10px 0; color: #444; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); background: var(--slate); color: rgba(255, 255, 255, .6); font-size: 13px; }
.foot strong { font-family: var(--head); color: #fff; font-weight: 700; letter-spacing: .02em; }
.foot strong em { font-style: normal; color: var(--red); font-weight: 500; letter-spacing: .06em; }
.foot a { color: #fff; }

/* ---------- responsivo ---------- */
@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(4) { border-left: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .brand-sub { display: none; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  #rows { max-height: none; }
  .detail {
    position: fixed; inset: 0; z-index: 40; top: 0; border-radius: 0; border: 0;
    height: 100vh; height: 100dvh; max-height: none; overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(100%); transition: transform .28s cubic-bezier(.22, .8, .24, 1);
  }
  .detail.on { transform: none; }
  .close { display: inline-flex; margin-left: 10px; border: 1px solid var(--line); background: #fff; border-radius: 9999px; padding: 4px 14px; font-weight: 600; cursor: pointer; font-family: var(--sans); color: var(--ink); }
  .ind .cols { grid-template-columns: 1fr; }
  .ext { display: none; }
}
@media (max-width: 760px) {
  :root { --top-h: 108px; --radius: 16px; }
  .top { flex-wrap: wrap; height: auto; padding-top: 14px; row-gap: 6px; }
  .tabs { margin: 0 calc(-1 * var(--gutter)); height: 44px; width: calc(100% + 2 * var(--gutter)); padding: 0 calc(var(--gutter) - 6px); justify-content: space-between; }
  .tabs a { padding: 0 6px; font-size: 11.5px; letter-spacing: .06em; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .1); }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1) !important; }
  .toolbar { padding: 0; gap: 0; background: var(--white); }
  .tool-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 18px;
    border: 0; background: none; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left;
  }
  .tool-toggle::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--muted); }
  .tool-toggle[aria-expanded="true"]::after { content: "−"; }
  .tool-toggle span { color: var(--red); font-family: var(--mono); font-size: 12px; }
  #toolbar > label, #toolbar > .tool-actions { display: none; }
  #toolbar.open { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
  #toolbar.open .tool-toggle { grid-column: 1 / -1; padding: 0 2px; }
  #toolbar.open > label { display: flex; min-width: 0; }
  #toolbar.open > .tool-actions { display: flex; grid-column: 1 / -1; justify-content: flex-start; }
  #view-terapias .toolbar { padding: 14px; gap: 10px; background: var(--gray-50); }
  #view-terapias .toolbar label { min-width: calc(50% - 5px); }
  #view-terapias .toolbar label.grow { min-width: 100%; }
  .hero { padding: 36px var(--gutter) 84px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .eyebrow { margin-top: 16px; font-size: 10.5px; }
  .lead { font-size: 16px; }
  .lead br { display: none; }
  .lead strong { display: block; margin-top: 8px; }
  .search { height: 56px; padding-left: 18px; }
  .search input { font-size: 16px; }
  .search kbd { display: none; }
  .chips { gap: 8px; }
  .chips button { font-size: 11.5px; padding: 7px 12px; }
  .stats dd { font-size: 28px; }
  .stats div { padding: 18px 16px; }
  .stats .hl dd::after { font-size: 9.5px; padding: 1px 6px; margin-left: 6px; }
  .split { margin-top: 14px; }
  .hero.compact { padding: 24px var(--gutter) 22px; }
  .hero.compact h1 { font-size: 34px; }
  .hero.compact .eyebrow, .hero.compact .lead { display: none; }
  body:not([data-tab="doencas"]) .stats { display: none; }
  body:not([data-tab="doencas"]) .view { padding-top: 20px; }
  .row { padding: 14px 16px; gap: 12px; }
  .row .n { min-width: 74px; }
  .row .n b { font-size: 24px; }
  .list-head { padding: 14px 16px; }
  .active:not(:empty) { padding: 10px 16px; }
  .detail { padding: 18px 16px 40px; }
  .detail h2 { font-size: 34px; }
  .brasil { padding: 16px; gap: 4px 14px; }
  .brasil b { font-size: 40px; }
  .drugs td { padding: 10px 4px; }
  .drugs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .drugs td { border-bottom: 0; }
  .drugs td.src { grid-column: 1 / -1; padding-top: 0; }
  .dhead { position: sticky; top: -18px; background: var(--white); margin: -18px -16px 0; padding: 14px 16px; z-index: 2; border-bottom: 1px solid var(--line); }
  #export { display: none; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(4), .table td:nth-child(4), .table th:nth-child(5), .table td:nth-child(5), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
  .table th, .table td { padding: 12px; }
  .table .tn small { overflow-wrap: anywhere; }
  .table .tn small.m-only { display: block !important; font-family: var(--sans); color: var(--navy); font-size: 12.5px; }
  .m-only { display: inline-block !important; }
  .tool-toggle { display: flex !important; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .legend { width: 100%; }
  .legend .dot:first-child { margin-left: 0; }
}
@media (max-width: 420px) {
  #toolbar.open { grid-template-columns: 1fr; }
  .row .nm { font-size: 18px; }
  .logo { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
