/* Surfaces de lecture accordées à la palette de chaque fiche. */
body[data-tone="red"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#251b25; --vote-theme-ink:#faf0f5; --vote-theme-muted:#d6c4d0;
  --vote-theme-line:#624552; --vote-theme-reason:#382332; --vote-theme-link:#ffb6cb;
  --vote-theme-focus:#463040; --vote-theme-caption:#ffc5d7;
}
body[data-tone="rose"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#2a1c29; --vote-theme-ink:#fff1f7; --vote-theme-muted:#e0c8d7;
  --vote-theme-line:#695066; --vote-theme-reason:#3d2a3a; --vote-theme-link:#ffc6d9;
  --vote-theme-focus:#4c3547; --vote-theme-caption:#ffd0df;
}
body[data-tone="navy"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#21283d; --vote-theme-ink:#f0f3ff; --vote-theme-muted:#c8d2ec;
  --vote-theme-line:#4d5b82; --vote-theme-reason:#2c3756; --vote-theme-link:#c8d7ff;
  --vote-theme-focus:#354467; --vote-theme-caption:#c7d4ff;
}
body[data-tone="blue"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#202a3d; --vote-theme-ink:#f1f5ff; --vote-theme-muted:#cad5e9;
  --vote-theme-line:#495c7d; --vote-theme-reason:#2b3954; --vote-theme-link:#c7dcff;
  --vote-theme-focus:#364969; --vote-theme-caption:#c9ddff;
}
body[data-tone="sky"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#1c2b3a; --vote-theme-ink:#f1f8ff; --vote-theme-muted:#c5d9e9;
  --vote-theme-line:#46637e; --vote-theme-reason:#2a3d51; --vote-theme-link:#c7e6ff;
  --vote-theme-focus:#354e65; --vote-theme-caption:#cfe9ff;
}
body[data-tone="indigo"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#26243d; --vote-theme-ink:#f4f2ff; --vote-theme-muted:#cfc9ec;
  --vote-theme-line:#555178; --vote-theme-reason:#363151; --vote-theme-link:#d8cfff;
  --vote-theme-focus:#403a63; --vote-theme-caption:#dcd4ff;
}
body[data-tone="amber"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#2f241b; --vote-theme-ink:#fff6ed; --vote-theme-muted:#ddccbd;
  --vote-theme-line:#6c543c; --vote-theme-reason:#443023; --vote-theme-link:#ffe0af;
  --vote-theme-focus:#503c2a; --vote-theme-caption:#ffe1b8;
}
body[data-tone="gold"] {
  --vote-heading:#ffffff;
  --vote-theme-paper:#30281c; --vote-theme-ink:#fff7e8; --vote-theme-muted:#dfd0b7;
  --vote-theme-line:#6a593c; --vote-theme-reason:#443722; --vote-theme-link:#ffe5ad;
  --vote-theme-focus:#51422b; --vote-theme-caption:#ffe6b3;
}
#votes .votes-candidate { display:flex; gap:20px; align-items:center; margin:18px 0 28px; }
#votes .votes-candidate img { display:block; width:88px; height:96px; object-fit:cover; object-position:center 30%; border-radius:12px; border:1px solid var(--line); }
#votes .votes-candidate-label { color:var(--muted); font-size:.85rem; }
#votes .votes-candidate h1 { font:800 clamp(1.7rem,4vw,2.6rem)/1.2 Inter,system-ui,sans-serif; letter-spacing:-.035em; color:var(--ink); margin:5px 0 7px; }
#votes .votes-candidate p { font-size:1rem; color:var(--highlight); font-weight:650; }
#votes-emblematiques { --vote-paper:var(--vote-theme-paper); --vote-ink:var(--vote-theme-ink); --vote-muted:var(--vote-theme-muted); --vote-line:var(--vote-theme-line); }
#votes-emblematiques .emblematic-vote { color-scheme:dark; background:var(--vote-theme-paper); border-color:var(--vote-theme-line); box-shadow:0 8px 28px #0003; }
#votes-emblematiques .vote-card-header { border-bottom:1px solid var(--vote-theme-line); }
#votes-emblematiques .vote-card-header .vote-date { color:var(--vote-theme-muted); }
#votes-emblematiques .vote-card-header .vote-title {
  color:var(--vote-heading);
  font:800 1.25rem/1.5 var(--mono,"JetBrains Mono",monospace);
  letter-spacing:.06em;
  text-transform:uppercase;
  overflow-wrap:anywhere;
}
#votes-emblematiques .vote-card-content { background:var(--vote-theme-paper); }
#votes-emblematiques :is(.vote-decision-label,.vote-section-label) {
  color:var(--vote-heading);
  font-family:var(--mono,"JetBrains Mono",monospace);
  font-size:.875rem;
  font-weight:800;
  line-height:1.6;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#votes-emblematiques :is(.vote-section-label,.vote-limits .vote-section-label) { color:var(--highlight); }
#votes-emblematiques .vote-position-pour { color:#a5edc8; background:#173c30; border-color:#7ad7aa; }
#votes-emblematiques .vote-position-contre { color:#ffbdca; background:#4a2533; border-color:#ff9db5; }
#votes-emblematiques .vote-position-abstention { color:#ffe1a0; background:#493c22; border-color:#f3cc7e; }
#votes-emblematiques .vote-position-neutral { color:#dde5fa; background:#343d56; border-color:#aabbdc; }
#votes-emblematiques .vote-outcome { color:var(--vote-theme-ink); }
#votes-emblematiques .vote-card-note { color:#f5d496; }
#votes-emblematiques .vote-reason { background:var(--vote-theme-reason); border-left-color:var(--highlight); }
#votes-emblematiques .vote-reason-unavailable { background:var(--vote-theme-reason); border-left-color:var(--vote-theme-muted); }
#votes-emblematiques .emblematic-vote a { color:var(--vote-theme-link); }
#votes-emblematiques .emblematic-vote :is(a,summary):focus-visible { outline-color:var(--vote-theme-link); }
body[data-tone] #votes-emblematiques .vote-more { border-top-color:var(--vote-theme-line); color:var(--vote-theme-ink); }
body[data-tone] #votes-emblematiques .vote-more > summary {
  color:var(--highlight);
  font-family:var(--mono,"JetBrains Mono",monospace);
  font-size:.875rem;
  font-weight:800;
  line-height:1.6;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-tone] #votes-emblematiques .vote-more > summary::after { color:var(--vote-theme-link); background:var(--vote-theme-reason); }
#votes-emblematiques .votes-table .vote-group-focus,
#votes-emblematiques .vote-mobile-group.vote-group-focus { background:var(--vote-theme-focus); }
#votes-emblematiques .votes-table .vote-group-focus :is(th,td) { color:var(--vote-theme-ink); }
#votes-emblematiques .vote-more-content { color:var(--vote-theme-ink); }
@media(max-width:600px) {
  #votes-emblematiques .vote-card-header .vote-title { font-size:1.125rem; }
  #votes .votes-candidate { gap:13px; margin:16px 0 22px; }
  #votes .votes-candidate img { width:65px; height:78px; border-radius:9px; }
  #votes .votes-candidate h1 { font-size:1.6rem; }
  #votes .votes-candidate-label { font-size:.8rem; }
  #votes .votes-candidate p { font-size:.95rem; }
}
