/* V7.49 — Only geography and candidates pages are restyled. Shared header remains locked. */
/* V6.5 independent geography & representation directory */
.geo-overview,.geo-directory,.geo-records,.geo-sources{margin-bottom:48px}.geo-headline{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:20px}.geo-headline h2,.geo-sources h2{font:normal clamp(25px,3vw,38px) Georgia,serif;color:#102e60;margin:7px 0}.geo-headline p,.geo-sources p{color:#63756b;font-size:13px;line-height:1.75;max-width:750px;margin:0}.geo-source{background:#edf4ff;border:1px solid #d5e6d5;border-radius:9px;padding:11px 14px;font-weight:750;color:#265c42;font-size:12px;white-space:nowrap}.geo-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.geo-kpi{background:#fff;border:1px solid #dce7f7;border-radius:16px;padding:20px;box-shadow:0 10px 30px #193f3009;display:flex;flex-direction:column;align-items:start;min-height:195px}.geo-kpi>span{font-size:10px;letter-spacing:1px;color:#758479;text-transform:uppercase;font-weight:800}.geo-kpi strong{font:normal 43px Georgia,serif;color:#1d513b;margin-top:10px}.geo-kpi b{font-size:14px;color:#224b39}.geo-kpi small{font-size:11px;color:#718276;line-height:1.5;margin-top:8px}.geo-ward-note{margin-top:13px;background:#fff7e7;border:1px solid #eddfbf;border-radius:13px;padding:16px 19px;display:flex;gap:14px;align-items:center;justify-content:space-between}.geo-ward-note b{color:#684e24}.geo-ward-note p{font-size:12px;color:#776446;line-height:1.65;margin:6px 0 0}.geo-ward-note a{font-size:12px;color:#725321;white-space:nowrap;text-decoration:underline}.geo-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:16px;background:#eff6ed;border:1px solid #deeadb;border-radius:15px}.geo-controls label{font-size:12px;color:#305440;font-weight:800}.geo-controls select,.geo-controls input{width:100%;display:block;margin-top:7px;border:1px solid #cddfd0;border-radius:8px;background:#fff;padding:11px;min-width:0;color:#214932}.geo-directory-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:15px 0;font-size:12px;font-weight:750;color:#4d7158}.geo-directory-meta button{border:1px solid #ccdbca;border-radius:7px;background:#fff;padding:7px 12px;color:#276047}.geo-district-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.geo-district-card{background:#fff;border:1px solid #e0e9df;border-radius:14px;padding:15px;min-width:0}.geo-card-top{display:flex;justify-content:space-between;gap:9px;align-items:center}.geo-card-top h3{font:normal 20px Georgia,serif;color:#24533b;margin:0}.geo-card-top span{font-size:10px;color:#a16f31;background:#fff4e3;padding:4px 8px;border-radius:15px;white-space:nowrap}.geo-seat-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.geo-seat-tag{background:#eff5ec;border:1px solid #d8e4d5;border-radius:8px;padding:6px 8px;font-size:11px;color:#2c5640;text-align:left}.geo-seat-tag small{display:block;color:#78917f;font-size:9px}.geo-seat-tag:hover,.geo-seat-tag:focus-visible,.geo-seat-tag.chosen{background:#ffe9c6;border-color:#dda858}.geo-selection{margin-top:18px;background:#143c30;color:#e8f4eb;border-radius:15px;padding:20px}.geo-selection strong{font:normal 23px Georgia,serif}.geo-selection p{font-size:12px;color:#cadbd0;line-height:1.7}.geo-selection .btn{display:inline-block;margin-top:7px}.geo-empty{padding:25px;color:#6f7c70}.geo-progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.geo-progress-grid>div{background:#fff;border:1px solid #dfe8de;border-radius:15px;padding:21px;display:flex;flex-direction:column;gap:7px}.geo-progress-grid .geo-num{font:normal 38px Georgia,serif;color:#285f44}.geo-progress-grid b{font-size:14px;color:#294c39}.geo-progress-grid small{font-size:11px;line-height:1.7;color:#6a8172;flex:1}.geo-progress-grid a{color:#a46d28;font-size:12px;font-weight:800;margin-top:8px}.geo-sources{background:#edf4ff;padding:23px;border:1px solid #dce9dc;border-radius:17px;display:grid;grid-template-columns:1.1fr 1fr;gap:28px}.geo-links{display:grid;gap:7px}.geo-links a{display:block;background:white;padding:10px 12px;border:1px solid #dce7dc;border-radius:8px;color:#245641;font-size:12px;font-weight:700}.geo-inline-link{margin:10px 0 18px}.geo-inline-link a{font-size:12px;font-weight:750;color:#205943;border-bottom:1px solid #8ab199}
@media(max-width:1000px){.geo-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.geo-district-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.geo-progress-grid{grid-template-columns:1fr}}
@media(max-width:640px){.geo-kpi-grid,.geo-district-grid,.geo-controls,.geo-sources{grid-template-columns:1fr}.geo-kpi{min-height:auto}.geo-ward-note,.geo-headline{flex-direction:column;align-items:start}.geo-ward-note a{white-space:normal}.geo-progress-grid{gap:10px}}
/* V7.49 premium data design: contemporary editorial cards with familiar blue and red accents */
body:has(.lok-data49){background:#f5f8fe}
body:has(.lok-data49) .page-hero{background:linear-gradient(115deg,#102e60 0%,#194b95 70%,#2555a0 100%);position:relative;overflow:hidden;border-bottom:5px solid #d73545}
body:has(.lok-data49) .page-hero:after{content:"";position:absolute;right:-110px;top:-140px;width:450px;height:450px;border:1px solid #ffffff22;border-radius:50%;pointer-events:none}
body:has(.lok-data49) .page-hero .wrap{position:relative;z-index:1}
body:has(.lok-data49) .page-hero .eyebrow{color:#ffb6ba;font-size:11px;font-weight:850}
body:has(.lok-data49) .page-hero h1{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:850;letter-spacing:-.045em;font-size:clamp(34px,4.3vw,58px);line-height:1.13;max-width:900px}
body:has(.lok-data49) .page-hero p{font-size:15px;max-width:810px;line-height:1.8;color:#e0eafa}
body:has(.lok-data49) main.section{padding-top:38px}
body:has(.lok-geo49) .geo-overview,body:has(.lok-geo49) .geo-directory,body:has(.lok-geo49) .geo-records,body:has(.lok-geo49) .geo-sources{margin-bottom:39px}
body:has(.lok-geo49) .geo-kpi-grid{gap:16px}
body:has(.lok-geo49) .geo-kpi{border:1px solid #dce5f4;box-shadow:0 14px 32px #152a5211;border-radius:18px;position:relative;overflow:hidden;transition:transform .18s,box-shadow .18s;padding:23px;min-height:185px}
body:has(.lok-geo49) .geo-kpi:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#ce2e45,#ec7680)}
body:has(.lok-geo49) .geo-kpi:hover{transform:translateY(-3px);box-shadow:0 18px 37px #152a521c}
body:has(.lok-geo49) .geo-kpi strong{font:800 clamp(35px,3.8vw,49px)/1.1 Inter,system-ui,sans-serif;color:#142f66;letter-spacing:-.045em}
body:has(.lok-geo49) .geo-kpi b,body:has(.lok-geo49) .geo-card-top h3,body:has(.lok-geo49) .geo-progress-grid b{color:#172c51}
body:has(.lok-geo49) .geo-kpi>span{color:#73809c}
body:has(.lok-geo49) .geo-controls{background:#fff;border:1px solid #dce5f4;border-radius:19px;box-shadow:0 10px 27px #17355e0d;padding:20px;gap:15px}
body:has(.lok-geo49) .geo-controls label{color:#243a61}
body:has(.lok-geo49) .geo-controls select,body:has(.lok-geo49) .geo-controls input{border:1px solid #cddaf0;color:#18335b;border-radius:10px;padding:12px;background:#f9fbff;min-height:47px}
body:has(.lok-geo49) .geo-directory-meta{color:#425778}
body:has(.lok-geo49) .geo-district-grid{gap:17px}
body:has(.lok-geo49) .geo-district-card{border:1px solid #dce5f4;border-radius:18px;box-shadow:0 9px 23px #18325d0d;padding:20px;transition:box-shadow .18s,border-color .18s;background:#fff}
body:has(.lok-geo49) .geo-district-card:hover{border-color:#b6c8e8;box-shadow:0 15px 30px #18325d19}
body:has(.lok-geo49) .geo-card-top{padding-bottom:12px;border-bottom:1px solid #e9edf6}
body:has(.lok-geo49) .geo-card-top h3{font:800 18px/1.4 Inter,system-ui,sans-serif}
body:has(.lok-geo49) .geo-card-top span{background:#fbe9eb;color:#aa2540;font-size:11px;font-weight:800}
body:has(.lok-geo49) .geo-seat-tags{margin-top:15px;gap:8px}
body:has(.lok-geo49) .geo-seat-tag{background:#f2f6fd;border:1px solid #dce6f5;color:#26446e;border-radius:9px;padding:8px 10px;font-weight:650;line-height:1.45}
body:has(.lok-geo49) .geo-seat-tag small{color:#7c8da9}
body:has(.lok-geo49) .geo-seat-tag:hover,body:has(.lok-geo49) .geo-seat-tag:focus-visible,body:has(.lok-geo49) .geo-seat-tag.chosen{background:#fce8eb;border-color:#ce344a;color:#9e2037;outline-offset:2px}
body:has(.lok-geo49) .geo-selection{background:linear-gradient(120deg,#142f67,#1d509a);box-shadow:0 12px 30px #12285426;border-radius:18px}
body:has(.lok-geo49) .geo-progress-grid{gap:16px}
body:has(.lok-geo49) .geo-progress-grid>div{border:1px solid #dce5f4;border-radius:18px;box-shadow:0 12px 26px #182c4d10}
body:has(.lok-geo49) .geo-progress-grid .geo-num{font:850 42px Inter,system-ui,sans-serif;letter-spacing:-.045em;color:#c52d47}
body:has(.lok-geo49) .geo-sources{background:#eff4fc;border-color:#d7e2f5}
body:has(.lok-geo49) .geo-links a{color:#194780;border-color:#d6e1f4}
body:has(.lok-cand49) .featured-leaders{margin-top:4px}
body:has(.lok-cand49) .featured-leaders .section-head{padding:0 0 10px}
body:has(.lok-cand49) .featured-leaders h2{color:#172e5a;font-family:Inter,system-ui,sans-serif;font-weight:850;letter-spacing:-.04em;font-size:clamp(26px,3vw,38px)}
body:has(.lok-cand49) .face-grid{gap:17px}
body:has(.lok-cand49) .face{border:1px solid #dce5f4;border-radius:18px;box-shadow:0 12px 31px #162e540f}
body:has(.lok-cand49) .face .portrait{aspect-ratio:1.27;background:#eaf0f9}
body:has(.lok-cand49) .face .body{padding:18px}
body:has(.lok-cand49) .face .body b{color:#1c3155;font-size:17px}
body:has(.lok-cand49) .face .party-label{background:#fbe9ec;color:#ad2940;border:1px solid #f1d1d7}
body:has(.lok-cand49) .filter-toolbar{margin:23px 0 15px;padding:22px;border:1px solid #dce5f4;background:#fff;border-radius:18px;box-shadow:0 13px 31px #182e520f;gap:14px;align-items:end}
body:has(.lok-cand49) .filter-toolbar .field{min-width:165px;color:#203b65}
body:has(.lok-cand49) .filter-toolbar input,body:has(.lok-cand49) .filter-toolbar select{background:#f8faff;border:1px solid #cfdcf0;border-radius:10px;min-height:48px;color:#213b61}
body:has(.lok-cand49) .party-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0}
body:has(.lok-cand49) .party-stat{padding:13px 15px;border:1px solid #e0e8f5;border-radius:12px;background:#fff;font-size:13px;font-weight:750;color:#243b62;display:flex;justify-content:space-between;gap:8px;align-items:center}
body:has(.lok-cand49) .party-stat span{background:#f1f5fd;border-radius:99px;padding:5px 8px;color:#28529a;font-size:11px;white-space:nowrap}
body:has(.lok-cand49) #candidate-count{font-size:13px;font-weight:750;color:#486080}
body:has(.lok-cand49) .grid-list{gap:17px;align-items:stretch}
body:has(.lok-cand49) #candidate-list>.item{position:relative;border:1px solid #dce5f3;border-top:4px solid #ca3449;border-radius:16px;padding:22px;box-shadow:0 10px 27px #1b2e4e12;transition:transform .18s,box-shadow .18s;min-height:212px;display:flex;flex-direction:column;align-items:flex-start}
body:has(.lok-cand49) #candidate-list>.item:hover{transform:translateY(-3px);box-shadow:0 17px 33px #1b2e4e20}
body:has(.lok-cand49) #candidate-list>.item h3{font:850 22px/1.25 Inter,system-ui,sans-serif;color:#172f5f;letter-spacing:-.03em;margin:15px 0 8px}
body:has(.lok-cand49) #candidate-list>.item .muted{color:#62738c;line-height:1.6}
body:has(.lok-cand49) #candidate-list>.item .chip{color:#a52842;background:#fcecef;border:1px solid #f1d4d9;padding:6px 11px}
body:has(.lok-cand49) #candidate-list>.item a.link{margin-top:auto;display:inline-flex;padding:10px 13px;border-radius:9px;border:1px solid #ccdaef;background:#f4f7fd;color:#23589e}
body:has(.lok-cand49) .party-context{background:#edf3fd;padding:13px 16px;border-left:4px solid #c93448;border-radius:9px;color:#3e5376;font-size:13px;line-height:1.65}
body:has(.lok-cand49) .warning{border-radius:13px}
body:has(.lok-data49) :is(input,select,button,a):focus-visible{outline:3px solid #d33a4e;outline-offset:2px}
@media(max-width:1000px){body:has(.lok-cand49) .party-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body:has(.lok-data49) .page-hero{padding:45px 0 33px}body:has(.lok-data49) main.section{padding-top:26px}body:has(.lok-cand49) .face-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:has(.lok-cand49) .party-overview{grid-template-columns:1fr}body:has(.lok-cand49) .filter-toolbar{padding:16px}body:has(.lok-cand49) .grid-list{grid-template-columns:1fr}body:has(.lok-geo49) .geo-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:has(.lok-geo49) .geo-kpi{padding:16px;min-height:0}body:has(.lok-geo49) .geo-district-grid{grid-template-columns:1fr}}
@media(max-width:420px){body:has(.lok-geo49) .geo-kpi-grid{grid-template-columns:1fr}body:has(.lok-cand49) .face-grid{grid-template-columns:1fr}}
