/*
 * Manual do Eleitor — estilos.
 * Tokens de design copiados do site Vota Odontologia (assets/css/style.css, out/2026)
 * para manter a mesma identidade sem depender dos arquivos da landing page.
 * Este arquivo é carregado somente pela cartilha e não interfere no site.
 */

:root {
  /* — Tokens do site Vota Odontologia — */
  --brand: oklch(42% 0.145 23.6);
  --brand-strong: oklch(33% 0.12 23);
  --brand-deep: oklch(24% 0.09 22);
  --brand-soft: oklch(95% 0.022 20);
  --brand-line: oklch(84% 0.05 22);
  --gold: oklch(80% 0.12 80);

  --ink: oklch(21% 0.02 250);
  --ink-muted: oklch(46% 0.015 250);
  --ink-subtle: oklch(50% 0.012 250);
  --line: oklch(90% 0.008 250);
  --line-strong: oklch(82% 0.012 250);
  --paper: oklch(99% 0.004 95);
  --surface: #fff;
  --surface-sunken: oklch(96.5% 0.007 80);
  --tint: oklch(97.6% 0.012 25);
  --success: oklch(52% 0.13 155);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-raised: 0 1px 2px oklch(21% 0.02 250 / .05), 0 2px 6px oklch(21% 0.02 250 / .04);
  --shadow-overlay: 0 12px 32px oklch(21% 0.02 250 / .12), 0 2px 6px oklch(21% 0.02 250 / .06);
  --shadow-brand: 0 18px 40px oklch(33% 0.12 23 / .28);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 80rem;

  /* — Tokens próprios da cartilha — */
  --header-h: 84px;
  --toc-w: 16.5rem;
  --focus: var(--brand-strong);
  --warn-bg: oklch(96% 0.05 85);
  --warn-line: oklch(85% 0.1 80);
  --warn-ink: oklch(35% 0.08 60);
  --chapter-gap: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .9em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-subtle); }
.noscript { padding: 2rem 0; }
.noscript a { color: var(--brand); }

/* ───────────────────────── Botões (padrão do site) ───────────────────────── */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem;
  padding: .75rem 1.25rem; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 .95rem/1.1 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { transition: transform .25s var(--ease); }
.btn--primary:hover { --bg: var(--brand-strong); box-shadow: var(--shadow-brand); }
.btn--outline { --bg: transparent; --fg: var(--brand); --bd: var(--brand-line); }
.btn--outline:hover { --bg: var(--brand-soft); --bd: var(--brand); }
.btn--ghost { --bg: transparent; --fg: var(--ink-muted); --bd: var(--line-strong); }
.btn--ghost:hover { --fg: var(--brand); --bd: var(--brand-line); --bg: var(--brand-soft); }
.btn--light { --bg: #fff; --fg: var(--brand-strong); }
.btn--light:hover { box-shadow: 0 14px 30px oklch(0% 0 0 / .25); }
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ───────────────────────── Topbar, cabeçalho e barra de status (iguais aos da landing) ───────────────────────── */
.topbar, .header, .status-bar { --container: 76rem; }
.topbar, .status-bar { --focus: var(--gold); }
body.no-scroll { overflow: hidden; }

.topbar { background: #8d0f12; color: #fff; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; opacity: .92; }
.topbar__info a:hover, .topbar__site:hover { opacity: 1; text-decoration: underline; }
.topbar__site { text-decoration: none; font-weight: 600; opacity: .92; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: oklch(100% 0 0 / .9);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px oklch(21% 0.02 250 / .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand__tag {
  padding: .3rem .7rem; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  position: relative; padding: .55rem .8rem; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: oklch(45% 0.01 250); text-decoration: none; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a:not(.btn).is-active { color: var(--brand); }
.nav a:not(.btn):hover::after, .nav a:not(.btn).is-active::after { transform: scaleX(1); }
.nav .btn { margin-left: .75rem; min-height: 0; padding: .6rem 1rem; line-height: 1; white-space: nowrap; }
.nav-toggle { display: none; }

.status-bar { background: var(--brand-deep); color: #fff; font-size: .9rem; }
.status-bar__inner { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 46px; flex-wrap: wrap; padding-block: .4rem; }
.status-bar__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 currentColor; color: oklch(70% 0.15 155 / .6); animation: pulse 1.8s infinite; }
.status-bar[data-state="breve"] .status-bar__pulse { background: var(--gold); color: oklch(80% 0.12 80 / .6); }
.status-bar[data-state="encerrada"] .status-bar__pulse { background: oklch(62% 0.012 250); animation: none; }
.status-bar span[data-status-text] { opacity: .8; }
.status-bar__countdown {
  font-variant-numeric: tabular-nums; font-weight: 700;
  padding: .2rem .7rem; border-radius: var(--radius-pill); background: oklch(100% 0 0 / .1);
}
.status-bar__countdown:empty { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Botão do sumário (celular e tablet): flutuante, fora do cabeçalho */
.toc-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 50;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .5rem 1rem;
  border: 1px solid var(--brand-line); border-radius: var(--radius-pill); background: var(--surface); color: var(--brand-strong);
  font: 700 .85rem var(--font); cursor: pointer; box-shadow: var(--shadow-overlay); transition: background .2s;
}
.toc-toggle:hover { background: var(--brand-soft); }
.toc-toggle__pos {
  padding: .15rem .45rem; border-radius: var(--radius-pill); background: var(--brand); color: #fff;
  font-size: .72rem; font-variant-numeric: tabular-nums;
}
.reading-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.reading-progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), oklch(58% 0.17 30));
}

/* ───────────────────────── Estrutura com sumário ───────────────────────── */
.layout { display: block; }
.layout__aside { display: none; }
.layout__main { min-width: 0; }

.toc__label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.toc__list { list-style: none; display: grid; gap: 2px; }
.toc__link {
  position: relative; display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .4rem;
  min-height: 2.6rem; padding: .45rem .6rem; border-radius: var(--radius-md); text-decoration: none;
  color: var(--ink-muted); font-size: .9rem; font-weight: 500; transition: background .2s, color .2s;
}
.toc__link:hover { background: var(--surface-sunken); color: var(--ink); }
.toc__num { font-size: .78rem; font-weight: 800; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.toc__done { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; color: var(--success); opacity: 0; }
.toc__done svg { width: .9rem; height: .9rem; stroke-width: 2.6; }
.toc__link.is-done .toc__done { opacity: 1; }
.toc__link[aria-current] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.toc__link[aria-current]::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--brand); }
.toc__link[aria-current] .toc__num { color: var(--brand); }
.toc__progress { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-muted); }
.toc__progress strong { color: var(--brand); font-variant-numeric: tabular-nums; }
.toc__bar { display: block; height: 6px; margin-top: .5rem; border-radius: 6px; background: var(--line); overflow: hidden; }
.toc__bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--brand); transition: width .4s var(--ease); }

.toc-drawer {
  width: min(24rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0;
  border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-overlay);
}
.toc-drawer::backdrop { background: oklch(15% 0.03 20 / .55); backdrop-filter: blur(3px); }
.toc-drawer[open] { animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } }
.toc-drawer__head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line);
}
.toc-drawer__title { font-weight: 800; font-size: 1.1rem; }
.toc-drawer__close {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong); cursor: pointer;
}
.toc--drawer { padding: 1.25rem; }
.toc--drawer .toc__label { display: none; }
.toc--drawer .toc__link { min-height: 3rem; font-size: 1rem; }

/* ───────────────────────── Capa ───────────────────────── */
.cover { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.cover__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48rem 32rem at 100% 0%, oklch(93% 0.035 22 / .9), transparent 65%),
    radial-gradient(36rem 26rem at 0% 100%, oklch(95% 0.025 60 / .8), transparent 60%),
    var(--paper);
}
.cover__bg::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(oklch(42% 0.145 23.6 / .14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(60rem 40rem at 70% 30%, #000, transparent 70%);
}
.cover__grid { display: grid; gap: 2.5rem; align-items: center; }
.cover__pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .7rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--brand-line); box-shadow: var(--shadow-raised);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong);
}
.cover__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.cover__title {
  margin-top: 1.25rem; font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem); font-weight: 800; line-height: .95;
  letter-spacing: -.035em; text-transform: uppercase; color: var(--ink);
}
.cover__title em { position: relative; font-style: normal; color: var(--brand); white-space: nowrap; }
.cover__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .13em; z-index: -1;
  background: oklch(84% 0.09 70 / .7); border-radius: 4px;
}
.cover__subtitle { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; line-height: 1.35; color: var(--brand-strong); }
.cover__intro { margin-top: 1.5rem; max-width: 38rem; padding-left: 1rem; border-left: 3px solid var(--brand); font-size: 1.05rem; color: var(--ink); }
.cover__text { margin-top: 1rem; max-width: 38rem; color: var(--ink-muted); }
.cover__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cover__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.cover__facts li { display: grid; padding-left: 1rem; border-left: 2px solid var(--brand-line); }
.cover__facts strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cover__facts span { font-size: .82rem; color: var(--ink-subtle); }

.cover__visual { position: relative; width: 100%; max-width: 30rem; margin-inline: auto; padding: 1rem 0 2.5rem 1.5rem; }
.cover__shape {
  position: absolute; inset: 0 0 1.5rem 3rem; border-radius: 36px; transform: rotate(4deg);
  background: linear-gradient(150deg, var(--brand), var(--brand-deep)); box-shadow: var(--shadow-brand);
}
.cover__card {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: .75rem; max-width: 17rem;
  padding: .8rem 1rem .8rem .8rem; border-radius: var(--radius-lg);
  background: oklch(100% 0 0 / .95); backdrop-filter: blur(10px); box-shadow: var(--shadow-overlay);
}
.cover__card-icon { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--brand); color: #fff; }
.cover__card > span:last-child { display: grid; line-height: 1.3; }
.cover__card strong { font-size: .88rem; }
.cover__card small { font-size: .76rem; color: var(--ink-subtle); }

.cover__bottom {
  display: grid; gap: 1.75rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised);
}
.cover__label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.cover__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: .85rem; }
.cover__logos img { height: 44px; width: auto; }
.cover__inst-text { margin-top: .85rem; font-size: .92rem; color: var(--ink-muted); max-width: 26rem; }
.cover__edition { margin-top: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink-subtle); }
.cover__howto { list-style: none; display: grid; gap: 1rem; }
.cover__howto li { display: flex; gap: .85rem; align-items: flex-start; }
.cover__howto li > span:last-child { display: grid; gap: .15rem; font-size: .9rem; color: var(--ink-muted); }
.cover__howto strong { color: var(--ink); font-size: .95rem; }

/* ───────────────────────── Capítulos ───────────────────────── */
.chapter { padding-block: var(--chapter-gap); border-top: 1px solid var(--line); }
.layout__main > .chapter:first-child { border-top: 0; }
.chapter > * + * { margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }
.chapter__head { display: grid; gap: .5rem; }
.chapter__num {
  font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-weight: 800; line-height: .85; letter-spacing: -.05em;
  color: var(--brand-line);
}
@supports (-webkit-text-stroke: 1px black) {
  .chapter__num { color: transparent; -webkit-text-stroke: 2px var(--brand); opacity: .9; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: oklch(88% 0.08 60); }
.chapter__head h2 { margin-top: .6rem; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; max-width: 22ch; }
.chapter__lead { margin-top: 1rem; max-width: 42rem; font-size: 1.1rem; color: var(--ink-muted); }
.subhead { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.subhead + * { margin-top: 1.25rem !important; }

.icon-badge {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: 0 8px 18px oklch(33% 0.12 23 / .25);
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; }
.icon-badge--soft { background: var(--brand-soft); color: var(--brand); box-shadow: none; border: 1px solid var(--brand-line); }

.fonte { display: flex; align-items: flex-start; gap: .4rem; margin-top: .9rem; font-size: .76rem; line-height: 1.45; color: var(--ink-subtle); }
.fonte svg { width: .95rem; height: .95rem; margin-top: .05rem; }
.fonte__rotulo { font-weight: 700; letter-spacing: .03em; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; color: var(--brand); font-weight: 600; font-size: .92rem; text-underline-offset: 3px; }
.text-link svg { width: 1rem; height: 1rem; }

/* Avisos */
.callout { display: flex; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); font-size: .95rem; }
.callout__icon { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; border-radius: 12px; }
.callout__icon svg { width: 1.3rem; height: 1.3rem; }
.callout__title { font-weight: 800; margin-bottom: .2rem; }
.callout--info { background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-strong); }
.callout--info .callout__icon { background: var(--surface); color: var(--brand); }
.callout--alerta { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.callout--alerta .callout__icon { background: oklch(91% 0.08 85); color: oklch(45% 0.12 60); }
.callout--alerta .callout__body > p:last-child { font-size: 1.02rem; font-weight: 600; color: oklch(30% 0.07 55); }
.callout--marca { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: var(--shadow-brand); }
.callout--marca .callout__icon { background: oklch(100% 0 0 / .14); }
.callout--marca .callout__title { color: oklch(88% 0.08 60); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.callouts-3 { display: grid; gap: 1rem; }

/* Cartões e painéis */
.cards-3 { display: grid; gap: 1.25rem; }
.info-card {
  position: relative; overflow: hidden; padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.info-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-overlay); border-color: var(--brand-line); }
.info-card:hover::before { transform: scaleX(1); }
.info-card__num { position: absolute; top: 1.1rem; right: 1.4rem; font-size: 3.25rem; font-weight: 800; line-height: 1; color: var(--brand-soft); letter-spacing: -.04em; }
.info-card h3 { font-size: 1.25rem; margin: 1.25rem 0 .55rem; }
.info-card p:not(.fonte) { color: var(--ink-muted); }
.info-card strong { color: var(--ink); }

.panel { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised); }
.panel h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; }
.panel h3 svg { color: var(--brand); }
.panel > p:not(.fonte):not(.highlight-pill) { margin-top: .6rem; color: var(--ink-muted); }
.panel--soft { background: var(--tint); border-color: oklch(92% 0.02 25); box-shadow: none; }
.panel--soft .icon-badge { margin-bottom: 1rem; }
.split { display: grid; gap: 1.25rem; align-items: start; }
.alpha-list { margin-top: 1rem; padding-left: 1.4rem; display: grid; gap: .55rem; color: var(--ink-muted); }
.alpha-list li::marker { color: var(--brand); font-weight: 800; }
.alpha-list strong { color: var(--ink); }
.highlight-pill {
  display: flex; align-items: flex-start; gap: .55rem; margin-top: 1.1rem; padding: .75rem .9rem; border-radius: var(--radius-md);
  background: var(--brand); color: #fff; font-size: .92rem; font-weight: 700; line-height: 1.35; box-shadow: 0 8px 18px oklch(33% 0.12 23 / .25);
}
.highlight-pill svg { width: 1.1rem; height: 1.1rem; margin-top: .05rem; color: oklch(88% 0.08 70); }

.mini-cards { display: grid; gap: 1rem; }
.mini-card { padding: 1.35rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.mini-card__icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.mini-card h4 { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: 1.05rem; }
.mini-card__n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; }
.mini-card p:not(.fonte) { margin-top: .4rem; font-size: .93rem; color: var(--ink-muted); }

/* Caminho do voto (capítulo 2) */
.path-block { display: grid; gap: 1.75rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-xl); background: var(--tint); }
.path-block h3 { font-size: 1.3rem; }
.path { list-style: none; display: grid; gap: .75rem; margin-top: 1.25rem; }
.path__step { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.path__step:not(:last-child)::after {
  content: ""; position: absolute; left: 2.1rem; bottom: -.8rem; width: 2px; height: .8rem; background: var(--brand-line);
}
.path__icon { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; }
.path__icon svg { width: 1.2rem; height: 1.2rem; }
.path__body { display: grid; gap: .1rem; font-size: .9rem; color: var(--ink-muted); }
.path__body strong { color: var(--ink); font-size: .98rem; }
.path__n { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--brand); text-transform: uppercase; }
.path__n::before { content: "Etapa "; }

/* ───────────────────────── Espaços reservados para imagens ───────────────────────── */
.slot {
  position: relative; overflow: hidden; aspect-ratio: var(--ratio, 16 / 9); width: 100%;
  border-radius: var(--radius-lg); background: var(--surface-sunken);
}
.slot__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, oklch(100% 0 0 / .9), transparent 55%),
    radial-gradient(oklch(42% 0.145 23.6 / .13) 1.2px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(140deg, var(--brand-soft), oklch(96% 0.02 60));
  border: 1px solid oklch(90% 0.025 22);
  border-radius: inherit;
}
.slot__ph::before, .slot__ph::after {
  content: ""; position: absolute; border-radius: 50%; border: 1.5px solid oklch(42% 0.145 23.6 / .14);
  width: min(62%, 15rem); aspect-ratio: 1;
}
.slot__ph::after { width: min(42%, 10rem); border-style: dashed; border-color: oklch(42% 0.145 23.6 / .2); }
.slot__ph-art {
  position: relative; z-index: 1; display: grid; place-items: center; width: min(30%, 6.5rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: 0 10px 30px oklch(33% 0.12 23 / .16);
}
.slot__ph-art svg { width: 46%; height: 46%; stroke-width: 1.5; }
.slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--fit, cover); opacity: 0; transition: opacity .5s var(--ease); }
.slot.has-image .slot__img { opacity: 1; }
.slot.has-image .slot__ph { display: none; }
.slot.has-image { background: #fff; }
.slot--cover.has-image { background: radial-gradient(circle at 30% 25%, #fff, transparent 60%), linear-gradient(160deg, #fff, var(--brand-soft)); }
.slot--cover { --ratio: 4 / 5; border-radius: 32px; box-shadow: 0 30px 60px oklch(21% 0.02 250 / .2); }
.slot--cover .slot__ph { background: radial-gradient(circle at 30% 25%, #fff, transparent 60%), radial-gradient(oklch(42% 0.145 23.6 / .13) 1.2px, transparent 1.2px) 0 0 / 18px 18px, linear-gradient(160deg, #fff, var(--brand-soft)); }
.slot--screen { --fit: contain; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-raised); }
.slot--wide { box-shadow: var(--shadow-raised); }
.slot--dark .slot__ph { background: radial-gradient(circle at 30% 25%, oklch(100% 0 0 / .12), transparent 60%), radial-gradient(oklch(100% 0 0 / .12) 1.2px, transparent 1.2px) 0 0 / 18px 18px, linear-gradient(140deg, oklch(30% 0.1 22), oklch(22% 0.07 22)); border-color: oklch(100% 0 0 / .12); }
.slot--dark .slot__ph::before, .slot--dark .slot__ph::after { border-color: oklch(100% 0 0 / .16); }
.slot--dark .slot__ph-art { background: oklch(100% 0 0 / .1); color: #fff; box-shadow: none; }
.slot__spec { display: none; }

/* ───────────────────────── Capítulo 3 · Preparação ───────────────────────── */
.prep { display: grid; gap: 1.5rem; align-items: start; }
.prep__side { display: grid; gap: 1.25rem; }
.checklist {
  padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised);
}
.checklist__head { display: grid; gap: .65rem; margin-bottom: 1.25rem; }
.checklist__title { font-size: 1.25rem; font-weight: 800; }
.checklist__meter { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.checklist__meter span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--brand), oklch(58% 0.17 30)); transition: width .4s var(--ease); }
.checklist.is-complete .checklist__meter span { background: var(--success); }
.checklist__count { font-size: .88rem; font-weight: 600; color: var(--ink-muted); }
.checklist.is-complete .checklist__count { color: var(--success); }
.checklist__list { list-style: none; display: grid; gap: .6rem; }
.check {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
  padding: .9rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.check:hover { border-color: var(--brand-line); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.check__box {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: .05rem; border-radius: 7px;
  border: 2px solid var(--brand-line); background: var(--surface); color: transparent; transition: background .2s, border-color .2s, color .2s;
}
.check__box svg { width: 1.05rem; height: 1.05rem; stroke-width: 3; }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check.is-checked { background: var(--brand-soft); border-color: var(--brand-line); }
.check__body { display: grid; gap: .15rem; }
.check__title { font-weight: 700; }
.check__text { font-size: .9rem; color: var(--ink-muted); }
.checklist__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.checklist__note { display: flex; gap: .45rem; align-items: flex-start; font-size: .8rem; color: var(--ink-subtle); max-width: 32rem; }
.checklist__note svg { width: .95rem; height: .95rem; margin-top: .15rem; }

.deadline {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.5rem 1.25rem 1.25rem 1.5rem; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, oklch(97% 0.03 80), oklch(95% 0.05 75)); border: 1px solid var(--warn-line);
}
.deadline::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--brand), oklch(72% 0.16 60)); }
.deadline__badge {
  position: relative; display: grid; justify-items: center; width: 5.25rem; padding: .85rem .4rem .6rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--brand-line); border-top: 7px solid var(--brand); box-shadow: var(--shadow-overlay);
}
.deadline__badge::before, .deadline__badge::after {
  content: ""; position: absolute; top: -.75rem; width: .32rem; height: .85rem; border-radius: 99px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface);
}
.deadline__badge::before { left: 28%; }
.deadline__badge::after { right: 28%; }
.deadline__badge strong { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--brand); }
.deadline__badge span { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); text-align: center; }
.deadline__label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: oklch(48% 0.12 55); }
.deadline h3 { margin-top: .3rem; font-size: 1.1rem; font-weight: 800; }
.deadline__body > p:not(.deadline__label):not(.fonte) { margin-top: .45rem; color: var(--ink-muted); font-size: .92rem; }

/* ───────────────────────── Capítulo 4 · Acesso ───────────────────────── */
.pre-steps { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-xl); background: var(--tint); }
.pre-steps__title { font-size: 1.1rem; }
.pre-steps__list { list-style: none; display: grid; gap: .85rem; margin-top: 1rem; counter-reset: pre; }
.pre-steps__list li { display: flex; gap: .85rem; align-items: flex-start; }
.pre-steps__list li > span:last-child { display: grid; gap: .1rem; font-size: .92rem; color: var(--ink-muted); }
.pre-steps__list strong { color: var(--ink); font-size: 1rem; }
.pre-steps__n { display: grid; place-items: center; flex: 0 0 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--brand); font-weight: 800; }

.access-cards { display: grid; gap: 1rem; }
.access-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-raised); transition: border-color .3s, box-shadow .3s;
}
.access-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.access-card:hover, .access-card.is-open { border-color: var(--brand-line); box-shadow: var(--shadow-overlay); }
.access-card.is-open::before, .access-card:hover::before { transform: scaleY(1); }
.access-card__main { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: start; padding: 1.35rem; }
.access-card__opt { grid-column: 1 / -1; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.access-card__text h3 { font-size: 1.3rem; }
.access-card__resumo { margin-top: .3rem; font-weight: 600; }
.access-card__when { margin-top: .5rem; font-size: .93rem; color: var(--ink-muted); }
.access-card__when strong { color: var(--ink); }
.access-card__flag {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; padding: .35rem .75rem; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700;
}
.access-card__flag svg { width: 1rem; height: 1rem; }
.access-card__toggle {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  padding: .55rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--brand-line); background: var(--surface);
  color: var(--brand); font: 700 .9rem var(--font); cursor: pointer; transition: background .2s, border-color .2s;
}
.access-card__toggle:hover { background: var(--brand-soft); border-color: var(--brand); }
.access-card__toggle svg { transition: transform .3s var(--ease); }
.access-card__toggle[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.access-card__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.access-card__details { display: grid; gap: 1.5rem; padding: 1.35rem; border-top: 1px solid var(--line); background: oklch(99% 0.006 25); }
.access-card__steps h4 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.access-card__steps h4 + * { margin-top: .75rem; }
.access-card__steps > * + h4 { margin-top: 1.4rem; }

.numbered { list-style: none; display: grid; gap: .7rem; counter-reset: num; }
.numbered li { position: relative; padding-left: 2.4rem; counter-increment: num; }
.numbered li::before {
  content: counter(num); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .82rem; font-weight: 800;
}
.tips { list-style: none; display: grid; gap: .6rem; }
.tips li { display: flex; gap: .55rem; font-size: .92rem; color: var(--ink-muted); }
.tips svg { width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--brand); }

/* ───────────────────────── Capítulo 5 · Assembleia ───────────────────────── */
.timeline { list-style: none; position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; left: 1.2rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; }
.timeline__marker {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-top: 1rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand-line); color: var(--brand); font-weight: 800; transition: background .4s, color .4s, border-color .4s;
}
.timeline__item.is-reached .timeline__marker { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline__card { padding: 1.25rem 1.35rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised); }
.timeline__head { display: flex; gap: .85rem; align-items: center; margin-bottom: .65rem; }
.timeline__icon { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.timeline__step { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.timeline__card h3 { font-size: 1.15rem; }
.timeline__card > p:not(.fonte) { color: var(--ink-muted); }
.timeline__card strong { color: var(--ink); }

.flow-block { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised); }
.flow-block__intro h3 { font-size: 1.3rem; }
.flow-block__intro > p { margin-top: .5rem; color: var(--ink-muted); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; padding: .3rem; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--line); }
.segmented__btn {
  min-height: 2.75rem; padding: .5rem 1rem; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--ink-muted); font: 600 .88rem var(--font); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.segmented__btn:hover { color: var(--brand); }
.segmented__btn[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 6px 14px oklch(33% 0.12 23 / .25); }
.segmented__btn[aria-pressed="true"]::before { content: "✓ "; }
.flow-block__desc { margin-top: .9rem; padding: .75rem 1rem; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-strong); font-size: .93rem; font-weight: 500; }

.flow { display: grid; justify-items: center; padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: var(--tint); }
.flow__node {
  display: grid; justify-items: center; min-width: 11rem; padding: .7rem 1.1rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1.5px solid var(--line-strong); font-weight: 700; font-size: .92rem; text-align: center;
  transition: opacity .35s, border-color .35s;
}
.flow__node small { font-weight: 600; font-size: .75rem; color: var(--ink-muted); }
.flow__node--start { border-color: var(--brand); color: var(--brand-strong); }
.flow__node--final { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.flow__arrow { position: relative; display: block; width: 2px; height: 1.6rem; background: var(--brand-line); }
.flow__arrow::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 8px; height: 8px; border-right: 2px solid var(--brand-line); border-bottom: 2px solid var(--brand-line); transform: translateX(-50%) rotate(45deg); }
.flow__decision {
  display: grid; place-items: center; width: 7rem; height: 7rem; margin-block: .25rem;
  background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; transform: rotate(45deg) scale(.8);
}
.flow__decision span { transform: rotate(-45deg); font-weight: 800; font-size: .95rem; color: var(--brand-strong); text-align: center; line-height: 1.2; }
.flow__branches { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; max-width: 32rem; margin-top: .25rem; }
.flow__lane {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .4rem; padding: .85rem .6rem 1rem;
  border-radius: var(--radius-lg); border: 1.5px dashed var(--line-strong); background: oklch(100% 0 0 / .5);
  transition: opacity .35s, border-color .35s, background .35s;
}
.flow__tag { padding: .2rem .7rem; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.flow__line { width: 2px; height: 1.2rem; background: var(--line-strong); }
.flow__skip { font-size: .82rem; font-style: italic; color: var(--ink-muted); }
.flow__lane .flow__node { min-width: 0; width: 100%; }
.flow[data-cenario-ativo="com"] .flow__lane--com,
.flow[data-cenario-ativo="sem"] .flow__lane--sem { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.flow[data-cenario-ativo="com"] .flow__lane--com .flow__tag,
.flow[data-cenario-ativo="sem"] .flow__lane--sem .flow__tag { background: var(--brand); }
.flow[data-cenario-ativo="com"] .flow__lane--com .flow__line,
.flow[data-cenario-ativo="sem"] .flow__lane--sem .flow__line { background: var(--brand); }
.flow[data-cenario-ativo="com"] .flow__lane--sem,
.flow[data-cenario-ativo="sem"] .flow__lane--com { opacity: .38; }
.flow__lane::after {
  content: "Caminho deste cenário"; display: none; margin-top: .2rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
}
.flow[data-cenario-ativo="com"] .flow__lane--com::after,
.flow[data-cenario-ativo="sem"] .flow__lane--sem::after { display: block; }
.flow__end { display: grid; justify-items: center; }

.room { display: grid; gap: 1.5rem; align-items: center; }
.room__copy h3 { font-size: 1.3rem; }
.check-list { list-style: none; display: grid; gap: .65rem; margin-top: 1rem; }
.check-list li { display: flex; gap: .6rem; color: var(--ink-muted); font-size: .95rem; }
.check-list svg { width: 1.2rem; height: 1.2rem; margin-top: .15rem; color: var(--success); }
.check-list strong { color: var(--ink); }
.room__caption { margin-top: 1rem; font-size: .78rem; font-style: italic; color: var(--ink-subtle); }

/* ───────────────────────── Capítulo 6 · Votação aberta ───────────────────────── */
.open-grid { display: grid; gap: 1.25rem; align-items: center; }
.duration {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: .6rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(22rem 14rem at 100% 0, oklch(55% 0.16 25 / .55), transparent 60%), linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: var(--shadow-brand); --focus: var(--gold);
}
.duration__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: oklch(100% 0 0 / .14); }
.duration__icon svg { width: 1.6rem; height: 1.6rem; }
.duration__label { margin-top: .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: oklch(88% 0.08 60); }
.duration__value { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.duration__text { font-size: 1.15rem; font-weight: 600; line-height: 1.45; max-width: 30rem; }
.duration__note { margin-top: .5rem; padding-top: .9rem; border-top: 1px solid oklch(100% 0 0 / .18); font-size: .85rem; color: oklch(100% 0 0 / .78); }

.assembly-panel { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-overlay); }
.assembly-panel__head { display: grid; gap: 1rem; align-items: end; }
.assembly-panel__head h3 { margin-top: .4rem; font-size: 1.35rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field select {
  height: 3rem; padding: 0 2.6rem 0 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1418' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 1.1rem;
  font: 500 1rem var(--font); color: var(--ink); appearance: none; cursor: pointer; min-width: min(100%, 17rem);
}
.field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--brand); }
.assembly-panel__empty { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-lg); background: var(--surface-sunken); border: 1px dashed var(--line-strong); color: var(--ink-muted); font-size: .93rem; }
.assembly-panel__empty svg { color: var(--brand); }
.assembly-panel__grid { display: grid; gap: 1px; margin-top: 1.25rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--line); border: 1px solid var(--line); }
.assembly-panel__item { display: grid; gap: .3rem; align-content: start; padding: 1rem 1.15rem; background: var(--surface); }
.assembly-panel__item dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.assembly-panel__item dd { display: grid; gap: .15rem; font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; }
.assembly-panel__item dd strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.assembly-panel__item dd small { font-size: .8rem; color: var(--ink-subtle); text-transform: none; }
.assembly-panel__item dd a:not(.text-link) { color: var(--brand); font-weight: 600; }
.assembly-panel__item dd .text-link { margin-top: .3rem; }
.assembly-panel__source { display: flex; gap: .45rem; align-items: flex-start; margin-top: 1rem; font-size: .8rem; color: var(--ink-subtle); }
.assembly-panel__source svg { width: 1rem; height: 1rem; margin-top: .1rem; }
.trouble ul { margin-top: .9rem; }

/* ───────────────────────── Capítulo 7 · Urna ───────────────────────── */
.sequence { list-style: none; display: grid; gap: 1.25rem; counter-reset: seq; }
.sequence__step { display: grid; gap: .9rem; align-content: start; }
.sequence__copy { position: relative; padding-left: 3rem; }
.sequence__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.sequence__copy h3 { font-size: 1.15rem; line-height: 2.3rem; }
.sequence__copy p { font-size: .92rem; color: var(--ink-muted); }

.key {
  display: inline-grid; place-items: center; min-width: 4.5rem; padding: .3rem .55rem; border-radius: 5px;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; box-shadow: inset 0 -2px 0 oklch(0% 0 0 / .18);
}
.key--num { background: #2f333a; color: #fff; }
.key--confirma { background: oklch(50% 0.14 150); color: #fff; }
.key--corrige { background: oklch(72% 0.16 60); color: oklch(25% 0.05 50); }
.key--branco { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.key--nulo { background: #6b7280; color: #fff; }

.keys-block { display: grid; gap: 1.5rem; align-items: start; }
.keys-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: .93rem; background: var(--surface); }
.keys-table th, .keys-table td { padding: .8rem 1rem; text-align: left; vertical-align: middle; }
.keys-table thead th { background: var(--brand-soft); color: var(--brand-strong); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.keys-table tbody th, .keys-table tbody td { border-top: 1px solid var(--line); }
.keys-table td { color: var(--ink-muted); }

/* Urna de demonstração: reproduz a cabine do Sistema Eleitoral. */
.sim {
  margin-block: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--brand-line); box-shadow: var(--shadow-overlay);
  scroll-margin-top: 6rem;
}
.sim__head { max-width: 44rem; }
.sim__head > p:last-child { margin-top: .5rem; color: var(--ink-muted); }
.sim__selo {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .75rem; padding: .3rem .75rem; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand-strong); border: 1px solid var(--brand-line);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.sim__selo .ico { width: 1rem; height: 1rem; }
.sim__head .subhead + p { margin-top: .5rem !important; }

.sim__urna {
  display: grid; gap: 1rem; margin-top: 1.5rem; padding: clamp(.75rem, 2vw, 1.25rem); border-radius: 18px;
  background: #e4e2de; border: 1px solid #d2cfca; box-shadow: inset 0 1px 0 #fff, 0 14px 30px oklch(21% 0.02 250 / .12);
}
.sim__urna:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sim__visor {
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  display: flex; flex-direction: column; min-height: 19rem; padding: 1.1rem 1.25rem; border-radius: 10px;
  background: oklch(95.5% 0.012 250); border: 1px solid oklch(84% 0.02 250); color: var(--ink);
}
/* Marca d'água: fica atrás do conteúdo do visor, que é redesenhado a cada tecla. */
.sim__visor::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='130'%3E%3Ctext x='115' y='65' text-anchor='middle' dominant-baseline='middle' transform='rotate(-24 115 65)' font-family='Inter, Arial, sans-serif' font-size='13' font-weight='800' letter-spacing='3' fill='%237a1418' fill-opacity='.075'%3ESIMULA%C3%87%C3%83O%3C/text%3E%3C/svg%3E") repeat;
}
.sim__visor::after {
  content: "SIMULAÇÃO"; content: "SIMULAÇÃO" / "";
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none;
  font: 900 clamp(1.9rem, 10.5cqi, 4.5rem)/1 var(--font, sans-serif); letter-spacing: .14em;
  color: oklch(42% 0.145 23.6 / .05); -webkit-text-stroke: 2px oklch(42% 0.145 23.6 / .16);
  transform: rotate(-24deg); white-space: nowrap;
}
.sim__titulo { padding-bottom: .55rem; border-bottom: 2px solid var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sim__corpo { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding-block: 1rem; }
.sim__numero { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.sim__caixa {
  display: inline-grid; place-items: center; width: 2.6rem; height: 3rem; margin-left: .1rem; border-radius: 4px;
  background: #fff; border: 1.5px solid oklch(70% 0.02 250); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.sim__caixa.is-atual { border-color: var(--ink); animation: sim-cursor 1s steps(2) infinite; }
@keyframes sim-cursor { 50% { border-color: oklch(70% 0.02 250); } }
.sim__instrucao { margin: auto; text-align: center; font-size: 1.15rem; color: var(--ink-muted); }
.sim__instrucao small { display: block; margin-top: .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-subtle); }
.sim__chapa { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.sim__sigla { display: grid; place-items: center; width: 4.5rem; height: 5.5rem; background: #fff; border: 1px solid oklch(70% 0.02 250); font-size: 1.25rem; font-weight: 800; color: var(--ink-muted); }
.sim__chapa p { font-size: 1rem; }
.sim__chapa .sim__desc { font-size: .88rem; color: var(--ink-muted); }
.sim__chapa ul { margin: .45rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.sim__alerta, .sim__grande { margin: auto; text-align: center; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.sim__alerta { color: oklch(48% 0.17 28); }
.sim__alerta small { display: block; max-width: 22rem; margin-top: .4rem; font-size: .88rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.sim__rodape { padding-top: .65rem; border-top: 1px solid oklch(84% 0.02 250); font-size: .84rem; color: var(--ink-muted); }
.sim__rodape b { color: var(--ink); }
.sim__fim { display: grid; gap: .75rem; justify-items: start; }
.sim__ok { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 800; color: oklch(42% 0.13 150); }
.sim__ok .ico { width: 1.5rem; height: 1.5rem; }
.sim__ok small { font-size: .8rem; font-weight: 600; color: var(--ink-subtle); }
.sim__comprovante { display: grid; gap: .35rem; width: 100%; margin: 0; padding: .8rem 1rem; border-radius: 8px; background: #fff; border: 1px dashed oklch(70% 0.02 250); font-size: .9rem; }
.sim__comprovante div { display: flex; justify-content: space-between; gap: 1rem; }
.sim__comprovante dt { color: var(--ink-muted); }
.sim__comprovante dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sim__nota { font-size: .84rem; color: var(--ink-muted); }

.sim__teclado { display: grid; gap: .6rem; align-content: center; padding: .9rem; border-radius: 12px; background: #24272c; }
.sim__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.sim__nums [data-tecla="0"] { grid-column: 2; }
.sim__acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.sim__acoes [data-tecla="nulo"] { grid-column: 1 / -1; }
.sim__tecla {
  min-height: 3.1rem; border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 800;
  box-shadow: inset 0 -3px 0 oklch(0% 0 0 / .28); transition: transform .08s, filter .15s;
}
.sim__tecla--num { background: #3b4048; color: #fff; font-size: 1.3rem; }
.sim__tecla--branco, .sim__tecla--corrige, .sim__tecla--confirma, .sim__tecla--nulo { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.sim__tecla--branco { background: #fff; color: var(--ink); }
.sim__tecla--corrige { background: oklch(72% 0.16 60); color: oklch(25% 0.05 50); }
.sim__tecla--confirma { background: oklch(50% 0.14 150); color: #fff; }
.sim__tecla--nulo { background: #6b7280; color: #fff; }
.sim__tecla:hover { filter: brightness(1.12); }
.sim__tecla:active, .sim__tecla.is-pressed { transform: translateY(2px); box-shadow: inset 0 -1px 0 oklch(0% 0 0 / .28); }
.sim__tecla:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sim__urna.is-fim .sim__teclado { opacity: .55; }

.sim .btn { min-height: 2.75rem; }
.sim__msg { min-height: 1.5rem; margin-top: .75rem; font-size: .9rem; font-weight: 600; color: oklch(48% 0.17 28); }
.sim__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.sim__dica { display: flex; gap: .5rem; max-width: 40rem; font-size: .88rem; color: var(--ink-muted); }
.sim__dica .ico { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--brand); }
.sim__dica kbd { padding: .05rem .35rem; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface-sunken); font: inherit; font-size: .8rem; font-weight: 700; }

/* ───────────────────────── Capítulo 8 · Branco e nulo ───────────────────────── */
.vote-types { display: grid; gap: 1.25rem; }
.vote-type {
  display: grid; gap: 1.1rem; align-content: start; padding: 1.35rem; border-radius: var(--radius-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-raised);
}
.vote-type .slot { max-width: 10rem; }
.vote-type__body .key { min-width: 0; }
.vote-type h3 { margin-top: .7rem; font-size: 1.35rem; }
.vote-type dl { display: grid; gap: .25rem; margin-top: .75rem; }
.vote-type dt { margin-top: .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.vote-type dd { color: var(--ink-muted); }
.vote-type dd strong { color: var(--ink); }
.vote-type__extra { display: flex; gap: .5rem; margin-top: 1rem; padding: .75rem .85rem; border-radius: var(--radius-md); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: .88rem; }
.vote-type__extra svg { width: 1.1rem; height: 1.1rem; margin-top: .1rem; }
.result { display: flex; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-xl); background: var(--brand-soft); border: 1px solid var(--brand-line); border-left: 6px solid var(--brand); }
.result__icon { display: grid; place-items: center; flex: 0 0 3rem; height: 3rem; border-radius: 14px; background: var(--surface); color: var(--brand); }
.result h3 { font-size: 1.2rem; color: var(--brand-strong); }
.result p:not(.fonte) { margin-top: .5rem; color: var(--ink); }
.result__summary { font-weight: 700; color: var(--brand-strong) !important; }

/* ───────────────────────── Capítulo 9 · Sigilo (destaque escuro) ───────────────────────── */
.chapter--dark {
  --focus: var(--gold);
  margin-block: 1rem; padding-inline: clamp(1.25rem, 4vw, 3rem); border-radius: var(--radius-xl); border-top: 0; color: #fff;
  background:
    radial-gradient(30rem 20rem at 100% 0, oklch(55% 0.16 25 / .45), transparent 60%),
    linear-gradient(160deg, var(--brand-deep), oklch(19% 0.06 22));
  box-shadow: var(--shadow-brand);
}
.layout__main > .chapter--dark + .chapter { border-top: 0; }
.chapter--dark .chapter__num { color: oklch(100% 0 0 / .2); -webkit-text-stroke-color: oklch(88% 0.08 60); }
.chapter--dark .eyebrow { color: oklch(88% 0.08 60); }
.chapter--dark .chapter__lead { color: oklch(100% 0 0 / .78); }
.chapter--dark .fonte { color: oklch(100% 0 0 / .62); }
.secret { display: grid; gap: 1.5rem; align-items: center; }
.secret__title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; color: oklch(88% 0.08 60); }
.secret__title + * { margin-top: 1rem; }
.tiles { list-style: none; display: grid; gap: .7rem; }
.tile { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: oklch(100% 0 0 / .07); border: 1px solid oklch(100% 0 0 / .12); }
.tile__icon { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: 12px; background: oklch(100% 0 0 / .12); color: #fff; }
.tile > span:last-child { display: grid; gap: .15rem; font-size: .9rem; color: oklch(100% 0 0 / .78); }
.tile strong { color: #fff; font-size: 1rem; }
.chapter--dark .pager__link { background: oklch(100% 0 0 / .07); border-color: oklch(100% 0 0 / .14); color: #fff; }
.chapter--dark .pager__link small { color: oklch(100% 0 0 / .65); }
.chapter--dark .pager__link:hover { background: oklch(100% 0 0 / .14); border-color: oklch(100% 0 0 / .3); }

/* ───────────────────────── Capítulo 10 · Finalização ───────────────────────── */
.final-grid { display: grid; gap: 1.5rem; align-items: start; }
.final-grid__side { display: grid; gap: 1.25rem; }
.steps { list-style: none; display: grid; gap: .75rem; }
.step {
  display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.step:hover { box-shadow: var(--shadow-overlay); border-color: var(--brand-line); }
.step__num { grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-size: 1.1rem; font-weight: 800; transition: background .3s, color .3s; }
.step:hover .step__num { background: var(--brand); color: #fff; }
.step h3 { font-size: 1.05rem; margin: .1rem 0 .25rem; }
.step p { color: var(--ink-muted); font-size: .93rem; }
.after h3 svg { color: var(--brand); }

/* ───────────────────────── Capítulo 11 · Atendimento ───────────────────────── */
.help-cards { display: grid; gap: 1rem; }
.help-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-raised); }
.help-card h3 { margin-top: .4rem; font-size: 1.12rem; }
.help-card > p:not(.help-card__channel) { font-size: .92rem; color: var(--ink-muted); }
.help-card__channel { display: flex; gap: .45rem; align-items: flex-start; padding: .6rem .75rem; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: .85rem; }
.help-card__channel > span { display: grid; min-width: 0; }
.help-card__channel strong { font-weight: 700; }
.help-card__channel span span { color: var(--ink-muted); overflow-wrap: anywhere; }
.help-card__channel svg { width: 1rem; height: 1rem; margin-top: .15rem; color: var(--brand); }
.help-card__extra { list-style: none; display: grid; gap: .45rem; font-size: .85rem; color: var(--ink-muted); }
.help-card__extra li { display: grid; grid-template-columns: auto 1fr; gap: .45rem; }
.help-card__extra li > .pend { grid-column: 1 / -1; }
.help-card__extra svg { width: 1rem; height: 1rem; margin-top: .15rem; color: var(--brand); }
.help-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.help-cards__art { display: grid; place-items: center; }
.help-cards__art .slot { max-width: 22rem; box-shadow: var(--shadow-raised); border: 1px solid var(--line); }
/* Mesmo tom do fundo da ilustração, para a área livre acima e abaixo dela não formar emenda. */
.help-cards__art .slot.has-image { background: #fefcfb; }

.faq { display: grid; gap: 1.5rem; align-items: start; }
.faq__intro h3 { margin-top: .5rem; font-size: 1.6rem; }
.faq__list { display: grid; gap: .65rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--brand-line); box-shadow: var(--shadow-raised); }
.faq-item summary { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.15rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem; border-radius: var(--radius-lg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__num { flex: 0 0 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 10px; background: var(--surface-sunken); color: var(--brand); font-size: .85rem; font-weight: 800; transition: background .3s, color .3s; }
.faq-item[open] .faq-item__num { background: var(--brand); color: #fff; }
.faq-item__q { flex: 1; }
.faq-item__icon { position: relative; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--brand-soft); transition: background .3s, transform .3s var(--ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: .8rem; height: 2px; background: var(--brand); translate: -50% -50%; border-radius: 2px; transition: rotate .3s var(--ease), background .3s; }
.faq-item__icon::after { rotate: 90deg; }
.faq-item[open] .faq-item__icon { background: var(--brand); transform: rotate(180deg); }
.faq-item[open] .faq-item__icon::before, .faq-item[open] .faq-item__icon::after { background: #fff; }
.faq-item[open] .faq-item__icon::after { rotate: 0deg; }
.faq-item__answer { padding: 0 1.15rem 1.25rem; color: var(--ink-muted); font-size: .96rem; }
.faq-item__answer > * + * { margin-top: .8rem; }
.faq-item__answer strong { color: var(--ink); font-weight: 600; }
.faq-item__answer a { color: var(--brand); font-weight: 500; text-underline-offset: 3px; }
.faq-item__answer ul, .faq-item__answer ol { padding-left: 1.25rem; display: grid; gap: .45rem; }
.faq-item__answer li::marker { color: var(--brand); font-weight: 700; }
.faq-item__answer kbd { display: inline-block; padding: .05rem .4rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font: 600 .8rem var(--font); color: var(--ink); }

/* ───────────────────────── Navegação entre capítulos ───────────────────────── */
.pager { display: grid; gap: .75rem; padding-top: .5rem; }
.pager__link {
  display: flex; align-items: center; gap: .85rem; min-height: 4rem; padding: .85rem 1.1rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.pager__link:hover { border-color: var(--brand-line); box-shadow: var(--shadow-overlay); transform: translateY(-2px); }
.pager__link > span { display: grid; flex: 1; line-height: 1.3; }
.pager__link small { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.pager__link strong { font-size: .98rem; }
.pager__link svg { color: var(--brand); }
.pager__link--next { text-align: right; }
.chapter--dark .pager__link svg { color: oklch(88% 0.08 60); }

/* ───────────────────────── Encerramento (capítulo 12) ───────────────────────── */
.closing { --focus: var(--gold); position: relative; overflow: hidden; padding-block: clamp(4rem, 3rem + 4vw, 7rem); color: #fff;
  background:
    radial-gradient(40rem 26rem at 100% 0, oklch(55% 0.16 25 / .5), transparent 60%),
    radial-gradient(30rem 22rem at 0% 100%, oklch(40% 0.12 23 / .6), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand-deep));
}
.closing::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(oklch(100% 0 0 / .18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(50rem 30rem at 80% 20%, #000, transparent 70%);
}
.closing__inner { position: relative; display: grid; gap: 2.25rem; }
.closing__head { max-width: 46rem; }
.closing__head h2 { margin-top: .75rem; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.closing__head > p:not(.eyebrow) { margin-top: 1.25rem; font-size: 1.12rem; color: oklch(100% 0 0 / .85); }
.ref-links { list-style: none; display: grid; gap: .75rem; }
.ref-link {
  display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.15rem; border-radius: var(--radius-lg);
  background: oklch(100% 0 0 / .08); border: 1px solid oklch(100% 0 0 / .16); text-decoration: none; transition: background .25s, transform .3s var(--ease);
}
a.ref-link:hover { background: oklch(100% 0 0 / .16); transform: translateY(-2px); }
.ref-link__icon { display: grid; place-items: center; flex: 0 0 2.6rem; height: 2.6rem; border-radius: 12px; background: oklch(100% 0 0 / .14); }
.ref-link__body { display: grid; flex: 1; gap: .1rem; min-width: 0; }
.ref-link__body small { color: oklch(100% 0 0 / .72); font-size: .85rem; }
.closing__note { display: flex; gap: .55rem; align-items: flex-start; max-width: 46rem; padding: 1rem 1.15rem; border-radius: var(--radius-lg); background: oklch(0% 0 0 / .18); font-size: .95rem; font-weight: 600; }
.closing__note svg { margin-top: .1rem; color: oklch(88% 0.08 60); }
.closing .btn { justify-self: start; }

/* ───────────────────────── Rodapé (padrão do site) ───────────────────────── */
.footer { --focus: var(--gold); background: oklch(18% 0.03 20); color: oklch(100% 0 0 / .75); padding-top: 3.5rem; font-size: .93rem; }
.footer__grid { display: grid; gap: 2.25rem; padding-bottom: 2.75rem; }
.footer__brand img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { margin-top: 1.1rem; max-width: 28rem; }
.footer__edition { font-size: .82rem; color: oklch(100% 0 0 / .6); }
.footer h2 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer nav { display: grid; gap: .5rem; align-content: start; }
.footer nav a { text-decoration: none; padding-block: .15rem; }
.footer nav a:hover, .footer__bottom a:hover { color: #fff; }
.footer .btn { margin-top: 1.1rem; }
.footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1.5rem; border-top: 1px solid oklch(100% 0 0 / .1); font-size: .85rem; }
.footer__bottom a { text-decoration: none; }

/* Voltar ao topo */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-strong); }

/* ───────────────────────── Modo de revisão (?revisao=1) ───────────────────────── */
.pend { background: oklch(94% 0.09 95); outline: 2px dashed oklch(70% 0.15 80); outline-offset: 2px; border-radius: 4px; color: var(--ink); }
.pend__nota { display: block; margin-top: .3rem; padding: .35rem .5rem; border-radius: 4px; background: oklch(98% 0.03 95); color: oklch(32% 0.08 60); font-size: .78rem; font-weight: 500; line-height: 1.4; text-align: left; letter-spacing: 0; text-transform: none; }
.pend__nota b { display: inline-block; margin-right: .3rem; padding: 0 .35rem; border-radius: 3px; background: oklch(70% 0.15 80); color: oklch(20% 0.05 60); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.pend--bloco { display: block; margin-top: .8rem; padding: .25rem; }
.pend--simples { padding: 0 .2rem; }
.is-revisao .slot { outline: 2px dashed oklch(70% 0.15 80); outline-offset: 3px; }
.is-revisao .slot__spec {
  position: absolute; left: .5rem; bottom: .5rem; z-index: 2; display: block; max-width: calc(100% - 1rem); padding: .35rem .55rem; border-radius: 6px;
  background: oklch(94% 0.09 95 / .95); color: oklch(28% 0.07 60); font: 600 .68rem/1.35 var(--mono); text-align: left;
}
.help-card__extra .is-pendente { opacity: .85; }
.review { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; max-width: calc(100vw - 2rem); font-size: .85rem; }
.review__toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .55rem 1rem; border: 0; border-radius: var(--radius-pill); background: oklch(78% 0.15 80); color: oklch(22% 0.06 60); font: 800 .85rem var(--font); cursor: pointer; box-shadow: var(--shadow-overlay); }
.review__panel { width: min(26rem, calc(100vw - 2rem)); max-height: 65vh; overflow: auto; margin-bottom: .6rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid oklch(78% 0.15 80); box-shadow: var(--shadow-overlay); position: absolute; bottom: 100%; left: 0; }
.review__title { font-weight: 800; font-size: 1rem; }
.review__info { margin-top: .4rem; color: var(--ink-muted); font-size: .8rem; }
.review__list { margin-top: .75rem; padding-left: 1.25rem; display: grid; gap: .55rem; }
.review__list a { display: grid; gap: .1rem; color: var(--ink); text-decoration: none; font-size: .8rem; line-height: 1.4; }
.review__list a:hover { color: var(--brand); text-decoration: underline; }
.review__list small { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }

/* ───────────────────────── Entrada suave ───────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────────────────────── Responsivo (mobile first) ───────────────────────── */
@media (min-width: 480px) {
  .vote-type { grid-template-columns: 9.5rem 1fr; align-items: start; }
  .vote-type .slot { max-width: none; }
}

@media (min-width: 640px) {
  .cards-3, .mini-cards, .callouts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { grid-template-columns: 1fr 1fr; }
  .assembly-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-cards__art { grid-column: 2; grid-row: 2 / span 2; }
  .help-cards__art .slot { max-width: none; height: 100%; aspect-ratio: auto; min-height: 20rem; }
  .ref-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: row; }
  .tiles--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path__step:not(:last-child)::after { display: none; }
}

@media (min-width: 720px) {
  .chapter__head { grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; }
  .chapter__num { margin-top: .35rem; }
  .access-card__main { grid-template-columns: auto 1fr auto; align-items: center; }
  .access-card__toggle { grid-column: auto; align-self: center; }
  .access-card__opt { grid-column: 2 / -1; margin-bottom: -.6rem; }
  .flow__end { grid-auto-flow: column; align-items: center; gap: .5rem; }
  .flow__end .flow__arrow { height: 2px; width: 1.6rem; }
  .flow__end .flow__arrow::after { left: auto; right: -1px; bottom: 50%; transform: translateY(50%) rotate(-45deg); }
  .flow__end .flow__node { min-width: 0; }
  .room { grid-template-columns: 1.1fr 1fr; }
  .split { grid-template-columns: 1.2fr 1fr; }
  .assembly-panel__head { grid-template-columns: 1fr auto; }
  .assembly-panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .open-grid { grid-template-columns: 1.15fr 1fr; }
}

@media (min-width: 860px) {
  .access-card__details { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prep { grid-template-columns: 1.35fr 1fr; }
  .final-grid { grid-template-columns: 1.3fr 1fr; }
  .keys-block { grid-template-columns: 1.3fr 1fr; }
  .sim__urna { grid-template-columns: 1.25fr 1fr; }
  .vote-types { grid-template-columns: 1fr 1fr; }
  .vote-type { grid-template-columns: 1fr; }
  .vote-type .slot { max-width: 12rem; }
  .secret { grid-template-columns: 1.3fr 1fr; }
  .faq { grid-template-columns: .75fr 1.25fr; }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .path-block { grid-template-columns: 1fr 1fr; }
  .path { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .cover__grid { grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .cover__visual { max-width: none; padding: 1.5rem 0 3rem 2.5rem; }
  .cover__bottom { grid-template-columns: .9fr 1.6fr; align-items: center; }
  .cover__howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-cards:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callouts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr); }
  .help-cards__art { grid-column: 3; grid-row: 1 / span 2; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 1100px) {
  .layout { display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4.5rem); }
  .layout__aside { display: block; }
  .toc { position: sticky; top: calc(var(--header-h) + 1.75rem); max-height: calc(100vh - var(--header-h) - 3.5rem); overflow: auto; padding: 2.25rem 0 1rem; }
  .toc-toggle { display: none; }
  .ref-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cabeçalho: mesmos pontos de quebra da landing */
@media (max-width: 1320px) {
  .brand__tag { display: none; }
  .nav a:not(.btn) { padding-inline: .6rem; }
}
@media (max-width: 1100px) {
  .nav a:not(.btn) { padding-inline: .45rem; font-size: .74rem; letter-spacing: .04em; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 40px; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-md);
    background: var(--brand-soft); cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--brand); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-overlay);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem .25rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 1rem 0 0; min-height: 2.75rem; }
}
@media (max-width: 600px) {
  .topbar__info a, .topbar__site { display: none !important; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 340px) {
  /* Mantém "Sumário" como nome acessível, sem ocupar espaço visual. */
  .toc-toggle > span:not(.toc-toggle__pos) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

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

/* ───────────────────────── Impressão ───────────────────────── */
@media print {
  .topbar, .header, .status-bar, .toc-toggle, .layout__aside, .toc-drawer, .to-top, .review, .pager, .cover__actions, .footer nav, .footer .btn, .slot:not(.has-image), .cover__shape, .cover__card, .sim { display: none !important; }
  .slot { break-inside: avoid; max-width: 32rem; box-shadow: none !important; }
  body { background: #fff; font-size: 11pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .layout { display: block; }
  .chapter { break-before: page; padding-block: 1.5rem; }
  .chapter--dark, .closing, .duration, .callout--marca { background: #fff !important; color: var(--ink) !important; box-shadow: none; border: 1px solid var(--line); }
  .chapter--dark *, .closing *, .duration *, .callout--marca * { color: var(--ink) !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: var(--ink-muted); }
}
