/* ==========================================================
   Cores e tipografia — altere aqui para mudar o aspeto do site
   ========================================================== */
:root {
  --navy: #1b2a6b;
  --navy-dark: #111c4a;
  --red: #e30613;
  --red-dark: #b8050f;
  --ink: #1a1d29;
  --muted: #5d6275;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 28, 74, .06), 0 6px 20px rgba(17, 28, 74, .07);
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy-dark); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent; font: 700 .95rem var(--font-head); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Cabeçalho ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-dark); min-width: 0; }
.brand img { height: 38px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff; font: 800 1rem var(--font-head); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; border-left: 2px solid var(--line); padding-left: 12px; }
.brand-txt strong { font: 800 1rem var(--font-head); white-space: nowrap; }
.brand-txt small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.navbtn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 11px;
  background: none; border: 0; cursor: pointer; border-radius: 8px; }
.navbtn span { display: block; height: 2px; background: var(--navy-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.navbtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(17,28,74,.08); padding: 8px 16px 16px; flex-direction: column; }
.mainnav.open { display: flex; }
.mainnav a { padding: 14px 4px; text-decoration: none; font: 700 1rem var(--font-head); color: var(--navy-dark); border-bottom: 1px solid var(--line); }
.mainnav a:last-child { border-bottom: 0; }
.mainnav a[aria-current="page"] { color: var(--red); }

@media (min-width: 800px) {
  .navbtn { display: none; }
  .mainnav { display: flex; position: static; flex-direction: row; gap: 4px; padding: 0; border: 0; box-shadow: none; background: none; }
  .mainnav a { padding: 10px 14px; border: 0; border-radius: 8px; font-size: .95rem; position: relative; }
  .mainnav a:hover { background: var(--bg-alt); }
  .mainnav a[aria-current="page"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--red); border-radius: 2px; }
  .mainnav a[aria-current="page"] { color: var(--navy-dark); }
}
@media (max-width: 380px) { .brand-txt small { display: none; } }

/* ---------- Mensagens ---------- */
.flash { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.flash-ok { background: #e8f6ee; color: #11643a; border: 1px solid #b9e4cb; }
.flash-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #2a3f94); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
.hero-in { padding: 56px 16px 64px; max-width: 1160px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 60ch; }
.eyebrow { display: inline-block; font: 700 .8rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 800px) { .hero-in { padding: 96px 16px 104px; } }

/* ---------- Secções ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-dark); color: #fff; }
.section-navy h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; background: var(--red); border-radius: 3px; }
.more { font-weight: 600; text-decoration: none; color: var(--navy); }
.more:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 24px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.page-head { background: var(--bg-alt); padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.page-head .lead { max-width: 65ch; margin: 0; }
.pill { display: inline-block; font-size: .85rem; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--navy); padding: 4px 12px; border-radius: 999px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 800px) { .section { padding: 72px 0; } .page-head { padding: 56px 0 44px; } }

/* ---------- Cartões (notícias e eventos) — imagens sempre 16:9 ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #2a3f94); }
.card-img-ph .ph-label { color: rgba(255,255,255,.35); font: 800 1.6rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.datebadge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--red); border-radius: 10px; padding: 6px 10px; text-align: center;
  font: 800 .7rem var(--font-head); line-height: 1.1; box-shadow: var(--shadow); min-width: 52px; }
.datebadge b { display: block; font-size: 1.4rem; color: var(--navy-dark); }
.card-body { padding: 18px 20px 22px; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body h3 a { text-decoration: none; color: var(--navy-dark); }
.card-body h3 a:hover { color: var(--red); }
.card-sum { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: .5em; }
.tag { display: inline-block; background: var(--red); color: #fff; font: 700 .7rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }

/* ---------- Tiles ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.tile strong { font: 800 1.1rem var(--font-head); color: var(--navy-dark); }
.tile:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.tile-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 8px; }
.tile-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.tile-dark strong { color: #fff; }
.tile-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

/* ---------- Pessoas — fotos sempre quadradas ---------- */
.people { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.person { text-align: center; }
.person-photo { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--navy), #2a3f94);
  margin: 0 auto 14px; width: 100%; max-width: 200px; display: grid; place-items: center; border: 4px solid #fff; box-shadow: var(--shadow); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo span { color: #fff; font: 800 2.2rem var(--font-head); }
.person h3 { margin-bottom: .2em; font-size: 1.05rem; }
.person-role { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: .4em; }
.person-bio { color: var(--muted); font-size: .9rem; }

/* ---------- Artigo ---------- */
.article { padding: 32px 0 56px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.article-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 24px 0; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; }
.prose a { word-break: break-word; }
.event-info { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 12px 0 20px; padding: 16px 20px; background: var(--bg-alt); border-left: 4px solid var(--red); border-radius: 8px; }
.event-info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.event-info dd { margin: 0; font-weight: 600; color: var(--navy-dark); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.share a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.share a:hover { border-color: var(--navy); }

/* ---------- Lista de propostas ---------- */
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.plist-date { font-weight: 700; color: var(--red); font-size: .9rem; }
.plist h3 { margin-bottom: .2em; }
.plist h3 a { text-decoration: none; }
.plist p { margin: 0 0 .3em; color: var(--muted); }
@media (min-width: 720px) { .plist li { grid-template-columns: 170px 1fr; } }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--muted); }

/* ---------- Duas colunas / caixas laterais ---------- */
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; } }
.side-box { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.side-box h2 { font-size: 1.2rem; }
.side-list { list-style: none; margin: 0 0 16px; padding: 0; }
.side-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-list li span { font-size: .8rem; color: var(--muted); }
.side-list a { font-weight: 600; text-decoration: none; word-break: break-word; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--navy-dark); }
.form input:not([type=checkbox]), .form textarea, .nl-form input[type=email] {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 16px var(--font-body); color: var(--ink);
  border: 1.5px solid #cdd2e0; border-radius: 10px; background: #fff; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus, .nl-form input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(27,42,107,.15); }
.row2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--red); }
.form .btn { justify-self: start; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--red); color: #fff; padding: 44px 0; }
.newsletter h2 { color: #fff; margin-bottom: .3em; }
.newsletter p { color: rgba(255,255,255,.9); margin: 0; }
.nl-in { display: grid; gap: 20px; }
.nl-form { display: grid; gap: 12px; }
.nl-row { display: flex; flex-direction: column; gap: 10px; }
.nl-form input[type=email] { border-color: transparent; }
.nl-form .btn-red { background: var(--navy-dark); }
.nl-form .btn-red:hover { background: #000; }
.nl-form .check a { color: #fff; }
.nl-form .check input { accent-color: var(--navy-dark); }
@media (min-width: 560px) { .nl-row { flex-direction: row; } .nl-row input { flex: 1; } }
@media (min-width: 900px) { .nl-in { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 48px 0 0; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .muted { color: rgba(255,255,255,.6); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { font: 800 1.25rem var(--font-head); color: #fff; margin-bottom: .3em; }
.footer-h { font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--red); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding: 20px 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer li { word-break: break-word; }
.share button { font: 600 .9rem var(--font-body); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); cursor: pointer; }
.share button:hover { border-color: var(--navy); }
.share .share-native { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Calendário ---------- */
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 20px; }
.cal-sub { display: grid; gap: 16px; background: var(--bg-alt); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.cal-sub h2 { font-size: 1.2rem; margin-bottom: .3em; }
.cal-sub p { margin: 0; color: var(--muted); }
.cal-sub-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 900px) { .cal-sub { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; } .cal-sub-actions { justify-content: flex-end; max-width: 460px; } }

/* ---------- Categorias ---------- */
.cat { display: inline-block; font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--red); text-decoration: none; margin-bottom: 6px; }
.cat:hover { text-decoration: underline; }
.article .cat { margin-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: thin; }
.chips a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--navy-dark); background: #fff; white-space: nowrap; }
.chips a span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chips a:hover { border-color: var(--navy); }
.chips a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips a[aria-current="true"] span { color: rgba(255,255,255,.7); }

/* texto formatado */
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose a { color: var(--red); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose strong { color: var(--navy-dark); }

/* ---------- Aviso de atualização ---------- */
.update-bar { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 12px;
  background: #111c4a; color: #fff; padding: 12px 12px 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .95rem; line-height: 1.35;
  animation: ub-in .25s ease-out; }
.update-bar span { flex: 1; }
.update-bar .ub-go { background: #e30613; color: #fff; border: 0; border-radius: 999px; padding: 0 18px; min-height: 40px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.update-bar .ub-go:hover { background: #b8050f; }
.update-bar .ub-x { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.5rem; width: 36px; height: 40px; cursor: pointer; }
@keyframes ub-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .update-bar { animation: none; } }
[hidden] { display: none !important; }

/* botões dentro do texto */
.prose .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.prose a.btn-inline { display: inline-flex; align-items: center; gap: .4em; min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font: 700 .95rem var(--font-head); margin: 2px 0; }
.prose a.btn-inline:hover { background: var(--red-dark); }
.prose a.btn-inline strong { color: inherit; }
.prose .btn-row a.btn-inline + a.btn-inline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.prose .btn-row a.btn-inline + a.btn-inline:hover { background: var(--navy); color: #fff; }

/* ---------- Topo com imagens rotativas ---------- */
.hero-media { display: none; position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* legenda sobre a imagem (opcional, por imagem) */
.hero-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.35;
  background: linear-gradient(to top, rgba(10, 16, 44, .85), rgba(10, 16, 44, .5) 55%, transparent); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.hero-media:has(.hero-dots) .hero-slide figcaption { padding-bottom: 46px; }
.hero-slide.on { opacity: 1; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; }
.hero-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: background .2s, transform .2s; }
.hero-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.hero-mobile .hero-media { display: block; aspect-ratio: 16 / 10; margin-top: 32px; }
@media (min-width: 900px) {
  .hero-split .hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
  .hero-split .hero-media, .hero-mobile .hero-media { display: block; aspect-ratio: 4 / 3; margin-top: 0; }
  .hero-split h1 { max-width: 14ch; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---------- Partidos, estado e votações ---------- */
.party { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid #dfe3ec; border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 600; color: #1a1d29; line-height: 1; white-space: nowrap; }
.party img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; background: #fff; }
.party-flag { display: block; width: 24px; min-width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: var(--pc); color: var(--pt, #fff); font: 800 .6rem/1 system-ui, sans-serif; letter-spacing: .02em; }
.party-compact { padding: 2px 8px 2px 2px; font-size: .78rem; }
.party-compact img, .party-compact .party-flag { width: 20px; min-width: 20px; height: 20px; }
.pstatus { display: inline-flex; align-items: center; gap: 4px; font: 700 .75rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.pstatus-aprovada { background: #e8f6ee; color: #11643a; border-color: #b9e4cb; }
.pstatus-rejeitada { background: #fdecec; color: #9b1c1c; border-color: #f5c2c2; }
.pstatus-pendente { background: #fff4d6; color: #7a4f00; border-color: #f1d999; }
.votes { display: grid; gap: 10px; }
.vote-group { display: grid; gap: 6px; }
.vote-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: #1a1d29; }
.vote-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 800; color: #fff; }
.vote-favor .vote-ico { background: #1e7a46; }
.vote-contra .vote-ico { background: #b3141d; }
.vote-abstencao .vote-ico { background: #6b7280; }
.vote-parties { display: flex; flex-wrap: wrap; gap: 6px; }
.votes-compact { gap: 6px; margin-top: 8px; }
.votes-compact .vote-group { grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.votes-compact .vote-label { font-size: .78rem; min-width: 92px; }
@media (min-width: 640px) { .vote-group { grid-template-columns: 130px 1fr; align-items: center; } }
.vote-box { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.vote-box h2 { font-size: 1.1rem; margin-bottom: 12px; }
.plist .pstatus { margin-bottom: 6px; }
.event-info dd .pstatus { vertical-align: 2px; }
.section-tight { padding: 20px 0 0; } .section-tight .chips { margin-bottom: 0; }
.chips a span { font-size: .8em; }

/* crédito das imagens gratuitas */
.article-fig { margin: 0 0 24px; }
.article-fig .article-img { margin-bottom: 0; }
.article-fig .img-credit { margin-top: 6px; font-size: .78rem; color: var(--muted, #626879); text-align: right; }
.article-fig .img-credit a { color: inherit; }

/* ---------- Email como imagem (contra spam) + copiar ---------- */
.email-img { display: inline-flex; align-items: center; max-width: 100%; }
.email-copy { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; margin: -6px -8px; min-height: 36px; border: 0; border-radius: 8px;
  background: none; color: inherit; cursor: pointer; font: inherit; max-width: calc(100% + 16px); }
.email-copy img { display: block; height: 20px; width: auto; max-width: 100%; }
.email-copy-ico { flex: none; opacity: .75; transition: opacity .15s, transform .15s; }
.email-copy:hover .email-copy-ico, .email-copy:focus-visible .email-copy-ico { opacity: 1; }
.email-copy:hover { background: rgba(27, 42, 107, .07); }
.footer .email-copy:hover { background: rgba(255, 255, 255, .08); }
.email-copy:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.email-copy.copied .email-copy-ico { transform: scale(1.2); color: #2e9c5a; opacity: 1; }
.side-list .email-img { margin-top: 2px; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.email-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--navy-dark); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: .92rem; max-width: calc(100vw - 32px); overflow-wrap: anywhere; transition: opacity .2s, transform .2s; }
.email-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.email-toast a { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .email-toast, .email-copy-ico { transition: none; } }
