/* Ashtabula County Voter Guide - Mobile-first, accessible */

:root {
  --primary: #1a5276;
  --accent: #2e86c1;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --bg: #ffffff;
  --card-bg: #f8f9fa;
  --border: #dee2e6;
  --success: #27ae60;
  --warning: #f39c12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

header nav {
  background: var(--primary);
  color: white;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: white; text-decoration: none; opacity: 0.9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; }

.search-box { position: relative; margin-left: auto; }
.search-box input {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  width: 200px;
}
#search-results {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#search-results a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
#search-results a:hover { background: var(--card-bg); }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--primary); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

.candidate-card, .measure-card, .levy-row {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.candidate-card h3 { margin-top: 0; }
.party-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.party-R { background: #fadbd8; color: #922b21; }
.party-D { background: #d6eaf8; color: #1a5276; }
.party-L { background: #fef9e7; color: #7d6608; }
.party-I { background: #e8e8e8; color: #555; }

.source-list { font-size: 0.9rem; margin-top: 1rem; }
.source-list a { color: var(--accent); }

.verification-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #d5f5e3;
  color: #1e8449;
  margin-top: 0.5rem;
}
.verification-badge.thin { background: #fef9e7; color: #7d6608; }

.worksheet-check {
  margin: 1rem 0;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
}
.worksheet-check label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.worksheet-check input[type="checkbox"] {
  width: 1.5rem; height: 1.5rem;
}

table.levies {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.levies th, table.levies td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.levies th { background: var(--primary); color: white; }

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 3rem;
}
footer a { color: var(--accent); }

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  table.levies { font-size: 0.8rem; }
  table.levies th, table.levies td { padding: 0.5rem 0.25rem; }
}

.candidate-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--border);
}
.candidate-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
@media print {
  header nav, footer, .search-box, .worksheet-check { display: none; }
  .candidate-card, .measure-card { break-inside: avoid; }
}


/* Refreshed OpenVoterGuide visual system */
:root {
  --primary:var(--ovg-midnight); --accent:var(--ovg-link-on-light); --text:#314761; --muted:#68798d;
  --bg:#f4f7fb; --card-bg:#fff; --border:#dbe4ee; --success:#087b51;
  --warning:#d66a00; --red:#dd1835; --shadow:0 12px 35px rgba(14,45,80,.12);
}
html { scroll-behavior:smooth; }
body { background:var(--bg); color:var(--text); font-family:"DM Sans",system-ui,sans-serif; }
header { position:sticky; top:0; z-index:30; background:rgba(255,255,255,.97); border-bottom:1px solid var(--border); box-shadow:0 2px 12px rgba(14,45,80,.05); }
header nav { max-width:1240px; min-height:70px; margin:auto; padding:.65rem 1rem; background:transparent; color:var(--text); gap:.5rem 1rem; }
.logo { color:var(--primary); font-family:"Libre Franklin",system-ui,sans-serif; letter-spacing:-.035em; }
.nav-links { gap:.15rem; }
.nav-links a { color:var(--text); font-size:.83rem; font-weight:700; padding:.6rem .7rem; border-radius:7px; text-decoration:none; }
.nav-links a:hover,.nav-links a:focus-visible { background:#eaf3ff; color:var(--accent); }
.search-box input { width:220px; border:1px solid var(--border); border-radius:7px; background:#fff; color:var(--text); }
main { max-width:none; min-height:75vh; margin:0; padding:0 0 2rem; }
main > :not(.landing-hero):not(.landing-shell) { max-width:1180px; margin-left:auto; margin-right:auto; padding-left:1rem; padding-right:1rem; }
h1,h2,h3 { color:var(--primary); font-family:"Libre Franklin",system-ui,sans-serif; letter-spacing:-.025em; }
h1 { font-size:clamp(2.1rem,4vw,3.2rem); line-height:1.06; }
h2 { font-size:clamp(1.45rem,2.5vw,2rem); margin:2rem 0 1rem; }
.candidate-card,.measure-card,.levy-row { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:1.35rem; box-shadow:0 5px 18px rgba(14,45,80,.06); }
footer { background:#fff; border-top:1px solid var(--border); margin-top:3rem; }
.landing-hero { min-height:510px; display:flex; align-items:center; color:#fff; background-color:#183d60; background-image:linear-gradient(90deg,rgba(8,30,54,.86),rgba(8,30,54,.4)),var(--hero-image); background-size:cover; background-position:center 56%; }
.landing-hero-inner { width:min(1180px,100%); margin:auto; padding:4rem 1rem; }
.landing-kicker { display:inline-flex; align-items:center; gap:.5rem; margin:0 0 1rem; color:#e6f3ff; font-size:.8rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.landing-kicker:before { content:""; width:26px; height:2px; background:#ef4158; }
.landing-hero h1 { max-width:720px; margin:0; color:#fff; font-size:clamp(2.8rem,7vw,5.2rem); }
.landing-hero p { max-width:650px; margin:1.1rem 0 0; color:#f2f6fa; font-size:1.1rem; }
.landing-actions { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.65rem; }
.landing-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:48px; border:1px solid rgba(255,255,255,.45); border-radius:7px; padding:.75rem 1.05rem; color:#fff; font-weight:800; text-decoration:none; }
.landing-actions .primary-action { background:#dd1835; border-color:#dd1835; box-shadow:0 4px 12px rgba(221,24,53,.25); }
.landing-actions a:not(.primary-action) { background:rgba(255,255,255,.1); }
.landing-actions a:hover { filter:brightness(1.08); }
.landing-shell { max-width:1180px; margin:0 auto; padding:2.4rem 1rem 0; }
.landing-intro { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.landing-intro h2 { margin:0; }
.landing-intro p { max-width:620px; margin:.45rem 0 0; color:var(--muted); }
.feature-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.feature-card { min-height:190px; display:flex; flex-direction:column; align-items:flex-start; padding:1.2rem; border:1px solid var(--border); border-radius:12px; background:#fff; box-shadow:0 5px 18px rgba(14,45,80,.06); text-decoration:none; transition:transform .16s ease,box-shadow .16s ease; }
.feature-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.feature-icon { width:42px; height:42px; display:grid; place-items:center; margin-bottom:1rem; border-radius:10px; background:#eaf3ff; color:var(--accent); font-size:1.25rem; }
.feature-card h3 { margin:.1rem 0 .35rem; font-size:1.05rem; }
.feature-card p { margin:0; color:var(--muted); font-size:.9rem; }
.feature-arrow { margin-top:auto; padding-top:.8rem; color:var(--accent); font-size:.85rem; font-weight:800; }
.landing-note { margin-top:1.5rem; padding:1rem 1.1rem; border-left:4px solid #dd1835; border-radius:0 8px 8px 0; background:#fff; color:var(--text); }
.landing-note strong { color:var(--primary); }
.race-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; }
.race-link { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:65px; padding:1rem 1.1rem; border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--primary); font-weight:800; text-decoration:none; box-shadow:0 4px 14px rgba(14,45,80,.04); }
.race-link:after { content:"→"; color:var(--accent); font-size:1.2rem; }
.race-link:hover { border-color:#9bbfe3; box-shadow:0 7px 20px rgba(14,45,80,.1); }
.landing-issue-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.landing-issue { padding:1.2rem; border:1px solid var(--border); border-radius:11px; background:#fff; }
.landing-issue h3 { margin:.2rem 0 .4rem; }
.landing-issue p { margin:0; color:var(--muted); }
.landing-issue a { display:inline-block; margin-top:1rem; font-weight:800; }
.skip-link { position:fixed; left:1rem; top:-5rem; z-index:100; padding:.7rem 1rem; border-radius:6px; background:#fff; color:var(--primary); }
.skip-link:focus { top:1rem; }
@media (max-width:850px) { .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } header nav { align-items:flex-start; } .search-box { margin-left:auto; } }
.site-nav { flex:1 1 auto; }
.site-nav > summary { display:none; }
.site-nav .nav-links { display:flex; flex-wrap:wrap; }

@media (max-width:600px) {
  header { position:relative; }
  header nav { gap:.55rem; align-items:center; }
  .logo { max-width:calc(100% - 6rem); font-size:1rem; line-height:1.25; }
  .site-nav { position:relative; flex:0 0 auto; order:2; }
  .site-nav > summary {
    display:flex; align-items:center; justify-content:center; min-width:76px; min-height:44px;
    padding:.55rem .75rem; border:1px solid var(--border); border-radius:8px;
    background:#fff; color:var(--primary); font-weight:800; cursor:pointer; list-style:none;
  }
  .site-nav > summary::marker { content:""; }
  .site-nav > summary::-webkit-details-marker { display:none; }
  .site-nav > summary::after { content:"⌄"; margin-left:.4rem; }
  .site-nav[open] > summary::after { content:"⌃"; }
  .site-nav .nav-links {
    position:absolute; top:calc(100% + .55rem); right:0; z-index:50; display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:.25rem;
    width:min(22rem,calc(100vw - 2rem)); padding:.5rem;
    border:1px solid var(--border); border-radius:10px; background:#fff; box-shadow:var(--shadow);
  }
  .site-nav .nav-links a { display:flex; align-items:center; min-height:44px; padding:.65rem; }
  .search-box { width:100%; order:3; margin:0; }
  .search-box input { width:100%; }
  .landing-hero { min-height:500px; background-position:58% center; }
  .landing-hero-inner { padding:3.3rem 1rem; }
  .landing-intro { display:block; }
  .feature-grid,.race-grid,.landing-issue-grid { grid-template-columns:1fr; }
  .feature-card { min-height:160px; }
}
@media print { header,footer,.landing-actions { display:none!important; } body,main { background:#fff; } .candidate-card,.measure-card { break-inside:avoid; } }


/* All-candidate comparison */

.all-candidates-compare { margin:2rem auto; padding:1.2rem; max-width:1180px; background:#fff; border:1px solid var(--border); border-radius:12px; }
.comparison-table-scroll { max-width:100%; overflow:auto; border:1px solid var(--border); border-radius:8px; }
.candidate-comparison { width:100%; min-width:760px; border-collapse:separate; border-spacing:0; font-size:.92rem; }
.candidate-comparison td { vertical-align:top; }
.candidate-comparison th,.candidate-comparison td { min-width:210px; padding:.9rem; text-align:left; vertical-align:top; border-right:1px solid var(--border); border-bottom:1px solid var(--border); }
.candidate-comparison thead th { position:sticky; top:0; z-index:2; background:#eaf3ff; color:var(--primary); }
.candidate-comparison thead th:first-child { left:0; z-index:3; min-width:155px; }
.candidate-comparison tbody th { position:sticky; left:0; z-index:1; min-width:155px; background:#f4f7fb; color:var(--primary); }
.candidate-comparison ul { padding-left:1.15rem; }
.candidate-comparison a,.measure-position-list a { color:var(--accent); }
.comparison-note { margin:1rem 0; padding:1rem; border-left:4px solid var(--accent); background:#eef5fc; }
.comparison-party,.comparison-incumbent { display:block; margin-top:.25rem; color:var(--muted); font-size:.82rem; }
.comparison-empty { color:var(--muted); font-style:italic; }
.measure-position-list li+li { margin-top:.8rem; }
.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; }
/* Address based district lookup */
.search-box { z-index: 40; }
#search-results { width: min(460px, calc(100vw - 2rem)); max-height: min(70vh, 560px); padding: .25rem; border-radius: 10px; }
#search-results > p { padding: .75rem 1rem; }
#search-results > a { border-radius: 6px; }
.address-search { margin: .65rem; padding: .9rem; border: 1px solid #9bbfe3; border-radius: 9px; background: #f2f7fd; }
.address-search > strong { display: block; color: var(--primary); font-size: 1rem; }
.address-search > p { margin: .45rem 0; color: var(--text); font-size: .88rem; }
.address-search-button { min-height: 42px; margin-top: .4rem; padding: .6rem .85rem; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.address-search-button:hover { filter: brightness(.92); }
.address-search-button:focus-visible,#search-results a:focus-visible { outline: 3px solid #f39c12; outline-offset: 2px; }
.address-search-button:disabled { opacity: .65; cursor: wait; }
.address-search > a { display: inline-block; padding: .3rem 0; color: var(--accent); font-weight: 700; }
.address-match-title { display: block; margin-top: .75rem; color: var(--primary); }
.address-search .address-geography { margin-top: .4rem; }
.address-search .address-guidance { margin-top: .75rem; padding-top: .65rem; border-top: 1px solid var(--border); }
.address-search .address-official-links { margin-top: .5rem; font-size: .86rem; }
.address-search .address-official-links a { display: inline; font-weight: 700; }
.address-status { color: var(--muted); }
@media (max-width: 600px) { #search-results { position: absolute; left: 0; right: 0; width: 100%; } }


/* Expandable candidate comparison keeps the readable candidate cards first. */
.all-candidates-compare { padding:0; overflow:hidden; }
.comparison-disclosure > summary {
  display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:56px;
  padding:1rem 1.2rem; color:var(--primary); font-weight:800; cursor:pointer; list-style:none;
}
.comparison-disclosure > summary::-webkit-details-marker { display:none; }
.comparison-disclosure > summary::after { content:"+"; flex:0 0 auto; color:var(--accent); font-size:1.5rem; }
.comparison-disclosure[open] > summary::after { content:"−"; }
.comparison-summary-title { font-family:"Libre Franklin",system-ui,sans-serif; font-size:1.25rem; letter-spacing:-.02em; }
.comparison-summary-hint { color:var(--muted); font-size:.85rem; font-weight:600; text-align:right; }
.comparison-disclosure > p,.comparison-disclosure > .comparison-table-scroll { margin-left:1.2rem; margin-right:1.2rem; }
.comparison-disclosure > p:last-of-type { margin-bottom:1rem; }
.comparison-disclosure > .comparison-table-scroll { margin-bottom:1.2rem; }
.comparison-disclosure > summary:focus-visible { outline:3px solid var(--ovg-focus-on-light); outline-offset:-3px; }
@media (max-width:600px) {
  .comparison-disclosure > summary { align-items:flex-start; padding:1rem; }
  .comparison-summary-hint { max-width:7rem; }
  .comparison-disclosure > p,.comparison-disclosure > .comparison-table-scroll { margin-left:.75rem; margin-right:.75rem; }
}


@media (max-width:600px) {
  /* Anchor the full-width menu panel to the viewport instead of the small Menu button. */
  .site-nav { position:static; }
  .site-nav .nav-links { top:calc(.65rem + 44px + .55rem); right:1rem; }
}


/* Keep wide levy data scrollable inside its own table region on phones. */
.levies-table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:8px; }
table.levies { min-width:660px; }
.table-scroll-hint { display:none; }
@media (max-width:600px) {
  .table-scroll-hint { display:block; margin:.5rem 0; color:var(--muted); font-size:.85rem; }
}

/* OpenVoterGuide brand tokens and shared header */
:root {
  --ovg-midnight:#071827;
  --ovg-ink:#102B40;
  --ovg-blue:#087BFF;
  --ovg-cyan:#00C6EB;
  --ovg-teal:#57F5D3;
  --ovg-white:#F8FAFC;
  --ovg-muted-on-dark:#C9D7E5;
  --ovg-link-on-light:#0059C7;
  --ovg-focus-on-light:#0059C7;
  --ovg-focus-on-dark:#57F5D3;
  --ovg-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --primary:var(--ovg-midnight);
  --accent:var(--ovg-link-on-light);
}
.logo { display:flex; align-items:center; flex:0 0 auto; }
.brand-wordmark { display:block; width:min(260px,27vw); height:auto; }
.brand-mark { display:none; width:48px; height:auto; }
.header-support {
  display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
  min-height:42px; padding:.55rem .8rem; border:1px solid var(--ovg-midnight);
  border-radius:8px; background:var(--ovg-midnight); color:var(--ovg-white);
  font-size:.84rem; font-weight:800; text-decoration:none; white-space:nowrap;
}
.header-support:hover { background:var(--ovg-link-on-light); border-color:var(--ovg-link-on-light); }
.header-support:focus-visible { outline:3px solid var(--ovg-focus-on-light); outline-offset:3px; }
.landing-kicker:before { background:var(--ovg-cyan); }
.landing-actions .primary-action { background:var(--ovg-teal); border-color:var(--ovg-teal); color:var(--ovg-midnight); box-shadow:0 4px 12px rgba(0,198,235,.2); }
.landing-note { border-left-color:var(--ovg-cyan); }
@media (max-width:850px) {
  .brand-wordmark { width:min(240px,27vw); }
  .header-support { margin-left:auto; }
}
@media (max-width:600px) {
  .logo { max-width:none; order:1; }
  .brand-wordmark { display:none; }
  .brand-mark { display:block; width:46px; }
  .header-support { order:2; margin-left:auto; min-height:44px; padding:.5rem .7rem; font-size:.8rem; }
  .site-nav { order:3; }
  .search-box { order:4; }
}

/* Keep desktop navigation visible while retaining the native mobile disclosure. */
@media (min-width:601px) {
  .site-nav:not([open]) > .nav-links { display:flex; }
}

/* Use one visible desktop navigation and a button-controlled mobile menu. */
.mobile-menu-toggle { display:none; }
@media (max-width:600px) {
  .mobile-menu-toggle {
    display:flex; align-items:center; justify-content:center; min-width:76px; min-height:44px;
    padding:.55rem .75rem; border:1px solid var(--border); border-radius:8px;
    background:#fff; color:var(--primary); font:inherit; font-weight:800; cursor:pointer;
  }
  .mobile-menu-toggle::after { content:"⌄"; margin-left:.4rem; }
  .mobile-menu-toggle[aria-expanded="true"]::after { content:"⌃"; }
  .mobile-menu-toggle:focus-visible { outline:3px solid var(--ovg-focus-on-light); outline-offset:2px; }
  .mobile-menu-toggle + .nav-links { display:none; }
  .mobile-menu-toggle[aria-expanded="true"] + .nav-links { display:grid; }
}

/* On-demand Ko-fi panel in an accessible native dialog. */
.header-support { cursor:pointer; font:inherit; }
.support-dialog {
  width:min(560px,calc(100vw - 2rem));
  max-width:none;
  max-height:calc(100dvh - 2rem);
  margin:auto;
  padding:1rem;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  color:var(--text);
  box-shadow:var(--shadow);
}
.support-dialog::backdrop { background:rgba(7,24,39,.72); }
.support-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.75rem; }
.support-dialog-header h2 { margin:0; font-size:1.25rem; }
.support-dialog-header p { margin:.2rem 0 0; color:var(--muted); font-size:.9rem; }
.support-dialog-close {
  flex:0 0 auto; width:40px; height:40px; border:1px solid var(--border);
  border-radius:8px; background:#fff; color:var(--primary); font-size:1.5rem; line-height:1;
  cursor:pointer;
}
.support-dialog-close:focus-visible { outline:3px solid var(--ovg-focus-on-light); outline-offset:2px; }
.support-dialog iframe {
  display:block; width:100%; height:min(560px,calc(100dvh - 11rem));
  border:0; border-radius:8px; background:#f9f9f9;
}
.support-fallback { margin:.55rem 0 0; font-size:.85rem; text-align:center; }
.support-fallback a { color:var(--accent); font-weight:700; }
@media (max-width:600px) {
  .support-dialog { width:calc(100vw - 1rem); padding:.75rem; }
}


/* Homepage feature sections */
.home-page {
  padding: 1.1rem 0 2rem;
  background: linear-gradient(180deg, #f4f8fd 0%, #eef3f9 100%);
}
.home-content {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.home-note {
  width: min(1150px, calc(100% - 2rem));
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 auto 2rem;
  padding: .75rem 1.1rem;
  border: 1px solid #d7e9fb;
  border-radius: 14px;
  background: #e5f1fd;
  color: #173452;
}
.home-note-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #096ac7;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.home-note p { margin: 0; font-size: .93rem; line-height: 1.5; }
.home-note strong { color: #0c2947; }
.home-section { margin: 0 0 2rem; }
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-inline: .55rem;
}
.home-heading-copy { display: flex; align-items: center; gap: .95rem; min-width: 0; }
.home-section-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #087bdb, #0754af);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(6, 82, 168, .2);
}
.home-section-icon-list { font-size: 2rem; line-height: 1; }
.home-section-heading h2 {
  margin: 0;
  color: #10283f;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.home-section-heading p {
  margin: .3rem 0 0;
  color: #526a82;
  font-size: .95rem;
  line-height: 1.45;
}
.home-view-all {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  padding: .3rem 0;
  color: #0758b4;
  font-weight: 800;
  text-underline-offset: .2em;
}
.home-view-all:hover { color: #003e8c; }
.home-race-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  align-items: stretch;
}
.home-race-card {
  min-width: 0;
  min-height: 326px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e8f0;
  border-left: 3px solid #1682ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 45, 76, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-race-state { border-left-color: #e22a42; }
.home-race-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgba(15, 45, 76, .14);
}
.home-race-photo {
  position: relative;
  height: 140px;
  flex: 0 0 140px;
  overflow: visible;
  background: #dce8f4;
}
.home-race-photo::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 22, 39, .32));
  content: "";
  pointer-events: none;
}
.home-race-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.home-race-card:nth-child(2) .home-race-photo img { object-position: center 42%; }
.home-race-photo figcaption {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  z-index: 1;
  max-width: calc(100% - 7.5rem);
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  font-size: .62rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-race-photo figcaption a { color: inherit; text-decoration: none; }
.home-race-photo figcaption a:hover { text-decoration: underline; }
.home-race-badge {
  position: absolute;
  left: 1rem;
  bottom: -.75rem;
  z-index: 2;
  padding: .32rem .8rem;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: #e4f1ff;
  color: #0758b4;
  font-size: .69rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.home-badge-state { background: #fff0f2; color: #c41c34; }
.home-race-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1rem .9rem;
}
.home-race-body h3 {
  margin: 0;
  color: #10283f;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -.025em;
}
.home-race-district {
  margin: .1rem 0 0 !important;
  color: #18334e !important;
  font-size: .82rem !important;
  font-weight: 800;
}
.home-race-description {
  margin: .55rem 0 .85rem;
  color: #536a82;
  font-size: .86rem;
  line-height: 1.5;
}
.home-card-action {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: auto;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: linear-gradient(110deg, #071f50, #1768a9);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  transition: filter .16s ease, transform .16s ease;
}
.home-card-action:hover { filter: brightness(1.15); }
.home-card-action:active { transform: translateY(1px); }
.home-issues-section { margin-top: .15rem; }
.home-issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.home-issue-card {
  position: relative;
  min-width: 0;
  min-height: 222px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--issue-border);
  border-radius: 13px;
  background: var(--issue-bg);
  box-shadow: 0 7px 20px rgba(15, 45, 76, .07);
}
.home-issue-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-issue-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--issue-bg) 0%, var(--issue-bg) 37%, color-mix(in srgb, var(--issue-bg) 88%, transparent) 57%, color-mix(in srgb, var(--issue-bg) 30%, transparent) 100%);
  content: "";
}
.home-issue-measures { --issue-bg: #effaf6; --issue-border: #54d3a9; --issue-ink: #005e52; --issue-accent: #079d73; }
.home-issue-levies { --issue-bg: #fff7e9; --issue-border: #edb450; --issue-ink: #6c4510; --issue-accent: #a56b19; }
.home-issue-liquor { --issue-bg: #f5efff; --issue-border: #ad81eb; --issue-ink: #4e1d88; --issue-accent: #6326a8; }
.home-issue-content {
  width: 79%;
  min-height: 222px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.1rem .95rem;
}
.home-issue-icon {
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 0 .35rem;
  color: var(--issue-accent);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.home-issue-card h3 {
  margin: 0 0 .35rem;
  color: #10283f;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.home-issue-card p {
  max-width: 290px;
  margin: 0;
  color: #284259;
  font-size: .84rem;
  line-height: 1.45;
}
.home-issue-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  margin-top: auto;
  padding: .55rem .8rem;
  border-radius: 10px;
  background: var(--issue-ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.home-issue-action:hover { filter: brightness(1.18); }
.home-photo-credit,.home-worksheet-credit {
  position: absolute;
  right: .5rem;
  bottom: .42rem;
  z-index: 2;
  max-width: 48%;
  overflow: hidden;
  padding: .16rem .35rem;
  border-radius: 4px;
  background: rgba(7, 24, 39, .62);
  color: #fff;
  font-size: .58rem;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-photo-credit:hover,.home-worksheet-credit:hover { background: rgba(7, 24, 39, .88); text-decoration: underline; }
.home-worksheet-banner {
  position: relative;
  min-height: 146px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: .2rem 0 0;
  isolation: isolate;
  border: 1px solid #153a5c;
  border-radius: 13px;
  background: #082743;
  box-shadow: 0 10px 26px rgba(9, 36, 63, .15);
}
.home-worksheet-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 52%;
}
.home-worksheet-banner::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #082743 0%, rgba(8,39,67,.98) 36%, rgba(8,39,67,.83) 54%, rgba(8,39,67,.12) 100%);
  content: "";
}
.home-worksheet-content {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 2rem;
  color: #fff;
}
.home-worksheet-icon {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid #e5f5ff;
  border-radius: 6px;
  color: #43e6dd;
  font-size: 1.65rem;
  font-weight: 900;
}
.home-worksheet-content h2 {
  margin: 0;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.home-worksheet-content p {
  max-width: 500px;
  margin: .35rem 0 0;
  color: #e1edf8;
  font-size: .92rem;
  line-height: 1.5;
}
.home-worksheet-content > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .7rem 1rem;
  border-radius: 9px;
  background: #fff;
  color: #10283f;
  font-size: .84rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.home-worksheet-content > a:hover { background: #e7f4ff; }
.home-worksheet-credit { right: .6rem; bottom: .45rem; }
.home-page a:focus-visible {
  outline: 3px solid #f09b25;
  outline-offset: 3px;
  position: relative;
  z-index: 3;
}
@media (max-width: 950px) {
  .home-race-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-worksheet-content { padding-inline: 1.35rem; }
}
@media (max-width: 640px) {
  .home-page { padding-top: .8rem; }
  .home-note { align-items: flex-start; margin-bottom: 1.5rem; padding: .8rem; }
  .home-note-icon { margin-top: .05rem; }
  .home-note p { font-size: .87rem; }
  .home-content { width: min(calc(100% - 1.25rem), 460px); }
  .home-section { margin-bottom: 1.55rem; }
  .home-section-heading { align-items: flex-start; gap: .5rem; padding: 0 .1rem; }
  .home-heading-copy { align-items: flex-start; gap: .65rem; }
  .home-section-icon { flex-basis: 36px; width: 36px; height: 40px; font-size: 1.2rem; }
  .home-section-icon-list { font-size: 1.7rem; }
  .home-section-heading h2 { font-size: 1.35rem; }
  .home-section-heading p { max-width: 32ch; font-size: .84rem; }
  .home-view-all { align-self: flex-end; font-size: .77rem; }
  .home-race-grid,.home-issue-grid { grid-template-columns: 1fr; gap: .8rem; }
  .home-race-card { min-height: 0; }
  .home-race-photo { height: 168px; flex-basis: 168px; }
  .home-race-body { min-height: 178px; padding: 1.1rem .95rem .9rem; }
  .home-issue-card,.home-issue-content { min-height: 226px; }
  .home-issue-content { width: 82%; padding: 1rem; }
  .home-issue-photo { width: 72%; }
  .home-issue-card::before { background: linear-gradient(90deg, var(--issue-bg) 0%, var(--issue-bg) 40%, color-mix(in srgb, var(--issue-bg) 82%, transparent) 65%, color-mix(in srgb, var(--issue-bg) 24%, transparent) 100%); }
  .home-worksheet-banner { min-height: 300px; align-items: stretch; }
  .home-worksheet-photo { object-position: 68% center; }
  .home-worksheet-banner::before { background: linear-gradient(90deg, rgba(8,39,67,.97) 0%, rgba(8,39,67,.88) 60%, rgba(8,39,67,.5) 100%); }
  .home-worksheet-content { grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: .85rem; padding: 1.25rem; }
  .home-worksheet-content h2 { font-size: 1.22rem; }
  .home-worksheet-content p { font-size: .88rem; }
  .home-worksheet-content > a { grid-column: 2; justify-self: start; margin-top: .25rem; }
  .home-worksheet-credit { max-width: 45%; }
}
@media (max-width: 390px) {
  .home-view-all { max-width: 6.8rem; }
  .home-worksheet-content { grid-template-columns: 1fr; }
  .home-worksheet-content > a { grid-column: 1; }
  .home-worksheet-icon { width: 40px; height: 44px; }
  .home-photo-credit { max-width: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-race-card,.home-card-action { transition: none; }
  .home-race-card:hover { transform: none; }
}


/* Reference proportion pass and shared internal-page frame */
header nav { min-height:56px; padding:.4rem 1rem; gap:.35rem .65rem; }
.brand-wordmark { width:min(205px,22vw); }
.nav-links a { padding:.5rem .55rem; font-size:.8rem; }
.search-box input { width:210px; min-height:38px; }
.header-support { min-height:38px; padding:.45rem .7rem; }
.landing-hero { min-height:314px; background-position:center 56%; }
.landing-hero-inner { width:min(1048px,calc(100% - 2rem)); display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding:1.6rem 0; }
.landing-hero-copy { flex:1 1 auto; min-width:0; }
.landing-kicker { margin-bottom:.65rem; font-size:.82rem; letter-spacing:.04em; }
.landing-kicker:before { display:none; }
.landing-hero h1 { max-width:700px; font-size:clamp(2.5rem,4.5vw,3.35rem); line-height:.98; letter-spacing:-.045em; }
.landing-hero h1 span { color:var(--ovg-cyan); }
.landing-hero-copy > p:not(.landing-kicker) { max-width:640px; margin:.6rem 0 0; font-size:.98rem; line-height:1.45; }
.landing-actions { gap:.55rem; margin-top:1rem; }
.landing-actions a { min-height:44px; padding:.58rem .85rem; border-radius:9px; font-size:.82rem; }
.landing-actions .primary-action { background:linear-gradient(110deg,#00c6eb,#38e6d6); color:#071827; }
.hero-location { flex:0 0 195px; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:.3rem .55rem; color:#fff; text-transform:uppercase; font-size:.8rem; line-height:1.5; }
.hero-location p { margin:0; }
.hero-location strong { font-size:.86rem; }
.hero-location-pin { color:#00d2ee; font-size:1.35rem; font-weight:900; }
.hero-location-map { grid-column:2; width:100%; max-height:112px; overflow:visible; }
.home-page { padding:1rem 0 1.5rem; }
.home-content,.home-note { width:min(1048px,calc(100% - 5.5rem)); }
.home-note { min-height:50px; margin-bottom:1.75rem; padding:.6rem 1rem; border-radius:13px; }
.home-note p { font-size:.88rem; }
.home-section { margin-bottom:1.75rem; }
.home-section-heading { margin-bottom:.7rem; padding-inline:.55rem; }
.home-heading-copy { gap:.8rem; }
.home-section-icon { flex-basis:40px; width:40px; height:48px; border-radius:4px; }
.home-section-icon svg { display:block; width:100%; height:100%; }
.home-section-heading h2 { font-size:1.7rem; }
.home-section-heading p { margin-top:.15rem; font-size:.9rem; }
.home-race-grid,.home-issue-grid { gap:.8rem; }
.home-race-card { min-height:326px; border-left-width:2px; border-radius:11px; }
.home-race-photo { height:126px; flex-basis:126px; }
.home-race-body { padding:1.05rem .9rem .85rem; }
.home-race-body h3 { font-size:1.04rem; }
.home-race-description { margin:.5rem 0 .7rem; font-size:.84rem; }
.home-card-action { min-height:40px; border-radius:10px; }
.home-issue-card,.home-issue-content { min-height:220px; }
.home-issue-icon { width:34px; height:39px; margin-bottom:.25rem; }
.home-issue-icon svg { display:block; width:100%; height:100%; }
.home-issue-card h3 { font-size:.98rem; }
.home-issue-card p { font-size:.82rem; }
.home-issue-action { min-height:39px; padding:.5rem .75rem; }
.home-worksheet-banner { min-height:140px; border-radius:11px; }
.home-worksheet-content { padding:1.1rem 1.5rem; }
.home-worksheet-icon { border:0; width:46px; height:52px; }
.home-worksheet-icon svg { width:100%; height:100%; }
.home-worksheet-content h2 { font-size:1.28rem; }
.home-worksheet-content p { margin-top:.25rem; font-size:.88rem; }
.home-page a:focus-visible { outline-color:#f2a900; }
.page-shell { width:100%; max-width:none; margin:0; padding:1.35rem clamp(1rem,4vw,3rem) 2rem; background:linear-gradient(180deg,#f2f7fc 0%,#eaf1f8 100%); }
.page-content { width:min(1160px,100%); margin:0 auto; padding:clamp(1.2rem,3vw,2.5rem); border:1px solid #e0e8f0; border-radius:16px; background:#fff; box-shadow:0 10px 32px rgba(14,45,80,.07); }
.page-content > h1:first-child { margin:0 0 .55rem; color:#10283f; font-size:clamp(2rem,3.5vw,2.8rem); }
.page-content > h1:first-child + p { max-width:76ch; color:#526a82; }
.page-content h2 { margin:1.8rem 0 .7rem; color:#10283f; font-size:clamp(1.3rem,2vw,1.7rem); }
.page-content h3 { color:#10283f; }
.page-content p,.page-content li { line-height:1.65; }
.page-content p { margin:.65rem 0; }
.page-content a { color:#0758b4; text-underline-offset:.18em; }
.page-content a:hover { color:#003e8c; }
.page-content .primary-action,.page-content button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:.6rem .95rem; border:1px solid #0758b4; border-radius:9px; background:#0758b4; color:#fff; font:inherit; font-size:.9rem; font-weight:800; text-decoration:none; cursor:pointer; }
.page-content button:hover,.page-content .primary-action:hover { background:#003e8c; color:#fff; }
.page-content .candidate-card,.page-content .measure-card,.page-content .levy-row { margin:1rem 0; padding:clamp(1rem,2vw,1.5rem); border:1px solid #dce6ef; border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(14,45,80,.06); }
.page-content .candidate-card h3,.page-content .measure-card h2 { margin-top:0; }
.page-content .candidate-card h4 { margin:1.35rem 0 .35rem; color:#0b5cad; font-size:1rem; }
.page-content .worksheet-check { border:1px solid #cfe0ef; border-radius:10px; background:#f7fbff; }
.page-content .verification-badge { padding:.35rem .7rem; border-radius:999px; font-size:.77rem; }
.page-content blockquote { margin:.8rem 0; padding:1rem 1.1rem; border-left:4px solid #00bddb; border-radius:0 9px 9px 0; background:#f3f8fc; }
.page-content ul,.page-content ol { padding-left:1.35rem; }
.page-content li { margin:.35rem 0; }
.page-content .source-list { margin-top:1rem; padding-top:.8rem; border-top:1px solid #e3ebf2; }
.page-content .party-tag { margin:.25rem .25rem 0 0; }
.page-content .measure-position-list > li { padding:.75rem .9rem; border:1px solid #e0e8f0; border-radius:9px; background:#f8fbfe; }
.page-content .levies-table-scroll { margin:1rem 0 1.5rem; border-radius:10px; }
.page-content table.levies { min-width:720px; font-size:.88rem; }
.page-content table.levies th { background:#0c3454; }
.page-content table.levies tbody tr:nth-child(even) { background:#f4f8fc; }
.page-content table.levies td { padding:.7rem .75rem; }
.measure-choice-yes { border-left:5px solid #14956e!important; background:#f2faf6!important; }
.measure-choice-no { border-left:5px solid #ca5360!important; background:#fff6f6!important; }
.directory-intro { margin-bottom:1.35rem!important; color:#526a82; }
.directory-count { display:inline-flex; align-items:center; gap:.45rem; margin:.2rem 0 1rem; padding:.35rem .7rem; border-radius:999px; background:#eaf3fb; color:#214967; font-size:.82rem; font-weight:800; }
.directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1rem; }
.directory-card { min-width:0; display:flex; flex-direction:column; padding:1.2rem; border:1px solid #dce6ef; border-top:3px solid #087bff; border-radius:12px; background:#fff; box-shadow:0 5px 18px rgba(14,45,80,.06); }
.directory-card h2 { margin:0 0 .5rem!important; font-size:1.14rem!important; line-height:1.3; }
.directory-card p { margin:.3rem 0; color:#526a82; font-size:.9rem; }
.directory-card .directory-meta { color:#214967; font-size:.82rem; font-weight:800; }
.directory-card .directory-action { display:inline-flex; align-items:center; gap:.5rem; margin-top:auto; padding-top:.9rem; font-weight:800; }
.directory-grid-measures { grid-template-columns:repeat(2,minmax(0,1fr)); }
.directory-grid-measures .directory-card { border-top-color:#00a88f; }
.date-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.date-card { margin:0!important; padding:1.1rem 1.2rem!important; border-left:4px solid #00bddb!important; }
.date-card h2 { margin:0 0 .3rem!important; }
.date-card strong { color:#0758b4; }
.worksheet-toolbar { display:flex; flex-wrap:wrap; gap:.65rem; margin:1rem 0; }
.worksheet-count-card { display:inline-flex; align-items:center; gap:.5rem; margin:1rem 0!important; padding:.55rem .9rem; border-radius:10px; background:#eaf5fc; color:#123b5a; font-size:1rem; }
#worksheet-list:empty { display:none; }
#worksheet-list > ul { display:grid; gap:.65rem; padding:0; list-style:none; }
#worksheet-list > ul li { margin:0; padding:.8rem 1rem; border:1px solid #dce6ef; border-radius:9px; background:#f8fbfe; }
#worksheet-list > p { padding:1.1rem; border:1px dashed #b7cddd; border-radius:10px; background:#f8fbfe; }
@media (max-width:950px) {
  .landing-hero { min-height:350px; }
  .landing-hero-inner { width:min(1048px,calc(100% - 2.5rem)); }
  .hero-location { flex-basis:150px; }
  .directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-content,.home-note { width:min(1048px,calc(100% - 2.5rem)); }
}
@media (max-width:760px) {
  header nav { min-height:58px; }
  .brand-wordmark { width:min(190px,31vw); }
  .landing-hero-inner { display:block; }
  .landing-hero { min-height:0; }
  .hero-location { display:none; }
  .landing-hero-copy > p:not(.landing-kicker) { max-width:60ch; }
  .landing-actions { max-width:650px; }
  .home-content,.home-note { width:min(100% - 1.25rem,620px); }
  .home-race-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-issue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-shell { padding:1rem .75rem 1.5rem; }
  .page-content { padding:1.15rem; border-radius:12px; }
}
@media (max-width:600px) {
  .landing-hero-inner { width:calc(100% - 1.5rem); padding:1.65rem 0; }
  .landing-hero h1 { font-size:clamp(2.25rem,12vw,3.1rem); }
  .landing-hero-copy > p:not(.landing-kicker) { font-size:.93rem; }
  .landing-actions a { min-height:44px; flex:1 1 calc(50% - .5rem); }
  .landing-actions .primary-action { flex-basis:100%; }
  .home-section-heading { align-items:flex-start; }
  .home-section-heading h2 { font-size:1.4rem; }
  .home-section-heading p { font-size:.83rem; }
  .home-view-all { font-size:.75rem; }
  .home-race-grid,.home-issue-grid,.directory-grid,.directory-grid-measures,.date-card-grid { grid-template-columns:1fr; }
  .home-race-photo { height:168px; flex-basis:168px; }
  .page-content > h1:first-child { font-size:2rem; }
  .page-content .candidate-card,.page-content .measure-card { padding:1rem; }
  .home-worksheet-banner { min-height:250px; }
  .home-worksheet-content { grid-template-columns:auto minmax(0,1fr); padding:1.2rem; }
}
@media (max-width:390px) {
  .home-view-all { max-width:5.5rem; text-align:right; }
  .home-section-heading { gap:.3rem; }
  .home-heading-copy { gap:.55rem; }
  .home-section-icon { flex-basis:34px; width:34px; height:40px; }
}

/* Let the homepage treatment span the viewport; scope internal content frames separately. */
main > .home-page { width:100%; max-width:none; margin:0; padding:1rem 0 1.5rem; }
main > .page-shell:not(.landing-hero):not(.landing-shell) { width:100%; max-width:none; margin:0; padding:1.35rem clamp(1rem,4vw,3rem) 2rem; }
.directory-callout { margin-top:1.25rem; padding:1.2rem 1.35rem; border:1px solid #cfe0ef; border-left:4px solid #00bddb; border-radius:11px; background:#f5faff; }
.directory-callout h2 { margin:0 0 .3rem!important; font-size:1.2rem!important; }
.directory-callout p { margin:.3rem 0; }
.content-eyebrow { margin:0 0 .25rem!important; color:#0876bb!important; font-size:.74rem; font-weight:850; letter-spacing:.09em; line-height:1.35!important; text-transform:uppercase; }
.content-page-heading { padding-bottom:1.25rem; border-bottom:1px solid #e4edf5; }
.content-page-heading .directory-intro { max-width:68ch; font-size:1.02rem; }
.levies-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; margin:1.1rem 0; }
.levy-summary-card { display:flex; align-items:center; gap:.8rem; min-height:82px; padding:1rem 1.1rem; border:1px solid #dce7f0; border-radius:12px; background:linear-gradient(135deg,#f8fbff,#eef6fc); }
.levy-summary-number { color:#0b5cad; font-size:clamp(1.7rem,3vw,2.25rem); font-weight:900; line-height:1; }
.levy-summary-label { color:#36536d; font-size:.89rem; font-weight:750; line-height:1.3; }
.levy-summary-change { border-color:#efc0c7; background:linear-gradient(135deg,#fffafb,#fff0f2); }
.levy-summary-change .levy-summary-number { color:#c3223b; }
.levy-summary-renewal { border-color:#bde8da; background:linear-gradient(135deg,#f9fffc,#eaf8f2); }
.levy-summary-renewal .levy-summary-number { color:#08795d; }
.levy-explainer { display:flex; align-items:flex-start; gap:.8rem; margin:1.1rem 0 1.6rem; padding:.95rem 1rem; border:1px solid #cfe4f5; border-radius:12px; background:#eff7ff; color:#294961; }
.levy-explainer p { margin:0; font-size:.9rem; }
.levy-explainer strong { color:#102d48; }
.levy-explainer-icon { display:grid; flex:0 0 28px; width:28px; height:28px; place-items:center; border-radius:50%; background:#0b65bd; color:#fff; font-weight:900; }
.levy-estimator { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,290px); align-items:center; gap:.6rem 1.25rem; margin:1.2rem 0 1.6rem; padding:clamp(1rem,2.4vw,1.45rem); border:1px solid #c9deee; border-radius:14px; background:linear-gradient(125deg,#f3f9ff,#f8fcff 65%,#effbf8); }
.levy-estimator-copy { grid-row:span 2; }
.levy-estimator-copy h2 { margin:.1rem 0 .3rem!important; font-size:clamp(1.25rem,2vw,1.6rem)!important; }
.levy-estimator-copy > p:last-child { max-width:70ch; margin:.25rem 0 0; color:#49637c; font-size:.88rem; }
.levy-value-field { display:grid; gap:.35rem; color:#173650; font-size:.86rem; font-weight:850; }
.levy-value-input-wrap { display:flex; align-items:center; gap:.4rem; min-height:44px; padding:0 .75rem; border:1px solid #b8cddd; border-radius:8px; background:#fff; color:#49637c; }
.levy-value-input-wrap:focus-within { outline:3px solid #00a9d6; outline-offset:2px; }
.levy-value-input-wrap input { width:100%; min-width:0; min-height:40px; border:0; outline:0; background:transparent; color:#10283f; font:inherit; font-size:1rem; }
.levy-estimator-help,.levy-estimator-status { grid-column:1/-1; margin:0; color:#526a82; font-size:.79rem; line-height:1.5; }
.levy-estimator-status { color:#315670; font-weight:750; }
.levy-estimator-help a { font-weight:800; }
.levy-personal-impact { margin:1.5rem 0; padding:clamp(1rem,2.5vw,1.5rem); border:1px solid #cfe0ef; border-left:4px solid #00bddb; border-radius:12px; background:#f7fbff; }
.levy-personal-impact h2 { margin:.2rem 0 .55rem!important; }
.levy-personal-impact > p:not(.content-eyebrow) { margin:.45rem 0; }
.levy-district-note { padding:.7rem .8rem; border-radius:8px; background:#fff; color:#36536d; }
.levy-estimator-single { display:block; margin:1rem 0 0; padding:1rem; background:#fff; }
.levy-estimator-single .levy-value-field { max-width:340px; }
.levy-personal-estimate { margin:.8rem 0; padding:.85rem 1rem; border:1px solid #b9e6db; border-radius:9px; background:#effaf6; color:#075b48; font-weight:850; line-height:1.55; }
.levy-estimator-single .levy-estimator-help { margin:.5rem 0; }
.levy-estimator-single .levy-estimator-status { margin-top:.5rem; }
.levy-group { margin:1.5rem 0; padding:clamp(.85rem,2vw,1.35rem); border:1px solid #dce6ef; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(14,45,80,.05); }
.levy-group-changes { border-top:4px solid #e33951; }
.levy-group-renewals { border-top:4px solid #14a47a; }
.levy-group-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.45rem; }
.levy-group-heading h2 { margin:0!important; font-size:clamp(1.3rem,2.2vw,1.7rem)!important; }
.levy-group-heading h2 span { color:#72869a; font-size:.77em; }
.levy-group-tag { flex:0 0 auto; padding:.35rem .65rem; border-radius:999px; background:#fff0f2; color:#b62539; font-size:.76rem; font-weight:850; }
.levy-group-renewals .levy-group-tag { background:#eaf8f2; color:#08795d; }
.levy-directory-table { min-width:1120px!important; }
.levy-directory-table th { white-space:nowrap; }
.levy-directory-table td { vertical-align:middle; }
.levy-directory-table tr:hover { background:#eef6fc!important; }
.levy-issue-link { display:inline-flex; align-items:center; min-height:34px; padding:.3rem .6rem; border-radius:7px; background:#e8f3ff; font-weight:850; text-decoration:none; white-space:nowrap; }
.levy-type-pill { display:inline-block; padding:.22rem .5rem; border-radius:999px; background:#fff0f2; color:#a52036; font-size:.76rem; font-weight:800; white-space:nowrap; }
.levy-details-link { font-weight:800; text-decoration:none; white-space:nowrap; }
.levy-impact-summary { display:block; max-width:38ch; margin-top:.35rem; color:#49637c; font-size:.82rem; line-height:1.45; }
.levy-estimate-row { display:block; max-width:38ch; margin-top:.45rem; padding:.45rem .55rem; border-left:3px solid #12a683; border-radius:0 6px 6px 0; background:#effaf6; color:#075b48; font-size:.78rem; font-weight:800; line-height:1.45; }
.levy-inline-details { min-width:180px; }
.levy-inline-details summary { width:max-content; max-width:100%; color:#0758b4; cursor:pointer; font-weight:800; line-height:1.4; }
.levy-inline-details summary:hover { text-decoration:underline; }
.levy-inline-details summary:focus-visible { outline:3px solid #00a9d6; outline-offset:3px; border-radius:3px; }
.levy-inline-panel { position:relative; z-index:1; width:min(410px,70vw); margin-top:.6rem; padding:.85rem; border:1px solid #cadbea; border-radius:10px; background:#fff; box-shadow:0 8px 24px rgba(14,45,80,.16); white-space:normal; }
.levy-inline-panel p { margin:.1rem 0 .6rem; color:#294961; font-size:.83rem; line-height:1.5; }
.levy-inline-panel ul { margin:.5rem 0 .7rem; padding-left:1.2rem; }
.levy-inline-panel li { margin:.35rem 0; font-size:.8rem; line-height:1.4; }
.levy-inline-panel a { white-space:normal; }
.levies-directory .levy-sources { margin-top:1.5rem; }
.levies-directory .levy-sources ul { margin:.6rem 0; }
.levies-directory .levy-sources .directory-action { margin-top:.45rem; }
.levy-profile { max-width:860px; margin:0 auto; }
.levy-profile > h1:first-of-type { margin-top:.5rem; }
.levy-profile .directory-meta { color:#567089; font-size:.87rem; font-weight:750; }
.levy-facts { display:grid; grid-template-columns:minmax(110px,.65fr) 2fr; margin:1.2rem 0; overflow:hidden; border:1px solid #dce6ef; border-radius:12px; }
.levy-facts dt,.levy-facts dd { margin:0; padding:.75rem .9rem; border-bottom:1px solid #e7eef4; }
.levy-facts dt { background:#f2f7fb; color:#34536c; font-weight:800; }
.levy-facts dd { color:#19344c; }
.levy-facts dt:last-of-type,.levy-facts dd:last-of-type { border-bottom:0; }
.page-content > h1:first-child { letter-spacing:-.04em; }
.page-content > h1:first-child,.content-page-heading h1 { margin:0 0 .55rem; color:#10283f; font-size:clamp(2rem,3.5vw,2.8rem); line-height:1.08; letter-spacing:-.04em; }
.page-content > h1:first-child::after,.content-page-heading h1::after { display:block; width:3rem; height:4px; margin-top:.7rem; border-radius:3px; background:linear-gradient(90deg,#087bff,#00c6eb,#53edcb); content:""; }
.page-content .candidate-profile > h1:first-child::after,.page-content .levy-profile > h1:first-child::after { display:none; }
.content-page-heading > p:not(.content-eyebrow) { max-width:76ch; color:#526a82; }
.measure-profile,.race-profile,.levy-profile,.liquor-page,.voting-page,.sample-ballot-page,.about-page,.worksheet-page { max-width:100%; }
.measure-profile > h2,.race-profile > h2,.voting-page > h2,.sample-ballot-page > h2,.about-page > h2 { padding-top:.5rem; border-top:1px solid #e5edf4; }
.measure-profile > .measure-card { margin:1rem 0; }
.measure-profile > section { margin-top:1.4rem; }
.liquor-page > section.measure-card { margin:1rem 0; padding:clamp(1rem,2.4vw,1.5rem); border-left:4px solid #682db0; background:linear-gradient(135deg,#fff 0%,#f8f4ff 100%); }
.liquor-page > section.measure-card h2 { margin:0 0 .65rem; }
.liquor-page > section.measure-card h3 { margin:1rem 0 .35rem; }
.sample-ballot-page > header .primary-action { margin:.3rem 0 .7rem; }
.about-page > h2 { margin-top:1.65rem; }
.voting-page > h2 { margin-top:1.65rem; }
.voting-page > ul,.sample-ballot-page > ul,.about-page > ul { padding:1rem 1.1rem 1rem 2.2rem!important; border:1px solid #e1eaf2; border-radius:11px; background:#f8fbfe; }
.worksheet-page #worksheet-list { max-width:780px; }
.worksheet-page .worksheet-toolbar button:first-child { background:#0758b4; }
.race-profile > h1:first-of-type,.measure-profile > h1:first-of-type { margin-top:.5rem; }
.page-content section[aria-labelledby] { scroll-margin-top:1rem; }
.page-content :focus-visible { outline:3px solid #00a9d6; outline-offset:3px; }
@media (max-width:760px) {
  .levies-summary { grid-template-columns:1fr; gap:.55rem; }
  .levy-summary-card { min-height:66px; }
  .levy-group-heading { align-items:flex-start; }
  .levy-group-tag { margin-top:.15rem; }
  .levy-facts { grid-template-columns:minmax(92px,.7fr) 1.5fr; }
  .levy-inline-panel { width:min(340px,72vw); }
  .levy-estimator { grid-template-columns:1fr; }
  .levy-estimator-copy { grid-row:auto; }
  .levy-estimator-help,.levy-estimator-status { grid-column:1; }
}
@media (max-width:460px) {
  .levy-group-heading { display:block; }
  .levy-group-tag { display:inline-block; margin-top:.55rem; }
  .levy-facts dt,.levy-facts dd { padding:.65rem .7rem; }
  .levy-inline-panel { width:min(290px,70vw); }
  .levy-personal-impact,.levy-estimator-single { padding:.8rem; }
}
@media (max-width:760px) {
  main > .page-shell:not(.landing-hero):not(.landing-shell) { padding:1rem .75rem 1.5rem; }
}

.hero-location-map-wrap { position:relative; grid-column:2; width:100%; max-width:108px; }
.hero-location-map { display:block; width:100%; max-height:112px; object-fit:contain; filter:grayscale(1) brightness(0) invert(1); opacity:.84; }
.hero-location-region { position:absolute; top:11%; right:6%; width:14%; aspect-ratio:1; border-radius:50% 50% 50% 0; background:#00c6eb; border:2px solid #f8fafc; transform:rotate(-45deg); box-shadow:0 0 0 3px rgba(0,198,235,.18); }
.hero-location-map-wrap a { display:block; margin-top:.15rem; color:#e7f4ff; font-size:.56rem; line-height:1.2; text-decoration:underline; text-underline-offset:2px; }

