/* ============================================================
   lado a lado · estilo
   Linguagem inspirada na Apple (Human Interface Guidelines e apple.com):
   fonte do sistema, títulos grandes em negrito, muito respiro,
   cartões arredondados com sombra difusa e controles no estilo iOS.
   Paleta: Black #000000, Prussian Blue #14213d, Orange #fca311,
   Alabaster Grey #e5e5e5 e White #ffffff, com tons intermediários.
   Laranja só em destaques e nos botões de ação.
   ============================================================ */

:root {
  --bg: #f5f5f7;          /* cinza muito claro, entre White e Alabaster */
  --card: #ffffff;        /* White */
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --panel-3: #e5e5e5;     /* Alabaster Grey */
  --fill: #14213d12;      /* Prussian translúcido: busca, controle segmentado */
  --fill-2: #14213d09;    /* blocos dentro dos cartões */
  --ink: #14213d;         /* Prussian Blue */
  --fg: #14213d;
  --fg-2: #2b3956;
  --fg-3: #475369;
  --fg-4: #56627a;
  --line: #14213d1a;
  --line-2: #14213d33;
  --line-3: #14213d4d;
  --accent: #fca311;      /* Orange, só destaque e botões */
  --accent-text: #915d08; /* laranja escuro: texto pequeno e links */
  --accent-press: #e8930a;
  --accent-soft: #fca3111f;
  --on-accent: #14213d;   /* texto sobre o laranja */
  --segmento: #ffffff;
  --topo-bg: #14213dd1;
  --topo-fg: #ffffff;
  --topo-fg-2: #ffffffb8;
  --veu: #14213d73;
  --topo-pilula: #ffffff24;
  --topo-borda: #ffffff33;
  --topo-pilula-2: #ffffff38;
  --sombra: 0 4px 24px #14213d0f, 0 1px 2px #14213d0a;
  --sombra-alta: 0 12px 40px #14213d1f, 0 2px 6px #14213d0f;
  --sombra-segmento: 0 3px 8px #14213d1f, 0 1px 1px #14213d0a;
  --sombra-selo: 0 1px 2px #14213d14;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --rapido: .2s;
  --medio: .3s;
  --raio: 20px;
  --raio-m: 14px;
  --container: 1120px;
}

/* Modo escuro: Black vira a página e Prussian Blue os cartões */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #14213d; --panel: #14213d; --panel-2: #1b2a4b; --panel-3: #22335a;
    --fill: #e5e5e51f; --fill-2: #e5e5e512;
    --ink: #ffffff; --fg: #ffffff; --fg-2: #e5e5e5; --fg-3: #b9c1d0; --fg-4: #9aa4b6;
    --line: #e5e5e51f; --line-2: #e5e5e540; --line-3: #e5e5e566;
    --accent-text: #fca311; --accent-press: #fdb53f; --accent-soft: #fca31124; --on-accent: #14213d;
    --segmento: #2c3d63;
    --topo-bg: #0b1326d1; --veu: #0000008c;
    --sombra: 0 4px 24px #00000066, 0 1px 2px #00000040;
    --sombra-alta: 0 12px 40px #00000080, 0 2px 6px #00000052;
    --sombra-segmento: 0 3px 8px #00000066;
    --sombra-selo: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #14213d; --panel: #14213d; --panel-2: #1b2a4b; --panel-3: #22335a;
  --fill: #e5e5e51f; --fill-2: #e5e5e512;
  --ink: #ffffff; --fg: #ffffff; --fg-2: #e5e5e5; --fg-3: #b9c1d0; --fg-4: #9aa4b6;
  --line: #e5e5e51f; --line-2: #e5e5e540; --line-3: #e5e5e566;
  --accent-text: #fca311; --accent-press: #fdb53f; --accent-soft: #fca31124; --on-accent: #14213d;
  --segmento: #2c3d63;
  --topo-bg: #0b1326d1; --veu: #0000008c;
  --sombra: 0 4px 24px #00000066, 0 1px 2px #00000040;
  --sombra-alta: 0 12px 40px #00000080, 0 2px 6px #00000052;
  --sombra-segmento: 0 3px 8px #00000066;
  --sombra-selo: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* "hidden" sempre esconde, mesmo em elementos com display definido (ex.: caixa de notícias) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.47 var(--sans);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.mudo { color: var(--fg-4); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

main { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Ícones em traço fino e arredondado, no estilo SF Symbols */
.icone { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Toque: todo controle encolhe um pouco ao ser pressionado */
.chip, .acao, .cta, .menu-pdf summary, .lado details summary, .atu__fontes summary {
  transition: transform var(--rapido) var(--ease), background-color var(--rapido) var(--ease), color var(--rapido) var(--ease), box-shadow var(--rapido) var(--ease);
}
.chip:active, .acao:active, .cta:active, .menu-pdf summary:active,
.lado details summary:active, .atu__fontes summary:active { transform: scale(.97); }

/* ---------- Barra superior: fina, translúcida e com desfoque ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--topo-bg); color: var(--topo-fg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.topo__in { max-width: var(--container); margin: 0 auto; height: 52px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.topo__in .logo { grid-column: 1; justify-self: start; }
.logo { font-family: var(--display); font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -.03em; white-space: nowrap; }
.logo span { color: var(--accent); }
.pilulas { grid-column: 2; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--topo-borda); border-radius: 999px; }
.pilulas a { font-size: 13px; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--topo-fg-2); letter-spacing: -.01em; transition: color var(--rapido) var(--ease), background-color var(--rapido) var(--ease); }
.pilulas a:hover { color: var(--topo-fg); }
.pilulas a.ativa { background: var(--topo-pilula); color: var(--topo-fg); }
.menu-pdf { grid-column: 3; justify-self: end; position: relative; }
.menu-pdf summary { list-style: none; cursor: pointer; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--topo-pilula); color: var(--topo-fg); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.menu-pdf summary:hover { background: var(--topo-pilula-2); }
.menu-pdf summary::-webkit-details-marker { display: none; }
.menu-pdf__lista {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 280px; padding: 6px;
  background: var(--card); color: var(--fg); border-radius: var(--raio-m); box-shadow: var(--sombra-alta);
  animation: surgir var(--medio) var(--ease);
}
.menu-pdf__lista a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; }
.menu-pdf__lista a:hover { background: var(--fill-2); }
.menu-pdf__lista small { display: block; color: var(--fg-4); font-size: 13px; font-weight: 400; margin-top: 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 88px 0 72px; align-items: center; }
.sobretitulo { font-size: 15px; font-weight: 600; color: var(--accent-text); letter-spacing: -.01em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 span, h2 .ponto { color: var(--accent); }
.hero__sub { font-size: 21px; line-height: 1.38; color: var(--fg-3); max-width: 540px; margin: 0 0 28px; letter-spacing: -.02em; }
.hero__sub b { color: var(--fg); font-weight: 600; }
.numeros { display: flex; gap: 32px; margin: 0 0 28px; }
.numeros div + div { border-left: 1px solid var(--line-2); padding-left: 32px; }
.numeros dt { font-family: var(--display); font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.numeros dd { margin: 8px 0 0; font-size: 13px; color: var(--fg-4); letter-spacing: -.005em; }
.credito { font-size: 13px; color: var(--fg-4); margin: 0; letter-spacing: -.005em; }

/* Os dois "documentos": cartões brancos sobrepostos, sem rotação */
.hero__docs { position: relative; height: 430px; }
.doc {
  position: absolute; width: 56%; height: 360px; padding: 28px 26px;
  background: var(--card); border-radius: 22px; box-shadow: var(--sombra-alta);
  transition: transform .5s var(--ease);
}
.doc:nth-child(1) { left: 0; top: 10px; }
.doc:nth-child(2) { right: 0; top: 60px; }
.hero__docs:hover .doc:nth-child(1) { transform: translateY(-6px); }
.hero__docs:hover .doc:nth-child(2) { transform: translateY(6px); }
.doc__tipo { font-size: 12px; font-weight: 600; color: var(--fg-4); letter-spacing: -.005em; }
.doc__nome { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 8px 0 4px; }
.doc__partido { font-size: 13px; color: var(--fg-3); }
.doc__linhas {
  margin-top: 26px; height: 140px;
  background: repeating-linear-gradient(to bottom, var(--fill) 0 8px, transparent 8px 20px);
  border-radius: 4px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to right, #000 70%, transparent);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.doc__pags { position: absolute; left: 26px; bottom: 30px; font-size: 13px; color: var(--fg-4); }
.carimbo {
  position: absolute; right: 22px; bottom: 26px;
  border: 1.5px solid var(--accent); color: var(--accent-text); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: -.005em;
}

/* ---------- Aviso e cartões ---------- */
.aviso {
  display: flex; justify-content: space-between; gap: 12px 20px; align-items: center; flex-wrap: wrap;
  padding: 16px 22px; margin: 0 0 64px; border-radius: var(--raio);
  background: var(--accent-soft); font-size: 15px; color: var(--fg-2);
}
.aviso__texto { margin: 0; flex: 1 1 340px; }
.aviso__texto b { color: var(--fg); font-weight: 600; }
.aviso__links { display: flex; flex-wrap: wrap; gap: 8px; }

.cartao { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); padding: 32px 36px; margin-bottom: 72px; }
.cartao__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; padding-bottom: 20px; }
.cartao__topo .mudo { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: -.01em; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.passos li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--raio-m); background: var(--fill-2); }
.passos b { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent-text); line-height: 1; }
.passos h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 6px; }
.passos p { margin: 0; font-size: 15px; color: var(--fg-3); }

/* ---------- Busca no estilo iOS ---------- */
.busca { position: relative; display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 12px; padding: 0 14px; transition: background-color var(--rapido) var(--ease), box-shadow var(--rapido) var(--ease); }
.busca svg { width: 19px; height: 19px; fill: none; stroke: var(--fg-4); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.busca input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 17px var(--sans); letter-spacing: -.022em; color: var(--fg); padding: 12px 0; }
.busca input::placeholder { color: var(--fg-4); }
.busca input::-webkit-search-cancel-button { opacity: .5; }
.busca:focus-within { background: var(--card); box-shadow: 0 0 0 3px var(--accent-soft), var(--sombra); }
.sugestoes {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10; list-style: none; margin: 0; padding: 6px;
  background: var(--card); border-radius: var(--raio-m); box-shadow: var(--sombra-alta);
  animation: surgir var(--rapido) var(--ease);
}
.sugestoes li { padding: 11px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sugestoes li small { color: var(--fg-4); font-size: 13px; white-space: nowrap; }
.sugestoes li[aria-selected="true"], .sugestoes li:hover { background: var(--fill-2); }

/* ---------- Temas: controle segmentado no estilo iOS ---------- */
.chips {
  display: flex; gap: 2px; width: max-content; max-width: 100%; margin: 20px 0 18px; padding: 3px;
  background: var(--fill); border-radius: 12px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; background: transparent; padding: 7px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--fg-2); cursor: pointer; white-space: nowrap; scroll-snap-align: start;
}
.chip:hover { color: var(--fg); }
.chip[aria-selected="true"] { background: var(--segmento); color: var(--fg); font-weight: 600; box-shadow: var(--sombra-segmento); }

.contagem { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--fg-3); }
.comparar__intro { font-size: 19px; color: var(--fg-3); margin: 0 0 16px; letter-spacing: -.02em; }
.nota-ordem { font-size: 13px; color: var(--fg-4); margin: 6px 0 0; }

/* ---------- Seções de tema e cartões ---------- */
.tema { margin-top: 72px; }
.tema__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.tema h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.035em; margin: 0; }
.tema__topo span { font-size: 15px; color: var(--fg-4); white-space: nowrap; }

.topico { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); padding: 28px; margin-top: 20px; transition: box-shadow var(--medio) var(--ease); }
.topico.destaque { box-shadow: 0 0 0 3px var(--accent), var(--sombra-alta); }
.topico__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-4); }
.selo { background: var(--fill); color: var(--fg-2); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.topico h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; margin: 10px 0 20px; }

.lados { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lado { padding: 20px 22px 16px; border-radius: var(--raio-m); background: var(--fill-2); min-width: 0; }
.lado__cab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--fg-2); color: var(--bg); font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lado__id { display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.lado__nome { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.lado__partido { font-size: 13px; color: var(--fg-4); }
.selos { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.selos li { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 5px 10px; border-radius: 999px; color: var(--fg-2); background: var(--card); box-shadow: var(--sombra-selo); }
.selos li::before {
  content: ""; width: 12px; height: 12px; flex: none; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.selos .selo-continua::before, .selos .selo-retoma::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v4.5h-4.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v4.5h-4.5'/%3E%3C/svg%3E");
}
.legenda-selos { font-size: 15px; color: var(--fg-3); margin: 8px 0 0; line-height: 1.47; max-width: 76ch; }
.legenda-selos b { color: var(--fg-2); font-weight: 600; }
.nao-aborda { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--fg-3); }
.lado p { margin: 12px 0 12px; color: var(--fg-2); font-size: 17px; }
.lado .lado__nota { margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--card); font-size: 14px; color: var(--fg-3); }
.lado__nota span { display: block; margin-top: 4px; font-size: 13px; color: var(--fg-4); }
.lado__nota a { color: var(--accent-text); text-decoration: none; }
.lado__nota a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lado details summary {
  cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent-text); list-style: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
}
.lado details summary::after {
  content: ""; width: 12px; height: 12px; background: currentColor; transition: transform var(--medio) var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lado details[open] summary::after { transform: rotate(180deg); }
.lado details summary::-webkit-details-marker { display: none; }
.lado details[open] > :not(summary) { animation: surgir var(--medio) var(--ease); }
.lado blockquote { margin: 10px 0 12px; padding: 16px 18px; background: var(--card); border-radius: 12px; font-size: 16px; line-height: 1.5; color: var(--fg); letter-spacing: -.015em; }
.pagina { font-size: 14px; color: var(--accent-text); text-decoration: none; }
.pagina:hover { text-decoration: underline; text-underline-offset: 3px; }

.noticias { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.noticias:not([hidden]) { animation: surgir var(--medio) var(--ease); }
.noticias > div { padding: 18px 20px; border-radius: var(--raio-m); background: var(--fill-2); }
.noticias h4 { font-size: 13px; color: var(--fg-4); margin: 0 0 4px; font-weight: 600; letter-spacing: -.005em; }
.noticias ul { list-style: none; margin: 0; padding: 0; }
.noticias li { padding: 10px 0; font-size: 15px; }
.noticias li + li { border-top: 1px solid var(--line); }
.noticias li a { text-decoration: none; }
.noticias li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.noticias li small { display: block; color: var(--fg-4); font-size: 13px; margin-top: 2px; }
.noticias__aviso { grid-column: 1 / -1; font-size: 13px; color: var(--fg-4); margin: 0; }

.topico__acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Botões: todos em pílula. Secundário com contorno leve, primário preenchido */
.acao {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 18px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1; color: var(--fg-2); text-decoration: none;
}
.acao:hover { background: var(--fill-2); color: var(--fg); }
.acao[aria-expanded="true"] { background: var(--fill); border-color: transparent; color: var(--fg); }
.acao[data-card], .acao--cheia { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.acao[data-card]:hover, .acao--cheia:hover { background: var(--accent-press); color: var(--on-accent); }

.vazio { text-align: center; padding: 64px 10px; color: var(--fg-3); font-size: 19px; }

/* ---------- Sobre e rodapé ---------- */
.sobre { margin-top: 96px; }
.sobre__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.sobre h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 10px; }
.sobre p { font-size: 15px; color: var(--fg-3); margin: 0 0 12px; }
.sobre a { color: var(--accent-text); }
.rodape { max-width: var(--container); margin: 0 auto; padding: 8px 24px 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg-4); }
.rodape .logo { font-size: 17px; color: var(--fg); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  background: var(--topo-bg); color: var(--topo-fg); padding: 12px 22px; border-radius: 999px; font-size: 15px;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--sombra-alta); animation: surgir var(--medio) var(--ease);
}

/* ---------- Movimento ---------- */
@keyframes surgir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.toast { animation-name: surgir-toast; }
@keyframes surgir-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; min-height: 0; gap: 32px; }
  .hero__docs { height: 250px; }
  .doc { height: 220px; padding: 20px 16px; width: calc(50% - 6px); border-radius: 18px; }
  .doc:nth-child(1) { top: 0; }
  .doc:nth-child(2) { top: 24px; }
  .doc__nome { font-size: 21px; overflow-wrap: anywhere; }
  .doc__partido { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .doc__linhas { height: 60px; margin-top: 16px; }
  .carimbo { display: none; }
  .doc__pags { left: 18px; bottom: 18px; }
  .passos { grid-template-columns: 1fr; }
  .sobre__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  main { padding: 0 16px; }
  .topo__in { padding: 0 16px; gap: 10px; }
  .pilulas { display: none; }
  .menu-pdf summary { min-height: 44px; padding: 0 16px; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 19px; margin-bottom: 24px; }
  .numeros { gap: 18px; }
  .numeros div + div { padding-left: 18px; }
  .numeros dt { font-size: 34px; }
  .aviso { margin-bottom: 48px; }
  .aviso__links { width: 100%; }
  .aviso__links .acao { flex: 1 1 auto; }
  .cartao { padding: 24px 20px; margin-bottom: 56px; }
  .cartao__topo { font-size: 24px; }
  .passos li { padding: 18px; }

  .chips { width: 100%; border-radius: 14px; }
  .chip { min-height: 44px; padding: 0 16px; border-radius: 11px; font-size: 15px; }

  .tema { margin-top: 56px; }
  .tema h2 { font-size: 30px; }
  .topico { padding: 20px 16px; border-radius: 18px; }
  .topico h3 { font-size: 21px; }
  .lados, .noticias { grid-template-columns: 1fr; }
  .lado { padding: 18px 16px 12px; }
  .lado details summary { min-height: 44px; }
  .topico__acoes { flex-wrap: wrap; }
  .acao { min-height: 44px; flex: 1 1 auto; }
  .sobre { margin-top: 64px; }
}

/* Celular estreito: os números não cabem com as linhas, então elas saem */
@media (max-width: 380px) {
  .numeros div + div { border-left: 0; padding-left: 0; }
}
