/* ============================================================
   CAMADA OCULTA — Design System
   Site pessoal de Valci Júnior · HTML/CSS/JS puros, sem frameworks
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Dark (padrão) */
  --bg: #0a0e16;
  --bg-soft: #0d1421;
  --surface: #111a2b;
  --surface-2: #16203399;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8edf5;
  --muted: #97a4b9;
  --accent: #2dd4a7;
  --accent-2: #38bdf8;
  --accent-ink: #06281f;
  --glow: rgba(45, 212, 167, 0.16);
  --code-bg: #0c1220;
  --shadow: 0 12px 40px rgba(2, 6, 16, 0.55);

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --header-h: 68px;
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #ffffffcc;
  --border: rgba(15, 32, 60, 0.10);
  --border-strong: rgba(15, 32, 60, 0.22);
  --text: #131c2b;
  --muted: #55647c;
  --accent: #0b9e77;
  --accent-2: #0284c7;
  --accent-ink: #ffffff;
  --glow: rgba(11, 158, 119, 0.12);
  --code-bg: #0e1626;
  --shadow: 0 12px 34px rgba(23, 43, 77, 0.10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Fundo com grade sutil */
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  opacity: 0.5;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: var(--text); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .oculta { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); font-weight: 500; font-size: 0.92rem;
  padding: 8px 13px; border-radius: 9px; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: color .18s, border-color .18s;
}
.theme-toggle:hover, .nav-burger:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="light"] .icon-sun { display: none; }
html:not([data-theme="light"]) .icon-moon { display: none; }

.nav-burger { display: none; }
@media (max-width: 780px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-burger { display: inline-flex; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06121c; box-shadow: 0 6px 22px var(--glow);
}
.btn-primary:hover { box-shadow: 0 10px 30px var(--glow); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 84px;
  overflow: hidden;
}
#neural-canvas {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.9;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent);
  letter-spacing: 0.02em; margin-bottom: 18px; display: inline-block;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 800; margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 1.14rem; color: var(--muted); max-width: 34em; margin-bottom: 14px; }
.hero .byline { color: var(--text); font-weight: 500; margin-bottom: 30px; }
.hero .byline strong { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-links { display: flex; gap: 16px; align-items: center; }
.hero-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.hero-links a:hover { color: var(--accent); text-decoration: none; }
.hero-links svg { width: 18px; height: 18px; }

/* Foto com anel */
.hero-photo { position: relative; justify-self: center; }
.photo-frame {
  position: relative; width: min(320px, 72vw); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(160deg, transparent 55%, rgba(45,212,167,0.18));
  pointer-events: none;
}
.photo-frame img { width: 100%; height: auto; }
.hero-photo::before {
  content: ""; position: absolute; inset: -22px; z-index: -1; border-radius: 32px;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
}
.chip-float {
  position: absolute; padding: 9px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
  box-shadow: var(--shadow); white-space: nowrap;
}
.chip-float b { color: var(--accent); font-weight: 600; }
.chip-1 { top: 8%; left: -16%; }
.chip-2 { bottom: 20%; right: -14%; }
.chip-3 { bottom: -4%; left: -6%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { order: -1; }
  .chip-1 { left: -4%; } .chip-2 { right: -2%; } .chip-3 { left: 0; }
}

/* ---------- Seções ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 0; }
.section-head .kicker {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent);
  display: block; margin-bottom: 8px;
}
.section-head .see-all { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.section-head .see-all:hover { color: var(--accent); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-align: left;
}
.stat .num {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 600;
  color: var(--accent); letter-spacing: -0.02em;
}
.stat .lbl { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .cards-3 { grid-template-columns: 1fr; } .cards-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 40px var(--glow); }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.card .metric {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 9px; padding: 7px 11px; display: inline-block; margin-bottom: 14px;
  align-self: flex-start;
}
.card-links { display: flex; gap: 14px; margin-top: 16px; }
.card-links a { font-size: 0.88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.card-links svg { width: 15px; height: 15px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
html[data-theme="light"] .tag { background: var(--bg); }

/* ---------- Blog list ---------- */
.post-card { padding: 24px 26px; }
.post-card time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.post-card .read { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); }
.post-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.post-card h3 { font-size: 1.08rem; }

.post-featured {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 34px; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--border-strong);
  margin-bottom: 34px;
}
.post-featured .flag {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); margin-bottom: 6px;
}
.post-featured h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.post-featured p { color: var(--muted); max-width: 60em; }

.blog-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.blog-search {
  flex: 1; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  padding: 12px 16px; outline: none; transition: border-color .18s;
}
.blog-search:focus { border-color: var(--accent); }
.filter-chip {
  font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px;
  transition: all .18s;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* ---------- Artigo ---------- */
.article { padding: calc(var(--header-h) + 56px) 0 80px; }
.article-head { max-width: 760px; margin: 0 auto 40px; }
.article-head .back { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); display: inline-block; margin-bottom: 26px; }
.article-head .back:hover { color: var(--accent); }
.article-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
.article-head .meta {
  display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.8rem; margin-top: 14px;
}
.article-head .meta .dot::before { content: "·"; margin-right: 16px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.06rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2em; }
.article-body h3 { font-size: 1.18rem; margin-top: 1.6em; }
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol { padding-left: 1.3em; color: var(--text); }
.article-body li { margin-bottom: 0.45em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.article-body .lead { font-size: 1.16rem; color: var(--muted); }

/* Código */
pre {
  background: var(--code-bg); color: #dbe4f3;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.6;
  margin: 1.4em 0;
}
code { font-family: var(--font-mono); font-size: 0.88em; }
p code, li code {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 6px; color: var(--accent);
}
html[data-theme="light"] p code, html[data-theme="light"] li code { background: var(--bg-soft); }
pre .c { color: #6b7f9c; } /* comentário */
pre .k { color: #7dd3fc; } /* keyword */
pre .s { color: #86efac; } /* string */
pre .n { color: #fbd38d; } /* número */

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
td.mono, th.mono { font-family: var(--font-mono); font-size: 0.85rem; }
tr.hl td { color: var(--accent); font-weight: 600; }

/* Callout */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: 18px 20px; margin: 1.6em 0;
  font-size: 0.98rem;
}
.callout .ico { color: var(--accent); flex: none; margin-top: 2px; }
.callout p { margin: 0; }

/* Compartilhar / próximo artigo */
.article-foot {
  max-width: 720px; margin: 56px auto 0; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.article-foot .share { display: flex; gap: 10px; }

/* ---------- Timeline (Sobre) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
  opacity: 0.5;
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--accent);
}
.tl-item .when { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); }
.tl-item h3 { font-size: 1.06rem; margin: 6px 0 4px; }
.tl-item .where { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Stack badges */
.stack-group { margin-bottom: 26px; }
.stack-group h4 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 9px; }
.badge {
  font-size: 0.86rem; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px;
  transition: border-color .18s, transform .15s;
}
.badge:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Quote */
.big-quote {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600; text-align: center; max-width: 26em; margin: 0 auto;
  line-height: 1.45;
}
.big-quote .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-quote-by { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; margin-top: 16px; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; padding: 84px 0;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--glow), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cta-final h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.cta-final p { color: var(--muted); max-width: 36em; margin: 0 auto 30px; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-inner .fbrand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; }
.footer-inner .fbrand svg { width: 20px; height: 20px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-note { width: 100%; color: var(--muted); font-size: 0.78rem; font-family: var(--font-mono); text-align: center; margin-top: 18px; opacity: 0.75; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}

/* Page hero (páginas internas) */
.page-hero { padding: calc(var(--header-h) + 64px) 0 30px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 44em; }

/* ============================================================
   FIGURAS E VISUALIZAÇÕES EM ARTIGOS
   Tokens de cor validados para contraste e daltonismo nos dois temas.
   ============================================================ */

/* Tokens de visualização — dark (padrão) */
:root {
  --viz-bad: #d03b3b;    /* causa / problema */
  --viz-good: #1aa87f;   /* solução / protocolo */
  --viz-neutral: #64748b;
  --viz-track: rgba(148, 163, 184, 0.16);
}
html[data-theme="light"] {
  --viz-bad: #d03b3b;
  --viz-good: #0b9e77;
  --viz-neutral: #7688a3;
  --viz-track: rgba(15, 32, 60, 0.10);
}

.fig { margin: 2.4em 0; }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--border-strong);
}
.fig figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fig figcaption a:hover { color: var(--accent); }

/* Texto dentro dos SVGs — acompanha o tema */
.fig .vz-t { fill: var(--text); font-family: var(--font-body); }
.fig .vz-m { fill: var(--muted); font-family: var(--font-body); }
.fig .vz-mono { font-family: var(--font-mono); }

/* Linha de estatísticas com 3 colunas (artigos) */
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-3 .num { font-size: 1.75rem; }
@media (max-width: 860px) { .stats-3 { grid-template-columns: 1fr; } }

/* Fontes do artigo */
.sources { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 1.1rem; margin-bottom: 16px; }
.sources ol { padding-left: 1.2em; margin: 0; }
.sources li { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; line-height: 1.55; }
.sources li a { font-weight: 500; }

/* ---------- Imagens em artigos ---------- */
.fig img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
/* Capa do artigo (logo abaixo do cabeçalho) */
.fig-lead { margin: 0 0 2.2em; }

/* Gráficos de saída em fundo claro — card próprio para não brigar com o tema */
.fig-chart img {
  background: #fff;
  padding: 12px;
  border-color: var(--border-strong);
}
.fig-scroll { overflow-x: auto; }
.fig-scroll img { min-width: 620px; }

/* Navegação entre partes da série */
.serie-nav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.serie-nav a { font-size: 0.9rem; font-weight: 500; }
.serie-nav .nxt { margin-left: auto; text-align: right; }
