/* ==========================================================================
   VotePeace.org — styles
   Calm, factual, humane. Sky + dove from the original brand; sun-gold for actions.
   ========================================================================== */

:root {
  /* Ink */
  --ink: #0e1c2f;
  --ink-2: #364559;
  --ink-3: #5a687a;

  /* Surfaces */
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e7e3d9;
  --line-2: #d6d1c4;

  /* Sky (brand blue) */
  --sky-50: #f2f7fd;
  --sky-100: #e3eefb;
  --sky-200: #c8dcf5;
  --sky-300: #8db8ea;
  --sky-500: #2f74c8;
  --sky-600: #1f5fae;
  --sky-700: #174a8a;
  --sky-900: #0c2645;

  /* Sun (actions) */
  --sun-50: #fefaee;
  --sun-100: #fcf1d4;
  --sun-300: #f7d98a;
  --sun-400: #f4ca5a;
  --sun-500: #eab62c;

  --olive: #5b7a34;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(14 28 47 / 0.06), 0 1px 1px rgb(14 28 47 / 0.04);
  --shadow: 0 18px 40px -20px rgb(14 28 47 / 0.28), 0 3px 8px rgb(14 28 47 / 0.06);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky-600); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sky-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; font-variation-settings: "opsz" 72; }
h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
blockquote { margin: 0; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.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 {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--tint { background: var(--sky-50); }
.section--sun { background: linear-gradient(180deg, var(--sun-50), var(--sun-100)); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.section-head p { font-size: 1.15rem; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sky-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--sun { background: var(--sun-400); color: var(--ink); box-shadow: 0 6px 16px -8px rgb(170 120 0 / 0.6); }
.btn--sun:hover { background: var(--sun-300); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--sky-900); color: #fff; }
.btn--ghost { border-color: rgb(14 28 47 / 0.25); color: var(--ink); background: rgb(255 255 255 / 0.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgb(255 255 255 / 0.8); }
.btn--sm { padding: 9px 16px; font-size: 0.92rem; }
.btn--lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin 0.15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 250 246 / 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgb(14 28 47 / 0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 40px; width: auto; max-width: none; }
@media (max-width: 420px) { .brand__logo { height: 28px; } }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: 0.97rem; text-decoration: none;
}
.site-nav__list a:hover { color: var(--ink); background: rgb(14 28 47 / 0.05); }
.site-nav__list a[aria-current="page"] { color: var(--ink); background: var(--sky-100); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font: 600 0.95rem var(--font-sans); color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(14 28 47 / 0.35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 2px; }
  .site-nav__list a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .site-nav .btn { align-self: flex-start; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 136px);
  background:
    radial-gradient(55% 45% at 12% 18%, rgb(255 255 255 / 0.65), transparent 70%),
    radial-gradient(38% 30% at 58% 92%, rgb(255 255 255 / 0.55), transparent 70%),
    radial-gradient(42% 36% at 95% 8%, rgb(255 255 255 / 0.4), transparent 70%),
    linear-gradient(175deg, #6c9fdc 0%, #9fc3ee 48%, #dbe9f9 82%, var(--paper) 100%);
}
.hero__clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__clouds span {
  position: absolute; border-radius: 50%; background: rgb(255 255 255 / 0.55); filter: blur(28px);
}
.hero__clouds span:nth-child(1) { width: 520px; height: 70px; left: -80px; top: 26%; transform: rotate(-8deg); }
.hero__clouds span:nth-child(2) { width: 640px; height: 60px; right: -120px; top: 12%; transform: rotate(-12deg); opacity: 0.8; }
.hero__clouds span:nth-child(3) { width: 420px; height: 50px; right: 20%; bottom: 22%; transform: rotate(-6deg); opacity: 0.7; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero .eyebrow { color: var(--sky-900); }
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem);
  line-height: 1.06; letter-spacing: -0.012em; margin-bottom: 0.4em;
  font-variation-settings: "opsz" 120;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--sky-900); }
.hero .lede { color: var(--ink); max-width: 38em; margin-bottom: 32px; }
.hero__dove { position: relative; justify-self: center; width: min(100%, 340px); }
.hero__dove img {
  width: 100%;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__dove { order: -1; width: 150px; justify-self: start; margin-bottom: 4px; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 64px);
  background:
    radial-gradient(50% 60% at 85% 0%, rgb(255 255 255 / 0.7), transparent 70%),
    linear-gradient(180deg, #cfe1f7 0%, #e7f0fb 60%, var(--paper) 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.75rem); max-width: 18em; }
.page-hero .lede { max-width: 40em; margin-bottom: 0; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lede { margin-inline: auto; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font-size: 0.9rem; font-weight: 600; color: var(--sky-700); text-decoration: none;
}
.crumb:hover { text-decoration: underline; }
.date-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.date-chips li {
  padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.75);
  border: 1px solid var(--sky-200); font-size: 0.85rem; font-weight: 600; color: var(--sky-900);
}

/* ---------- Take action cards ---------- */
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.action-card {
  position: relative; display: grid; grid-template-columns: 152px 1fr; gap: 24px; align-items: start;
  padding: clamp(20px, 3vw, 32px); background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid rgb(234 182 44 / 0.35); box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.action-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--sky-50); }
.action-card__media img { width: 100%; height: 100%; object-fit: cover; }
.action-card__tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--sun-100); color: #6b4e00; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.action-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.2; margin-bottom: 8px; }
.action-card p { color: var(--ink-2); margin-bottom: 18px; }
.action-card .btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
@media (max-width: 900px) { .action-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .action-card { grid-template-columns: 1fr; } .action-card__media { width: 120px; } }

/* ---------- Stat tiles ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: clamp(36px, 5vw, 56px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.stat__value { font-family: var(--font-sans); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--sky-700); margin-bottom: 10px; }
.stat__label { color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.stat__source { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.stat__source a { color: inherit; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Record cards ---------- */
.record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1080px) { .record-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .record-grid { grid-template-columns: 1fr; } }

.record-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.record-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.record-card:focus-within { box-shadow: 0 0 0 3px var(--sky-500); }
.record-card__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--sky-100); }
.record-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.record-card:hover .record-card__media img { transform: scale(1.04); }
.record-card__body { display: flex; flex-direction: column; padding: 18px 20px 22px; flex: 1; }
.record-card__when { margin: 0 0 8px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.record-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.22; margin-bottom: 10px; letter-spacing: -0.005em; }
.record-card__title a { color: var(--ink); text-decoration: none; }
.record-card__title a::after { content: ""; position: absolute; inset: 0; }
.record-card__title a:focus-visible { outline: none; }
.record-card__summary { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.icon-ext { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: 0.05em; color: var(--ink-3); }

.more-record { padding-block: var(--section); background: var(--sky-50); border-top: 1px solid var(--line); }
.more-record h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: 28px; }

/* ---------- Big quote ---------- */
.big-quote { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 980px; margin-inline: auto; }
.big-quote__img { width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px var(--surface), var(--shadow); }
.big-quote__img img { width: 100%; height: 100%; object-fit: cover; }
.big-quote blockquote p {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1.22; letter-spacing: -0.015em; margin-bottom: 18px;
}
.big-quote blockquote p::before { content: "“"; color: var(--sky-500); margin-left: -0.45em; }
.big-quote blockquote p::after { content: "”"; color: var(--sky-500); }
.big-quote cite { font-style: normal; font-weight: 600; color: var(--ink-2); }
.big-quote cite::before { content: "— "; }
@media (max-width: 680px) {
  .big-quote { grid-template-columns: 1fr; text-align: center; }
  .big-quote__img { width: 150px; margin-inline: auto; }
  .big-quote blockquote p::before { margin-left: 0; }
}

/* ---------- Article layout ---------- */
.article-figure { margin-top: clamp(-8px, -1vw, 0px); }
.article-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-figure figcaption, .figure figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-3); line-height: 1.5; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start;
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}
.article-layout--single { grid-template-columns: minmax(0, var(--narrow)); justify-content: center; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 24px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

.prose { font-size: 1.125rem; line-height: 1.72; max-width: 68ch; }
.prose > * + h2 { margin-top: 1.8em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.prose h3 { font-size: 1.25rem; }
.prose blockquote, .pull {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--sky-300);
  font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose li { margin-bottom: 0.4em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }

/* Timeline (used on record pages) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; padding: 0 0 36px 36px; }
.timeline > li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: -6px; width: 2px; background: var(--line-2); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { display: none; }
.timeline > li::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sky-600); box-shadow: 0 0 0 4px var(--sky-100);
}
.timeline__date {
  display: block; margin-bottom: 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sky-700);
}
.timeline h2, .timeline h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); margin: 0 0 10px; }
.timeline p:last-child { margin-bottom: 0; }

/* Callouts */
.callout {
  margin: 1.8em 0; padding: 22px 24px; border-radius: var(--radius);
  background: var(--sky-50); border: 1px solid var(--sky-200);
}
.callout > :last-child { margin-bottom: 0; }
.callout__label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky-700);
}
.callout--sun { background: var(--sun-50); border-color: var(--sun-300); }
.callout--sun .callout__label { color: #7a5800; }
.check-icon { width: 18px; height: 18px; }

/* Quote card (aside) */
.quote-card {
  padding: 28px 26px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quote-card__img { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin-bottom: 18px; box-shadow: 0 0 0 4px var(--sky-100); }
.quote-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.quote-card blockquote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.quote-card blockquote p:first-child::before { content: "“"; }
.quote-card blockquote p:last-of-type::after { content: "”"; }
.quote-card cite { display: block; font-style: normal; font-weight: 700; font-size: 0.95rem; }
.quote-card cite span { display: block; font-weight: 400; color: var(--ink-3); }

.side-figure img { border-radius: var(--radius); }
.side-figure figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-3); }

/* ---------- Generic grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.grid-2--lead { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2, .grid-2--lead { grid-template-columns: 1fr; } }

.tradition-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.tradition-card__media { aspect-ratio: 4 / 3; background: var(--sky-50); }
.tradition-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tradition-card__body { padding: 22px 24px 26px; }
.tradition-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 4px; }
.tradition-card .meta { margin: 0 0 14px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.tradition-card blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.45; margin-bottom: 10px; }
.tradition-card cite { font-style: normal; font-weight: 600; color: var(--ink-2); }

/* ---------- Charts ---------- */
.chart {
  padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.chart__title { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; }
.chart__sub { margin: 0 0 16px; color: var(--ink-3); font-size: 0.95rem; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend__key { width: 12px; height: 12px; border-radius: 50%; }
.chart__source { margin: 18px 0 0; font-size: 0.85rem; color: var(--ink-3); }
.chart__source a { color: inherit; }
.table-view { margin-top: 14px; font-size: 0.9rem; }
.table-view summary { cursor: pointer; color: var(--sky-700); font-weight: 600; }
.table-view table { margin-top: 12px; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.table-view th { font-weight: 600; color: var(--ink-2); }

/* Dumbbell */
.dumbbell { --before: #8db8ea; --after: #1f5fae; display: grid; gap: 4px; }
.db-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; min-height: 56px; }
.db-row__label { font-weight: 600; font-size: 0.95rem; }
.db-track { position: relative; height: 56px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.db-line {
  position: absolute; top: calc(50% - 1px); height: 2px; background: var(--ink-3); border-radius: 2px;
  left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%);
}
.db-dot {
  position: absolute; top: 50%; left: calc(var(--v) * 1%); width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); cursor: default; outline-offset: 4px;
}
.db-dot--before { background: var(--before); }
.db-dot--after { background: var(--after); }
.db-dot__val {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.db-dot--after .db-dot__val { bottom: auto; top: calc(100% + 6px); }
.db-dot--same { background: conic-gradient(var(--after) 0 50%, var(--before) 0 100%); }
.db-axis { display: grid; grid-template-columns: 112px 1fr; gap: 12px; margin-top: 4px; }
.db-axis__ticks { position: relative; height: 20px; border-top: 1px solid var(--line-2); }
.db-axis__ticks span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.db-axis__ticks span:first-child { transform: none; }
.db-axis__ticks span:last-child { transform: translateX(-100%); }

/* Meter list (value against a whole, e.g. senators out of 100) */
.meters { --fill: #1f5fae; --track: #e3eefb; display: grid; gap: 16px; }
.meter-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.meter-row__label { font-size: 0.95rem; line-height: 1.35; }
.meter-row__label strong { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.meter-row__track { display: flex; align-items: center; gap: 12px; }
.meter-row__meter { position: relative; flex: 1; height: 14px; border-radius: 999px; background: var(--track); }
.meter-row__fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / var(--max) * 100%); min-width: 6px;
  border-radius: 999px; background: var(--fill);
}
.meter-row__val { min-width: 4.5ch; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-row--muted { --fill: #8db8ea; }
@media (max-width: 560px) {
  .meter-row, .db-row, .db-axis { grid-template-columns: 1fr; gap: 4px; }
  .db-axis > span { display: none; }
  .db-row { min-height: 0; margin-bottom: 22px; }
}

/* Tooltip (charts) */
:where([data-tip]) { position: relative; }
/* Tooltips exist only while hovered, so an invisible tooltip near the edge
   can never widen the page (Safari counts invisible pseudo-elements as overflow). */
[data-tip]:hover::before {
  content: attr(data-tip); position: absolute; z-index: 5; bottom: calc(100% + 30px); left: 50%;
  transform: translateX(-50%); width: max-content; max-width: 220px; padding: 6px 10px; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 500; line-height: 1.35;
  white-space: normal; pointer-events: none;
}
.db-dot--edge:hover::before { left: auto; right: -8px; transform: none; }
.meter-row__meter[data-tip]:hover::before { bottom: calc(100% + 10px); left: 0; transform: none; }
/* Hit target larger than the mark */
.db-dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }

/* ---------- Media list ---------- */
.media-group { margin-bottom: clamp(40px, 6vw, 64px); }
.media-group h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 18px; }
.media-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.media-item {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.media-item:hover { border-color: var(--sky-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.media-item__source {
  min-width: 108px; padding: 5px 10px; border-radius: 999px; background: var(--sky-100); color: var(--sky-900);
  font-size: 0.78rem; font-weight: 700; text-align: center; letter-spacing: 0.02em;
}
.media-item__title { margin: 0; font-weight: 600; line-height: 1.4; }
.media-item__title a { color: var(--ink); text-decoration: none; }
.media-item__title a::after { content: ""; position: absolute; inset: 0; }
.media-item__date { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-3); }
.media-item__arrow { color: var(--ink-3); }
@media (max-width: 600px) {
  .media-item { grid-template-columns: 1fr; gap: 8px; }
  .media-item__source { justify-self: start; min-width: 0; }
  .media-item__arrow { display: none; }
}

/* ---------- Letters & documents ---------- */
.letter {
  position: relative; padding: clamp(24px, 5vw, 56px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  font-size: 1.08rem; line-height: 1.72;
}
.letter__head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.letter__head p { margin: 0; color: var(--ink-2); }
.letter__head strong { color: var(--ink); }
.letter__sign { margin-top: 28px; }
.letter .copy-btn { position: absolute; top: 16px; right: 16px; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 600 0.88rem var(--font-sans); cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn[data-copied] { background: var(--sky-100); border-color: var(--sky-300); }

.doc {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 1.4em 0;
}
.doc > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 1.02rem;
}
.doc > summary::-webkit-details-marker { display: none; }
.doc > summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--sky-600); flex: none; }
.doc[open] > summary::after { content: "–"; }
.doc > summary:hover { color: var(--sky-700); }
.doc__body { padding: 0 22px 22px; font-size: 1rem; }
.doc__body p { padding-left: 14px; border-left: 2px solid var(--sky-100); }
.doc__body p.resolved { border-left-color: var(--sun-400); font-weight: 600; }

/* Supervisor cards */
.supervisors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.supervisor {
  position: relative; padding: 20px 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.supervisor:hover { border-color: var(--sky-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.supervisor__district { margin: 0 0 4px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.supervisor h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 6px; }
.supervisor h3 a { color: var(--ink); text-decoration: none; }
.supervisor h3 a::after { content: ""; position: absolute; inset: 0; }
.supervisor p { margin: 0 0 12px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.5; }
.supervisor__cta { font-size: 0.9rem; font-weight: 600; color: var(--sky-600); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; }

/* Signatories */
.signatories { columns: 2 320px; column-gap: 40px; list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.signatories li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.signatories strong { display: block; }
.signatories span { color: var(--ink-3); }

/* Profile */
.profile { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.profile__img { width: 140px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--sky-100); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 560px) { .profile { grid-template-columns: 1fr; } }

.value-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.value-list li { position: relative; padding-left: 30px; }
.value-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sky-200); box-shadow: inset 0 0 0 4px var(--sky-600);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgb(47 116 200 / 0.18); }
.req { color: #a8321e; }
.form-card {
  padding: clamp(24px, 4vw, 44px); background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-status { margin: 0; font-weight: 600; }

/* EmailOctopus embed (/newsletter/): blend the third-party form into the site */
.newsletter-embed .inline-container,
.newsletter-embed .eo-form-wrapper { max-width: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }
.newsletter-embed .form-control {
  border-radius: 10px !important; border: 1px solid var(--line-2) !important; padding: 13px 14px !important;
  font-family: var(--font-sans) !important; font-size: 1rem !important; height: auto !important;
}
.newsletter-embed .form-control:focus { border-color: var(--sky-500) !important; box-shadow: 0 0 0 4px rgb(47 116 200 / 0.18) !important; }
.newsletter-embed input[type="submit"] {
  background: var(--ink) !important; border: 0 !important; border-radius: 999px !important; color: #fff !important;
  font: 600 1.05rem var(--font-sans) !important; padding: 15px 24px !important; margin-top: 8px;
}
.newsletter-embed input[type="submit"]:hover { background: var(--sky-900) !important; }

/* ---------- Newsletter band & footer ---------- */
.newsletter-band { background: var(--sky-900); color: #fff; position: relative; overflow: hidden; }
.newsletter-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 120% at 100% 0%, rgb(141 184 234 / 0.35), transparent 70%),
              radial-gradient(30% 100% at 0% 100%, rgb(244 202 90 / 0.18), transparent 70%);
}
.newsletter-band__inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-block: clamp(44px, 6vw, 72px);
}
.newsletter-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 8px; }
.newsletter-band p { margin: 0; color: rgb(255 255 255 / 0.8); max-width: 36em; font-size: 1.1rem; }

.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.72); font-size: 0.95rem; }
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}
.site-footer__about p { margin-top: 18px; max-width: 30em; line-height: 1.6; }
.site-footer__col h2 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.88rem;
}
.site-footer__base p { margin: 0; }
.site-footer__motto { font-family: var(--font-display); font-style: italic; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .newsletter-band, .site-footer, .more-record, .copy-btn { display: none !important; }
  body { background: #fff; }
  .page-hero, .hero { background: none; padding-block: 0 24px; }
  a { color: inherit; }
}
