/* ============================================================
   OSZ POLLS — GLOBAL STYLESHEET
   Fonts: DM Serif Display (display) · DM Sans (body) · Plus Jakarta Sans (hero)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ink:        #0b1120;
  --ink-2:      #1e2d45;
  --ink-3:      #2a4064;
  --slate:      #64748b;
  --muted:      #94a3b8;
  --border:     rgba(99,119,156,.14);
  --surface:    #ffffff;
  --surface-2:  #f1f5f9;
  --surface-3:  #e8edf5;
  --teal:       #00a6e3;
  --teal-dim:   rgba(0,166,227,.149);
  --accent:     #0ea5c5;
  --accent-dim: rgba(14,165,197,.08);
  --red:        #e63946;
  --blue:       #2563eb;
  --dem: #1d4ed8;
  --dem-light: #3b82f6;
  --dem-pale: #dbeafe;
  --dem-safe: #1e3a8a;
  --dem-likely: #2563eb;
  --dem-lean: #93c5fd;
  --rep: #b91c1c;
  --rep-light: #ef4444;
  --rep-pale: #fee2e2;
  --rep-safe: #7f1d1d;
  --rep-likely: #ef4444;
  --rep-lean: #fca5a5;
  --grad-teal:  linear-gradient(118deg,#11a7e7 0%,#03c6d4 28%,#02a8b44b 52%,#27bce9 76%,#11a7e7 100%);
  --grad-accent:linear-gradient(120deg,#0ea5c5 0%,#2563eb 100%);
  --f-xs:   .75rem; --f-sm: .875rem; --f-base: 1rem;
  --f-md:   1.125rem; --f-lg: 1.35rem; --f-xl: 1.75rem;
  --f-2xl:  2.25rem; --f-3xl: 3rem;
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem;
  --sp-5:1.25rem; --sp-6:1.5rem; --sp-8:2rem; --sp-10:2.5rem;
  --sp-12:3rem; --sp-16:4rem;
  --radius-sm:8px; --radius-md:14px; --radius-lg:22px;
  --radius-xl:32px; --radius-pill:999px;
  --max-w:1280px;
  --ease-out:   cubic-bezier(.22,1,.36,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --ease-smooth:cubic-bezier(.4,0,.2,1);
  --dur-fast:160ms; --dur-base:260ms; --dur-slow:420ms;
  --shadow-sm:0 2px 8px rgba(11,17,32,.06);
  --shadow:   0 6px 24px rgba(11,17,32,.09);
  --shadow-lg:0 16px 48px rgba(11,17,32,.14);
  --shadow-xl:0 28px 64px rgba(11,17,32,.20);

  /* Page-level dark theme tokens */
  --page-bg:        #06090f;
  --glass-bg:       rgba(255,255,255,.04);
  --glass-border:   rgba(255,255,255,.10);
  --glass-bg-hover: rgba(255,255,255,.07);
  --text-primary:   rgba(255,255,255,.92);
  --text-secondary: rgba(255,255,255,.55);
  --text-muted:     rgba(255,255,255,.32);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: var(--f-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;}
img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
button   { font-family: inherit; cursor: pointer; }
h1, h2   { line-height: 1.2; }

/*  ========================================================================================================================
   DESKTOP TOPBAR
   ======================================================================================================================== */
.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,.06) 40%,rgba(255,255,255,.13) 80%,rgba(255,255,255,.20) 100%);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 16px rgba(0,0,0,.25), 0 0 12px rgba(59,130,246,.18);
  transition: background var(--dur-slow) var(--ease-smooth), box-shadow var(--dur-slow) var(--ease-smooth), transform .4s var(--ease-spring);
  will-change: transform;}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(115deg,transparent 0%,rgba(255,255,255,.18) 30%,rgba(200,240,255,.12) 50%,rgba(150,180,255,.08) 68%,transparent 100%);
  opacity: 0;
  transition: opacity .5s var(--ease-smooth);
  pointer-events: none;}
.topbar::after {
  content: '';
  position: absolute;
  top: 2px; left: 18%;
  width: 46%; height: 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.38) 0%,rgba(255,255,255,.10) 55%,transparent 100%);
  filter: blur(2px);
  pointer-events: none;
  transition: opacity .4s var(--ease-smooth);}
.topbar:hover::before { opacity: 1; }
.topbar:hover {
  background: linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.10));
  border-color: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.22), 0 2px 10px rgba(0,0,0,.12);
  transform: translateX(-50%) scale(1.02);}

/* Brand */
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 4px 18px 4px 8px;
  border-right: 1px solid rgba(0,69,196,.16);
  position: relative;
  z-index: 1;}
.topbar .logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;}
.topbar .brand-title {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--ink-2);
  white-space: nowrap;
  text-transform: uppercase;}

/* Nav links */
.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 1;
  padding: 0 4px;
  position: relative;
  z-index: 1;}
.topbar .nav-link {
  position: relative;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  letter-spacing: .2px;
  transition: color var(--dur-fast) var(--ease-smooth), background var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-spring);}
.topbar .nav-link:hover {
  color: var(--ink-2);
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(99,119,156,.08), 0 2px 8px rgba(11,17,32,.08);
  transform: translateY(-1px);}
.topbar .nav-link:active { transform: translateY(0) scale(.98); }
.topbar .nav-link.active,
.topbar .nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(255,255,255,.88);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(14,165,197,.10), 0 4px 12px rgba(11,17,32,.10);}
.topbar .nav-link[aria-current="page"]::before {
  content: '';
  position: absolute;
  inset: -8px -18px;
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,rgba(14,165,197,.28) 0%,rgba(37,99,235,.10) 50%,transparent 100%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  animation: blob-breathe 3.5s ease-in-out infinite;}
@keyframes blob-breathe {
  0%,100% { opacity: .65; transform: scale(1)    rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.12) rotate(2deg); }}

/* Dropdown */
.dropdown { position: relative; z-index: 1; }
.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  letter-spacing: .2px;
  transition: color var(--dur-fast) var(--ease-smooth), background var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-spring);}
.dropdown-btn:hover,
.dropdown.open .dropdown-btn {
  color: var(--ink-2);
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 2px 8px rgba(11,17,32,.08);
  transform: translateY(-1px);}
.dropdown-btn:active { transform: translateY(0) scale(.98); }

/* Target the button directly when it has the aria-current attribute */
.topbar .dropdown-btn[aria-current="page"] {
  color: var(--ink);
  background: rgba(255,255,255,0.88);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,1), 
              inset 0 -1px 0 rgba(14,165,197,.10), 
              0 4px 12px rgba(11,17,32,.10);}
.topbar .dropdown-btn[aria-current="page"]::before {
  content: '';
  position: absolute;
  inset: -8px -18px;
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(14,165,197,.28) 0%, rgba(37,99,235,.10) 50%, transparent 100%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  animation: blob-breathe 3.5s ease-in-out infinite;}
.dropdown-chevron {
  transition: transform var(--dur-base) var(--ease-spring);
  flex-shrink: 0;}
.dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: linear-gradient(160deg,rgba(255,255,255,.90) 0%,rgba(248,250,254,.82) 100%);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.80);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(14,165,197,.08), 0 20px 50px rgba(11,17,32,.14), 0 4px 14px rgba(11,17,32,.08), 0 0 0 1px rgba(99,119,156,.12);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-spring);}
.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: background var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-spring);}
.dropdown-menu a:hover { background: var(--accent-dim); color: var(--ink); transform: translateX(3px); }

/* Search */
.topbar .search-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: 1px;
  border-left: 1px solid rgba(99,119,156,.16);
  padding-left: 8px;
  z-index: 1;}
.topbar .search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease-smooth);
  z-index: 2;}
.topbar .search-wrap:focus-within .search-icon { color: var(--accent); }
.topbar .search-input {
  padding: 7px 14px 7px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: rgba(14,165,197,.06);
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--ink);
  width: 148px;
  outline: none;
  transition: width var(--dur-base) var(--ease-spring), background var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);}
.topbar .search-input::placeholder { color: var(--muted); }
.topbar .search-input:focus {
  width: 200px;
  background: rgba(255,255,255,.90);
  border-color: rgba(14,165,197,.40);
  box-shadow: 0 0 0 3px rgba(14,165,197,.10), inset 0 1px 0 rgba(255,255,255,.90);}

/* Search results */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  background: linear-gradient(160deg,rgba(255,255,255,.94),rgba(248,250,254,.88));
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.80);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), 0 20px 50px rgba(11,17,32,.12), 0 0 0 1px rgba(99,119,156,.10);
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 1000;}
.search-results.active { display: block; }
.search-results div {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);}
.search-results div:hover { background: var(--accent-dim); color: var(--ink); transform: translateX(2px); }
.search-results div span { font-size: 12px; color: var(--muted); margin-left: auto; }

/* ========================================================================================================================
   MOBILE TOPBAR 
   ======================================================================================================================== */
.topbar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  max-width: 100vw;

  z-index: 99999;
  display: flex !important;
  align-items: center;
  gap: var(--sp-3);

  padding: 0 14px;
  height: 58px;
  margin: 0;

  box-sizing: border-box;
  overflow: visible;

  border-radius: var(--radius-md);

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,.06) 40%,
    rgba(255,255,255,.13) 80%,
    rgba(255,255,255,.20) 100%
  );

  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);

  border-bottom: 2px solid rgba(119, 119, 119, 0.22);
}
/* ── Brand ── */
.topbar-mobile .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 4px 14px 4px 4px;
  border-right: 1px solid rgba(0,69,196,.14);
  text-decoration: none;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--dur-fast);}
.topbar-mobile .brand:active { opacity: .7; }
.topbar-mobile .brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--ink-2);
  white-space: nowrap;
  text-transform: uppercase;}
.flex-spacer { flex: .3; }
/* ── Search ── */
.mobile-search-wrap {
  position: relative;
  flex: 1;
  max-width: 210px;
  z-index: 1;}
.mobile-search-input {
  width: 100%;
  padding: 7px var(--sp-3) 7px calc(var(--sp-3) + 18px);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: rgba(14,165,197,.06);
  font-family: inherit;
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition:
    width var(--dur-base) var(--ease-spring),
    background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);}
.mobile-search-input::placeholder { color: var(--muted); }
.mobile-search-input:focus {
  background: rgba(255,255,255,.90);
  border-color: rgba(14,165,197,.40);
  box-shadow:
    0 0 0 3px rgba(14,165,197,.10),
    inset 0 1px 0 rgba(255,255,255,.90);}
.mobile-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color var(--dur-fast);}
.mobile-search-wrap:focus-within .mobile-search-icon { color: var(--accent); }
#globalSearchResultsPhone { /* ── up most right search results ── */
  z-index: 9999;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 260px;}
/* ── Hamburger ── */
.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: var(--radius-sm);
  background: rgba(191, 7, 7, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-spring);}
.hamburger:hover {
  background: rgba(255,255,255,.40);
  border-color: rgba(255,255,255,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.90),
    0 4px 12px rgba(11,17,32,.12);}
.hamburger:active { transform: scale(.91);}
.hamburger-bar {
  display: block;
  width: 18px; height: 1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  transition:
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-fast) var(--ease-smooth);}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);}

/* ========================================================================================================================
   MOBILE SIDEBAR
   ======================================================================================================================== */
/* ── Overlay ── */
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(11,17,32,.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-smooth);}
.mobile-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;}
/* ── Panel ── */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;                             /* ← anchored to RIGHT edge */
  left: auto;
  z-index: 100001;
  width: min(300px, 82vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,.22) 0%,
    rgba(255,255,255,.10) 40%,
    rgba(220,238,255,.14) 70%,
    rgba(255,255,255,.18) 100%
  );
  backdrop-filter: blur(48px) saturate(1.9) brightness(1.06);
  -webkit-backdrop-filter: blur(48px) saturate(1.9) brightness(1.06);
  border-left: 1px solid rgba(255,255,255,.26); /* ← border on left now */
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.32),
    inset 0 1px 0 rgba(255,255,255,.40),
    -4px 0 40px rgba(11,17,32,.22),
    -12px 0 60px rgba(11,17,32,.10);
  transform: translateX(110%);          /* ← slides OUT to the right */
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
  overflow: hidden;}
.mobile-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(180deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,.06) 55%,transparent 100%);
  pointer-events: none;
  z-index: 0;}
.mobile-sidebar::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;           /* ← bloom on left side now */
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,rgba(14,165,197,.14) 0%,rgba(37,99,235,.07) 50%,transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;}
/* OPEN — slide in from right */
.mobile-sidebar.open {
  transform: translateX(0);}
.sidebar-header,
.sidebar-nav,
.sidebar-footer { position: relative; z-index: 1; }
/* ── Header ── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.18);}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;}
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(11,17,32,.14);}
.sidebar-brand .brand-title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-2);}
/* Close button */
.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--slate);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.60), 0 2px 6px rgba(11,17,32,.10);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);}
.close-btn:hover {
  background: rgba(255,255,255,.42);
  color: var(--ink);
  transform: scale(1.08) rotate(90deg);}
.close-btn:active { transform: scale(.95) rotate(90deg); }
/* ── Nav ── */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--slate);
  text-align: left;
  letter-spacing: .1px;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);}
.sidebar-nav-link:hover {
  background: rgba(255,255,255,.52);
  color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80), 0 2px 8px rgba(11,17,32,.07);
  transform: translateX(-2px);}                /* ← nudge left on hover (right-side sidebar) */
.sidebar-nav-link:active { transform: translateX(-2px) scale(.98); }
.sidebar-nav-link[aria-current="page"],
.sidebar-nav-link.active {
  background: rgba(255,255,255,.68);
  color: var(--ink);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), 0 3px 10px rgba(11,17,32,.09);}
.sidebar-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.60);
  flex-shrink: 0;
  color: var(--slate);
  transition: background var(--dur-fast), color var(--dur-fast);}
.sidebar-nav-link:hover .sidebar-nav-icon {
  background: rgba(255,255,255,.55);
  color: var(--accent);}
/* ── Submenu ── */
.submenu { display: flex; flex-direction: column; }
.submenu-toggle { justify-content: flex-start; }
.submenu-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--dur-base) var(--ease-spring);}
.submenu-toggle[aria-expanded="true"] .submenu-chevron { transform: rotate(180deg); }
.submenu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 20px;
  margin: 2px 0 0 28px;
  border-left: 1.5px solid rgba(255,255,255,.30);}
.submenu-list[hidden] { display: none; }
.submenu-link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--slate);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);}
.submenu-link:hover {
  background: rgba(255,255,255,.48);
  color: var(--ink-2);
  transform: translateX(-2px);}
/* ── Footer ── */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 18px 24px;
  border-top: 1px solid rgba(255,255,255,.18);}
.sidebar-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(14,165,197,.35);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  background: rgba(14,165,197,.08);}
.sidebar-copy {
  font-size: var(--f-xs);
  color: var(--muted);}

/* ========================================================================================================================
   HERO
   ======================================================================================================================== */
.hero {
  position: relative;
  overflow: visible;
  margin: 0 auto;
  padding: 6rem var(--sp-16) var(--sp-1);
  max-width: var(--max-w);
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 40px rgba(14,165,197,.07), 0 0 0 1px rgba(14,165,197,.06);}
.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);}
/* Bubbles */
.b {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 1;
  border-radius: 42% 58% 55% 45% / 48% 52% 60% 40%;
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(1px) saturate(130%);
  background: radial-gradient(circle at 30% 28%,rgba(255,255,255,.55) 0%,rgba(14,165,197,.38) 30%,rgba(0,255,242,.185) 60%,rgba(14,165,197,.10) 80%,transparent 100%);
  box-shadow: 0 6px 28px rgb(201,255,222), 0 2px 8px rgba(184,255,249,.41), inset 0 2px 10px rgb(252,252,252);}
.b::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: .75;
  pointer-events: none;
  background: radial-gradient(circle at 28% 22%,rgba(255,255,255,.705) 0%,transparent 55%);}
@keyframes driftRandom {
  0%   { transform: translate(  0px,   0px) rotate(  0deg) scale(1.00); }
  20%  { transform: translate( 60px, -45px) rotate( 14deg) scale(1.07); }
  40%  { transform: translate(-45px, -85px) rotate(-10deg) scale(0.93); }
  60%  { transform: translate( 75px,  22px) rotate( 22deg) scale(1.10); }
  80%  { transform: translate(-55px,  50px) rotate(-16deg) scale(0.94); }
  100% { transform: translate( 28px, -65px) rotate(  8deg) scale(1.04); }}
@keyframes morph {
  0%   { border-radius: 42% 58% 55% 45% / 48% 52% 60% 40%; }
  25%  { border-radius: 58% 42% 48% 52% / 60% 40% 55% 45%; }
  50%  { border-radius: 50% 50% 60% 40% / 45% 55% 50% 50%; }
  75%  { border-radius: 40% 60% 52% 48% / 55% 45% 60% 40%; }
  100% { border-radius: 42% 58% 55% 45% / 48% 52% 60% 40%; }}
@keyframes f1 { 0%{opacity:.50} 15%{opacity:.78} 40%{opacity:.58} 65%{opacity:.80} 85%{opacity:.48} 100%{opacity:.65} }
@keyframes f2 { 0%{opacity:.55} 20%{opacity:.45} 50%{opacity:.72} 75%{opacity:.50} 100%{opacity:.60} }
@keyframes f3 { 0%{opacity:.45} 25%{opacity:.72} 55%{opacity:.48} 80%{opacity:.68} 100%{opacity:.45} }
@keyframes f4 { 0%{opacity:.62} 30%{opacity:.45} 60%{opacity:.58} 100%{opacity:.52} }
@keyframes f5 { 0%{opacity:.48} 18%{opacity:.72} 45%{opacity:.46} 72%{opacity:.76} 100%{opacity:.55} }
@keyframes f6 { 0%{opacity:.68} 35%{opacity:.46} 65%{opacity:.74} 100%{opacity:.42} }
.b1 { width:260px; height:260px; top:-100px;  left:-100px; animation: driftRandom 32s ease-in-out infinite alternate, f1 19s ease-in-out infinite, morph 22s ease-in-out infinite; }
.b2 { width:140px; height:140px; bottom:-50px;right:5%;    animation: driftRandom 24s ease-in-out infinite reverse,  f2 13s ease-in-out infinite, morph 18s ease-in-out infinite; }
.b3 { width: 80px; height: 80px; top:35%;     right:12%;   animation: driftRandom 36s ease-in-out infinite,          f3 21s ease-in-out infinite, morph 26s ease-in-out infinite; }
.b4 { width:150px; height:150px; top:60%;     left:10%;    animation: driftRandom 28s ease-in-out infinite alternate, f4 15s ease-in-out infinite, morph 20s ease-in-out infinite; }
.b5 { width:200px; height:200px; top:-10px;   left:78%;    animation: driftRandom 30s ease-in-out infinite alternate, f5 17s ease-in-out infinite, morph 24s ease-in-out infinite; }
.b6 { width:200px; height:200px; bottom:22%;  left:36%;    animation: driftRandom 26s ease-in-out infinite alternate, f6 13s ease-in-out infinite, morph 18s ease-in-out infinite; }
/* Hero eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px var(--sp-3) 5px var(--sp-2);
  background: rgba(14,165,197,.07);
  border: 1px solid rgba(14,165,197,.28);
  border-radius: var(--radius-pill);
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0891b2;}
.hero-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 5px rgba(14,165,197,.7);
  animation: pulse 2s ease-in-out infinite;}
@keyframes pulse {
  0%,100% { opacity: 1;   transform: scale(1);   }
  50%      { opacity: .4; transform: scale(.7);  }}
/* Hero title */
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--ink-3);
  max-width: 640px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 1s cubic-bezier(.16,1,.3,1) .1s forwards;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;}
.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding-right: 0.18em;
  padding-bottom: 0.12em;
  background: var(--grad-teal);
  background-size: 280% 100%;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientBreath 6s cubic-bezier(.45,.05,.55,.95) infinite, emReveal 1s cubic-bezier(.16,1,.3,1) .3s both;
  filter: drop-shadow(0 0 14px rgba(37,99,235,.22));
  will-change: background-position, filter;}
.hero-title em::after {
  content: '';
  position: absolute;
  inset: 0;
  right: -0.18em;
  bottom: -0.12em;
  background: linear-gradient(105deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);
  background-size: 250% 100%;
  background-position: 200% center;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerPass 4s ease-in-out 1.6s infinite;
  pointer-events: none;}
@keyframes heroReveal {
  0%  { opacity: 0; transform: translateY(24px); }
  60% { opacity: 1; }
  100%{ opacity: 1; transform: translateY(0); }}
@keyframes emReveal {
  0%  { opacity: 0; transform: translateY(8px) scale(.97); }
  100%{ opacity: 1; transform: translateY(0) scale(1); }}
@keyframes gradientBreath {
  0%   { background-position:   0% center; }
  50%  { background-position: 100% center; }
  100% { background-position:   0% center; }}
@keyframes shimmerPass {
  0%  { background-position: 200% center; opacity: 0; }
  10% { opacity: 1; }
  40% { background-position: -50% center; opacity: 1; }
  55% { opacity: 0; }
  100%{ background-position: -50% center; opacity: 0; }}
/* Hero body */
.hero-body { font-size: var(--f-sm); color: var(--ink-muted); line-height: 1.65; max-width: 460px; }
.hero-body a { color: #0891b2; font-weight: 600; border-bottom: 1px solid rgba(14,165,197,.3); transition: border-color var(--dur-base); }
.hero-body a:hover { border-color: #0ea5c5; }
/* CTA buttons */
.hero-cta-group { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px var(--sp-5);
  background: linear-gradient(135deg,#0ea5c5,#6366f1);
  color: #fff;
  font-weight: 700;
  font-size: var(--f-sm);
  letter-spacing: .01em;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 14px rgba(14,165,197,.28);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(14,165,197,.38); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px var(--sp-5);
  background: rgba(199,199,199,.274);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius-pill);
  color: var(--ink-mid);
  font-weight: 600;
  font-size: var(--f-sm);
  cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base), background var(--dur-base);}
.btn-ghost:hover { border-color: rgba(14,165,197,.4); color: var(--ink); background: rgba(14,165,197,.04); }
/* Stats bar */
.hero-stats {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;

  width: fit-content;
  max-width: 100%;

  padding: 1.6rem 0.9rem;

  background: rgba(196, 196, 196, 0.269);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; /* pill shape */

  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);

  box-shadow: 0 4px 18px rgba(14,165,197,.10);}
.hero-stat {
  flex: 0 1 auto;
  min-width: auto;
  padding: 0 0.4rem;
  text-align: center;}
.hero-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1;}
.hero-stat-label {
  margin-top: 2px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);}
.hero-stat-divider {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,.15), transparent);
  opacity: 0.6;}


/*========================================================================================================================
   CARDS SECTION
   ======================================================================================================================== */
/*  Section Header  */
.cards-section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-3);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;}
.section-link {
  font-size: var(--f-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.80;
  transition:
    gap 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 200ms ease;
  text-decoration: none;}
.section-link:hover {
  gap: 11px;
  opacity: 1;}
/*  All Cards Commonality */
.election-card,
.swing-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 620ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 400ms ease;
  will-change: transform;}
.card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4, 8, 20, 0.82) 0%,
    rgba(4, 8, 20, 0.95) 5%,
    rgba(4, 8, 20, 0.82) 35%,
    rgba(4, 8, 20, 0.26) 52%,
    rgba(4, 8, 20, 0.09) 70%,
    rgba(4, 8, 20, 0.02) 85%,
    rgba(0, 64, 255, 0) 100%
  );
  z-index: 2;}
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  width: fit-content;
  transition: border-color 300ms, background 300ms, color 300ms;}
.card-stat {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: border-color 300ms, color 300ms;}
.card-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3bff88;
  box-shadow: 0 0 6px rgba(59, 255, 136, 0.9);
  animation: pulse-dot 2.2s ease-in-out infinite;}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.28;
    transform: scale(0.58);
  }}
.card-stats-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;}
.card-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.18) 0%, 
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0.01) 100%
  );}
.election-card:hover .card-stat,
.swing-card:hover .card-stat {
  border-color: rgba(100, 180, 255, 0.20);
  color: rgba(180, 220, 255, 0.68);}
  /* All Cards: scan-line texture */
.election-card::before,
.swing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.03) 3px, 
    rgba(255, 255, 255, 0.01) 4px
  );
  pointer-events: none;
  z-index: 4;}
.election-card:hover .card-tag,
.swing-card:hover .card-tag {
  border-color: var(--accent);
  background: rgba(100, 180, 255, 0.08); /* you can adjust the alpha if needed */
  color: var(--accent);}
/* All Cards: image */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right center;
  opacity:1;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;
  z-index: 0;
  transform-origin: right center;}
.swing-card:hover .card-img,
.election-card:hover .card-img {
  transform: scale(1.28) translateX(22%); /* slightly zoom and move right */
  opacity: 1;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;}
.swing-card:hover,
.election-card:hover {
  transform: translateY(-9px) scale(1.010);
  box-shadow:
  0 2px 6px rgba(0, 0, 0, 0.25),
  0 12px 28px rgba(0, 0, 0, 0.35);}
/* ══════════════════════════════
   ELECTION CARD
══════════════════════════════ */
.election-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 350px;
  background: linear-gradient(135deg, #0e1a2b 0%, #000000 100%);}
.election-card-body {
  position: relative;
  z-index: 6;
  padding-right: clamp(var(--sp-5), 3.5vw, var(--sp-9));
  padding-left: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  width: 58%;
  min-width: 0;}
.election-card .card-tag {/* override  */
  margin-top: -30px; /* moves only the election card tag higher */}
.election-card .card-img {/* override  */
background-size: 90%; }
/* ─── Election card typography ─── */
.election-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.10;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.70);
  max-width: 380px;}
.election-card-desc {
  font-size: var(--f-sm);
  color: rgba(255, 255, 255, 0.46);
  max-width: 380px;
  line-height: 1.70;
  letter-spacing: 0.004em;
  transition: color 350ms ease;}
.election-card:hover .election-card-desc {
  color: rgba(255, 255, 255, 0.7);}
.election-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--f-sm);
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--accent);
  transition:
    gap 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
    color 200ms ease;}
.election-card:hover .election-card-arrow {
  gap: 16px;
  color: #90d4ff;}

/* ══════════════════════════════
   SWING CARD
══════════════════════════════ */
.swing-card {
  display: flex;
  flex-direction: column;
  max-height: 450px;
  background: linear-gradient(155deg, #060e1c 0%, #081428 50%, #0a1830 100%);
  color: #fff;}
.swing-card-body {
  position: relative;
  z-index: 6;
  padding: clamp(var(--sp-5), 3.5vw, var(--sp-8)) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  width: 58%;
  min-width: 0;}
/* ─── Swing card typography ─── */
.swing-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.50);
  margin-top: 14px;
  color: #fff;
  transform: translateY(0);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);}
.swing-card-desc {
  font-size: var(--f-sm);
  color: rgba(255, 255, 255, 0.44);
  line-height: 1.72;
  max-width: 420px;
  letter-spacing: 0.005em;
  margin-top: 8px;
  transition: color 350ms ease;}
.swing-card:hover .swing-card-desc {
  color: rgba(255, 255, 255, 0.66);}
.swing-card .card-divider {
  margin-top: auto;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.00) 100%
  );}
/* ─── Gauge ─── */
.swing-card-gauge {
  margin-top: -40px;
  padding-top: var(--sp-5);}
.swing-card-gauge svg {
  width: min(380px, 100%);
  height: auto;
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 700ms ease;
  filter: drop-shadow(0 1px 8px rgba(0, 172, 252, 0.28));}
.swing-card:hover .swing-card-gauge svg {
  transform: scale(1.04) translateY(-3px);
  filter:
    drop-shadow(0 6px 24px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 16px rgba(120, 160, 255, 0.15));}
.gauge-arc-bg {
  fill: none;
  stroke: rgba(0, 230, 251, 0.04);
  stroke-width: 2;
  stroke-linecap: round;}
.gauge-arc {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;}
.gauge-tick {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.75;
  stroke-linecap: round;}
.gauge-needle {
  fill: #ffffff;
  stroke: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));}
.gauge-pivot {
  fill: #ffffff;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;}
/* ─── Party Bar ─── */
.party-bar {
  height: 6px;
  border-radius: var(--radius-lg);
  background: var(--grad-party);
  margin-top: var(--sp-3);
  opacity: 0.55;
  transform: scaleX(0.5) translateX(120px) translateY(-30px);
  transform-origin: left;
  transition:
    opacity 500ms ease,
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);}
.swing-card:hover .party-bar {
  opacity: 1;
  transform: scaleX(1.5) translateX(30px) translateY(-30px);}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }}
.animate-fade-up {
  animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) both;}
.delay-1 {
  animation-delay: 130ms;}


/* ========================================================================================================================
   FOOTER
   ========================================================================================================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-10) var(--sp-6) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--fg);
  letter-spacing: -0.01em;}
.footer-tagline {
  font-size: var(--f-xs);
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: var(--f-xs);
  color: var(--muted);
  text-align: center;}
.footer-copy {
  font-size: var(--f-xs);
  color: var(--muted);}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;}
.footer-links {
  display: flex;
  gap: var(--sp-4);}
.footer-links a {
  font-size: var(--f-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--dur-fast);}
.footer-links a:hover {
  color: var(--teal);}
.footer-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 100px;
  padding: 2px 10px;
  opacity: 0.6;}


/* ========================================================================================================================
   ANIMATIONS & UTILITIES
   ======================================================================================================================== */
.section-divider { /*horizontal divider*/
    height: 1px;
    background: var(--border);
    margin: 28px 0;}
.updated-badge { /* updated day */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--f-xs);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }}
.animate-fade-up { animation: fade-up .6s var(--ease-out) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .48s; }
.delay-6 { animation-delay: .58s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }}
/* ========================================================================================================================
   RESPONSIVE
   ======================================================================================================================== */
/* ── Keep On Mobile ── */
@media (max-width: 768px) {
  /* ── Reset page spacing (fix top gap) ── */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;}
  /* ── Hero for mobile ── */
  .hero {
    --hero-padding-top: 70px;    /* ← space for fixed topbar */
    --hero-padding-x:   var(--sp-12);
    --hero-padding-bot: var(--sp-4);
    --hero-gap:         var(--sp-4); /* ← gap between hero elements */
    --hero-title-size:  clamp(1.4rem, 25.5vw, 2rem);
    --hero-body-size:   .8rem;

    padding: var(--hero-padding-top) var(--hero-padding-x) var(--hero-padding-bot);
    border-radius: 0;
    margin: 0 !important;}
  .hero-inner { gap: var(--hero-gap); }
  .hero-title { font-size: var(--hero-title-size); }
  .hero-body  { font-size: var(--hero-body-size); }
  .hero-cta-group {
    gap: var(--sp-2);}
  .btn-primary,
  .btn-ghost {
    padding: 7px var(--sp-4);
    font-size: .78rem;}
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 0;
    border-radius: var(--radius-pill);
    overflow: hidden;}
  .hero-stat-divider { display: none; }
  .hero-stat {
    padding: 5px 10px;
    text-align: center;}
  .hero-stat-value {
    font-size: .72rem;
    line-height: 1;}
  .hero-stat-label {
    font-size: .42rem;
    margin-top: 2px;
    letter-spacing: .05em;}
  .b { /* move it back */
    z-index: 0 !important;}
  /* ── Cards section ── */
  .section-header {
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: 0px;}
  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);margin: 0;}
  .cards-section {
    padding: var(--sp-6) var(--sp-6);
    gap: var(--sp-4);}
  /* ── Shared card base ── */
  .election-card,
  .swing-card {
    width: 100%;
    max-width: 380px;
    min-height: 350px;
    max-height: 350px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;}
  .card-stat {
    font-size: 9px;
    padding: 3px 7px;}
  /* ======= Election card ======= */
  .election-card {
    flex-direction: column;}
  .election-card-body {
    width: 100%;
    padding: var(--sp-4);
    justify-content: flex-end;
    gap: 8px;}
  .election-card .card-tag {
    margin-top: 0;}
  .election-card .card-img {
    background-size: cover;
    background-position: center center;}
  .election-card-title {
    font-size: 1.2rem;
    max-width: 100%;}
  .election-card-desc {
    font-size: .78rem;
    max-width: 80%;}
  /* ======= Swing card ======= */
  .swing-card {
    flex-direction: column;
    max-height: none;        /* ← remove the hard crop */
    min-height: 350px;       /* keep a floor, but let it grow */}
  .swing-card .card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.98) 10%,
      rgba(0, 0, 0, 0.95) 25%,
      rgba(2, 6, 23, 0.92) 40%,
      rgba(2, 6, 23, 0.85) 55%,
      rgba(2, 6, 23, 0.70) 68%,
      rgba(2, 6, 23, 0.60) 80%,
      rgba(2, 6, 23, 0.50) 90%,
      rgba(2, 6, 23, 0.185) 96%,
      rgba(255, 255, 255, 0) 100%
    );}
  .swing-card-body {
    width: 100%;
    flex: 1;                 /* ← fill remaining card height */
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;}
  .swing-card .card-img {
    background-size: 210% 110%;
    background-position: 35% 23%;}
  .swing-card-title {
    font-size: 1.15rem;
    margin-top: 6px;}
  .swing-card-desc {
    font-size: .78rem;
    max-width: 100%;}
  .swing-card-gauge {
    margin-top: auto;
    padding-top: var(--sp-2);
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: visible;
    transform: translate(-100px, -2px);}
  .swing-card-gauge svg {
    width: min(170px, 100%);
    overflow: visible;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));}
  .gauge-track {
    stroke-width: 6;
    opacity: 0.25;}
  .gauge-arc {
    stroke-width: 5;
    stroke-linecap: round;}
  .gauge-needle {
    stroke-width: 3.5;
    stroke-linecap: round;}
  .party-bar {/* ── Party bar not needed ── */
    visibility: hidden;}
  /* ── Footer ── */
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-3);}
  .footer-left,
  .footer-right {
    align-items: center;}
  /* ── Topbar visibility ── */
  .topbar {
    display: none !important;}}
/* ── Remove For Desktop ── */
@media (min-width: 769px) {
  .topbar-mobile { display: none !important; }}

