
:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #171717;
  --line: #262626;
  --line-2: #404040;
  --text: #fff;
  --text-2: #a3a3a3;
  --text-3: #8a8a8a;
  --accent: #ea580c;
  --accent-text: #fb923c;
  --ok: #34d399;
  --ok-bg: rgb(52 211 153 / 0.12);
  --warn: #fbbf24;
  --warn-bg: rgb(251 191 36 / 0.12);
  --info: #60a5fa;
  --info-bg: rgb(96 165 250 / 0.1);
  --radius: 12px;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:where(a, button, summary):focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Cabeçalho (igual à navbar do site: fixa, 64px, fundo preto translúcido) */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: rgb(0 0 0 / 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgb(38 38 38 / 0.6); }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 30px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a { color: #d1d5db; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px; white-space: nowrap; transition: color .15s; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: #fff; }
.cta-pill { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); color: #fff; text-decoration: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s; }
.cta-pill:hover { background: rgb(255 255 255 / 0.85); color: #000; }
.nav-actions { display: none; }
.nav-mobile { position: relative; }
.nav-mobile > summary { list-style: none; cursor: pointer; padding: 8px; color: #d1d5db; display: inline-flex; border-radius: 8px; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary svg { width: 24px; height: 24px; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: inline; }
.nav-mobile .panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); background: #0a0a0a; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.6); }
.nav-mobile .panel a { color: #d1d5db; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 16px; }
.nav-mobile .panel a:hover { background: var(--surface-2); color: #fff; }
.nav-mobile .panel .cta-pill { margin-top: 10px; padding: 10px 16px; }
@media (min-width: 1024px) {
  .nav-desktop, .nav-actions { display: flex; }
  .nav-mobile { display: none; }
}

/* Conteúdo */
.wrap { max-width: 1024px; margin: 0 auto; padding: 88px var(--gutter) 48px; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
.crumbs { font-size: 13px; color: var(--text-2); margin: 0 0 12px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0 12px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.subnav a { flex-shrink: 0; font-size: 13px; color: var(--text-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; transition: border-color .15s, color .15s; }
.subnav a:hover { color: #fff; border-color: var(--line-2); }
.subnav a[aria-current] { color: #fff; border-color: var(--accent); }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 8px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.lead { color: var(--text-2); font-size: 16px; margin: 0 0 12px; max-width: 72ch; }
.byline { font-size: 13px; color: var(--text-2); margin: 0 0 20px; }
.byline a { color: #fff; }
@media (min-width: 768px) {
  h1 { font-size: 36px; }
  .lead { font-size: 18px; }
}
h2 { font-size: 21px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.35; margin: 20px 0 8px; font-weight: 600; }
@media (min-width: 768px) { h2 { font-size: 24px; } }
p { margin: 0 0 12px; }
.section { margin: 40px 0 0; }
.section > p, .section li { color: #e5e5e5; max-width: 75ch; }
.section ul, .section ol { padding-left: 20px; margin: 0 0 12px; }
.section li { margin: 0 0 6px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
@media (min-width: 768px) { .card { padding: 24px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.kpi { font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; margin: 4px 0; }
.kpi small { font-size: 14px; font-weight: 400; color: var(--text-2); }
.kpi-label { font-size: 13px; color: var(--text-2); margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* Ilha */
.island-slot { margin: 8px 0 0; min-height: 520px; }
.island-slot noscript p { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text-2); }

/* Frescura */
.fresh { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 8px; }
.fresh strong { color: #e5e5e5; font-weight: 500; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; padding: 12px 14px 4px; color: var(--text-2); font-size: 13px; caption-side: top; }
th, td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-weight: 500; color: var(--text-2); font-size: 13px; background: var(--surface); white-space: nowrap; }
tbody th { font-weight: 400; }
.fresh a { color: var(--text-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgb(23 23 23 / 0.5); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
tfoot td, tfoot th { font-weight: 700; border-top: 1px solid var(--line-2); border-bottom: 0; }
.tbl-note { font-size: 13px; color: var(--text-2); margin: 0 0 12px; }
@media (min-width: 768px) { table { font-size: 15px; } }

/* Etiquetas */
.tag { display: inline-block; font-size: 12px; font-weight: 500; line-height: 1.4; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.tag-ok { color: var(--ok); background: var(--ok-bg); }
.tag-est { color: var(--warn); background: var(--warn-bg); }
.tag-info { color: var(--info); background: var(--info-bg); }

/* Novidades */
.news { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; margin: 0 0 28px; }
.news time { font-size: 13px; color: var(--accent-text); font-weight: 500; }
.news h3 { margin-top: 4px; }
.news dl { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 8px 0 0; }
.news dt { color: var(--text-2); font-size: 13px; margin-top: 6px; }
.news dd { margin: 0; color: #e5e5e5; }
@media (min-width: 768px) { .news dl { grid-template-columns: 180px 1fr; } .news dt { margin-top: 0; } }

/* Passo a passo */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0 44px !important; margin: 0 0 20px !important; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.formula { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin: 6px 0; overflow-x: auto; color: #e5e5e5; }

/* Links internos */
.links { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
@media (min-width: 768px) { .links { grid-template-columns: 1fr 1fr; } }
.links a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; transition: border-color .15s; height: 100%; }
.links a:hover { border-color: var(--line-2); }
.links strong { display: block; color: #fff; font-weight: 500; }
.links span { display: block; color: var(--text-2); font-size: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--text-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: #d4d4d4; margin: 0 0 14px; max-width: 75ch; }

/* Histórico e fontes */
.hist { list-style: none; padding: 0 !important; }
.hist li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14px; }
.hist time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.sources { font-size: 14px; }
.sources a { color: #e5e5e5; word-break: break-word; }
.disclaimer { font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; }
.cta-box { border: 1px solid var(--accent); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.cta-box p { margin: 0; color: #e5e5e5; max-width: 60ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 20px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e5e5e5; }
.btn-outline { border: 1px solid var(--line-2); color: #fff; }
.btn-outline:hover { background: rgb(255 255 255 / 0.1); }

/* Rodapé (mesma estrutura do site) */
.site-footer { border-top: 1px solid #1e293b; margin-top: 56px; color: #d1d5db; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter) 32px; }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { font-size: 16px; font-weight: 500; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #9ca3af; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { margin-top: 32px; border: 1px solid rgb(38 38 38 / 0.8); background: rgb(255 255 255 / 0.03); border-radius: var(--radius); padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .subnav, .skip, .faq summary::after { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { padding-top: 0; }
  .card, .tbl-wrap, .fresh { border-color: #ccc; background: #fff; }
  .section > p, .section li, .lead, .muted, .fresh strong { color: #000; }
}
