*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1a1a2e;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Site header ── */
.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.site-header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-title:hover { color: rgba(255,255,255,0.85); }

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-nav a:hover { color: #fff; }

/* ── Main content ── */
.site-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── Page title ── */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

/* ── Election cards ── */
.election-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.election-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #1a1a2e;
  transition: box-shadow 0.15s, transform 0.15s;
}

.election-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

.election-card-jurisdiction {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  margin-bottom: 6px;
}

.election-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}

.election-card-meta {
  font-size: 0.78rem;
  color: #888;
}

/* ── About page prose ── */
.prose {
  max-width: 640px;
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: #1a1a2e;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 12px;
}

.prose a {
  color: #1a1a2e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 12px;
}

/* ── Unofficial disclaimer ── */
.disclaimer {
  font-size: 0.82rem;
  color: #666;
  background: #fff8e1;
  border: 1px solid #f0c040;
  border-radius: 6px;
  padding: 10px 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ── Site footer ── */
.site-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.78rem;
  color: #aaa;
}

.site-footer a { color: #888; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .site-main { padding: 28px 16px; }
  .page-title { font-size: 1.3rem; }
}
