/* ==========================================================================
   Esperienze in Rete — landing page
   Brand colors are taken from the official programme document.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --navy: #142b4a;          /* brand ground */
  --navy-deep: #0e2039;
  --navy-soft: #1c3760;
  --gold: #deb041;          /* brand gold (logo) */
  --gold-text-on-light: #7a5a0e; /* gold for text on light grounds (AA) */
  --yellow: #ffd54a;        /* election badge */
  --white: #ffffff;
  --ink: #142b4a;
  --ink-muted: #44536a;
  --paper: #f6f4ef;
  --mist: #eef1f6;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: #d7dde7;
  --text-on-dark: #f2f5f9;
  --muted-on-dark: #c6d1e0;

  /* College colors (from the map). "-text" variants keep AA contrast on navy. */
  --c1: #2f6bea; --c1-text: #8db2ff;
  --c2: #e5463f; --c2-text: #ff8f88;
  --c3: #4cc96a; --c3-text: #7fe39a;
  --c4: #6fe3ea; --c4-text: #8eecf1;

  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 3px; }

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

.section--light :focus-visible,
.section--mist :focus-visible { outline-color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 32, 57, 0.96);
  border-bottom: 1px solid var(--line-dark);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(14, 32, 57, 0.86); backdrop-filter: blur(10px); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.main-nav a[aria-current="true"] { color: var(--white); }

.main-nav .nav-cta {
  margin-left: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding-inline: 16px;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: #ffe07a; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .js .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .main-nav a { width: 100%; padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .main-nav a::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
  .main-nav .nav-cta { margin: 16px 0 0; justify-content: center; border-radius: var(--radius); border-bottom: 0; }
  /* Without JavaScript the menu stays visible and wraps under the logo */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .main-nav { width: 100%; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 8px; }
  html:not(.js) .main-nav a { width: auto; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: #ebc364; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; font-family: inherit; }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--light { background: var(--white); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--mist { background: var(--mist); color: var(--ink); }
.section--deep { background: var(--navy-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section--light .eyebrow,
.section--paper .eyebrow,
.section--mist .eyebrow { color: var(--gold-text-on-light); }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 22ch; }
.section-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 62ch; color: var(--muted-on-dark); }
.section--light .section-lead,
.section--paper .section-lead,
.section--mist .section-lead { color: var(--ink-muted); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(222, 176, 65, 0.12), transparent 60%),
    var(--navy);
}

.hero__arcs {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 80%;
  pointer-events: none;
  opacity: 0.5;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0 28px;
  padding: 7px 14px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.12;
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero__intro {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-style: italic;
  color: var(--muted-on-dark);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero__intro strong { color: var(--white); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}
.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  width: 44px; height: 44px;
  border: 2px solid var(--gold);
}
.hero__visual::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.hero__visual::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

.hero__date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
  color: var(--muted-on-dark);
}
.hero__date strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }

/* Candidate strip in hero */
.hero-strip {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.hero-strip a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  min-height: 64px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hero-strip a:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.07); }
.hero-strip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #fff; flex-shrink: 0; }
.hero-strip span { display: block; line-height: 1.3; }
.hero-strip .strip-name { font-weight: 600; font-size: 0.95rem; color: var(--white); }
.hero-strip .strip-college { font-size: 0.8rem; color: var(--muted-on-dark); }

/* ---------- La Rete ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about-grid p { font-size: 1.1rem; }

.statement {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  background: var(--navy);
  color: var(--text-on-dark);
  border-radius: 10px;
  position: relative;
}
.statement::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(28px, 4vw, 44px);
  width: 64px; height: 4px;
  background: var(--gold);
}
.statement p { font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.5; }
.statement p + p { font-family: var(--font-body); font-size: 1.05rem; color: var(--muted-on-dark); margin-top: 18px; }

/* ---------- La legge ---------- */
.law-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
}
.law-text p { color: var(--ink-muted); }
.law-text p strong { color: var(--ink); }
.law-ref {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
}

.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: reason; }
.reasons li {
  counter-increment: reason;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 8px;
}
.reasons li::before {
  content: counter(reason, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-text-on-light);
  line-height: 1.1;
}
.reasons-title { font-size: 1.35rem; margin-bottom: 18px; }
.reasons h4 { font-size: 1.15rem; margin-bottom: 6px; }
.reasons p { color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Collegi ---------- */
.colleges-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.map-figure { margin: 0; }
.map-frame {
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--navy-deep);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.map-frame img { border-radius: 6px; width: 100%; }
.map-figure figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted-on-dark); }

.college-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.college-card {
  padding: 20px 22px;
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--college-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.college-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.college-card h3 { font-size: 1.3rem; margin: 0; }
.college-card__offices { margin: 0 0 12px; color: var(--muted-on-dark); font-size: 0.96rem; }
.college-card__candidates { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.college-card__candidates a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px;
  font-weight: 600;
  color: var(--college-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.college-card__candidates a:hover { text-decoration-thickness: 2px; }

.c1 { --college-color: var(--c1); --college-text: var(--c1-text); }
.c2 { --college-color: var(--c2); --college-text: var(--c2-text); }
.c3 { --college-color: var(--c3); --college-text: var(--c3-text); }
.c4 { --college-color: var(--c4); --college-text: var(--c4-text); }

/* ---------- Candidati ---------- */
.candidate-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; list-style: none; }
.candidate-index a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.candidate-index a:hover { border-color: var(--navy); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--college-color); flex-shrink: 0; box-shadow: 0 0 0 1px rgba(20, 43, 74, 0.25); }

.candidate {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
}
.candidate:first-of-type { border-top: 0; padding-top: 0; }

.candidate__photo { margin: 0; position: relative; align-self: start; }
@media (min-width: 861px) {
  .candidate__photo { position: sticky; top: calc(var(--header-h) + 24px); }
}
.candidate__photo-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 48px -28px rgba(20, 43, 74, 0.55);
}
.candidate__photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(20, 43, 74, 0.12);
  pointer-events: none;
}
.candidate__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.candidate__photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--college-color);
  border-radius: 8px;
}
.candidate__photo figcaption { margin-top: 24px; font-size: 0.92rem; font-weight: 600; color: var(--ink-muted); text-align: center; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}

.candidate h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.01em; }
.candidate__offices { font-weight: 600; font-size: 0.98rem; color: var(--ink); margin-bottom: 18px; }
.candidate__bio { color: var(--ink-muted); font-size: 1.08rem; max-width: 62ch; margin-bottom: 28px; }

.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.highlights li {
  padding: 20px 22px;
  background: var(--paper);
  border-radius: 8px;
  border-top: 3px solid var(--college-color);
}
.highlights h4 { font-size: 1.08rem; margin-bottom: 8px; }
.highlights p { font-size: 0.96rem; color: var(--ink-muted); }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 20px;
  background: #fff7d6;
  border: 1px solid #e8c95a;
  border-radius: 8px;
  color: #3d3000;
  font-size: 0.96rem;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: #7a5a0e; }

/* ---------- Programma ---------- */
.program-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.program-intro p { color: var(--muted-on-dark); }

.infographic { margin: 0; }
.infographic__frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-dark); background: var(--navy-deep); }
.infographic__frame img { width: 100%; }
.infographic figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 0.92rem; color: var(--muted-on-dark); }
.infographic figcaption a { color: var(--white); font-weight: 600; }

.points-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.points-toolbar h2 { margin: 0; }

.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.point {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.point[open] { border-color: #b9c3d3; box-shadow: 0 16px 40px -28px rgba(20, 43, 74, 0.5); }

.point summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  min-height: 72px;
  border-radius: 8px;
}
.point summary::-webkit-details-marker { display: none; }
.point summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.point__num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-text-on-light);
  line-height: 1;
}
.point summary h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0; color: var(--ink); }
.point__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  position: relative;
  color: var(--navy);
}
.point__icon::before,
.point__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.point__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.point[open] .point__icon { background: var(--navy); color: var(--white); }
.point[open] .point__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.point__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 4px 24px 28px calc(24px + 64px + 16px);
  color: var(--ink-muted);
}
.point__body .point__text p { font-size: 1rem; }
.point__body .point__text p.point__goal { color: var(--ink); font-weight: 600; }
.keys { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.keys li { padding: 14px 16px; background: var(--mist); border-radius: 6px; font-size: 0.94rem; }
.keys strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }

/* ---------- Closing ---------- */
.closing { text-align: left; }
.closing__head { max-width: 860px; }
.closing__head p { color: var(--muted-on-dark); font-size: 1.12rem; }
.pillars { margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillars li {
  padding: 26px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.pillars li::before { content: ""; display: block; width: 36px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.pillars h3 { font-size: 1.2rem; }
.pillars p { color: var(--muted-on-dark); font-size: 0.97rem; }

/* ---------- Vote ---------- */
.vote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
}
.vote h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.vote p { font-size: 1.05rem; max-width: 60ch; }
.vote__date { text-align: center; font-family: var(--font-display); line-height: 1.1; }
.vote__date .day { display: block; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; }
.vote__date .month { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); padding-block: 56px 40px; border-top: 1px solid var(--line-dark); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.site-footer img { width: 200px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted-on-dark); text-decoration: none; font-size: 0.95rem; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.88rem; color: var(--muted-on-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.back-to-top { color: var(--white); font-weight: 600; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { width: 128px; }
  .hero__grid,
  .about-grid,
  .law-grid,
  .colleges-grid,
  .program-intro { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 520px; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate { grid-template-columns: minmax(0, 1fr); }
  .candidate__photo { max-width: 340px; }
  .point__body { grid-template-columns: minmax(0, 1fr); padding-left: 24px; }
  .vote { grid-template-columns: minmax(0, 1fr); }
  .vote__date { text-align: left; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-strip { grid-template-columns: minmax(0, 1fr); }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .point summary { grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 12px; padding: 16px; }
  .point__num { font-size: 1.5rem; }
  .point__body { padding: 0 16px 22px; }
  .reasons li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero__actions .btn { width: 100%; }
  .candidate__photo::before { inset: 10px -10px -10px 10px; }
}

/* ---------- Forced colors / high contrast ---------- */
@media (forced-colors: active) {
  .main-nav a::after, .eyebrow::before, .statement::before, .pillars li::before { background: CanvasText; }
  .btn, .point, .college-card, .highlights li { border: 1px solid CanvasText; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .hero__arcs, .points-toolbar button, .back-to-top { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero, .site-footer { background: #fff !important; color: #000 !important; padding-block: 24px; }
  .point__body { display: grid !important; }
  .candidate { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   Voting guide page
   ========================================================================== */
.btn--navy { background: var(--navy); color: var(--white); margin-top: 20px; }
.btn--navy:hover { background: var(--navy-soft); }
.vote__hours { font-weight: 700; margin-top: 8px; }

.hero--guide { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.hero--guide h1 { max-width: 20ch; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 0.9rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-on-dark); }
.breadcrumb a { color: var(--muted-on-dark); display: inline-flex; min-height: 44px; align-items: center; }
.breadcrumb a[aria-current="page"] { color: var(--white); text-decoration: none; font-weight: 600; }

.timetable { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.timetable li {
  display: grid; gap: 2px;
  padding: 20px 24px;
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.timetable__day { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.timetable__date { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.timetable__hours { font-size: 1.25rem; font-weight: 600; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.hero__note { margin-top: 16px; font-size: 0.95rem; color: var(--muted-on-dark); max-width: 62ch; }

.toc { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.toc__title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 12px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--text-on-dark); text-decoration: none; font-size: 0.93rem; font-weight: 500;
}
.toc a:hover { border-color: var(--gold); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 28px 24px 26px;
  background: var(--paper);
  border-radius: 8px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-muted); font-size: 0.97rem; }

.ballots-figure { margin: 0; }
.ballots { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ballot {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(20, 43, 74, 0.04), 0 18px 36px -26px rgba(20, 43, 74, 0.45);
}
.ballot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 14px, transparent 14px 20px);
  opacity: 0.18;
}
.ballot__kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text-on-light); margin-bottom: 6px; }
.ballot h3 { font-size: 1.35rem; color: var(--ink); }
.ballot__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 22px; }
.ballot__facts div { padding: 10px 12px; background: var(--mist); border-radius: 4px; }
.ballot__facts dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.ballot__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.ballot__line { margin: 0; padding-top: 24px; border-bottom: 2px dashed #b9c3d3; position: relative; }
.ballot__line span { position: absolute; left: 0; bottom: 6px; font-size: 0.8rem; color: var(--ink-muted); }
.ballot--highlight { border: 2px solid var(--gold); }
.ballot__flag {
  margin: 18px 0 0;
  display: inline-block;
  padding: 6px 12px;
  background: var(--navy); color: var(--white);
  border-radius: 3px;
  font-size: 0.85rem; font-weight: 600;
}
.ballots-figure figcaption { margin-top: 16px; font-size: 0.9rem; color: var(--ink-muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: 8px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.98rem; color: var(--ink); }
.data-table caption { text-align: left; padding: 16px 20px; font-weight: 600; color: var(--ink-muted); font-size: 0.92rem; border-bottom: 1px solid var(--line-light); }
.data-table th, .data-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.data-table thead th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--mist); }
.data-table tbody th { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.data-table .num { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--navy); text-align: center; }
.data-table thead th:nth-child(3) { text-align: center; }
.data-table tfoot th, .data-table tfoot td { background: var(--navy); color: var(--white); border-bottom: 0; }
.data-table tfoot .num { color: var(--yellow); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table--colleges tbody th { display: table-cell; }
.data-table--colleges .dot { display: inline-block; margin-right: 10px; vertical-align: middle; }
.data-table a { color: var(--ink); font-weight: 600; }

.law-grid--dark .section-lead { color: var(--muted-on-dark); }
.reasons-title--dark { color: var(--white); }
.calc-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: calc; }
.calc-steps li {
  counter-increment: calc;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-on-dark);
  font-size: 0.98rem;
}
.calc-steps li::before {
  content: counter(calc);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-weight: 700; font-size: 0.95rem;
}
.fine-print { margin-top: 18px; font-size: 0.92rem; color: var(--muted-on-dark); }

.plain-list { margin: 0 0 8px; padding-left: 1.2em; color: var(--ink-muted); }
.plain-list li + li { margin-top: 6px; }
#candidature .reasons-title + p { color: var(--ink-muted); margin-bottom: 28px; }

.faq .point__num { font-size: 1.6rem; }
.point__body--single { display: block; }
.point__body--single p { max-width: 70ch; }

.sources { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sources a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 18px;
  border: 1px solid var(--line-light); border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.sources a::after { content: "\2197"; color: var(--gold-text-on-light); font-weight: 700; }
.sources a:hover { border-color: var(--navy); text-decoration: underline; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 56px); }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ballots { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .sources { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .steps, .timetable { grid-template-columns: minmax(0, 1fr); }
  .guide-cta .btn { width: 100%; }
  .data-table { min-width: 560px; }
}
@media print {
  .toc, .guide-cta { display: none !important; }
  .table-wrap { overflow: visible; }
}

/* ---------- Yellow ballot facsimile ---------- */
.ballot--highlight { background: #fbeaa0; border-color: #d9b11c; }
.ballot--highlight .ballot__facts div { background: rgba(255, 255, 255, 0.6); }
.ballot--highlight .ballot__line { border-bottom-color: rgba(20, 43, 74, 0.35); }
.ballot__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--ink); font-weight: 600; font-size: 0.93rem; }

.facsimile {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
}
.facsimile__label {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px;
  background: var(--yellow); color: var(--navy);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 3px;
}
.facsimile__title { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); }
.facsimile__text p { color: var(--ink-muted); }
.facsimile__checks { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink); }
.facsimile__checks li { position: relative; padding-left: 32px; }
.facsimile__checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 3px;
  background: linear-gradient(var(--navy), var(--navy)) center / 0 0 no-repeat;
}
.facsimile__checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px;
  width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.facsimile__zoom svg { width: 20px; height: 20px; }

.facsimile__figure { margin: 0; }
.facsimile__frame {
  position: relative; display: block;
  padding: 14px;
  background: #e9edf3;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.facsimile__frame img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(20, 43, 74, 0.12), 0 28px 50px -24px rgba(20, 43, 74, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .facsimile__frame:hover { transform: translateY(-4px); }
}
.facsimile__stamp {
  position: absolute; z-index: 1; top: -12px; right: 24px;
  padding: 6px 14px;
  background: var(--navy); color: var(--white);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 6px 14px -6px rgba(20, 43, 74, 0.6);
}
.facsimile__figure figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-muted); }

.lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--navy-deep);
  color: var(--white);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(8, 18, 33, 0.82); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-dark); }
.lightbox__title { font-size: 1.05rem; margin: 0; }
.lightbox__close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--white);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  font: inherit; font-weight: 600; cursor: pointer;
}
.lightbox__close:hover { border-color: var(--white); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__body { padding: clamp(12px, 3vw, 28px); }
.lightbox__body img { width: 100%; border-radius: 4px; }

@media (max-width: 860px) {
  .facsimile { grid-template-columns: minmax(0, 1fr); }
  .facsimile__figure { order: -1; }
  .facsimile__label { display: none; }
}
@media print {
  .facsimile__zoom, .lightbox { display: none !important; }
}
