:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #fbfcf9;
  --ink: #132019;
  --muted: #667069;
  --line: #dde2dc;
  --accent: #126b43;
  --accent-strong: #0a4f30;
  --accent-soft: #e8f2ec;
  --warning: #8a5a00;
  --warning-bg: #fff7df;
  --shadow: 0 20px 60px rgba(20, 32, 25, .12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid rgba(18,107,67,.25); outline-offset: 3px; }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 10px; top: -100px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,247,242,.93); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(221,226,220,.8); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.main-nav a { text-decoration: none; color: #465149; }
.main-nav a:hover { color: var(--accent); }
.compare-top { border: 0; border-radius: 999px; padding: 9px 13px; background: var(--ink); color: #fff; font-weight: 700; }
.compare-top span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 11px; }

/* Shared type + controls */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
h1, h2 { font-family: Newsreader, Georgia, serif; margin: 0; letter-spacing: -.035em; }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 700; font-size: 13px; text-decoration: none; transition: .15s ease; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #fff; }
.btn.small { min-height: 38px; padding-inline: 14px; }
.party-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.party-pill { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fafbf8; }

/* Home hero */
.hero { padding: 78px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 10%, rgba(18,107,67,.09), transparent 33%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 70px; align-items: end; }
.hero h1 { margin-top: 16px; font-size: clamp(48px, 7vw, 86px); line-height: .96; font-weight: 700; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 720px; margin: 26px 0 0; color: #4e5a52; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy .source-note { font-size: 12px; color: #7c857e; }
.hero-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.65); }
.hero-stat { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.hero-stat strong { font-family: Newsreader, Georgia, serif; font-size: 40px; line-height: 1; color: var(--accent); }
.hero-stat span { color: #4f5a53; font-size: 13px; font-weight: 600; }
.hero-update { padding: 14px 22px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* Candidate explorer */
.explorer { padding: 72px 0 86px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.section-heading h2 { margin-top: 8px; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.section-heading p { color: var(--muted); margin: 12px 0 0; font-size: 13px; }
.controls { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 12px; margin-top: 34px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-box svg { width: 19px; height: 19px; fill: none; stroke: #7a847d; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.theme-filter { display: grid; grid-template-columns: 1fr; gap: 5px; }
.theme-filter span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.theme-filter select { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 40px 0 14px; background: var(--surface); color: var(--ink); }
.result-line { margin: 18px 2px 16px; color: var(--muted); font-size: 12px; }
.result-line strong { color: var(--ink); }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.candidate-card { position: relative; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.candidate-card:hover { transform: translateY(-2px); border-color: #c7d1c9; box-shadow: 0 12px 34px rgba(20,32,25,.08); }
.card-top { display: flex; align-items: flex-start; gap: 14px; }
.candidate-avatar { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: #eef1ed; color: #314038; font-weight: 800; letter-spacing: -.03em; }
.candidate-meta { min-width: 0; flex: 1; }
.candidate-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.vice { margin-top: 4px; color: var(--muted); font-size: 12px; }
.card-summary { min-height: 92px; margin: 16px 0 14px; color: #4d5a52; font-size: 13px; }
.card-facts { display: flex; gap: 16px; margin: 0 0 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.card-facts strong { color: var(--ink); font-size: 12px; }
.theme-chips { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.theme-chip { border: 1px solid #e3e7e2; border-radius: 999px; padding: 4px 7px; color: #657168; background: #fbfcfa; font-size: 10px; font-weight: 600; }
.no-plan { display: flex; gap: 8px; align-items: flex-start; min-height: 55px; padding: 10px 11px; border-radius: 10px; background: var(--warning-bg); color: var(--warning); font-size: 11px; }
.warning-dot { flex: 0 0 auto; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; font-size: 10px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0ec; }
.profile-link { color: var(--accent); font-weight: 800; font-size: 12px; text-decoration: none; }
.profile-link:hover { color: var(--accent-strong); }
.compare-check { display: inline-flex; align-items: center; gap: 7px; color: #59655d; font-size: 11px; font-weight: 600; cursor: pointer; }
.compare-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.empty-state { padding: 50px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); margin-bottom: 5px; }


.site-footer { padding: 28px 0; background: #0e1612; color: #c9d1cc; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner strong { color: #fff; font-size: 13px; }
.footer-inner span { margin-top: 4px; font-size: 11px; color: #8f9b94; }
.footer-inner a { font-size: 12px; text-decoration: none; color: #b9dbc7; }

/* Compare */
.compare-tray { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 11px 0; background: rgba(19,32,25,.97); color: #fff; box-shadow: 0 -10px 35px rgba(0,0,0,.18); }
.compare-tray-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.compare-tray strong, .compare-tray span { display: block; }
.compare-tray strong { font-size: 12px; }
.compare-tray span { margin-top: 2px; color: #aab5ae; font-size: 11px; }
.tray-actions { display: flex; gap: 8px; }
.compare-tray .btn.ghost { border-color: rgba(255,255,255,.2); color: #fff; }
.compare-dialog { width: min(1060px, calc(100% - 24px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.compare-dialog::backdrop { background: rgba(8,14,11,.62); backdrop-filter: blur(4px); }
.compare-shell { position: relative; }
.dialog-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #334039; font-size: 24px; line-height: 1; z-index: 2; }
.dialog-close.static { position: static; flex: 0 0 auto; }
.compare-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.compare-header h2 { margin-top: 7px; font-size: 36px; }
.compare-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.compare-table-wrap { overflow-x: auto; padding: 0 28px 30px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); padding: 16px 14px; }
.compare-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); padding-top: 20px; }
.compare-table .theme-col { width: 150px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.compare-name { font-size: 15px; }
.compare-party { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.compare-profile-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 10px; text-decoration: none; }
.compare-table ul { margin: 0; padding-left: 16px; display: grid; gap: 7px; }
.compare-table li { color: #4c5850; font-size: 12px; }
.compare-empty { color: #8c958f; font-size: 12px; font-style: italic; }

/* Candidate profile */
.profile-hero { padding: 32px 0 58px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 84% 20%, rgba(18,107,67,.08), transparent 32%); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 48px; color: var(--muted); font-size: 11px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb strong { color: var(--ink); }
.profile-hero-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 64px; align-items: end; }
.profile-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.profile-status > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.warning-status { color: var(--warning); }
.warning-status > span { box-shadow: 0 0 0 4px var(--warning-bg); }
.profile-identity { display: flex; align-items: center; gap: 20px; }
.profile-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: #e7ece8; color: #314038; font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.profile-identity h1 { margin-top: 10px; font-size: clamp(50px, 6vw, 76px); line-height: .94; }
.profile-slogan { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.profile-summary { max-width: 800px; margin: 28px 0 0; color: #46534b; font-size: 18px; line-height: 1.65; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.profile-facts { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); overflow: hidden; }
.fact { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.fact strong { min-width: 0; font-family: Newsreader, Georgia, serif; color: var(--accent); font-size: 34px; line-height: 1; overflow-wrap: break-word; }
.fact span { color: #4f5a53; font-size: 12px; font-weight: 600; }
.fact-update { padding: 14px 20px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.profile-overview { padding-top: 72px; }
.profile-section-heading { margin-bottom: 28px; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.overview-card { display: flex; min-height: 180px; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.overview-card:hover { transform: translateY(-2px); border-color: #bccac0; }
.overview-label { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.overview-card p { margin: 20px 0; color: #3f4c44; font-size: 15px; line-height: 1.55; }
.overview-more { color: var(--muted); font-size: 11px; font-weight: 700; }

.profile-detail { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 70px; padding-top: 82px; }
.theme-index { min-width: 0; }
.theme-index-inner { position: sticky; top: 100px; display: grid; gap: 2px; }
.index-title { margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.theme-index a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 8px; color: #566159; font-size: 11px; font-weight: 600; text-decoration: none; }
.theme-index a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.theme-index a span { color: #9ba59e; font-size: 9px; font-weight: 800; }
.theme-index .index-source { margin-top: 9px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; color: var(--accent); }
.detail-content { min-width: 0; }
.detail-section { scroll-margin-top: 96px; padding-bottom: 58px; }
.detail-section + .detail-section { padding-top: 8px; border-top: 1px solid var(--line); }
.detail-heading { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; margin-bottom: 22px; padding-top: 22px; }
.detail-number { padding-top: 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.detail-kicker { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.detail-heading h2 { margin-top: 2px; font-size: clamp(34px, 4vw, 50px); line-height: 1; }
.proposal-list { display: grid; gap: 9px; margin-left: 62px; }
.proposal-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.proposal-index { padding-top: 2px; color: #9aa49d; font-size: 9px; font-weight: 800; }
.proposal-item p { margin: 0; color: #435047; font-size: 14px; line-height: 1.62; }

.profile-source { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; margin-top: 18px; margin-bottom: 68px; padding: 28px 30px; border: 1px solid #cfe0d4; border-radius: 18px; background: var(--accent-soft); }
.profile-source h2 { margin-top: 7px; font-size: 34px; }
.profile-source p { max-width: 760px; margin: 8px 0 0; color: #516159; font-size: 12px; }
.warning-source { border-color: #ead7a5; background: var(--warning-bg); }
.warning-source .eyebrow { color: var(--warning); }
.source-button { white-space: nowrap; }

.no-plan-profile { padding-top: 72px; padding-bottom: 20px; }
.no-plan-large { display: flex; gap: 14px; align-items: flex-start; padding: 24px; border: 1px solid #ead7a5; border-radius: 16px; background: var(--warning-bg); color: var(--warning); }
.no-plan-large strong { color: #6d4b09; }
.no-plan-large p { margin: 5px 0 0; font-size: 13px; }

.candidate-pagination { display: grid; grid-template-columns: 1fr 160px 1fr; gap: 12px; margin-bottom: 82px; border-top: 1px solid var(--line); padding-top: 24px; }
.candidate-pagination > a { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.candidate-pagination > a:hover { border-color: #bccac0; }
.candidate-pagination span, .candidate-pagination small, .candidate-pagination strong { display: block; }
.candidate-pagination span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.candidate-pagination strong { overflow: hidden; margin-top: 6px; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.candidate-pagination small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.candidate-pagination .all-candidates { text-align: center; }
.candidate-pagination .next { text-align: right; }
.profile-error { padding: 80px 0; }
.profile-error h1 { margin-top: 10px; font-size: 58px; }
.profile-error p { color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .profile-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-panel, .profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stat, .fact { grid-template-columns: 1fr; gap: 5px; }
  .hero-update, .fact-update { grid-column: 1 / -1; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-detail { grid-template-columns: 210px minmax(0,1fr); gap: 35px; }
}

@media (max-width: 760px) {
  .main-nav > a { display: none; }
  .header-inner { min-height: 64px; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: clamp(48px, 16vw, 68px); }
  .hero-panel, .profile-facts { grid-template-columns: 1fr; }
  .hero-stat, .fact { grid-template-columns: 70px 1fr; }
  .hero-update, .fact-update { grid-column: auto; }
  .explorer { padding: 52px 0 64px; }
  .controls { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: 1fr; }
  .card-summary { min-height: 0; }
  .footer-inner, .compare-tray-inner { align-items: flex-start; flex-direction: column; }
  .tray-actions { width: 100%; }
  .tray-actions .btn { flex: 1; }
  .compare-dialog { width: calc(100% - 14px); max-height: 92vh; border-radius: 14px; }
  .compare-header { padding: 22px 18px 18px; }
  .compare-table-wrap { padding: 0 18px 24px; }

  .profile-hero { padding-top: 22px; }
  .breadcrumb { margin-bottom: 34px; }
  .profile-identity { align-items: flex-start; gap: 14px; }
  .profile-avatar { width: 68px; height: 68px; border-radius: 18px; font-size: 20px; }
  .profile-identity h1 { font-size: clamp(44px, 12vw, 62px); }
  .profile-summary { font-size: 16px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 150px; }
  .profile-detail { grid-template-columns: 1fr; gap: 28px; padding-top: 62px; }
  .theme-index-inner { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .theme-index .index-title { display: none; }
  .theme-index a { flex: 0 0 auto; display: inline-flex; gap: 6px; border: 1px solid var(--line); background: var(--surface); }
  .theme-index .index-source { margin: 0; padding-top: 9px; border-top: 0; border-radius: 8px; }
  .proposal-list { margin-left: 0; }
  .detail-heading { grid-template-columns: 38px 1fr; }
  .profile-source { grid-template-columns: 1fr; }
  .source-button { white-space: normal; }
  .candidate-pagination { grid-template-columns: 1fr 1fr; }
  .candidate-pagination .all-candidates { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .profile-actions .btn { width: 100%; }
  .card-actions { align-items: flex-start; flex-direction: column; }
  .candidate-pagination { grid-template-columns: 1fr; }
  .candidate-pagination .all-candidates { grid-column: auto; grid-row: auto; }
  .candidate-pagination .next { text-align: left; }
  .proposal-item { grid-template-columns: 28px 1fr; padding: 14px; }
}

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

/* ===== Yellow editorial refresh ===== */
:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --surface-soft: #fffaf0;
  --ink: #241f13;
  --muted: #746b58;
  --line: #eadfca;
  --accent: #c88a00;
  --accent-strong: #9f6d00;
  --accent-soft: #fff1c7;
  --accent-pale: #fff9e8;
  --warning: #9b6300;
  --warning-bg: #fff3cf;
  --shadow: 0 16px 46px rgba(96, 70, 15, .10);
  --shadow-soft: 0 8px 28px rgba(96, 70, 15, .07);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(241, 190, 55, .08), transparent 25rem),
    var(--bg);
}
:focus-visible { outline-color: rgba(200,138,0,.32); }
.site-header { background: rgba(255,253,247,.92); border-bottom-color: rgba(234,223,202,.88); }
.brand-mark { background: #f1b51c; color: #2b2107; box-shadow: inset 0 0 0 1px rgba(90,62,0,.08); }
.main-nav a:hover { color: var(--accent-strong); }
.compare-top { background: #2b2518; }
.btn { border-radius: 12px; }
.btn.primary { background: #e3a70d; color: #251c05; box-shadow: 0 7px 18px rgba(197,137,0,.15); }
.btn.primary:hover { background: #d79b00; }
.btn.ghost { background: rgba(255,255,255,.72); }
.btn.ghost:hover { background: #fff8e7; border-color: #d9c89f; }
.party-pill { border-color: #e7d7ae; background: #fff9e9; color: #6b5317; }

.hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(239,184,39,.18), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
  border-bottom-color: var(--line);
}
.hero h1 span { color: #c88a00; }
.hero-panel { background: rgba(255,255,255,.82); border-color: #eadbb6; box-shadow: var(--shadow-soft); }
.hero-stat strong { color: #bc8000; }

/* Candidate explorer becomes the main discovery surface */
.explorer { padding-top: 66px; }
.controls {
  grid-template-columns: minmax(280px,1fr) minmax(190px,240px) minmax(160px,210px);
  gap: 10px;
  padding: 10px;
  border: 1px solid #eadbb9;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.search-box, .theme-filter { border-color: #eadfc9; background: #fffdf8; }
.search-box:focus-within, .theme-filter:focus-within { border-color: #d6ad47; box-shadow: 0 0 0 3px rgba(219,164,22,.11); }
.result-line { margin-top: 20px; }
.candidate-grid { gap: 20px; }
.candidate-card {
  padding: 0;
  overflow: hidden;
  border-color: #eadfca;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 18px rgba(83,61,16,.045);
}
.candidate-card:hover { transform: translateY(-4px); border-color: #dfc47e; box-shadow: var(--shadow); }
.candidate-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #efe5cf;
  text-decoration: none;
}
.candidate-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(38,30,12,.48), transparent);
  pointer-events: none;
}
.candidate-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.candidate-card:hover .candidate-photo { transform: scale(1.025); }
.candidate-photo-fallback { display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #665b42; }
.ballot-number {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  min-width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 13px;
  background: rgba(255,246,209,.94);
  color: #2d230c;
  box-shadow: 0 8px 18px rgba(39,29,6,.16);
  font-weight: 800;
}
.media-party {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 13px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(31,27,18,.68);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}
.candidate-card-body { padding: 20px 20px 18px; }
.card-top { min-height: 74px; }
.candidate-card h3 { margin-top: 9px; font-size: 21px; }
.candidate-card h3 a { text-decoration: none; }
.candidate-card h3 a:hover { color: var(--accent-strong); }
.vice { margin-top: 4px; color: var(--muted); font-size: 11px; }
.card-summary { min-height: 102px; margin-top: 15px; color: #5f5747; font-size: 12.5px; line-height: 1.62; }
.card-facts { gap: 14px; padding: 10px 0 2px; border-top: 1px dashed #eadfc9; }
.theme-chip { border-color: #ecdba9; background: #fff9e6; color: #725c22; }
.card-actions { margin-top: 17px; padding-top: 14px; border-top-color: #efe4cf; }
.profile-link { color: #9b6800; font-size: 12px; }
.profile-link:hover { color: #6f4a00; }
.compare-check { border-radius: 999px; padding: 7px 9px; background: #fffaf0; }

/* Reading guide intentionally placed at the end of the home page */
.reading-copy h2 { color: #2d2719; }
.reading-steps { border-top-color: #dfcfaa; }
.reading-steps article { border-bottom-color: #e7d8b8; }
.reading-steps article > span { color: #b97900; }

.site-footer { background: #2b2519; color: #f8efd9; border-top: 0; }
.site-footer span { color: #bfb49d; }
.site-footer a { color: #f0c75f; }

/* Candidate profile imagery + yellow styling */
.profile-hero {
  background:
    radial-gradient(circle at 83% 18%, rgba(237,179,30,.18), transparent 31%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
}
.profile-photo-wrap {
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 28px;
  background: #eee4d0;
  box-shadow: 0 12px 30px rgba(75,55,14,.13);
}
.profile-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-status { color: #a87100; }
.profile-status > span { box-shadow: 0 0 0 4px #fff0bd; }
.profile-facts { border-color: #e7d7af; box-shadow: var(--shadow-soft); }
.fact strong { color: #b47a00; }
.overview-card { border-color: #eadfc9; box-shadow: 0 3px 15px rgba(83,61,16,.035); }
.overview-card:hover { border-color: #dbbd6e; box-shadow: var(--shadow-soft); }
.overview-label, .detail-number { color: #aa7100; }
.theme-index a:hover { background: #fff1c7; color: #755000; }
.proposal-item { border-color: #eadfc9; box-shadow: 0 2px 10px rgba(83,61,16,.025); }
.profile-source { border-color: #e8cf87; background: #fff3c9; }
.candidate-pagination > a:hover { border-color: #dcc076; background: #fffaf0; }

@media (max-width: 980px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .controls { grid-template-columns: 1fr; padding: 8px; }
  .search-box { grid-column: auto; }
  .candidate-grid { gap: 16px; }
  .candidate-card-body { padding: 17px; }
  .candidate-media { aspect-ratio: 16 / 9; }
  .card-summary { min-height: 0; }
  .profile-photo-wrap { width: 84px; height: 84px; border-radius: 20px; border-width: 3px; }
}
@media (max-width: 480px) {
  .ballot-number { top: 10px; right: 10px; }
  .media-party { left: 10px; bottom: 10px; }
}

/* ===== Pesquisa eleitoral + comparação por setor + análise de IA ===== */
.mini-label {
  display: block;
  color: #a06d00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* Small local SVG icon system */
.theme-chip-icon,
.overview-icon,
.theme-index-icon,
.detail-theme-icon,
.compare-tab-icon,
.sector-icon-large,
.ai-theme-button > span,
.ai-shortcut > svg {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.theme-chip-icon svg,
.overview-icon svg,
.theme-index-icon svg,
.detail-theme-icon svg,
.compare-tab-icon svg,
.sector-icon-large svg,
.ai-theme-button > span svg,
.ai-shortcut > svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-chip { display: inline-flex; align-items: center; gap: 5px; }
.theme-chip-icon { width: 13px; height: 13px; color: #a36e00; }
.theme-chip-more { padding-inline: 9px; }

/* Poll */
.poll-section {
  padding: 74px 0 82px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 4%, rgba(234, 176, 28, .11), transparent 24rem),
    #fffdf8;
}
.poll-heading { align-items: center; }
.poll-heading > div { max-width: 760px; }
.poll-source-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e6d5aa;
  border-radius: 11px;
  background: rgba(255,255,255,.78);
  color: #8d6200;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.poll-source-link:hover { background: #fff5d8; border-color: #d6b65c; }
.poll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 30px;
  align-items: stretch;
}
.poll-chart-card,
.poll-method-card,
.poll-meta-grid,
.poll-other-results {
  border: 1px solid #eadfc9;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 22px rgba(86,63,17,.045);
}
.poll-chart-card { min-width: 0; padding: 22px 22px 18px; }
.poll-chart-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.poll-chart-head h3 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.02em; }
.poll-date { color: var(--muted); font-size: 10px; font-weight: 600; text-align: right; }
.poll-chart-scroll { overflow-x: auto; margin-top: 24px; padding: 8px 0 2px; scrollbar-width: thin; }
.poll-chart {
  min-width: 810px;
  height: 318px;
  display: grid;
  grid-template-columns: 42px minmax(740px, 1fr);
  gap: 10px;
}
.poll-axis { position: relative; height: 248px; margin-top: 8px; color: #9b907b; font-size: 9px; }
.poll-axis span { position: absolute; right: 0; transform: translateY(50%); }
.poll-plot { position: relative; height: 308px; min-width: 0; }
.poll-grid-lines { position: absolute; inset: 8px 0 auto; height: 248px; pointer-events: none; }
.poll-grid-lines span { position: absolute; left: 0; right: 0; border-top: 1px dashed #eee2ca; }
.poll-bars {
  position: relative;
  z-index: 1;
  height: 308px;
  display: grid;
  grid-template-columns: repeat(12, minmax(52px, 1fr));
  gap: 8px;
  align-items: start;
}
.poll-bar-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 256px auto auto;
  justify-items: center;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.poll-bar-zone {
  position: relative;
  width: 100%;
  height: 248px;
  align-self: start;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 8px;
}
.poll-bar-fill {
  width: min(34px, 70%);
  min-height: 3px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #f0bf3b, #d89a00);
  box-shadow: inset 0 0 0 1px rgba(116,79,0,.07);
  transition: transform .16s ease, filter .16s ease;
}
.poll-leading .poll-bar-fill { background: linear-gradient(180deg, #e6aa10, #b97800); }
.poll-zero .poll-bar-fill { border-radius: 999px; background: #d7c59b; }
.poll-value {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translate(-50%, 50%);
  color: #5b4210;
  font-size: 11px;
  font-weight: 800;
}
.poll-bar-item strong { width: 100%; overflow: hidden; margin-top: 8px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.poll-bar-item small { margin-top: 1px; color: #9a8e76; font-size: 8px; font-weight: 700; }
a.poll-bar-item:hover .poll-bar-fill { transform: translateY(-2px); filter: saturate(1.08); }
a.poll-bar-item:hover strong { color: #9b6800; }
.poll-side { display: grid; gap: 10px; align-content: start; }
.poll-method-card { padding: 19px; background: #2d281d; color: #fffaf0; border-color: #2d281d; box-shadow: none; }
.poll-method-card .mini-label { color: #e8bd52; }
.poll-method-card strong { display: block; margin-top: 7px; font-size: 15px; line-height: 1.35; }
.poll-method-card p { margin: 8px 0 0; color: #d0c6b2; font-size: 11px; line-height: 1.55; }
.poll-meta-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.poll-meta-grid > div { min-width: 0; padding: 14px; border-bottom: 1px solid #efe5d1; }
.poll-meta-grid > div:nth-child(odd) { border-right: 1px solid #efe5d1; }
.poll-meta-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.poll-meta-grid strong, .poll-meta-grid span { display: block; }
.poll-meta-grid strong { overflow-wrap: anywhere; color: #8d6000; font-size: 13px; }
.poll-meta-grid span { margin-top: 3px; color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; }
.poll-other-results { overflow: hidden; }
.poll-other-results > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 15px; }
.poll-other-results > div + div { border-top: 1px solid #efe5d1; }
.poll-other-results span { color: var(--muted); font-size: 10px; }
.poll-other-results strong { color: #4e3a0c; font-size: 18px; }
.poll-roster-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #edddb7;
  border-radius: 13px;
  background: #fff8e6;
}
.poll-note-icon { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ecc054; color: #4b3608; font-size: 11px; font-weight: 900; }
.poll-roster-note strong { display: block; font-size: 11px; }
.poll-roster-note p { margin: 2px 0 0; color: #746a55; font-size: 10.5px; line-height: 1.55; }

/* Candidate profile icons */
.overview-card-head { display: flex; align-items: center; gap: 10px; }
.overview-icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: #fff2c9; color: #9e6a00; }
.theme-index a:not(.index-source) { grid-template-columns: 26px 22px minmax(0,1fr); }
.theme-index-icon { width: 17px; height: 17px; color: #a7740b !important; }
.theme-index-icon svg { width: 17px; height: 17px; }
.detail-heading { grid-template-columns: 42px 48px minmax(0,1fr); align-items: center; }
.detail-theme-icon { width: 44px; height: 44px; padding: 10px; border: 1px solid #ead7aa; border-radius: 13px; background: #fff8e6; color: #9d6900; }
.proposal-list { margin-left: 104px; }

/* Comparison — candidate strip */
.compare-dialog { width: min(1180px, calc(100% - 24px)); overflow: auto; }
.compare-shell { min-height: 100%; }
.compare-people-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 28px;
  border-bottom: 1px solid #efe4cf;
  background: #fffdf8;
}
.compare-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #eadfc9;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}
.compare-person:hover { border-color: #dabd70; background: #fffaf0; }
.compare-person > span:nth-child(2) { min-width: 0; }
.compare-person strong, .compare-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-person strong { font-size: 11px; }
.compare-person small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 700; }
.compare-person > span:last-child { color: #aa7300; font-size: 11px; }
.compare-mini-photo { width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: #eee3ca; }
.compare-mini-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.compare-mini-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #765f2e; font-size: 10px; font-weight: 800; }

.compare-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 28px;
  border-bottom: 1px solid #eadfc9;
  background: #fff;
  scrollbar-width: thin;
}
.compare-tab {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #eadfc9;
  border-radius: 999px;
  background: #fffdf8;
  color: #6d6250;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.compare-tab:hover { border-color: #d9bc70; color: #805800; }
.compare-tab.active { border-color: #d5a62a; background: #fff0bd; color: #604300; box-shadow: inset 0 0 0 1px rgba(177,117,0,.04); }
.compare-tab.ai-tab { margin-left: 5px; background: #2d281d; border-color: #2d281d; color: #fff6dc; }
.compare-tab.ai-tab.active { background: #e3a70d; border-color: #e3a70d; color: #2b2006; }
.compare-tab-icon { width: 17px; height: 17px; }

.compare-view { padding: 24px 28px 32px; }
.compare-sector-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.sector-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sector-title-row h3, .ai-analysis-head h3, .ai-view-intro h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.025em; }
.sector-icon-large { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: #fff0bd; color: #956400; }
.ai-shortcut {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #ead5a1;
  border-radius: 10px;
  background: #fff9e8;
  color: #7c5500;
  font-size: 10px;
  font-weight: 800;
}
.ai-shortcut:hover { background: #fff0bd; border-color: #d6af4c; }
.ai-shortcut > svg { width: 17px; height: 17px; }
.compare-proposal-grid { display: grid; grid-template-columns: repeat(var(--compare-cols), minmax(0,1fr)); gap: 10px; }
.compare-proposal-card {
  min-width: 0;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid #eadfc9;
  border-radius: 15px;
  background: #fff;
}
.compare-proposal-card header { padding-bottom: 11px; border-bottom: 1px solid #f0e6d3; }
.compare-proposal-card header span { color: #a06d00; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compare-proposal-card h4 { margin: 3px 0 0; font-size: 15px; }
.compare-proposal-card ol { display: grid; gap: 10px; margin: 14px 0 20px; padding-left: 20px; }
.compare-proposal-card li { padding-left: 3px; color: #564e40; font-size: 11.5px; line-height: 1.55; }
.compare-proposal-card > a { margin-top: auto; color: #956400; font-size: 9.5px; font-weight: 800; text-decoration: none; }
.compare-proposal-card.is-empty { background: #fbfaf6; }
.compare-proposal-card .compare-empty { margin: 16px 0; }

/* AI analysis */
.ai-view-intro { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; }
.ai-view-intro > div { max-width: 780px; }
.ai-view-intro p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.ai-methodology {
  margin: 0 0 16px;
  border: 1px solid #eadcb9;
  border-radius: 14px;
  background: #fffdf7;
  overflow: hidden;
}
.ai-methodology summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
.ai-methodology summary::-webkit-details-marker { display: none; }
.ai-methodology summary > span:first-child { width: 24px; height: 24px; color: #9b6a00; }
.ai-methodology summary svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-methodology summary strong { display: block; color: #3f382b; font-size: 11px; }
.ai-methodology summary small { display: block; margin-top: 2px; color: #91846d; font-size: 9px; }
.method-chevron { justify-self: end; color: #9e8b62; font-size: 18px; transition: transform .18s ease; }
.ai-methodology[open] .method-chevron { transform: rotate(180deg); }
.ai-methodology-body { padding: 0 14px 14px 52px; border-top: 1px solid #f0e5c9; }
.ai-methodology-body > p { margin: 12px 0 0; color: #655b49; font-size: 10.5px; line-height: 1.6; }
.ai-methodology-body ol { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 18px; }
.ai-methodology-body li { color: #6d624e; font-size: 9.8px; line-height: 1.55; }
.ai-methodology-warning { margin-top: 11px; padding: 10px 11px; border-radius: 9px; background: #fff5d3; color: #705b2b; font-size: 9.5px; line-height: 1.55; }
.ai-methodology-warning strong { color: #4d3909; }
.ai-theme-selector { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 15px; scrollbar-width: thin; }
.ai-theme-button {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #eaddbd;
  border-radius: 10px;
  background: #fff;
  color: #746750;
  font-size: 9.5px;
  font-weight: 700;
}
.ai-theme-button > span { width: 16px; height: 16px; }
.ai-theme-button.active { background: #fff0bd; border-color: #d6aa3d; color: #6d4a00; }
.ai-analysis-panel { border-top: 1px solid #eadfc9; padding-top: 22px; }
.ai-analysis-head { display: flex; align-items: center; gap: 12px; }
.ai-warning {
  margin-top: 15px;
  padding: 11px 13px;
  border-left: 3px solid #d9a21a;
  border-radius: 0 10px 10px 0;
  background: #fff9e8;
  color: #6c604a;
  font-size: 10.5px;
  line-height: 1.55;
}
.ai-warning strong { color: #4d3909; }
.ai-criteria { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; align-items: start; margin-top: 17px; }
.ai-label { padding-top: 5px; color: #8c8069; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ai-criteria > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-criteria > div span { padding: 5px 8px; border: 1px solid #eadcb9; border-radius: 999px; background: #fff; color: #6d5b35; font-size: 9px; font-weight: 700; }
.ai-highlight {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e0bf68;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff6d7 0%, #fffdf7 78%);
}
.ai-highlight.neutral { border-color: #e5ddcd; background: #fbfaf7; }
.ai-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #e7ad1b; color: #332505; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.ai-highlight.neutral .ai-badge { background: #ebe7df; color: #655f55; }
.ai-highlight h4 { margin: 9px 0 0; font-family: Newsreader, Georgia, serif; font-size: 28px; line-height: 1.05; letter-spacing: -.025em; }
.ai-highlight > p { max-width: 880px; margin: 9px 0 0; color: #5e5544; font-size: 12px; line-height: 1.65; }
.ai-plan-evidence { margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(171,126,25,.18); }
.ai-plan-evidence > span { color: #8b733e; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.ai-plan-evidence ul { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 17px; }
.ai-plan-evidence li { color: #665a43; font-size: 10px; line-height: 1.5; }

.ai-highlight-caution { margin-top: 13px; padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.72); color: #746447; font-size: 9.7px; line-height: 1.55; }
.ai-highlight-caution strong { color: #544312; }
.ai-comparison-reading { margin-top: 14px; }
.section-mini-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.section-mini-head strong { color: #5b5141; font-size: 10px; font-weight: 700; }
.ai-candidate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 9px; }
.ai-candidate-card { padding: 13px; border: 1px solid #eadfc9; border-radius: 12px; background: #fff; }
.ai-candidate-card.is-highlighted { border-color: #dfbd63; background: #fffaf0; }
.ai-candidate-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #f0e6d4; }
.ai-candidate-card header span { color: #9a6d0f; font-size: 7.8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-candidate-card h5 { margin: 3px 0 0; color: #2f2a22; font-size: 12px; }
.ai-candidate-card header b { min-width: 25px; color: #c0983a; font-size: 9px; text-align: right; }
.ai-candidate-point { margin-top: 9px; }
.ai-candidate-point > span { color: #8a7550; font-size: 7.8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ai-candidate-point p { margin: 4px 0 0; color: #5e5546; font-size: 9.5px; line-height: 1.55; }
.ai-candidate-point.caution { padding-top: 8px; border-top: 1px dashed #eee3cd; }
.ai-candidate-point.caution > span { color: #9b6d19; }
.ai-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ai-context-grid article { padding: 15px; border: 1px solid #eadfc9; border-radius: 13px; background: #fff; }
.ai-context-grid p { margin: 7px 0 0; color: #665d4d; font-size: 10.5px; line-height: 1.6; }
.ai-caveat { margin-top: 10px; padding: 12px 14px; border-radius: 11px; background: #f6f3ec; color: #746c5e; font-size: 9.5px; line-height: 1.55; }
.ai-caveat strong { color: #514b40; }
.ai-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 13px; }
.ai-sources > span { margin-right: 4px; color: #887d68; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ai-sources a { padding: 5px 8px; border: 1px solid #e5d8b7; border-radius: 8px; background: #fff; color: #896000; font-size: 8.5px; font-weight: 700; text-decoration: none; }
.ai-sources a:hover { background: #fff5d8; }
.ai-empty { padding: 30px; border: 1px dashed #dfd7c8; border-radius: 13px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 980px) {
  .poll-layout { grid-template-columns: 1fr; }
  .poll-side { grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; }
  .poll-method-card, .poll-meta-grid, .poll-other-results { min-height: 100%; }
  .compare-people-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .poll-section { padding: 54px 0 60px; }
  .poll-heading { align-items: flex-start; flex-direction: column; }
  .poll-source-link { margin-top: 14px; }
  .poll-layout { margin-top: 20px; }
  .poll-chart-card { padding: 18px 14px 14px; }
  .poll-chart-head { align-items: flex-start; flex-direction: column; }
  .poll-date { text-align: left; }
  .poll-side { grid-template-columns: 1fr; }
  .poll-chart { min-width: 760px; }
  .poll-roster-note { padding: 12px; }

  .detail-heading { grid-template-columns: 34px 40px minmax(0,1fr); gap: 9px; }
  .detail-theme-icon { width: 38px; height: 38px; padding: 8px; border-radius: 11px; }
  .proposal-list { margin-left: 0; }
  .theme-index a:not(.index-source) { display: inline-flex; }
  .theme-index-icon { display: inline-grid !important; }

  .compare-dialog { width: calc(100% - 10px); }
  .compare-people-strip { grid-template-columns: 1fr; padding: 12px 16px; }
  .compare-tabs { padding: 10px 16px; }
  .compare-view { padding: 19px 16px 25px; }
  .compare-sector-heading { align-items: flex-start; flex-direction: column; }
  .ai-shortcut { width: 100%; justify-content: center; }
  .compare-proposal-grid { grid-template-columns: 1fr; }
  .compare-proposal-card { min-height: 0; }
  .ai-methodology-body { padding-left: 14px; }
  .section-mini-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ai-criteria { grid-template-columns: 1fr; gap: 6px; }
  .ai-context-grid { grid-template-columns: 1fr; }
  .ai-highlight h4 { font-size: 24px; }
}

@media (max-width: 480px) {
  .poll-meta-grid { grid-template-columns: 1fr 1fr; }
  .poll-chart { min-width: 700px; height: 300px; }
  .poll-bars { height: 292px; }
  .poll-bar-item { grid-template-rows: 248px auto auto; }
  .poll-bar-zone { height: 240px; }
  .poll-grid-lines, .poll-axis { height: 240px; }
  .sector-icon-large { width: 38px; height: 38px; padding: 8px; }
  .compare-header h2 { font-size: 30px; }
}

/* Branding icon */
.brand-mark {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 11px;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}
.brand-mark img { display:block; width:100%; height:100%; object-fit:cover; }

/* Pesquisa visível também nos cards */
.poll-card-badge {
  position:absolute;
  z-index:3;
  top:14px;
  left:14px;
  display:flex;
  align-items:baseline;
  gap:5px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:10px;
  background:rgba(255,247,215,.95);
  color:#2f250d;
  box-shadow:0 7px 18px rgba(36,27,7,.14);
  backdrop-filter:blur(6px);
}
.poll-card-badge b { font-size:12px; line-height:1; }
.poll-card-badge small { color:#776441; font-size:7.5px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.poll-card-badge.is-untested { background:rgba(40,36,27,.74); color:#fff; border-color:rgba(255,255,255,.28); }
.poll-card-badge.is-untested small { color:#e9deca; }

/* Realism methodology */
.realism-weights {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin-top:12px;
}
.realism-weights article {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:9px;
  padding:9px 10px;
  border:1px solid #eee1c2;
  border-radius:10px;
  background:#fff;
}
.realism-weights article > strong { color:#a26c00; font-size:13px; }
.realism-weights b { display:block; color:#433b2d; font-size:9.5px; }
.realism-weights p { margin:3px 0 0; color:#766b58; font-size:8.8px; line-height:1.45; }
.ai-methodology-body > ul { display:grid; gap:6px; margin:12px 0 0; padding-left:18px; }
.ai-methodology-body > ul li { color:#6d624e; font-size:9.8px; line-height:1.55; }

/* New pessimistic-realism cards */
.realism-cards { display:grid; gap:14px; margin-top:16px; }
.realism-card {
  overflow:hidden;
  border:1px solid #e7dcc4;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 20px rgba(80,59,16,.04);
}
.realism-card.is-top { border-color:#d9af3c; box-shadow:0 9px 26px rgba(169,116,0,.09); }
.realism-card-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 18px;
  border-bottom:1px solid #eee4d1;
  background:linear-gradient(180deg,#fffdf9,#fffaf0);
}
.realism-card-head > div:first-child > span { color:#9a6c0b; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.09em; }
.realism-card-head h4 { margin:4px 0 0; font-size:17px; letter-spacing:-.015em; }
.realism-score {
  flex:0 0 auto;
  min-width:76px;
  display:grid;
  grid-template-columns:auto auto;
  justify-content:center;
  align-items:baseline;
  padding:7px 10px 6px;
  border:1px solid #e7d9ba;
  border-radius:12px;
  background:#fff;
}
.realism-score strong { font-family:Newsreader,Georgia,serif; font-size:25px; line-height:1; }
.realism-score > span { margin-left:2px; color:#8a806d; font-size:9px; }
.realism-score small { grid-column:1 / -1; margin-top:2px; color:#887c68; font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; text-align:center; }
.realism-score.score-high { border-color:#b9d5bf; background:#f1f8f2; color:#275b34; }
.realism-score.score-mid-high { border-color:#d7c483; background:#fff9e4; color:#765100; }
.realism-score.score-mid { border-color:#e8c8a7; background:#fff7ef; color:#87552a; }
.realism-score.score-low { border-color:#e5baba; background:#fff3f2; color:#8a3530; }
.realism-one-line { padding:14px 18px; border-bottom:1px solid #f0e8d9; }
.realism-one-line > span, .realism-label { color:#8e7750; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.realism-one-line p { margin:5px 0 0; color:#3f392e; font-size:11px; font-weight:650; line-height:1.55; }
.realism-two-col, .realism-money-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; border-bottom:1px solid #f0e8d9; }
.realism-two-col section, .realism-money-grid section { padding:14px 18px; }
.realism-two-col section + section, .realism-money-grid section + section { border-left:1px solid #f0e8d9; }
.realism-two-col ul, .realism-risks ul { display:grid; gap:5px; margin:7px 0 0; padding-left:17px; }
.realism-two-col li, .realism-risks li { color:#655d4f; font-size:9.7px; line-height:1.52; }
.realism-two-col .is-caution { background:#fffdf8; }
.realism-block { padding:14px 18px; border-bottom:1px solid #f0e8d9; }
.realism-feasibility { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:8px; }
.realism-feasibility article { min-width:0; padding:9px; border:1px solid #e8dfce; border-radius:10px; background:#fbfaf7; }
.realism-feasibility article > span { display:block; color:#8c806d; font-size:7.5px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.realism-feasibility article > strong { display:block; margin-top:3px; font-size:10px; }
.realism-feasibility article > p { margin:4px 0 0; color:#696156; font-size:8.5px; line-height:1.42; }
.realism-feasibility .risk-low { border-color:#cfe0d1; background:#f5faf5; }
.realism-feasibility .risk-low strong { color:#356540; }
.realism-feasibility .risk-mid { border-color:#ead8a4; background:#fffaf0; }
.realism-feasibility .risk-mid strong { color:#896000; }
.realism-feasibility .risk-high { border-color:#e6c2b9; background:#fff7f4; }
.realism-feasibility .risk-high strong { color:#8e4938; }
.realism-money-grid p, .realism-timeline p, .realism-likely p { margin:6px 0 0; color:#625a4d; font-size:9.6px; line-height:1.55; }
.realism-timeline, .realism-risks, .realism-likely { padding:13px 18px; border-bottom:1px solid #f0e8d9; }
.realism-likely { background:#fffaf0; }
.realism-card footer { padding:12px 18px 14px; background:#f8f6f1; color:#625a4e; font-size:9.5px; line-height:1.55; }
.realism-card footer strong { color:#3e382e; }
.realism-unassessed { margin-top:12px; padding:11px 13px; border:1px dashed #ddd3c0; border-radius:10px; color:#746b5d; font-size:9.5px; line-height:1.5; }

@media (max-width:760px) {
  .poll-card-badge { top:10px; left:10px; }
  .realism-weights { grid-template-columns:1fr; }
  .realism-feasibility { grid-template-columns:1fr 1fr; }
  .realism-two-col, .realism-money-grid { grid-template-columns:1fr; }
  .realism-two-col section + section, .realism-money-grid section + section { border-left:0; border-top:1px solid #f0e8d9; }
  .realism-card-head { align-items:flex-start; }
}
@media (max-width:480px) {
  .poll-card-badge { max-width:135px; }
  .poll-card-badge small { display:none; }
  .realism-feasibility { grid-template-columns:1fr; }
}

/* Links de rastreabilidade da análise */
.realism-links { display:flex; flex-wrap:wrap; gap:8px 16px; padding-top:13px; border-top:1px solid rgba(211,177,91,.24); }
.realism-links a { color:#765615; font-size:10px; font-weight:800; text-decoration:none; }
.realism-links a:hover { text-decoration:underline; }


/* Ordem eleitoral fixa: os cards seguem a pesquisa exibida no portal */
.poll-order-lock {
  display: flex;
  min-height: 60px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #ead7aa;
  border-radius: 12px;
  background: #fffdf8;
}
.poll-order-lock > span {
  color: #95876d;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.poll-order-lock > strong {
  margin-top: 4px;
  color: #5f4508;
  font-size: 13px;
  font-weight: 750;
}

/* Seletor de instituto: a escolha atualiza gráfico e ordem dos cards */
.poll-picker-card select,
.poll-selector select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.poll-picker-card { min-width: 0; }
.poll-heading-actions {
  flex: 0 0 270px;
  display: flex;
  max-width: none !important;
  flex-direction: column;
  gap: 8px;
}
.poll-selector {
  display: grid;
  gap: 4px;
  padding: 9px 13px;
  border: 1px solid #e6d5aa;
  border-radius: 11px;
  background: rgba(255,255,255,.82);
}
.poll-selector > span {
  color: #96866b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.poll-heading-actions .poll-source-link { justify-content: center; }

@media (max-width: 760px) {
  .poll-heading-actions { flex: 1 1 auto; width: 100%; }
}


/* Candidate profile fact box and official-plan status */
.profile-status.status-found { color: #2f7d32; }
.profile-status.status-found > span { background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,.18); animation: statusPulseGreen 1.6s ease-in-out infinite; }
.warning-status > span { animation: none; }
@keyframes statusPulseGreen { 0%{transform:scale(1);box-shadow:0 0 0 0 rgba(46,204,113,.45),0 0 0 4px rgba(46,204,113,.18)} 60%{transform:scale(1.08);box-shadow:0 0 0 8px rgba(46,204,113,0),0 0 0 4px rgba(46,204,113,.12)} 100%{transform:scale(1);box-shadow:0 0 0 0 rgba(46,204,113,0),0 0 0 4px rgba(46,204,113,.18)} }
.fact--party strong { width:100%; font-size:clamp(22px,2.1vw,30px); line-height:.95; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; overflow-wrap:normal; word-break:normal; letter-spacing:-.02em; }

/* Research-validated AI analysis */
.research-meta-inline { display:block; margin-top:5px; color:#8a7343; font-size:9px; font-weight:700; }
.research-validation { margin: 14px 0 2px; padding: 15px; border: 1px solid #ead9ae; border-radius: 13px; background: linear-gradient(180deg,#fffdf7,#fffbef); }
.research-validation-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.research-validation-head small { color:#9a8d73; font-size:8px; text-transform:uppercase; letter-spacing:.05em; }
.research-merit { padding: 11px 12px; border-left: 3px solid #d7a117; border-radius:0 9px 9px 0; background:#fff6d8; }
.research-merit strong { color:#5a420d; font-size:9px; text-transform:uppercase; letter-spacing:.07em; }
.research-merit p { margin:5px 0 0; color:#5b5140; font-size:10.5px; line-height:1.55; }
.research-two-col { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:9px; }
.research-two-col article { padding:10px 11px; border:1px solid #efe2c7; border-radius:10px; background:#fff; }
.research-two-col span { color:#956700; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.research-two-col p { margin:5px 0 0; color:#625846; font-size:10px; line-height:1.55; }
.research-evidence-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; margin-top:9px; }
.research-evidence-item { min-width:0; padding:10px 11px; border:1px solid #eadfc9; border-radius:10px; background:#fff; }
.research-evidence-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.research-evidence-top span { color:#9b6900; font-size:7.5px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.research-evidence-top small { color:#a49a87; font-size:7.5px; }
.research-evidence-item > strong { display:block; margin-top:5px; color:#3f382b; font-size:10px; }
.research-evidence-item p { margin:5px 0 0; color:#6b604e; font-size:9.5px; line-height:1.5; }
.research-evidence-item a { display:inline-block; margin-top:7px; color:#956400; font-size:8.5px; font-weight:800; text-decoration:none; }
.research-evidence-item a:hover { text-decoration:underline; }
@media (max-width:760px) {
  .research-two-col { grid-template-columns:1fr; }
  .research-validation-head { align-items:flex-start; flex-direction:column; gap:3px; }
  .research-evidence-list { grid-template-columns:1fr; }
}

.ai-research-cutoff { margin-top:8px; padding:10px 11px; border:1px solid #eadfc9; border-radius:9px; background:#fff; color:#756953; font-size:9.5px; line-height:1.55; }
.ai-research-cutoff strong { color:#4d3909; }
