/* ==========================================================================
   Cuidados G6PD — Direção B · CSS de referência
   Referência visual e de comportamento responsivo. Não é CSS de produção:
   reimplemente os componentes no stack do site mantendo tokens e regras.
   Breakpoints:  <768 mobile · 768–1023 tablet (8 col) · ≥1024 desktop (12 col)
                 ≥1440 margens largas · conteúdo máx. 1264px (telas > 1600 centralizam)
   ========================================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/atkinson-hyperlegible-400-latin-6ec68adf.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/atkinson-hyperlegible-400-latin-ext-6592975a.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/atkinson-hyperlegible-700-latin-00cbe79e.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/atkinson-hyperlegible-700-latin-ext-7e26211f.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque-latin-b86257e5.woff2") format("woff2");
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque-latin-ext-f02b0791.woff2") format("woff2");
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-500-latin-3f7bbac1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-500-latin-ext-82f2cde0.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F;
}

:root {
  /* Superfícies e texto */
  --bg: #F6F4FB;            /* mobile */
  --bg-desktop: #F3F0FA;    /* ≥ 768 */
  --surface: #FFFFFF;
  --ink: #1E1433;
  --text-2: #3D3456;
  --muted: #5A5170;
  --line: #EEEAF6;
  --line-2: #E4DEF0;
  --line-3: #DCD5EA;
  /* Marca e ações */
  --violet: #5B2EFF;
  --violet-link: #4B22E0;
  --violet-hover: #3A17C4;
  --violet-tint-1: #6F47FF;
  --violet-tint-2: #7C58FF;
  --violet-soft: #ECE6FA;
  --violet-soft-2: #E3DBF8;
  --on-violet: #FFFFFF;
  --on-violet-2: #E6DEFF;
  --pink: #FFC8E8;
  --pink-ink: #4A0F35;
  --pink-soft: #FDE8F3;
  /* Status (uso exclusivo em respostas) */
  --safe-bg: #DDF3E6;  --safe: #0F6B40;  --safe-strong: #0F6B40; --safe-on: #D6F0E2;
  --risk-bg: #FFEBC7;  --risk: #8A4F00;  --risk-strong: #FFD98F; --risk-ink: #3D2400;
  --contra-bg: #FDE1DE; --contra: #B3261E; --contra-strong: #9E1F18; --contra-on: #FBD9D5;
  /* Feedback de formulário (não é status clínico) */
  --error: #B3261E; --error-bg: #FDE1DE;
  --success: #0F6B40; --success-bg: #DDF3E6;
  --info-bg: #ECE6FA;
  /* Tipografia */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Forma */
  --r-pill: 999px; --r-card: 20px; --r-card-lg: 28px; --r-block: 40px;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--violet-link);
  /* Layout */
  --content-max: 1264px;
  --gutter: 16px;
  --margin: 20px;
}
@media (min-width: 768px)  { :root { --gutter: 20px; --margin: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 24px; --margin: 48px; } }
@media (min-width: 1440px) { :root { --margin: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  overflow-wrap: break-word; hyphens: auto;
}
@media (min-width: 768px) { body { background: var(--bg-desktop); font-size: 17px; } }
img, svg { max-width: 100%; }
a { color: var(--violet-link); text-decoration: none; }
a:hover { color: var(--violet-hover); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }
.break { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Placeholders identificados ------------------------------------------- */
.ph { display: inline; padding: 0 6px; border: 1.5px dashed currentColor; border-radius: 6px; font-family: var(--font-mono); font-size: .82em; font-weight: 500; letter-spacing: 0; background: rgba(255,255,255,.55); color: #6A3FD0; }
.ph--clinico { color: #9E1F18; }
.ph--dado { color: #5A5170; }
.ph--editorial { color: #6A3FD0; }
.on-dark .ph, .ph.on-dark { background: rgba(0,0,0,.12); color: #FFFFFF; }
.note-hidden { display: block; padding: 14px 16px; border: 1.5px dashed var(--line-3); border-radius: 14px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(90,81,112,.05) 8px 16px); }

/* Tipografia ------------------------------------------------------------- */
.display, h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(32px, 6.2vw, 88px); line-height: .96; font-weight: 800; letter-spacing: -0.04em; }
h1.h1--home { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(20px, 3.2vw, 44px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--text-2); }

/* Marca ------------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 30px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 36px; } }

/* Header ----------------------------------------------------------------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.site-header .brand { margin-right: auto; }
.nav-primary { display: none; }
.header-search { display: none; }
.header-actions { display: flex; gap: 4px; }
.icon-btn { width: 48px; height: 48px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--violet-soft); }
.icon-btn--dark { background: var(--ink); color: #fff; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px 0 0; color: var(--ink); font-weight: 700; margin-right: auto; }
@media (min-width: 1024px) {
  .site-header .wrap { min-height: 96px; gap: 20px; }
  .site-header .brand { margin-right: 0; }
  .nav-primary { display: flex; gap: 2px; font-weight: 700; flex-shrink: 0; }
  .nav-primary a { min-height: 44px; padding: 0 14px; display: flex; align-items: center; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; }
  .nav-primary a:hover { background: var(--violet-soft); }
  .nav-primary a[aria-current="page"] { background: var(--ink); color: #fff; }
  .header-search { display: flex; flex: 1 1 auto; min-width: 0; }
  .header-actions .js-search-toggle, .header-actions .js-menu-open, .back-link { display: none; }
}

.header-cta { display: none !important; }
@media (min-width: 1024px) { .header-cta { display: inline-flex !important; } }

/* Menu mobile (dialog) --------------------------------------------------- */
.menu-panel[hidden] { display: none; }
.menu-panel { position: fixed; inset: 0; z-index: 40; background: var(--surface); display: flex; flex-direction: column; overflow-y: auto; }
.menu-panel .menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 8px 0 var(--margin); }
.menu-panel nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 var(--margin); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
.menu-panel nav a[aria-current="page"] { background: #F3EFFC; color: var(--violet-hover); }
.menu-panel .menu-foot { margin-top: auto; padding: 20px var(--margin) 32px; display: grid; gap: 14px; }
body.menu-open { overflow: hidden; }
.menu-static { position: static; min-height: 760px; border-radius: 0; }

/* Busca ------------------------------------------------------------------ */
.search { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 4px 4px 4px 18px; background: var(--surface); border: 2px solid var(--violet); border-radius: var(--r-pill); }
.search:focus-within { box-shadow: var(--focus); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--ink); min-height: 44px; }
.search input::placeholder { color: #6E6687; }
.search button { flex-shrink: 0; min-width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--violet); color: var(--on-violet); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.search button .label { display: none; }
@media (min-width: 768px) { .search button { padding: 0 22px; } .search button .label { display: inline; } }
.search--quiet { border-color: transparent; }
.search--lg { min-height: 64px; }
.search--lg input { font-size: 18px; }
.search[aria-busy="true"] button { opacity: .7; cursor: progress; }
.search-hint { margin: 8px 4px 0; font-size: 14px; color: var(--muted); }
.search-error { margin: 8px 4px 0; font-size: 15px; font-weight: 700; color: var(--error); display: flex; gap: 8px; align-items: flex-start; }

/* Status: forma + cor + ícone + texto ------------------------------------ */
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 6px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.status__mark { flex-shrink: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.status__mark svg { width: 13px; height: 13px; }
.status--seguro { background: var(--safe-bg); color: var(--safe); }
.status--seguro .status__mark { background: var(--safe); border-radius: 50%; }
.status--risco { background: var(--risk-bg); color: var(--risk); }
.status--risco .status__mark { background: var(--risk); border-radius: 6px; }
.status--contra { background: var(--contra-bg); color: var(--contra); }
.status--contra .status__mark { background: var(--contra); border-radius: 2px; }
.status--sm { min-height: 28px; font-size: 14px; padding-right: 10px; }
.status--sm .status__mark { width: 18px; height: 18px; }
.status--lg { white-space: normal; text-align: left; padding-top: 6px; padding-bottom: 6px; min-height: 52px; padding-left: 10px; padding-right: 22px; font-family: var(--font-display); font-size: 22px; font-weight: 800; gap: 12px; }
.status--lg .status__mark { width: 32px; height: 32px; }
.status--lg .status__mark svg { width: 18px; height: 18px; }
.status--on-strong { background: #fff; }

/* Botões e links ---------------------------------------------------------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--violet); color: var(--on-violet); }
.btn--primary:hover { background: var(--violet-hover); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #2E2150; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { font-weight: 700; }

/* Chips de filtro (links reais) ------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-3); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .status__mark { width: 18px; height: 18px; }

/* Barra A–Z --------------------------------------------------------------- */
.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-width: 100%; }
@media (min-width: 1024px) { .az { grid-template-columns: repeat(26, minmax(0, 1fr)); } }
.az a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.az a[aria-current="page"] { background: var(--ink); color: #fff; }
.az--on-violet a { background: var(--violet-tint-1); color: #fff; }
.az--on-violet a[aria-current="page"] { background: #fff; color: var(--ink); }

/* Listas ------------------------------------------------------------------ */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-card); }
.list > li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 8px 16px; min-height: 56px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.row:hover { text-decoration: none; background: #FBFAFE; color: var(--ink); }
.row:hover .row__title { color: var(--violet-hover); text-decoration: underline; }
.row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__title { font-weight: 700; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.row__sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.row__side { display: flex; align-items: center; gap: 10px; }
.chev { color: #A59DBB; flex-shrink: 0; }
@media (max-width: 479px) {
  .row--status { grid-template-columns: minmax(0, 1fr) 18px; }
  .row--status .row__side { grid-column: 1; grid-row: 2; }
  .row--status .chev { grid-column: 2; grid-row: 1 / span 2; }
}
/* Linha tabular desktop (listas A–Z) */
.row--table { grid-template-columns: minmax(0, 1fr) auto 18px; }
.row--table .row__cols { display: none; }
@media (min-width: 1024px) {
  .row--table { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 130px 190px 18px; padding: 18px 26px; }
  .row--table .row__cols { display: contents; }
  .row--table .row__main .row__sub { display: none; }
  .row--table .row__title { font-family: var(--font-display); font-size: 21px; }
  .row__col { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
  .row__col--mono { font-family: var(--font-mono); font-size: 14px; }
}
.list-head { display: none; }
@media (min-width: 1024px) { .list-head { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 130px 190px 18px; gap: 16px; padding: 0 26px 10px; } }

/* Cards de categoria (3) -------------------------------------------------- */
.cats { display: grid; gap: 12px; }
.cat { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 0; padding: 22px; border-radius: var(--r-card-lg); background: var(--surface); color: var(--ink); text-decoration: none; }
.cat:hover { text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cat--dark { background: var(--ink); color: #fff; }
.cat--dark:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--violet-tint-2); }
.cat--pink { background: var(--pink); color: var(--pink-ink); }
.cat--pink:hover { color: var(--pink-ink); }
.cat__num { font-family: var(--font-mono); font-size: 13px; opacity: .8; }
.cat__title { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.cat__desc { font-size: 15px; line-height: 1.45; opacity: .85; }
.cat__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
@media (max-width: 767px) {
  .cats { gap: 0; background: var(--surface); border-radius: var(--r-card); }
  .cat, .cat--dark, .cat--pink { flex-direction: row; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; border-radius: 0; background: transparent; color: var(--ink); }
  .cats .cat + .cat { border-top: 1px solid var(--line); }
  .cat:first-child { border-radius: var(--r-card) var(--r-card) 0 0; } .cat:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
  .cat__num { display: none; }
  .cat__title { font-size: 18px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
  .cat__desc { display: none; }
  .cat__foot { flex: 1; align-items: center; }
}
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .cat { min-height: 200px; padding: 26px; } }
@media (min-width: 1024px) { .cat { min-height: 220px; padding: 30px; } }

/* Grid de página ---------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.span-all { grid-column: 1 / -1; }
.span-main, .span-aside, .span-7, .span-5, .span-4, .span-8 { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) {
  .span-main { grid-column: 1 / span 8; } .span-aside { grid-column: 9 / span 4; }
  .span-7 { grid-column: 1 / span 7; } .span-5 { grid-column: 8 / span 5; }
  .span-4 { grid-column: 1 / span 4; } .span-8 { grid-column: 5 / span 8; }
}
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
@media (min-width: 1024px) { .stack-lg { gap: 44px; } }
.section { padding-top: 40px; }
@media (min-width: 768px) { .section { padding-top: 64px; } }
@media (min-width: 1024px) { .section { padding-top: 96px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
@media (min-width: 768px) { .section-head { margin-bottom: 22px; } }

/* Breadcrumb -------------------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (min-width: 768px) { .crumbs ol { font-size: 14px; } }
.crumbs li { display: flex; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; }
.crumbs a { color: var(--muted); }
.crumbs--on-dark ol, .crumbs--on-dark a { color: var(--on-violet-2); }

/* Blocos hero / resposta ---------------------------------------------------- */
.hero-violet { position: relative; overflow: hidden; background: var(--violet); color: #fff; border-radius: var(--r-block); padding: 40px 24px; }
.hero-violet h1, .hero-violet h2 { color: #fff; }
.hero-violet .lead { color: var(--on-violet-2); }
@media (min-width: 768px) { .hero-violet { padding: 56px 48px; } }
@media (min-width: 1024px) { .hero-violet { padding: 88px; } }
.cell { position: absolute; pointer-events: none; }
.cell circle:first-child { fill: var(--violet-tint-1); } .cell circle:last-child { fill: var(--violet-tint-2); }
.cell--soft circle:first-child { fill: var(--violet-soft); } .cell--soft circle:last-child { fill: var(--violet-soft-2); }
.cell--pink circle:first-child { fill: var(--pink); } .cell--pink circle:last-child { fill: #FFB0DC; }
/* Home: no mobile o hero perde o bloco violeta */
@media (max-width: 767px) {
  .hero-home { background: transparent; color: var(--ink); padding: 24px 0 8px; border-radius: 0; overflow: visible; }
  .hero-home h1 { color: var(--ink); }
  .hero-home .lead { color: var(--muted); }
  .hero-home .cell { display: none; }
  .hero-home .hero-tag { display: none; }
  .hero-home .hero-example { display: none; }
}
.hero-grid { display: grid; gap: 28px; position: relative; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; } }
.hero-example { display: none; }
@media (min-width: 1024px) { .hero-example { display: flex; } }
.hero-tag { align-self: flex-start; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--pink); color: var(--pink-ink); font-weight: 700; font-size: 14px; }

/* Resposta nas páginas de item: UM único H1.
   Mobile: título escuro + cartão claro na cor do status.
   ≥768: a seção inteira vira a faixa colorida; o cartão fica transparente. */
.verdict { position: relative; overflow: hidden; display: grid; gap: 18px; }
.verdict h1 { font-size: clamp(30px, 6vw, 88px); color: var(--ink); max-width: 20ch; overflow-wrap: anywhere; }
.verdict__card { border-radius: var(--r-card); padding: 20px; display: grid; gap: 12px; justify-items: start; min-width: 0; }
.verdict__card p { margin: 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5; max-width: 62ch; }
.verdict .cell { display: none; }
.verdict--seguro .verdict__card { background: var(--safe-bg); color: #174A32; }
.verdict--risco  .verdict__card { background: var(--risk-bg); color: #5C3A0A; }
.verdict--contra .verdict__card { background: var(--contra-strong); color: #fff; }
.verdict--contra .verdict__card p, .verdict--contra .verdict__card .meta { color: var(--contra-on); }
.verdict--seguro .meta { color: #2F5C45; } .verdict--risco .meta { color: #6B4712; }
@media (min-width: 768px) {
  .verdict { border-radius: var(--r-block); padding: 40px; gap: 20px; }
  .verdict .cell { display: block; }
  .verdict > *:not(.cell) { position: relative; }
  .verdict__card { background: transparent !important; padding: 0; border-radius: 0; }
  .verdict--seguro { background: var(--safe-strong); }
  .verdict--seguro h1, .verdict--seguro .verdict__card { color: #fff; }
  .verdict--seguro .verdict__card p, .verdict--seguro .meta { color: var(--safe-on); }
  .verdict--risco { background: var(--risk-strong); }
  .verdict--risco h1, .verdict--risco .verdict__card, .verdict--risco .verdict__card p { color: var(--risk-ink); }
  .verdict--risco .meta { color: #5C3A0A; }
  .verdict--contra { background: var(--contra-strong); }
  .verdict--contra h1 { color: #fff; }
}
@media (min-width: 1024px) { .verdict { padding: 56px 88px; } }
.cell--safe circle:first-child { fill: #157A4C; } .cell--safe circle:last-child { fill: #1C8756; }
.cell--risk circle:first-child { fill: #FFCF70; } .cell--risk circle:last-child { fill: #FFC654; }
.cell--contra circle:first-child { fill: #AB271F; } .cell--contra circle:last-child { fill: #B83026; }
.cause { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; }
.cause a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* O que fazer */
.todo { background: var(--surface); border-radius: var(--r-card); padding: 20px; display: grid; gap: 16px; }
.todo ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.todo li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.todo .num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; }
.todo .num--urgent { background: var(--contra); }
.todo strong { display: block; }
@media (min-width: 768px) { .todo { border-radius: var(--r-card-lg); padding: 32px; } .todo ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .todo li { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .todo { grid-template-columns: 3fr 9fr; align-items: start; padding: 36px 56px; } }

/* Aviso médico */
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); }
.notice svg { flex-shrink: 0; margin-top: 2px; color: var(--contra); }
.notice--strong { padding: 18px 20px; border-radius: var(--r-card); background: var(--pink-soft); color: var(--pink-ink); font-size: 16px; }
.notice--strong svg { color: var(--pink-ink); }

/* Ficha técnica */
.facts { background: var(--surface); border-radius: var(--r-card); padding: 6px 20px; }
.facts h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.facts dl { margin: 0; }
.facts dl > div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.facts .mono { font-family: var(--font-mono); font-weight: 500; }
@media (min-width: 1024px) {
  .facts { background: var(--ink); color: #fff; border-radius: var(--r-card-lg); padding: 12px 32px 20px; }
  .facts h2 { color: #C9BBFF; }
  .facts dl > div { border-top-color: #2E2150; }
  .facts dt { color: #B9B0CF; }
  .facts a { color: #C9BBFF; }
  .facts .ph { color: #fff; background: rgba(255,255,255,.08); }
}

/* Fontes */
.sources { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.sources li { overflow-wrap: anywhere; }

/* FAQ --------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r-card); padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding: 14px 18px; font-weight: 700; font-size: 17px; line-height: 1.35; border-radius: var(--r-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .tog { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-desktop); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.faq details[open] summary .tog { background: var(--violet); color: #fff; transform: rotate(45deg); }
.faq .answer-body { padding: 0 18px 18px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.faq .answer-body p { margin: 0 0 .8em; }
@media (min-width: 1024px) { .faq summary { font-family: var(--font-display); font-size: 21px; padding: 20px 26px; } .faq .answer-body { padding: 0 26px 22px; font-size: 18px; } }
@media (prefers-reduced-motion: no-preference) { .faq summary .tog { transition: transform .15s ease; } }

/* Relacionados ------------------------------------------------------------ */
.rel { display: grid; gap: 10px; }
@media (min-width: 768px) { .rel--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rel--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.rel-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.rel-card:hover { text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.rel-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.15; overflow-wrap: anywhere; }
.guide-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 16px 20px; border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; }
.guide-link:hover { text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* Blog -------------------------------------------------------------------- */
.posts { display: grid; gap: 0; }
.post-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.post-card:hover { text-decoration: none; color: var(--ink); }
.post-card:hover .post-card__title { text-decoration: underline; color: var(--violet-hover); }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 28px); line-height: 1.15; overflow-wrap: anywhere; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 768px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .post-card { background: var(--surface); border: 0; border-radius: var(--r-card-lg); padding: 26px; min-height: 220px; }
}
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .post-card { padding: 32px; min-height: 260px; } }
.feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-card-lg); background: var(--violet); color: #fff; text-decoration: none; }
.feature:hover { text-decoration: none; color: #fff; }
.feature__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 4vw, 60px); line-height: 1; letter-spacing: -0.03em; position: relative; }
.feature p { margin: 0; color: var(--on-violet-2); position: relative; }
@media (min-width: 1024px) { .feature { padding: 64px 88px; border-radius: var(--r-block); } }

/* Artigo ------------------------------------------------------------------ */
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.quick { border: 2px solid var(--violet); background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 6px; }
.quick p { margin: 0; font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.45; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 3px solid var(--line-3); color: var(--text-2); }
.toc a[aria-current="true"] { border-color: var(--violet); color: var(--ink); font-weight: 700; }
.toc-mobile { background: var(--surface); border-radius: 16px; }
.toc-mobile summary { min-height: 48px; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.toc-mobile ol { margin: 0; padding: 0 18px 16px 36px; }
.toc-desktop { display: none; }
@media (min-width: 1024px) { .toc-mobile { display: none; } .toc-desktop { display: block; position: sticky; top: 24px; } }
.article-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .article-grid { grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 48px; align-items: start; } }

/* Formulários ------------------------------------------------------------- */
.form { display: grid; gap: 22px; background: var(--surface); border-radius: var(--r-card-lg); padding: 22px; }
@media (min-width: 768px) { .form { padding: 40px; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; }
.field .req, .field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid #B9B0CF; background: #FFFFFF; font: inherit; font-size: 17px; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--violet-link); }
.field input[readonly] { background: var(--bg); border-style: dashed; color: var(--text-2); }
.field .hint { font-size: 14px; color: var(--muted); }
.field--error input, .field--error textarea { border-color: var(--error); border-width: 2px; }
.field .err { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 700; color: var(--error); }
.readonly-box { padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1.5px dashed var(--line-3); overflow-wrap: anywhere; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; font-size: 16px; line-height: 1.5; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert--error { background: var(--error-bg); color: #6B1E18; }
.alert--success { background: var(--success-bg); color: #174A32; }
.alert--info { background: var(--info-bg); color: #2B1F55; }
.alert strong { display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
@media (max-width: 767px) { .form-actions .btn { width: 100%; } }
.success-panel { background: var(--surface); border-radius: var(--r-card-lg); padding: 28px 22px; display: grid; gap: 14px; justify-items: start; }
@media (min-width: 768px) { .success-panel { padding: 48px; } }

/* Rodapé ------------------------------------------------------------------ */
.site-footer { margin-top: 56px; padding: 28px 0 36px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.site-footer .foot-grid { display: grid; gap: 22px; }
.site-footer nav h2 { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav a { display: inline-flex; min-height: 32px; align-items: center; font-weight: 700; }
@media (min-width: 768px) {
  .site-footer .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer nav ul { flex-direction: column; }
}
@media (min-width: 1024px) {
  .site-footer { margin: 96px var(--margin) 24px; padding: 56px 64px; border: 0; border-radius: var(--r-block); background: var(--ink); color: #B9B0CF; max-width: var(--content-max); }
  .site-footer .foot-grid { grid-template-columns: 4fr 2fr 2fr 3fr; gap: 24px; }
  .site-footer nav h2 { color: #fff; }
  .site-footer nav a { color: #D9D2EC; }
  .site-footer .wrap { padding: 0; }
}
@media (min-width: 1440px) { .site-footer { margin-left: auto; margin-right: auto; } }

/* Utilidades de referência ------------------------------------------------ */
.pill-note { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #FFF6D6; color: #5C4300; font-family: var(--font-mono); font-size: 12px; }
.ref-banner { background: #1E1433; color: #E6DEFF; font-family: var(--font-mono); font-size: 12px; padding: 8px var(--margin); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ref-banner b { color: #fff; font-weight: 500; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }

/* Header com "voltar": no mobile/tablet a marca dá lugar ao link de voltar */
@media (max-width: 1023px) { .site-header--back .brand { display: none; } }

/* Folhas de estados --------------------------------------------------------- */
.sheet { padding-top: 32px; padding-bottom: 64px; }
.sheet h1 { font-size: clamp(30px, 4vw, 56px); }
.sheet-sec { padding-top: 48px; }
.sheet-sec > h2 { margin-bottom: 8px; }
.sheet-sec > p { margin: 0 0 18px; color: var(--text-2); max-width: 75ch; }
.demo-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.demo { flex: 1 1 360px; min-width: 0; max-width: 680px; display: grid; gap: 10px; }
.demo--mobile { flex: 0 1 360px; max-width: 360px; }
.demo-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.demo-label b { color: var(--ink); font-weight: 500; }
.live { font-family: var(--font-mono); font-size: 12px; padding: 8px 12px; border-radius: 10px; background: #1E1433; color: #E6DEFF; }
.live b { color: #fff; font-weight: 500; }
.frame { border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden; background: #fff; }
.frame-scaled { transform-origin: 0 0; border: 0; display: block; }

/* Legenda de status */
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 18px; }
.legend-row p { margin: 0; flex: 1 1 240px; color: var(--text-2); }

.span-aside h2 { font-size: clamp(20px, 2vw, 28px); }
.ph { overflow-wrap: anywhere; }

@media (max-width: 479px) { .btn { white-space: normal; } }
.col-intro, .col-form { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) { .col-intro { grid-column: 1 / span 5; } .col-form { grid-column: 7 / span 6; } }
.verdict .ph, .hero-violet .ph, .feature .ph, .facts .ph { color: inherit; background: rgba(255,255,255,.14); }
@media (max-width: 767px) { .verdict--seguro .ph, .verdict--risco .ph { background: rgba(255,255,255,.6); } }

.header-search .search button .label { display: none; }
.header-search .search button { padding: 0 12px; }
.cat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat__title { hyphens: manual; overflow-wrap: normal; word-break: normal; }
@media (max-width: 767px) {
  .cat__top { order: 2; }
  .cat .stack { flex: 1 1 auto; min-width: 0; }
}

/* v2.1 — fontes separadas e placeholders sobre fundo escuro */
.src-split { display: grid; gap: 18px; }
@media (min-width: 768px) { .src-split { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; } }
.src-group { display: grid; gap: 8px; align-content: start; min-width: 0; }
.src-group h3 { margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.src-group p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.site-footer .ph { color: inherit; background: rgba(255,255,255,.1); }
.notice--strong .ph { background: rgba(255,255,255,.5); }
.todo .ph { display: inline; }

/* Integração Rails ------------------------------------------------------- */
.form-page, .search-page, .empty-page { padding-top: 28px; padding-bottom: 40px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; }
.error-summary { padding: 18px; border-radius: 14px; background: var(--error-bg); color: var(--error); }
.error-summary h2 { font-family: var(--font-body); font-size: 17px; color: inherit; }
.feedback { padding: 16px; border-radius: 14px; font-weight: 700; }
.feedback--success { background: var(--success-bg); color: var(--success); }
.search-announcement { margin: 20px 0; color: var(--muted); font-weight: 700; }
.empty { padding: 36px; border-radius: var(--r-card-lg); background: var(--surface); display: grid; gap: 16px; justify-items: start; }
.empty-page { min-height: 60vh; display: grid; align-content: center; gap: 22px; max-width: 900px; }
.article-head { padding-top: 36px; display: grid; gap: 18px; }
.article-head h1 { max-width: 1050px; }
.article-layout { padding-top: 44px; display: grid; gap: 36px; }
.article-body { min-width: 0; }
.article-aside { padding: 20px; border-radius: var(--r-card); background: var(--surface); align-self: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
.notice--strong .ph { background: rgba(255,255,255,.5); }
.todo .ph { display: inline; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--text-2); }
.prose h3 { margin: 1.2em 0 .4em; }
