:root {
  --blue: #0757d9;
  --blue-strong: #0348bd;
  --blue-soft: #eaf2ff;
  --navy: #07182f;
  --navy-2: #0b2342;
  --ink: #0b1018;
  --muted: #5c6878;
  --line: #dce3ec;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --yellow: #ffd229;
  --yellow-soft: #fff5bd;
  --green: #16865b;
  --orange: #a85b0a;
  --red: #b52828;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 30px rgba(14, 31, 53, 0.08);
  --shadow: 0 24px 70px rgba(3, 20, 42, 0.16);
  --shell: min(1180px, calc(100% - 40px));
  --display: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  --body: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.methodology :focus-visible,
.site-footer :focus-visible,
.compare-bar :focus-visible {
  outline-color: var(--yellow);
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  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: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 11px 16px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 74px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 24, 47, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand > span:last-child > span {
  color: var(--yellow);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 10px;
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.text-link svg,
.card-link svg,
.candidate-open svg,
.source-strip a svg,
.site-footer button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 12px 26px rgba(255, 210, 41, 0.2);
}

.button-primary:hover {
  background: #ffdc59;
  box-shadow: 0 14px 32px rgba(255, 210, 41, 0.3);
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-light {
  color: var(--navy);
  background: #fff;
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: #bdc8d6;
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: 10px;
  font-size: 13px;
}

.header-cta {
  background: #fff;
  color: var(--navy);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 6px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.menu-button span {
  width: 22px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 4px;
  transition: transform 150ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  padding: 12px 20px 22px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 77% 43%, rgba(21, 101, 230, 0.36), transparent 29%),
    radial-gradient(circle at 8% 10%, rgba(21, 101, 230, 0.2), transparent 28%),
    linear-gradient(135deg, #06162c 0%, #071b35 56%, #092444 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -260px;
  bottom: 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.014), 0 0 0 160px rgba(255, 255, 255, 0.012);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: 80px;
  padding-top: 98px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b7c7da;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 210, 41, 0.12);
}

.hero h1,
.section-heading h2,
.explorer-heading h2,
.method-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(52px, 6vw, 78px);
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-lead {
  max-width: 630px;
  margin: 25px 0 30px;
  color: #c6d2e0;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-underline-offset: 5px;
  font-weight: 600;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 35px;
  color: #92a6bd;
  font-size: 12px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-trust svg {
  width: 15px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-one {
  inset: 45px 8px 4px 44px;
}

.orbit-two {
  inset: 115px 70px 72px 115px;
  border-style: dashed;
  animation: rotate 40s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.hero-card {
  position: absolute;
  z-index: 2;
  padding: 17px 19px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.hero-card small,
.micro-label {
  display: block;
  color: #687588;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 14px;
}

.hero-card-main {
  inset: 135px auto auto 132px;
  width: 230px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--yellow);
}

.decision-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 13px 0 8px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 20px;
}

.decision-icon svg {
  width: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card-main strong {
  font-size: 18px;
}

.hero-card-main small:last-child {
  margin-top: 5px;
  text-transform: none;
  letter-spacing: 0;
}

.hero-card-a {
  top: 40px;
  left: 0;
}

.hero-card-b {
  top: 83px;
  right: 0;
}

.hero-card-c {
  right: 25px;
  bottom: 32px;
}

.dot {
  width: 7px;
  height: 7px;
  display: block;
  margin-bottom: 9px;
  border-radius: 50%;
}

.dot-yellow { background: var(--yellow); }
.dot-blue { background: var(--blue); }
.dot-white { background: #97a7bb; }

.connection {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: rgba(255, 210, 41, 0.65);
  transform-origin: left;
}

.connection::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
}

.connection-a { width: 155px; top: 130px; left: 104px; transform: rotate(30deg); }
.connection-b { width: 125px; top: 176px; left: 310px; transform: rotate(-27deg); }
.connection-c { width: 125px; top: 315px; left: 315px; transform: rotate(35deg); }

.data-pill {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  padding: 8px 14px;
  color: #ced9e6;
  background: rgba(7, 24, 47, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 11px;
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.source-strip {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  color: var(--ink);
  background: #fff;
  border-radius: 17px 17px 0 0;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.1);
}

.source-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.source-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.source-strip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.source-strip p span {
  color: var(--muted);
}

.source-strip > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.civic-spotlight {
  padding: 34px 0 0;
  background: #fff;
}

.civic-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: 38px;
  align-items: center;
  padding: 34px 38px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid #e5b900;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.civic-spotlight-card .kicker {
  margin-bottom: 11px;
  color: #514400;
}

.civic-spotlight-card h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.civic-spotlight-copy > p:last-child {
  max-width: 860px;
  margin: 13px 0 0;
  color: #554900;
  font-size: 14px;
}

.civic-spotlight-lead {
  max-width: 860px;
  margin: 18px 0 0;
  color: #211d08;
  font-size: 17px;
  font-weight: 700;
}

.civic-spotlight-actions {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.civic-spotlight-actions .button {
  min-height: 60px;
  justify-content: space-between;
  padding: 13px 18px;
  line-height: 1.3;
  text-align: left;
}

.civic-spotlight-actions .button svg {
  flex: 0 0 auto;
}

.civic-spotlight-actions small {
  color: #5f5100;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-heading h2,
.explorer-heading h2,
.method-copy h2,
.final-cta h2 {
  font-size: clamp(36px, 4.3vw, 52px);
}

.section-heading > p:last-child,
.explorer-heading > p,
.section-heading-split > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.steps {
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  min-height: 348px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: #b9c8db;
  box-shadow: var(--shadow-sm);
}

.step-card-accent {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.step-card-accent p {
  color: #b9c8d8 !important;
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.step-top > span {
  color: #9cabbc;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.step-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 17px;
}

.step-card-accent .step-icon {
  color: var(--ink);
  background: var(--yellow);
}

.step-icon svg {
  width: 37px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card h3 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.step-card-accent .card-link {
  color: var(--yellow);
}

.civic-context {
  background: var(--canvas);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.concept-card {
  position: relative;
  min-height: 245px;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.concept-number {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.concept-card h3 {
  margin: 58px 0 10px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.concept-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.concept-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  top: -48px;
  right: -48px;
  background: var(--blue-soft);
  border-radius: 50%;
}

.vote-explainer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.vote-explainer > div {
  padding: 36px;
  background: var(--navy);
}

.vote-explainer > div:last-child {
  color: var(--ink);
  background: var(--yellow);
}

.vote-explainer h3 {
  margin: 8px 0 13px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.vote-explainer p:not(.kicker) {
  margin: 0;
  color: #b9c8d8;
  font-size: 14px;
}

.research-checklist h3 {
  margin-top: 0;
  font-size: 20px;
}

.research-checklist ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.research-checklist li {
  margin: 7px 0;
  color: #584900;
  font-size: 13px;
}

.research-checklist .button {
  width: 100%;
  justify-content: space-between;
}

.context-source {
  max-width: 930px;
  margin: 22px 0 0;
  color: #667387;
  font-size: 12px;
}

.context-source a {
  color: var(--blue);
  font-weight: 700;
}

.explorer-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--blue);
}

.explorer-section::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: -350px;
  right: -130px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 100px rgba(255, 255, 255, 0.025), 0 0 0 200px rgba(255, 255, 255, 0.02);
}

.explorer-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
}

.explorer-heading > p {
  color: #d3e3ff;
  font-size: 14px;
}

.kicker-light {
  color: var(--yellow);
}

.explorer-panel {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 24, 77, 0.22);
}

.filters {
  padding: 28px 30px 25px;
  background: #f8faff;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.filter-row-primary {
  align-items: flex-start;
}

.field > span:first-child,
.field legend,
.filter-title,
.compact-field > span {
  display: block;
  margin-bottom: 9px;
  color: #394556;
  font-size: 12px;
  font-weight: 800;
}

.field-state {
  width: 210px;
  flex: 0 0 210px;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-wrap select,
.compact-field select,
.sort-field select,
.indicator-controls select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd6e2;
  border-radius: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%234c5a6a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  font-size: 13px;
}

.select-wrap select {
  padding-left: 42px;
}

.role-field {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
}

.role-field legend {
  padding: 0;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-chips input,
.flag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-chips span {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: #4d5969;
  background: #fff;
  border: 1px solid #cdd6e2;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: all 150ms ease;
}

.role-chips input:checked + span {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 7px 16px rgba(7, 87, 217, 0.2);
}

.role-chips input:focus-visible + span,
.flag-option input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.flags-block {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.filter-label-row small {
  display: block;
  color: #526174;
  font-size: 12px;
}

.subtle-button {
  padding: 5px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.flag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.flag-option > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #344154;
  background: #fff;
  border: 1px solid #d4dce7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: all 150ms ease;
}

.flag-option > span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--flag-color, var(--blue));
  border-radius: 50%;
}

.flag-option input:checked + span {
  color: var(--navy);
  background: var(--yellow-soft);
  border-color: var(--yellow);
}

.filter-row-secondary {
  margin-top: 22px;
}

.advanced-filters {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.advanced-filters summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto max-content 1fr auto;
  align-items: center;
  gap: 12px;
  color: #26364b;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.advanced-filters summary::-webkit-details-marker {
  display: none;
}

.advanced-filters summary::before {
  content: "+";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 18px;
}

.advanced-filters[open] summary::before {
  content: "−";
}

.advanced-filters summary small {
  color: #718094;
  font-size: 11px;
  font-weight: 500;
}

.advanced-filters summary strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 10px;
}

.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 5px 0 18px;
}

.advanced-field > span {
  display: block;
  margin-bottom: 7px;
  color: #4b596c;
  font-size: 11px;
  font-weight: 800;
}

.advanced-field select,
.advanced-field input {
  width: 100%;
  height: 43px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #cdd6e2;
  border-radius: 9px;
  font-size: 12px;
}

.advanced-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%234c5a6a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.advanced-field input {
  padding-right: 12px;
}

.advanced-filter-note {
  margin: 0 0 4px;
  padding: 12px 14px;
  color: #5d6b7d;
  background: #eef3fa;
  border-radius: 9px;
  font-size: 11px;
}

.search-field {
  position: relative;
  flex: 1;
}

.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 19px;
  fill: none;
  stroke: #68778a;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 43px;
  background: #fff;
  border: 1px solid #cdd6e2;
  border-radius: 10px;
  font-size: 13px;
}

.compact-field {
  width: 200px;
}

.compact-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.compact-field:last-child {
  width: 240px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 30px 15px;
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.results-toolbar p strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
}

.results-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-field,
.indicator-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sort-field select {
  width: 170px;
  height: 38px;
  border-color: #d9e0e8;
  font-size: 11px;
}

.filter-mobile-button {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 700;
}

.filter-mobile-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 30px 15px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 10px;
  color: #224b80;
  background: var(--blue-soft);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.active-filter::after {
  content: "×";
  font-size: 15px;
  line-height: 1;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 30px 28px;
}

.candidate-grid[aria-busy="true"]::before {
  content: "Carregando candidaturas…";
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(100deg, #f5f7fa 30%, #eef2f7 50%, #f5f7fa 70%);
  background-size: 220% 100%;
  border-radius: var(--radius);
  animation: skeleton 1.6s infinite;
}

@keyframes skeleton {
  to { background-position-x: -220%; }
}

.candidate-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.candidate-card:hover {
  transform: translateY(-3px);
  border-color: #b4c4d8;
  box-shadow: var(--shadow-sm);
}

.candidate-top {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 13px;
  min-height: 70px;
}

.candidate-photo-wrap {
  position: relative;
  width: 66px;
  height: 72px;
  overflow: hidden;
  background: #e8eef6;
  border-radius: 13px;
}

.candidate-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #35516f;
  background: linear-gradient(145deg, #eaf1f9, #cfddec);
  font-family: var(--display);
  font-weight: 800;
}

.candidate-heading {
  min-width: 0;
  padding-right: 16px;
}

.role-badge {
  display: block;
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.candidate-heading h3 {
  overflow: hidden;
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-number {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.compare-toggle {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #647184;
  background: transparent;
  border: 0;
  font-size: 0;
}

.compare-toggle span {
  width: 20px;
  height: 20px;
  display: block;
  border: 1.5px solid #aeb9c7;
  border-radius: 6px;
}

.compare-toggle[aria-pressed="true"] span {
  background: var(--blue);
  border-color: var(--blue);
}

.compare-toggle[aria-pressed="true"] span::after {
  content: "✓";
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 18px;
}

.party-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0 13px;
  padding: 10px;
  background: #f7f9fc;
  border-radius: 10px;
}

.party-monogram {
  min-width: 34px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--navy);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
}

.party-line p {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #485568;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 12px;
}

.candidate-traits span {
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  color: #536276;
  background: #f2f5f9;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-flags {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-flag,
.source-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #234d7e;
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.mini-flag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--flag-color, var(--blue));
  border-radius: 50%;
}

.mini-flag.muted {
  color: #6d7886;
  background: #f1f3f6;
}

.candidate-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}

.signal {
  min-width: 0;
  padding: 8px;
  color: #576477;
  background: #fbfcfd;
  border: 1px solid #e6eaf0;
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.3;
}

.signal strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal.attention strong { color: var(--orange); }
.signal.positive strong { color: var(--red); }
.signal.regular strong { color: var(--green); }

.candidate-open {
  width: 100%;
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 12px;
  color: var(--blue);
  background: transparent;
  border: 1px solid #c9d7e9;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.candidate-open:hover {
  background: var(--blue-soft);
}

.empty-state {
  margin: 15px 30px 30px;
  padding: 55px 20px;
  text-align: center;
  background: #f8fafd;
  border: 1px dashed #c4cfdd;
  border-radius: 16px;
}

.empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.empty-state svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--display);
}

.empty-state p {
  max-width: 470px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 13px;
}

.results-footer {
  padding: 0 30px 30px;
  text-align: center;
}

.results-footer p {
  margin: 14px 0 0;
  color: #8590a0;
  font-size: 10px;
}

.indicators {
  background: var(--canvas);
}

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: end;
  gap: 80px;
}

.section-heading-split > p {
  font-size: 15px;
}

.indicator-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.indicator-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: #eef2f7;
  border-radius: 10px;
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  color: #607083;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.segmented button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 31, 56, 0.1);
}

.indicator-controls select {
  width: 245px;
  height: 38px;
  font-size: 11px;
}

.indicator-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-stat {
  padding: 20px 24px;
  background: #fff;
}

.summary-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-stat strong {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.summary-stat small {
  display: block;
  margin-top: 2px;
  color: #5f6d7f;
  font-size: 10px;
}

.table-scroll {
  overflow-x: auto;
  outline-offset: -3px;
}

.table-scroll-hint {
  display: none;
  margin: 0;
  padding: 9px 16px;
  color: #5e6d80;
  background: #f5f7fa;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #e9edf2;
}

th {
  color: #687486;
  background: #fafbfd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

td:first-child {
  min-width: 210px;
  font-weight: 700;
}

.table-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.table-monogram {
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
}

.metric-cell {
  min-width: 150px;
}

.metric-cell strong {
  display: block;
  font-family: var(--display);
}

.metric-cell small {
  color: #59687b;
}

.metric-bar {
  width: 100%;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  background: #e9edf2;
  border-radius: 999px;
}

.metric-bar span {
  height: 100%;
  display: block;
  background: var(--blue);
  border-radius: inherit;
}

.metric-cell.attention .metric-bar span { background: #d98a28; }
.metric-cell.certificate .metric-bar span { background: #b43c3c; }
.metric-cell.coverage .metric-bar span { background: #347e66; }
.metric-cell.academic .metric-bar span { background: #6554c0; }

.metric-cell.unavailable strong {
  color: #7c8795;
  font-size: 14px;
}

.info-tip {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  color: #fff;
  background: #8390a0;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.info-tip::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 30;
  width: 240px;
  padding: 9px 11px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: normal;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.info-tip:hover::after,
.info-tip:focus::after {
  opacity: 1;
}

.indicator-footnote {
  display: flex;
  gap: 11px;
  padding: 18px 22px;
  color: #596679;
  background: #fff9da;
  font-size: 11px;
}

.indicator-footnote svg {
  width: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #826700;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.indicator-footnote p {
  margin: 0;
}

.indicator-footnote a {
  color: var(--blue);
  font-weight: 700;
}

.education-indicator-block {
  margin-top: 34px;
}

.education-indicator-heading {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: end;
  gap: 50px;
  margin-bottom: 20px;
}

.education-indicator-heading h3 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.education-indicator-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.education-summary {
  grid-template-columns: repeat(5, 1fr);
}

.education-summary .summary-stat strong {
  font-size: 20px;
  line-height: 1.1;
}

.education-table .metric-cell {
  min-width: 125px;
}

.education-footnote {
  background: #f0edff;
}

.education-footnote svg {
  stroke: #5543ad;
}

.detail-section-intro {
  margin: -4px 0 18px !important;
  color: #69778a !important;
  font-size: 10px !important;
}

.academic-source {
  margin: 14px 0 0 !important;
  padding: 10px 12px;
  color: #546378 !important;
  background: #f1f5fb;
  border-radius: 8px;
  font-size: 10px !important;
}

.academic-source a {
  color: var(--blue);
  font-weight: 700;
}

.methodology {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.methodology::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -220px;
  top: -250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.02);
}

.method-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.method-copy > p:not(.kicker) {
  margin: 24px 0 30px;
  color: #b6c5d6;
  font-size: 16px;
}

.method-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.method-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.method-list article > span {
  color: var(--yellow);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.method-list h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 17px;
}

.method-list p {
  margin: 0;
  color: #aabbd0;
  font-size: 13px;
}

.final-cta {
  padding: 78px 0;
  background: var(--yellow);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.final-cta-inner > div {
  max-width: 720px;
}

.final-cta .kicker {
  color: #755e00;
}

.final-cta h2 {
  font-size: 42px;
}

.final-cta p:not(.kicker) {
  margin: 13px 0 0;
  color: #564900;
}

.final-cta .button-primary {
  flex: 0 0 auto;
  color: #fff;
  background: var(--navy);
  box-shadow: none;
}

.site-footer {
  color: #d0d9e6;
  background: #050f1e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr 1.2fr;
  gap: 60px;
  padding: 62px 0 48px;
}

.brand-footer {
  color: #fff;
}

.footer-grid > div:first-child > p {
  max-width: 330px;
  margin: 18px 0 0;
  color: #7f91a8;
  font-size: 12px;
}

.footer-grid > div:first-child > .footer-credit {
  margin-top: 10px;
  color: #afbdce;
}

.footer-grid h3 {
  margin: 4px 0 16px;
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid > div > a {
  display: block;
  margin: 9px 0;
  color: #8fa0b5;
  text-decoration: none;
  font-size: 12px;
}

.footer-grid > div > a:hover {
  color: #fff;
}

.footer-status p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #cbd6e4;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #3dd697;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(61, 214, 151, 0.12);
}

.footer-status small {
  display: block;
  margin-top: 6px;
  color: #667a93;
}

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #61738a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.footer-bottom button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: #8b9db3;
  background: transparent;
  border: 0;
}

.legal-site-footer {
  margin-top: 70px;
  color: #9bacbf;
  background: #050f1e;
}

.legal-footer-inner {
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 28px 0;
}

.legal-footer-inner p {
  margin: 0;
  font-size: 12px;
}

.legal-footer-inner strong,
.legal-footer-inner span {
  display: block;
}

.legal-footer-inner strong {
  margin-bottom: 5px;
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
}

.legal-footer-inner div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.legal-footer-inner a {
  color: #aebdd0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.legal-footer-inner a:hover {
  color: #fff;
}

.compare-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  color: #fff;
  background: rgba(7, 24, 47, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

body.has-compare {
  padding-bottom: 76px;
}

.compare-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.compare-inner > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

.compare-count {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 9px;
  font-family: var(--display);
  font-weight: 800;
}

.compare-inner p {
  margin: 0;
  line-height: 1.25;
}

.compare-inner p strong,
.compare-inner p small {
  display: block;
}

.compare-inner p strong { font-size: 12px; }
.compare-inner p small { margin-top: 3px; color: #8fa2b9; font-size: 9px; }

.compare-people {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.compare-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: #29405c;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.compare-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.icon-button svg,
.dialog-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.candidate-dialog,
.compare-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.4);
}

.candidate-dialog::backdrop,
.compare-dialog::backdrop {
  background: rgba(3, 13, 27, 0.78);
  backdrop-filter: blur(6px);
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
}

.dialog-close {
  position: sticky;
  top: 15px;
  z-index: 10;
  width: 42px;
  height: 42px;
  display: grid;
  float: right;
  place-items: center;
  margin: 15px 15px -57px 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.detail-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: end;
  gap: 26px;
  padding: 62px 65px 36px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(7, 87, 217, 0.65), transparent 30%),
    var(--navy);
}

.detail-photo {
  width: 150px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  background: #dce5ef;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.detail-title .role-badge {
  color: var(--yellow);
}

.detail-title h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: clamp(33px, 4.5vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-title > p {
  margin: 10px 0 0;
  color: #b6c6d8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 6px 10px;
  color: #d9e5f2;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 10px;
}

.detail-content {
  padding: 38px 65px 60px;
}

.detail-alert {
  display: flex;
  gap: 11px;
  margin-bottom: 30px;
  padding: 14px 16px;
  color: #644d00;
  background: #fff8d6;
  border: 1px solid #f2df88;
  border-radius: 12px;
  font-size: 11px;
}

.detail-alert svg {
  width: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-alert p { margin: 0; }

.detail-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
}

.detail-section {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-section.full {
  grid-column: 1 / -1;
}

.detail-section h3 {
  margin: 0 0 17px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.detail-section h4 {
  margin: 20px 0 8px;
  font-family: var(--display);
  font-size: 13px;
}

.detail-section > p {
  color: var(--muted);
  font-size: 13px;
}

.detail-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-flag {
  padding: 9px 11px;
  background: var(--blue-soft);
  border-radius: 10px;
}

.detail-flag strong {
  display: block;
  color: #173f6d;
  font-size: 11px;
}

.detail-flag small {
  color: #4d6682;
  font-size: 10px;
}

.detail-flag a {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.detail-flag em {
  display: block;
  margin-top: 5px;
  color: #4d5f73;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}

.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.facts-list div {
  padding-bottom: 10px;
  border-bottom: 1px solid #ebeff4;
}

.facts-list dt {
  color: #566578;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.facts-list dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.mindmap-wrap {
  position: relative;
  max-width: 100%;
  min-height: 430px;
  overflow: hidden;
  background: #f7f9fc;
  border-radius: 14px;
}

.mindmap-wrap svg {
  width: 100%;
  height: auto;
  min-height: 430px;
}

.mindmap-edge {
  fill: none;
  stroke: #b8c8db;
  stroke-width: 2;
}

.mindmap-node rect {
  fill: #fff;
  stroke: #ced8e5;
  stroke-width: 1.5;
  rx: 12;
}

.mindmap-node text {
  fill: var(--ink);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.mindmap-node.central rect {
  fill: var(--yellow);
  stroke: #ddaf00;
}

.mindmap-node.political rect {
  fill: var(--blue);
  stroke: var(--blue-strong);
}

.mindmap-node.political text {
  fill: #fff;
}

.mindmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.mindmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mindmap-legend i {
  width: 9px;
  height: 9px;
  display: block;
  background: #fff;
  border: 1px solid #becbd9;
  border-radius: 3px;
}

.mindmap-legend .candidate-key { background: var(--yellow); border-color: #ddaf00; }
.mindmap-legend .political-key { background: var(--blue); border-color: var(--blue); }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 23px;
  color: var(--muted);
  border-left: 1px solid #cad5e2;
  font-size: 11px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #b8c8d9;
}

.timeline li:last-child { padding-bottom: 0; }
.timeline strong { color: var(--ink); }

.proposal-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proposal-excerpt {
  margin: 13px 0 0;
  padding: 13px 15px;
  color: #4e5d70;
  background: #f7f9fc;
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
  font-size: 11px;
}

.document-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.document-stat {
  padding: 12px;
  background: #f7f9fc;
  border-radius: 10px;
}

.document-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
}

.document-stat span {
  color: var(--muted);
  font-size: 9px;
}

.reason-list,
.social-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  padding: 9px 0;
  color: #4f5c6e;
  border-bottom: 1px solid #e9edf2;
  font-size: 11px;
}

.reason-list strong { color: var(--ink); }

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.social-list a {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

.compare-dialog-shell {
  min-width: 0;
  padding: 48px 45px 55px;
}

.compare-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.045em;
}

.compare-heading p {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  min-width: 190px;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  min-width: 145px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fafbfd;
}

.compare-person img {
  width: 58px;
  height: 68px;
  margin-bottom: 8px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.compare-person strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 360px;
  padding: 13px 17px;
  color: #fff;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  box-shadow: var(--shadow);
  font-size: 12px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .header-cta { margin-left: auto; }
  .hero-layout { gap: 25px; }
  .hero-visual { transform: scale(0.88); transform-origin: center right; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { gap: 35px; }
}

@media (max-width: 880px) {
  :root { --shell: min(100% - 28px, 720px); }
  .section { padding: 82px 0; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 145px; padding-bottom: 60px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-trust { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { width: min(540px, 100%); margin: 0 auto; transform: none; }
  .source-strip { margin-top: 0; }
  .civic-spotlight-card { grid-template-columns: 1fr; gap: 24px; }
  .civic-spotlight-actions { max-width: 560px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 280px; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-card { min-height: 210px; }
  .concept-card h3 { margin-top: 35px; }
  .vote-explainer { grid-template-columns: 1fr; }
  .explorer-heading, .section-heading-split { grid-template-columns: 1fr; gap: 4px; }
  .filter-row-primary { flex-direction: column; }
  .field-state { width: 100%; flex-basis: auto; }
  .role-field { width: 100%; }
  .filter-row-secondary { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .compact-field, .compact-field:last-child { width: calc(50% - 11px); }
  .advanced-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicator-summary { grid-template-columns: repeat(2, 1fr); }
  .education-indicator-heading { grid-template-columns: 1fr; gap: 8px; }
  .education-summary { grid-template-columns: repeat(2, 1fr); }
  .table-scroll-hint { display: block; }
  .method-grid { grid-template-columns: 1fr; gap: 60px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-section.full { grid-column: auto; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { height: 66px; }
  .header-cta { display: none; }
  .hero { min-height: 0; }
  .hero-layout { min-height: 0; padding-top: 125px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-trust { display: none; }
  .hero-visual { min-height: 365px; transform: scale(0.78); transform-origin: top center; margin-bottom: -85px; }
  .hero-card-main { left: 50%; transform: translateX(-50%); }
  .hero-card-a { left: -20px; }
  .hero-card-b { right: -30px; }
  .hero-card-c { right: -8px; }
  .connection-a { left: 75px; }
  .source-strip { width: 100%; padding: 14px; border-radius: 0; }
  .source-strip > a { display: none; }
  .civic-spotlight { padding-top: 22px; }
  .civic-spotlight-card { padding: 25px 22px; border-radius: 18px; }
  .civic-spotlight-card h2 { font-size: 31px; }
  .civic-spotlight-lead { font-size: 16px; }
  .civic-spotlight-actions .button { width: 100%; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2, .explorer-heading h2, .method-copy h2, .final-cta h2 { font-size: 35px; }
  .step-card { min-height: 300px; padding: 24px; }
  .vote-explainer > div { padding: 27px 22px; }
  .vote-explainer h3 { font-size: 23px; }
  .explorer-section { padding-inline: 0; }
  .explorer-panel { width: calc(100% + 28px); margin-left: -14px; border-radius: 22px; }
  .filters { padding: 22px 18px; }
  .filters:not(.is-open) .flags-block,
  .filters:not(.is-open) .filter-row-secondary,
  .filters:not(.is-open) .advanced-filters { display: none; }
  .role-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .role-chips::-webkit-scrollbar { display: none; }
  .role-chips label { flex: 0 0 auto; }
  .filter-label-row { align-items: flex-start; }
  .compact-field, .compact-field:last-child { width: 100%; }
  .advanced-filters summary { grid-template-columns: auto 1fr auto; padding: 5px 0; }
  .advanced-filters summary small { display: none; }
  .advanced-filter-grid { grid-template-columns: 1fr; }
  .results-toolbar { padding: 18px; }
  .filter-mobile-button { display: inline-flex; }
  .sort-field { font-size: 0; }
  .sort-field select { width: 138px; }
  .active-filters { padding-inline: 18px; }
  .candidate-grid { grid-template-columns: 1fr; padding: 0 18px 22px; }
  .candidate-card { padding: 17px; }
  .results-footer { padding-inline: 18px; }
  .indicator-controls { align-items: stretch; flex-direction: column; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .indicator-controls label { justify-content: space-between; }
  .indicator-summary { grid-template-columns: 1fr 1fr; }
  .education-summary { grid-template-columns: 1fr 1fr; }
  .education-summary .summary-stat:last-child { grid-column: 1 / -1; }
  .summary-stat { padding: 15px; }
  .summary-stat strong { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .legal-footer-inner div { text-align: left; }
  .compare-inner > div:first-child p { display: none; }
  .compare-people { justify-content: flex-start; }
  .compare-inner .button { padding: 0 12px; }
  .candidate-dialog, .compare-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .dialog-shell { max-height: 100vh; }
  .detail-hero { grid-template-columns: 90px 1fr; gap: 16px; padding: 75px 20px 27px; }
  .detail-photo { width: 90px; height: 115px; border-radius: 14px; }
  .detail-title h2 { font-size: 31px; }
  .detail-content { padding: 25px 18px 40px; }
  .detail-section { padding: 18px; }
  .facts-list { grid-template-columns: 1fr; }
  .mindmap-wrap { overflow-x: auto; }
  .mindmap-wrap svg { width: 680px; max-width: none; }
  .compare-dialog-shell { padding: 62px 18px 45px; }
  .compare-heading h2 { font-size: 27px; }
}

@media (max-width: 420px) {
  body.has-compare { padding-bottom: 92px; }
  .compare-inner { min-height: 92px; gap: 8px; }
  .compare-count { width: 30px; height: 30px; flex: 0 0 30px; }
  .compare-people { gap: 4px; }
  .compare-avatar { width: 32px; height: 32px; }
  .compare-avatar:nth-child(n + 3) { display: none; }
  .compare-inner .button { min-height: 38px; padding-inline: 9px; font-size: 11px; }
  .compare-inner .icon-button { width: 32px; flex: 0 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .candidate-card,
  .step-card,
  .concept-card,
  .indicator-card {
    border: 1px solid CanvasText;
  }
}

.legal-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

.legal-header {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 115px 0 45px;
  color: #fff;
  background: var(--navy);
}

.legal-header .brand {
  position: absolute;
  top: 24px;
}

.legal-header h1 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.legal-header p:last-child {
  max-width: 680px;
  margin: 17px 0 0;
  color: #b8c7d8;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 90px;
}

.legal-content section {
  margin-bottom: 42px;
  padding: 0 0 35px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 13px;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.035em;
}

.legal-content p,
.legal-content li {
  color: #4d5b6d;
}

.legal-content code {
  display: block;
  margin: 13px 0;
  padding: 13px 15px;
  overflow-x: auto;
  color: #183d6a;
  background: var(--blue-soft);
  border-radius: 9px;
}

.legal-content .notice {
  padding: 18px;
  color: #604b00;
  background: #fff7cc;
  border: 1px solid #efdc7d;
  border-radius: 12px;
}

.legal-back {
  display: inline-flex;
  margin-top: 15px;
  color: var(--blue);
  font-weight: 700;
}

.guide-header {
  min-height: 390px;
}

.guide-header h1 {
  max-width: 900px;
}

.guide-content {
  max-width: 1180px;
}

.guide-content > section {
  margin-bottom: 72px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.guide-content h2 {
  max-width: 830px;
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.guide-content h3 {
  font-family: var(--display);
}

.guide-content .section-intro {
  max-width: 820px;
  color: var(--muted);
}

.guide-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -85px 0 68px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.guide-nav a {
  padding: 9px 12px;
  color: #40516a;
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.guide-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.definition-grid,
.proportional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 28px;
}

.definition-grid article,
.proportional-grid article {
  min-height: 220px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.definition-grid h3,
.proportional-grid h3 {
  margin: 34px 0 9px;
  font-size: 21px;
}

.definition-grid p,
.proportional-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.proportional-grid article > strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  font-size: 12px;
}

.guide-note,
.editorial-warning {
  margin-top: 22px;
  padding: 22px 24px;
  color: #44536a;
  background: #eef4fd;
  border: 1px solid #d5e2f4;
  border-radius: 14px;
}

.guide-note p,
.editorial-warning p {
  margin: 0;
}

.guide-note p + p {
  margin-top: 10px;
}

.federation-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.federation-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.federation-list article > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.federation-list h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.federation-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.source-line,
.source-line a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.presidential-coalitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.presidential-coalitions article {
  padding: 24px;
  color: #fff;
  background: linear-gradient(145deg, #0a2850, #123c71);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.presidential-coalitions h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.presidential-coalitions p {
  margin: 0 0 12px;
  color: #dfeafb;
}

.presidential-coalitions small {
  display: block;
  color: #b9cce8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.guide-tag {
  display: inline-flex;
  padding: 6px 9px;
  color: #08254a;
  background: #f8cc4c;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-heading {
  margin: 30px 0 14px;
  color: #33445b;
  font-size: 17px;
}

.presidential-tickets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.presidential-tickets li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #4b5b71;
  font-size: 12px;
}

.presidential-tickets b {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editorial-warning {
  color: #604d00;
  background: #fff8d2;
  border-color: #eddf91;
}

.editorial-warning p {
  margin-top: 7px;
  color: #655a2c;
  font-size: 13px;
}

.party-block {
  margin-top: 48px;
}

.party-block > h3 {
  margin: 0 0 15px;
  color: #33445b;
  font-size: 16px;
}

.party-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.party-profile {
  align-self: start;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.party-profile summary {
  position: relative;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 48px 14px 18px;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
}

.party-profile summary::-webkit-details-marker {
  display: none;
}

.party-profile summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  color: var(--blue);
  font-size: 22px;
  transform: translateY(-50%);
}

.party-profile[open] summary::after {
  content: "−";
}

.party-profile summary span {
  margin-top: 2px;
  color: #718095;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.party-profile > div {
  padding: 17px 18px 19px;
  border-top: 1px solid var(--line);
}

.party-profile p {
  margin: 0;
  color: #526176;
  font-size: 12px;
}

.party-profile p + p {
  margin-top: 10px;
}

.party-profile a,
.source-list a {
  color: var(--blue);
  font-weight: 700;
}

.source-list {
  padding-left: 20px;
}

.source-list li {
  margin: 9px 0;
}

@media (max-width: 880px) {
  .guide-content { padding-top: 48px; }
  .guide-nav { position: static; margin: -75px 0 55px; }
  .definition-grid, .proportional-grid { grid-template-columns: 1fr; }
  .definition-grid article, .proportional-grid article { min-height: 180px; }
  .federation-list, .party-profile-grid, .presidential-coalitions, .presidential-tickets { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .guide-header { min-height: 430px; }
  .guide-header h1 { font-size: 44px; }
  .guide-nav { overflow-x: auto; flex-wrap: nowrap; margin-top: -70px; }
  .guide-nav a { flex: 0 0 auto; }
  .guide-content > section { margin-bottom: 55px; padding-bottom: 42px; }
  .federation-list article { grid-template-columns: 44px 1fr; padding: 16px; }
}
