/* Voto Livre — folha de estilos única */
@import url('fonts.css');

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f1f4f9;
  --paper-3: #e4e9f2;
  --ink: #172033;
  --ink-2: #4a5468;
  --ink-3: #5f697d;
  --line: #cfd6e3;
  --blue: #1e4db7;
  --blue-deep: #143a8f;
  --blue-tint: #e3ebfa;
  --blue-tint-2: #c7d6f5;
  --yellow: #fff1b8;
  --yellow-ink: #6b4e00;
  --red: #b42318;
  --red-tint: #fdecea;
  --green: #1b7a4b;
  --green-tint: #e3f4ea;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Helvetica Neue', Arial, sans-serif;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;

  --measure: 66ch;
  --gutter: 1rem;
  --max: 72rem;
  --radius: 4px;
  --nav-h: 3.75rem;
  --tabbar-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-bottom: calc(var(--tabbar-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 60em) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
code, kbd { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: var(--paper-2); padding: 0 .3em; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); z-index: 100; }
.skip:focus { left: var(--s3); top: var(--s3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--s4); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.2vw, 3.6rem); font-weight: 800; font-stretch: 90%; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
h4 { font-size: 1.1rem; font-family: var(--body); letter-spacing: 0; }
p, ul, ol { margin: 0 0 var(--s4); max-width: var(--measure); }
li { margin-bottom: var(--s2); }
li::marker { color: var(--blue); font-weight: 700; }
.lead { font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
strong { font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.section { padding-block: var(--s7); }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding-block: var(--s6); }
.grid { display: grid; gap: var(--s5); }
@media (min-width: 48em) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: var(--s4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); height: var(--nav-h); }
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); }
.brand-mark { width: 1.75rem; height: 1.75rem; background: var(--blue); color: #fff; display: grid; place-items: center; border-radius: 3px; font-size: .9rem; }
.brand-mark svg { width: 1.1rem; height: 1.1rem; }
.nav-desktop { display: none; gap: var(--s5); }
.nav-desktop a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue-deep); }
.nav-desktop .nav-cta { background: var(--blue); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--radius); border: 0; }
.nav-desktop .nav-cta:hover { background: var(--blue-deep); color: #fff; }
.menu-btn { background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s2) var(--s3); font-weight: 700; display: inline-flex; gap: var(--s2); align-items: center; cursor: pointer; }
@media (min-width: 60em) { .nav-desktop { display: flex; align-items: center; } .menu-btn { display: none; } }

/* Menu em tela cheia (mobile) */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: var(--s4) var(--gutter) var(--s8); display: none; overflow: auto; }
.menu[data-open="true"] { display: block; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); border-bottom: 2px solid var(--ink); margin-bottom: var(--s5); }
.menu ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.menu li { margin: 0; border-bottom: 1px solid var(--line); }
.menu nav a { display: block; padding: var(--s4) 0; font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.menu nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; }
.menu .menu-note { margin-top: var(--s5); }
body[data-menu-open="true"] { overflow: hidden; }

/* Barra de abas inferior (mobile) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--paper); border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 700; line-height: 1; }
.tabbar a svg { width: 1.4rem; height: 1.4rem; }
.tabbar a[aria-current="page"] { color: var(--blue-deep); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.4; }
.tabbar .tab-cta { color: #fff; background: var(--blue); }
.tabbar .tab-cta[aria-current="page"] { background: var(--blue-deep); color: #fff; }
@media (min-width: 60em) { .tabbar { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s7) var(--s6); }
.hero h1 { max-width: 20ch; margin-bottom: var(--s5); }
.hero h1 .u { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .1em; }
.hero .lead { max-width: 52ch; }
.hero-ribbon { display: inline-block; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: .9rem; padding: .3em .7em; margin-bottom: var(--s4); border-radius: 2px; }
@media (min-width: 60em) { .hero { padding-block: var(--s8) var(--s7); } }

/* Triagem: duas portas grandes */
.triage { display: grid; gap: var(--s3); margin-top: var(--s6); }
@media (min-width: 48em) { .triage { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.door { display: block; position: relative; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s5) var(--s5) var(--s5); background: var(--paper); min-height: 11rem; transition: background .15s ease; }
.door:hover, .door:focus-visible { background: var(--blue-tint); color: var(--ink); }
.door .door-kicker { font-size: .95rem; color: var(--ink-2); margin-bottom: var(--s2); }
.door h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin-bottom: var(--s3); font-weight: 800; }
.door p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.door .door-go { position: absolute; right: var(--s4); bottom: var(--s4); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.door .door-go svg { width: 1.2rem; height: 1.2rem; }
.door-third { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; border: 2px dashed var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); text-decoration: none; color: var(--ink); margin-top: var(--s3); }
.door-third:hover { border-color: var(--blue); background: var(--blue-tint); }
.door-third strong { font-family: var(--display); font-size: 1.15rem; }
@media (min-width: 48em) { .door-third { grid-column: 1 / -1; } }

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); background: var(--blue); color: #fff; border: 2px solid var(--blue); padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; min-height: 2.75rem; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-sm { padding: .4rem .75rem; min-height: 2.25rem; font-size: .9rem; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.notice { border-left: 5px solid var(--blue); background: var(--blue-tint); padding: var(--s4) var(--s5); border-radius: 0 var(--radius) var(--radius) 0; margin-block: var(--s5); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-warn { border-left-color: #c9a000; background: var(--yellow); }
.notice-danger { border-left-color: var(--red); background: var(--red-tint); }
.notice-ok { border-left-color: var(--green); background: var(--green-tint); }
.notice h3, .notice h4 { margin-bottom: var(--s2); }

/* Passo a passo numerado (é sequência de fato) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 var(--s6); max-width: none; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--blue); padding-top: .15rem; }
.steps h3 { margin-bottom: var(--s2); }
.steps p:last-child, .steps ul:last-child { margin-bottom: 0; }
.steps .step-urgent::before { color: var(--red); }

/* Checklist interativo */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s4); max-width: none; }
.checklist li { margin: 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist label { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--s3); padding: var(--s3) var(--s2); cursor: pointer; align-items: start; }
.checklist label:hover { background: var(--paper-2); }
.checklist input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--blue); }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line); }
.checklist-progress { font-weight: 700; color: var(--blue-deep); margin-bottom: var(--s3); }

/* Cartões de canal */
.channels { display: grid; gap: var(--s3); max-width: none; padding: 0; list-style: none; }
@media (min-width: 48em) { .channels { grid-template-columns: 1fr 1fr; } }
.channel { border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: var(--s4) var(--s5); border-radius: 0 0 var(--radius) var(--radius); margin: 0; background: var(--paper); display: flex; flex-direction: column; gap: var(--s2); }
.channel h3 { font-size: 1.15rem; margin: 0; }
.channel p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.channel .channel-meta { font-size: .9rem; color: var(--ink-2); }
.channel .channel-links { margin-top: auto; padding-top: var(--s2); display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15em .55em; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); }
.tag-ok { background: var(--green-tint); color: var(--green); }
.tag-blue { background: var(--blue-tint); color: var(--blue-deep); }

/* Tabela */
.table-wrap { overflow-x: auto; margin-bottom: var(--s5); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: var(--s3) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 700; border-bottom: 2px solid var(--ink); }
tbody tr:hover { background: var(--paper-2); }

/* Modelo de texto (copiável) */
.doc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); position: relative; }
.doc pre { white-space: pre-wrap; font-family: var(--body); font-size: .98rem; line-height: 1.55; margin: 0; }
.doc-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.doc mark { background: var(--yellow); color: var(--yellow-ink); padding: 0 .15em; border-radius: 2px; }

/* Seletor de estado */
.uf-picker { display: grid; gap: var(--s3); align-items: end; margin-bottom: var(--s5); }
@media (min-width: 40em) { .uf-picker { grid-template-columns: minmax(12rem, 20rem) auto; } }
label.field { display: block; font-weight: 700; margin-bottom: var(--s2); }
select, input[type="text"], input[type="search"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: .65rem .8rem; min-height: 2.9rem;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23172033' stroke-width='2.5'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem; }
textarea { min-height: 9rem; resize: vertical; }
.hint { font-size: .9rem; color: var(--ink-2); margin-top: var(--s1); }
.field-group { margin-bottom: var(--s5); }
.field-error { color: var(--red); font-weight: 700; font-size: .92rem; margin-top: var(--s1); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.radio-row { display: grid; gap: var(--s2); }
.radio-row label { display: grid; grid-template-columns: 1.4rem 1fr; gap: var(--s3); align-items: start; border: 2px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); cursor: pointer; }
.radio-row label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.radio-row input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--blue); }
.radio-row span small { display: block; color: var(--ink-2); font-weight: 400; }
.radio-row span { font-weight: 700; }
.char-count { font-size: .85rem; color: var(--ink-3); text-align: right; }

/* Acordeão / FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: var(--s4) 0; font-weight: 700; font-family: var(--display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; width: .7rem; height: .7rem; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); flex: none; transition: transform .15s ease; margin-right: .3rem; }
details[open] summary::after { transform: rotate(-135deg); }
details > div { padding-bottom: var(--s4); }
details > div > p:last-child { margin-bottom: 0; }

/* Mapa em grade (cartograma) */
.tilemap { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; max-width: 34rem; margin-inline: auto; aspect-ratio: 9 / 8; }
.tile { grid-column: var(--c); grid-row: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 3px; background: var(--paper-3); color: var(--ink); font-family: var(--display); font-weight: 700; line-height: 1; position: relative; border: 0; padding: 0; cursor: pointer; min-height: 2.4rem; }
.tile .tile-uf { font-size: clamp(.6rem, 2.3vw, .9rem); }
.tile .tile-n { font-size: clamp(.65rem, 2.6vw, 1rem); font-weight: 800; margin-top: 2px; }
.tile[data-level="0"] { background: var(--paper-3); color: var(--ink-2); }
.tile[data-level="1"] { background: #d6e2f8; }
.tile[data-level="2"] { background: #a9c1ee; }
.tile[data-level="3"] { background: #6f93dc; color: var(--ink); }
.tile[data-level="4"] { background: #3863c4; color: #fff; }
.tile[data-level="5"] { background: #1a3f91; color: #fff; }
.tile:hover, .tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; z-index: 2; }
.tile[aria-pressed="true"] { outline: 3px solid var(--ink); z-index: 2; }
.legend { display: flex; align-items: center; gap: var(--s2); justify-content: center; margin-top: var(--s4); font-size: .85rem; color: var(--ink-2); flex-wrap: wrap; }
.legend .sw { width: 1.5rem; height: .75rem; border-radius: 2px; display: inline-block; }
.map-detail { border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s4) var(--s5); margin-top: var(--s5); min-height: 6rem; }
.map-detail h3 { margin-bottom: var(--s2); }
.map-detail dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin: 0; }
.map-detail dt { color: var(--ink-2); }
.map-detail dd { margin: 0; font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1; font-weight: 800; color: var(--blue-deep); }
.stat span { font-size: .85rem; color: var(--ink-2); }

/* Deputados */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
@media (min-width: 48em) { .filters { grid-template-columns: 1fr 1fr 1.4fr; align-items: end; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: .35rem .85rem; font-weight: 700; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-deep); }
.chip[aria-pressed="true"]::before { content: '✓ '; }
.dep-group { margin-bottom: var(--s6); }
.dep-group h2 { position: sticky; top: var(--nav-h); background: var(--paper); padding: var(--s3) 0; margin: 0 0 var(--s3); border-bottom: 2px solid var(--ink); z-index: 5; font-size: 1.35rem; display: flex; justify-content: space-between; align-items: baseline; }
.dep-group h2 small { font-family: var(--body); font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.dep-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: var(--s2); }
@media (min-width: 48em) { .dep-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72em) { .dep-list { grid-template-columns: 1fr 1fr 1fr; } }
.dep { display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--s3); align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin: 0; }
.dep img { width: 3.25rem; height: 3.25rem; object-fit: cover; object-position: top; border-radius: 3px; background: var(--paper-3); }
.dep .dep-name { font-weight: 700; line-height: 1.2; }
.dep .dep-party { font-size: .85rem; color: var(--ink-2); }
.dep .dep-links { display: flex; gap: var(--s2); margin-top: var(--s2); flex-wrap: wrap; }
.dep .dep-links a { font-size: .85rem; font-weight: 700; text-decoration: none; border: 1.5px solid var(--blue-tint-2); background: var(--blue-tint); color: var(--blue-deep); padding: .2rem .55rem; border-radius: 999px; display: inline-flex; gap: .3em; align-items: center; }
.dep .dep-links a:hover { background: var(--blue-tint-2); }
.dep .dep-links svg { width: .9em; height: .9em; }
.empty { padding: var(--s6); text-align: center; color: var(--ink-2); border: 2px dashed var(--line); border-radius: var(--radius); }

/* Rodapé */
footer { border-top: 2px solid var(--ink); padding-block: var(--s6) var(--s7); margin-top: var(--s7); font-size: .95rem; color: var(--ink-2); }
footer .wrap { display: grid; gap: var(--s5); }
@media (min-width: 48em) { footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
footer h4 { margin-bottom: var(--s2); color: var(--ink); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--blue-deep); }

/* Faixa de emergência */
.emergency { background: var(--ink); color: #fff; padding: var(--s3) 0; font-size: .95rem; }
.emergency .wrap { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.emergency strong { color: #fff; }
.emergency a { color: #fff; font-weight: 700; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--s4)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: var(--radius); font-weight: 700; z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast[data-show="true"] { opacity: 1; }
@media (min-width: 60em) { .toast { bottom: var(--s5); } }

/* Índice lateral em páginas longas */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s6); background: var(--paper-2); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 48em) { .toc ol { columns: 2; column-gap: var(--s6); } }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }

.page-head { padding-block: var(--s6) var(--s5); border-bottom: 2px solid var(--ink); margin-bottom: var(--s6); }
.page-head p { margin-bottom: 0; }
.breadcrumb { font-size: .9rem; color: var(--ink-2); margin-bottom: var(--s3); }
.breadcrumb a { color: var(--ink-2); }

.callout-law { border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s4) var(--s5); background: var(--paper); }
.callout-law cite { display: block; font-style: normal; font-weight: 700; margin-top: var(--s2); font-size: .9rem; color: var(--ink-2); }
.callout-law blockquote { margin: 0; font-size: 1.05rem; }

.prose > * + * { margin-top: var(--s4); }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 60em) { .two-col { grid-template-columns: 1fr 18rem; align-items: start; } .two-col > aside { position: sticky; top: calc(var(--nav-h) + var(--s4)); } }
.mt { margin-top: var(--s4); }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.cases { list-style: none; padding: 0; margin: 0 0 var(--s5); max-width: none; display: grid; gap: var(--s3); }
@media (min-width: 48em) { .cases { grid-template-columns: 1fr 1fr; } }
.case { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4) var(--s5); margin: 0; }
.case h3 { font-size: 1.05rem; margin-bottom: var(--s2); }
.case p { font-size: .98rem; margin-bottom: var(--s2); color: var(--ink-2); }
.case .case-result { color: var(--ink); font-weight: 700; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend { padding: 0; margin-bottom: var(--s2); font-weight: 700; display: block; width: 100%; }

.legend .tile { min-height: 0; cursor: default; }
.map-table-title { margin-top: var(--s7); }
.hero-grid { display: grid; gap: var(--s6); }
@media (min-width: 60em) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; } }

.send-grid { display: grid; gap: var(--s3); margin: var(--s4) 0 var(--s3); }
@media (min-width: 40em) { .send-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.send-grid .btn { width: 100%; }

.legend-item { display: inline-flex; align-items: center; gap: .3rem; }
.map-detail h2 { font-size: 1.3rem; margin-bottom: var(--s2); }
[inert] { pointer-events: none; }
html:not(.js) .js-only { display: none; }
noscript .notice { margin-top: var(--s4); }
