:root {
  --royal: #4169e1;
  --royal-deep: #2b52ba;
  --royal-dark: #3159c7;
  --red: #c41230;
  --red-deep: #a20f28;
  --white: #fff;
  --ink: #172338;
  --body: #344257;
  --muted: #637186;
  --mist: #f3f6fb;
  --line: #dce3ed;
  --container: 1200px;
  --shadow: 0 18px 44px rgba(15, 35, 71, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e22c45; outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 3rem)); margin-inline: auto; }
.section { padding: clamp(2.8rem, 5vw, 4.4rem) 0; scroll-margin-top: 5.5rem; }

.skip-link {
  position: fixed; z-index: 2000; top: 1rem; left: 1rem;
  transform: translateY(-160%); padding: .7rem 1rem;
  background: var(--white); color: var(--royal-deep); border: 2px solid var(--royal);
  border-radius: .35rem; font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

/* Shared wordmark / navigation */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  color: var(--white); background: var(--royal-deep);
  box-shadow: 0 2px 14px rgba(11, 27, 55, .18);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; min-width: 280px; }
.brand-mark { display: flex; align-items: center; gap: 3px; height: 32px; padding: 4px; border-left: 4px solid var(--red); }
.brand-mark i { display: block; width: 4px; height: 22px; background: var(--white); }
.brand-mark i:first-child { height: 16px; background: #cbd8f0; }
.brand-mark i:last-child { height: 28px; background: var(--red); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: .93rem; letter-spacing: .08em; white-space: nowrap; }
.brand-copy b, .footer-brand b { color: #ff6573; }
.brand-copy small { margin-top: .28rem; color: #d8e0ee; font-size: .69rem; letter-spacing: .16em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.55rem, 1.15vw, 1.05rem); }
.desktop-nav > a:not(.button) { color: #f5f7fb; font-size: .83rem; font-weight: 700; letter-spacing: .045em; text-decoration: none; white-space: nowrap; }
.desktop-nav > a:not(.button):hover { color: #ff9aa5; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1.35rem; border: 2px solid transparent; border-radius: .35rem;
  font: inherit; font-size: .92rem; font-weight: 800; letter-spacing: .04em;
  text-align: center; text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(196, 18, 48, .22); }
.button-red:hover { background: var(--red-deep); }
.button-outline { border-color: rgba(255,255,255,.8); color: var(--white); background: transparent; }
.button-outline:hover { background: rgba(255,255,255,.12); }
.button-white { background: var(--white); color: var(--royal-deep); }
.button-white:hover { background: #eaf0fa; }
.button-outline-dark { border-color: var(--royal); color: var(--royal-deep); background: transparent; }
.button-outline-dark:hover { background: #eaf0fa; }
.nav-donate { min-height: 42px; padding: .55rem 1.1rem; font-size: .82rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); border-radius: .35rem; background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; }
.mobile-nav { display: none; flex-direction: column; padding: .25rem 1.5rem 1.1rem; background: var(--royal-dark); }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav.is-open { display: flex; }
.mobile-nav > a:not(.button) { padding: .75rem .1rem; border-bottom: 1px solid rgba(255,255,255,.15); color: var(--white); font-weight: 700; text-decoration: none; }
.mobile-nav .button { margin-top: .9rem; }

/* Home / campaign slate */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--royal); }
.hero-simple { padding: 0; border-bottom: 5px solid var(--red); }
.hero-simple::before, .hero-simple::after { display: none; }
.hero-banner { width: 100%; margin: 0; }
.hero-banner img { width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 .75rem; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; }

/* Section headings / candidate profiles */
.section-heading { max-width: 760px; margin: 0 auto 1.8rem; text-align: center; }
.section-heading h2, .faq-intro h2, .involved-layout h2 { margin-bottom: .85rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-heading > p:last-child { margin: 0; color: var(--body); font-size: 1.08rem; }
.candidates-section { background: var(--white); }
.candidate-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.35rem; align-items: stretch; }
.candidate-card { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); box-shadow: 0 8px 28px rgba(16,37,77,.08); }
.candidate-photo { width: 100%; height: 230px; object-fit: cover; object-position: center; border-bottom: 4px solid var(--red); }
.candidate-copy { padding: 1.4rem 1.45rem 1.7rem; }
.candidate-role { margin: 0 0 .3rem; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.candidate-copy h3 { margin: 0 0 .6rem; color: var(--royal-deep); font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; }
.candidate-name-trigger { display: inline-flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(196,18,48,.55); text-underline-offset: .18em; cursor: pointer; }
.candidate-name-trigger:hover { color: var(--red); text-decoration-color: currentColor; }
.candidate-trigger-icon { display: inline-grid; width: 1.15em; height: 1.15em; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: "Source Sans 3", Arial, sans-serif; font-size: .72em; line-height: 1; }
.candidate-copy > p:last-child { margin: 0; color: var(--body); }
.candidate-dialog { width: calc(100% - 2rem); max-width: 920px; max-height: 90vh; overflow-y: auto; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.candidate-dialog::backdrop { background: rgba(8,20,40,.74); backdrop-filter: blur(2px); }
.candidate-dialog__inner { position: relative; padding: 3.8rem clamp(1.1rem,3vw,2.1rem) 2rem; }
.candidate-dialog__close { position: absolute; top: .75rem; right: .75rem; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--royal-deep); font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.candidate-dialog__close:hover { border-color: var(--red); color: var(--red); }
.candidate-dialog__layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(1.1rem,3vw,2rem); align-items: start; }
.candidate-dialog__photo { width: 100%; max-height: 420px; aspect-ratio: 3 / 2; object-fit: contain; border-radius: .45rem; background: var(--mist); }
.candidate-dialog__copy h2 { margin: 0 0 1rem; color: var(--royal-deep); font-size: clamp(2rem,4vw,2.8rem); }
.candidate-dialog__bio { margin: 0; padding-left: 1.25rem; color: var(--body); }
.candidate-dialog__bio li + li { margin-top: .65rem; }

/* Five campaign priorities */
.priorities-section { background: var(--mist); }
.section-heading-left { max-width: none; margin-left: 0; text-align: left; }
.section-heading-left > p:last-child { max-width: 42rem; }
.priority-list { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.priority-item { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: .45rem; background: var(--white); }
.priority-item h3 { margin: 0 0 .4rem; color: var(--royal-deep); font-size: 1rem; line-height: 1.3; }
.priority-item p { margin: 0; color: var(--body); font-size: .91rem; line-height: 1.5; }
.source-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .86rem; }
.source-note a, .text-link { color: var(--royal); font-weight: 800; }

/* Two compact, separate Q&A sections */
.qna-section { background: var(--white); }
.community-questions-section { background: var(--mist); }
.qna-list { max-width: 980px; margin-inline: auto; }
.qna-list details { border-top: 1px solid #cfd8e6; }
.qna-list details:last-child { border-bottom: 1px solid #cfd8e6; }
.qna-list summary { position: relative; padding: 1rem 2.7rem 1rem 0; color: var(--royal-deep); cursor: pointer; font-size: 1.04rem; font-weight: 800; line-height: 1.4; list-style: none; }
.qna-list summary::-webkit-details-marker { display: none; }
.qna-list summary::after { content: "+"; position: absolute; top: .75rem; right: .35rem; color: var(--red); font-size: 1.55rem; }
.qna-list details[open] > summary::after { content: "−"; }
.qna-list details p { margin: 0; padding: 0 2rem .9rem 0; color: var(--body); }
.qna-list details p:last-child { padding-bottom: 1.1rem; }
.qna-list a { color: var(--royal-deep); font-weight: 800; }

/* Voter information */
.vote-section { background: var(--royal-deep); color: var(--white); }
.section-heading-light .eyebrow { color: var(--white); }
.section-heading-light h2 { color: var(--white); }
.section-heading-light > p:last-child { color: #dbe4f2; }
.vote-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; align-items: stretch; }
.vote-card { padding: 1.55rem; border: 1px solid rgba(255,255,255,.23); border-radius: .6rem; background: rgba(255,255,255,.07); }
.vote-card-primary { border-color: var(--red); background: var(--royal); box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.vote-card-label { color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.vote-card h3 { margin: .4rem 0 .4rem; color: var(--white); font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; }
.vote-date { margin: 0 0 .75rem; color: var(--white); font-size: 1.03rem; font-weight: 800; }
.vote-card p, .vote-card li { color: var(--white); }
.vote-card .button { margin-top: .55rem; }
.deadline-list { padding-left: 1.15rem; }
.deadline-list li { margin-bottom: .6rem; }
.deadline-list strong { color: var(--white); }
.early-location-highlights { margin: .25rem 0 .85rem; padding-left: 1.15rem; }
.early-location-highlights li + li { margin-top: .18rem; }
.early-location-highlights a { color: var(--white); font-weight: 700; }
.vote-card .text-link { display: flex; width: fit-content; margin-top: .7rem; color: #fff; }
.location-details { margin-top: 1.25rem; border: 1px solid rgba(255,255,255,.25); border-radius: .55rem; background: rgba(255,255,255,.055); }
.location-details summary { padding: 1rem 1.2rem; color: var(--white); cursor: pointer; font-weight: 800; }
.location-details > p { margin: 0; padding: 0 1.2rem .8rem; color: #e2e9f5; }
.location-details > p a { color: var(--white); }
.location-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin: 0; padding: .2rem 1.2rem 1.2rem; list-style: none; }
.location-list a { display: flex; flex-direction: column; height: 100%; padding: .85rem; border-radius: .35rem; background: rgba(255,255,255,.09); color: var(--white); text-decoration: none; }
.location-list a:hover { background: rgba(255,255,255,.16); }
.location-list strong { font-size: .93rem; }
.location-list span { color: #d5deed; font-size: .84rem; }
.ballot-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: center; margin-top: 2.2rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: .65rem; background: var(--white); color: var(--ink); }
.ballot-copy .eyebrow { color: var(--red); }
.ballot-copy h3 { margin: 0 0 .7rem; color: var(--royal-deep); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }
.ballot-copy > p:not(.eyebrow) { margin: 0 0 1.1rem; color: var(--body); }
.ballot-preview { margin: 0; }
.ballot-preview a { display: block; }
.ballot-preview img { width: 100%; height: auto; border: 1px solid var(--line); background: var(--white); }
.ballot-preview figcaption { margin-top: .45rem; color: var(--muted); font-size: .78rem; }
.voter-source { margin: 1.1rem 0 0; color: #dbe4f2; font-size: .82rem; }
.voter-source a { color: var(--white); }

.location-details summary::-webkit-details-marker { display: none; }
.ballot-guide-details .ballot-panel { margin: 0; border-radius: 0 0 .65rem .65rem; }

/* Compact social links and campaign disclosure */
.site-footer { padding: 2.5rem 0 2rem; background: var(--royal-dark); color: var(--white); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.footer-brand { color: var(--white); font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.footer-brand span { display: block; margin-top: .2rem; color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-invite { max-width: 48rem; margin: 0; color: var(--white); }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.site-footer nav a { color: var(--white); font-size: .88rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.disclaimer { margin: .7rem 0 0; color: #fff; font-size: .82rem; font-weight: 700; }
.footer-note { margin: 0; color: var(--white); font-size: .78rem; }

@media (max-width: 1080px) {
  .desktop-nav { gap: .65rem; }
  .desktop-nav > a:not(.button) { font-size: .76rem; }
  .brand { min-width: 255px; }
  .brand-copy strong { font-size: .82rem; }
  .priority-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: flex; }
  .mobile-nav[hidden] { display: none !important; }
  .candidate-list { gap: .85rem; }
  .portrait-placeholder { min-height: 260px; }
}
@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 2rem)); }
  .hero-simple { padding: 0; }
  .candidate-dialog { width: calc(100% - 1rem); max-height: 92vh; }
  .candidate-dialog__inner { padding: 3.5rem 1.1rem 1.25rem; }
  .candidate-dialog__layout { grid-template-columns: 1fr; gap: 1rem; }
  .candidate-dialog__photo { max-height: 245px; aspect-ratio: 16 / 9; }
  .candidate-dialog__copy h2 { font-size: 2rem; }
  .candidate-list { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 1.2rem; }
  .portrait-placeholder { min-height: 320px; }
  .priority-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
  .vote-grid { grid-template-columns: 1fr; }
  .ballot-panel { grid-template-columns: 1fr; }
  .ballot-preview { max-width: 580px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 72px; }
  .brand { min-width: 0; gap: .55rem; }
  .brand-copy strong { font-size: .68rem; letter-spacing: .045em; }
  .brand-copy small { font-size: .58rem; letter-spacing: .11em; }
  .brand-mark { height: 28px; }
  .brand-mark i { height: 18px; }
  .brand-mark i:first-child { height: 14px; }
  .brand-mark i:last-child { height: 23px; }
  .section { padding-block: 3rem; }
  .section-heading { margin-bottom: 2rem; }
  .priority-list { grid-template-columns: 1fr; }
  .priority-item { padding: .9rem; }
  .qna-list summary { font-size: .98rem; }
  .qna-list details p { padding-right: .75rem; }
  .location-list { grid-template-columns: 1fr; padding-inline: .85rem; }
  .location-details > p { padding-inline: .85rem; }
  .footer-actions { width: 100%; }
  .footer-actions .button { flex: 1 1 135px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
