/* =====================================================================
   Rota Pro — Guia do motorista e calculadoras (rotapro.app/guia/, /calculadora-*/)
   Mesma identidade da home (assets/css/style.css): Sora, ramp esmeralda #009D68,
   trilho tricolor do semáforo, botões em pílula, prints em moldura de celular,
   rodapé escuro. Folha ÚNICA para todas essas páginas (o gerador põe ?v=hash).
   Páginas geradas por lading-page/guia/gerar.py — não editar o HTML gerado.
   ===================================================================== */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/sora.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --g-050: #E5F6EF; --g-100: #CCEEDF; --g-200: #9FE1C4; --g-300: #5ED0A0;
  --g-400: #00C77F; --g-500: #00B478; --g-600: #009D68; --g-700: #007F54;
  --g-800: #0A5C3F; --g-900: #0B3D2C;
  --rgb-brand: 0,157,104; --rgb-bright: 0,199,127;
  --go: #1FB877; --wait: #FF9F0A; --stop: #FF3B30;
  --bg: #E2F0E7; --bg-2: #D5E9DD; --surface: #FFFFFF; --surface-2: #EFF7F2;
  --ink: #0B1E19; --ink-2: #52645D; --ink-3: #5E6E67;
  --line: rgba(0,127,84,.16); --line-2: rgba(0,127,84,.09);
  --amber-bg: #FFF6E0; --amber-line: rgba(255,159,10,.45);
  --shadow-sm: 0 1px 2px rgba(10,60,45,.06), 0 4px 14px rgba(10,60,45,.06);
  --shadow-md: 0 10px 30px rgba(10,60,45,.10), 0 2px 8px rgba(10,60,45,.05);
  --shadow-lg: 0 30px 70px rgba(10,60,45,.16), 0 8px 24px rgba(10,60,45,.08);
  --shadow-em: 0 14px 34px rgba(var(--rgb-brand),.38);
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1120px; --texto: 700px; --radius: 20px; --radius-lg: 28px; --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--g-700); }
h1, h2, h3 { font-family: var(--sans); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.foot a:focus-visible, .chamada a:focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.ico-f { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand .sema-mark { width: 23px; height: 23px; }
.brand .logo { height: 20px; width: auto; aspect-ratio: 753.85 / 148.25; fill: currentColor; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Botões ---------- */
.btn { --pv: 13px; --ph: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px; line-height: 1.15; text-decoration: none;
  padding: var(--pv) var(--ph); border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--g-600), var(--g-700));
  box-shadow: var(--shadow-em), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { --pv: 10px; --ph: 16px; font-size: 14.5px; }
.btn .seta { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover .seta { transform: translateX(3px); }

/* Botão de loja: ícone da plataforma + "Testar grátis no" + nome grande */
.lojas { display: flex; flex-wrap: wrap; gap: 12px; }
.loja { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 11px 20px 11px 16px;
  border-radius: 16px; text-decoration: none; background: #0B1E19; color: #fff;
  border: 1.5px solid rgba(255,255,255,.14); box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .2s; }
.loja:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.26); }
.loja svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.loja.android svg { color: #3DDC84; }
.loja span { display: flex; flex-direction: column; line-height: 1.15; }
.loja small { font-size: 12px; font-weight: 500; opacity: .78; letter-spacing: .01em; }
.loja b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.loja.clara { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.loja.clara.android svg { color: #1FA463; }

/* ---------- Topo da página ---------- */
.topo { position: relative; overflow: hidden; padding: 30px 0 34px; }
.topo::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 88% -20%, rgba(var(--rgb-bright),.26), transparent 62%),
              radial-gradient(700px 420px at 0% 0%, rgba(var(--rgb-brand),.12), transparent 60%); }
.topo .wrap { position: relative; z-index: 1; }
.migalha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin: 0 0 18px; }
.migalha a { color: var(--ink-3); text-decoration: none; }
.migalha a:hover { color: var(--ink); text-decoration: underline; }
.migalha svg { width: 14px; height: 14px; opacity: .6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--g-700); background: var(--g-050);
  border: 1px solid var(--g-100); padding: 6px 13px 6px 10px; border-radius: 999px; text-decoration: none; }
.eyebrow .ico { width: 16px; height: 16px; }
.topo h1 { font-size: clamp(31px, 5.2vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 16px 0 14px;
  max-width: 20ch; text-wrap: balance; }
.topo .lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-2); max-width: 60ch; }
.topo .lead b { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 16px; height: 16px; }
.plat-nota { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--g-800);
  background: rgba(61,220,132,.16); border-radius: 999px; padding: 3px 10px 3px 8px; }
.plat-nota svg { width: 15px; height: 15px; fill: #1FA463; }

/* ---------- Leitura: texto + sumário ---------- */
.leitura { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 20px; }
@media (min-width: 1024px) {
  .leitura { grid-template-columns: minmax(0, var(--texto)) 260px; justify-content: space-between; gap: 56px; }
}
.sumario { align-self: start; }
@media (min-width: 1024px) { .sumario { position: sticky; top: calc(var(--nav-h) + 22px); order: 2; } }
.sumario details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.sumario summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 14.5px; }
.sumario summary::-webkit-details-marker { display: none; }
.sumario summary .ico { width: 18px; height: 18px; color: var(--g-700); transition: transform .2s; }
.sumario details[open] summary .ico { transform: rotate(180deg); }
.sumario ol { list-style: none; margin: 0; padding: 0 8px 10px; counter-reset: s; }
.sumario li { counter-increment: s; }
.sumario li a { display: flex; gap: 10px; padding: 8px 8px; border-radius: 10px; font-size: 14px; line-height: 1.4;
  color: var(--ink-2); text-decoration: none; }
.sumario li a::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid;
  place-items: center; font-size: 11.5px; font-weight: 800; color: var(--g-700); background: var(--g-050); }
.sumario li a:hover, .sumario li a.ativo { background: var(--surface-2); color: var(--ink); }
.sumario li a.ativo::before { background: var(--g-600); color: #fff; }
@media (min-width: 1024px) { .sumario summary { pointer-events: none; } .sumario summary .ico { display: none; } }

/* corpo do artigo: seções abertas, sem caixa */
.corpo { min-width: 0; }
.corpo > section { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.corpo > section:first-child { border-top: 0; padding-top: 4px; }
.corpo h2 { position: relative; font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 0 0 14px; padding-left: 16px; text-wrap: balance; }
.corpo h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .14em; width: 5px; border-radius: 999px;
  background: linear-gradient(var(--stop) 0 33%, var(--wait) 33% 66%, var(--go) 66% 100%); }
.corpo h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; letter-spacing: -.01em; }
.corpo p, .corpo li { color: var(--ink-2); font-size: 17px; line-height: 1.72; }
.corpo p { margin: 0 0 14px; }
.corpo p:last-child { margin-bottom: 0; }
.corpo b, .corpo strong { color: var(--ink); font-weight: 700; }
.corpo ul, .corpo ol { padding-left: 22px; margin: 0 0 14px; }
.corpo li { margin: 0 0 8px; }
.corpo li::marker { color: var(--g-600); font-weight: 700; }
.corpo a:not(.btn):not(.loja):not(.meio-a):not(.cp) { color: var(--g-700); font-weight: 600; text-underline-offset: 3px; }

/* peças */
.formula { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; padding: 13px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.formula::before { content: "="; flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--g-600); color: #fff; font-weight: 800; font-size: 17px; }
.exemplo { position: relative; margin: 14px 0 18px; padding: 34px 18px 16px; border-radius: 16px;
  background: linear-gradient(180deg, var(--g-050), var(--surface-2)); border: 1px solid var(--g-100); }
.exemplo::before { content: "Exemplo"; position: absolute; top: 12px; left: 18px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--g-700); }
.exemplo p, .exemplo li { color: var(--ink); font-size: 16px; margin: 0 0 7px; }
.exemplo p:last-child { margin: 0; }
.aviso { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin: 14px 0 18px; padding: 15px 16px;
  border-radius: 16px; background: var(--amber-bg); border: 1px solid var(--amber-line); }
.aviso::before { content: "!"; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: var(--wait); color: #fff; font-weight: 800; font-size: 15px; }
.aviso > * { grid-column: 2; }
.aviso p, .aviso li { color: var(--ink); font-size: 15.5px; margin: 0 0 6px; }
.aviso p:last-child { margin: 0; }
.modelo { position: relative; margin: 10px 0 12px; padding: 16px 16px 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 16px; color: var(--ink); line-height: 1.55; border-left: 4px solid var(--g-400); }
.modelo .copiar { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--sans);
  font-size: 13.5px; font-weight: 700; color: var(--g-700); background: var(--g-050); border: 1px solid var(--g-100);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.modelo .copiar .ico { width: 15px; height: 15px; }
.modelo .copiar.ok { background: var(--g-600); color: #fff; border-color: var(--g-600); }
/* ---------- Tabelas (2ª versão, 22/10/2026): cabeçalho discreto, linha que acende, total com faixa verde ---------- */
.tabela { margin: 16px 0 20px; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm); }
.tabela table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 12px 16px; vertical-align: top; }
.tabela th { color: var(--ink-3); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.35; padding-top: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); background: var(--surface); }
.tabela td { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.tabela tbody tr { transition: background .15s; }
.tabela tbody tr:hover { background: rgba(var(--rgb-brand), .045); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela td:first-child { color: var(--ink); font-weight: 600; }
.tabela td.n, .tabela th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela td.n { color: var(--ink); }
.tabela tr.total td { color: var(--g-900); font-weight: 800; background: var(--g-050); border-top: 1.5px solid var(--g-100); }
.tabela tr.total td:first-child { box-shadow: inset 4px 0 0 var(--g-600); }
.tabela tr.total:hover { background: none; }
/* celular: tabela larga vira CARTÕES (gerar.py marca .cartoes, põe data-label e o valor em <span class="v">) */
@media (max-width: 599px) {
  .tabela th, .tabela td { padding: 10px 12px; }
  .tabela.cartoes { overflow: visible; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .tabela.cartoes table, .tabela.cartoes tbody, .tabela.cartoes tr, .tabela.cartoes td { display: block; width: 100%; }
  .tabela.cartoes thead { display: none; }
  .tabela.cartoes tr { margin: 0 0 10px; padding: 14px 16px 8px; border-radius: 16px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .tabela.cartoes tr:last-child { margin-bottom: 0; }
  .tabela.cartoes tbody tr:hover { background: var(--surface); }
  .tabela.cartoes td { padding: 8px 0; border: 0; border-top: 1px solid var(--line-2); text-align: left; white-space: normal;
    font-size: 15px; line-height: 1.45; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 12px;
    align-items: baseline; }
  .tabela.cartoes td::before { content: attr(data-label); color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
  .tabela.cartoes td:not([data-label]) { display: block; }
  .tabela.cartoes.texto td[data-label] { display: block; }
  .tabela.cartoes.texto td[data-label]::before { display: block; margin: 0 0 2px; }
  .tabela.cartoes.texto td .v { font-weight: 500; color: var(--ink-2); }
  .tabela.cartoes td .v { color: var(--ink); font-weight: 600; }
  .tabela.cartoes td.n .v { text-align: right; font-variant-numeric: tabular-nums; }
  .tabela.cartoes td:first-child { display: block; padding: 0 0 10px; border: 0; color: var(--ink); font-weight: 800;
    font-size: 16px; line-height: 1.35; }
  .tabela.cartoes td:first-child::before { content: none; }
  .tabela.cartoes td:first-child .v { font-weight: 800; }
  .tabela.cartoes tr.total { background: var(--g-050); border-color: var(--g-100); box-shadow: inset 4px 0 0 var(--g-600), var(--shadow-sm); }
  .tabela.cartoes tr.total td { background: none; border-color: var(--g-100); }
  .tabela.cartoes tr.total td:first-child { box-shadow: none; }
}
@media (max-width: 359px) { .tabela th, .tabela td { padding: 8px 9px; font-size: 14px; } }

/* print do app em moldura de celular (mesma da home) */
figure.print { margin: 22px 0 8px; display: grid; justify-items: center; gap: 14px; }
@media (min-width: 640px) {
  figure.print { grid-template-columns: 210px minmax(0, 1fr); justify-items: start; align-items: center; gap: 26px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
}
.celular { position: relative; width: min(230px, 66vw); background: #0A0F0E; border-radius: 34px; padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06); }
@media (min-width: 640px) { .celular { width: 210px; } }
.celular::after { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 30%; height: 16px;
  background: #0A0F0E; border-radius: 999px; z-index: 2; }
.celular img { width: 100%; height: auto; border-radius: 27px; background: #000; }
figure.print figcaption { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-align: center; }
@media (min-width: 640px) { figure.print figcaption { text-align: left; } }
figure.print figcaption b { color: var(--g-700); }

/* telas do app em cartões abertos, lado a lado (/ios/, 23/10/2026): o print recortado no
   trecho que importa (object-position na fonte) + título e texto. Nada atrás de aba. O recorte
   cresce com a largura (aspect-ratio): o mesmo trecho do print aparece em qualquer tela. */
.telas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
@media (max-width: 599px) { .telas { grid-template-columns: minmax(0, 1fr); } }
.tela { margin: 0; min-width: 0; padding: 12px 12px 16px; border-radius: 18px; background: var(--surface-2);
  border: 1px solid var(--line-2); }
.tela-shot { aspect-ratio: 600 / 440; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: #fff;
  border: 1px solid var(--line-2); }
.tela-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.corpo .tela h3 { margin: 0 0 6px; padding-inline: 4px; font-size: 17px; }
.corpo .tela p { margin: 0; padding-inline: 4px; font-size: 15.5px; line-height: 1.55; }

/* ---------- Chamada para o teste (verde escuro, como o CTA final da home) ---------- */
.chamada { position: relative; overflow: hidden; margin: 34px 0 10px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(var(--rgb-bright),.35), transparent 60%),
              linear-gradient(150deg, var(--g-800), var(--g-900));
  padding: 28px 22px; box-shadow: var(--shadow-lg); display: grid; gap: 22px; }
@media (min-width: 760px) { .chamada { grid-template-columns: minmax(0, 1fr) 190px; align-items: center; padding: 34px 34px; } }
.chamada .k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--g-200); }
.chamada .k i { width: 22px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--stop) 0 33%, var(--wait) 33% 66%, var(--go) 66%); }
.chamada h2 { color: #fff; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; margin: 10px 0 10px; padding: 0; text-wrap: balance; }
.chamada h2::before { display: none; }
.chamada p { color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.6; margin: 0 0 18px; max-width: 56ch; }
.chamada .nota { font-size: 13px; color: rgba(255,255,255,.72); margin: 14px 0 0; }
.chamada .nota a { color: #fff; font-weight: 700; }
.chamada .loja { background: #fff; color: var(--ink); border-color: transparent; }
.chamada .loja.android svg { color: #1FA463; }
.chamada .mini { display: none; }
@media (min-width: 760px) { .chamada .mini { display: block; justify-self: end; width: 180px; transform: rotate(4deg); } }
.chamada .mini .celular { width: 180px; }

/* ---------- FAQ ---------- */
.bloco-t { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 0 0 16px; }
.faq { display: grid; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .mais { flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: var(--g-050); color: var(--g-700); transition: transform .2s, background .2s; }
.qa summary .mais .ico { width: 16px; height: 16px; }
.qa[open] summary .mais { transform: rotate(45deg); background: var(--g-600); color: #fff; }
.qa .r { padding: 0 18px 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.qa .r a { color: var(--g-700); font-weight: 600; }

/* ---------- Fontes ---------- */
.fontes { margin: 30px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.fontes h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.fontes h2 .ico { width: 17px; height: 17px; color: var(--g-700); }
.fontes ul { margin: 0; padding-left: 18px; }
.fontes li { font-size: 13.5px; color: var(--ink-3); margin: 0 0 6px; line-height: 1.5; overflow-wrap: anywhere; }
.fontes a { color: var(--ink-2); }

/* ---------- Cartões (relacionados, índice, ferramentas) ---------- */
.secao { padding: 34px 0 10px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cards.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cardlink { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s; }
.cardlink:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--g-200); }
.cardlink .cat { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--g-700); }
.cardlink .cat .ico { width: 15px; height: 15px; }
.cardlink b { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.cardlink span.d { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cardlink .ir { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--g-700); }
.cardlink .ir .ico { width: 16px; height: 16px; transition: transform .2s; }
.cardlink:hover .ir .ico { transform: translateX(3px); }
.cardlink.ferr { background: linear-gradient(160deg, #fff, var(--g-050)); border-color: var(--g-100); }
.cardlink.ferr .bolha { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--g-600), var(--g-700)); color: #fff; box-shadow: var(--shadow-em); }
.cardlink.ferr .bolha .ico { width: 22px; height: 22px; }

/* índice */
.busca { position: relative; margin-top: 22px; max-width: 520px; }
.busca .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.busca input { width: 100%; font-family: var(--sans); font-size: 16px; padding: 15px 18px 15px 46px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); outline: none; }
.busca input:focus { border-color: var(--g-600); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; box-shadow: var(--shadow-sm); }
.chips a:hover { color: var(--ink); border-color: var(--g-200); }
.chips .ico { width: 16px; height: 16px; color: var(--g-700); }
.cat-t { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.6vw, 25px); font-weight: 800; margin: 0 0 16px; }
.cat-t .bolha { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--g-050);
  color: var(--g-700); border: 1px solid var(--g-100); }
.cat-t .bolha .ico { width: 20px; height: 20px; }
.vazio { display: none; padding: 24px; text-align: center; color: var(--ink-2); }

/* ---------- Calculadoras ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 8px; }
@media (min-width: 960px) { .calc-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; }
  .calc-grid .res-col { position: sticky; top: calc(var(--nav-h) + 20px); } }
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px 20px; }
@media (min-width: 640px) { .painel { padding: 26px; } }
.painel h2 { font-size: 20px; font-weight: 800; margin: 0 0 16px; }
.grupo { border: 0; margin: 0 0 20px; padding: 0 0 20px; min-width: 0; border-bottom: 1px solid var(--line-2); }
.grupo:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.grupo legend { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--g-700); padding: 0; margin: 0 0 12px; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo.cheio { grid-column: 1 / -1; }
.campo label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.caixa { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 0 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.caixa:focus-within { border-color: var(--g-600); background: #fff; box-shadow: 0 0 0 4px rgba(var(--rgb-brand), .12); }
.caixa span { color: var(--ink-3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.caixa input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font-family: var(--sans);
  font-size: 18px; font-weight: 700; color: var(--ink); padding: 13px 4px; outline: none; font-variant-numeric: tabular-nums; }
.caixa input::placeholder { color: #9AABA4; font-weight: 500; }
.dica { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); margin: 8px 0 0; }
.troca { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  margin: 2px 0 14px; cursor: pointer; }
.troca input { width: 20px; height: 20px; accent-color: var(--g-600); }
[hidden] { display: none !important; }

.resultado { border-radius: var(--radius-lg); padding: 22px 20px; color: #fff; background: #52645D;
  box-shadow: var(--shadow-lg); transition: background .25s; position: relative; overflow: hidden; }
.resultado::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.18), transparent 60%); }
.resultado > * { position: relative; }
.resultado[data-cor="verde"] { background: linear-gradient(160deg, var(--g-600), var(--g-800)); }
.resultado[data-cor="amarelo"] { background: linear-gradient(160deg, #B37400, #7A4C00); }
.resultado[data-cor="vermelho"] { background: linear-gradient(160deg, #D8352B, #8E1A14); }
.resultado .k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.veredito { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; line-height: 1.25; margin: 8px 0 6px; }
.luzes { display: inline-flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.28); flex: none; }
.luzes i { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.22); }
.resultado[data-cor="vermelho"] .luzes i:nth-child(1) { background: #FF8A80; box-shadow: 0 0 10px #FF8A80; }
.resultado[data-cor="amarelo"] .luzes i:nth-child(2) { background: #FFC542; box-shadow: 0 0 10px #FFC542; }
.resultado[data-cor="verde"] .luzes i:nth-child(3) { background: #5DF2AE; box-shadow: 0 0 10px #5DF2AE; }
.porque { font-size: 15px; margin: 0 0 16px; opacity: .92; }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.numeros li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 11px 12px; }
.numeros b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.numeros small { font-size: 12.5px; opacity: .86; line-height: 1.3; display: block; margin-top: 2px; }
.minimo { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; background: rgba(0,0,0,.18); border-radius: 14px; padding: 11px 13px; }
.lista-comb { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lista-comb li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 11px 13px; font-size: 14px; }
.lista-comb li b { font-size: 19px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lista-comb li.melhor { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.4); }
.privado { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }
.privado .ico { width: 15px; height: 15px; }
.texto-pass { white-space: pre-wrap; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px;
  padding: 13px 15px; font-size: 15px; color: var(--ink); margin: 0 0 12px; }
.copiar-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 14.5px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--g-700); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.copiar-btn .ico { width: 16px; height: 16px; }
ol.conta { margin: 0; padding-left: 0; list-style: none; counter-reset: c; display: grid; gap: 14px; }
ol.conta > li { counter-increment: c; position: relative; padding-left: 44px; }
ol.conta > li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; background: var(--g-600); color: #fff; font-weight: 800; font-size: 14px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--ink); color: #B9C7C1; margin-top: 56px; padding: 46px 0 30px; font-size: 14.5px; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot .brand { color: #fff; }
.foot-sobre p { margin: 14px 0 18px; max-width: 34ch; line-height: 1.6; }
.foot h3 { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: #B9C7C1; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .lojas .loja { min-width: 0; padding: 9px 16px 9px 12px; }
.foot .lojas .loja svg { width: 22px; height: 22px; }
.foot .lojas .loja b { font-size: 15px; }
.foot-baixo { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 13px; color: #8FA39A; }

/* botão para uma calculadora dentro do texto (fontes usam .btn .btn-v) */
.corpo .btn-v { color: #fff; background: linear-gradient(180deg, var(--g-600), var(--g-700)); box-shadow: var(--shadow-em);
  margin: 6px 0 4px; text-decoration: none; }
.corpo .btn-v:hover { filter: brightness(1.07); transform: translateY(-2px); }

/* respiros das calculadoras */
.res-col > * + * { margin-top: 12px; }
.calc-grid + .leitura { margin-top: 34px; }

/* barra fixa do resultado (só no celular, enquanto o resultado está fora da tela) */
.res-fixo { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 0; border-radius: 18px; color: #fff; background: #52645D; font-family: var(--sans);
  box-shadow: 0 14px 34px rgba(0,0,0,.28); cursor: pointer; text-align: left;
  transform: translateY(140%); transition: transform .28s cubic-bezier(.2,.7,.3,1), background .2s; }
.res-fixo.on { transform: translateY(0); }
.res-fixo[data-cor="verde"] { background: linear-gradient(160deg, var(--g-600), var(--g-800)); }
.res-fixo[data-cor="amarelo"] { background: linear-gradient(160deg, #B37400, #7A4C00); }
.res-fixo[data-cor="vermelho"] { background: linear-gradient(160deg, #D8352B, #8E1A14); }
.res-fixo .t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.res-fixo .v { font-size: 17px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-fixo .ico { width: 18px; height: 18px; transform: rotate(90deg); }
@media (min-width: 960px) { .res-fixo { display: none; } }
.res-fixo[data-cor="vermelho"] .luzes i:nth-child(1) { background: #FF8A80; box-shadow: 0 0 10px #FF8A80; }
.res-fixo[data-cor="amarelo"] .luzes i:nth-child(2) { background: #FFC542; box-shadow: 0 0 10px #FFC542; }
.res-fixo[data-cor="verde"] .luzes i:nth-child(3) { background: #5DF2AE; box-shadow: 0 0 10px #5DF2AE; }

/* fileira dos apps que o Rota Pro lê (mesmos ícones da home) */
.apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.apps-icones { display: flex; gap: 6px; }
.apps-icones img { width: 30px; height: 30px; border-radius: 9px; box-shadow: var(--shadow-sm); background: #fff; }
.apps-icones img.redondo { border-radius: 50%; }
.apps-txt { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.apps-txt b { color: var(--ink); font-weight: 700; }
.apps-txt .beta { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--g-700); background: var(--g-050); border: 1px solid var(--g-100); border-radius: 999px; padding: 1px 7px; margin-left: 2px; }
.chamada .apps { margin: 0 0 18px; }
.chamada .apps-icones img { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.chamada .apps-txt { color: rgba(255,255,255,.85); }
.chamada .apps-txt b { color: #fff; }
.chamada .apps-txt .beta { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.foot .apps { margin: 0 0 16px; }
.foot .apps-txt { color: #B9C7C1; }
.foot .apps-txt b { color: #fff; }
.foot .apps-txt .beta { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }

/* ---------- Páginas avulsas (/baixar/, /ios/) ---------- */
.topo.com-media { padding-bottom: 44px; }
.topo.com-media .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; }
@media (min-width: 900px) { .topo.com-media .wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.topo-txt h1 { max-width: 16ch; }
.topo-media { display: flex; justify-content: center; }
.topo-media .celular { width: min(270px, 70vw); transform: rotate(3deg); }
@media (min-width: 900px) { .topo-media .celular { width: 280px; } }
.acao { margin-top: 24px; }
.loja.grande { padding: 14px 26px 14px 20px; min-width: 230px; }
.loja.grande svg { width: 32px; height: 32px; }
.loja.grande b { font-size: 21px; }
.fine { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
.droid { display: none; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--amber-bg);
  border: 1px solid var(--amber-line); font-size: 15px; color: var(--ink); }
.droid.on { display: block; }
.droid a { color: var(--g-700); font-weight: 700; }
.leitura.so-texto { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.cards-secoes > section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px 22px; margin: 0 0 16px; }
.cards-secoes > section:first-child { padding-top: 24px; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.checks li { position: relative; padding-left: 36px; margin: 0; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--g-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Texto longo (política) ---------- */
.doc > h2 { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc > h2:first-of-type { margin-top: 10px; }
.doc > h3 { margin-top: 24px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.doc p, .doc li { font-size: 16px; }
.doc > h2::before { top: calc(26px + .18em); }
.doc > h2:first-of-type::before { top: calc(26px + .18em); }

/* ---------- Retenção (21/10/2026): foto de abertura, compartilhar, resumo, caixas no meio, gráficos ---------- */
.leitura.com-foto { row-gap: 22px; }
@media (min-width: 1024px) {
  .leitura.com-foto > .abertura, .leitura.com-foto > .corpo { grid-column: 1; }
  .leitura.com-foto > .sumario { grid-column: 2; grid-row: 1 / span 2; }
}
.abertura { margin: 0; min-width: 0; }
.abertura img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
  background: var(--bg-2); box-shadow: var(--shadow-md); }
.abertura figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.credito { color: var(--ink-3); font-size: 12.5px; font-weight: 400; white-space: nowrap; }
.meta .por { font-weight: 700; color: var(--ink-2); }

.compartilhar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.compartilhar .r { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.cp { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 14px; font-weight: 700;
  line-height: 1.2; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s; }
.cp:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--g-200); }
.cp svg { width: 18px; height: 18px; flex: none; }
.cp.wa svg { fill: #25D366; }
.cp.ok { background: var(--g-050); border-color: var(--g-200); color: var(--g-800); }
.compartilhar.fim { margin: 26px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compartilhar.fim .r { font-size: 15px; color: var(--ink); width: 100%; }
@media (min-width: 560px) { .compartilhar.fim .r { width: auto; margin-right: auto; } }

.resumo { margin: 0 0 6px; padding: 18px 20px 16px; border-radius: 18px; background: linear-gradient(160deg, #fff, var(--g-050));
  border: 1px solid var(--g-100); box-shadow: var(--shadow-sm); }
.corpo .resumo-t { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--g-700); margin: 0 0 10px; line-height: 1.3; }
.resumo-t .ico { width: 17px; height: 17px; }
.corpo .resumo ul { margin: 0; padding-left: 20px; }
.corpo .resumo li { color: var(--ink); font-size: 16px; line-height: 1.55; margin: 0 0 8px; }
.corpo .resumo li:last-child { margin-bottom: 0; }

.meio { margin: 0 0 26px; }
.meio-a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s; }
.meio-a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--g-200); }
.meio-calc .meio-a { background: linear-gradient(160deg, #fff, var(--g-050)); border-color: var(--g-100); }
.meio .bolha { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--g-600), var(--g-700)); color: #fff; box-shadow: var(--shadow-em); }
.meio .bolha .ico { width: 22px; height: 22px; }
.meio img { flex: none; width: 108px; height: 68px; object-fit: cover; border-radius: 12px; }
.meio .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.meio small { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--g-700); line-height: 1.3; }
.meio b { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.meio .t > span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.meio .seta { flex: none; width: 20px; height: 20px; color: var(--g-700); transition: transform .2s; }
.meio-a:hover .seta { transform: translateX(3px); }
@media (max-width: 420px) { .meio img { width: 84px; height: 56px; } .meio .t > span { display: none; } }
@media (max-width: 380px) { .meio-a { gap: 11px; padding: 12px 13px; } .meio img { width: 64px; height: 44px; }
  .meio b { font-size: 15px; overflow-wrap: anywhere; hyphens: auto; } }

.cardlink .thumb { display: block; margin: -18px -18px 4px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--bg-2); }
.cardlink .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.cardlink:hover .thumb img { transform: scale(1.04); }

/* ---------- Gráficos das contas (2ª versão, 22/10/2026; gerar.py: <grafico>) ----------
   Barra empilhada horizontal com escala (0, metade, topo redondo) e grade fina; valor dentro da
   parte quando cabe (o JS mede); a barra cresce ao entrar na tela. 3 tons, validados pelo
   método de dataviz: escuro e claro (contexto) e o verde no número para guardar. */
.grafico { --grid: rgba(0,127,84,.10); margin: 20px 0 22px; padding: 20px 20px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #fff, #FBFEFC); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.g-head { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.g-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--g-700); }
.g-k .ico { width: 16px; height: 16px; }
.g-t { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.corpo .g-legenda { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.corpo .g-legenda li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 11px 5px 9px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600;
  line-height: 1.3; color: var(--ink-2); }
.g-legenda i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.g-barras { display: grid; gap: 18px; }
.g-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; }
.g-rot { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.g-rot b { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.g-det { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.g-ponta { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--g-050); border: 1px solid var(--g-100);
  color: var(--g-800); font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-trilho { height: 30px; border-radius: 9px; background-color: var(--surface-2);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px); background-size: 25% 100%;
  box-shadow: inset -1px 0 0 var(--grid); }
.g-barra { display: flex; gap: 2px; height: 100%; width: var(--w); min-width: 4px; transition: width .9s cubic-bezier(.2,.7,.3,1); }
.g-anima .g-barra { width: 0; }
.g-anima.g-on .g-barra { width: var(--w); }
@media print { .g-anima .g-barra { width: var(--w); transition: none; } .g-val { opacity: 1; } }
.g-seg { position: relative; flex-basis: 0; min-width: 3px; height: 100%; cursor: default; display: flex; align-items: center;
  justify-content: center; overflow: hidden; transition: filter .15s; }
.g-seg:first-child { border-radius: 9px 0 0 9px; }
.g-seg:last-child { border-radius: 0 9px 9px 0; }
.g-seg:only-child { border-radius: 9px; }
.g-seg:hover, .g-seg:focus-visible { filter: brightness(1.1); outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); z-index: 1; }
.g-val { font-style: normal; font-size: 12px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.g-seg.cabe .g-val { opacity: 1; }
.g-escuro { background: #5E6E67; color: #fff; }
.g-claro { background: #C3CEC9; color: var(--ink); }
.g-destaque { background: linear-gradient(180deg, var(--g-500), var(--g-600)); color: #fff; }
.g-escala { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; }
.corpo .g-nota { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.g-tab { margin-top: 12px; }
.g-tab summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--g-050); border: 1px solid var(--g-100); font-size: 13px; font-weight: 700; color: var(--g-800); list-style: none; }
.g-tab summary::-webkit-details-marker { display: none; }
.g-tab summary::after { content: "▾"; font-size: 11px; transition: transform .2s; }
.g-tab[open] summary::after { transform: rotate(180deg); }
.g-tab .tabela { margin: 12px 0 2px; box-shadow: none; }
.g-tab .tabela table { font-size: 13.5px; }
.g-tab .tabela th.n { white-space: normal; }
@media (max-width: 400px) { .g-tab .tabela th, .g-tab .tabela td { padding: 8px 7px; font-size: 13px; } }
@media (max-width: 479px) { .grafico { padding: 16px 14px 14px; } .g-trilho { height: 26px; } .g-rot b { font-size: 14px; } }
.g-dica { position: fixed; z-index: 60; pointer-events: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 11px;
  border-radius: 10px; background: #0B1E19; color: #fff; box-shadow: var(--shadow-md); opacity: 0; transition: opacity .12s;
  font-size: 12.5px; line-height: 1.35; max-width: 240px; }
.g-dica b { font-size: 15px; font-variant-numeric: tabular-nums; }
.g-dica span { color: rgba(255,255,255,.78); }
.g-dica.on { opacity: 1; }
