@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-tint: #F8F8F8;
  --ink: #2E3047;
  --ink-soft: #5C6178;
  --line: #E4E4E1;
  --accent: #5B57D9;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECEBFC;
  --accent-text: #5B57D9;
  --accent-teal: #00E6D2;
  --accent-teal-ink: #2E3047;
  --focus: #2E3047;

  --radius-card: 18px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(28, 26, 23, 0.04), 0 8px 24px rgba(28, 26, 23, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2E3047;
    --surface: #383C5C;
    --surface-tint: #40456A;
    --ink: #F3F3F6;
    --ink-soft: #B7B9CC;
    --line: #454A6E;
    --accent: #5B57D9;
    --accent-ink: #FFFFFF;
    --accent-soft: #3A3768;
    --accent-text: #9B97FF;
    --accent-teal: #00E6D2;
    --accent-teal-ink: #2E3047;
    --focus: #F3F3F6;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #C94B08; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav {
  flex-wrap: nowrap;
}

.brand {
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--surface-tint);
  color: var(--ink);
}

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Sections ---------- */
section { padding-block: 64px; }
@media (min-width: 768px) { section { padding-block: 96px; } }

.section-tight { padding-block: 40px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 56px;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 80px;
  }
}

.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 62px);
}
.hero-copy p.lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-tint);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  border-radius: 24px;
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line);
}

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--surface);
  padding: 28px 24px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 6px;
}
.stat span { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.grid-2 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* News card */
.news-card {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: grid;
  gap: 6px;
}
.news-card time { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.news-card h3 { font-size: 19px; margin-top: 4px; }
.news-card p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; max-width: 65ch; }
.news-tag {
  display: inline-flex;
  width: fit-content;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Dossier card */
.dossier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dossier-status {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.dossier-card h3 { font-size: 21px; }
.dossier-card p { color: var(--ink-soft); font-size: 15px; }
.dossier-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.dossier-meta strong { color: var(--ink); }

/* Dossier preview card (with image, links to dedicated page) */
.dossier-preview-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease);
}
.dossier-preview-card:hover { transform: translateY(-3px); }
.dossier-preview-media {
  aspect-ratio: 16/10;
  background: var(--surface-tint);
}
.dossier-preview-media img { width: 100%; height: 100%; object-fit: cover; }
.dossier-preview-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.dossier-preview-body h3 { font-size: 20px; }
.dossier-preview-body p { color: var(--ink-soft); font-size: 15px; }
.dossier-preview-cta {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent-text);
}

/* Commission badge */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
}
.badge.badge-lead {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--accent-teal-ink);
}

/* Team */
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-tint);
  margin-bottom: 14px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 17px; }
.team-card span { color: var(--ink-soft); font-size: 14px; }

/* Quote */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
}

/* Split block */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split-media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-tint);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Band (full width accent) */
.band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
}
@media (prefers-color-scheme: dark) {
  .band { background: var(--surface-tint); }
}
.band .btn-primary { background: var(--accent); }
.band .btn-ghost { border-color: rgba(250,249,247,0.28); color: var(--bg); }
.band .btn-ghost:hover { border-color: var(--bg); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  max-width: 920px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 16px 44px rgba(20, 20, 30, 0.28);
  animation: cookie-banner-in 0.35s ease;
}
@media (prefers-color-scheme: dark) {
  .cookie-banner { background: var(--surface-tint); }
}
@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--bg) 85%, transparent);
}
.cookie-banner a { color: var(--bg); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions button {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept { background: var(--accent); color: #fff; border: none; }
.cookie-accept:hover { opacity: 0.92; }
.cookie-reject { background: transparent; color: var(--bg); border: 1px solid rgba(250,249,247,0.32); }
.cookie-reject:hover { border-color: var(--bg); }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1; }
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.field-hint { font-size: 13px; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-soft); font-size: 14.5px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--ink); }
.social-row svg { width: 16px; height: 16px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Page hero (inner pages) */
.page-hero { padding-top: 48px; padding-bottom: 24px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); max-width: 18ch; }
.page-hero p.lede { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 56ch; }

.divider { height: 1px; background: var(--line); border: none; margin: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.draft-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--surface-tint);
}

/* Asymmetric preview grid (dossiers, actu) */
.feature-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: 1.4fr 1fr; }
  .feature-grid .stack { display: flex; flex-direction: column; gap: 24px; }
  .feature-grid .stack .dossier-card { flex: 1; }
}

/* Structured field grid inside dossier fiches */
.field-grid {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field-grid dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.field-grid dd {
  margin: 0;
  font-size: 15px;
}

section[id],
article[id] {
  scroll-margin-top: 96px;
}

.dossier-full {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--surface);
}
.dossier-full + .dossier-full { margin-top: 24px; }

/* Commission list */
.commission-list { display: flex; flex-direction: column; }
.commission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.commission-row:last-child { border-bottom: 1px solid var(--line); }
.commission-row h4 { flex: 1; font-size: 17px; font-weight: 600; font-family: var(--font-body); }
.commission-row span { flex-shrink: 0; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .commission-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Press list */
.press-list { display: flex; flex-direction: column; }
.press-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.press-row:last-child { border-bottom: 1px solid var(--line); }
.press-row time { font-size: 13px; color: var(--ink-soft); font-weight: 600; padding-top: 3px; }
.press-row h3 { font-size: 17px; margin-bottom: 6px; }
.press-row p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .press-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Simple accordion (dossiers filter chips) */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
}
.filter-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.book-cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface-tint);
  box-shadow: var(--shadow-card);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.newsletter-form input {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}

.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { margin-top: 4px; }
.check-row label { font-size: 13.5px; color: var(--ink-soft); }

/* Newsletter popup */
.newsletter-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 20, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popup-fade-in 0.25s ease;
}
.newsletter-popup-overlay[hidden] { display: none; }
@keyframes popup-fade-in { from { opacity: 0; } to { opacity: 1; } }
.newsletter-popup-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  animation: popup-scale-in 0.3s ease;
}
@keyframes popup-scale-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.newsletter-popup-card h3 { font-size: 24px; margin-top: 10px; }
.newsletter-popup-card p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.newsletter-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-tint);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-popup-close:hover { background: var(--line); color: var(--ink); }
@media (max-width: 480px) {
  .newsletter-popup-card { padding: 32px 24px; }
}

.contact-block { display: flex; flex-direction: column; gap: 4px; }
.contact-block h4 { font-size: 14px; margin-bottom: 6px; }
.contact-block p { color: var(--ink-soft); font-size: 15px; }

/* Votes */
.vote-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vote-dot.pour, .vote-list-status.pour { background: #2E9E5B; }
.vote-dot.contre, .vote-list-status.contre { background: #D64545; }
.vote-dot.abstention, .vote-list-status.abstention { background: #E0A72E; }
.vote-dot.absent { background: #C7C7CE; }
span.vote-list-status.pour { background: none; color: #2E9E5B; }
span.vote-list-status.contre { background: none; color: #D64545; }
span.vote-list-status.abstention { background: none; color: #E0A72E; }

.vote-list-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.vote-list-item:last-child { border-bottom: 1px solid var(--line); }
.vote-list-item .vote-dot { width: 14px; height: 14px; }
.vote-list-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 90px;
}
.vote-list-title { flex: 1; font-size: 16px; font-weight: 600; }
.vote-list-status {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}
.vote-list-item .chevron { flex-shrink: 0; color: var(--ink-soft); }
@media (max-width: 640px) {
  .vote-list-item { flex-wrap: wrap; gap: 8px 14px; }
  .vote-list-title { flex-basis: 100%; order: 3; }
}

.hemicycle-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}

.vote-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.vote-tally-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.vote-legend-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.vote-legend-row:last-child { border-bottom: 1px solid var(--line); }
.vote-legend-name { font-size: 15px; font-weight: 600; }
.vote-legend-seats { font-size: 13.5px; color: var(--ink-soft); }
.vote-legend-status { font-size: 14px; font-weight: 700; text-align: right; min-width: 90px; }
@media (max-width: 560px) {
  .vote-legend-row { grid-template-columns: auto 1fr; row-gap: 4px; }
  .vote-legend-seats { grid-column: 2; }
  .vote-legend-status { grid-column: 2; text-align: left; }
}

/* Votes page hero with photo */
.votes-hero {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .votes-hero { grid-template-columns: 1fr 1fr; gap: 48px; } }
.votes-hero-media {
  aspect-ratio: 16/10;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-tint);
}
.votes-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Accordion vote list */
.vote-accordion-item {
  border-top: 1px solid var(--line);
}
.vote-accordion-item:last-child { border-bottom: 1px solid var(--line); }

.vote-accordion-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  background: none;
  border: none;
  appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.vote-accordion-trigger .chevron-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 16px;
  color: var(--ink-soft);
  transition: transform 0.2s var(--ease);
}
.vote-accordion-item.is-open .chevron-icon { transform: rotate(90deg); }
.vote-accordion-trigger .vote-list-number {
  flex: 0 0 auto;
  width: 82px;
  margin-right: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.vote-accordion-trigger .vote-list-title {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 16px;
  font-size: 15.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vote-accordion-trigger .vote-list-status {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .vote-accordion-trigger .vote-list-number { width: 60px; font-size: 12px; }
}

.vote-accordion-panel {
  display: none;
  padding-bottom: 32px;
}
.vote-accordion-item.is-open .vote-accordion-panel { display: block; }

.vote-accordion-body {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.vote-accordion-body > * { min-width: 0; }
@media (min-width: 800px) {
  .vote-accordion-body { grid-template-columns: 260px 1fr; align-items: start; }
}
.vote-hemicycle-mini { max-width: 260px; }

.vote-detail-outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}
.vote-detail-outcome.adopted { background: #E5F4EB; color: #1E7A43; }
.vote-detail-outcome.rejected { background: #FBE8E8; color: #B23A3A; }
