/* Eleição 2º Turno — camada visual principal (carregada depois de style.css e integrations.css). */
:root {
  --bg: #070b12;
  --panel: #0f1622;
  --panel-2: #131c2a;
  --border: #1f2a3a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --green: #b8ef6c;
  --blue: #438df2;
  --blue-deep: #1d4ed8;
  --red: #ee626d;
  --red-deep: #b91c3c;
  --yellow: #e5be59;
  --radius: 16px;
}
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(67, 141, 242, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% -10%, rgba(238, 98, 109, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1,
h2,
h3 {
  text-wrap: balance;
}

/* Faixa do lema */
.motto-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-deep), #3b2a6b 50%, var(--red-deep));
}

/* Barra lateral */
aside {
  top: 33px;
  background: rgba(9, 14, 22, 0.92);
  backdrop-filter: blur(10px);
  padding: 26px 18px;
  overflow-y: auto;
}
.aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 500;
}
.brand b {
  font-weight: 800;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0 50%, var(--red) 50% 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.menu-toggle {
  display: none;
}
.nav-group {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}
.nav-group .scope {
  margin: 14px 0 6px 12px;
}
nav {
  margin-top: 8px;
  gap: 0;
}
.nav {
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.nav i {
  font-style: normal;
  width: 18px;
  text-align: center;
  font-size: 17px;
}
.nav span {
  font-size: 15px;
}
.nav:hover {
  background: #ffffff0a;
  color: var(--text);
}
.nav.active {
  background: linear-gradient(90deg, rgba(67, 141, 242, 0.18), rgba(238, 98, 109, 0.12));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.aside-bottom strong {
  font-size: 16px;
}

/* Cabeçalho */
main > header {
  height: 74px;
}
.header-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-deep), var(--red-deep));
}
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d5e;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.7);
  animation: pulse 1.8s infinite;
}
.live-dot.idle {
  background: var(--muted);
  animation: none;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 77, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}

/* Abertura das páginas */
.page-hero {
  padding: 34px 0 26px;
}
.page-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  font-weight: 800;
  margin: 14px 0 18px;
}
.page-hero h1 em,
.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), #a78bfa 50%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lead {
  font-size: 18px;
  max-width: 720px;
}
.page-hero .eyebrow {
  color: var(--green);
}
.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  letter-spacing: -0.8px;
}
.panel {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.metrics article {
  border-radius: var(--radius);
}
.button {
  border-radius: 10px;
  transition: transform 0.12s, border-color 0.12s;
}
.button:hover {
  transform: translateY(-1px);
}
.button.big {
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 700;
}
.button.small {
  padding: 7px 11px;
  font-size: 13px;
  margin-top: 10px;
}
.button.active {
  border-color: var(--green);
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.block {
  display: block;
  margin-top: 22px;
}

/* Página inicial */
.home-hero {
  position: relative;
  margin: 26px 0 10px;
  padding: 40px clamp(18px, 4vw, 48px) 34px;
  border-radius: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(29, 78, 216, 0.35), transparent 45%),
    linear-gradient(260deg, rgba(185, 28, 60, 0.35), transparent 45%),
    #0b1220;
}
.home-hero-head {
  text-align: center;
}
.home-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -3px;
  font-weight: 800;
  margin: 14px 0 20px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ff4d5e22;
  border: 1px solid #ff4d5e66;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.countdown {
  display: inline-flex;
  gap: 10px;
  margin: 6px 0 4px;
}
.countdown > div {
  min-width: 74px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  text-align: center;
}
.countdown strong {
  display: block;
  font: 800 32px 'Bricolage Grotesque', sans-serif;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 32px 0 20px;
}
.versus-mark {
  align-self: center;
  font: 800 28px 'Bricolage Grotesque', sans-serif;
  color: #ffffff55;
}
.contender {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid;
}
.contender.is-blue {
  border-color: #438df266;
  background: linear-gradient(135deg, rgba(67, 141, 242, 0.32), rgba(67, 141, 242, 0.06));
}
.contender.is-red {
  flex-direction: row-reverse;
  text-align: right;
  border-color: #ee626d66;
  background: linear-gradient(225deg, rgba(238, 98, 109, 0.32), rgba(238, 98, 109, 0.06));
}
.contender-photo {
  position: relative;
  flex-shrink: 0;
}
.contender-photo img {
  width: clamp(96px, 11vw, 150px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #0003;
}
.is-blue .contender-photo img {
  box-shadow: 0 0 0 3px var(--blue), 0 18px 40px rgba(67, 141, 242, 0.35);
}
.is-red .contender-photo img {
  box-shadow: 0 0 0 3px var(--red), 0 18px 40px rgba(238, 98, 109, 0.35);
}
.contender-number {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font: 800 17px 'Bricolage Grotesque', sans-serif;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
}
.is-blue .contender-number {
  background: var(--blue);
}
.is-red .contender-number {
  background: var(--red);
}
.contender-party {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.is-blue .contender-party {
  color: #93c5fd;
}
.is-red .contender-party {
  color: #fda4af;
}
.contender h2 {
  font: 800 clamp(20px, 2.3vw, 30px) 'Bricolage Grotesque', sans-serif;
  margin: 6px 0 2px;
  letter-spacing: -0.5px;
}
.contender-vice {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.contender-big {
  display: block;
  font: 800 clamp(34px, 4.4vw, 58px) 'Bricolage Grotesque', sans-serif;
  letter-spacing: -2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.is-blue .contender-big {
  color: #7fb2ff;
}
.is-red .contender-big {
  color: #ff8b95;
}
.contender-caption {
  font-size: 14px;
  color: var(--muted);
}
.duel-bar {
  position: relative;
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff10;
  margin: 18px 0 8px;
}
.duel-bar > span {
  transition: width 0.8s ease;
}
.duel-bar .is-blue {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
}
.duel-bar .is-red {
  background: linear-gradient(90deg, var(--red), var(--red-deep));
}
.duel-bar i {
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #fff;
  opacity: 0.8;
}
.home-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.shortcut {
  position: relative;
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.shortcut:hover {
  transform: translateY(-3px);
  border-color: #438df288;
}
.shortcut-icon {
  font-size: 24px;
  color: var(--green);
}
.shortcut strong {
  font: 700 17px 'Bricolage Grotesque', sans-serif;
}
.shortcut span:not(.shortcut-icon) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.shortcut i {
  position: absolute;
  right: 18px;
  top: 20px;
  font-style: normal;
  color: var(--muted);
}

/* Apuração */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}
.countdown-panel {
  text-align: center;
  margin: 10px 0 20px;
}
.sections-progress > div {
  height: 10px;
  border-radius: 999px;
  background: #ffffff12;
  overflow: hidden;
}
.sections-progress > div > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #6ee7b7);
  transition: width 0.6s;
}
.sections-progress p {
  font-size: 15px;
  color: var(--muted);
}
.sections-progress strong {
  color: var(--text);
}
.sections-progress.small {
  min-width: 260px;
}
.runoff-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.runoff-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid;
}
.runoff-card img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}
.runoff-card.is-blue {
  border-color: #438df266;
  background: linear-gradient(135deg, rgba(67, 141, 242, 0.28), transparent);
}
.runoff-card.is-red {
  border-color: #ee626d66;
  background: linear-gradient(135deg, rgba(238, 98, 109, 0.28), transparent);
}
.runoff-card h2 {
  font: 800 22px 'Bricolage Grotesque', sans-serif;
  margin: 4px 0;
}
.runoff-card p {
  margin: 4px 0 0;
  color: var(--muted);
}
.runoff-percent {
  font: 800 46px 'Bricolage Grotesque', sans-serif;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.elected-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #0b1a05;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}
.result-table td,
.result-table th {
  text-align: left;
  padding-right: 14px;
}
.result-table .rank {
  color: var(--muted);
  width: 36px;
}
.result-table tr.is-blue td:first-child + td {
  font-weight: 700;
}
.result-table tr.is-red td:first-child + td {
  font-weight: 700;
}
.inline-bar {
  display: inline-block;
  width: 80px;
  height: 6px;
  margin-right: 10px;
  border-radius: 4px;
  background: #ffffff12;
  vertical-align: middle;
  overflow: hidden;
}
.inline-bar > span {
  display: block;
  height: 100%;
}
td:nth-child(4) {
  color: inherit;
}

/* Candidaturas (cartões de links) */
.candidate.is-blue {
  border-top: 4px solid var(--blue);
  background: linear-gradient(145deg, rgba(67, 141, 242, 0.18), transparent 60%), #111a26;
}
.candidate.is-red {
  border-top: 4px solid var(--red);
  background: linear-gradient(145deg, rgba(238, 98, 109, 0.16), transparent 60%), #111a26;
}
.candidate.is-blue .number,
.candidate.is-blue .party {
  color: #7fb2ff;
}
.candidate.is-red .number,
.candidate.is-red .party {
  color: #ff8b95;
}

/* Filtros */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
}
.filter-bar input[type='search'] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b121c;
  color: var(--text);
}
.filter-bar select {
  padding: 11px 32px 11px 12px;
  border-radius: 10px;
}
.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: #0b121c;
  border: 1px solid var(--border);
}
.segmented button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
}
.segmented button.active {
  background: #ffffff14;
  color: #fff;
  font-weight: 700;
}
.result-count {
  font-size: 14px;
  color: var(--muted);
}

/* Eleitos */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.person-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 12px 16px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.person-card:hover {
  transform: translateY(-3px);
  border-color: #ffffff40;
}
.person-card img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff0a;
  margin-bottom: 4px;
}
.person-card strong {
  font-size: 15px;
  line-height: 1.3;
}
.person-card .muted {
  font-size: 13px;
}
.person-rank {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 13px;
  color: var(--muted);
}
.person-party {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0a0f18;
  padding: 3px 7px;
  border-radius: 999px;
}
.person-votes {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

/* Ficha */
dialog.profile {
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
}
.profile-head {
  display: flex;
  gap: 20px;
  align-items: center;
}
.profile-head img {
  width: 110px;
  height: 146px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.profile-head h2 {
  margin: 6px 0 2px;
}
.profile-head p {
  margin: 0;
}
.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.party-tag,
.status-tag {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.party-tag {
  border-width: 2px;
  font-weight: 700;
}
.profile-votes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 6px;
}
.profile-votes > div {
  padding: 14px;
  border-radius: 12px;
  background: #ffffff08;
  border: 1px solid var(--border);
}
.profile-votes span,
.fact span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.profile-votes strong {
  font: 800 20px 'Bricolage Grotesque', sans-serif;
}
dialog.profile h3 {
  margin-top: 24px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}
.fact {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.fact strong {
  font-size: 15px;
  font-weight: 600;
}
.asset-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.asset-list > div > span {
  color: var(--muted);
}
.asset-bar {
  height: 6px;
  border-radius: 4px;
  background: #ffffff12;
  overflow: hidden;
}
.asset-bar > span {
  display: block;
  height: 100%;
  background: var(--green);
}

/* Governadores */
.gov-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.gov-summary article {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--tone);
  background: var(--panel);
}
.gov-summary strong {
  display: block;
  font: 800 40px 'Bricolage Grotesque', sans-serif;
  color: var(--tone);
}
.gov-summary span {
  font-size: 14px;
  color: var(--muted);
}
.governor-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff06;
  color: var(--text);
  text-align: left;
}
.governor-pick:hover {
  border-color: #ffffff40;
}
.governor-pick img {
  width: 60px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}
.governor-pick span {
  display: grid;
  gap: 3px;
  flex: 1;
}
.governor-pick strong {
  font-size: 17px;
}
.governor-pick small {
  font-size: 13px;
  color: var(--muted);
}
.governor-pick i {
  font-style: normal;
  color: var(--muted);
}
.governor-live {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff08;
}
.governor-live h4 {
  margin: 0 0 8px;
}
.governor-live-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
}
.governor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.governor-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--tone);
  background: var(--panel);
}
.governor-card header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.governor-card header span {
  font: 800 20px 'Bricolage Grotesque', sans-serif;
  color: var(--tone);
}
.governor-card header small {
  color: var(--muted);
  font-size: 13px;
}
.governor-card button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: var(--text);
  text-align: left;
}
.governor-card button:hover strong {
  text-decoration: underline;
}
.governor-card small {
  color: var(--muted);
  font-size: 13px;
}
.runoff-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ffffff14;
}

/* Gastos */
.spend-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 8px 0 16px;
}
.spend-summary strong {
  display: block;
  font: 800 clamp(34px, 4vw, 54px) 'Bricolage Grotesque', sans-serif;
  letter-spacing: -1.5px;
}
.ministry-list {
  display: grid;
  gap: 6px;
}
.ministry-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 2fr 110px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.ministry-row:not(:disabled):hover {
  border-color: var(--green);
  background: var(--panel-2);
}
.ministry-row:disabled {
  opacity: 0.6;
  cursor: progress;
}
.ministry-name {
  display: grid;
  gap: 2px;
}
.ministry-name strong {
  font-size: 15px;
}
.ministry-name small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ministry-bar {
  height: 10px;
  border-radius: 6px;
  background: #ffffff10;
  overflow: hidden;
}
.ministry-bar > span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green), #6ee7b7);
  transition: width 0.5s;
}
.ministry-value {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.detail-title {
  font: 800 clamp(26px, 3.4vw, 42px) 'Bricolage Grotesque', sans-serif;
  letter-spacing: -1px;
  margin: 6px 0 16px;
}
.money-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 4px;
}
.money-flow article {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.money-flow article.is-highlight {
  border-color: #b8ef6c66;
  background: linear-gradient(140deg, #1b2b1e, #111a17);
}
.money-flow span {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
}
.money-flow p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.real-bar strong small {
  color: var(--muted);
  font-weight: 400;
}

/* Linha do tempo dos governos */
.gov-infographic {
  margin-bottom: 26px;
}
.gov-track {
  position: relative;
  height: 76px;
  margin: 34px 0 6px;
  border-radius: 12px;
  background: #ffffff08;
}
.gov-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 0;
  border-right: 2px solid var(--bg);
  padding: 0;
  overflow: hidden;
  color: #0a0f18;
  font: 800 13px 'Bricolage Grotesque', sans-serif;
  transition: filter 0.15s, transform 0.15s;
}
.gov-segment:first-child {
  border-radius: 12px 0 0 12px;
}
.gov-segment:last-of-type {
  border-radius: 0 12px 12px 0;
}
.gov-segment span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: auto;
  white-space: nowrap;
}
.gov-segment:hover,
.gov-segment.active {
  filter: brightness(1.15);
  transform: scaleY(1.08);
  z-index: 2;
}
.gov-milestone {
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.gov-milestone i {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 1px;
  height: 86px;
  background: #ffffff40;
}
.gov-axis {
  position: relative;
  height: 20px;
  font-size: 11px;
  color: var(--muted);
}
.gov-axis span {
  position: absolute;
  transform: translateX(-50%);
}
.gov-share {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.gov-share strong {
  display: block;
  font: 800 30px 'Bricolage Grotesque', sans-serif;
}
.gov-share span {
  font-size: 14px;
  color: var(--muted);
}
.gov-share-bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 4px;
  background: #ffffff10;
  overflow: hidden;
}
.gov-share-bar span {
  display: block;
  height: 100%;
}
.gov-card {
  cursor: pointer;
}
.timeline .gov-card:before {
  background: var(--gov);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gov) 20%, transparent);
}
.gov-card.active h3 {
  color: var(--gov);
}
.gov-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0a0f18;
  background: var(--gov);
}
.timeline time {
  color: var(--muted);
}

/* Publicidade */
.ad-slot {
  margin: 28px 0;
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #64748b;
  margin-bottom: 6px;
}
.ad-slot img {
  max-width: 100%;
  border-radius: 12px;
}
.ad-placeholder a {
  display: block;
  padding: 26px 18px;
  border-radius: var(--radius);
  border: 1px dashed #334155;
  color: var(--muted);
  font-size: 15px;
}
.ad-placeholder a:hover {
  border-color: var(--green);
  color: var(--text);
}
.ad-placeholder strong {
  color: var(--text);
}
.advertise ul {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  padding-left: 18px;
}
.consent {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  width: min(720px, calc(100% - 32px));
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #334155;
  background: #0f1724f2;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.consent div {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Rodapé */
footer {
  flex-wrap: wrap;
}
.footer-brand {
  font: 800 17px 'Bricolage Grotesque', sans-serif;
  color: #fff;
}
.footer-motto {
  font-size: 14px !important;
  color: var(--green);
  margin: 4px 0 0;
  font-weight: 700;
}

/* Responsivo */
@media (max-width: 1050px) {
  .versus {
    grid-template-columns: 1fr;
  }
  .versus-mark {
    justify-self: center;
  }
  .contender.is-red {
    flex-direction: row;
    text-align: left;
  }
  .gov-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .motto-bar {
    font-size: 13px;
  }
  aside {
    position: sticky;
    top: 31px;
    z-index: 20;
    padding: 12px 16px;
  }
  .menu-toggle {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: #ffffff10;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
  }
  aside nav {
    display: none;
  }
  aside.open nav {
    display: block;
    max-height: 70vh;
    overflow-y: auto;
  }
  aside .scope {
    display: block;
  }
  .nav {
    padding: 11px 12px;
  }
  main > header {
    height: auto;
    padding: 14px 0;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .home-hero {
    padding: 28px 16px;
    border-radius: 20px;
  }
  .countdown > div {
    min-width: 60px;
  }
  .countdown strong {
    font-size: 24px;
  }
  .runoff-board,
  .money-flow,
  .gov-share,
  .profile-votes,
  .facts {
    grid-template-columns: 1fr;
  }
  .ministry-row {
    grid-template-columns: 1fr auto;
  }
  .ministry-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .gov-milestone {
    display: none;
  }
  .gov-segment span {
    display: none;
  }
  .consent {
    flex-direction: column;
    align-items: stretch;
  }
  .asset-list > div {
    grid-template-columns: 1fr auto;
  }
  .asset-bar {
    grid-column: 1 / -1;
  }
}

/* Correções: regras antigas genéricas de header */
.governor-card header {
  height: auto;
  border: 0;
  padding: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-right: 64px;
}

/* Brasil em números */
.big-stat {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 10px;
  background: linear-gradient(120deg, rgba(238, 98, 109, 0.14), transparent 60%), var(--panel);
}
.big-stat h2 {
  font: 800 clamp(26px, 3.2vw, 42px) 'Bricolage Grotesque', sans-serif;
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 10px 0;
}
.big-stat h2 em {
  font-style: normal;
  color: #ff8b95;
}
.people-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.people-row svg {
  width: 100%;
  fill: #ffffff1c;
}
.people-row svg.on {
  fill: var(--red);
}
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.indicator {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.indicator > strong {
  font: 800 clamp(30px, 3vw, 40px) 'Bricolage Grotesque', sans-serif;
  letter-spacing: -1px;
  line-height: 1.1;
}
.indicator > small {
  color: var(--muted);
  font-size: 14px;
}
.indicator > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 6px 0;
  flex: 1;
}
.indicator > a {
  font-size: 13px;
  color: #93c5fd;
}
.spark svg {
  width: 160px;
  height: 44px;
  display: block;
  margin-top: 6px;
}
.spark span {
  font-size: 13px;
  font-weight: 600;
}
.target-band {
  position: relative;
  height: 10px;
  margin: 10px 0 18px;
  border-radius: 5px;
  background: #ffffff12;
}
.target-band .band {
  position: absolute;
  left: 16.7%;
  width: 33.3%;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background: #4ade8044;
}
.target-band i {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}
.target-band em {
  position: absolute;
  left: 16.7%;
  top: 13px;
  font-size: 11px;
  font-style: normal;
  color: #4ade80;
}
.gini-scale {
  height: 10px;
  margin: 8px 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #4ade80, #facc15, #f87171);
  position: relative;
  opacity: 0.9;
}
.gini-scale span {
  position: absolute;
  inset: 0 auto 0 0;
  border-right: 3px solid #fff;
}
@media (max-width: 760px) {
  .big-stat {
    grid-template-columns: 1fr;
  }
}

/* Hemiciclo do Congresso */
.blocs-panel {
  margin-bottom: 24px;
}
.blocs-panel .segmented {
  margin: 16px 0 6px;
}
.hemicycle {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.hemicycle svg {
  width: 100%;
  display: block;
}
.hemi-total {
  font: 800 0.22px 'Bricolage Grotesque', sans-serif;
  fill: #fff;
}
.hemi-label {
  font: 600 0.055px 'Plus Jakarta Sans', sans-serif;
  fill: var(--muted);
  letter-spacing: 0.005px;
}
.hemi-legend > div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.hemi-count {
  font: 800 34px 'Bricolage Grotesque', sans-serif;
  min-width: 70px;
}
.hemi-legend strong {
  display: block;
  font-size: 16px;
}
.hemi-legend small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .hemicycle {
    grid-template-columns: 1fr;
  }
}

/* Notícias de agenda */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.news-col {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.news-col.is-blue {
  border-top: 4px solid var(--blue);
}
.news-col.is-red {
  border-top: 4px solid var(--red);
}
.news-col.is-both {
  border-top: 4px solid #a78bfa;
}
.news-col h3 {
  margin: 0 0 6px;
}
.news-col.is-blue h3 {
  color: #7fb2ff;
}
.news-col.is-red h3 {
  color: #ff8b95;
}
.news-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-col li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.news-col li:last-child {
  border-bottom: 0;
}
.news-col li a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.news-col li a:hover {
  text-decoration: underline;
}
.news-col li span {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Atividades dos candidatos */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.activity-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.activity-card.is-blue {
  border-top: 5px solid var(--blue);
  background: linear-gradient(180deg, rgba(67, 141, 242, 0.12), transparent 30%), var(--panel);
}
.activity-card.is-red {
  border-top: 5px solid var(--red);
  background: linear-gradient(180deg, rgba(238, 98, 109, 0.12), transparent 30%), var(--panel);
}
.activity-card h2 {
  font: 800 30px 'Bricolage Grotesque', sans-serif;
  margin: 6px 0 4px;
}
.activity-card h3 {
  margin-top: 22px;
  font-size: 16px;
}
.activity-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.activity-total strong {
  font: 800 52px 'Bricolage Grotesque', sans-serif;
  letter-spacing: -2px;
}
.activity-total span {
  color: var(--muted);
  font-size: 15px;
}
.stack-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff10;
}
.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.stack-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  vertical-align: middle;
}
.stack-legend b {
  color: var(--text);
}
.type-list,
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.type-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.recent-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-list a {
  font-size: 15px;
  color: #93c5fd;
}
.recent-list p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-list small {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}

/* Programas de governo */
.program-theme {
  margin: 22px 0;
}
.program-theme h3 {
  font: 800 22px 'Bricolage Grotesque', sans-serif;
  margin-bottom: 12px;
}
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.program-col {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.program-col.is-blue {
  border-left: 5px solid var(--blue);
}
.program-col.is-red {
  border-left: 5px solid var(--red);
}
.program-col h4 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.program-col.is-blue h4 {
  color: #7fb2ff;
}
.program-col.is-red h4 {
  color: #ff8b95;
}
.program-col ul {
  margin: 0;
  padding-left: 18px;
}
.program-col li {
  font-size: 16px;
  line-height: 1.55;
  padding: 6px 0;
}
.page-ref {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

/* Compartilhamento */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 6px;
}
.share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 14px 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.share-btn.whatsapp { background: #25d366; color: #052e16; }
.share-btn.facebook { background: #1877f2; }
.share-btn.x { background: #0f1419; border-color: #ffffff30; }
.share-btn.telegram { background: #229ed9; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.copy,
.share-btn.native { background: #ffffff10; border-color: #ffffff26; }
@media (max-width: 760px) {
  .share-btn { padding: 9px 12px; }
}

/* Tipografia: fontes maiores pedem barra lateral mais larga e títulos menos apertados */
aside {
  width: 264px;
}
main {
  margin-left: 264px;
}
.brand {
  font-size: 19px;
  white-space: nowrap;
}
.nav span {
  font-size: 14.5px;
}
.page-hero h1,
.home-hero h1 {
  letter-spacing: -1.2px;
}
h1, h2, h3, .section-title {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
}
.lead {
  font-size: 18px;
  line-height: 1.65;
}
p, li, td {
  line-height: 1.6;
}
@media (max-width: 1150px) {
  aside {
    width: 220px;
  }
  main {
    margin-left: 220px;
  }
}
@media (max-width: 760px) {
  aside {
    width: 100%;
  }
  main {
    margin-left: 0;
  }
}

/* ===== Movimento ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--stagger, 0ms),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--stagger, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* Barras crescem a partir da esquerda quando o bloco aparece */
.ministry-bar > span,
.real-bar > div > span,
.inline-bar > span,
.asset-bar > span,
.gov-share-bar > span,
.stack-bar > span,
.sections-progress > div > span,
.gini-scale span,
.duel-bar > span {
  transform-origin: left center;
  transition:
    transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--stagger, 0ms) + 150ms),
    width 0.8s ease;
}
.duel-bar > span.is-red {
  transform-origin: right center;
}
.reveal:not(.in) .ministry-bar > span,
.reveal:not(.in) .real-bar > div > span,
.reveal:not(.in) .inline-bar > span,
.reveal:not(.in) .asset-bar > span,
.reveal:not(.in) .gov-share-bar > span,
.reveal:not(.in) .stack-bar > span,
.reveal:not(.in) .gini-scale span,
.sections-progress.reveal:not(.in) > div > span,
.duel-bar.reveal:not(.in) > span {
  transform: scaleX(0);
}
/* Hemiciclo: cadeiras surgem em onda */
.hemicycle circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: seat-pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes seat-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
}
/* Mapa: estados entram em cascata */
.brazil-map path {
  animation: state-in 0.7s ease both;
}
@keyframes state-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.brazil-map path,
.brazil-map circle {
  transform-box: fill-box;
}
/* Linha do tempo dos governos: segmentos crescem em sequência */
.gov-segment {
  animation: seg-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transform-origin: left center;
}
@keyframes seg-in {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
}
/* Transição entre páginas */
.page-enter {
  animation: page-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
/* Capa: fundo vivo, brilhos e título em degradê animado */
.home-hero {
  isolation: isolate;
}
.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.home-hero::before {
  background: #2563eb;
  top: -200px;
  left: -160px;
}
.home-hero::after {
  background: #e11d48;
  bottom: -220px;
  right: -160px;
  animation-delay: -7s;
}
@keyframes drift {
  to {
    transform: translate(120px, 60px) scale(1.15);
  }
}
.home-hero h1 em,
.page-hero h1 em {
  background-size: 200% 100%;
  animation: shine 8s ease-in-out infinite alternate;
}
@keyframes shine {
  to {
    background-position: 100% 0;
  }
}
.home-hero h1,
.page-hero h1 {
  animation: title-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
}
.countdown strong {
  display: block;
}
.versus-mark {
  animation: vs-pulse 2.6s ease-in-out infinite;
}
@keyframes vs-pulse {
  50% {
    transform: scale(1.15);
    opacity: 1;
    color: #fff;
  }
}
.contender {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.contender:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.contender-photo img {
  transition: transform 0.4s ease;
}
.contender:hover .contender-photo img {
  transform: scale(1.04) rotate(-1deg);
}
/* Cartões: brilho que acompanha o cursor */
.shortcut,
.indicator,
.person-card,
.governor-card {
  position: relative;
  overflow: hidden;
}
.shortcut::after,
.indicator::after,
.person-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.shortcut:hover::after,
.indicator:hover::after,
.person-card:hover::after {
  opacity: 1;
}
.duel-bar i {
  animation: center-glow 2s ease-in-out infinite;
}
@keyframes center-glow {
  50% {
    box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Página inicial: O Brasil em gráficos ===== */
.home-charts-section {
  margin: 34px 0 10px;
}
.home-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.chart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(67, 141, 242, 0.08), transparent 60%),
    radial-gradient(600px 220px at 0% 100%, rgba(238, 98, 109, 0.06), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.chart-card.wide {
  grid-column: 1 / -1;
}
.chart-card-head h3 {
  font-size: 24px;
  margin: 6px 0 14px;
}
.chart-card-body {
  flex: 1;
}
.chart-card-link {
  align-self: flex-start;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
}
.chart-card-link:hover {
  text-decoration: underline;
}
.chart-card .panel {
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none !important;
  margin: 0;
}
.chart-card .gov-infographic .gov-milestone {
  display: none;
}
.chart-card .gov-track {
  margin-top: 8px;
}
.blocs-panel.compact > .eyebrow,
.blocs-panel.compact > h3,
.blocs-panel.compact > .page-note {
  display: none;
}
.blocs-panel.compact .segmented {
  margin-top: 0;
}
.hbars {
  display: grid;
  gap: 12px;
}
.hbar {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) 2fr auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.hbar-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbar-track {
  height: 12px;
  border-radius: 8px;
  background: #ffffff10;
  overflow: hidden;
}
.hbar-track > span {
  display: block;
  height: 100%;
  border-radius: 8px;
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.hbar-track > span.money {
  background: linear-gradient(90deg, var(--green), #6ee7b7);
}
.reveal:not(.in) .hbar-track > span {
  transform: scaleX(0);
}
.hbar strong {
  font-variant-numeric: tabular-nums;
  min-width: 70px;
  text-align: right;
}
.gov-mini {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: center;
}
.gov-mini .brazil-map .page-note {
  display: none;
}
.gov-mini .brazil-map svg {
  max-height: 260px;
}
.gov-mini-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gov-mini-counts div {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff08;
  border-top: 3px solid var(--tone);
}
.gov-mini-counts strong {
  display: block;
  font: 800 32px 'Bricolage Grotesque', sans-serif;
  color: var(--tone);
}
.gov-mini-counts span {
  font-size: 13px;
  color: var(--muted);
}
.brazil-mini-poverty {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.brazil-mini-poverty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.brazil-mini-poverty strong {
  display: block;
  font: 800 40px 'Bricolage Grotesque', sans-serif;
  color: #ff8b95;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.kpis div {
  padding: 12px 10px;
  border-radius: 12px;
  background: #ffffff08;
  text-align: center;
}
.kpis strong {
  display: block;
  font: 800 22px 'Bricolage Grotesque', sans-serif;
}
.kpis span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .home-charts {
    grid-template-columns: 1fr;
  }
  .gov-mini,
  .brazil-mini-poverty {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Certidões ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.cert-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2, var(--panel)), var(--panel));
  border-top: 4px solid var(--tone, #8994a5);
}
.cert-card.is-blue { --tone: #438df2; }
.cert-card.is-red { --tone: #ee626d; }
.cert-card header {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cert-card header img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--tone);
}
.cert-card h2 {
  margin: 2px 0;
  font-size: 26px;
}
.cert-number {
  font: 800 14px 'Bricolage Grotesque', sans-serif;
  color: var(--tone);
}
.cert-candidacy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cert-verdict {
  margin: 18px 0 10px;
  padding: 14px 16px;
  border-radius: 14px;
  display: grid;
  gap: 2px;
}
.cert-verdict.ok { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); }
.cert-verdict.bad { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); }
.cert-verdict strong { font-size: 17px; }
.cert-verdict span { font-size: 13px; color: var(--muted); }
.cert-summary { line-height: 1.6; }
.cert-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.cert-counts div {
  padding: 12px;
  border-radius: 12px;
  background: #ffffff08;
  text-align: center;
}
.cert-counts strong {
  display: block;
  font: 800 30px 'Bricolage Grotesque', sans-serif;
  color: var(--tone);
}
.cert-counts span { font-size: 12px; color: var(--muted); }
.cert-toggle { width: 100%; justify-content: center; }
.cert-details h3 { margin: 22px 0 8px; font-size: 16px; }
.cert-cases { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cert-cases li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff06;
  border: 1px solid var(--border);
}
.cert-cases strong { display: block; font-size: 14px; }
.cert-cases span { font-size: 12px; color: var(--muted); }
.cert-cases code { font-size: 11px; }
.cert-cases p { margin: 4px 0 0; font-size: 13px; }
.cert-tag {
  flex: none;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.cert-tag.ok { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.cert-tag.neutral { background: #ffffff12; color: var(--muted); }
.cert-negatives { font-size: 13px; color: var(--muted); line-height: 1.7; }
.cert-empty { color: var(--muted); font-size: 14px; }
.cert-notes ul { padding-left: 18px; line-height: 1.7; }

/* ===== Debates ===== */
.tv-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 26px 0 12px;
  padding-left: 0;
}
.tv-event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.tv-event.is-next {
  border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(90deg, #438df2, #a78bfa, #ee626d) border-box;
  border: 2px solid transparent;
  box-shadow: 0 18px 50px rgba(67, 141, 242, 0.15);
}
.tv-event.status-cancelado,
.tv-event.status-realizado { opacity: 0.6; }
.tv-event.status-cancelado h3 { text-decoration: line-through; }
.tv-date {
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 16px;
  background: #ffffff08;
  border: 1px solid var(--border);
}
.tv-date strong { font: 800 40px/1 'Bricolage Grotesque', sans-serif; }
.tv-date span { text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.tv-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tv-body h3 { margin: 10px 0 2px; font-size: 21px; }
.tv-body h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tv-when { margin: 0 0 6px; font-weight: 600; }
.tv-body p { margin: 4px 0; font-size: 14px; }
.tv-actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.tv-brand {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font: 800 14px 'Bricolage Grotesque', sans-serif;
  letter-spacing: 0.3px;
  color: #fff;
}
.tv-brand img { height: 20px; display: none; }
.tv-brand.has-logo img { display: block; }
.tv-brand.has-logo b { display: none; }
.brand-globo { background: linear-gradient(135deg, #2563eb, #9333ea 55%, #f43f5e); border-radius: 999px; }
.brand-band { background: #0b6b3a; }
.brand-record { background: linear-gradient(135deg, #1e3a8a, #dc2626); }
.brand-pool { background: #334155; }
.tv-type, .tv-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff10;
}
.tv-status.previsto { color: #93c5fd; }
.tv-status.confirmado { color: #4ade80; }
.tv-status.adiado { color: #facc15; }
.tv-status.cancelado { color: #f87171; }
.is-next .tv-status { background: linear-gradient(90deg, #438df2, #ee626d); color: #fff; animation: vs-pulse 2.6s ease-in-out infinite; }

@media (max-width: 900px) {
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tv-event { grid-template-columns: 1fr; }
  .tv-date { grid-auto-flow: column; gap: 8px; justify-content: start; padding: 8px 12px; }
  .tv-date strong { font-size: 26px; }
  .cert-counts { grid-template-columns: 1fr; }
}
.tv-actions .gcal {
  background: #fff;
  color: #1f2937;
  border-color: #fff;
  font-weight: 700;
}
.tv-actions .gcal:hover { filter: brightness(0.95); }
:root[data-theme="light"] .tv-actions .gcal { border-color: #d0d7e2; }

/* ===== Vídeos ===== */
.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 24px 0 18px;
}
.video-filters > div { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: 600 13px 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.video-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.video-card.is-blue { border-top: 3px solid #438df2; }
.video-card.is-red { border-top: 3px solid #ee626d; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-card:hover .video-play { transform: scale(1.12); background: rgba(220, 38, 38, 0.9); }
.video-short {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.video-meta { display: grid; gap: 6px; padding: 14px 16px 16px; }
.video-meta strong { font-size: 15px; line-height: 1.35; }
.video-meta .muted { font-size: 12px; }
.video-who { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.is-blue .video-who { color: #7fb2ff; }
.is-red .video-who { color: #ff8b95; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(6px);
  animation: page-in 0.25s ease both;
}
.video-frame { width: min(960px, 100%); }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px 16px 0 0; background: #000; }
.video-frame.is-short { width: min(420px, 100%); }
.video-frame.is-short iframe { aspect-ratio: 9 / 16; max-height: 78vh; }
.video-modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 0 0 16px 16px;
  background: #0f1724;
  color: #fff;
}
.video-modal-bar span { display: flex; gap: 12px; align-items: center; }

/* Apuração do 2º turno em andamento: item do menu e botão do topo piscam em verde */
@keyframes live-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); background-color: rgba(34, 197, 94, 0.22); }
  50% { box-shadow: 0 0 18px 4px rgba(34, 197, 94, 0.45); background-color: rgba(34, 197, 94, 0.08); }
}
.nav.is-live {
  color: #4ade80 !important;
  border-radius: 12px;
  animation: live-blink 1.4s ease-in-out infinite;
}
.nav.is-live i { color: #4ade80; }
.live-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font: 800 10px 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  letter-spacing: 0.8px;
}
.header-cta.is-live {
  background: #16a34a !important;
  animation: live-blink 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nav.is-live, .header-cta.is-live { animation: none !important; background-color: rgba(34, 197, 94, 0.2); }
}
.nav.is-live span { white-space: nowrap; }

/* ===== Impressão / PDF ===== */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: var(--bg) !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  aside, .motto-bar, main > header, .share-bar, .ad-slot, .consent, .cert-toggle, .tv-actions .button,
  .video-filters, .theme-toggle, .menu-toggle, footer .footer-motto + p { display: none !important; }
  main { margin: 0 !important; padding: 10mm 12mm !important; max-width: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .panel, .chart-card, .cert-card, .tv-event, .indicator, .person-card, .governor-card, .program-theme, .timeline article {
    break-inside: avoid;
  }
  .home-hero::before, .home-hero::after { display: none; }
}

/* Vídeos: reprodução dentro do próprio card */
.video-card { cursor: default; }
.video-cover {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-cover:hover img { transform: scale(1.05); }
.video-cover:hover .video-play { transform: scale(1.12); background: rgba(220, 38, 38, 0.9); }
.video-cover:focus-visible { outline: 3px solid #93c5fd; outline-offset: -3px; }
.video-thumb iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.video-card.is-playing { grid-column: span 2; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.video-card.is-playing:hover { transform: none; }
.video-meta a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
  .video-card.is-playing { grid-column: auto; }
}

/* Contato para patrocínio */
.sponsor-contact {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, #438df2, #a78bfa, #ee626d) border-box;
  margin-bottom: 20px;
}
.sponsor-contact h3 { font-size: 24px; margin: 8px 0; }
.sponsor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.sponsor-actions .button { font-size: 15px; padding: 12px 20px; }

/* ===== Maiores colégios eleitorais ===== */
.colleges-panel h3 { margin: 6px 0; }
.colleges-intro { margin: 4px 0 12px; }
.t-blue { color: #7fb2ff; }
.t-red { color: #ff8b95; }
.colleges-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.colleges-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.colleges-legend .is-blue, .college-bar .is-blue { background: linear-gradient(90deg, #1d4ed8, #438df2); }
.colleges-legend .is-red, .college-bar .is-red { background: linear-gradient(90deg, #ee626d, #b91c3c); }
.colleges-legend .rest, .college-bar .rest { background: #ffffff1a; }
.colleges { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.college {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) minmax(200px, 2.2fr) minmax(150px, 1.1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff05;
  border-left: 3px solid transparent;
}
.college.lead-blue { border-left-color: #438df2; }
.college.lead-red { border-left-color: #ee626d; }
.college-rank { font: 800 18px 'Bricolage Grotesque', sans-serif; color: var(--muted); }
.college-name strong { display: block; font-size: 15px; }
.college-name span { font-size: 12px; color: var(--muted); }
.college-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #ffffff0d; }
.college-bar span {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font: 700 12px 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  white-space: nowrap;
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s, width 0.8s ease;
}
.college-bar .is-red { justify-content: flex-end; transform-origin: right center; }
.reveal:not(.in) .college-bar span { transform: scaleX(0); }
.college-lead { font-size: 13px; }
.lead-blue .college-lead b { color: #7fb2ff; }
.lead-red .college-lead b { color: #ff8b95; }
.college-lead small { display: block; color: var(--muted); font-size: 11px; }
.colleges-panel.compact { padding: 0; border: 0; background: none; box-shadow: none !important; margin: 0; }
.colleges-panel.compact > .eyebrow, .colleges-panel.compact > h3 { display: none; }
@media (max-width: 760px) {
  .college { grid-template-columns: 28px 1fr; gap: 6px 10px; }
  .college-bar, .college-lead { grid-column: 2; }
}
