/* ============================================================
   STAKEHOLDER DECLARATION — design tokens & global styles
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour */
  --blue: #00A9E0;
  --blue-dark: #0089b8;
  --ink: #222222;
  --ink-secondary: #667085;
  --border: #E8EAED;
  --bg: #FFFFFF;
  --bg-subtle: #F6F7F8;
  --dark: #222222;
  --dark-text: #F6F7F8;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1200px;
  --pad-desktop: clamp(80px, 7vw, 120px);
  --pad-tablet: 48px;
  --pad-mobile: 22px;
  --section-gap-desktop: 140px;
  --section-gap-mobile: 90px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 2px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--pad-mobile);
}

@media (min-width: 720px) {
  .wrap { padding-inline: var(--pad-tablet); }
}

@media (min-width: 1120px) {
  .wrap { padding-inline: var(--pad-desktop); }
}

.section {
  padding-block: var(--section-gap-mobile);
}

@media (min-width: 1120px) {
  .section { padding-block: var(--section-gap-desktop); }
}

.section--subtle { background: var(--bg-subtle); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .eyebrow { color: var(--blue); }
.section--dark .ink-secondary { color: #A6ACB4; }

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

.grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

hr.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.section--dark hr.rule { border-top-color: #3a3a3a; }

/* ---------- Type ---------- */

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

h1.display {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(42px, 7vw, 92px);
}

h2.headline {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(32px, 4.4vw, 58px);
}

h3.sub-headline {
  font-weight: 600;
  line-height: 1.25;
  font-size: clamp(22px, 2.4vw, 32px);
}

h4.label-heading {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

p.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 62ch;
}

p.body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 68ch;
}

.ink-secondary { color: var(--ink-secondary); }
.text-blue { color: var(--blue-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.section--dark .btn--outline {
  border-color: #fff;
  color: #fff;
}
.section--dark .btn--outline:hover { background: #fff; color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue-dark);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.18s var(--ease);
}
.text-link:hover { border-color: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: height 0.2s var(--ease);
}

.site-header.is-scrolled { height: 64px; }

.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .wheel { width: 32px; height: 32px; flex-shrink: 0; }

.primary-nav {
  display: none;
}

@media (min-width: 980px) {
  .primary-nav {
    display: flex;
    gap: 36px;
    align-items: center;
  }
  .primary-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-block: 4px;
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--blue);
    transition: right 0.2s var(--ease);
  }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after { right: 0; }
}

.header-actions { display: flex; align-items: center; gap: 20px; }

.header-actions .btn { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed;
  inset: 84px 0 0 0;
  background: #fff;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav ul {
  padding: 32px var(--pad-mobile);
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  font-size: 26px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .header-actions { padding: 24px var(--pad-mobile); }
@media (min-width: 980px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 96px;
}
@media (min-width: 1120px) { .hero { padding-block: 88px 120px; } }

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1120px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
}

.hero__wheel {
  order: -1;
  width: min(70vw, 420px);
  margin-inline: auto;
}
@media (min-width: 1120px) {
  .hero__wheel {
    order: 2;
    width: 100%;
    max-width: 620px;
    margin-inline: 0;
    margin-right: -80px;
    justify-self: end;
  }
}

.hero__meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__meta div { min-width: 140px; }
.hero__meta .num {
  font-weight: 800;
  font-size: 28px;
  display: block;
}
.hero__meta .label {
  font-size: 13px;
  color: var(--ink-secondary);
}

.hero__ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Timeline ---------- */

.timeline { margin-top: 56px; }
.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--border);
  position: relative;
}
.timeline__item:last-child { border-bottom: 1px solid var(--border); }
.timeline__date {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-dark);
}
.timeline__item[data-state="past"] .timeline__date { color: var(--ink-secondary); }
.timeline__item[data-state="current"] { background: var(--bg-subtle); margin-inline: -24px; padding-inline: 24px; }
.timeline__body h4 { margin-bottom: 6px; }

@media (min-width: 720px) {
  .timeline__item { grid-template-columns: 160px 1fr; }
}

/* ---------- Cards / lists ---------- */

.plain-list__item {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 24px;
}
.plain-list__item:last-child { border-bottom: 1px solid var(--border); }

@media (min-width: 860px) {
  .plain-list__item { grid-template-columns: 220px 1fr; }
}

.stakeholder {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stakeholder h4 { margin-bottom: 10px; }

/* ---------- Declaration numbered calls ---------- */

.calls { counter-reset: call; margin-top: 24px; }
.call {
  counter-increment: call;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--border);
}
.call:last-child { border-bottom: 1px solid var(--border); }
.call::before {
  content: counter(call, decimal-leading-zero);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label { font-size: 14px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); }

.form-row { display: grid; gap: 20px; }
@media (min-width: 720px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-note { font-size: 13px; color: var(--ink-secondary); margin-top: 16px; }
.form-success {
  border: 1px solid var(--blue);
  background: var(--bg-subtle);
  padding: 20px 24px;
  font-weight: 600;
  display: none;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding-block: 64px 40px; }
.site-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
}
@media (min-width: 860px) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 16px; }
.site-footer__brand .wheel { width: 28px; height: 28px; }
.site-footer h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--blue-dark); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-secondary);
}

/* ---------- Utility spacing ---------- */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.page-hero {
  padding-block: 56px 40px;
}
@media (min-width: 1120px) { .page-hero { padding-block: 72px 56px; } }


/* ---------- Horizontal timeline ---------- */

.tl { margin-top: 48px; --zone: 200px; }

.tl-controls { display: flex; gap: 8px; }
.tl-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), opacity 0.18s var(--ease);
}
.tl-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.tl-btn:disabled { opacity: 0.3; cursor: default; }

.tl-scroll {
  overflow-x: auto;
  cursor: grab;
  padding-bottom: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tl-scroll.is-dragging { cursor: grabbing; user-select: none; }

.tl-track {
  position: relative;
  isolation: isolate;
  display: flex;
  width: max-content;
  min-width: 100%;
}
.tl-track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--zone) + 16px);
  height: 8px;
  background: var(--ink);
}

.tl-item {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  display: grid;
  grid-template-rows: var(--zone) 40px var(--zone);
}

.tl-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 10px;
}
.tl-zone--top { justify-content: flex-end; }
.tl-zone--bottom { justify-content: flex-start; }

.tl-box {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  padding: 14px 16px 16px;
}
.tl-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.tl-sub { font-size: 15px; color: var(--ink-secondary); margin-top: 6px; line-height: 1.35; }

.tl-connector {
  display: block;
  flex: none;
  width: 0;
  height: 36px;
  border-left: 1px solid var(--blue);
}
.tl-zone--top .tl-connector { margin-bottom: -10px; }
.tl-zone--bottom .tl-connector { margin-top: -10px; }

.tl-dot {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
}

.tl-date {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-block: 8px;
}

.tl-item[data-state="past"] .tl-box { border-top-color: #C9CED6; }
.tl-item[data-state="past"] .tl-title,
.tl-item[data-state="past"] .tl-sub,
.tl-item[data-state="past"] .tl-date { color: var(--ink-secondary); }
.tl-item[data-state="past"] .tl-dot { background: #C9CED6; border-color: #C9CED6; }

.tl-item[data-state="next"] .tl-box { border-top-color: var(--blue); }
.tl-item[data-state="next"] .tl-date { color: var(--blue-dark); }
.tl-item[data-state="next"] .tl-dot { background: var(--blue); border-color: var(--blue); }

.tl-hint { font-size: 13px; color: var(--ink-secondary); margin-top: 8px; }

textarea { resize: vertical; }


/* ---------- Coordination group table ---------- */

.coord-table { width: 100%; border-collapse: collapse; text-align: left; }
.coord-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  padding: 0 24px 14px 0;
  border-bottom: 2px solid var(--ink);
}
.coord-table tbody th,
.coord-table tbody td {
  vertical-align: top;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.45;
}
.coord-table tbody th { font-weight: 700; width: 28%; }
.coord-table .who { display: block; font-weight: 600; }
.coord-table .org { display: block; color: var(--ink-secondary); font-size: 15px; margin-top: 2px; }

@media (max-width: 859px) {
  .coord-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .coord-table, .coord-table tbody, .coord-table tr, .coord-table th, .coord-table td { display: block; width: 100%; }
  .coord-table tbody tr { padding: 20px 0; border-bottom: 1px solid var(--border); }
  .coord-table tbody th, .coord-table tbody td { border: none; padding: 0 0 12px; }
  .coord-table tbody th { font-size: 18px; width: 100%; }
  .coord-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-dark);
    margin-bottom: 2px;
  }
}


/* ---------- Countdown ---------- */

.countdown { margin-top: 64px; }
.countdown__caption {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  margin-bottom: 20px;
}
.countdown__units { display: flex; flex-wrap: wrap; }
.countdown__unit {
  display: flex;
  flex-direction: column;
  min-width: 96px;
  padding: 0 clamp(20px, 3.5vw, 48px);
  border-left: 1px solid var(--border);
}
.countdown__unit:first-child { padding-left: 0; border-left: none; }
.countdown__num {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: 13px; color: var(--ink-secondary); margin-top: 8px; }
.countdown__status { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }

.section--dark .countdown { margin-top: 0; }
.section--dark .countdown__caption { color: var(--blue); }
.section--dark .countdown__unit { border-left-color: #3a3a3a; }
.section--dark .countdown__label { color: #A6ACB4; }

/* ---------- Interactive dialogues ---------- */

.dialogue-day {
  display: grid;
  gap: 24px;
  padding-block: 40px;
  border-top: 1px solid var(--border);
}
.dialogue-day:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 860px) {
  .dialogue-day { grid-template-columns: 220px 1fr; }
}
.dialogue-pair { display: grid; gap: 40px; }
@media (min-width: 720px) {
  .dialogue-pair { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.dialogue__tag {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.dialogue__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dialogue .text-link { margin-top: 16px; font-size: 15px; }

.dialogue__chairs { font-size: 16px; color: var(--ink-secondary); margin-top: 8px; }
.dialogue__chairs strong { color: var(--ink); font-weight: 600; }
.dialogue__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; }
.dialogue__links .text-link { margin-top: 0; }


/* ---------- Process phases ---------- */

.phase {
  display: grid;
  gap: 8px 32px;
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
.phase:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 860px) { .phase { grid-template-columns: 220px 1fr; } }
.phase__label { font-weight: 700; font-size: 15px; color: var(--blue-dark); letter-spacing: 0.02em; }

/* ---------- Chapter table variant ---------- */

.coord-table--chapters tbody th { width: 11%; }
.coord-table--chapters td.title { font-weight: 700; width: 30%; }
.coord-table--chapters .ch-prefix { display: none; }
@media (max-width: 859px) {
  .coord-table--chapters tbody th, .coord-table--chapters td.title { width: 100%; }
  .coord-table--chapters .ch-prefix { display: inline; }
  .coord-table--chapters td.title { font-size: 17px; }
}


.calls--compact .call { padding-block: 22px; }

/* ---------- Slider (constituencies) ---------- */

.slider-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  cursor: grab;
  padding-bottom: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.slider-scroll.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.slide {
  flex: 0 0 clamp(250px, 24vw, 300px);
  scroll-snap-align: start;
  border-top: 3px solid var(--ink);
  padding-top: 20px;
}
.slide .label-heading { margin-bottom: 10px; }
.slide__text { font-size: 16px; line-height: 1.55; color: var(--ink-secondary); }


/* ---------- Vertical stepper (process) ---------- */

.steps { counter-reset: none; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 24px;
  padding-bottom: 48px;
}
.step:last-child { padding-bottom: 0; }
.step__num {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 36px;
  top: calc(clamp(44px, 6vw, 72px) + 12px);
  bottom: 6px;
  width: 1px;
  background: #C9CED6;
}
.step__body { padding-top: clamp(4px, 1vw, 12px); }
.step__body .sub-headline { font-size: clamp(22px, 2.4vw, 30px); }
@media (min-width: 860px) {
  .step { grid-template-columns: 96px 1fr; gap: 0 40px; }
  .step:not(:last-child)::after { left: 48px; }
}

/* ---------- Chapter blocks with leads ---------- */

.chapters { display: grid; gap: 56px 64px; }
@media (min-width: 860px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapter { border-top: 1px solid var(--ink); padding-top: 24px; }
.chapter__no {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.chapter .sub-headline { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; }

.leads { display: grid; gap: 20px 32px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
@media (min-width: 560px) { .leads { grid-template-columns: 1fr 1fr; } }
.leads dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.leads dd { margin: 0; font-size: 16px; line-height: 1.45; }
.leads .who { display: block; font-weight: 600; }
.leads .org { display: block; color: var(--ink-secondary); font-size: 15px; margin-top: 2px; }


/* ---------- Accordion (chapters) ---------- */

.accordion { border-top: 1px solid var(--ink); }
.acc { border-bottom: 1px solid #D5D9DF; }
.acc__summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 32px;
  grid-template-areas: "no icon" "title icon";
  gap: 6px 16px;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
}
.acc__summary::-webkit-details-marker { display: none; }
.acc__no {
  grid-area: no;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
}
.acc__title {
  grid-area: title;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease);
}
.acc__summary:hover .acc__title { color: var(--blue-dark); }
.acc__icon { grid-area: icon; position: relative; width: 20px; height: 20px; justify-self: end; }
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.acc__icon::before { left: 0; right: 0; top: 9px; height: 2px; }
.acc__icon::after { top: 0; bottom: 0; left: 9px; width: 2px; }
.acc[open] .acc__icon::after { transform: scaleY(0); opacity: 0; }
.acc__summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.acc__panel { padding: 0 0 36px; max-width: 760px; }
.acc__panel .leads { margin-top: 28px; }

@media (min-width: 860px) {
  .acc__summary {
    grid-template-columns: 120px 1fr 32px;
    grid-template-areas: "no title icon";
    gap: 0 24px;
  }
  .acc__panel { padding-left: 144px; }
}


/* ---------- Responsibilities list ---------- */

.resp-list { display: grid; column-gap: 64px; }
@media (min-width: 860px) { .resp-list { grid-template-columns: 1fr 1fr; } }
.resp-list li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 17px;
  line-height: 1.5;
}


/* ---------- Home hero: wheel aligned to the lede, facts distributed ---------- */

@media (min-width: 1120px) {
  .hero__grid { align-items: end; }
  .hero__wheel { max-width: 540px; margin-right: -60px; }
}
.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .hero__meta { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
.hero__meta .fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero__meta .num { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.hero__meta .label { font-size: 15px; line-height: 1.4; max-width: 28ch; }

.hero__wheel img { width: 100%; height: auto; }
@media (min-width: 1120px) {
  .hero__wheel { width: 520px; max-width: none; margin-right: -100px; }
}


/* ---------- Small screens: keep the menu button visible ---------- */
.header-actions .btn { white-space: nowrap; }
@media (max-width: 599px) {
  .site-header .header-actions .btn { display: none; }
  .brand { font-size: 14px; }
}


/* ---------- Legal page ---------- */

.facts > div {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.facts > div:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 200px 1fr; } }
.facts dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  padding-top: 3px;
}
.facts dd { margin: 0; font-size: 17px; line-height: 1.5; }
.facts a, .prose a { color: var(--blue-dark); border-bottom: 1px solid currentColor; }

.prose h3 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 40px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.prose p { font-size: 17px; line-height: 1.65; max-width: 68ch; margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 1.3em; max-width: 68ch; margin: 0 0 16px; }
.prose li { font-size: 17px; line-height: 1.6; margin-bottom: 10px; }

.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; }


.site-footer__support {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
  padding-bottom: 32px;
}


/* ---------- Constituency grid ---------- */

.constituencies { display: grid; gap: 56px 40px; }
@media (min-width: 720px) { .constituencies { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .constituencies { grid-template-columns: repeat(3, 1fr); } }
.constituency { border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; }
.constituency .label-heading { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.constituency__text { font-size: 16px; line-height: 1.55; color: var(--ink-secondary); }
.constituency .leads { grid-template-columns: 1fr; gap: 18px; margin-top: auto; padding-top: 18px; }
.constituency__text { margin-bottom: 28px; }


/* ---------- Constituency selector (master / detail) ---------- */

.groups__list { display: block; }
.groups__item { border-top: 1px solid var(--border); }
.groups__item:last-child { border-bottom: 1px solid var(--border); }
.groups__tab {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-secondary);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
.groups__tab:hover { color: var(--ink); }
.groups__tab[aria-expanded="true"] { color: var(--ink); font-weight: 700; }
.groups__tab::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}
.groups__tab[aria-expanded="true"]::after { content: "–"; }
.groups__panel { padding: 0 0 24px; }
.groups__panel p { font-size: 17px; line-height: 1.6; color: var(--ink-secondary); max-width: 56ch; }

@media (min-width: 860px) {
  .groups.is-ready .groups__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 96px;
    align-items: start;
  }
  .groups.is-ready .groups__item { display: contents; }
  .groups.is-ready .groups__tab {
    grid-column: 1;
    border-top: 1px solid var(--border);
  }
  .groups.is-ready .groups__item:last-child .groups__tab { border-bottom: 1px solid var(--border); }
  .groups.is-ready .groups__tab::after { content: "→"; opacity: 0; transition: opacity 0.18s var(--ease); }
  .groups.is-ready .groups__tab[aria-expanded="true"]::after { content: "→"; opacity: 1; color: var(--blue-dark); }
  .groups.is-ready .groups__tab:hover::after { opacity: 1; }
  .groups.is-ready .groups__panel {
    grid-column: 2;
    grid-row: 1 / span 11;
    position: sticky;
    top: 120px;
    border-top: 3px solid var(--blue);
    padding: 28px 0 0;
  }
  .groups.is-ready .groups__panel p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; color: var(--ink); max-width: none; }
  .groups.is-ready .groups__item { border: none; }
}


/* ---------- Stats and bars ---------- */

.stats { display: grid; gap: 32px 40px; grid-template-columns: repeat(2, 1fr); padding-top: 28px; border-top: 1px solid var(--border); }
@media (min-width: 860px) {
  .stats--5 { grid-template-columns: repeat(5, 1fr); }
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat__label { font-size: 15px; line-height: 1.4; color: var(--ink-secondary); max-width: 22ch; }
.stats--5 .stat:first-child .stat__num { color: var(--blue-dark); }

.bars li { display: grid; gap: 6px 16px; padding: 9px 0; border-top: 1px solid var(--border); align-items: center; }
.bars li:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 560px) { .bars li { grid-template-columns: 180px 1fr; } }
.bars__label { font-size: 16px; font-weight: 500; }
.bars__track { display: flex; align-items: center; gap: 12px; }
.bars__bar { display: block; height: 14px; width: calc(var(--v) / 9 * 85%); min-width: 6px; background: var(--blue); }
.bars__val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.stats--1 { grid-template-columns: 1fr; }
.stats--5 .stat:first-child .stat__num { color: inherit; }
.stats--1 .stat__num { color: var(--blue-dark); }

.stats--inst .stat__num { color: var(--blue-dark); }

.stats--5.stats--inst .stat .stat__num, .stats--5.stats--inst .stat:first-child .stat__num { color: var(--blue-dark); }


/* ---------- Form extras ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  border: 1px solid #C5192D;
  background: rgba(197, 25, 45, 0.08);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
.form-error a { border-bottom: 1px solid currentColor; }
.btn[disabled] { opacity: 0.6; cursor: default; }


/* ---------- Share buttons ---------- */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 24px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--border);
}
.share__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
}
.share__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn[hidden] { display: none; }
.share__status { font-size: 13px; font-weight: 600; color: var(--blue-dark); margin-left: 4px; }

.share { border-bottom: 1px solid var(--border); margin-bottom: 0; }
.site-footer__support { padding-top: 24px; }


/* ---------- Current step marker ---------- */
.step__badge {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.step--current .step__num { color: var(--blue-dark); }
.step--current::after { background: var(--blue) !important; }


/* ---------- Notice popup ---------- */
dialog.notice {
  border: none;
  border-top: 4px solid var(--blue);
  background: #fff;
  color: var(--ink);
  padding: 36px 36px 32px;
  width: min(480px, calc(100vw - 32px));
  max-width: none;
}
dialog.notice::backdrop { background: rgba(34, 34, 34, 0.6); }
.notice__title { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 14px; }
.notice__text { font-size: 18px; line-height: 1.55; margin-bottom: 28px; }


/* ---------- Review options ---------- */
.review-option { border-top: 3px solid var(--ink); padding-top: 20px; }
.review-option .label-heading { font-size: 21px; line-height: 1.25; }
.review-option .body { font-size: 17px; }
.review-option__date { font-size: 20px; font-weight: 700; color: var(--blue-dark); }
