/* ==========================================================================
   Matt Williams for School Board — styles
   Mobile-first. All text/background pairs meet WCAG AA (4.5:1 normal text).
   ========================================================================== */

:root {
  /* Brand */
  --navy: #14284b;
  --navy-deep: #0d1c38;
  --navy-soft: #24406e;
  --gold: #e8b54a;          /* button fill; use with navy text only */
  --gold-hover: #f2c768;
  --gold-ink: #85590a;      /* gold for text on light backgrounds (5.6:1 on off-white) */

  /* Neutrals */
  --off-white: #faf7f1;
  --tint: #f1ece1;
  --white: #ffffff;
  --ink: #1b2433;           /* body text (15:1 on off-white) */
  --muted: #4a5568;         /* secondary text (7:1 on off-white) */
  --line: #ddd5c4;
  --error: #b42318;

  /* Type */
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 72rem;
  --gutter: 1.25rem;
  --radius: 0.75rem;
  --section-pad: clamp(4rem, 10vw, 7.5rem);
  --shadow: 0 1px 2px rgba(13, 28, 56, 0.06), 0 8px 24px rgba(13, 28, 56, 0.08);
  --focus: 0 0 0 3px var(--off-white), 0 0 0 6px var(--navy);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
h3, .h3 { font-size: 1.25rem; }

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

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

main:focus { outline: none; }

.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 {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;              /* 48px touch target */
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hover); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-sm { min-height: 2.75rem; padding: 0.5rem 1.25rem; font-size: 0.9375rem; }
.btn-lg { min-height: 3.5rem; padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row-center { justify-content: center; margin-top: 2.5rem; }

/* Focus ring on dark backgrounds */
.hero :focus-visible,
.section-navy :focus-visible,
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy-deep), 0 0 0 6px var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 4rem;
  gap: 0.5rem 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
  padding-block: 0.5rem;
}
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.125rem; }
.brand-sub { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.site-header :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--gold); }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font: 600 0.9375rem var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.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); }

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-nav a:not(.btn):hover { color: var(--gold); }
.site-nav .btn { margin-top: 0.75rem; align-self: flex-start; }

/* With JS, the menu collapses into a toggle panel on small screens */
.js .site-nav:not(.is-open) { display: none; }

@media (min-width: 60rem) {
  .nav-toggle { display: none !important; }
  .site-nav,
  .js .site-nav:not(.is-open) { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; }
  .site-nav a:not(.btn) { padding: 0.5rem 0; border: 0; font-size: 0.9375rem; }
  .site-nav .btn { margin: 0; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-dark { color: var(--gold-ink); }
.eyebrow-light { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(56, 92, 150, 0.45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding-block: clamp(3rem, 9vw, 6.5rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-title-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.35rem;
}
.hero-lede { font-size: clamp(1.125rem, 2.6vw, 1.3125rem); max-width: 34rem; color: #e6ebf3; }
.hero-date { margin-bottom: 2rem; color: var(--white); }
.hero-date strong {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
}
.hero-photo {
  justify-self: center;
  width: min(72%, 17rem);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: var(--navy-soft);
}

@media (min-width: 52rem) {
  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
  .hero-photo { width: min(100%, 26rem); justify-self: end; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }

.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-intro { font-size: 1.125rem; color: var(--muted); }

.prose { max-width: 40rem; font-size: 1.125rem; }
.prose p { margin-bottom: 1.25rem; }
.bio-close { font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* Meet Matt */
.meet-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) {
  .meet-grid { grid-template-columns: 1fr 2fr; gap: 4rem; }
}
.fact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.fact-label { font-weight: 700; color: var(--navy); }

/* Priority cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 68rem) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.card p { color: var(--muted); font-size: 1rem; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}

/* Endorsements */
.quote-grid { display: grid; gap: 1.5rem; margin-bottom: 3.5rem; }
@media (min-width: 48rem) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote {
  margin: 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 1.25rem; }
.quote blockquote p {
  font-family: var(--font-head);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy);
}
.quote figcaption { font-size: 0.9375rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

.list-title { margin-bottom: 1.25rem; }
.endorser-list + .list-title { margin-top: 2.5rem; }
.endorser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem 2rem;
}
@media (min-width: 40rem) { .endorser-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .endorser-list { grid-template-columns: repeat(3, 1fr); } }
.endorser-list li { padding-left: 1.25rem; position: relative; }
.endorser-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Get Involved */
.involved-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56rem) { .involved-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }

.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.875rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b54a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-note { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 30rem) { .field-row { grid-template-columns: 1fr 1fr; } }

label, legend {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
legend { padding: 0; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8a8f99; /* 3.3:1 against white for non-text contrast */
  border-radius: 0.5rem;
}
input:hover { border-color: var(--navy); }
input:focus-visible { border-color: var(--navy); }
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field-error { margin: 0.375rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--error); }

.checkbox-grid { display: grid; gap: 0.25rem 1rem; }
@media (min-width: 30rem) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.checkbox input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); flex-shrink: 0; }

.form-status { margin-top: 1rem; font-weight: 600; color: var(--navy); }
.form-status:empty { display: none; }
.form-status.is-success {
  padding: 0.875rem 1rem;
  background: #eaf4ec;
  border-left: 4px solid #1f7a3a;
  color: #14532d;
  border-radius: 0.375rem;
}
.form-status.is-error { color: var(--error); }

/* Donate */
.donate-inner { max-width: 44rem; text-align: center; }
.donate-lede { font-size: 1.1875rem; color: #e6ebf3; margin-bottom: 2.25rem; }
.amount-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 36rem) { .amount-grid { grid-template-columns: repeat(4, 1fr); } }
.amount {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.amount:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.donate-fine { margin-top: 2rem; font-size: 0.875rem; color: #c9d2e0; }

/* Voting */
.timeline {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.timeline li {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow);
}
.timeline li:last-child { border-left-color: var(--gold); background: var(--navy); color: var(--white); }
.timeline li:last-child .timeline-date { color: var(--gold); }
.timeline li:last-child strong { color: var(--white); }
.timeline-date { font-family: var(--font-head); font-weight: 700; color: var(--gold-ink); }
.timeline-text strong { color: var(--navy); }
@media (min-width: 48rem) {
  .timeline li { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; }
}

.info-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .info-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.info-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.info-card h3 { font-size: 1.125rem; }
.info-card p { color: var(--muted); font-size: 1rem; }
.info-card .info-link { margin-top: 1rem; }
.info-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-weight: 700;
  color: var(--navy);
}
.info-link a::after { content: "\2192"; text-decoration: none; display: inline-block; }

/* Share */
.section-share { background: var(--tint); padding-block: 3.5rem; }
.share-inner { text-align: center; }
.share-inner > p { color: var(--muted); }
.share-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: 600 0.9375rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { background: var(--navy); color: var(--white); }
.share-btn[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c9d2e0;
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9375rem;
}
.footer-inner { display: grid; gap: 2rem; }
.footer-name { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; color: var(--white); margin: 0; }
.footer-sub { margin: 0.25rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--white); display: inline-block; padding-block: 0.375rem; }
.footer-links a:hover { color: var(--gold); }
.paid-for {
  border: 1.5px solid #c9d2e0;
  padding: 0.75rem 1rem;
  justify-self: start;
}
.paid-for p { margin: 0; color: var(--white); font-weight: 600; }
@media (min-width: 52rem) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .paid-for { grid-column: 1 / -1; }
}

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

@media (forced-colors: active) {
  .btn, .share-btn, .amount, .card, .quote, .form-card { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}

@media print {
  .site-header, .nav-toggle, .section-share, .btn-row { display: none; }
  body { background: #fff; }
}

/* ---------- Form extras ---------- */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-privacy { margin: 0.875rem 0 0; font-size: 0.8125rem; color: var(--muted); }
button[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Thank-you and 404 pages ---------- */
.notice-page { min-height: 100vh; display: grid; align-items: center; }
.notice-inner { max-width: 40rem; text-align: center; }
.notice-inner .btn { margin-top: 1rem; }

/* ---------- Events ---------- */
.hero-event { margin: -0.75rem 0 1.75rem; }
.hero-event a { color: var(--gold); font-weight: 600; text-underline-offset: 0.2em; }
.hero-event a:hover { color: var(--gold-hover); }

.event-list { display: grid; gap: 2rem; }
.event-card {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
@media (min-width: 56rem) { .event-card { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; } }

.event-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  line-height: 1;
}
.event-badge span:first-child { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.event-badge span:last-child { font-family: var(--font-head); font-size: 1.75rem; font-weight: 900; margin-top: 0.25rem; }

.event-card h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
.event-meta { margin: 0 0 1.25rem; display: grid; gap: 0.75rem; }
.event-meta div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; }
.event-meta dt { font-weight: 700; color: var(--navy); }
.event-meta dd { margin: 0; }
.event-note { color: var(--muted); font-size: 0.9375rem; }
.event-desc { color: var(--muted); }

.rsvp-form { box-shadow: none; border: 1px solid var(--line); background: var(--off-white); }
.rsvp-form h4 { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); margin: 0 0 0.5rem; }

select {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8a8f99;
  border-radius: 0.5rem;
}
select:hover, select:focus-visible { border-color: var(--navy); }

/* ---------- Endorsement form ---------- */
.endorse-form { margin-top: 3.5rem; max-width: 44rem; }
.endorse-form h3 { margin-bottom: 0.5rem; }
.field-hint { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--muted); }
.id-note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8a8f99;
  border-radius: 0.5rem;
  resize: vertical;
}
textarea:hover, textarea:focus-visible { border-color: var(--navy); }
.checkbox.consent { align-items: flex-start; font-weight: 600; min-height: 0; padding: 0.375rem 0; }
.checkbox.consent input { margin-top: 0.2rem; }
.checkbox.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
