/* ====================================================================
   electionresults.in - Premium Design System & Core Stylesheet
   Refined Luminous Color Scheme, High Contrast Ratio (WCAG AA/AAA Compliant)
   Clean Header, Light Modern Footer, High-Legibility Typography
   ==================================================================== */

:root {
  /* Curated High-Contrast Palette (WCAG AAA Calibrated) */
  --color-primary: #0F172A;        /* Deep Charcoal Navy (Titles, Main Branding) */
  --color-primary-light: #1E293B;  /* Slate-800 */
  --color-text-body: #0F172A;      /* Slate-900 / Charcoal (~ 18.2:1 on white - WCAG AAA) */
  --color-text-muted: #1E293B;     /* Slate-800 (~ 14.1:1 on white - WCAG AAA) */
  --color-text-light: #334155;     /* Slate-700 (~ 9.6:1 on white - WCAG AAA) */
  --color-text-secondary: #1E293B; /* Slate-800 */

  /* Aliases widely referenced in templates (Ensures 100% visible text with zero contrast drop) */
  --text-main: #0F172A;            /* Deep Charcoal Navy */
  --text-body: #0F172A;            /* Slate-900 (18.2:1 contrast ratio on white) */
  --text-secondary: #1E293B;       /* Slate-800 (14.1:1 contrast ratio on white) */
  --text-muted: #334155;           /* Slate-700 (9.6:1 contrast ratio - passes WCAG AAA) */
  --text-light: #475569;           /* Slate-600 (7.0:1 contrast ratio - passes WCAG AAA) */
  --border-color: #CBD5E1;         /* Slate-300 (Crisp, defined card & table borders) */
  --color-accent: #0284C7;         /* Sky-600 */
  --color-emerald-light: #10B981;
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  
  /* Civic & Coalition Accents (Carefully calibrated for high contrast against light bg) */
  --color-saffron: #C2410C;        /* Rich Warm Saffron (WCAG compliant on light bg ~ 5.3:1) */
  --color-saffron-vibrant: #EA580C;/* Vibrant Saffron hover */
  --color-saffron-bg: #FFF7ED;     /* Warm Amber Tint */
  --color-saffron-border: #FDBA74;

  --color-emerald: #047857;        /* Deep Civic Emerald (WCAG ~ 5.8:1) */
  --color-emerald-bg: #ECFDF5;
  --color-emerald-border: #A7F3D0;

  --color-blue: #0369A1;           /* Royal Alliance Blue (WCAG ~ 6.1:1) */
  --color-blue-bg: #F0F9FF;
  --color-blue-border: #BAE6FD;

  --color-crimson: #B91C1C;        /* Deep Alert Crimson (WCAG ~ 6.8:1) */
  --color-crimson-bg: #FEF2F2;
  --color-crimson-border: #FECACA;

  /* Surfaces & Borders */
  --bg-body: #F8FAFC;              /* Clean Slate-50 */
  --bg-card: #FFFFFF;              /* Pure White */
  --bg-card-alt: #F1F5F9;          /* Slate-100 */
  --border-subtle: #CBD5E1;        /* Slate-300 - Crisp definition */
  --border-focus: #94A3B8;         /* Slate-400 */

  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);

  /* Layout Tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --max-width: 1200px;
}

/* CSS Reset & Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--color-text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ====================================================================
   CLEAN, LUMINOUS TOP NAVIGATION (NO DARK BLOCK)
   ==================================================================== */
.top-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Subtle patriotic accent hairline across very top */
.top-nav::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #FF7700 0%, #FF9933 45%, #FFFFFF 50%, #10B981 55%, #059669 100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.brand-chakra {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF7700 0% 33%, #F8FAFC 33% 66%, #059669 66% 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
}

.brand-domain {
  color: var(--color-saffron);
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--color-text-body);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.nav-links a:hover {
  color: var(--color-saffron-vibrant);
}

.nav-links a.active {
  color: var(--color-saffron);
}

/* Navigation Submenu / Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 275px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  padding: 0.45rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.6rem 1.15rem;
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-card-alt);
  color: #4F46E5;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.35rem 0;
}

@media (max-width: 1240px) {
  .nav-item-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0 0.5rem 1rem;
    min-width: auto;
    width: 100%;
  }
  .nav-dropdown-menu a {
    padding: 0.45rem 0.5rem;
    font-size: 0.85rem;
  }
  .dropdown-arrow {
    display: none;
  }
}

.nav-admin-badge {
  background: var(--color-saffron-bg);
  border: 1px solid var(--color-saffron-border);
  color: var(--color-saffron) !important;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ====================================================================
   NAVIGATION DRAWER & HAMBURGER TOGGLE (RESPONSIVE TOP MENU)
   ==================================================================== */
.nav-toggle {
  display: none;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  transition: all 0.2s ease;
  z-index: 1002;
}

.nav-toggle:hover {
  background: var(--bg-card-alt);
  border-color: var(--color-saffron-border);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

.mobile-nav-header,
.mobile-nav-footer,
.nav-backdrop {
  display: none;
}

/* Responsive Navigation Drawer (Tablets & Mobile Viewports) */
@media (max-width: 1240px) {
  .nav-toggle {
    display: flex !important;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-nav-close:hover {
    background: var(--color-crimson-bg);
    color: var(--color-crimson);
    border-color: var(--color-crimson-border);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: 100vh;
    background: #FFFFFF;
    z-index: 10001;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.15);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 2.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-body);
    background: var(--bg-body);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .nav-links a:hover,
  .nav-links a:focus,
  .nav-links a.active {
    background: var(--color-saffron-bg);
    color: var(--color-saffron-vibrant);
    border-color: var(--color-saffron-border);
  }

  .mobile-nav-footer {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-nav-subhead {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
  }

  .mobile-nav-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .mobile-nav-chips a {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-text-body);
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .mobile-nav-chips a:hover {
    border-color: var(--color-saffron);
    color: var(--color-saffron);
    background: var(--color-saffron-bg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ====================================================================
   BREADCRUMBS
   ==================================================================== */
.breadcrumb-container {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  font-size: 0.875rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-body);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--color-saffron);
}

.breadcrumbs .separator {
  color: var(--color-text-light);
}

.breadcrumbs .current {
  color: var(--color-primary);
  font-weight: 700;
}

/* ====================================================================
   LUMINOUS MODERN HERO SECTION (REFINED & ACCESSIBLE)
   ==================================================================== */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--color-primary);
  padding: 2.75rem 0 3.25rem;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-saffron-bg);
  border: 1px solid var(--color-saffron-border);
  color: var(--color-saffron);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-body);
  max-width: 760px;
  line-height: 1.6;
}

/* ====================================================================
   ALLIANCE TALLY BANNER CARDS
   ==================================================================== */
.tally-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.tally-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tally-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tally-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.tally-name {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tally-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.tally-seats {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.tally-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ====================================================================
   CONTENT LAYOUT & CARDS
   ==================================================================== */
.main-content {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  min-width: 0;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
  max-width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ====================================================================
   DATA TABLES (CLEAN, HIGH CONTRAST)
   ==================================================================== */
.table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
  display: block;
}

/* Dedicated High-Contrast Table for Government / ECI Portals (WCAG AAA) */
.official-desk-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF !important;
  border-radius: var(--radius-md);
  border: 2px solid #CBD5E1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.official-desk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  background: #FFFFFF !important;
}

.official-desk-table th {
  background: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #334155;
  white-space: nowrap;
}

.official-desk-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: middle;
  color: #0F172A !important;
}

.official-desk-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.official-desk-table tbody tr:hover {
  background: #F1F5F9;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.data-table th {
  background: var(--bg-card-alt);
  color: var(--color-primary);
  font-weight: 800;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--color-text-body);
}

.data-table tbody tr:hover {
  background-color: #F8FAFC;
}

.data-table tr.winner-row {
  background-color: #F0FDF4;
}

.party-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.party-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Vote Share Progress Bar */
.vote-share-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
}

.vote-pct-label {
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 45px;
  text-align: right;
  color: var(--color-primary);
}

/* Candidate Key Affidavits Card */
.stat-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-metric {
  background: #FFFFFF;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
}

.stat-value.cases-warning {
  color: var(--color-crimson);
}

/* ====================================================================
   LIVE / BREAKING NEWS TICKER & SECTIONS
   =================================================================== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: liveBlink 1.5s infinite ease-in-out;
}

@keyframes liveBlink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-saffron-bg);
  border: 1px solid var(--color-saffron-border);
  color: var(--color-saffron);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.video-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-crimson-bg);
  border: 1px solid var(--color-crimson-border);
  color: var(--color-crimson);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.breaking-news-bar {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-news-content {
  font-weight: 700;
  color: #991B1B;
  flex: 1;
}

.breaking-news-content a {
  color: #991B1B;
  text-decoration: underline;
}

/* News Hub Components */
.news-category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.news-filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-filter-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-category-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 250px;
}

.news-category-dropdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-category-select {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-primary);
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  width: 100%;
  max-width: 280px;
}

.news-spotlight-section {
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.1);
}

.news-spotlight-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 1.25rem;
}

.news-spotlight-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
}

.news-spotlight-desc {
  color: #F1F5F9;
  font-size: 0.92rem;
  max-width: 780px;
  margin-top: 0.25rem;
  font-weight: 500;
}

.news-spotlight-chips-scroll {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pill-btn.bypoll-chip {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 750;
  box-shadow: none !important;
}

.pill-btn.bypoll-chip:hover,
.pill-btn.bypoll-chip:active {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: #FFFFFF !important;
}

.btn-spotlight-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-spotlight-dark:hover,
.btn-spotlight-dark:active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

/* News Section Header Utilities */
.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.news-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-section-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0;
}

.news-section-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pill-btn.highlight-saffron {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(234, 88, 12, 0.08);
  color: var(--color-saffron-vibrant);
  border-color: rgba(234, 88, 12, 0.3);
  font-weight: 700;
}

.pill-btn.highlight-indigo {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(79, 70, 229, 0.08);
  color: #4F46E5;
  border-color: rgba(79, 70, 229, 0.3);
  font-weight: 700;
}

/* Category & Label Pills - High Contrast WCAG AAA */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.pill-btn:hover, .pill-btn.active {
  background: #C2410C;
  border-color: #C2410C;
  color: #FFFFFF !important;
  box-shadow: 0 2px 4px rgba(194, 65, 12, 0.25);
}

.label-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card-alt);
  color: var(--color-text-body);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.label-pill:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* Lite YouTube Facade */
.lite-yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0F172A;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lite-yt-facade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  transition: background 0.2s ease;
}

.lite-yt-facade:hover::before {
  background: rgba(15, 23, 42, 0.1);
}

.lite-yt-play-btn {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 44px;
  background-color: rgba(220, 38, 38, 0.95);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.lite-yt-facade:hover .lite-yt-play-btn {
  transform: scale(1.1);
  background-color: #DC2626;
}

.lite-yt-play-btn svg {
  fill: #FFFFFF;
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.lite-yt-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Article Cards */
.article-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.article-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #F1F5F9;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--color-saffron);
}

.article-summary {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* ====================================================================
   BUTTONS & FORMS
   ==================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-primary);
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--color-saffron);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #9A3412;
}

.btn-navy {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-navy:hover {
  background-color: var(--color-primary-light);
}

.btn-outline {
  background-color: #FFFFFF;
  border-color: var(--border-subtle);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--border-focus);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
}

.alert-success {
  background-color: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  color: #065F46;
}

.alert-danger {
  background-color: var(--color-crimson-bg);
  border: 1px solid var(--color-crimson-border);
  color: #991B1B;
}

/* ====================================================================
   CLEAN, LIGHT MODERN FOOTER (NO HEAVY DARK BLOCK)
   ==================================================================== */
.site-footer {
  background: #F1F5F9;             /* Slate-100 Luminous Surface */
  color: var(--color-text-body);
  border-top: 2px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col ul li a {
  color: var(--color-text-body);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: var(--color-saffron);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ====================================================================
   HOMEPAGE PREMIUM REDESIGN DESIGN SYSTEM
   ==================================================================== */

/* 1. Live Breaking News Ticker */
.live-ticker-wrap {
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.45rem 0;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 100%;
}

.live-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.live-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DC2626;
  color: #FFFFFF;
  font-weight: 850;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pulse-live 1.4s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}

.live-ticker-marquee-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
}

.live-ticker-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerMarquee 34s linear infinite;
  will-change: transform;
}

.live-ticker-marquee-track:hover {
  animation-play-state: paused;
}

.live-ticker-marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  padding-right: 1.25rem;
}

.live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #F1F5F9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.live-ticker-item:hover {
  color: #FDBA74;
}

.live-ticker-sep {
  color: #64748B;
  font-size: 0.7rem;
}

@keyframes tickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 2. Hero Interactive Command Center */
.hero-epic {
  background: radial-gradient(circle at 80% 20%, rgba(255, 153, 51, 0.07) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(3, 105, 161, 0.06) 0%, transparent 45%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0 3.5rem;
  position: relative;
}

.hero-epic .hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.hero-epic .hero-title-gradient {
  background: linear-gradient(135deg, #0F172A 30%, #C2410C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-epic .hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-body);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 3. Hero Live Search & Fast Filter Bar */
.hero-search-container {
  max-width: 780px;
  margin-bottom: 2.25rem;
  position: relative;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-bar:focus-within {
  border-color: var(--color-saffron);
  box-shadow: 0 10px 28px -4px rgba(194, 65, 12, 0.15);
}

.hero-search-icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.hero-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
}

.hero-search-input::placeholder {
  color: #475569;
  font-weight: 500;
  opacity: 1;
}

.hero-search-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.hero-search-btn:hover {
  background: var(--color-saffron);
}

/* Fast Search Autocomplete Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #F8FAFC;
}

.search-item-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.search-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.search-item-badge {
  background: var(--bg-card-alt);
  color: var(--color-text-muted);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.hero-trending-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.hero-trending-label {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-trend-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--color-text-body);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.hero-trend-chip:hover {
  border-color: var(--color-saffron);
  color: var(--color-saffron);
  background: var(--color-saffron-bg);
}

/* 4. The 543-Seat Parliament Majority Meter */
.parliament-command-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
  margin-top: 1rem;
}

.parliament-command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.parliament-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.parliament-majority-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Majority Bar Container */
.parliament-gauge-wrap {
  position: relative;
  margin: 1.75rem 0 2rem;
}

.parliament-bar {
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  background: #E2E8F0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.parliament-segment {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.parliament-segment-nda {
  background: linear-gradient(90deg, #F97316 0%, #EA580C 100%);
}

.parliament-segment-india {
  background: linear-gradient(90deg, #0284C7 0%, #0369A1 100%);
}

.parliament-segment-others {
  background: linear-gradient(90deg, #94A3B8 0%, #64748B 100%);
}

/* Center Majority Marker Pin */
.majority-pin {
  position: absolute;
  left: 50.09%; /* 272 / 543 = 50.09% */
  top: -12px;
  bottom: -12px;
  width: 2px;
  background: #0F172A;
  z-index: 5;
  transform: translateX(-50%);
}

.majority-pin-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.majority-pin-badge::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

/* Coalition Scoreboard Cards */
.coalition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.coalition-box {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.coalition-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -2px rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}

.coalition-box-nda {
  border-top: 4px solid #C2410C;
}

.coalition-box-india {
  border-top: 4px solid #0369A1;
}

.coalition-box-others {
  border-top: 4px solid #64748B;
}

.coalition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.coalition-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.coalition-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.coalition-tag-nda {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FDBA74;
}

.coalition-tag-india {
  background: #F0F9FF;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.coalition-tag-others {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.coalition-seats {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0.25rem 0 0.5rem;
  color: var(--color-primary);
}

.coalition-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.coalition-parties-list {
  font-size: 0.8rem;
  color: var(--color-text-body);
  line-height: 1.45;
}

.coalition-lead-badge {
  font-weight: 700;
  color: var(--color-primary);
}

/* 5. Civic Scale Statistics Strip */
.civic-scale-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
}

.civic-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.civic-stat-card {
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--border-subtle);
}

.civic-stat-card:last-child {
  border-right: none;
}

.civic-stat-val {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.civic-stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-body);
}

.civic-stat-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* 6. Star Duels / Battleground Showcase Cards */
.duel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.duel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.1);
}

.duel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.duel-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-saffron);
}

.duel-constituency-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.duel-constituency-title a {
  color: inherit;
  text-decoration: none;
}

.duel-constituency-title a:hover {
  color: var(--color-saffron);
}

/* Head-to-Head Candidate Duel Box */
.duel-candidates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
  position: relative;
}

.duel-candidate-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #F8FAFC;
  position: relative;
}

.duel-candidate-box.winner-box {
  background: rgba(16, 185, 129, 0.05);
  border-color: #A7F3D0;
}

.duel-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.duel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.duel-cand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.duel-cand-party {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.duel-cand-votes {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.duel-cand-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.duel-cand-bar {
  height: 6px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  overflow: hidden;
}

.duel-cand-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.duel-verdict-banner {
  background: rgba(4, 120, 87, 0.08);
  border-left: 4px solid var(--color-emerald);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.duel-margin-pill {
  display: inline-block;
  font-weight: 800;
  color: var(--color-emerald);
}

/* 7. State Assembly Matrix Hub Cards */
.state-hub-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.state-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-saffron);
}

.state-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-saffron);
}

.state-hub-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.state-hub-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.state-hub-metric {
  background: #F8FAFC;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
}

.state-hub-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}

.state-hub-metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* 8. Candidate Affidavit & Transparency Spotlight */
.transparency-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.transparency-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.transparency-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.transparency-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: #FFB366;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.transparency-lbl {
  font-size: 0.825rem;
  color: #E2E8F0;
  font-weight: 600;
}

/* 9. FAQ Interactive Semantic Accordion */
.faq-wrap {
  margin-bottom: 3.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 900px;
  margin: 1.5rem 0 0;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item[open] {
  border-color: var(--color-saffron-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-saffron);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--color-text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid #F1F5F9;
  padding-top: 1rem;
}

/* 10. Organic Search Editorial Guide Cards */
.editorial-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.editorial-guide-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-guide-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.editorial-guide-card p {
  font-size: 0.875rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 11. Civic Alert / Updates CTA Bar */
.election-alert-bar {
  background: linear-gradient(90deg, #FFF7ED 0%, #F0FDF4 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.alert-bar-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.alert-bar-text p {
  font-size: 0.925rem;
  color: var(--color-text-body);
}

.alert-bar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* 12. Tamil Nadu By-Election Spotlight & Campaign Video Styling */
.nav-pulse-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: rgba(194, 65, 12, 0.08) !important;
  color: var(--color-saffron) !important;
  font-weight: 750 !important;
  padding: 0.22rem 0.6rem !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid rgba(194, 65, 12, 0.25) !important;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.nav-pulse-link:hover {
  background: var(--color-saffron) !important;
  color: #FFFFFF !important;
  border-color: var(--color-saffron);
}

.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DC2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.bypoll-spotlight-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  padding: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.bypoll-spotlight-box::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none;
}

.bypoll-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #FCA5A5;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.bypoll-grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.bypoll-const-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bypoll-const-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.bypoll-cand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.bypoll-cand-row:last-child {
  border-bottom: none;
}

.bypoll-cand-name {
  font-weight: 600;
  color: #F8FAFC;
}

.bypoll-cand-party {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: opacity 0.15s ease;
}

.bypoll-cand-party:hover {
  opacity: 0.85;
}

.bypoll-cand-name:hover {
  text-decoration: underline !important;
  color: #93C5FD !important;
}

.btn-bypoll-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bypoll-action:hover {
  background: #FFFFFF;
  color: #0F172A !important;
  border-color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bypoll-const-card .btn,
.bypoll-const-card .btn-outline {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
}

.bypoll-const-card .btn:hover,
.bypoll-const-card .btn-outline:hover {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

.bypoll-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.bypoll-video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.bypoll-video-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bypoll-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.bypoll-video-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.bypoll-video-title a {
  color: inherit;
  text-decoration: none;
}

.bypoll-video-title a:hover {
  color: var(--color-saffron);
}

/* Responsive Rules for New Homepage */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .coalition-grid {
    grid-template-columns: 1fr;
  }
  .civic-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .transparency-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-epic .hero-title {
    font-size: 2rem;
  }
  .hero-search-bar {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-search-btn {
    width: 100%;
  }
  .civic-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .civic-stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .duel-candidates-row {
    grid-template-columns: 1fr;
  }
  .election-alert-bar {
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* By-Poll Action CTA Button with High Contrast & Readability */
.btn-bypoll-action {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #800020;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.4);
  transition: all 0.2s ease-in-out;
}

.btn-bypoll-action:hover {
  background-color: #990026;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(128, 0, 32, 0.6);
}

/* Party Detail KPI Stats Grid Layout */
.party-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 1200px) {
  .party-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .party-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.party-stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.party-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* ====================================================================
   APP-STYLE MOBILE UX & ERGONOMICS (< 768px)
   Fluid Native App Feel, Zero-Latency Tap Targets, Safe-Area Dock
   ==================================================================== */

/* Touch Target Ergonomics & Zero Latency */
button, a, input, select, textarea, .pill-btn, .bottom-dock-item, .mobile-chip, .btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll & remove excessive margins */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 16px));
  }

  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-content {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .site-footer {
    padding-top: 1.75rem !important;
    padding-bottom: 1rem !important;
  }

  /* Minimal Top Header */
  .top-nav .nav-inner {
    height: 3.5rem;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }
  .brand-chakra {
    width: 26px;
    height: 26px;
  }

  /* Compact Harmonized Mobile Typography (< 768px) */
  h1, .hero-title, .page-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
  }

  h2, .section-title, .news-spotlight-title {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }

  h3, .card-title, .article-title {
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
  }

  h4 {
    font-size: 0.9rem !important;
  }

  .hero-subtitle, .page-subtitle {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  p, .article-summary {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
  }

  /* Remove excessive card paddings for native app density */
  .card,
  .tally-card,
  .stat-metric,
  .duel-card,
  .bypoll-spotlight-box,
  .parliament-command-box,
  .transparency-banner,
  .editorial-guide-card,
  .election-alert-bar,
  .state-hub-card {
    padding: 0.85rem 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: var(--radius-md) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Compact Mobile Grids (No Overflow) */
  .grid-2,
  .grid-3,
  .grid-4,
  .tally-grid,
  .coalition-grid,
  .bypoll-grid-cols,
  .transparency-grid,
  .editorial-guides-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .civic-stats-grid,
  .party-stats-grid,
  .stat-card-group {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .civic-stat-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 0.5rem !important;
  }

  /* Tables: Fluid responsive touch scrolling */
  .table-responsive,
  .official-desk-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin-bottom: 1rem !important;
  }

  .data-table th,
  .data-table td,
  .official-desk-table th,
  .official-desk-table td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.82rem !important;
  }

  /* Hero search and action elements */
  .hero-search-bar {
    flex-direction: column !important;
    gap: 0.65rem !important;
    padding: 0.5rem !important;
  }
  .hero-search-btn {
    width: 100% !important;
    padding: 0.65rem !important;
  }

  /* Breadcrumbs: Smooth single-line horizontal scroll */
  .breadcrumb-container {
    padding: 0.45rem 0 !important;
  }
  .breadcrumbs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    font-size: 0.78rem !important;
  }
  .breadcrumbs::-webkit-scrollbar {
    display: none !important;
  }

  /* Live Ticker container */
  .live-ticker-wrap {
    overflow: hidden !important;
  }

  /* By-Poll & Highlight sections on Mobile (< 768px) */
  .bypoll-card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .bypoll-main-card,
  .bypoll-highlight-box,
  .bypoll-live-banner,
  .bypoll-dark-section,
  [style*="linear-gradient"] {
    padding: 0.85rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.25rem !important;
  }

  .bypoll-meta-strip {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.25rem !important;
    padding: 0.5rem 0.35rem !important;
    font-size: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .bypoll-meta-strip > div > div:first-child {
    font-size: 0.65rem !important;
  }

  .bypoll-meta-strip > div > div:last-child {
    font-size: 0.82rem !important;
  }

  .bypoll-vacancy-box {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.85rem !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  .bypoll-winner-box {
    padding: 0.75rem 0.75rem !important;
    margin-bottom: 0.85rem !important;
    box-sizing: border-box !important;
  }

  .bypoll-winner-row {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    justify-content: space-between !important;
  }

  .bypoll-winner-row h4 {
    font-size: 1.05rem !important;
  }

  .bypoll-runnerup-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .bypoll-stat-tile-grid,
  .bypoll-nomination-grid,
  .bypoll-schedule-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .bypoll-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .bypoll-summary-card {
    padding: 0.75rem 0.75rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .bypoll-summary-card > div:last-child {
    text-align: left !important;
    width: 100% !important;
    border-top: 1px dashed #86EFAC;
    padding-top: 0.5rem;
  }

  .bypoll-alert-box {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.8rem !important;
    box-sizing: border-box !important;
  }

  .bypoll-schedule-box {
    padding: 0.85rem 0.65rem !important;
  }

  .bypoll-tab-buttons {
    width: 100% !important;
  }
  .bypoll-tab-buttons button {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.8rem !important;
  }

  /* Alliance Dynamics (Pre vs Post Alliances) Mobile Formatting */
  .alliance-dynamics-section {
    padding: 0.85rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1.25rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .alliance-dynamics-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .alliance-dynamics-col {
    padding: 0.75rem 0.65rem !important;
    border-radius: var(--radius-sm) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .alliance-item-card {
    padding: 0.75rem 0.65rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Universal reset for any inline minmax grids that would cause horizontal overflow */
  [style*="minmax(340px"],
  [style*="minmax(360px"],
  [style*="minmax(420px"],
  [style*="minmax(460px"],
  [style*="minmax(320px"],
  [style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Universal reset for sections/divs with inline large padding */
  section[style*="padding: 1.75rem"],
  section[style*="padding: 2rem"],
  section[style*="padding: 2.25rem"],
  div[style*="padding: 1.75rem"],
  div[style*="padding: 2rem"],
  div[style*="padding: 2.25rem"] {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Form 7A Candidate table wrapper on mobile */
  .official-desk-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .official-desk-table {
    min-width: 520px !important;
    width: 100% !important;
  }
}

/* Assembly Subnav Desktop vs Mobile Switchers */
.assembly-subnav-desktop,
.assembly-year-switcher-desktop,
.stats-year-picker-desktop {
  display: flex;
}

.assembly-subnav-mobile,
.assembly-year-switcher-mobile,
.stats-year-picker-mobile {
  display: none;
}

@media (max-width: 768px) {
  .assembly-subnav-desktop,
  .assembly-year-switcher-desktop,
  .stats-year-picker-desktop {
    display: none !important;
  }

  .assembly-subnav-mobile,
  .assembly-year-switcher-mobile,
  .stats-year-picker-mobile {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
  }

  .assembly-subnav-mobile-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
  }

  .subnav-active-name {
    color: var(--color-saffron);
    font-weight: 850;
    text-transform: none;
    font-size: 0.82rem;
  }

  .assembly-select-wrapper {
    position: relative;
    width: 100%;
  }

  .assembly-subnav-select,
  .assembly-year-select {
    width: 100% !important;
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 800;
    font-family: inherit;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: all 0.15s ease;
    touch-action: manipulation;
  }

  .assembly-subnav-select:focus,
  .assembly-year-select:focus {
    border-color: var(--color-saffron);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
  }

  .assembly-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 800;
  }
}

/* Horizontal Scroll Chips Bar */
.mobile-chips-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-chips-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 3.5rem;
    z-index: 990;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-chips-bar::-webkit-scrollbar {
    display: none;
  }
}

.mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.mobile-chip:hover,
.mobile-chip:active,
.mobile-chip.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.mobile-chip-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Fixed Bottom Navigation Dock */
.bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  .bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    height: calc(56px + env(safe-area-inset-bottom, 16px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
  }
}

.bottom-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.2rem 0.4rem;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, transform 0.1s ease;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

.bottom-dock-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  margin-bottom: 2px;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.bottom-dock-item.active,
.bottom-dock-item:active {
  color: var(--color-saffron, #C2410C);
}

.bottom-dock-item.active svg {
  stroke: var(--color-saffron, #C2410C);
  transform: scale(1.08);
}

.bottom-dock-item .dock-badge-pulse {
  position: absolute;
  top: 4px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 6px #10B981;
}

/* Pull-Up Bottom Sheet Modal & Drawer */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.bottom-sheet-drawer.active {
  transform: translateY(0);
}

.bottom-sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: 0.65rem 0 0.35rem 0;
  cursor: grab;
}

.bottom-sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 9999px;
  background: #CBD5E1;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bottom-sheet-title {
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--color-primary);
  margin: 0;
}

.bottom-sheet-close {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
}

.bottom-sheet-content {
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(85vh - 120px);
}

.bottom-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.bottom-sheet-nav-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-primary);
  transition: all 0.15s ease;
}

.bottom-sheet-nav-card:active {
  background: #FFFFFF;
  border-color: var(--color-saffron);
  transform: scale(0.98);
}

.bottom-sheet-nav-card strong {
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.bottom-sheet-nav-card span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Mobile Header Action Buttons */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-header-actions {
    display: flex;
  }
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
  background: #FFFFFF;
  border-color: var(--color-saffron);
  color: var(--color-saffron);
}

.mobile-action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

/* Bottom Sheet Quick Search Bar */
.bottom-sheet-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.bottom-sheet-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.92rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  color: var(--color-primary);
  font-family: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.bottom-sheet-search-input:focus {
  background: #FFFFFF;
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.bottom-sheet-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Safe Area Inset Utility */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
/* ==========================================================================
   Article Detail & Classification Entity Desk
   ========================================================================== */
.article-content-card {
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.85;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.article-classification-card {
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  background: var(--bg-card-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.article-classification-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.article-classification-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-classification-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 125px;
  padding-top: 0.25rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.article-classification-items {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex: 1;
}

/* ==========================================================================
   Mobile Responsive Rules for News Hub (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Breaking / Live Banner on Mobile */
  .breaking-news-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 1.25rem !important;
    text-align: left !important;
  }

  .breaking-news-bar .live-badge {
    align-self: flex-start !important;
    margin-bottom: 0.2rem !important;
  }

  .breaking-news-content {
    width: 100% !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .breaking-news-content a {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    color: #991B1B !important;
    font-weight: 800 !important;
    word-break: break-word !important;
  }

  /* Follow Live button removed for mobile only */
  .breaking-live-btn {
    display: none !important;
  }

  /* 2. Top Filter Toolbar on Mobile */
  .news-category-toolbar {
    padding: 0.65rem 0.75rem !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  .news-filter-chips-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding-bottom: 0.25rem !important;
    gap: 0.45rem !important;
    scrollbar-width: none !important;
  }

  .news-filter-chips-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .news-filter-chips-scroll .pill-btn,
  .news-filter-label {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .news-category-dropdown-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }

  .news-category-select {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 3. Special By-Election Spotlight Box on Mobile */
  .news-spotlight-section {
    padding: 1rem 0.85rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2rem !important;
    border-radius: var(--radius-md) !important;
  }

  .news-spotlight-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.85rem !important;
    gap: 0.75rem !important;
  }

  .news-spotlight-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .news-spotlight-desc {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .news-spotlight-btn-wrap {
    width: 100% !important;
  }

  .news-spotlight-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Single-row horizontal swipe for by-election category chips on mobile */
  .news-spotlight-chips-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.45rem !important;
    padding-bottom: 0.35rem !important;
    margin-bottom: 1rem !important;
    scrollbar-width: none !important;
  }

  .news-spotlight-chips-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .news-spotlight-chips-scroll .pill-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 0.35rem 0.7rem !important;
  }

  /* 4. Global Grid & Table Responsiveness for Mobile Viewports */
  .grid-2, .grid-3, .grid-4, .grid-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 1.25rem !important;
  }

  .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-sidebar > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-md) !important;
    display: block !important;
    margin-bottom: 1rem !important;
  }

  .table-responsive .data-table,
  .table-responsive table {
    min-width: 580px !important;
    width: 100% !important;
  }

  /* 5. Constituency Winner Banner Card & Sub-sections */
  .winner-banner-card {
    padding: 1.15rem 1rem !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1.5rem !important;
  }

  .winner-banner-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  .winner-info-wrap {
    width: 100% !important;
    min-width: 0 !important;
    gap: 0.85rem !important;
  }

  .winner-info-wrap h2 {
    font-size: 1.25rem !important;
    word-break: break-word !important;
  }

  .winner-party-meta {
    flex-wrap: wrap !important;
    word-break: break-word !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  .winner-stats-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding-top: 0.85rem !important;
    margin-top: 0.25rem !important;
  }

  .district-assembly-box {
    padding: 1.15rem 1rem !important;
    border-radius: var(--radius-md) !important;
    margin-top: 2rem !important;
  }

  /* 6. Mobile News Section Headers: Badge TOP -> Title -> Subtitle */
  .news-section-header,
  .trending-section-header,
  .video-section-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.65rem !important;
  }

  .news-section-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .news-section-title-wrap .hot-badge,
  .news-section-title-wrap .video-spotlight-badge {
    align-self: flex-start !important;
    margin-bottom: 0.15rem !important;
  }

  .news-section-title {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: var(--color-primary) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .news-section-subtitle {
    font-size: 0.8rem !important;
    color: var(--color-text-muted) !important;
    margin-top: 0.1rem !important;
  }

  /* 7. Mobile Footer Streamlining & Unwanted Space Removal */
  .site-footer {
    padding: 1.75rem 0 0.5rem !important;
    margin-top: 2rem !important;
    font-size: 0.84rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .footer-col h4 {
    font-size: 0.92rem !important;
    margin-bottom: 0.65rem !important;
  }

  .footer-col ul li {
    margin-bottom: 0.4rem !important;
  }

  .footer-col ul li a {
    font-size: 0.84rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.4rem !important;
    text-align: center !important;
    padding-top: 1rem !important;
    padding-bottom: 0.25rem !important;
    font-size: 0.78rem !important;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 16px)) !important;
  }

  /* 8. Home Page Live Desk Mobile Optimizations */
  .live-ticker-wrap {
    padding: 0.35rem 0 !important;
  }

  .live-ticker-inner {
    gap: 0.5rem !important;
  }

  .live-ticker-badge {
    padding: 0.18rem 0.45rem !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
  }

  .live-ticker-badge-text {
    font-size: 0.68rem !important;
  }

  .live-ticker-marquee-track {
    animation-duration: 25s !important;
  }

  .live-ticker-item {
    font-size: 0.78rem !important;
  }

  /* 9. Article Detail & Entity Classification Responsive Rules (Mobile) */
  .article-content-card {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .article-classification-card {
    padding: 1.15rem 1rem !important;
    margin-bottom: 2rem !important;
  }

  .article-classification-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.85rem !important;
  }

  .article-classification-list {
    gap: 1.15rem !important;
  }

  .article-classification-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  .article-classification-label {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.75rem !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--color-text-muted) !important;
    padding-top: 0 !important;
    margin-bottom: 0.15rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding-bottom: 0.25rem !important;
  }

  .article-classification-items {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    flex: none !important;
  }

  .article-classification-items .party-badge,
  .article-classification-items .pill-btn,
  .article-classification-items .label-pill,
  .article-classification-items .btn {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
  }
}

/* ====================================================================
   COOKIE CONSENT & TRANSPARENCY BAR (GOOGLE ADSENSE COMPLIANT)
   ==================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.4);
  border: 1.5px solid #334155;
  z-index: 10050;
  padding: 1.15rem 1.35rem;
  font-size: 0.85rem;
  line-height: 1.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cookie-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 850;
  color: #F8FAFC;
  margin-bottom: 0.35rem;
}

.cookie-desc {
  margin: 0 0 0.85rem 0;
  color: #CBD5E1;
  font-size: 0.825rem;
  line-height: 1.5;
}

.cookie-desc a {
  color: #93C5FD;
  text-decoration: underline;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 750;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  min-height: 40px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.cookie-btn-accept {
  background: #4F46E5;
  color: #FFFFFF;
  border: none;
}

.cookie-btn-accept:hover {
  background: #4338CA;
}

.cookie-btn-dismiss {
  background: transparent;
  color: #E2E8F0;
  border: 1px solid #475569;
}

.cookie-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .cookie-consent-bar {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    bottom: calc(64px + env(safe-area-inset-bottom, 16px));
    padding: 1rem 1.15rem;
  }

  .cookie-btn {
    min-height: 44px;
    flex: 1;
  }
}




