/* THE EVENING WIRE — Three-map election studio */
.ew-maps-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:31px 0 16px}
.ew-maps-title h2{font:900 clamp(32px,3.4vw,48px)/1.05 'Barlow Condensed',Impact,sans-serif;margin:6px 0;letter-spacing:.25px}
.ew-maps-title p{font:500 12px/1.7 'DM Sans',sans-serif;color:#a0bad1;max-width:580px;margin:0}
.ew-maps-kicker{font:900 10px/1 'DM Sans',sans-serif;letter-spacing:2px;color:#57dcee}
.ew-triple{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;align-items:stretch;margin:18px 0}
.ew-mapcard{min-width:0;background:linear-gradient(160deg,#11243a 0%,#091828 100%);border:1px solid #344d68;border-radius:16px;box-shadow:inset 0 1px #ffffff0d,0 20px 55px #0002;overflow:hidden;display:flex;flex-direction:column}
.ew-mapcard-head{padding:19px 19px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.ew-mapcard-head h3{font:800 25px/1 'Barlow Condensed',Impact,sans-serif;margin:6px 0 0}
.ew-mapcard-head small{font:800 9px 'DM Sans',sans-serif;letter-spacing:1.35px;color:#85a6c7}
.ew-mapcard-stat{display:inline-block;color:#ddedff;background:#1d3853;border:1px solid #375d7d;border-radius:30px;padding:6px 8px;font:800 10px 'DM Sans';white-space:nowrap}
.ew-mapcard-actions{padding:12px 17px 17px;display:flex;gap:8px;margin-top:auto}
.ew-mapcard-actions button{flex:1;background:#125872;border:1px solid #2383a7;border-radius:7px;padding:11px 9px;font-size:10px;letter-spacing:.8px;text-align:center}
.ew-mapcard-actions button:hover{background:#187b9f}
.ew-map{position:relative;background:radial-gradient(ellipse at 50% 40%,#173d5d54,#061423 65%);border:1px solid #314a62;border-radius:13px;overflow:hidden;isolation:isolate}
.ew-map.mini{min-height:225px;border-radius:0;border-left:0;border-right:0;border-color:#263e56;background:radial-gradient(ellipse at 50% 40%,#143f6450,#091827 72%)}
.ew-map.large{min-height:450px}
.ew-map.fullscreen-map{width:100%;height:100%;min-height:100vh;border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center;background:#061321}
.ew-map:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#4b8ab514 1px,transparent 1px),linear-gradient(#4b8ab514 1px,transparent 1px);background-size:30px 30px;mask-image:radial-gradient(ellipse at center,black,transparent 80%);z-index:0;pointer-events:none}
.ew-map-svg{display:block;position:relative;width:100%;height:auto;max-height:calc(100vh - 120px);touch-action:pan-y}
.ew-map.mini .ew-map-svg{height:220px}
.ew-map.large .ew-map-svg{min-height:440px}
.ew-map.fullscreen-map .ew-map-svg{height:calc(100vh - 90px)}
.ew-state,.ew-district{cursor:pointer;stroke:#304b60;stroke-width:.6;vector-effect:non-scaling-stroke;transition:fill .15s ease}
.ew-state:hover,.ew-state:focus-visible,.ew-district:hover,.ew-district:focus-visible{stroke:#b8f0ff;stroke-width:1.9;filter:brightness(1.22);outline:none}
.ew-district{stroke:#193950;stroke-width:.44}
.ew-district:hover{stroke:#d7f4ff;stroke-width:1.3}
.ew-state.has-election{stroke:#7396ad;stroke-width:.9}
.ew-map-legend{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 13px;color:#9eb3c8;font-size:10px}
.ew-map-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;background:#6f8498}
.ew-map-legend i.r{background:#e55868}.ew-map-legend i.d{background:#478edc}.ew-map-legend i.other{background:#d9b675}.ew-map-legend i.uncalled{background:#52677c}
.ew-map-tools{display:flex;position:absolute;right:12px;top:12px;gap:5px;z-index:2}
.ew-map-tools button{background:#071928ee;border:1px solid #43647c;border-radius:7px;min-width:35px;min-height:34px;padding:5px;font-size:14px;color:#def0ff}
.ew-map-tools button:hover{background:#155674}
.ew-map-attribution{position:absolute;left:10px;bottom:10px;color:#7896ad;font-size:9px;z-index:2;background:#061525ca;border-radius:4px;padding:3px 6px}
.ew-map-tip{position:absolute;pointer-events:none;z-index:4;min-width:150px;max-width:260px;padding:10px 12px;background:#071321f2;border:1px solid #40afcf;border-radius:8px;color:#e7f6ff;font-size:11px;box-shadow:0 12px 35px #000a;display:none}
.ew-map-message{position:relative;min-height:220px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:9px;padding:30px;color:#a0c0d5;font-size:12px}
.ew-map-message b{font:800 19px 'Barlow Condensed',sans-serif;color:#edfaff}
.ew-map-caption{padding:10px 16px 14px;color:#99aec7;font-size:10px;line-height:1.6}
.ew-map-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px 0}
.ew-map-tabs button{border-radius:8px;background:#132c44;border-color:#3b5874}.ew-map-tabs button.active{background:#176886;border-color:#3aa8c7}
.ew-maps-foot{color:#91abc0;font-size:10px;line-height:1.7;margin:12px 0}
.ew-map-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:15px}
.ew-tv-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}
.ew-tv{position:fixed;inset:0;z-index:110;background:#071321;overflow-y:auto;padding:20px 24px}
.ew-tv .ew-triple{grid-template-columns:repeat(3,minmax(0,1fr))}
.ew-tv .ew-map.mini .ew-map-svg{height:clamp(220px,38vh,460px)}
.ew-tv .ew-map.mini{min-height:clamp(220px,38vh,460px)}
.ew-tv-header{display:flex;justify-content:space-between;align-items:center;gap:15px}
.ew-tv-header b{font:900 clamp(22px,3.2vw,44px) 'Barlow Condensed',sans-serif;letter-spacing:.7px}
.ew-tv-header span{color:#9abbd1;font-size:11px}
.ew-tv-header button{background:#184a62;border:1px solid #387d9a;border-radius:8px;color:white;padding:9px 15px}
.ew-no-data{margin:10px 0;padding:12px 14px;border:1px solid #735d38;border-radius:9px;background:#57411c36;color:#ead2a5;font-size:11px;line-height:1.6}
@media(max-width:1000px){.ew-triple,.ew-tv .ew-triple{grid-template-columns:1fr 1fr}.ew-tv .ew-map.mini .ew-map-svg{height:230px}}
@media(max-width:680px){.ew-triple,.ew-tv .ew-triple,.ew-map-compare{grid-template-columns:1fr}.ew-map.large{min-height:260px}.ew-map.large .ew-map-svg{min-height:280px}.ew-mapcard-head h3{font-size:25px}.ew-tv{padding:13px}.ew-map-tools button{min-width:32px;min-height:31px}.ew-map.fullscreen-map .ew-map-svg{height:calc(100vh - 120px)}}
@media(prefers-reduced-motion:reduce){.ew-state,.ew-district{transition:none}}
