/* Estilos partilhados pelos dois sites. A cor de destaque vem de --accent,
   definida em cada data.js (campo "cor"). */
:root {
  --ink: #161d33;
  --muted: #5b6579;
  --paper: #f8f6f1;
  --card: #ffffff;
  --line: #e4e0d6;
  --soft: #f0f1f6;
  --night: #121930;
  --accent: #d9573f;
  --accent-ink: #ffffff;
  --accent-soft: #f3ece8;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--card));
  --accent-light: #ffffff;
  --accent-light: color-mix(in srgb, var(--accent) 42%, #ffffff);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 29, 51, .05), 0 10px 28px rgba(22, 29, 51, .07);
  --shadow-lg: 0 2px 4px rgba(22, 29, 51, .06), 0 24px 60px rgba(22, 29, 51, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf4; --muted: #a2abbe; --paper: #0f131c; --card: #181e2b;
    --line: #2a3344; --soft: #141925; --night: #0b0f1a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--card); padding: 10px 14px; border-radius: 8px; }

/* ---------- Topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
/* Logótipo: caixa do boletim com a cruz + «Lista B» */
.mark { flex: none; width: 44px; height: 44px; }
.mark rect { fill: #fff; stroke: var(--night); stroke-width: 3.6; }
.mark path { fill: none; stroke: var(--accent); stroke-width: 5.4; stroke-linecap: round; }
.logo-txt { display: flex; flex-direction: column; min-width: 0; }
.logo-txt b { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.logo-txt b i, .ballot .who b i { font-style: normal; color: var(--accent); }
.logo-txt span { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-txt em { font-style: normal; }
.on-dark .mark rect { stroke: #fff; }
.on-dark .logo-txt b { color: #fff; }
.on-dark .logo-txt b i { color: var(--accent-light); }
.on-dark .logo-txt span { color: rgba(255,255,255,.76); }
@media (prefers-color-scheme: dark) {
  .mark rect { stroke: #fff; }
  .logo-txt b i { color: var(--accent-light); }
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: var(--accent); background: var(--accent-soft); }
.nav a.cta { background: var(--accent); color: var(--accent-ink); margin-left: 8px; padding: 9px 16px; }
.nav a.cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 76px 0 132px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 75% at 88% 8%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); flex: none; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.05; letter-spacing: -.022em; margin: 0 0 22px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; color: rgba(255,255,255,.8); max-width: 620px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.light { background: #fff; color: #121930; }
.btn.outline { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn.outline:hover { background: rgba(255,255,255,.1); }

.vote-card { border-radius: 24px; padding: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.vote-card .lbl { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.7); margin: 4px 4px 12px; }
.ballot { display: flex; align-items: center; gap: 16px; background: #fff; color: #121930; border-radius: 16px; padding: 16px 18px; }
.ballot .mark { width: 58px; height: 58px; }
.ballot .mark rect { stroke: #121930; }
.ballot .who { min-width: 0; }
.ballot .who b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.05; }
.ballot .who span { display: block; font-size: 13px; color: #5b6579; line-height: 1.35; margin-top: 2px; }
.vote-card .date { font-size: 18px; font-weight: 700; margin: 18px 4px 10px; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.countdown div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 6px; text-align: center; }
.countdown b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { color: rgba(255,255,255,.7); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.countdown .done { grid-column: 1 / -1; font-weight: 700; padding: 14px; }
.ics { display: inline-block; margin: 14px 4px 2px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); text-underline-offset: 3px; }
.ics:hover { color: #fff; }

/* ---------- Faixa de números ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 24px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--accent); letter-spacing: -.01em; }
.stat span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Secções ---------- */
section.block { padding: 92px 0; }
section.alt { background: var(--soft); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--accent); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.018em; text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }

.prio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
/* 5 pilares: 3 em cima + 2 em baixo, a toda a largura (sem cartão solto) */
.prio-grid.n5, .prio-grid.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.prio-grid.n5 .prio, .prio-grid.n6 .prio { grid-column: span 2; }
.prio-grid.n5 .prio:nth-child(n+4) { grid-column: span 3; }
.prio { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.prio:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.prio .n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft);
  font-family: var(--serif); font-size: 22px; color: var(--accent); font-weight: 700; line-height: 1; }
.prio h3 { margin: 18px 0 8px; font-size: 19px; line-height: 1.3; }
.prio p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Manifesto ---------- */
.manifesto { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.manifesto .side { position: sticky; top: 104px; align-self: start; }
.manifesto blockquote { margin: 0 0 24px; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.9vw, 34px); line-height: 1.25;
  letter-spacing: -.01em; border-left: 4px solid var(--accent); padding-left: 22px; text-wrap: balance; }
.manifesto blockquote.long { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.manifesto .body > p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.manifesto .body h3 { margin: 30px 0 10px; }
.manifesto .body ul { padding-left: 20px; }
.msecs { margin: 26px 0; }
.msec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.msec[open] { box-shadow: var(--shadow); border-color: var(--accent); }
.msec summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 17px; line-height: 1.35; list-style: none; display: flex; align-items: center; gap: 14px; }
.msec summary::-webkit-details-marker { display: none; }
.msec summary .i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 16px; }
.msec summary .t { flex: 1; }
.msec summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.msec[open] summary::after { transform: rotate(225deg); }
.msec summary:hover { background: var(--soft); }
.msec-body { padding: 4px 22px 20px 68px; }
.msec-body p { font-size: 16px; margin: 0 0 12px; }
.msec-body h4 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.mitems { list-style: none; padding: 0; margin: 8px 0 0; }
.mitems li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 16px; line-height: 1.6; }
.mitems li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Candidatos ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.search { flex: 1 1 280px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.search:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.group-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 18px; font-family: var(--serif); font-size: 24px; }
.group-title small { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.group-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cand { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: var(--card); color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cand:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.av-wrap { position: relative; flex: none; }
.av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); }
.av img { width: 76px; height: 76px; object-fit: cover; object-position: center 18%; }
.av .ini { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); }
.ord { position: absolute; right: -4px; bottom: -2px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; border: 2px solid var(--card); }
.cand .meta { min-width: 0; flex: 1; }
.cand .meta b { display: block; font-size: 15.5px; line-height: 1.3; }
.cand .meta .cat { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.tag { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; }
.cand .go { flex: none; color: var(--muted); opacity: .45; font-size: 20px; transition: opacity .15s, color .15s, transform .15s; }
.cand:hover .go { color: var(--accent); opacity: 1; transform: translateX(3px); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Ficha (modal) ---------- */
dialog { border: 0; border-radius: 22px; padding: 0; max-width: 680px; width: calc(100% - 32px); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog::backdrop { background: rgba(10, 14, 26, .62); }
.dlg-wrap { position: relative; }
.dlg { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.dlg .ph { position: relative; background: var(--accent-soft); display: grid; place-items: center; min-height: 250px; overflow: hidden; }
.dlg .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.dlg .ph .ini { font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--accent); }
.dlg .txt { padding: 28px 30px 26px 26px; max-height: 80vh; overflow: auto; }
.dlg .role { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; margin-bottom: 10px; }
.dlg h3 { margin: 0 36px 6px 0; font-family: var(--serif); font-size: 25px; line-height: 1.18; }
.dlg .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.dlg p { margin: 0 0 12px; font-size: 15.5px; }
.dlg a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.dlg-wrap .close { position: absolute; top: 12px; right: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 20px; line-height: 1; }
.dlg-wrap .close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Eleição ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.info { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.info .ic svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.info .k { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--muted); }
.info .v { font-size: 17px; font-weight: 700; margin-top: 3px; line-height: 1.3; }
.info p { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; }
.docs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 28px; padding: 52px;
  display: flex; justify-content: space-between; gap: 28px; align-items: center; flex-wrap: wrap; }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.contact > * { position: relative; }
.contact h2 { font-family: var(--serif); margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
.contact p { margin: 0; color: rgba(255,255,255,.8); max-width: 520px; }

/* ---------- Rodapé ---------- */
footer { padding: 36px 0 52px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }

.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--accent); }

/* ---------- Página inicial (escolha do órgão) ---------- */
.home { min-height: 100vh; display: flex; align-items: center; padding: 64px 0; }
.home .wrap { width: min(980px, calc(100% - 40px)); }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 40px; }
.pick a { position: relative; display: block; background: #fff; color: #121930; border-radius: 22px; padding: 30px; text-decoration: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); border-top: 6px solid var(--c); transition: transform .2s ease; }
.pick a:hover { transform: translateY(-5px); }
.pick .o { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.pick h2 { font-family: var(--serif); margin: 8px 0 8px; font-size: 30px; line-height: 1.12; }
.pick p { margin: 0 0 18px; color: #5b6579; }
.pick .more { font-weight: 700; color: var(--c); }
.home-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.home-logo .mark { width: 60px; height: 60px; }
.home-logo .logo-txt b { font-size: 38px; }
.home-logo .logo-txt span { font-size: 15px; margin-top: 4px; }
.home-foot { margin-top: 34px; color: rgba(255,255,255,.72); font-size: 15px; }

/* ---------- Entrada suave ao fazer scroll (só com JS e sem "reduzir movimento") ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ecrãs pequenos ---------- */
@media (max-width: 940px) {
  .hero-grid, .manifesto { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .manifesto .side { position: static; }
  .vote-card { max-width: 440px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 12px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .menu-btn { display: block; }
}
@media (max-width: 940px) {
  .prio-grid.n5, .prio-grid.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prio-grid.n5 .prio, .prio-grid.n6 .prio, .prio-grid.n5 .prio:nth-child(n+4) { grid-column: auto; }
  .prio-grid.n5 .prio:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .prio-grid.n5, .prio-grid.n6 { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 108px; }
  section.block { padding: 64px 0; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .msec-body { padding: 4px 18px 18px 20px; }
  .cands { grid-template-columns: minmax(0, 1fr); }
  .dlg { grid-template-columns: minmax(0, 1fr); }
  .dlg .ph { min-height: 0; height: 220px; }
  .dlg .txt { padding: 22px 20px; max-height: none; }
  dialog { max-height: 92vh; overflow: auto; }
  .contact { padding: 34px 24px; border-radius: 22px; }
  .logo-txt em { display: none; }
  .brand .mark { width: 40px; height: 40px; }
  .brand .logo-txt b { font-size: 24px; }
  .pill { border-radius: 14px; }
  .ballot .who b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .toolbar, .actions, .ics, .foot nav, .cand .go { display: none !important; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .hero h1 em, .lead { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
