/* The pages' one stylesheet. Colour is for links, buttons and the one accent: never one
   per candidate or per section, so no colour reads as someone's. Gold is an ornament,
   and as text only in --gold-text. Spacing is a multiple of 8px (0.5rem), 4px for the
   tightest gaps. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-800.woff2") format("woff2");
}

:root {
  /* Colours. Purple is the one accent and gold marks a status (a date, "en cours"):
     no other saturated colour, and none per candidate or section. */
  /* Backgrounds and surfaces */
  --bg: #fffcf5;
  --surface: #ffffff;
  --tint: #f3effe;
  /* Text: primary, secondary */
  --ink: #17142b;
  --muted: #45415c;
  /* Accent */
  --accent: #4b2fb0;
  --on-accent: #ffffff;
  --btn-bg: #4b2fb0;
  --btn-text: #ffffff;
  --btn-hover: color-mix(in srgb, var(--btn-bg) 88%, #ffffff);
  /* Status */
  --gold: #f5b83d;
  --gold-tint: #fdecc4;
  --gold-text: #8a5a00;
  --on-gold: #2e1f00;
  /* Borders */
  --border: #eee7d6;
  --border-hover: var(--accent);
  /* Interaction: what a hovered or current item sits on, and the keyboard ring */
  --hover: var(--tint);
  --focus: var(--accent);
  /* The home page's purple band and the footer */
  --band: #4b2fb0;
  --band-text: #ffffff;
  --band-muted: #e6e0fc;
  --band-tile: rgb(255 255 255 / 0.14);
  --band-edge: rgb(255 255 255 / 0.28);
  --foot: #17142b;
  --foot-text: #c9c5dc;
  --foot-strong: #ffffff;
  /* Two radii: surfaces, and small marks such as the logo; pills are round. */
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --header-h: 4.5rem;
  /* Where content stops under the sticky header: the sticky contents and every anchor
     target, so a section jumped to starts level with the contents. */
  --below-header: calc(var(--header-h) + 1rem);
  /* The type scale, every size on the site but the home page's display figures. Weights:
     800 for headings, 600 for labels and controls, 400 for text. */
  --fs-h1: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
  --fs-h2: clamp(1.25rem, 1rem + 1.2vw, 1.5rem);
  --fs-h3: 1.125rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.875rem;
  --fs-label: 0.75rem;
  color-scheme: light dark;
  /* The side gutter: 16px on a small phone, 24px from there up. */
  --gutter: clamp(1rem, 4vw, 1.5rem);
}
/* A phone's header is lower: the logo and the menu button need no more. */
@media (max-width: 51.99rem) {
  :root {
    --header-h: 4rem;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Only the values that change; the aliases above follow. */
    --bg: #15122a;
    --surface: #1d1a38;
    --ink: #e8e6f5;
    --muted: #c9c5dc;
    --accent: #b4a2ff;
    --tint: #26224a;
    --gold-tint: #3a2f12;
    --gold-text: #f5b83d;
    --border: #322d5c;
    --band: #2a2060;
    --btn-bg: #f5b83d;
    --btn-text: #17142b;
    --foot: #0f0d20;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs-body)/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* A link's underline is faint until hovered. */
a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-color: currentColor;
}
/* One quick fade for every hover and focus change; colour, never movement. */
a,
button,
.btn,
.card {
  transition: color 0.15s, background-color 0.15s, border-color 0.15s,
    text-decoration-color 0.15s;
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    transition: none !important;
  }
}
:where(a, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* On the purple band and the dark footer the accent would not show. */
.band :focus-visible {
  outline-color: var(--band-text);
}
footer.site :focus-visible {
  outline-color: var(--foot-text);
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
strong,
b {
  font-weight: 600;
}

.wrap {
  max-width: 72.5rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header: sticky, so it is translucent over the text scrolling under it. */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.1;
  text-decoration: none;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: var(--fs-caption);
  color: var(--muted);
}
.logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
}
.logo::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: var(--gold);
  border: 2px solid var(--bg);
}
header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: var(--fs-small);
}
header.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 1rem;
  border-radius: 99px;
  color: var(--ink);
  text-decoration: none;
}
header.site nav a:hover {
  background: var(--hover);
  color: var(--accent);
}
header.site nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}
/* The menu button, shown by menu.js below the width the four links need beside the brand. */
.menu {
  display: none;
}
@media (max-width: 51.99rem) {
  .menu:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding-inline: 1rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: var(--fs-small);
    cursor: pointer;
  }
  .menu[aria-expanded="true"] {
    background: var(--tint);
    color: var(--accent);
  }
  .menu:not([hidden])[aria-expanded="false"] + nav {
    display: none;
  }
  .menu:not([hidden]) + nav {
    flex-basis: 100%;
    flex-direction: column;
    padding-block: 0.5rem 1rem;
  }
  .menu:not([hidden]) + nav a {
    min-height: 48px;
  }
}
/* Below ~360px the brand and the labelled button no longer share a line: the button
   keeps its icon, square, and its name for screen readers. */
@media (max-width: 22.49rem) {
  .menu:not([hidden]) {
    justify-content: center;
    width: 44px;
    padding: 0;
  }
  .menu span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .brand {
    gap: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding-inline: 1.5rem;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  background: var(--btn-hover);
}
.link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Home: hero */
.hero .wrap {
  display: grid;
  gap: 2.5rem 3.5rem;
  align-items: center;
  padding-block: 3rem 4.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-weight: 600;
  font-size: var(--fs-caption);
}
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
/* Side by side from a laptop up: the text takes the wider column, and the highlighted
   phrase stays on one line, which it fits at this size. */
@media (min-width: 64rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.6fr) minmax(19rem, 1fr);
  }
  .hero h1 {
    font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  }
  .hero h1 em {
    white-space: nowrap;
  }
}
.hero .lead {
  margin: 1.5rem 0 0;
  max-width: 32em;
  font-size: var(--fs-lead);
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.countdown {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.countdown p {
  margin: 0;
}
.countdown .label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.countdown .date {
  font-size: var(--fs-h3);
  font-weight: 800;
}
.countdown .days[hidden] {
  display: none;
}
.countdown .days {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 600;
}
.countdown .days strong {
  font-size: clamp(3.5rem, 14vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.countdown .note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Home: steps band */
.band {
  background: var(--band);
  color: var(--band-text);
}
.band .wrap {
  padding-block: 3.5rem;
}
.band h2 {
  margin: 0;
  font-size: var(--fs-h2);
}
.band .sub {
  margin: 0.5rem 0 2rem;
  color: var(--band-muted);
}
.band a {
  color: var(--band-text);
}
.band .after {
  margin: 2rem 0 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--band-edge);
  border-radius: var(--radius);
  background: var(--band-tile);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 99px;
  background: var(--band-text);
  color: var(--band);
  font-weight: 600;
}
.steps li:last-child {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--on-gold);
}
.steps li:last-child::before {
  background: var(--on-gold);
  color: var(--gold);
}
.steps strong {
  display: block;
  margin-top: 1rem;
  font-size: var(--fs-h3);
  font-weight: 800;
}
.steps span {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--band-muted);
}
.steps li:last-child span {
  color: var(--on-gold);
}

/* Cards */
.section {
  padding-block: 4.5rem;
}
.section > h2 {
  margin: 0 0 2rem;
  font-size: var(--fs-h2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.card:hover {
  border-color: var(--border-hover);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--accent);
}
.card .icon.gold {
  background: var(--gold-tint);
  color: var(--gold-text);
}
.card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 800;
}
.card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--accent);
}
.note-box {
  margin: 2rem 0 0;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--muted);
  font-size: var(--fs-body);
}

/* The home page's closing note: secondary, under a rule, at a reading measure. */
.home-note {
  display: flex;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-small);
}
.home-note svg {
  flex: none;
  margin-top: 0.2em;
}
.home-note span {
  max-width: 43rem;
}

/* Text pages */
/* The column is as wide as the header's and the footer's, so everything shares a left
   edge; the text keeps a readable measure. */
main.text {
  max-width: 72.5rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
  /* A long URL or word wraps rather than widening the page. */
  overflow-wrap: break-word;
}
main.text > * {
  max-width: 45rem;
}
/* ~70 characters a line; boxes and lists in the column may use its full width. */
main.text {
  line-height: 1.75;
}
main.text p {
  max-width: 40rem;
  text-wrap: pretty;
}
/* :where keeps it weaker than any component's own paragraph margins. */
:where(main.text) p {
  margin: 0 0 1rem;
}
main.text .note-box {
  max-width: none;
}
/* Directly in the column, a box keeps the column's width, as in Méthode's head. */
main.text > .note-box {
  max-width: 45rem;
}
/* A page with a table of contents: the article, and the contents in a sticky column
   beside it on a wide screen; on a narrow one, the contents between intro and body. */
@media (min-width: 64rem) {
  main.with-toc {
    display: grid;
    grid-template-columns: minmax(0, 45rem) 16rem;
    grid-template-areas: "head toc" "body toc";
    grid-template-rows: auto 1fr;
    justify-content: space-between;
    column-gap: 4rem;
  }
  main.with-toc > .head {
    grid-area: head;
  }
  main.with-toc > .body {
    grid-area: body;
  }
  main.with-toc > .toc {
    grid-area: toc;
    align-self: start;
    position: sticky;
    top: var(--below-header);
    margin-top: 2rem;
  }
  main.with-toc > .toc ol {
    columns: auto;
  }
}
/* Anchors land below the sticky header. */
:target {
  scroll-margin-top: var(--below-header);
}
main.text h1 {
  margin: 1rem 0 1.5rem;
  font-size: var(--fs-h1);
  font-weight: 800;
}
/* A rule above each section separates them without boxing them. */
main.text h2 {
  margin: 2rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-h2);
  font-weight: 800;
}
main.text h3 {
  margin: 2rem 0 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 800;
}
/* Small uppercase labels: the contents' title, the facts' names. */
.toc summary,
.facts dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
main.text li + li {
  margin-top: 0.5rem;
}
/* A plain surface with a border, so it does not echo the lavender introduction. */
.toc {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
/* Folded on a narrow screen (toc.js): the label is a button-sized toggle with a chevron. */
.toc {
  padding-block: 0.5rem;
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-radius: 0.5rem;
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.125rem) rotate(45deg);
  transition: transform 0.2s;
}
.toc details[open] summary::after {
  transform: translateY(0.125rem) rotate(225deg);
}
.toc summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.toc ol {
  padding-bottom: 1rem;
}
/* Beside the article the contents never fold, so the label is only a label. */
@media (min-width: 64rem) {
  .toc {
    padding-block: 1.5rem;
  }
  .toc summary {
    min-height: 0;
    margin: 0 0 0.5rem;
    cursor: default;
  }
  .toc summary::after {
    content: none;
  }
  .toc ol {
    padding-bottom: 0;
  }
}
@media (max-width: 63.99rem) {
  .toc a {
    padding-block: 0.5rem;
  }
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2 14rem;
  column-gap: 2rem;
}
.toc li {
  margin: 0;
  padding-block: 0.25rem;
  break-inside: avoid;
  counter-increment: toc;
}
main.text .toc li + li {
  margin-top: 0;
}
/* The number is drawn inside the link, so the link's highlight covers it; the grid
   keeps a wrapped title aligned after it. */
.toc a {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  margin-inline: -0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color 0.2s, color 0.2s;
}
.toc a::before {
  content: counter(toc) ".";
  font-variant-numeric: tabular-nums;
}
.toc a:hover {
  background: var(--hover);
}
/* The section being read, marked by toc.js. */
.toc a[aria-current] {
  background: color-mix(in srgb, var(--tint) 60%, var(--surface));
  color: var(--ink);
}
.updated {
  margin-top: 3rem;
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* Practical guide and method */
/* The title's subtitle on its own line, so no line starts with the colon. */
main.text h1 .subtitle {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--muted);
}
main.text h1 .subtitle::first-letter {
  text-transform: uppercase;
}
/* The two rounds: one card each, side by side when they fit. Gold marks a date. */
.dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
main.text .dates li {
  margin: 0;
  padding: 1rem 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.dates .label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.dates time {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.2;
}
.dates .weekday {
  display: block;
  font-size: var(--fs-small);
  color: var(--muted);
}
.dates .date {
  font-size: var(--fs-h3);
  font-weight: 600;
}
.dates .date strong {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
/* Practical conditions as labelled rows: the label beside its text when there is room. */
.rows {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.rows > div {
  padding: 1rem 1.5rem;
}
.rows > div + div {
  border-top: 1px solid var(--border);
}
.rows dt {
  font-weight: 600;
  line-height: 1.5;
}
.rows dd {
  margin: 0.25rem 0 0;
}
.rows dd::first-letter {
  text-transform: uppercase;
}
@media (min-width: 40rem) {
  .rows > div {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .rows dt {
    padding-top: 0.125rem;
  }
  .rows dd {
    margin: 0;
  }
}
/* A deadline: a gold mark, never read as a candidate's colour. */
.due {
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background: var(--gold-tint);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Where to read further: quieter than the explanation it follows. */
main.text .see {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Contact in a bordered panel; its heading drops the section rule the panel replaces. */
.panel {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
main.text .panel h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
main.text .panel p:last-child {
  margin-bottom: 0;
}

/* Candidate pages */
/* The portrait beside the name, the same frame as on the candidates list. */
.who {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin: 1rem 0 1.5rem;
}
main.text .who h1 {
  margin: 0;
}
.who .portrait {
  flex: none;
  width: 6.5rem;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--tint);
}
/* No free photo: the same frame and silhouette as on the candidates list. */
.who .portrait.empty {
  display: grid;
  place-items: end center;
  overflow: hidden;
  color: color-mix(in srgb, var(--muted) 25%, var(--tint));
}
.who .portrait.empty svg {
  width: 75%;
  margin-bottom: -8%;
}
/* Logos are drawn for a white ground, so they keep one in dark mode. */
.facts .party-logo {
  display: block;
  width: 7.5rem;
  height: 3rem;
  margin-top: 0.5rem;
  padding: 0.125rem;
  border-radius: 0.25rem;
  background: #ffffff;
  object-fit: contain;
  object-position: left center;
}
main.text .credits:is(p) {
  font-size: var(--fs-caption);
  color: var(--muted);
}
.crumbs {
  font-size: var(--fs-caption);
  color: var(--muted);
}
/* The facts as one panel: stacked on a narrow screen, a row of three on a wide one,
   the candidature, the longest value, given the most width. Softened hairlines between. */
.facts {
  --facts-rule: color-mix(in srgb, var(--border) 60%, var(--surface));
  display: grid;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts > div {
  padding: 0.75rem 2rem;
}
.facts > div + div {
  border-top: 1px solid var(--facts-rule);
}
@media (min-width: 48rem) {
  .facts {
    grid-template-columns: minmax(min-content, 1fr) minmax(0, 1.75fr) auto;
  }
  .facts > div + div {
    border-top: 0;
    border-left: 1px solid var(--facts-rule);
  }
}
.facts dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  line-height: 1.4;
}
/* The career: a line joining the dots' centres, one dot per office, filled while it is
   held. The dot is centred on the date line, whose height is fixed for that reason. */
.timeline {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 2rem 2rem;
}
main.text .timeline li + li {
  margin-top: 0;
}
.timeline li:last-child {
  padding-bottom: 0;
}
/* From this dot's centre to the next one's: 0.75rem is half the date line. */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: -0.75rem;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(1px - 0.5rem);
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent);
  border-radius: 99px;
  background: var(--bg);
}
.timeline li.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}
.timeline p {
  margin: 0.75rem 0 0;
}
.timeline .when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  min-height: 1.5rem;
  margin: 0;
  line-height: 1.5rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--accent);
}
main.text .timeline h3 {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}
/* Badges: "en cours" in gold with a dot; a nature or kind only outlined, to stay quiet. */
.timeline .now {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  border-radius: 99px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: var(--fs-label);
  line-height: 1.5rem;
}
.timeline .now::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 99px;
  background: currentColor;
}
.kind {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.375rem;
}
@media (max-width: 30rem) {
  .timeline li {
    padding-left: 1.5rem;
  }
}
/* A judicial case: badge and period, title, then a rule; the status always shown, the
   rest behind a native disclosure. */
.case {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.case header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}
main.text .case h3 {
  margin: 0.75rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--ink);
}
/* Role and situation under the title, two columns, stacked on a phone. Plain text, never
   red or green, which would judge; only a case still open (undecided or under appeal)
   takes the gold of "en cours", so a final relaxe and a final conviction weigh the same. */
.case-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0.75rem 0 0;
}
.case-labels dt {
  color: var(--muted);
  font-size: var(--fs-caption);
}
.case-labels dd {
  margin: 0.125rem 0 0;
  font-weight: 600;
}
.case-labels .open {
  padding: 0 0.5rem;
  border-radius: 99px;
  background: var(--gold-tint);
  color: var(--gold-text);
}
/* The kind is plain text here, the period pushed right: the title and labels lead. */
.case-meta {
  justify-content: space-between;
  max-width: none; /* a <p>, otherwise capped at the prose width short of the card's edge */
}
.case-meta .kind {
  padding: 0;
  border: 0;
  font-size: inherit;
  line-height: inherit;
}
/* Label above its text, so the text keeps the card's full width; a hairline between rows. */
.case-fields {
  margin: 0;
  padding: 0 1.5rem;
}
.case-fields dt {
  padding-top: 1rem;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 600;
}
.case-fields dd {
  margin: 0;
  padding: 0.25rem 0 1rem;
}
.case-fields dt:not(:first-child) {
  border-top: 1px solid var(--border);
}
.case details {
  border-top: 1px solid var(--border);
}
.case summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}
.case summary::-webkit-details-marker {
  display: none;
}
/* A quiet footer: muted, the accent only on hover. */
.case summary:hover {
  color: var(--accent);
}
.case summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
/* A chevron that turns when the details open. */
.case summary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.125rem) rotate(45deg);
  transition: transform 0.2s;
}
.case details[open] summary {
  border-radius: 0;
}
.case details[open] summary::before {
  transform: translateY(0.125rem) rotate(225deg);
}
.case details .case-fields {
  border-top: 1px solid var(--border);
}
/* Where the browser can animate to auto height, the details slide open. */
@media (prefers-reduced-motion: no-preference) {
  :root {
    interpolate-size: allow-keywords;
  }
  .case details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.2s, content-visibility 0.2s allow-discrete;
  }
  .case details[open]::details-content {
    block-size: auto;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A citation mark must not open a gap between two lines. */
sup {
  line-height: 0;
}
sup a {
  text-decoration: none;
  font-weight: 600;
}
/* The sources: muted numbers in a hanging column, so wrapped lines align with the title;
   a cited source is tinted on arrival, then fades back. */
.sources {
  padding: 0;
  list-style: none;
  counter-reset: source;
  font-size: var(--fs-caption);
  /* Lighter than --muted so the linked titles stand out, still above 4.5:1 in both
     themes, on the hover tint too. */
  color: color-mix(in srgb, var(--muted) 80%, var(--bg));
  overflow-wrap: anywhere;
}
main.text .sources li {
  position: relative;
  margin: 0.25rem 0 0;
  padding: 0.375rem 0.75rem 0.375rem 3rem;
  border-radius: var(--radius-sm);
  counter-increment: source;
  transition: background-color 0.15s;
}
.sources li::before {
  content: counter(source) ".";
  position: absolute;
  left: 0.75rem;
  width: 1.75rem;
  color: var(--muted);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.sources li:hover,
.sources li:target {
  background: var(--tint);
}
/* Not "forwards": the fade must end on the rule below, so hover still tints it after. */
@media (prefers-reduced-motion: no-preference) {
  .sources li:target {
    background: none;
    animation: source-arrive 3s ease-out;
  }
  .sources li:target:hover {
    background: var(--tint);
  }
}
@keyframes source-arrive {
  0%,
  30% {
    background: var(--tint);
  }
}

/* Footer */
footer.site {
  background: var(--foot);
  color: var(--foot-text);
  font-size: var(--fs-small);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.5rem 3rem;
}
footer.site strong {
  display: block;
  font-size: var(--fs-h3);
  color: var(--foot-strong);
}
footer.site p {
  margin: 0.5rem 0 0;
  max-width: 30em;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
footer.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
footer.site nav a,
footer.site a {
  color: var(--foot-text);
  padding-inline: 0;
}

/* The candidates list: one card each, photo, name, party and its logo. Cards in a row
   share a height and the logo sits at the bottom, so logos line up across a row. */
main.text .note-box.compact p {
  margin: 0;
}
main.text .note-box.compact {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  font-size: var(--fs-small);
}
main.text .people {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
main.text .people li {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.75rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  line-height: 1.35;
  transition: border-color 0.15s, background-color 0.15s;
}
.people .photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--tint);
}
/* No free photo: a neutral silhouette in the same frame, never a stand-in face. */
.people .photo.empty {
  display: grid;
  place-items: end center;
  overflow: hidden;
  color: color-mix(in srgb, var(--muted) 25%, var(--tint));
}
.people .photo.empty svg {
  width: 75%;
  margin-bottom: -8%;
}
main.text .people p {
  margin: 0;
}
.people .name {
  font-weight: 700;
  text-wrap: balance;
}
.people .name a {
  color: inherit;
  text-decoration: none;
}
/* The name's link stretched over the card: the whole card is one target. */
.people .name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.people .linked:hover {
  border-color: var(--border-hover);
  background: var(--hover);
}
.people .linked:has(a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.people .name a:focus-visible {
  outline: none;
}
.people .party {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
}
/* Logos are drawn for a white ground, so they keep one in dark mode. The box is there
   even without a logo, so every card in a row ends at the same line. */
.people .party-logo {
  display: block;
  height: 3.25rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.people .party-logo img {
  display: block;
  width: 6rem;
  height: 100%;
  margin: 0 auto;
  padding: 0.125rem;
  border-radius: 0.25rem;
  background: #ffffff;
  object-fit: contain;
}
/* The search above the candidates: one field filtering by name or party, the count of
   matches beside it. Shown by filter.js, so it never appears without the script. */
main.text .filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: none;
  margin: 2rem 0 0;
}
main.text .filter[hidden],
main.text .people li[hidden] {
  display: none;
}
.filter-field {
  position: relative;
  flex: 1 1 18rem;
  max-width: 26rem;
}
.filter-field svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
}
.filter-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 1rem 0.5rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s;
}
.filter-field input::placeholder {
  color: var(--muted);
}
.filter-field input:hover {
  border-color: var(--border-hover);
}
.filter-field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
}
main.text .filter-count {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
/* The grid sits closer to the field it answers. */
main.text .filter:not([hidden]) + .people {
  margin-top: 1.5rem;
}
main.text .filter-empty {
  margin: 0 0 2rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Image credits: complete but folded away, below everything else. */
main.text .credits {
  max-width: none;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-small);
}
.credits summary {
  padding: 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.credits summary:hover {
  color: var(--accent);
}
main.text .credits li + li {
  margin-top: 0.25rem;
}

/* A small phone: the boxes' padding, the portrait and the candidate cards shrink a step so
   the text keeps its size and two cards still fit side by side. */
@media (max-width: 30rem) {
  .who .portrait {
    width: 5rem;
  }
  .who {
    gap: 1rem;
  }
  .facts > div {
    padding-inline: 1.25rem;
  }
  .case header {
    padding: 1.25rem 1rem 1rem;
  }
  .case-fields,
  .case summary {
    padding-inline: 1rem;
  }
  main.text .sources li {
    padding-left: 2.5rem;
  }
  .sources li::before {
    left: 0.5rem;
  }
  main.text .people {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.75rem;
  }
  .people .party-logo img {
    width: min(6rem, 100%);
  }
  .note-box {
    padding: 1.25rem;
  }
}
