:root{
--ink:#0b1220;--bg:#ffffff;--muted:#6b7280;--panel:#f8fafc;
/* USA palette + party accents */
--usa-red:#c81e1e; --usa-blue:#1d4ed8; --usa-white:#ffffff;
--rep:#c81e1e; --dem:#1d4ed8; --bi:#7c3aed; /* purple for bipartisan */
--good:#16a34a; --bad:#dc2626;
}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
.wrap{max-width:1024px;margin-inline:auto;padding:1rem}
.sticky{position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.1) blur(4px);border-bottom:1px solid #e5e7eb}
.bar{display:flex;gap:.75rem;align-items:center;justify-content:space-between}
.nav{display:flex;gap:.75rem;flex-wrap:wrap}
.nav a{padding:.35rem .6rem;border-radius:.5rem;border:1px solid #e5e7eb;background:#fff;text-decoration:none;color:inherit}
.nav a[aria-current="page"]{outline:2px solid #93c5fd}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem;margin:1rem 0}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.card{background:var(--panel);border:1px solid #e5e7eb;border-radius:1rem;padding:1rem}
.explain p{font-size:1.05rem}
.table-wrap{overflow:auto;margin:1rem 0}
/* Tables */
table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e5e7eb;border-radius:.75rem;overflow:hidden;background:#fff}
thead th{position:sticky;top:64px;background:#eaf2ff;border-bottom:1px solid #dbeafe;text-align:left;padding:.6rem .6rem;font-weight:700}
tbody td{padding:.55rem .6rem;border-bottom:1px solid #f1f5f9;vertical-align:top}
tr:nth-child(even) td{background:#fcfdff}
.pill{display:inline-flex;gap:.35rem;align-items:center;padding:.15rem .5rem;border-radius:999px;border:1px solid #e5e7eb;background:#fff;font-size:.8rem;white-space:nowrap}
.ok{background:#ecfeff;border-color:#a5f3fc}
.no{background:#fff1f2;border-color:#fecdd3}
.controls{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.controls input,.controls select{font:inherit;padding:.5rem .6rem;border:1px solid #e5e7eb;border-radius:.5rem;background:#fff}
.foot{color:var(--muted)}
.doc-card{display:block;padding:1rem;border:1px solid #e5e7eb;border-radius:1rem;background:#fff;text-decoration:none;color:inherit}
.doc-card:hover{outline:2px solid #93c5fd}
img{max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:.5rem}
/* Party badges */
.badge{display:inline-block;padding:.15rem .5rem;border-radius:.5rem;color:#fff;font-weight:600;font-size:.75rem}
.badge.rep{background:var(--rep)}
.badge.dem{background:var(--dem)}
.badge.bi{background:var(--bi)}
/* Party control ribbon */
.control-ribbon{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:.5rem 0}
.control-card{border:1px solid #e5e7eb;border-radius:.75rem;overflow:hidden}
.control-card header{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.control-bar{height:10px;display:flex}
.control-bar .rep{background:var(--rep)}
.control-bar .dem{background:var(--dem)}
.control-bar .split{background:linear-gradient(90deg,var(--rep) 0 50%,var(--dem) 50% 100%)}
.legend{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.legend .swatch{width:14px;height:14px;border-radius:3px;display:inline-block}
td.party-R,
.party-R { background: #ffe5e5; color: #8b0000; }

td.party-D,
.party-D { background: #e5f0ff; color: #003366; }

td.party-Split,
.party-Split { background: #f0e5ff; color: #4b0082; }

td.party-I,
.party-I { background: #f5f5f5; color: #444; }

:root {
  --blue: #0b3c5d;
  --red: #b22234;
  --light: #f8f9fb;
  --card-border: rgba(0,0,0,0.06);
  --muted: #6b7280;
}

body {
  background: var(--light);
  color: #111;
}

/* Layout */
.wrap {
  /* Comfortable reading width: a little more room for 4-up explainer grids
     without stretching paragraphs across the full desktop viewport. */
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Header */
.sticky,
header.sticky {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #0f4368;
  border-bottom: 4px solid #b91c1c;
  color: white;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: white;
  text-decoration: none;
}

.site-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 4px;
  flex-shrink: 0;
}

.brand-kicker {
  margin: 0 0 4px;
  color: #dbeafe;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand h1,
header.sticky h1 {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a,
header.sticky .nav a {
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav a[aria-current="page"],
header.sticky .nav a[aria-current="page"] {
  background: white;
  color: var(--blue);
}

.nav a:hover,
.nav a:focus-visible,
header.sticky .nav a:hover,
header.sticky .nav a:focus-visible {
  background: rgba(255,255,255,0.25);
}

/* Section headings */
main h2,
main h3 {
  color: var(--blue);
}

/* Standard content box */
.hero {
  margin-top: 42px;
  margin-bottom: 60px;
  padding: 1.25rem 1.5rem;
  background: white;
  border-left: 6px solid #0f4368;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* Cards */
.card {
  border-radius: 0.75rem;
  padding: 1rem;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.big-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.big-link h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.big-link p {
  margin: 0;
  font-size: 0.95rem;
}

.big-link:hover,
.big-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Home cards */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.home-card {
  display: block;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  color: inherit;
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.home-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--blue);
}

.home-card p {
  margin: 0;
  font-size: 0.95rem;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  border-color: #0f4368;
}

/* Explore More */
.explore-more {
  margin-top: 64px;
  padding: 32px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.explore-more h2 {
  margin-top: 0;
  margin-bottom: 28px;
}

.explore-groups {
  display: grid;
  gap: 28px;
}

.explore-group h3 {
  margin-bottom: 14px;
  color: #0f4368;
}

.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.explore-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf3f8;
  color: #0f4368;
  text-decoration: none;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}

.explore-links a:hover,
.explore-links a:focus-visible {
  background: #0f4368;
  color: white;
}

/* Hero banner */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-top: 8px;
  min-height: 480px;
  width: 100%;
  max-width: 1400px;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 45, 0.55);
  color: white;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-overlay h2 {
  color: white;
  max-width: 700px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-text {
  max-width: 700px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.photo-credit {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
}

/* Party colors */
td.party-R,
.party-R {
  background: #ffe5e5;
  color: #8b0000;
}

td.party-D,
.party-D {
  background: #e5f0ff;
  color: #003366;
}

td.party-Split,
.party-Split {
  background: #f0e5ff;
  color: #4b0082;
}

td.party-I,
.party-I {
  background: #f5f5f5;
  color: #444;
}

/* Footer */
.foot {
  font-size: 0.9rem;
  padding-top: 0;
  padding-bottom: 2rem;
}

.muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-overlay {
    padding: 32px;
  }

  .site-logo {
    width: 72px;
    height: 72px;
  }
}

/* Injected include wrappers */
#site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

#site-header header.sticky {
  position: relative;
  top: auto;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  background: #0f4368;
  color: white;
  padding-top: 42px;
  border-top: 4px solid #b91c1c;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h2,
.footer-column h3 {
  color: white;
}

.footer-brand p,
.footer-bottom p {
  color: #d7e5f2;
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: #eaf2ff;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.9rem;
}

.footer-note,
.footer-credit {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.branch-card {
  background: white;
  border-radius: 18px;
  border-top: 5px solid #0f4368;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  padding: 28px;
}

.branch-card h2 {
  margin-top: 0;
}

.branch-controls {
  gap: 10px;
}

.branch-controls button {
  border: 1px solid #0f4368;
  background: #edf3f8;
  color: #0f4368;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.branch-controls button:hover,
.branch-controls button.active {
  background: #0f4368;
  color: white;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.document-card {
  display: block;
  overflow: hidden;

  background: white;
  border-radius: 20px;

  box-shadow: 0 4px 12px rgba(0,0,0,.05);

  text-decoration: none;
  color: inherit;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.document-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 12px 24px rgba(0,0,0,.08);
}

.document-card img {
  width: 100%;
  height: 240px;

  object-fit: cover;
  display: block;
}

.document-content {
  padding: 24px;
}

.document-content h3 {
  margin-top: 0;
  color: #0f4368;
}

.plain-language-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plain-language-table > div {
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.06);
}

.plain-language-table h3 {
  margin-top: 0;
}

@media (max-width: 700px) {
  .plain-language-table {
    grid-template-columns: 1fr;
  }
}
.vote-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.vote-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #0f4368;
}

.vote-controls input,
.vote-controls select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  background: white;
}

.vote-cards {
  display: grid;
  gap: 24px;
}

.vote-card {
  background: white;
  border-radius: 20px;
  border-top: 5px solid #0f4368;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  padding: 28px;
}

.vote-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.vote-card h3 {
  margin-top: 0;
  color: #0f4368;
}

.vote-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.vote-badge-major {
  background: #fee2e2;
  color: #991b1b;
}

.vote-badge-notable {
  background: #dbeafe;
  color: #1e3a8a;
}

.vote-badge-routine {
  background: #f3f4f6;
  color: #374151;
}

.vote-summary {
  font-size: 1.05rem;
  line-height: 1.6;
}

.vote-context {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}

.vote-context p {
  margin-bottom: 0;
}

.vote-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.vote-meta div {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.vote-meta dt {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 800;
  text-transform: uppercase;
}

.vote-meta dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.vote-results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.vote-results p {
  background: #edf3f8;
  color: #0f4368;
  border-radius: 999px;
  padding: 8px 12px;
  margin: 0;
  font-weight: 700;
}

.vote-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.vote-sources a {
  color: #0f4368;
  font-weight: 700;
}

.vote-actions {
  margin-top: 22px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #0f4368;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
}

.button-link:hover {
  background: #092f4a;
}

@media (max-width: 640px) {
  .vote-card-header {
    flex-direction: column;
  }
}

.vote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.member-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.member-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf3f8;
  color: #0f4368;
  padding: 8px 12px;
  font-weight: 800;
}

.clean-list {
  padding-left: 1.2rem;
}

.clean-list li {
  margin-bottom: 10px;
}

.member-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.member-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #0f4368;
}

.member-controls input,
.member-controls select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  background: white;
}

.member-cards {
  display: grid;
  gap: 24px;
}

.member-card {
  background: white;
  border-radius: 20px;
  border-top: 5px solid #0f4368;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  padding: 28px;
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.member-card h3 {
  margin-top: 0;
  color: #0f4368;
}

.member-committees {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}

.member-committees p {
  margin-bottom: 0;
}

.secondary-button {
  background: #edf3f8;
  color: #0f4368;
}

.secondary-button:hover {
  background: #d7e5f2;
  color: #0f4368;
}

.vote-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.vote-stat {
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px;
}

.member-card.party-D {
  border-top-color: #2563eb;
}

.member-card.party-R {
  border-top-color: #dc2626;
}

.member-card.party-I {
  border-top-color: #6b7280;
}

.member-vote-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.member-vote-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.member-vote-row:hover {
  background: #edf3f8;
}

.member-vote-row span {
  font-weight: 800;
  color: #0f4368;
}

.member-vote-row small {
  color: #6b7280;
  text-align: right;
}


/* =========================================================
   SHARED SITE NAVIGATION — 2026 refresh
   ========================================================= */

#site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
}

#site-header .site-header {
  position: relative;
  background: #0f4368;
  color: white;
  border-bottom: 4px solid #b91c1c;
  box-shadow: 0 8px 24px rgba(15, 67, 104, 0.14);
}

.nav-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#site-header .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

#site-header .site-logo {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: white;
  object-fit: contain;
  flex: 0 0 auto;
}

#site-header .brand-text {
  min-width: 0;
}

#site-header .brand-kicker {
  margin: 0 0 2px;
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#site-header .brand-title {
  margin: 0;
  color: white;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.primary-nav > a,
.nav-menu-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible,
.nav-menu-button:hover,
.nav-menu-button:focus-visible,
.nav-menu.is-open > .nav-menu-button,
.nav-menu-button.section-current {
  background: rgba(255,255,255,0.14);
  outline: none;
}

.primary-nav > a[aria-current="page"] {
  background: white;
  color: #0f4368;
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  display: none;
  padding: 10px;
  background: white;
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  color: #111827;
}

.nav-menu.is-open > .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #163f5d;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a[aria-current="page"] {
  background: #edf3f8;
  color: #0f4368;
  outline: none;
}

.nav-coming-soon {
  display: block;
  margin: 5px 6px 2px;
  padding: 9px 7px 4px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-menu-all .mega-menu {
  right: 0;
  width: min(980px, calc(100vw - 32px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 18px;
}

.mega-menu-group {
  min-width: 0;
}

.mega-menu-group h2 {
  margin: 0 8px 7px;
  color: #0f4368;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.mega-menu-group a {
  padding: 7px 8px;
  font-size: 0.84rem;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-icon {
  font-size: 1.15rem;
}

@media (max-width: 1080px) {
  #site-header .brand-kicker {
    display: none;
  }

  #site-header .brand-title {
    font-size: 1rem;
  }

  .primary-nav > a,
  .nav-menu-button {
    padding-inline: 9px;
    font-size: 0.84rem;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    width: min(100% - 24px, 960px);
    min-height: 76px;
    gap: 12px;
  }

  #site-header .site-logo {
    width: 52px;
    height: 52px;
  }

  #site-header .brand-title {
    white-space: normal;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    background: #0f4368;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 4px solid #b91c1c;
    box-shadow: 0 18px 35px rgba(15,23,42,0.2);
  }

  .primary-nav.is-mobile-open {
    display: grid;
    gap: 5px;
  }

  .primary-nav > a,
  .nav-menu-button {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 0.96rem;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-dropdown,
  .nav-menu-all .mega-menu {
    position: static;
    width: 100%;
    margin: 3px 0 8px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
  }

  .nav-menu-all .mega-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }

  .mega-menu-group h2 {
    margin-top: 4px;
  }
}

@media (max-width: 580px) {
  #site-header .brand-title {
    max-width: 190px;
    font-size: 0.92rem;
  }

  .mobile-nav-toggle span:first-child {
    display: none;
  }

  .nav-menu-all .mega-menu {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FOOTER — 2026 refresh
   ========================================================= */

.site-footer {
  margin-top: 80px;
  padding-top: 48px;
  background: #0f4368;
  color: white;
  border-top: 4px solid #b91c1c;
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 1fr));
  gap: 44px;
}

.footer-brand h2,
.footer-column h3 {
  margin-top: 0;
  color: white;
}

.footer-brand p,
.footer-bottom p {
  color: #d7e5f2;
  line-height: 1.65;
}

.footer-tagline {
  font-weight: 800;
  color: white !important;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column a {
  color: #eaf2ff;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: white;
  text-decoration: underline;
}

.footer-coming-soon {
  color: #b9ccdc;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}


/* =========================================================
   CONTENT WIDTH — September 2026 refinement
   ========================================================= */
@media (max-width: 700px) {
  .wrap {
    padding-inline: 1rem;
  }
}


/* =========================================================
   PRESIDENTIAL ELECTION MAPS — September 2026
   Detailed election graphics need more room than body copy.
   ========================================================= */
.presidential-page .map-grid {
  width: 100%;
  max-width: 980px;
  margin: 26px auto 30px;
  transform: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.presidential-page .map-card {
  padding: 18px;
  overflow: hidden;
  border: 1px solid #d9e2ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 67, 104, 0.06);
}

.presidential-page .election-map-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 18px;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  background: #fff;
}

.presidential-page .map-card h3 {
  margin: 0 0 8px;
}

.presidential-page .map-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .presidential-page .map-grid {
    width: 100%;
    margin-left: 0;
    transform: none;
    gap: 20px;
  }

  .presidential-page .map-card {
    padding: 12px;
    border-radius: 14px;
  }

  .presidential-page .election-map-image {
    margin-bottom: 14px;
    border-radius: 9px;
  }
}


/* Batch 1: shared layout for formerly standalone pages */
.legacy-page-title { margin: 1.6rem 0 1rem; color: #0f4368; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }
.legacy-source-note { margin-top: 2rem; margin-bottom: 2rem; padding: 1rem; border-top: 1px solid #d7dfe8; color: #43566a; font-size: .9rem; }
.home-card-pending { cursor: default; }

/* Batch 37: accessible navigation and related-guide discovery */
.skip-link{position:fixed;left:12px;top:-100px;z-index:99999;padding:12px 18px;background:#fff;color:#123b5c;border:3px solid #1e5c85;border-radius:8px;font-weight:700}
.skip-link:focus{top:12px}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #165e9d!important;outline-offset:3px}
.related-election-guides{margin:2rem 0;padding:1.25rem;border:1px solid #cbdcec;border-radius:14px;background:#f6faff}
.related-election-guides h2{margin:0 0 .4rem;color:#123f60}
.related-election-guides p{margin:.25rem 0 1rem}
.related-election-guides nav{display:flex;flex-wrap:wrap;gap:.7rem}
.related-election-guides nav a{display:inline-flex;align-items:center;padding:.65rem .85rem;border:1px solid #bed3e6;border-radius:8px;background:white;color:#174a70;text-decoration:underline;text-underline-offset:3px}
.related-election-guides nav a:hover{background:#e8f2fc}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Batch 39 research transparency */
.europe-verification-note{padding:1.2rem 1.4rem;margin:1rem 0 1.6rem;border:1px solid #cbdcec;border-left:5px solid #246184;border-radius:12px;background:#f4f9fe}
.europe-verification-note h2{margin:0 0 .6rem;color:#123f60}.europe-verification-note p{margin:.6rem 0}.europe-verification-note a{font-weight:700;text-underline-offset:3px}
