:root {
  --blue: #003264;
  --blue-dark: #001f42;
  --blue-soft: #eaf1f7;
  --yellow: #ffd719;
  --yellow-soft: #fff7c7;
  --ink: #152234;
  --muted: #657180;
  --line: #dbe2e9;
  --paper: #f7f8f7;
  --white: #fff;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(0, 40, 80, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; background: white; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.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; }

.site-header {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 80px); background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,50,100,.1); position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 147px; height: auto; image-rendering: auto; }
.brand span { border-left: 1px solid var(--line); padding-left: 18px; color: var(--blue); font-weight: 700; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; font-weight: 700; font-size: .94rem; }
.nav-cta { background: var(--blue); color: white; padding: 11px 18px; border-radius: 8px; }

.hero {
  min-height: 610px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  background: var(--yellow); overflow: hidden; position: relative;
}
.hero::after { content: ""; position: absolute; inset: auto -3% -110px 42%; height: 220px; background: rgba(255,255,255,.15); transform: rotate(-5deg); }
.hero-copy { padding: clamp(64px, 8vw, 110px) clamp(28px, 7vw, 110px); position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, h2 { font-family: "Roboto Slab", Georgia, serif; color: var(--blue); letter-spacing: -.035em; }
.hero h1 { margin: 0; font-size: clamp(3.6rem, 7.1vw, 7.2rem); line-height: .91; }
.hero h1 em { color: white; font-style: normal; text-shadow: 0 3px 0 rgba(0,50,100,.06); }
.hero-lead { max-width: 640px; margin: 28px 0 0; font-size: clamp(1.05rem, 1.45vw, 1.3rem); color: #26384b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; border: 0; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 30px rgba(0,50,100,.2); }
.button-ghost { border: 2px solid rgba(0,50,100,.24); color: var(--blue); background: rgba(255,255,255,.18); }
.button-outline { width: 100%; background: white; color: var(--blue); border: 1px solid var(--line); }
.button:hover { transform: translateY(-1px); }
.election-date { display: flex; align-items: center; gap: 14px; margin-top: 38px; color: var(--blue); }
.calendar-icon { width: 48px; height: 48px; display: grid; place-items: center; background: white; border-radius: 9px; font-weight: 900; box-shadow: 0 7px 16px rgba(0,50,100,.12); }
.election-date strong, .election-date small { display: block; }
.election-date small { margin-top: 2px; opacity: .7; }

.hero-art { background: var(--blue); clip-path: polygon(19% 0, 100% 0, 100% 100%, 0 100%); position: relative; min-height: 610px; }
.hero-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 18px 18px; opacity: .28; }
.sun { position: absolute; width: 340px; height: 340px; right: -80px; top: -90px; border: 62px solid var(--yellow); border-radius: 50%; opacity: .92; }
.hero-map { position: absolute; inset: 95px -30px 0 40px; width: 90%; height: 70%; overflow: visible; }
.hero-map path { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.7); stroke-width: 2.4; stroke-linejoin: round; }
.hero-art > p { position: absolute; right: 10%; bottom: 11%; color: white; margin: 0; font: 800 clamp(2rem, 4vw, 4rem)/.97 "Roboto Slab", serif; text-align: right; }
.hero-pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--yellow); box-shadow: 0 0 0 8px rgba(255,215,25,.15); }
.hero-pin span { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); position: absolute; left: 9px; top: 9px; }
.pin-a { left: 38%; top: 33%; }.pin-b { left: 63%; top: 48%; }.pin-c { left: 49%; top: 64%; }

.stats-wrap { max-width: 1200px; margin: -34px auto 0; padding: 0 24px; position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 116px; background: white; display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; border-right: 1px solid var(--line); box-shadow: var(--shadow); }
.stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat:last-child { border-radius: 0 var(--radius) var(--radius) 0; border: 0; }
.stat strong { color: var(--blue); font: 800 2rem "Roboto Slab", serif; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat-note { background: var(--blue); color: white; border-color: var(--blue); }
.stat-note span { color: var(--yellow); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.stat-note small { color: white; margin-top: 8px; }

.directory { max-width: 1440px; margin: 0 auto; padding: 110px clamp(20px, 5vw, 72px) 120px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, 500px); align-items: end; gap: 40px; }
.section-heading h2, .voting-intro h2 { font-size: clamp(2.4rem, 4vw, 4.1rem); line-height: 1.02; margin: 0; }
.section-heading > p { color: var(--muted); margin: 0 0 4px; font-size: 1.05rem; }
.filter-panel { margin: 42px 0 28px; }
.search-field { height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,50,100,.06); }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,50,100,.1); }
.search-field svg { width: 25px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.search-field input { flex: 1; border: 0; outline: 0; min-width: 0; font-size: 1.06rem; background: transparent; }
.search-field kbd { color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: .78rem; }
.filter-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.chip-group { display: flex; gap: 8px; flex: none; }
.chip { border: 1px solid var(--line); color: #425064; background: white; padding: 8px 13px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.chip.active { color: white; border-color: var(--blue); background: var(--blue); }
.types .chip.active { color: var(--blue); background: var(--yellow); border-color: var(--yellow); }

.directory-layout { display: grid; grid-template-columns: minmax(420px, .93fr) minmax(470px, 1.07fr); gap: 26px; align-items: start; }
.map-card { background: #eaf0f2; border: 1px solid #d4dfe3; border-radius: var(--radius); overflow: hidden; position: sticky; top: 98px; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 10px; }
.map-toolbar strong, .map-toolbar small { display: block; }.map-toolbar strong { color: var(--blue); }.map-toolbar small { color: var(--muted); margin-top: 2px; }
.icon-button { width: 38px; height: 38px; border: 1px solid rgba(0,50,100,.15); border-radius: 8px; background: white; color: var(--blue); cursor: pointer; }
#region-map { display: block; width: 100%; min-height: 520px; padding: 15px; }
.district-shape { fill: rgba(255,255,255,.58); stroke: white; stroke-width: 3; transition: fill .2s, opacity .2s; }
.district-shape.is-muted { opacity: .28; }
.district-label { fill: #708090; font-size: 18px; font-weight: 900; text-anchor: middle; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.map-point { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: opacity .2s, transform .2s; }
.map-point:hover, .map-point:focus { transform: scale(1.55); outline: 0; }
.map-point.is-hidden { opacity: 0; pointer-events: none; }
.map-point circle.outer { fill: white; stroke: rgba(0,50,100,.2); stroke-width: 2; }
.map-point circle.inner.kdu { fill: var(--blue); }.map-point circle.inner.coalition { fill: #e4b900; }.map-point circle.inner.local { fill: #31a890; }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 13px 20px 18px; color: var(--muted); font-size: .76rem; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }.dot-kdu { background: var(--blue); }.dot-coalition { background: #e4b900; }.dot-local { background: #31a890; }

.results-panel { min-width: 0; }
.results-head { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); }
.results-head p { margin: 0; }.results-head strong { color: var(--blue); }
.results-head label { font-size: .8rem; display: flex; align-items: center; gap: 8px; }
.results-head select { border: 0; background: transparent; color: var(--blue); font-weight: 700; outline: 0; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.slate-card { min-height: 292px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.slate-card:hover { transform: translateY(-3px); border-color: #bdcbd7; box-shadow: 0 15px 32px rgba(0,50,100,.09); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.type-badge, .district-badge { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.type-badge { padding: 5px 8px; border-radius: 5px; color: var(--blue); background: var(--yellow-soft); }
.type-badge.local { background: #dff7f1; color: #147563; }.type-badge.kdu { background: var(--blue); color: white; }
.district-badge { color: #8993a0; }
.slate-card h3 { margin: 18px 0 4px; color: var(--blue); font: 800 1.45rem/1.1 "Roboto Slab", serif; }
.slate-name { min-height: 42px; margin: 0; color: var(--ink); font-weight: 600; font-size: .88rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 15px; color: var(--muted); font-size: .77rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.candidate-preview { display: flex; align-items: center; gap: 7px; margin-top: 17px; min-height: 34px; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; margin-right: -11px; border-radius: 50%; border: 2px solid white; background: var(--blue-soft); color: var(--blue); font-size: .65rem; font-weight: 900; }
.candidate-preview small { margin-left: 13px; color: var(--muted); }
.card-link { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--blue); font-weight: 900; cursor: pointer; text-align: left; }
.card-link span { font-size: 1.3rem; line-height: 1; transition: transform .2s; }.slate-card:hover .card-link span { transform: translateX(3px); }
#load-more { margin-top: 14px; }
#load-more[hidden] { display: none; }
.empty-state { grid-column: 1 / -1; padding: 70px 25px; text-align: center; border: 1px dashed #b9c5cf; border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.5); }
.empty-state strong { color: var(--blue); display: block; font: 700 1.4rem "Roboto Slab", serif; margin-bottom: 6px; }

.voting-guide { background: var(--blue); color: white; padding: clamp(70px, 9vw, 120px) max(24px, calc((100vw - 1200px) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); }
.voting-guide .eyebrow { color: var(--yellow); }
.voting-intro h2 { color: white; }
.voting-intro > p:not(.eyebrow) { color: #c8d6e3; font-size: 1.05rem; }
.voting-intro a { display: inline-block; color: var(--yellow); font-weight: 700; margin-top: 12px; }
.voting-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.voting-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 22px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.voting-steps li > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); font-weight: 900; }
.voting-steps strong { font-size: 1.07rem; }.voting-steps p { margin: 5px 0 0; color: #b8c9d7; font-size: .9rem; }

footer { background: #00162f; color: white; padding: 55px clamp(24px, 7vw, 100px) 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 60px; }
.footer-brand img { filter: brightness(0) invert(1); width: 150px; }.footer-brand p { color: #9fb1c1; font-size: .86rem; }
.footer-links { display: flex; align-items: flex-start; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }.footer-links a { color: #ced9e3; font-size: .88rem; }
.legal { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #8299ad; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }.legal p { margin: 0; }

dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius-lg); padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(0,20,45,.35); overflow: hidden; }
dialog::backdrop { background: rgba(0,25,55,.68); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 18px; top: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blue); font-size: 1.6rem; cursor: pointer; }
.detail-hero { padding: 34px 72px 30px 34px; background: var(--yellow); }
.detail-hero .type-badge { display: inline-block; margin-bottom: 13px; }.detail-hero h2 { font-size: 2.4rem; margin: 0; }.detail-hero > p { margin: 7px 0 0; font-weight: 700; }
.detail-metrics { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.detail-metrics div { padding: 16px; border-right: 1px solid var(--line); }.detail-metrics div:last-child { border: 0; }.detail-metrics strong, .detail-metrics span { display: block; }.detail-metrics strong { color: var(--blue); }.detail-metrics span { color: var(--muted); font-size: .72rem; }
.candidate-list-wrap { padding: 25px 30px 32px; max-height: 52vh; overflow: auto; }
.candidate-list-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }.candidate-list-head h3 { margin: 0; color: var(--blue); font-family: "Roboto Slab", serif; }.candidate-list-head span { color: var(--muted); font-size: .8rem; }
.candidate-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.candidate-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 9px; }
.candidate-list li:nth-child(odd) { background: #f5f7f8; }.candidate-list li.is-kdu { background: var(--yellow-soft); }
.candidate-number { color: var(--muted); text-align: right; font-size: .8rem; }.candidate-name { font-weight: 800; color: var(--blue); }.candidate-info { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }.kdu-mark { color: var(--blue); font-size: .68rem; font-weight: 900; text-transform: uppercase; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1.1fr .9fr; }.hero-art > p { right: 6%; }
  .directory-layout { grid-template-columns: 1fr; }.map-card { position: relative; top: auto; }.results { grid-template-columns: repeat(3, 1fr); }
  #region-map { min-height: 430px; height: 56vw; max-height: 590px; }
}
@media (max-width: 850px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; }.hero-copy { padding-bottom: 70px; }.hero-art { display: none; }
  .stats-wrap { grid-template-columns: repeat(2,1fr); margin-top: 0; padding: 0; }.stat { border-bottom: 1px solid var(--line); border-radius: 0!important; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }.filter-row { flex-direction: column; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .voting-guide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { height: 68px; padding: 0 16px; }.brand { gap: 10px; }.brand img { width: 118px; }.brand span { font-size: .72rem; padding-left: 10px; }.nav-cta { padding: 9px 12px; font-size: .8rem; }
  .hero { min-height: 0; }.hero-copy { padding: 58px 20px 62px; }.hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }.hero-lead { font-size: 1rem; }.button { width: 100%; }
  .stats-wrap { grid-template-columns: 1fr 1fr; }.stat { min-height: 98px; padding: 15px 18px; }.stat strong { font-size: 1.6rem; }.stat span { font-size: .75rem; }
  .directory { padding: 75px 14px 80px; }.section-heading { padding: 0 6px; }.section-heading h2, .voting-intro h2 { font-size: 2.55rem; }
  .search-field kbd { display: none; }.chip-group { width: max-content; }.filter-row { overflow-x: auto; }.types { margin-bottom: 3px; }
  .map-card { border-radius: 13px; }#region-map { min-height: 330px; height: 100vw; padding: 5px; }.map-legend { gap: 10px; padding-inline: 14px; }
  .results { grid-template-columns: 1fr; }.slate-card { min-height: 265px; }.results-head label { font-size: 0; }.results-head select { font-size: .82rem; }
  .voting-guide { padding: 72px 20px; }.voting-steps li { padding: 17px; grid-template-columns: 40px 1fr; }.voting-steps li > span { width: 38px; height: 38px; }
  footer { grid-template-columns: 1fr; }.footer-links { justify-content: flex-start; flex-direction: column; gap: 10px; }.legal { display: grid; }
  .detail-hero { padding: 28px 55px 24px 22px; }.detail-hero h2 { font-size: 2rem; }.detail-metrics { grid-template-columns: repeat(2,1fr); }.detail-metrics div:nth-child(2) { border-right: 0; }.detail-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.candidate-list-wrap { padding: 22px 14px 25px; }.candidate-list li { grid-template-columns: 26px 1fr; }.kdu-mark { grid-column: 2; }.candidate-list-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important; } }
