@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{
  /* POLITISO Premium Typography System */
  --font-display:'Manrope','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-text:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;

  /* Crisp Restrained Radii (No oversized bubble cards) */
  --radius-xs:4px;
  --radius-sm:6px;
  --radius-md:8px;
  --radius-lg:12px;
  --radius-xl:14px;
  --radius-2xl:16px;
  --radius-pill:9999px;
  --radius:8px;

  /* Fast, Precise Micro-Interaction Transitions */
  --ease-apple:cubic-bezier(0.16,1,0.3,1);
  --transition-fast:140ms var(--ease-apple);
  --transition-smooth:220ms var(--ease-apple);

  /* Primary Light Mode Palette */
  --bg-page:#F8FAFC;
  --bg-page-subtle:#F1F5F9;
  --bg-surface:#FFFFFF;
  --bg-surface-elevated:#FFFFFF;
  --bg-control:#F1F5F9;
  --bg-control-hover:#E2E8F0;
  --bg-control-active:rgba(242,107,56,0.1);
  --bg-tertiary:#F1F5F9;
  --bg-hover:#F1F5F9;

  /* Clean Borders & Dividers */
  --border-subtle:#F1F5F9;
  --border-default:#E2E8F0;
  --border-control:#CBD5E1;
  --border-control-hover:#94A3B8;
  --border-control-active:#F26B38;

  /* Typography Colors */
  --text-primary:#0B0D12;
  --text-normal:#0B0D12;
  --text-default:#0B0D12;
  --text-main:#0B0D12;
  --text-secondary:#344054;
  --text-muted:#64748B;
  --text-dim:#98A2B3;
  --text-on-accent:#FFFFFF;
  --text-active-control:#F26B38;

  /* Brand Accents */
  --accent-primary:#F26B38;
  --accent-hover:#DC5A28;
  --accent-active:#C84E20;
  --accent-subtle:rgba(242,107,56,0.08);
  --accent-glow:rgba(242,107,56,0.22);

  /* Semantic Colors */
  --status-success:#23966A;
  --status-success-bg:rgba(35,150,106,0.1);
  --status-warning:#D6A84B;
  --status-warning-bg:rgba(214,168,75,0.12);
  --status-error:#D94A4A;
  --status-error-bg:rgba(217,74,74,0.1);
  --political-blue:#4267D5;
  --political-blue-bg:rgba(66,103,213,0.1);

  /* Clean Subtle Elevation Shadows */
  --shadow-xs:0 1px 2px 0 rgba(16,24,40,0.05);
  --shadow-sm:0 1px 3px 0 rgba(16,24,40,0.08),0 1px 2px -1px rgba(16,24,40,0.04);
  --shadow-md:0 4px 12px -2px rgba(16,24,40,0.08),0 2px 4px -2px rgba(16,24,40,0.04);
  --shadow-lg:0 12px 24px -4px rgba(16,24,40,0.1),0 4px 8px -2px rgba(16,24,40,0.04);
  --focus-ring:0 0 0 2px rgba(242,107,56,0.35);

  /* Clean Surfaces (replacing excessive glassmorphism) */
  --glass-surface:#FFFFFF;
  --glass-surface-subtle:#F8FAFC;
  --glass-surface-elevated:#FFFFFF;
  --glass-surface-control:#F1F5F9;
  --glass-surface-hover:#E2E8F0;
  --glass-surface-active:rgba(242,107,56,0.1);
  --glass-border:#E2E8F0;
  --glass-border-subtle:#F1F5F9;
  --glass-border-highlight:#CBD5E1;
  --glass-nav-bg:rgba(255,255,255,0.95);
  --glass-active-pill:#FFFFFF;
  --glass-pill-shadow:var(--shadow-xs);
  --glass-shadow-sm:var(--shadow-xs);
  --glass-shadow-md:var(--shadow-sm);
  --glass-shadow-lg:var(--shadow-md);
  --glass-blur:blur(8px);
  --glass-blur-heavy:blur(12px);
  --glass-blur-nav:blur(10px);

  /* Ambient Lighting */
  --page-ambient-glow:none;

  /* Legacy & Party Mappings */
  --navy:#101828;--navy2:#1C2430;--blue:#4267D5;--gold:#D6A84B;--green:#23966A;--orange:#F26B38;
  --ink:var(--text-primary);--muted:var(--text-muted);--line:var(--border-default);--paper:var(--bg-page-subtle);--white:var(--bg-surface);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px;-webkit-text-size-adjust:100%}
body{margin:0;background-color:var(--bg-page);background-image:var(--page-ambient-glow);background-attachment:fixed;color:var(--text-primary);font-family:var(--font-text);font-size:14px;line-height:1.55;width:100%;min-width:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit}
button{cursor:pointer;user-select:none}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);letter-spacing:-0.025em;font-weight:700}
.topline{height:32px;background:rgba(10,19,35,0.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,0.08);color:#b6c5dc;padding:0 max(calc((100% - 1220px)/2),24px);font-family:var(--font-mono);font-size:10px;font-weight:600;letter-spacing:1.2px;display:flex;align-items:center;gap:9px;overflow:hidden;white-space:nowrap}
.live-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,0.25);flex-shrink:0;animation:liveDotPulse 2.5s ease-in-out infinite}
@keyframes liveDotPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 3px rgba(34,197,94,0.25)}50%{transform:scale(1.15);box-shadow:0 0 0 6px rgba(34,197,94,0.1)}}
.topline-right{margin-left:auto;color:#8ea0ba}
.site-header{height:72px;padding:0 max(calc((100% - 1220px)/2),24px);display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--glass-border);background:var(--glass-nav-bg);backdrop-filter:var(--glass-blur-nav);-webkit-backdrop-filter:var(--glass-blur-nav);position:sticky;top:0;z-index:100;box-shadow:0 4px 20px -2px rgba(0,0,0,0.04),inset 0 -1px 0 rgba(255,255,255,0.25);transition:background .28s var(--ease-apple),border-color .28s var(--ease-apple),box-shadow .28s var(--ease-apple)}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:0;text-decoration:none;transition:transform .2s var(--ease-apple)}
.brand:hover{transform:scale(1.02)}
.brand-mark{height:38px;width:38px;border-radius:8px;background:linear-gradient(145deg,#1C2430 0%,#101828 100%);display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:9px 8px;flex-shrink:0;box-shadow:inset 0 1px 1px 0 rgba(255,255,255,0.15),0 4px 12px rgba(11,13,18,0.3);border:1px solid #344054}
.brand-mark span{display:block;width:5px;border-radius:2px 2px 0 0;background:#fff}
.brand-mark span:nth-child(1){height:12px;opacity:.65}
.brand-mark span:nth-child(2){height:19px}
.brand-mark span:nth-child(3){height:15px;background:#F26B38}
.brand-copy{display:flex;flex-direction:column;line-height:1.1;gap:3px;min-width:0}
.brand-copy strong{font:800 20px/1 var(--font-display);letter-spacing:-0.03em;color:var(--text-primary)}
.brand-copy small{font:700 8.5px/1 var(--font-mono);letter-spacing:1.5px;color:var(--accent-primary);white-space:nowrap}
.main-nav{display:flex;align-items:center;gap:4px;padding:4px;border-radius:var(--radius-pill);background:var(--glass-surface-control);border:1px solid var(--glass-border-subtle);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 1px 2px rgba(0,0,0,0.03);height:auto}
.main-nav a{height:34px;padding:0 16px;border-radius:var(--radius-pill);display:flex;align-items:center;justify-content:center;position:relative;color:var(--text-secondary);font-family:var(--font-text);font-size:12.5px;font-weight:500;white-space:nowrap;transition:all .2s var(--ease-apple)}
.main-nav a:hover{color:var(--text-primary);background:rgba(255,255,255,0.5)}
.main-nav a.active{color:var(--accent-primary) !important;background:var(--glass-active-pill) !important;font-weight:700;box-shadow:var(--glass-pill-shadow)}
.main-nav a.active:after{display:none !important}
.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;margin-left:auto}
.search-box kbd{font:600 9px var(--font-mono);background:var(--glass-surface-control);color:var(--text-muted);border:1px solid var(--glass-border-subtle);border-radius:6px;padding:3px 7px;margin-left:8px;letter-spacing:.5px}
.menu-toggle{display:none;background:var(--glass-surface-control);border:1px solid var(--glass-border);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:var(--radius-sm);width:38px;height:38px;font-size:20px;line-height:1;color:var(--text-primary);align-items:center;justify-content:center;cursor:pointer;padding:0;flex-shrink:0;box-shadow:var(--glass-shadow-sm);transition:all .18s var(--ease-apple)}
.menu-toggle:hover{background:var(--glass-surface-hover);transform:scale(1.04)}
.menu-toggle:active{transform:scale(0.95)}
.hero{min-height:540px;background:radial-gradient(circle at 85% 15%,rgba(242,107,56,0.12),transparent 45%),radial-gradient(circle at 15% 85%,rgba(66,103,213,0.08),transparent 45%),linear-gradient(160deg,#101828 0%,#0B0D12 100%);color:#fff;position:relative;overflow:hidden;padding:60px max(calc((100% - 1220px)/2),24px) 50px;display:block}
.hero-grid,.forecast-pattern{position:absolute;inset:0;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(90deg,transparent,#000 50%,#000);pointer-events:none}
.hero:after{content:"";position:absolute;width:580px;height:580px;border:1px solid rgba(255,255,255,0.08);border-radius:50%;right:3%;top:-24%;box-shadow:0 0 0 45px rgba(255,255,255,0.03),0 0 0 90px rgba(255,255,255,0.02);pointer-events:none}
.hero-content,.hero-visual{position:relative;z-index:1}
.eyebrow,.section-kicker{font-size:10px;font-weight:700;letter-spacing:1.65px;color:#98A2B3;display:flex;align-items:center;gap:10px;font-family:var(--font-mono)}
.eyebrow-line{width:25px;height:2px;background:#F26B38}
.hero h1{font:800 clamp(36px,4.2vw,56px)/1.12 var(--font-display);letter-spacing:-0.035em;margin:20px 0 16px;overflow-wrap:break-word;word-break:normal}
.hero h1 em,.forecast-copy h2 em{font-style:normal;color:#F26B38}
.hero-content>p{max-width:475px;color:#98A2B3;font-size:14.5px;line-height:1.75;margin:0 0 24px;font-family:var(--font-text)}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn{height:42px;padding:0 20px;border-radius:var(--radius-sm,6px);display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:13px;border:1px solid transparent;transition:all .2s var(--ease-apple);text-decoration:none;white-space:nowrap;box-sizing:border-box;font-family:var(--font-text)}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn:active{transform:scale(0.98)}
.btn-light{background:#FFFFFF;color:#101828;border:1px solid rgba(16,24,40,0.1);box-shadow:var(--shadow-xs);font-weight:700}
.btn-light span{font-size:15px}
.btn-outline{color:#f8fafc;border-color:rgba(255,255,255,0.25);background:rgba(255,255,255,0.06);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.btn-outline:hover{background:rgba(255,255,255,0.12);border-color:#F26B38;color:#fff}
.hero-footnote{display:flex;gap:8px 12px;align-items:center;color:#98A2B3;font-size:11px;margin-top:24px;flex-wrap:wrap;line-height:1.5;font-family:var(--font-text)}
.shield{height:18px;width:18px;border-radius:50%;background:rgba(35,150,106,0.2);color:#23966A;border:1px solid rgba(35,150,106,0.35);display:inline-flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}
.foot-sep{color:#52647e}
.hero-visual{background:linear-gradient(135deg,rgba(30,45,71,0.75) 0%,rgba(16,26,45,0.65) 100%);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,0.14);border-radius:var(--radius-xl);padding:18px;box-shadow:0 25px 65px rgba(0,0,0,0.4),inset 0 1px 1px rgba(255,255,255,0.2);max-width:520px;width:100%;justify-self:end}
.visual-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:700;letter-spacing:1px;color:#9eafc7;margin-bottom:12px;font-family:var(--font-mono)}
.mini-live{display:flex;align-items:center;gap:6px;font-size:8px;color:#8ed6b7;letter-spacing:.6px}
.mini-live i{width:5px;height:5px;border-radius:50%;background:#66c89b}
.map-panel{height:270px;position:relative;overflow:hidden;border-radius:var(--radius-md);background:#11213a}
.map-grid{position:absolute;inset:0;background-image:linear-gradient(#8198b51a 1px,transparent 1px),linear-gradient(90deg,#8198b51a 1px,transparent 1px);background-size:25px 25px}
.up-map{height:100%;width:100%;position:relative;z-index:1;filter:drop-shadow(0 8px 12px #0002)}
.map-caption{position:absolute;bottom:10px;left:13px;right:13px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;font-weight:700;color:#b9c9e2;z-index:2;font-family:var(--font-mono)}
.visual-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 0 0;gap:10px;width:100%;border-top:1px solid rgba(255,255,255,0.1);margin-top:8px}
.visual-bottom>div{display:flex;flex-direction:column;gap:4px;border-right:1px solid rgba(255,255,255,0.15);padding-left:8px;min-width:0}
.visual-bottom>div:last-child{border:0}
.stat-label{font-size:8px;letter-spacing:.5px;color:#91a2bc;font-weight:700;line-height:1.25;font-family:var(--font-mono)}
.visual-bottom strong{font:800 clamp(20px,2.5vw,25px) var(--font-mono);color:#fff;line-height:1.1;letter-spacing:-0.03em}
.visual-bottom strong small{font-size:10px;color:#9fb0c8}
.float-icon{height:32px;width:32px;background:rgba(234,241,255,0.9);color:#2563eb;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:20px}
.search-band{background:transparent;border-bottom:1px solid var(--border-default);padding:32px max(calc((100% - 1220px)/2),24px);display:grid;grid-template-columns:.8fr 1.2fr;gap:50px;align-items:center}
.search-copy .section-kicker,.section-block .section-kicker,.newsletter .section-kicker{color:#7488a5}
.search-copy h2,.section-heading h2{font:700 24px var(--font-display);margin:5px 0 4px;letter-spacing:-.025em}
.search-copy p,.section-heading p{font-size:13px;color:var(--muted);margin:0;font-family:var(--font-text)}
.search-area{position:relative;width:100%}
.search-box{height:52px;background:var(--glass-surface);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--glass-border);border-radius:var(--radius-pill);display:flex;align-items:center;padding:0 18px;box-shadow:var(--glass-shadow-sm);transition:all .25s var(--ease-apple)}
.search-box:focus-within{border-color:var(--accent-primary);box-shadow:0 0 0 4px var(--accent-glow),var(--glass-shadow-md);transform:translateY(-1px)}
.search-icon{font-size:22px;color:var(--text-muted);margin-right:10px;line-height:1}
.search-box input{border:0;outline:0;flex:1;min-width:0;color:var(--text-primary);font-family:var(--font-text);font-size:13px;background:transparent}
.search-box input::placeholder{color:var(--text-muted);opacity:.8}
.search-results{position:absolute;top:calc(100% + 10px);left:0;right:0;z-index:999;background:var(--glass-surface-elevated);backdrop-filter:var(--glass-blur-heavy);-webkit-backdrop-filter:var(--glass-blur-heavy);border:1px solid var(--glass-border);border-radius:var(--radius-xl, 20px);box-shadow:var(--glass-shadow-lg);max-height:520px;overflow-y:auto;font-family:inherit}
.search-results-header{padding:14px 20px;background:rgba(248,250,252,0.65);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--glass-border-subtle);display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--font-mono);font-size:10.5px;font-weight:700;letter-spacing:.8px;color:var(--text-muted);position:sticky;top:0;z-index:2}
.header-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.header-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:var(--radius-pill);font-size:9.5px;font-weight:700}
.pill-pc{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.pill-ac{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}
.pill-district{background:#ede9fe;color:#6d28d9;border:1px solid #ddd6fe}
.pill-dot{width:5px;height:5px;border-radius:50%;display:inline-block}
.pill-pc .pill-dot{background:#d97706}
.pill-ac .pill-dot{background:#2563eb}
.pill-district .pill-dot{background:#8b5cf6}
.search-result-item{display:flex;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid var(--glass-border-subtle);cursor:pointer;transition:all .18s var(--ease-apple);background:transparent;position:relative;text-align:left}
.search-result-item:last-child{border-bottom:0}
.search-result-item:hover,.search-result-item:focus-visible{outline:none;background:var(--glass-surface-hover)}
.search-result-item.item-pc:hover,.search-result-item.item-pc:focus-visible{border-left:4px solid #f59e0b}
.search-result-item.item-ac:hover,.search-result-item.item-ac:focus-visible{border-left:4px solid #3b82f6}
.search-result-item.item-district:hover,.search-result-item.item-district:focus-visible{border-left:4px solid #8b5cf6}
.item-graphic{flex-shrink:0}
.item-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1}
.icon-pc{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;border:1px solid #fcd34d;box-shadow:0 2px 6px rgba(217,119,6,0.12)}
.icon-ac{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;border:1px solid #93c5fd;box-shadow:0 2px 6px rgba(37,99,235,0.12)}
.icon-district{background:linear-gradient(135deg,#ede9fe,#ddd6fe);color:#6d28d9;border:1px solid #c4b5fd;box-shadow:0 2px 6px rgba(109,40,217,0.12)}
.item-body{flex:1;min-width:0}
.item-headline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.item-name{font:700 15px var(--font-display);color:var(--text-primary);letter-spacing:-.02em}
.item-badge{font-size:9.5px;font-weight:750;letter-spacing:.6px;padding:3px 8px;border-radius:6px;display:inline-flex;align-items:center;gap:4px;font-family:var(--font-mono)}
.badge-pc{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.badge-ac{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}
.badge-district{background:#ede9fe;color:#6d28d9;border:1px solid #ddd6fe}
.badge-dot{width:4.5px;height:4.5px;border-radius:50%;display:inline-block}
.badge-pc .badge-dot{background:#d97706}
.badge-ac .badge-dot{background:#2563eb}
.badge-district .badge-dot{background:#7c3aed}
.item-meta{font:500 12.5px var(--font-text);color:var(--text-secondary);line-height:1.5}
.item-submeta{font:450 11.5px var(--font-text);color:var(--text-muted);margin-top:3px;line-height:1.45}
.item-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.item-map-btn{border:1px solid rgba(59,130,246,0.3);border-radius:var(--radius-pill);background:rgba(59,130,246,0.08);color:#2563eb;padding:6px 12px;font:700 11px var(--font-mono);cursor:pointer;transition:all .18s var(--ease-apple)}
.item-map-btn:hover{background:#2563eb;color:#fff;transform:translateY(-1px)}
.item-action{display:flex;align-items:center;gap:6px;padding:7px 13px;border-radius:var(--radius-pill);font-size:11.5px;font-weight:700;white-space:nowrap;flex-shrink:0;transition:all .18s var(--ease-apple)}
.action-pc{background:#fffbeb;color:#b45309;border:1px solid #fef3c7}
.search-result-item.item-pc:hover .action-pc{background:#fef3c7;color:#92400e;border-color:#fde68a}
.action-ac{background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe}
.search-result-item.item-ac:hover .action-ac{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}
.action-district{background:#f5f3ff;color:#6d28d9;border:1px solid #ddd6fe}
.search-result-item.item-district:hover .action-district{background:#ede9fe;color:#5b21b6;border-color:#c4b5fd}
.action-arrow{font-size:13px;line-height:1}
.search-empty-state{display:flex;align-items:center;gap:14px;padding:26px 20px;color:var(--text-muted)}
.empty-icon{font-size:28px;color:var(--text-muted);line-height:1}
.search-empty-state b{display:block;font-size:14px;color:var(--text-primary);margin-bottom:3px;font-family:var(--font-display)}
.search-empty-state small{font-size:12px;color:var(--text-muted);line-height:1.5;font-family:var(--font-text)}
@media(max-width:580px){.search-results{width:100%;max-width:100%;left:0;right:0}.action-label{display:none}.item-action{padding:6px 8px}.item-submeta{max-width:220px}}
.popular-searches{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:14px}
.popular-searches>span{font:700 9px var(--font-mono);letter-spacing:1px;color:var(--text-muted)}
.popular-searches button{border:1px solid var(--glass-border-subtle);border-radius:var(--radius-pill);background:var(--glass-surface-control);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:5px 12px;color:var(--text-secondary);font-family:var(--font-text);font-size:11px;font-weight:600;transition:all .18s var(--ease-apple)}
.popular-searches button:hover{background:var(--glass-surface-hover);border-color:var(--accent-primary);color:var(--accent-primary);transform:translateY(-1px);box-shadow:var(--glass-shadow-sm)}
.popular-searches button:active{transform:scale(0.96)}
.section-block{padding:66px max(calc((100% - 1220px)/2),24px)}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}
.section-heading h2{font:800 30px var(--font-display);letter-spacing:-0.03em;margin-top:7px}
.text-link{font-size:12px;font-weight:700;color:var(--accent-primary);white-space:nowrap;font-family:var(--font-text);display:inline-flex;align-items:center;transition:color .18s var(--ease-apple)}
.text-link:hover{color:var(--accent-hover)}
.text-link span{font-size:15px;margin-left:5px}
.election-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.election-card{border:1px solid var(--glass-border);border-radius:var(--radius-lg);padding:24px;min-height:303px;display:flex;flex-direction:column;background:var(--glass-surface);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);box-shadow:var(--glass-shadow-sm);transition:all .26s var(--ease-apple);position:relative;overflow:hidden;cursor:pointer}
.election-card:hover{transform:translateY(-4px);box-shadow:var(--glass-shadow-md);border-color:var(--glass-border-highlight)}
.election-card.featured{background:var(--glass-surface-elevated);border-color:var(--glass-border-highlight)}
.card-topline{display:flex;justify-content:space-between;align-items:center}
.card-icon{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#e5edfc,#d6e4fc);color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:18px;box-shadow:inset 0 1px 1px 0 rgba(255,255,255,0.7),0 2px 6px rgba(37,99,235,0.12)}
.card-icon.gold{background:linear-gradient(135deg,#fff2df,#fde4be);color:#b45309;box-shadow:inset 0 1px 1px 0 rgba(255,255,255,0.7),0 2px 6px rgba(180,83,9,0.12)}
.card-icon.green{background:linear-gradient(135deg,#e2f3ec,#c8ebd8);color:#15803d;box-shadow:inset 0 1px 1px 0 rgba(255,255,255,0.7),0 2px 6px rgba(21,128,61,0.12)}
.card-icon.purple{background:linear-gradient(135deg,#f3e8ff,#e9d5ff);color:#7e22ce;box-shadow:inset 0 1px 1px 0 rgba(255,255,255,0.7),0 2px 6px rgba(126,34,206,0.12)}
.tag{font:700 8.5px var(--font-mono);letter-spacing:.8px;padding:4px 9px;border-radius:var(--radius-pill);text-transform:uppercase}
.tag-blue{background:rgba(2,132,199,0.12);color:var(--accent-primary);border:1px solid rgba(2,132,199,0.2)}
.tag-gold{background:rgba(231,163,77,0.14);color:#b45309;border:1px solid rgba(231,163,77,0.25)}
.tag-green{background:rgba(34,197,94,0.12);color:#15803d;border:1px solid rgba(34,197,94,0.22)}
.tag-purple{background:rgba(147,51,234,0.12);color:#7e22ce;border:1px solid rgba(147,51,234,0.22)}
.card-year{font:800 30px/1 var(--font-mono);letter-spacing:-1px;margin-top:18px;color:var(--text-primary)}
.card-topline + h3{margin-top:16px}
.election-card h3{font:700 16px var(--font-display);margin:2px 0 8px;letter-spacing:-.02em}
.election-card p{font-size:12px;color:var(--text-muted);line-height:1.65;margin:0;max-width:320px;font-family:var(--font-text)}
.mini-chart{height:39px;display:flex;align-items:flex-end;gap:5px;margin-top:14px}
.mini-chart span{flex:1;background:linear-gradient(180deg,#F26B38,#DC5A28);border-radius:4px 4px 0 0;opacity:.9}
.mini-chart span:nth-child(2n){background:linear-gradient(180deg,#4267D5,#2B4EBF)}
.card-footer{margin-top:auto;padding-top:16px;border-top:1px solid var(--glass-border-subtle);display:flex;align-items:center;justify-content:space-between;color:var(--text-muted);font-family:var(--font-mono);font-size:10px;font-weight:600}
.arrow-btn{height:34px;width:34px;border:1px solid var(--glass-border);background:var(--glass-surface-control);color:var(--text-primary);border-radius:var(--radius-pill);font-size:16px;display:flex;align-items:center;justify-content:center;transition:all .2s var(--ease-apple)}
.arrow-btn:hover{background:var(--accent-primary);color:#fff;border-color:var(--accent-primary);transform:scale(1.08)}
.arrow-btn:active{transform:scale(0.95)}
.card-metric{display:flex;align-items:center;gap:12px;margin:16px 0 17px}
.card-metric strong{font:800 40px/1 var(--font-mono);color:#b45309;line-height:1;letter-spacing:-0.03em}
.card-metric span{font-size:11px;color:var(--text-muted);line-height:1.4;font-family:var(--font-text)}
.local-chips{display:flex;flex-wrap:wrap;gap:6px;margin:17px 0}
.local-chips button, .local-chips span{font:600 9.5px var(--font-text);border:1px solid var(--glass-border-subtle);border-radius:var(--radius-pill);padding:5px 10px;color:var(--text-secondary);background:var(--glass-surface-control);backdrop-filter:blur(8px);transition:all .18s var(--ease-apple)}
.local-chips button:hover{background:var(--glass-surface-hover);border-color:var(--accent-primary);color:var(--accent-primary);transform:translateY(-1px)}
.insights-section {
  background: var(--bg-page-subtle);
  padding-top: 60px;
  padding-bottom: 64px;
}
.data-note {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-text);
}
.note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(231, 163, 77, 0.2);
}
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.insight-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
  transition: all 0.24s var(--ease-apple);
}
.insight-card:hover {
  border-color: var(--glass-border-highlight);
  box-shadow: var(--glass-shadow-md);
  transform: translateY(-2px);
}
.insight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.insight-head h3 {
  font: 700 17px/1.3 var(--font-display);
  color: var(--text-primary);
  margin: 5px 0 0;
  letter-spacing: -0.015em;
}
.insight-head .section-kicker {
  font-size: 9px;
  letter-spacing: 0.8px;
}
.chart-menu {
  color: var(--text-muted);
  letter-spacing: 2px;
  font-size: 14px;
}
.donut-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 26px 0 16px;
}
.donut {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: conic-gradient(#4267D5 0 44%, #F26B38 44% 74%, #23966A 74% 89%, #98A2B3 89% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12), 0 8px 24px rgba(66, 103, 213, 0.15);
}
.donut-hole {
  height: 104px;
  width: 104px;
  border-radius: 50%;
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.05);
}
.donut-hole strong {
  font: 800 28px/1 var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.donut-hole small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-top: 2px;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.legend > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-family: var(--font-text);
}
.legend-dot {
  height: 9px;
  width: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-dot.blue { background: #4267D5; }
.legend-dot.orange { background: #F26B38; }
.legend-dot.green { background: #23966A; }
.legend-dot.gray { background: #98A2B3; }
.legend small {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.chart-footnote {
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border-subtle);
  padding-top: 12px;
  margin: 6px 0 0;
  font-family: var(--font-text);
}
.bar-chart {
  padding: 24px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 20px;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-text);
}
.bar-row b {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 10px;
  background: var(--bg-control);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.4s var(--ease-apple);
}
.axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--glass-border-subtle);
  padding-bottom: 12px;
}

/* Apple Liquid Glass Forecast Panel */
.forecast-section {
  background: linear-gradient(150deg, #101828 0%, #0B0D12 100%);
  color: #fff;
  padding: 64px max(calc((100% - 1220px)/2), 24px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #1C2430;
  border-bottom: 1px solid #1C2430;
}
.forecast-pattern {
  opacity: 0.35;
  background-size: 36px 36px;
}
.forecast-copy, .forecast-preview {
  position: relative;
  z-index: 1;
}
.light-kicker {
  color: #F26B38;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.forecast-copy h2 {
  font: 800 clamp(30px, 3.8vw, 44px)/1.15 var(--font-display);
  letter-spacing: -0.03em;
  margin: 14px 0;
  color: #ffffff;
}
.forecast-copy > p {
  color: #94a3b8;
  max-width: 440px;
  line-height: 1.7;
  font-size: 13.5px;
  margin: 0 0 24px;
  font-family: var(--font-text);
}
.forecast-preview {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  padding: 26px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.forecast-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  font-family: var(--font-mono);
}
.forecast-status {
  font-size: 9px;
  color: #fde047;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.forecast-big {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.forecast-big > span:first-child {
  font: 800 68px/0.95 var(--font-mono);
  letter-spacing: -0.04em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.forecast-big-label {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.forecast-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 24px 0;
}
.forecast-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.forecast-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.forecast-stats small {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--font-text);
}
.forecast-stats b {
  font-size: 13px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.forecast-disclaimer {
  font-size: 10px;
  line-height: 1.6;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 22px;
  font-family: var(--font-text);
}

/* Feature Cards Grid */
.lower-grid-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
  min-height: 200px;
  transition: all 0.25s var(--ease-apple);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-md);
  border-color: var(--glass-border-highlight);
}
.feature-icon {
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.feature-icon.purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.feature-icon.orange {
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.feature-icon.green {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.feature-card h3 {
  font: 700 16px/1.3 var(--font-display);
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.feature-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-family: var(--font-text);
}
.link-button {
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
}

/* Newsletter & Purpose Callout */
.newsletter {
  margin: 0 max(calc((100% - 1220px)/2), 24px) 50px;
  padding: 44px 36px 40px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.newsletter-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--glass-surface-elevated, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--glass-border);
  font: 800 17px var(--font-display);
  color: var(--text-primary);
  box-shadow: var(--glass-shadow-sm);
}
.newsletter-mark span {
  color: var(--accent-primary, #0ea5e9);
}
.newsletter-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.newsletter-copy .section-kicker {
  letter-spacing: 0.12em;
  font-size: 11px;
}
.newsletter h2 {
  font: 800 clamp(24px, 3vw, 32px)/1.25 var(--font-display);
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  color: var(--text-primary);
  text-align: center;
}
.newsletter p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-text);
  text-align: center;
}
.newsletter .btn {
  margin-top: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--glass-border-subtle);
  background: var(--glass-surface-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 24px max(calc((100% - 1220px)/2), 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 7px;
}
.footer-brand .brand-copy strong {
  font-size: 16px;
  font-family: var(--font-display);
}
.footer-brand .brand-copy small {
  font-size: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.8px;
}
.footer-socials {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-instagram,
.footer-twitter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-surface-control);
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-apple);
  font-family: var(--font-text);
}
.footer-instagram:hover {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
  border-color: rgba(225, 48, 108, 0.25);
  transform: translateY(-1px);
}
.footer-twitter:hover {
  color: #0f1419;
  background: rgba(15, 20, 25, 0.08);
  border-color: rgba(15, 20, 25, 0.25);
  transform: translateY(-1px);
}
.footer-instagram .instagram-icon,
.footer-twitter .twitter-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s var(--ease-apple);
}
.footer-instagram:hover .instagram-icon,
.footer-twitter:hover .twitter-icon {
  transform: scale(1.08);
}

/* Toast Floating Capsule */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  transition: all 0.25s var(--ease-apple);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Apple Liquid Glass Info Modal */
.info-dialog {
  border: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-2xl);
  padding: 32px;
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  background: var(--glass-surface-elevated);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  color: var(--text-primary);
}
.info-dialog::backdrop {
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: var(--glass-surface-control);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s var(--ease-apple);
}
.dialog-close:hover {
  background: var(--glass-surface-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}
.dialog-icon {
  height: 44px;
  width: 44px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.info-dialog h2 {
  font: 800 24px/1.2 var(--font-display);
  letter-spacing: -0.02em;
  margin: 8px 0;
  color: var(--text-primary);
}
.info-dialog p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-family: var(--font-text);
}

/* Responsive Apple Navigation & Breakpoints */
@media(max-width:1120px) {
  .site-header { gap: 14px; }
  .main-nav { gap: 2px; }
  .main-nav a { font-size: 12px; padding: 0 12px; }
  .header-actions { gap: 8px; }
  .hero { gap: 28px; }
  .hero-visual { max-width: 470px; }
  .donut-layout { gap: 24px; }
  .section-block { padding-top: 54px; padding-bottom: 54px; }
}

@media(max-width:820px) {
  .topline { padding: 0 16px; font-size: 9px; letter-spacing: 0.8px; }
  .site-header { height: 64px; padding: 0 16px; gap: 10px; }
  .header-actions { gap: 8px; margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--glass-surface-elevated);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    height: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 16px 18px 24px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 49;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 13.5px;
    border-bottom: 0;
  }
  .main-nav a.active {
    background: var(--glass-active-pill);
    color: var(--accent-primary);
  }
  .hero { padding: 44px 18px 38px; }
  .hero:after { display: none; }
  .hero h1 { font-size: clamp(30px, 5.5vw, 42px); letter-spacing: -0.03em; }
  .hero-visual { justify-self: center; max-width: 520px; width: 100%; margin: 0 auto; }
  .search-band { grid-template-columns: 1fr; gap: 18px; padding: 26px 16px; }
  .section-block { padding: 44px 16px; }
  .election-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .election-card:last-child { grid-column: auto; }
  .insights-grid { grid-template-columns: 1fr; }
  .forecast-section { grid-template-columns: 1fr; gap: 32px; padding: 44px 16px; }
  .forecast-preview { max-width: 100%; width: 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-card:last-child { grid-column: span 2; }
  .newsletter { margin: 24px 16px 36px; padding: 32px 20px; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .newsletter p { margin: 0 auto; max-width: 100%; text-align: center; }
  .newsletter .btn { width: auto; min-width: 220px; justify-content: center; }
  .site-footer { padding: 20px 16px; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-socials { margin-left: auto; }
  .footer-instagram, .footer-twitter { font-size: 12px; }
}

@media(max-width:620px) {
  .election-grid { grid-template-columns: 1fr; }
  .election-card:last-child { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:last-child { grid-column: auto; }
}

@media(max-width:540px) {
  .topline { padding: 0 12px; font-size: 8px; letter-spacing: 0.5px; }
  .topline-right { display: none; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; padding: 7px 6px; border-radius: 9px; }
  .brand-copy strong { font-size: 17px; letter-spacing: 0.8px; }
  .brand-copy small { font-size: 6.5px; letter-spacing: 0.4px; white-space: normal; line-height: 1.15; max-width: 125px; }
  .header-actions { gap: 6px; }
  .hero { padding: 36px 14px 30px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .eyebrow-line { width: 20px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 34px); line-height: 1.18; letter-spacing: -0.02em; margin: 16px 0 12px; }
  .hero-content > p { font-size: 13px; line-height: 1.65; margin: 0 0 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; height: 44px; justify-content: center; gap: 8px; }
  .hero-footnote { font-size: 10.5px; margin-top: 18px; gap: 6px 8px; line-height: 1.45; }
  .hero-visual { padding: 12px; }
  .map-panel { height: 225px; }
  .visual-bottom { gap: 6px; padding-top: 12px; }
  .visual-bottom > div { padding-left: 5px; }
  .stat-label { font-size: 7px; letter-spacing: 0.3px; }
  .visual-bottom strong { font-size: 19px; }
  .search-band { padding: 22px 14px; }
  .search-copy h2 { font-size: 21px; }
  .search-box { padding: 0 9px; height: 46px; }
  .search-box input { font-size: 11.5px; }
  .search-box kbd { display: none; }
  .popular-searches { gap: 5px; }
  .popular-searches button { padding: 4px 7px; font-size: 8.5px; }
  .section-block { padding: 40px 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 24px; }
  .election-card { min-height: auto; padding: 18px; }
  .insights-section { padding-top: 44px; padding-bottom: 48px; }
  .insight-card { padding: 16px; }
  .donut-layout { gap: 16px; }
  .donut { width: 120px; height: 120px; }
  .donut-hole { width: 80px; height: 80px; }
  .donut-hole strong { font-size: 22px; }
  .legend { gap: 8px; }
  .legend > div { font-size: 9px; }
  .bar-row { grid-template-columns: 55px 1fr 10px; gap: 7px; }
  .forecast-section { padding: 38px 14px; }
  .forecast-copy h2 { font-size: clamp(26px, 7vw, 36px); }
  .forecast-preview { padding: 16px; }
  .forecast-big > span:first-child { font-size: 52px; }
  .forecast-interactive-desk { padding: 16px 12px; margin-top: 20px; }
  .forecast-tabs-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .forecast-sub-tabs { width: 100%; }
  .f-tab-btn { flex: 1; text-align: center; padding: 7px 8px; font-size: 11px; }
  .rating-grid { grid-template-columns: 1fr; gap: 10px; }
  .pred-grid { grid-template-columns: 1fr; gap: 12px; }
  .f-form-bottom { flex-direction: column; gap: 10px; }
  .f-comment-input { min-width: 0; width: 100%; }
  .f-submit-btn { width: 100%; }
  .c-bar-row { gap: 8px; }
  .c-party { width: 32px; font-size: 11px; }
  .c-val { width: 44px; font-size: 12px; }
  .newsletter { margin: 20px 14px 28px; padding: 24px 16px; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .newsletter h2 { font-size: 22px; text-align: center; }
  .newsletter p { margin: 6px auto 10px; font-size: 13px; text-align: center; }
  .newsletter .btn { width: 100%; justify-content: center; }
  .site-footer { padding: 18px 14px; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
  .footer-brand .brand-copy small { font-size: 6px; }
  .data-note { font-size: 9px; }
  .footer-socials { gap: 6px; }
  .footer-instagram, .footer-twitter { font-size: 11px; padding: 4px 8px; gap: 5px; }
  .footer-instagram .instagram-icon, .footer-twitter .twitter-icon { width: 15px; height: 15px; }
}

@media(max-width:360px) {
  .site-header { padding: 0 8px; gap: 6px; }
  .header-actions { gap: 4px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 6px; max-width: 100px; }
  .menu-toggle { width: 34px; min-width: 34px; height: 34px; }
  .hero { padding: 30px 10px 24px; }
  .hero h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
  .hero-content > p { font-size: 12px; }
  .visual-bottom strong { font-size: 16px; }
  .stat-label { font-size: 6.5px; }
  .donut-layout { flex-direction: column; align-items: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Interactive constituency-map prototype */
.up-map-wrap{position:relative;z-index:1;width:100%;height:100%}
.up-map{height:100%;width:100%;position:relative;z-index:1;filter:drop-shadow(0 8px 12px #0002)}
.up-state-outline{fill:#2468ae;stroke:#91c8ff;stroke-width:1.8}
.constituency-cells path{stroke:#a8d3ff;stroke-width:1;opacity:.85;fill:none}
.map-cell-labels{fill:#d6eaff;font-family:'DM Sans',sans-serif;font-size:7px;font-weight:700;text-anchor:middle;pointer-events:none;opacity:.78}
.map-hotspots circle{fill:#f0bd61;stroke:#fff3d7;stroke-width:2;cursor:pointer;transition:r .15s,fill .15s}
.map-hotspots circle:hover{r:8;fill:#fff}
.map-instruction{font-size:9px;color:#b8c9df;padding:7px 2px 0;display:flex;align-items:center;gap:6px}
.map-instruction span{color:#F26B38;font-size:14px}

/* Real geographic assembly-boundary map (Leaflet) */
.map-panel{height:350px;background:#101828;isolation:isolate}
.map-grid{pointer-events:none;z-index:0}
.up-assembly-map{position:absolute;inset:0;z-index:1;background:#101828}
.up-assembly-map .leaflet-container{height:100%;width:100%;background:#101828;font-family:var(--font-text);outline:none}
.up-assembly-map .leaflet-control-attribution{font-size:8px;background:rgba(16,24,40,0.85);color:#98A2B3}
.up-assembly-map .leaflet-control-attribution a{color:#4267D5}
.up-assembly-map .leaflet-control-zoom a{background:#1C2430;color:#f8fafc;border-color:#344054}
.up-assembly-map .leaflet-interactive{cursor:pointer;transition:fill-opacity .12s}
.map-toolbar{position:absolute;z-index:4;top:10px;left:10px;right:10px;display:flex;align-items:center;gap:7px;pointer-events:none}
.map-search-label{font-size:7px;font-weight:800;letter-spacing:.7px;color:#98A2B3;white-space:nowrap}
#mapSeatSearch{width:min(165px,43%);height:29px;border:1px solid #344054;border-radius:7px;background:rgba(16,24,40,0.92);color:#fff;padding:0 8px;font-size:10px;outline:none;pointer-events:auto}
#mapSeatSearch::placeholder{color:#98A2B3}
#mapSeatSearch:focus{border-color:#F26B38;box-shadow:0 0 0 2px rgba(242,107,56,0.25)}
#mapReset{width:29px;height:29px;border:1px solid #344054;border-radius:7px;background:rgba(16,24,40,0.92);color:#fff;font-size:17px;line-height:1;pointer-events:auto}
.map-status{position:absolute;z-index:4;left:10px;bottom:30px;max-width:75%;padding:5px 8px;background:rgba(16,24,40,0.9);border:1px solid #344054;border-radius:6px;color:#cbd5e1;font-size:8px;pointer-events:none}
.map-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#e6f0ff;text-align:center;padding:20px;background:#101828;z-index:2}
.map-loading b{font-size:12px}.map-loading small{font-size:9px;color:#98A2B3}
.map-loader{width:24px;height:24px;border:2px solid #344054;border-top-color:#F26B38;border-radius:50%;animation:mapspin .8s linear infinite}
@keyframes mapspin{to{transform:rotate(360deg)}}
.map-error{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#dbe8fa;background:#101828;gap:8px}
.map-error strong{font:700 13px var(--font-display)}.map-error p{font-size:10px;color:#98A2B3;max-width:300px;margin:0 0 5px}.map-error a{color:#F26B38;text-decoration:underline;font-size:10px}
.map-popup{min-width:170px;color:#101828}.map-popup strong{display:block;font:800 13px var(--font-display);margin-bottom:4px}.map-popup span{display:block;color:#64748B;font-size:10px;margin-bottom:8px}.map-popup button{border:0;background:#101828;color:#fff;border-radius:6px;padding:7px 9px;font-size:10px;font-weight:700}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff}.leaflet-popup-content{margin:12px}
@media(max-width:540px){.map-panel{height:285px}.map-toolbar{top:8px;left:7px;right:7px;gap:5px}.map-search-label{font-size:6px}#mapSeatSearch{width:48%;height:27px;font-size:9px}.map-status{bottom:28px;font-size:7px}}

/* Visible recovery state for unavailable map data */
.map-error-recovery{background:linear-gradient(145deg,#102744,#183d62);color:#eef6ff;border:1px solid #4f83b5;border-radius:14px;gap:12px;}
.map-error-recovery .map-error-icon{font-size:32px;color:#8fd4ff;line-height:1;}
.map-error-recovery strong{font-size:15px;text-align:center;}
.map-error-recovery p{font-size:12px;line-height:1.55;max-width:360px;color:#d0e1f4;}
.map-error-recovery .map-fallback-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:9px;background:#d9efff;color:#102744;font-size:12px;font-weight:800;text-decoration:none;}
.map-error-recovery .map-official-link{font-size:11px;color:#f4d59a;text-decoration:underline;}


/* Separate page views with browser-history navigation */
.page-view{display:none;min-height:55vh}
.page-view.is-active{display:block}
.page-intro{padding:34px max(calc((100% - 1220px)/2),24px) 25px;background:var(--bg-page-subtle);border-bottom:1px solid var(--border-default)}
.page-intro h1{font:800 clamp(29px,3.4vw,42px)/1.15 Manrope,sans-serif;letter-spacing:-1.2px;color:var(--text-primary);margin:8px 0}
.page-intro p{margin:0;color:var(--text-muted);font-size:13px}
.hero.overview-hero{display:block;min-height:540px;padding-top:58px;padding-bottom:50px}
.hero.overview-hero .hero-content{max-width:620px;min-width:0}
.hero.overview-hero .hero-visual{display:block;width:100%;max-width:520px;justify-self:end;align-self:center}
@media(max-width:900px){.hero.overview-hero{min-height:0;padding:44px 18px 38px}.hero.overview-hero .hero-content{max-width:100%}.hero.overview-hero .hero-visual{justify-self:center;max-width:480px;margin:0 auto}}
.constituency-map-section{padding:32px max(calc((100% - 1220px)/2),24px) 60px;background:#101a2d}
.map-page-heading{margin:0 0 22px;color:#fff}
.map-page-heading h2{font:800 clamp(24px,3vw,34px) Manrope,sans-serif;margin:8px 0}
.map-page-heading p{font-size:12px;color:#b5c4da;margin:0;max-width:650px}
.constituency-map-shell{max-width:920px;margin:0 auto;padding:20px;background:#182944;border:1px solid #344e70;border-radius:18px;box-shadow:0 18px 55px #0002}
.constituency-map-shell .hero-visual{width:100%;max-width:none;margin:0}
.constituency-map-shell .visual-top{margin-bottom:12px}
.constituency-map-shell .visual-bottom{margin-top:14px}
.constituency-map-shell .map-panel{height:500px;border-radius:12px;overflow:hidden}
.constituency-map-shell .up-assembly-map{border-radius:12px}
.page-view .newsletter{margin-top:0}
@media(max-width:820px){.page-intro{padding:24px 16px 20px}.hero.overview-hero{min-height:0;padding:44px 16px 36px}.constituency-map-section{padding:26px 16px 36px}.constituency-map-shell{padding:12px}.constituency-map-shell .map-panel{height:400px}}
@media(max-width:540px){.page-intro{padding:20px 14px 16px}.page-intro h1{font-size:26px}.hero.overview-hero{padding:36px 14px 30px}.constituency-map-shell{padding:8px;border-radius:12px}.constituency-map-shell .map-panel{height:300px}.constituency-map-shell .visual-bottom strong{font-size:19px}}

/* Overview landing-page context: intentionally distinct from the hero cover. */
.overview-context {
  padding: 56px max(calc((100% - 1220px)/2), 24px) 48px;
  background: var(--bg-page-subtle);
  border-bottom: 1px solid var(--glass-border-subtle);
}
.overview-context-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.overview-context-head h2 {
  font: 800 clamp(24px, 3vw, 34px)/1.2 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 8px 0;
}
.overview-context-head p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 630px;
  margin: 0;
  font-family: var(--font-text);
}
.context-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface-control);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
}
.context-stamp b {
  color: var(--text-primary);
  font-size: 10px;
}
.stamp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.overview-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
  transition: all 0.22s var(--ease-apple);
}
.overview-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-md);
  border-color: var(--glass-border-highlight);
}
.overview-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-primary);
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.overview-stat-icon.gold {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}
.overview-stat-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.overview-stat > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.overview-stat strong {
  font: 800 28px/1.1 var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.overview-stat b {
  font: 600 12px var(--font-text);
  color: var(--text-secondary);
}
.overview-stat small {
  font: 400 11px/1.5 var(--font-text);
  color: var(--text-muted);
}
.overview-paths-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 34px 0 18px;
}
.overview-paths-head h3 {
  font: 700 18px/1.3 var(--font-display);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
}
.overview-paths-sub {
  margin: 4px 0 0;
  font: 400 12px/1.4 var(--font-text);
  color: var(--text-muted);
}
.overview-paths-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-paths-head span,
.overview-paths-meta > span {
  font: 700 9px var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stack-counter-pill {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.24);
  color: var(--accent-primary) !important;
  font-variant-numeric: tabular-nums;
}

/* Interactive 3D Stack Card Showcase */
.overview-stack-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.92fr);
  gap: 28px;
  align-items: center;
  outline: none;
}
.overview-stack-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
#elections .election-grid {
  display: block;
}
.overview-stack-deck {
  position: relative;
  min-height: 326px;
  padding-right: 60px;
  padding-bottom: 26px;
  perspective: 1400px;
  transform-style: preserve-3d;
  user-select: none;
}
.overview-stack-deck.dc-stack-deck {
  min-height: 342px;
}
.stack-card,
.overview-path.stack-card,
.election-card.stack-card {
  position: absolute;
  inset: 0 60px 26px 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 24px 26px 22px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px -18px rgba(15, 23, 42, 0.22), 0 4px 14px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  overflow: hidden;
  transform-origin: center center;
  touch-action: pan-y;
  will-change: transform, opacity;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, border-color 0.25s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.stack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.92;
  background: linear-gradient(90deg, #F26B38, #DC5A28);
}
.stack-card[data-accent="gold"]::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
.stack-card[data-accent="orange"]::before {
  background: linear-gradient(90deg, #ea580c, #fb923c);
}
.stack-card[data-accent="green"]::before {
  background: linear-gradient(90deg, #059669, #34d399);
}
.stack-card[data-accent="purple"]::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* Stack Layer Positions (Supports 3-card & 4-card decks) */
.stack-card[data-stack-pos="0"],
.election-card.stack-card[data-stack-pos="0"] {
  z-index: 40;
  opacity: 1;
  transform: translate3d(var(--drag-x, 0px), 0, 0) rotate(calc(var(--drag-x, 0px) * 0.03deg)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1);
  cursor: grab;
}
.stack-card[data-stack-pos="0"].is-dragging {
  transition: none;
  cursor: grabbing;
}
.stack-card[data-stack-pos="0"]:hover,
.election-card.stack-card[data-stack-pos="0"]:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 24px 50px -16px rgba(2, 132, 199, 0.28), 0 8px 20px rgba(15, 23, 42, 0.12);
}
.stack-card[data-stack-pos="0"][data-accent="gold"]:hover {
  border-color: #d97706;
  box-shadow: 0 24px 50px -16px rgba(217, 119, 6, 0.25), 0 8px 20px rgba(15, 23, 42, 0.12);
}
.stack-card[data-stack-pos="0"][data-accent="orange"]:hover {
  border-color: #ea580c;
  box-shadow: 0 24px 50px -16px rgba(234, 88, 12, 0.25), 0 8px 20px rgba(15, 23, 42, 0.12);
}
.stack-card[data-stack-pos="0"][data-accent="green"]:hover {
  border-color: #059669;
  box-shadow: 0 24px 50px -16px rgba(16, 185, 129, 0.25), 0 8px 20px rgba(15, 23, 42, 0.12);
}
.stack-card[data-stack-pos="0"][data-accent="purple"]:hover {
  border-color: #7c3aed;
  box-shadow: 0 24px 50px -16px rgba(124, 58, 237, 0.25), 0 8px 20px rgba(15, 23, 42, 0.12);
}
.stack-card[data-stack-pos="1"],
.election-card.stack-card[data-stack-pos="1"] {
  z-index: 30;
  opacity: 0.96;
  transform-origin: right center;
  transform: translate3d(18px, 7px, 0) scaleY(0.95);
  filter: brightness(0.95);
  cursor: pointer;
}
.stack-card[data-stack-pos="1"]:hover,
.election-card.stack-card[data-stack-pos="1"]:hover {
  opacity: 1;
  transform: translate3d(24px, 5px, 0) scaleY(0.965);
}
.stack-card[data-stack-pos="2"],
.election-card.stack-card[data-stack-pos="2"] {
  z-index: 20;
  opacity: 0.86;
  transform-origin: right center;
  transform: translate3d(36px, 14px, 0) scaleY(0.90);
  filter: brightness(0.88);
  cursor: pointer;
}
.stack-card[data-stack-pos="2"]:hover,
.election-card.stack-card[data-stack-pos="2"]:hover {
  opacity: 0.96;
  transform: translate3d(42px, 11px, 0) scaleY(0.92);
}
.stack-card[data-stack-pos="3"],
.election-card.stack-card[data-stack-pos="3"] {
  z-index: 10;
  opacity: 0.74;
  transform-origin: right center;
  transform: translate3d(54px, 21px, 0) scaleY(0.85);
  filter: brightness(0.82);
  cursor: pointer;
}
.stack-card[data-stack-pos="3"]:hover,
.election-card.stack-card[data-stack-pos="3"]:hover {
  opacity: 0.88;
  transform: translate3d(58px, 18px, 0) scaleY(0.875);
}
.stack-card:not([data-stack-pos="0"]) .stack-card-metrics,
.stack-card:not([data-stack-pos="0"]) .stack-card-foot,
.stack-card:not([data-stack-pos="0"]) .stack-card-body,
.election-card.stack-card:not([data-stack-pos="0"]) .mini-chart,
.election-card.stack-card:not([data-stack-pos="0"]) .card-metric,
.election-card.stack-card:not([data-stack-pos="0"]) .local-chips,
.election-card.stack-card:not([data-stack-pos="0"]) .card-footer,
.election-card.stack-card:not([data-stack-pos="0"]) p,
.election-card.stack-card:not([data-stack-pos="0"]) h3 {
  opacity: 0.08;
  pointer-events: none;
}
.election-card.stack-card p {
  max-width: 58ch;
  font-size: 13px;
}
.election-card.stack-card h3 {
  font-size: 19px;
  margin: 4px 0 6px;
}
.election-card.stack-card .card-year {
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 0.8px;
  color: #10b981;
}
.election-card.stack-card .local-chips {
  margin: 4px 0;
}
.election-card.stack-card .card-metric {
  margin: 4px 0;
}
.election-card.stack-card .card-footer {
  padding-top: 12px;
}

.stack-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.path-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 19px;
  flex-shrink: 0;
}
.path-icon.blue {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-primary);
}
.path-icon.gold {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}
.path-icon.purple {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}
.path-icon.orange {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}
.path-icon.green {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}
.stack-card-kicker {
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: 0.9px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stack-card-pill {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font: 700 9.5px/1 var(--font-mono);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}
.stack-card-pill.blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.22);
}
.stack-card-pill.gold {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.stack-card-pill.orange {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.25);
}
.stack-card-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.24);
}
.stack-card-pill.purple {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.24);
}

.stack-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stack-card b,
.overview-path.stack-card b {
  font: 700 19px/1.25 var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stack-card small,
.overview-path.stack-card small {
  font: 400 13px/1.55 var(--font-text);
  color: var(--text-muted);
  max-width: 54ch;
}

.stack-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stack-metric {
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stack-metric strong {
  font: 700 13px/1.2 var(--font-mono);
  color: var(--text-primary);
}
.stack-metric span {
  font: 500 10.5px/1.2 var(--font-text);
  color: var(--text-muted);
}

.stack-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.stack-card-hint {
  font: 500 11px/1.2 var(--font-text);
  color: var(--text-muted);
}
.stack-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  border-radius: 10px;
  font: 600 12.5px/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #F26B38, #DC5A28);
  box-shadow: 0 6px 16px -6px rgba(242, 107, 56, 0.5);
  transition: transform 0.2s var(--ease-apple), box-shadow 0.2s ease, filter 0.2s ease;
}
.stack-card-cta.gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 16px -6px rgba(217, 119, 6, 0.5);
}
.stack-card-cta.orange {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 6px 16px -6px rgba(234, 88, 12, 0.5);
}
.stack-card-cta.green {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 16px -6px rgba(16, 185, 129, 0.5);
}
.stack-card-cta.purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.5);
}
.stack-card-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.path-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s var(--ease-apple);
}
.stack-card-cta:hover .path-arrow {
  transform: translate(2px, -2px);
}

/* Deck Controls Row */
.overview-stack-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 48px;
}
.stack-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stack-nav-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--text-primary);
  font: 600 11.5px/1 var(--font-text);
  cursor: pointer;
  transition: all 0.18s ease;
}
.stack-nav-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}
.stack-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stack-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(100, 116, 139, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.stack-dot.is-active {
  width: 26px;
  background: var(--accent-primary);
}
.stack-kbd-hint {
  font: 500 10.5px/1 var(--font-mono);
  color: var(--text-muted);
}

/* Right Column: Stepped Stack Quick-Switch Rail */
.overview-stack-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack-rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 13px 15px;
  border-radius: 15px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.stack-rail-item:hover {
  transform: translateX(4px);
  border-color: rgba(2, 132, 199, 0.45);
}
.stack-rail-item.is-active {
  transform: translateX(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 28px -14px rgba(2, 132, 199, 0.35);
}
.stack-rail-item.is-active[data-accent="gold"] {
  border-color: #d97706;
  box-shadow: 0 12px 28px -14px rgba(217, 119, 6, 0.35);
}
.stack-rail-item.is-active[data-accent="orange"] {
  border-color: #ea580c;
  box-shadow: 0 12px 28px -14px rgba(234, 88, 12, 0.35);
}
.stack-rail-item.is-active[data-accent="green"] {
  border-color: #059669;
  box-shadow: 0 12px 28px -14px rgba(16, 185, 129, 0.35);
}
.stack-rail-item.is-active[data-accent="purple"] {
  border-color: #7c3aed;
  box-shadow: 0 12px 28px -14px rgba(124, 58, 237, 0.35);
}
.stack-rail-step {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--font-mono);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.22s ease;
}
.stack-rail-item.is-active .stack-rail-step {
  background: rgba(242, 107, 56, 0.14);
  color: #F26B38;
}
.stack-rail-item.is-active[data-accent="gold"] .stack-rail-step {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}
.stack-rail-item.is-active[data-accent="orange"] .stack-rail-step {
  background: rgba(234, 88, 12, 0.14);
  color: #c2410c;
}
.stack-rail-item.is-active[data-accent="green"] .stack-rail-step {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.stack-rail-item.is-active[data-accent="purple"] .stack-rail-step {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}
.stack-rail-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.stack-rail-copy strong {
  font: 600 13.5px/1.25 var(--font-text);
  color: var(--text-primary);
}
.stack-rail-copy span {
  font: 400 11.5px/1.35 var(--font-text);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack-rail-badge {
  margin-left: 6px;
}
.stack-rail-launch {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stack-rail-item.is-active .stack-rail-launch,
.stack-rail-launch:hover {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: transparent;
}
.stack-rail-item.is-active[data-accent="gold"] .stack-rail-launch {
  background: #d97706;
}
.stack-rail-item.is-active[data-accent="orange"] .stack-rail-launch {
  background: #ea580c;
}
.stack-rail-item.is-active[data-accent="green"] .stack-rail-launch {
  background: #059669;
}
.stack-rail-item.is-active[data-accent="purple"] .stack-rail-launch {
  background: #7c3aed;
}

/* Ratings & Predictions Stacked Showcase Spacing */
.rp-stack-showcase {
  margin: 18px 0 24px;
}
.rp-stack-showcase .overview-stack-deck {
  min-height: 298px;
}
.rp-stack-card b {
  font: 700 19px/1.25 var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.rp-stack-card small {
  font: 400 13px/1.55 var(--font-text);
  color: var(--text-muted);
  max-width: 56ch;
}

.overview-integrity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.overview-integrity > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-size: 12px;
  flex-shrink: 0;
}
.overview-integrity p {
  margin: 1px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
  font-family: var(--font-text);
}
.overview-integrity b {
  color: var(--text-primary);
}

@media(max-width:920px){
  .overview-stack-showcase{grid-template-columns:1fr;gap:20px}
  .overview-stack-deck{padding-right:42px;padding-bottom:22px;min-height:316px}
  .stack-card, .overview-path.stack-card, .election-card.stack-card{inset:0 42px 22px 0}
  .overview-stack-controls{padding-right:0}
  .stack-rail-item.is-active{transform:translateX(0)}
}
@media(max-width:820px){
  .overview-context{padding:38px 24px 35px}
  .overview-context-head{align-items:flex-start;flex-direction:column;gap:14px}
  .overview-stats{gap:12px}
  .overview-stat{padding:16px;gap:12px}
  .overview-stat-icon{width:38px;height:38px}
  .overview-stat strong{font-size:24px}
}
@media(max-width:540px){
  .overview-context{padding:32px 16px 28px}
  .overview-context-head h2{font-size:24px}
  .overview-context-head p{font-size:12.5px}
  .context-stamp{font-size:9px}
  .overview-stats{grid-template-columns:1fr;gap:10px}
  .overview-stat{padding:14px}
  .overview-stat small{font-size:10px}
  .overview-paths-head{align-items:flex-start;flex-direction:column;gap:8px;margin-top:24px}
  .overview-paths-head h3{font-size:16px}
  .overview-stack-deck{min-height:348px;padding-right:28px;padding-bottom:20px}
  .stack-card, .overview-path.stack-card, .election-card.stack-card{inset:0 28px 20px 0;padding:18px 16px}
  .stack-card[data-stack-pos="1"], .election-card.stack-card[data-stack-pos="1"]{transform:translate3d(10px,6px,0) scaleY(0.95)}
  .stack-card[data-stack-pos="2"], .election-card.stack-card[data-stack-pos="2"]{transform:translate3d(20px,12px,0) scaleY(0.90)}
  .stack-card[data-stack-pos="3"], .election-card.stack-card[data-stack-pos="3"]{transform:translate3d(28px,18px,0) scaleY(0.85)}
  .stack-card-metrics{gap:6px}
  .stack-metric{padding:7px 8px}
  .stack-kbd-hint{display:none}
  .stack-card-hint{display:none}
  .stack-card-cta{width:100%;justify-content:center}
  .overview-integrity{padding:12px}
}


/* Premium self-contained Uttar Pradesh map illustration for the overview hero */
.up-overview-panel{height:auto;min-height:410px;padding:16px 16px 12px;background:linear-gradient(145deg,#122641 0%,#102039 55%,#172b45 100%);border-color:#456181;overflow:hidden}
.map-panel-top{position:relative;z-index:2;display:flex;align-items:center;gap:8px;color:#b8cbe4;font-size:9px;font-weight:800;letter-spacing:1.1px}
.map-region-dot{width:7px;height:7px;border-radius:50%;background:#77d8b0;box-shadow:0 0 0 4px #77d8b01c}
.map-panel-tag{margin-left:auto;padding:5px 7px;border:1px solid #526b88;border-radius:5px;color:#9fb4ce;font-size:7px;letter-spacing:.8px}
.up-map-art{position:relative;height:310px;margin:0 -5px}
.up-state-svg{display:block;width:100%;height:100%;overflow:visible;position:relative;z-index:1}
.up-state-shadow{filter:blur(7px)}
.map-orbit{transform-origin:256px 164px;animation:mapOrbit 26s linear infinite}
@keyframes mapOrbit{to{transform:rotate(360deg)}}
.map-labels text{font-size:8px;font-weight:800;letter-spacing:1px;fill:#e1f3ff;paint-order:stroke;stroke:#16314d;stroke-width:3px;stroke-linejoin:round}
.map-labels path{stroke:#a5dfff;stroke-width:1;fill:none;opacity:.8}
.map-data-points circle{transform-box:fill-box;transform-origin:center;animation:mapPulse 2.8s ease-in-out infinite}
.map-data-points circle:nth-child(2),.map-data-points circle:nth-child(5),.map-data-points circle:nth-child(8){animation-delay:.8s}
@keyframes mapPulse{0%,100%{opacity:1}50%{opacity:.65}}
.map-floating-note{position:absolute;right:4px;bottom:18px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #52708e;border-radius:10px;background:#0e1c30eF;box-shadow:0 12px 28px #06132655;z-index:2;backdrop-filter:blur(10px)}
.map-floating-note>div{display:flex;flex-direction:column;gap:3px}.map-floating-note b{font:800 10px Manrope;color:#f2f7ff}.map-floating-note small{font-size:8px;color:#9eb4ce}.note-pulse{width:8px;height:8px;background:#77d8b0;border-radius:50%;box-shadow:0 0 0 5px #77d8b01c}.note-arrow{font-size:17px;color:#F26B38;margin-left:7px}
.map-compass{position:absolute;left:7px;bottom:18px;display:flex;flex-direction:column;align-items:center;gap:1px;color:#8da6c5;font-size:7px;font-weight:800;z-index:2}.map-compass i{font-size:17px;font-style:normal;color:#d9e9fa;line-height:1}
.map-legend{position:relative;z-index:2;display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding:10px 2px 2px;border-top:1px solid #ffffff14;color:#9eb2cc;font-size:8px}.map-legend span{display:inline-flex;align-items:center;gap:5px}.map-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-cyan{background:#4267D5}.legend-gold{background:#F26B38}.map-legend .map-schematic-label{margin-left:auto;color:#7189a7;font-size:7px;letter-spacing:.55px}
@media(max-width:1050px){.up-overview-panel{min-height:390px}.up-map-art{height:285px}}
@media(max-width:820px){.up-overview-panel{max-width:600px}.up-map-art{height:320px}}
@media(max-width:540px){.up-overview-panel{padding:12px 11px 10px;min-height:0}.up-map-art{height:245px;margin:0 -8px}.map-floating-note{right:4px;bottom:12px;padding:8px 9px}.map-floating-note b{font-size:9px}.map-floating-note small{font-size:7px}.map-legend{gap:8px;font-size:7px}.map-legend .map-schematic-label{margin-left:0;width:100%}.map-labels text{font-size:7px}}


/* POLITISO Hero layout */
.hero {
  display: block !important;
  min-height: 480px;
  padding: 68px max(calc((100% - 1220px) / 2), 24px) 56px;
}
.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  min-width: 0;
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 44px 18px 38px;
  }
  .hero-content {
    max-width: 100%;
  }
}


/* Standalone constituency map; intentionally separate from the Overview hero image. */
.constituency-map-section{padding:28px max(calc((100% - 1220px)/2),24px) 60px;background:#101a2d;color:#eaf4ff}
.map-page-heading{margin:0 auto 20px;max-width:1220px}.map-page-heading h2{margin:8px 0;font-size:clamp(1.5rem,3vw,2.2rem);color:#f4f8ff}.map-page-heading p{color:#9fb2ca;margin:0;line-height:1.6}
.map-panel-standalone{height:min(70vh,680px);min-height:480px;width:100%;border:1px solid rgba(98,180,255,.25);box-shadow:0 18px 60px rgba(0,0,0,.22)}
.map-panel-standalone .up-assembly-map{position:absolute;inset:0;z-index:1;background:#11213a}
.map-panel-standalone .leaflet-control-attribution{display:none}
.map-panel-standalone .map-toolbar{pointer-events:none}.map-panel-standalone .map-toolbar input,.map-panel-standalone .map-toolbar button{pointer-events:auto}
.map-loading,.map-error{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;color:#dcecff;background:#102039}.map-loading small,.map-error p{color:#a8bdd5}.map-error a{color:#8beaff}.map-status{position:absolute;left:12px;bottom:34px;z-index:4;padding:6px 10px;border-radius:6px;background:rgba(8,20,38,.9);color:#dcecff;font-size:12px}.map-caption{position:absolute;left:12px;right:12px;bottom:8px;z-index:4;display:flex;justify-content:space-between;color:#86a9ca;font-size:10px;letter-spacing:.12em;pointer-events:none}.politiso-map-tooltip{background:#0e1b30!important;border:1px solid #6bd8ff!important;color:#f0f8ff!important;border-radius:6px!important;box-shadow:0 4px 20px #0006!important}.leaflet-container{font-family:inherit}.map-panel-standalone .leaflet-control-zoom a{background:#102039;color:#dff6ff;border-color:#36516f}
@media(max-width:700px){.constituency-map-section{padding:22px 14px 40px}.map-panel-standalone{min-height:440px;height:65vh}.map-status{max-width:75%;font-size:10px}}

/* Dedicated Constituencies Explorer Full Page */
.constituencies-full-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background: var(--bg-primary, #f4f6fb);
  color: var(--text-primary, #172238);
  font-family: inherit;
}
.constituencies-full-page[hidden] {
  display: none !important;
}
.constituencies-page-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 23, 38, 0.88);
  backdrop-filter: var(--glass-blur, blur(20px));
  -webkit-backdrop-filter: var(--glass-blur, blur(20px));
  color: #fff;
  padding: 16px clamp(16px, 4vw, 55px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.constituencies-top-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 600;
  letter-spacing: .4px;
  font-family: var(--font-mono);
}
.constituencies-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 40px) 70px;
}
.constituencies-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 24px);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 28px;
  background: radial-gradient(circle at 85% 15%, rgba(147, 51, 234, 0.3) 0, transparent 45%),
              linear-gradient(135deg, #0e1726, #1e1b4b 65%, #1e293b);
  color: #fff;
  box-shadow: 0 20px 50px -10px rgba(13, 26, 45, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.constituencies-hero .section-kicker {
  color: #c084fc;
}
.constituencies-hero h2,
.constituencies-title {
  font: 800 clamp(28px, 4.5vw, 44px)/1.1 var(--font-display);
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
  color: #fff;
}
.constituencies-sub {
  max-width: 760px;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 14px;
  margin: 0;
  font-family: var(--font-text);
}

.search-band.search-band-standalone {
  border-bottom: 0;
  padding: 0;
  display: block;
  margin-bottom: 32px;
}
.search-area-wide {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}
.search-area-wide .search-box {
  height: 56px;
  padding: 0 22px;
  box-shadow: var(--glass-shadow-md);
}
.search-area-wide .search-box input {
  font-size: 14px;
}

.search-category-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.search-cat-label {
  font: 700 9px var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-muted);
}
.search-cat-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.search-cat-pill {
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-pill);
  background: var(--glass-surface-control);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 13px;
  color: var(--text-secondary);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease-apple);
}
.search-cat-pill:hover {
  background: var(--glass-surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.search-cat-pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* Parliamentary full-page profile */
.politiso-pc-profile{position:fixed;inset:0;z-index:99999;overflow-y:auto;background:#07111f;color:#edf5ff;font-family:inherit}
.pc-profile-top{padding:28px clamp(20px,5vw,76px) 42px;background:radial-gradient(ellipse at 80% 0%,rgba(33,135,215,.24),transparent 45%),#0a1728;border-bottom:1px solid rgba(148,190,230,.18)}

/* Assembly Analysis Preview Overlay (Opened from Predictions) */
.politiso-pc-profile.politiso-pc-preview {
  z-index: 100100;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  animation: pcPreviewFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pcPreviewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sticky top bar for preview containing upper left cross button */
.pc-preview-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(18px, 4vw, 55px);
  background: rgba(10, 23, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 190, 230, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Upper left corner cross button */
.pc-preview-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pc-preview-close-btn:hover {
  background: rgba(239, 68, 68, 0.42);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.pc-preview-close-btn:active {
  transform: translateY(0) scale(0.97);
}

.pc-preview-close-btn .pc-cross-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.pc-preview-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pc-preview-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.pc-preview-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.politiso-pc-preview .theme-toggle-overlay {
  display: none !important;
}

.pc-preview-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pc-preview-context-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #60a5fa;
  animation: pcPulse 2s infinite;
}

@keyframes pcPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.pc-preview-top {
  padding-top: 24px;
}
/* Universal polished "Back to..." toggle style */
.back-toggle-btn,
.pc-back,
.e22-back,
#e19Back,
.e19s-back,
.e24-back,
.local-results-back,
.pp-back,
#prBack,
.constituencies-back,
#constituenciesBack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
  margin: 0;
}

.pc-profile-top .pc-back {
  margin: 0 0 24px 0;
}

.back-toggle-btn:hover,
.pc-back:hover,
.e22-back:hover,
#e19Back:hover,
.e19s-back:hover,
.e24-back:hover,
.local-results-back:hover,
.pp-back:hover,
#prBack:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  color: #fff;
}

.back-toggle-btn:active,
.pc-back:active,
.e22-back:active,
#e19Back:active,
.e19s-back:active,
.e24-back:active,
.local-results-back:active,
.pp-back:active,
#prBack:active {
  transform: translateY(0) scale(0.98);
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.back-toggle-btn:hover .back-arrow,
.pc-back:hover .back-arrow,
.e22-back:hover .back-arrow,
#e19Back:hover .back-arrow,
.e19s-back:hover .back-arrow,
.e24-back:hover .back-arrow,
.local-results-back:hover .back-arrow,
.pp-back:hover .back-arrow,
#prBack:hover .back-arrow {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.24);
}

.back-label-short {
  display: none;
}

/* Ensure header bars containing back toggles never cramp or touch adjacent controls */
.e22-top,
.e19-top,
.e19s-top,
.e24-top,
.local-results-top,
.pp-top,
.pr-top {
  gap: 16px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

@media (max-width: 560px) {
  .back-label-full {
    display: none;
  }
  .back-label-short {
    display: inline;
  }
  .back-toggle-btn,
  .pc-back,
  .e22-back,
  #e19Back,
  .e19s-back,
  .e24-back,
  .local-results-back,
  .pp-back,
  #prBack {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11.5px;
    margin: 0;
  }
  .pc-profile-top .pc-back {
    margin-bottom: 18px;
  }
}

.pc-profile-top h1 {
  font: 800 clamp(32px, 5vw, 56px)/1.08 var(--font-display);
  letter-spacing: -0.03em;
  margin: 10px 0;
  color: var(--text-primary);
}
.pc-profile-top p {
  color: var(--text-secondary);
  margin: 0;
  font-family: var(--font-text);
  font-size: 14px;
}
.pc-profile-content {
  max-width: 1280px;
  margin: auto;
  padding: 32px clamp(16px, 4vw, 54px) 70px;
}
.pc-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.pc-metric {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-apple);
}
.pc-metric:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}
.pc-metric small {
  display: block;
  color: var(--accent-primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.pc-metric strong {
  display: block;
  font: 800 clamp(20px, 2.2vw, 28px)/1.1 var(--font-mono);
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pc-metric span {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-text);
}
.pc-profile-section {
  padding: 28px;
  margin: 20px 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-sm);
}
.pc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.pc-section-head h2 {
  font: 700 clamp(20px, 2.8vw, 28px) var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}
.pc-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(242, 107, 56, 0.12);
  border: 1px solid rgba(242, 107, 56, 0.28);
  color: #F26B38;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.pc-role-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-text);
  line-height: 1.4;
  white-space: nowrap;
}
.pc-role-winner {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.pc-role-runner-up {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.pc-role-candidate {
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}
.pc-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.pc-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
  font-family: var(--font-text);
}
.pc-results-table th {
  text-align: left;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-default);
}
.pc-results-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.pc-results-table td:nth-child(4),
.pc-results-table td:nth-child(5) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pc-results-table tr.pc-winner td {
  background: rgba(34, 197, 94, 0.1);
}
.pc-results-table tr.pc-runner-up td {
  background: rgba(245, 158, 11, 0.08);
}
.pc-segment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pc-segment-list span {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12.5px;
  font-family: var(--font-text);
  font-weight: 500;
}
.pc-segment-results-table {
  min-width: 780px;
}
.pc-segment-results-table td:nth-child(3),
.pc-segment-results-table td:nth-child(5) {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.pc-muted {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--font-text);
}
.pc-empty, .pc-data-note {
  color: #94a3b8;
  font-size: 13px;
  font-family: var(--font-text);
}
.pc-data-note {
  margin-top: 24px;
}
body.pc-profile-open {
  overflow: hidden;
}
@media(max-width:800px) {
  .pc-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-profile-section { padding: 18px; }
  .pc-profile-top { padding-top: 20px; }
}
@media(max-width:440px) {
  .pc-metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pc-metric { padding: 14px; }
  .pc-metric strong { font-size: 18px; }
}

/* Parliamentary candidate vote-share graphics */
.pc-vote-bars {
  display: grid;
  gap: 16px;
  margin: 16px 0 24px;
}
.pc-vote-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(90px, 1fr) 60px;
  gap: 14px;
  align-items: center;
}
.pc-vote-bar-label {
  min-width: 0;
  font-family: var(--font-text);
}
.pc-vote-bar-label b, .pc-vote-bar-label small {
  display: block;
  overflow-wrap: anywhere;
}
.pc-vote-bar-label b {
  color: var(--text-primary);
}
.pc-vote-bar-label small {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.pc-vote-bar-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-control);
  overflow: hidden;
}
.pc-vote-bar-track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.4s var(--ease-apple);
}
.pc-vote-bar-row > strong {
  text-align: right;
  font-size: 13px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.pc-subheading {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.pc-kicker {
  color: var(--accent-primary);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
}
.pc-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.pc-highlight {
  color: var(--accent-primary);
  font-weight: 700;
}
@media(max-width:650px) {
  .pc-vote-bar-row { grid-template-columns: 100px minmax(60px, 1fr) 50px; gap: 10px; }
}

/* Weekly Forecast & Sentiment Desk Styles */
.forecast-interactive-desk {
  margin-top: 28px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 26px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
}

.forecast-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border-subtle);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.forecast-week-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  background: var(--glass-surface-control);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}

.forecast-sub-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-control);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-control);
}

.f-tab-btn {
  padding: 7px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-text);
  cursor: pointer;
  transition: all 0.18s var(--ease-apple);
}

.f-tab-btn:hover {
  color: var(--text-primary);
}

.f-tab-btn.active {
  background: var(--glass-active-pill);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.f-panel {
  display: none;
}

.f-panel.active {
  display: block;
}

.f-panel-intro p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-family: var(--font-text);
}

.f-submitted-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--status-success-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.badge-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--status-success);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.f-submitted-banner strong {
  display: block;
  font-size: 14px;
  color: #065f46;
  margin-bottom: 4px;
}

.f-submitted-banner p {
  margin: 0;
  font-size: 13px;
  color: #047857;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.party-rating-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}

.party-rating-card .party-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.party-rating-card .party-head strong {
  font-size: 15px;
  color: #0f172a;
}

.party-rating-card .party-head span {
  font-size: 11px;
  color: #64748b;
}

.p-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.p-dot.bjp, .c-bar-fill.bjp { background: #ff9933; }
.p-dot.sp, .c-bar-fill.sp { background: #e11d48; }
.p-dot.bsp, .c-bar-fill.bsp { background: #2563eb; }
.p-dot.inc, .c-bar-fill.inc { background: #16a34a; }

.rating-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-control input[type="range"] {
  flex: 1;
  accent-color: #101a2d;
  cursor: pointer;
}

.rating-control output {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  min-width: 20px;
  text-align: right;
}

.scale-max {
  font-size: 11px;
  color: #94a3b8;
}

.f-form-bottom {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.f-comment-input {
  flex: 1;
  min-width: 220px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

.f-submit-btn {
  min-height: 42px;
  padding: 0 20px;
  background: #101a2d;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}

.f-submit-btn:hover {
  background: #1e2e4a;
}

.f-submit-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.f-msg {
  color: #b91c1c;
  font-size: 12px;
  margin: 6px 0 0;
}

.community-stats-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 24px;
}

.c-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.c-head strong {
  font-size: 13px;
  color: #0f172a;
}

.c-head span {
  font-size: 11px;
  color: #64748b;
}

.c-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-party {
  width: 36px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.c-bar-track {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.c-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width .4s ease;
}

.c-val {
  width: 50px;
  font-size: 13px;
  color: #0f172a;
  text-align: right;
}

.c-val small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: normal;
}

/* Predictions grid */
.pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.pred-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.f-select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

/* Dark mode overrides for sentiment desk */
html[data-theme="dark"] .forecast-interactive-desk {
  background: #151f32;
  border-color: #344157;
}

html[data-theme="dark"] .forecast-week-badge {
  background: #1e293b;
  border-color: #344157;
  color: #cbd5e1;
}

html[data-theme="dark"] .forecast-sub-tabs {
  background: #0B0D12;
  border-color: #1C2430;
}

html[data-theme="dark"] .f-tab-btn.active {
  background: #1C2430;
  border: 1.5px solid #F26B38;
  color: #f8fafc;
  box-shadow: 0 0 0 1px #F26B38, 0 2px 8px rgba(242, 107, 56, 0.35);
}

html[data-theme="dark"] .party-rating-card {
  background: #101828;
  border-color: #1C2430;
}

html[data-theme="dark"] .party-rating-card .party-head strong,
html[data-theme="dark"] .rating-control output {
  color: #f8fafc;
}

html[data-theme="dark"] .f-comment-input,
html[data-theme="dark"] .f-select {
  background: #1e293b;
  border-color: #344157;
  color: #f8fafc;
}

html[data-theme="dark"] .community-stats-box {
  background: #1b2940;
  border-color: #344157;
}

html[data-theme="dark"] .c-head strong,
html[data-theme="dark"] .c-party,
html[data-theme="dark"] .c-val {
  color: #f8fafc;
}

html[data-theme="dark"] .c-bar-track {
  background: #1e2e48;
}

/* Modern polished scrollbars */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(148,163,184,0.35);border-radius:999px}
::-webkit-scrollbar-thumb:hover{background:rgba(148,163,184,0.65)}

/* ==============================================================
   DATA CENTRE: VICTORY MARGIN FILTERS & GRAPHICS (ASSEMBLY & PARLIAMENT)
   ============================================================== */
.e22-margin-panel, .e19-margin-panel {
  margin-top: 24px;
}
.e22-filter-bar, .e19-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.e22-filter-tag, .e19-filter-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  white-space: nowrap;
}
.e22-filter-pills, .e19-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.e22-margin-btn, .e19-margin-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 9px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.e22-margin-btn:hover, .e19-margin-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.e22-margin-btn.active, .e19-margin-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}
.e22-margin-btn .pill-count, .e19-margin-btn .pill-count {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.e22-margin-btn.active .pill-count, .e19-margin-btn.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Margin KPI stats */
.e22-margin-stats, .e19-margin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.e22-mstat-card, .e19-mstat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}
.e22-mstat-label, .e19-mstat-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}
.e22-mstat-val, .e19-mstat-val {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 2px;
  color: #0f172a;
}
.e22-mstat-note, .e19-mstat-note {
  font-size: 11px;
  color: #475569;
}

/* Margin table alignment overrides */
.e22-margin-table, .e19-margin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}
.e22-margin-table th, .e22-margin-table td,
.e19-margin-table th, .e19-margin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border-subtle, #edf0f5);
  text-align: left !important;
  vertical-align: middle;
}
.e22-margin-table th, .e19-margin-table th {
  font-size: 11px;
  color: var(--text-muted, #758198);
}
.e22-margin-table th:nth-child(3), .e22-margin-table td:nth-child(3),
.e19-margin-table th:nth-child(3), .e19-margin-table td:nth-child(3) {
  text-align: left !important;
}
.e22-margin-table th:nth-child(5), .e22-margin-table td:nth-child(5),
.e19-margin-table th:nth-child(5), .e19-margin-table td:nth-child(5),
.e22-margin-table th:nth-child(6), .e22-margin-table td:nth-child(6),
.e19-margin-table th:nth-child(6), .e19-margin-table td:nth-child(6) {
  text-align: right !important;
}

/* Margin badges in table */
.margin-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11.5px;
  white-space: nowrap;
}
.margin-badge-high {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.margin-badge-mid {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.margin-badge-narrow {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* Visual margin bar */
.e22-margin-track, .e19-margin-track {
  width: 100%;
  max-width: 120px;
  height: 8px;
  background: #edf1f7;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.e22-margin-fill, .e19-margin-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-primary, #F26B38);
}

/* Row action button */
.e22-action-btn, .e19-action-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.e22-action-btn:hover, .e19-action-btn:hover {
  background: var(--bg-control-hover);
  border-color: var(--accent-primary, #F26B38);
  color: var(--accent-primary, #F26B38);
}

/* Pagination controls */
.e22-pagination, .e19-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}
.e22-page-btns, .e19-page-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.e22-page-btn, .e19-page-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.e22-page-btn:disabled, .e19-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Dark mode overrides for margin components */
html[data-theme="dark"] .e22-filter-bar,
html[data-theme="dark"] .e19-filter-bar {
  background: #1b2940;
  border-color: #344157;
}
html[data-theme="dark"] .e22-filter-tag,
html[data-theme="dark"] .e19-filter-tag {
  color: #94a3b8;
}
html[data-theme="dark"] .e22-margin-btn,
html[data-theme="dark"] .e19-margin-btn {
  background: #24334a;
  border-color: #3e506d;
  color: #e2e8f0;
}
html[data-theme="dark"] .e22-margin-btn:hover,
html[data-theme="dark"] .e19-margin-btn:hover {
  background: #2e4160;
  border-color: #64748b;
}
html[data-theme="dark"] .e22-margin-btn.active,
html[data-theme="dark"] .e19-margin-btn.active {
  background: var(--accent-primary, #F26B38);
  border-color: var(--accent-primary, #F26B38);
  color: #ffffff;
}
html[data-theme="dark"] .e22-mstat-card,
html[data-theme="dark"] .e19-mstat-card {
  background: #1b2940;
  border-color: #344157;
}
html[data-theme="dark"] .e22-mstat-label,
html[data-theme="dark"] .e19-mstat-label {
  color: #94a3b8;
}
html[data-theme="dark"] .e22-mstat-val,
html[data-theme="dark"] .e19-mstat-val {
  color: #f8fafc;
}
html[data-theme="dark"] .e22-mstat-note,
html[data-theme="dark"] .e19-mstat-note {
  color: #cbd5e1;
}
html[data-theme="dark"] .e22-action-btn,
html[data-theme="dark"] .e19-action-btn {
  background: #24334a;
  border-color: #3e506d;
  color: #e2e8f0;
}
html[data-theme="dark"] .e22-page-btn,
html[data-theme="dark"] .e19-page-btn {
  background: #24334a;
  border-color: #3e506d;
  color: #e2e8f0;
}
html[data-theme="dark"] .e22-pagination,
html[data-theme="dark"] .e19-pagination {
  border-top-color: #24334a;
  color: #94a3b8;
}

@media(max-width: 800px) {
  .e22-margin-stats, .e19-margin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media(max-width: 480px) {
  .e22-margin-stats, .e19-margin-stats {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   CONSTITUENCY HISTORICAL PERFORMANCE GRAPH (2017, 2019, 2022, 2024)
   ========================================================================== */
.pc-graph-section {
  position: relative;
  overflow: visible;
  padding: 28px clamp(16px, 3vw, 32px);
  margin: 24px 0 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s var(--ease-apple);
}

.pc-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.pc-graph-head-left {
  flex: 1 1 340px;
}

.pc-graph-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.pc-graph-title {
  font: 800 clamp(20px, 2.4vw, 26px)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.pc-graph-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.pc-graph-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.pc-graph-segmented {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--bg-control);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill);
  gap: 2px;
}

.pc-graph-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s var(--ease-apple);
  white-space: nowrap;
}

.pc-graph-seg-btn:hover {
  color: var(--text-primary);
  background: var(--bg-control-hover);
}

.pc-graph-seg-btn.is-active {
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .pc-graph-seg-btn.is-active {
  background: #1C2430;
  color: #F26B38;
  border-color: #F26B38;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pc-graph-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.pc-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pc-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* SVG Chart Stage */
.pc-graph-stage {
  position: relative;
  width: 100%;
  margin: 8px 0 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.05), transparent 70%), var(--bg-surface-elevated, rgba(15, 23, 42, 0.3));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.pc-performance-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
}

/* SVG Grid & Axes */
.pc-grid-line {
  stroke: var(--border-default);
  stroke-opacity: 0.35;
  stroke-dasharray: 4,4;
}

.pc-grid-baseline {
  stroke: var(--border-default);
  stroke-width: 1.5;
  stroke-opacity: 0.8;
}

.pc-grid-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  fill: var(--text-muted);
}

.pc-xaxis-year {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  fill: var(--text-primary);
  letter-spacing: -0.015em;
}

.pc-xaxis-full {
  font-size: 11.5px;
  font-weight: 500;
  fill: var(--text-muted);
}

.pc-xaxis-type {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--accent-primary);
}

/* Column hover band */
.pc-graph-col-band {
  fill: transparent;
  transition: fill 0.18s ease;
}

.pc-graph-col-group.is-hovered .pc-graph-col-band {
  fill: rgba(56, 189, 248, 0.08);
}

/* Bars styling */
.pc-graph-bar {
  transition: transform 0.2s var(--ease-apple), filter 0.2s ease, opacity 0.2s ease;
  transform-origin: bottom center;
}

.pc-graph-col-group:hover .pc-graph-bar,
.pc-graph-col-group.is-hovered .pc-graph-bar {
  filter: brightness(1.12) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* iOS-based typography for Vote % Figures - Crisp, modern, no muddy shadows */
.pc-graph-bar-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "SF Pro Text", system-ui, -system-ui, "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.015em;
  fill: #ffffff;
  user-select: none;
}

html[data-theme="light"] .pc-graph-bar-val {
  fill: #0f172a;
}

.pc-val-win {
  font-weight: 700;
  fill: #ffffff;
}

html[data-theme="light"] .pc-val-win {
  fill: #0f172a;
}

.pc-val-run {
  font-weight: 600;
  fill: #cbd5e1;
}

html[data-theme="light"] .pc-val-run {
  fill: #475569;
}

.pc-graph-bar-abbr {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: #ffffff;
  pointer-events: none;
}

/* Top Margin Pill Badge - iOS pill styling placed in dedicated top zone */
.pc-margin-top-badge {
  transition: transform 0.2s var(--ease-apple);
}

.pc-graph-col-group:hover .pc-margin-top-badge,
.pc-graph-col-group.is-hovered .pc-margin-top-badge {
  transform: translateY(-1px);
}

.pc-margin-badge-bg {
  fill: rgba(234, 179, 8, 0.12);
  stroke: rgba(234, 179, 8, 0.4);
  stroke-width: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .pc-margin-badge-bg {
  fill: rgba(245, 158, 11, 0.12);
  stroke: rgba(217, 119, 6, 0.35);
}

.pc-graph-col-group:hover .pc-margin-badge-bg,
.pc-graph-col-group.is-hovered .pc-margin-badge-bg {
  fill: rgba(234, 179, 8, 0.24);
  stroke: rgba(234, 179, 8, 0.75);
  filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.35));
}

.pc-margin-badge-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  fill: #eab308;
  pointer-events: none;
}

html[data-theme="light"] .pc-margin-badge-text {
  fill: #b45309;
}

/* Scrubber Line */
.pc-graph-scrubber-line {
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  stroke-dasharray: 4,3;
  pointer-events: none;
}

/* Trend Lines layer styling */
.pc-line-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pc-line-val-win {
  fill: #ffffff;
}

html[data-theme="light"] .pc-line-val-win {
  fill: #0f172a;
}

.pc-line-val-run {
  fill: #94a3b8;
}

html[data-theme="light"] .pc-line-val-run {
  fill: #475569;
}

.pc-line-abbr {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: var(--accent-primary);
}

/* Margin pillars */
.pc-margin-pillar {
  fill: #eab308;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.pc-margin-col-group:hover .pc-margin-pillar,
.pc-margin-col-group.is-hovered .pc-margin-pillar {
  opacity: 1;
  filter: drop-shadow(0 4px 14px rgba(234, 179, 8, 0.4));
}

.pc-margin-pillar-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  fill: #eab308;
}

.pc-margin-pillar-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 10.5px;
  fill: var(--text-muted);
}

/* Floating interactive tooltip */
.pc-graph-tooltip {
  position: absolute;
  z-index: 100;
  width: 290px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: transform 0.08s ease-out, opacity 0.15s ease;
  font-family: var(--font-text);
  color: #f8fafc;
}

html[data-theme="light"] .pc-graph-tooltip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.pc-tt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

html[data-theme="light"] .pc-tt-head {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.pc-tt-year-badge {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.pc-tt-meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.pc-tt-meta small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.pc-tt-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-tt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .pc-tt-row {
  background: rgba(0, 0, 0, 0.03);
}

.pc-tt-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 4px;
}

.pc-tt-info {
  min-width: 0;
}

.pc-tt-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-tt-party {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.pc-tt-stat {
  text-align: right;
}

.pc-tt-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}

.pc-tt-stat small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.pc-tt-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .pc-tt-foot {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.pc-tt-margin {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.pc-tt-margin strong {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #eab308;
  margin: 0 4px;
}

.pc-tt-margin small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* 4 Quick Stat Cards Grid */
.pc-graph-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pc-graph-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated, #151f32);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
  outline: none;
}

.pc-graph-card:hover,
.pc-graph-card.is-active,
.pc-graph-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--accent-primary);
}

.pc-graph-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pc-card-year {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.pc-card-year small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.pc-card-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-assembly {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-loksabha {
  background: rgba(66, 103, 213, 0.14);
  color: #4267D5;
  border: 1px solid rgba(66, 103, 213, 0.3);
}

.pc-graph-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.pc-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.pc-card-role-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pc-card-party-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid currentColor;
  flex-shrink: 0;
}

.pc-card-cand-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.win-row .pc-card-cand-name {
  color: var(--text-primary);
  font-weight: 600;
}

.pc-card-pct {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.run-row .pc-card-pct {
  color: var(--text-secondary);
}

.pc-graph-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
}

.pc-card-margin-lead {
  color: var(--text-muted);
}

.pc-card-margin-lead strong {
  font-family: var(--font-mono);
  color: #eab308;
  font-weight: 700;
}

.pc-card-margin-lead small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

.pc-card-inspect-arrow {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 10.5px;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .pc-graph-header {
    flex-direction: column;
    align-items: stretch;
  }
  .pc-graph-controls {
    align-items: flex-start;
  }
  .pc-graph-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pc-graph-cards-grid {
    grid-template-columns: 1fr;
  }
  .pc-graph-segmented {
    width: 100%;
    justify-content: stretch;
  }
  .pc-graph-seg-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
    font-size: 11px;
  }
}


/* ==========================================================================
   FORM 20 · POLLING STATION (BOOTH-WISE) COMPONENT (17, 19, 22, 24)
   ========================================================================== */
.booth-section {
  position: relative;
  margin: 32px 0;
  padding: 28px clamp(16px, 3vw, 32px);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all 0.2s var(--ease-apple);
}

.booth-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.booth-head-left {
  flex: 1 1 340px;
}

.booth-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.booth-title {
  font: 800 clamp(20px, 2.4vw, 26px)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.booth-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* Year switcher */
.booth-year-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--bg-control);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill);
  gap: 3px;
  flex-wrap: wrap;
}

.booth-year-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 650;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s var(--ease-apple);
  white-space: nowrap;
}

.booth-year-btn:hover {
  color: var(--text-primary);
  background: var(--bg-control-hover);
}

.booth-year-btn.active {
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-weight: 750;
}

html[data-theme="dark"] .booth-year-btn.active {
  background: #1C2430;
  color: #F26B38;
  border-color: #F26B38;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* 4 Stats strip */
.booth-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.booth-stat-card {
  padding: 14px 16px;
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.18s var(--ease-apple);
}

.booth-stat-card:hover {
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.booth-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.booth-stat-val {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.booth-stat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tally bar container */
.booth-tally-container {
  padding: 16px 18px;
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.booth-tally-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booth-tally-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--text-primary);
}

.booth-tally-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.booth-tally-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
  margin-bottom: 12px;
}

.booth-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-control);
  border: 1px solid var(--border-control);
  font-size: 12px;
}

.booth-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.booth-chip-party {
  font-weight: 750;
  color: var(--text-primary);
}

.booth-chip-count {
  color: var(--text-secondary);
}

.booth-chip-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Toolbar */
.booth-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.booth-search-box {
  position: relative;
  width: 100%;
}

.booth-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.booth-search-input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 13.5px;
  outline: none;
  transition: all 0.18s var(--ease-apple);
}

.booth-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.booth-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.booth-filter-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.booth-party-filters,
.booth-margin-filters {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.booth-pill-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-control);
  background: var(--bg-control);
  color: var(--text-secondary);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease-apple);
}

.booth-pill-btn:hover {
  background: var(--bg-control-hover);
  color: var(--text-primary);
}

.booth-pill-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.booth-sort-select {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-control);
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Status counter */
.booth-results-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 2px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.booth-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booth-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booth-source-btn:hover {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
  border-color: #2563eb;
}

.booth-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-control);
  background: var(--bg-control);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booth-export-btn:hover {
  background: var(--bg-control-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
}

/* Table */
.booth-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated, #ffffff);
  margin-bottom: 16px;
}

.booth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.booth-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--bg-control);
  border-bottom: 1px solid var(--border-default);
}

.booth-tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}

.booth-tr:hover {
  background: rgba(56, 189, 248, 0.04);
}

.booth-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.booth-no-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-control);
  border: 1px solid var(--border-control);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  color: var(--accent-primary);
}

.booth-station-name {
  display: block;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.35;
}

.booth-area-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.booth-party-lead-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booth-party-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  display: inline-block;
}

.booth-cand-info {
  display: flex;
  flex-direction: column;
}

.booth-cand-name {
  font-size: 12.5px;
  color: var(--text-primary);
}

.booth-cand-name.runner {
  color: var(--text-secondary);
  font-weight: normal;
}

.booth-cand-votes {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.booth-margin-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booth-margin-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid currentColor;
  width: fit-content;
  font-variant-numeric: tabular-nums;
}

.booth-margin-pct {
  font-size: 10.5px;
  color: var(--text-muted);
}

.booth-total-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.booth-mini-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
}

.booth-empty-cell {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Pagination bar */
.booth-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.booth-page-btn,
.booth-show-all-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-control);
  background: var(--bg-control);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booth-page-btn:hover:not(:disabled),
.booth-show-all-btn:hover {
  background: var(--bg-control-hover);
}

.booth-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booth-page-numbers {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.booth-num-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-control);
  background: var(--bg-control);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.booth-num-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.booth-page-ellipsis,
.booth-page-indicator {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footnote */
.booth-footnote {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 16px 0 0;
}

/* Pending Card */
.booth-pending-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px dashed var(--border-default);
}

.booth-pending-icon {
  font-size: 32px;
  line-height: 1;
}

.booth-pending-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 750;
  color: var(--text-primary);
}

.booth-pending-content p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.booth-pending-samples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.booth-sample-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.booth-sample-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-primary);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-primary);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booth-sample-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.booth-status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.booth-status-pill.pending {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.booth-loading-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.booth-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-control);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: boothSpin 0.7s linear infinite;
}

@keyframes boothSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .booth-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .booth-stats-strip {
    grid-template-columns: 1fr;
  }
  .booth-filter-group {
    flex-direction: column;
    align-items: stretch;
  }
}
