:root {
  --navy: #0b2a5b;
  --navy-dark: #071d42;
  --red: #d2202f;
  --red-dark: #a81624;
  --ink: #1a1a1a;
  --muted: #5c6672;
  --line: #e3e7ec;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--navy); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.brand img { height: 52px; width: auto; display: block; }
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover { background: #eef2f8; }
.main-nav a.nav-cta {
  background: var(--red);
  color: #fff;
}
.main-nav a.nav-cta:hover { background: var(--red-dark); }
.main-nav a.nav-outline {
  border: 2px solid var(--navy);
}
.ext { font-size: 12px; vertical-align: super; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 70%);
  color: #fff;
  padding: 52px 0 44px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  max-width: 760px;
}
.hero h1 .accent { color: #ff6b76; }
.hero p {
  margin-top: 12px;
  font-size: 18px;
  color: #c9d4e6;
  max-width: 640px;
}
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 8px;
  transition: transform .05s ease;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn[disabled] { opacity: .6; cursor: default; }
.hero-note { margin-top: 14px; font-size: 13px; color: #93a3c0; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}
.section-head h2 { font-size: 26px; color: var(--navy); letter-spacing: -0.3px; }
.section-head .kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 800;
}
.section-head .updated { margin-left: auto; font-size: 13px; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: 0 6px 22px rgba(11,42,91,.12); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #dfe5ee; display: block; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 20px;
}
.card-badge.fwr { background: #0f7a3d; }
.card-badge.st { background: #333; }
.card-text { font-size: 15px; }
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.eng { display: inline-flex; gap: 10px; }
.eng span { white-space: nowrap; }
.card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- News columns ---------- */
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news-col h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.news-item h4 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.news-item h4 a { color: var(--ink); text-decoration: none; }
.news-item h4 a:hover { color: var(--red); }
.news-item .dek { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.news-item .src { font-size: 12.5px; color: var(--muted); }

/* ---------- Vote section ---------- */
.vote-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vote-card { padding: 26px 24px; text-align: left; align-items: flex-start; }
.vote-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.vote-card p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.vote-card .btn { margin-top: auto; }
.loc-preview {
  position: relative;
}
.loc-preview-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(11,42,91,.18);
  padding: 14px 16px;
  z-index: 20;
  font-size: 14px;
}
.loc-preview:hover .loc-preview-panel,
.loc-preview:focus-within .loc-preview-panel { display: block; }
.loc-preview-panel ul { list-style: none; }
.loc-preview-panel li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.loc-preview-panel li:last-child { border-bottom: none; }
.countdown { font-size: 15px; font-weight: 600; color: var(--navy); }
.countdown strong { color: var(--red); font-size: 22px; }

/* ---------- Tip band ---------- */
.tip-band {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 44px 20px;
}
.tip-band h2 { font-size: 28px; margin-bottom: 8px; }
.tip-band p { font-size: 17px; opacity: .92; max-width: 620px; margin: 0 auto 20px; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f3f3f3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #aebcd6;
  padding: 34px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer a { color: #dbe4f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Voting locations page ---------- */
.page-title { padding: 40px 0 8px; }
.page-title h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); }
.page-title p { color: var(--muted); font-size: 17px; margin-top: 6px; max-width: 720px; }
.loc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.loc-table th, .loc-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.loc-table th { background: var(--navy); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.loc-table tr:last-child td { border-bottom: none; }
.empty-state {
  background: #fff;
  border: 1px dashed #b9c2cf;
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.empty-state strong { color: var(--navy); display: block; font-size: 20px; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .news-cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { margin-left: 0; }
  .brand img { height: 42px; }
  .section { padding: 32px 0; }
}

/* ---------- Pinned headline ---------- */
.pinned-section { background: #070708; }
.pinned-section .wrap { padding-top: 36px; padding-bottom: 8px; }
.pinned-link { display: block; text-decoration: none; color: inherit; }
.pinned-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  background: #101014;
  border: 1px solid #2a2a31;
  border-radius: 14px;
  overflow: hidden;
}
.pinned-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }
.pinned-body { padding: 36px 34px; color: #f2f2f4; display: flex; flex-direction: column; justify-content: center; }
.pinned-kicker {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.pinned-body h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; font-weight: 900; letter-spacing: -.01em; margin-bottom: 16px; }
.pinned-body p { color: #c9ccd3; font-size: 17px; margin-bottom: 20px; }
.pinned-meta { display: flex; gap: 16px; color: #8b8f98; font-size: 13px; }
@media (max-width: 760px) {
  .pinned-card { grid-template-columns: 1fr; }
  .pinned-media img { min-height: 0; max-height: 340px; }
  .pinned-body { padding: 26px 24px; }
}

/* ---------- Pinned comments + secondary story ---------- */
.pinned-cta {
  align-self: flex-start;
  display: inline-block;
  color: #fff;
  background: #1d1d22;
  border: 1px solid #3a3a44;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.pinned-comments {
  margin-top: 18px;
  background: #101014;
  border: 1px solid #2a2a31;
  border-radius: 14px;
  padding: 26px 28px;
}
.pinned-comments h3 { color: #f2f2f4; font-size: 20px; margin-bottom: 16px; }
.pinned-comments ul { list-style: none; display: grid; gap: 14px; }
.pinned-comments li { border-left: 3px solid var(--red); padding: 4px 0 4px 16px; }
.pinned-comments li p { color: #e6e8ec; font-size: 16px; margin-bottom: 4px; }
.pinned-comments li span { color: #8b8f98; font-size: 13px; }
.pinned-secondary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: #101014;
  border: 1px solid #2a2a31;
  border-radius: 14px;
  overflow: hidden;
}
.pinned-sec-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinned-sec-body { padding: 22px 24px; color: #f2f2f4; }
.pinned-kicker-dim { background: #3a3a42; }
.pinned-sec-body h3 { font-size: 22px; margin: 12px 0 8px; }
.pinned-sec-body p { color: #c9ccd3; font-size: 15px; }
@media (max-width: 760px) {
  .pinned-secondary { grid-template-columns: 1fr; }
  .pinned-sec-media img { max-height: 200px; }
}
