/* Election dashboard - Tab-style interactive layout (RTL) */
.ed-root{direction:rtl;background:#eef1f6;color:#17233b;font-family:inherit;min-height:100%;padding:0 0 32px}
.ed-root *{box-sizing:border-box}
.ed-inner{max-width:960px;margin:0 auto;padding:0 16px}

/* header */
.ed-header{background:#0d1a2e;color:#fff;padding:22px 0 26px}
.ed-header-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:#aebad0}
.ed-brand{font-weight:600}
.ed-live{display:flex;align-items:center;gap:7px;font-weight:600;color:#dbe4f2}
.ed-dot{width:9px;height:9px;border-radius:50%;background:#ff4d4d;box-shadow:0 0 0 3px rgba(255,77,77,.25);display:inline-block}
.ed-header h1{font-size:30px;font-weight:800;margin:12px 0 4px;line-height:1.25}
.ed-date{font-size:14px;color:#aebad0;margin-bottom:14px}
.ed-summary{background:#16263f;border:1px solid #263a59;border-radius:12px;padding:12px 16px;font-size:14.5px;line-height:1.65;color:#e8eef8}

/* legend */
.ed-legend{background:#fff;border-bottom:1px solid #e3e8f0;padding:10px 0}
.ed-legend-inner{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ed-legend-toggle{background:none;border:none;color:#1d4fa1;font-weight:700;font-size:13px;cursor:pointer;padding:4px 8px}
.ed-legend-body{margin-top:10px;font-size:13.5px;line-height:1.8;color:#3c4a63}
.ed-legend-body ul{margin:0;padding-inline-start:20px}

/* sections */
.ed-section{margin:22px 0}
.ed-h2{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800;margin:0 0 4px}
.ed-h2::before{content:"";width:5px;height:22px;border-radius:3px;background:#1d4fa1;flex:none}
.ed-h2-note{font-size:13px;color:#5b6b85;font-weight:400}
.ed-sub{font-size:13.5px;color:#5b6b85;margin:4px 0 12px;line-height:1.7}

/* generic card */
.ed-card{background:#fff;border:1px solid #e3e8f0;border-radius:14px;padding:16px 18px;margin:12px 0;box-shadow:0 1px 3px rgba(13,26,46,.06)}
.ed-card-warn{background:#fffdf3;border-color:#f0df9e}
.ed-card-verified{border-inline-start:4px solid #2e9e5b}
.ed-card-imported{border-inline-start:4px solid #d97706}

/* badges + chips */
.ed-badge{display:inline-block;font-size:12px;font-weight:700;border-radius:20px;padding:3px 10px;line-height:1.5}
.ed-badge-verified{background:#e6f6ec;color:#1e7a41}
.ed-badge-imported{background:#fdf0e0;color:#b45309}
.ed-badge-relayed{background:#e8effc;color:#1d4fa1}
.ed-badge-analysis{background:#f3e8fd;color:#7c3aed}
.ed-chip{display:inline-block;font-size:12.5px;font-weight:700;border-radius:8px;padding:3px 9px}
.ed-chip-below{background:#eceff1;color:#607d8b}
.ed-chip-above{background:#e6f6ec;color:#1e7a41}
.ed-chip-unknown{background:#eef1f6;color:#5b6b85}
.ed-chip-line{background:#fdf0e0;color:#b45309}

/* expander button */
.ed-expand{background:none;border:none;color:#17233b;font-weight:800;font-size:14.5px;cursor:pointer;display:flex;align-items:center;gap:8px;padding:10px 4px;width:100%;text-align:start}
.ed-expand:hover{color:#1d4fa1}
.ed-expand .arr{font-size:11px;color:#5b6b85}

/* what's new (yellow) */
.ed-new{background:#fdf3cd;border:1px solid #f0df9e;border-radius:14px;padding:16px 18px;margin:14px 0}
.ed-new h2{font-size:18px;font-weight:800;margin:0 0 10px}
.ed-new-line{padding:9px 2px;border-bottom:1px solid rgba(23,35,59,.09);font-size:14.5px;line-height:1.7;display:flex;gap:10px;align-items:baseline}
.ed-new-line:last-child{border-bottom:none}
.ed-time{background:#0d1a2e;color:#fff;border-radius:8px;padding:2px 9px;font-size:12.5px;font-weight:700;white-space:nowrap;flex:none}
.ed-official-line{font-weight:700}

/* poll cards */
.ed-pollgrid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:900px){.ed-pollgrid-2{grid-template-columns:1fr 1fr}.ed-pollgrid-3{grid-template-columns:1fr 1fr 1fr}}
.ed-poll{background:#fffdf5;border:1px solid #f0e2b0;border-radius:14px;padding:16px 18px}
.ed-poll-plain{background:#fff;border-color:#e3e8f0}
.ed-poll-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.ed-poll-channel{font-size:19px;font-weight:800}
.ed-poll-pollster{font-size:13.5px;color:#5b6b85}
.ed-poll-update{background:#fdf0c0;border:1px solid #ecd98f;color:#7a5b00;font-size:12px;font-weight:800;border-radius:20px;padding:3px 10px}
.ed-poll-status{font-size:13.5px;font-weight:700;color:#3c4a63;margin:2px 0 10px}

/* bloc tiles + bar */
.ed-blocs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
.ed-bloc{border-radius:12px;padding:10px 6px;text-align:center}
.ed-bloc-num{font-size:32px;font-weight:800;line-height:1.1}
.ed-bloc-name{font-size:13px;font-weight:700;margin-top:2px}
.ed-bloc-net{background:#e8effc;color:#1d4fa1}
.ed-bloc-change{background:#fdf0e0;color:#d97c1e}
.ed-bloc-arab{background:#e6f6ec;color:#1e7a41}
.ed-bar-wrap{margin:6px 0 4px;position:relative;padding-top:2px}
.ed-bar{display:flex;height:14px;border-radius:8px;overflow:hidden;background:#e3e8f0}
.ed-bar-net{background:#1d4fa1}.ed-bar-change{background:#e8862e}.ed-bar-arab{background:#2e9e5b}
.ed-bar-marker{position:absolute;top:-4px;bottom:-4px;border-inline-start:2px dashed #17233b;transform:translateX(-1px)}
.ed-bar-marker span{position:absolute;top:-19px;transform:translateX(-50%);background:#0d1a2e;color:#fff;font-size:11px;font-weight:800;border-radius:6px;padding:1px 6px}
.ed-breakdown{font-size:14px;line-height:1.8;margin:10px 0 4px}
.ed-timeline{font-size:13px;color:#1d4fa1;font-weight:600;margin:6px 0;line-height:1.8}
.ed-src{font-size:12.5px;color:#5b6b85;line-height:1.7;margin-top:8px;border-top:1px dashed #e3e8f0;padding-top:8px}
.ed-prev{background:#f6f8fb;border-radius:10px;padding:10px 12px;margin-top:10px;font-size:13px;color:#3c4a63}

/* dark table */
.ed-table-wrap{overflow-x:auto;border-radius:14px;border:1px solid #e3e8f0;background:#fff}
.ed-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:640px}
.ed-table thead th{background:#0d1a2e;color:#fff;padding:11px 12px;font-size:13.5px;text-align:center;white-space:nowrap}
.ed-table thead th:first-child{text-align:start}
.ed-table td{padding:9px 12px;border-bottom:1px solid #eef1f6;text-align:center}
.ed-table td:first-child{text-align:start;font-weight:700}
.ed-table tbody tr:last-child td{border-bottom:none}
.ed-tr-band-net td{background:#1d4fa1;color:#fff;font-weight:800}
.ed-tr-band-change td{background:#e8862e;color:#fff;font-weight:800}
.ed-tr-band-arab td{background:#2e9e5b;color:#fff;font-weight:800}
.ed-tr-sum td{font-weight:800;background:#f6f8fb}
.ed-edge-net{border-inline-start:4px solid #1d4fa1}
.ed-edge-change{border-inline-start:4px solid #e8862e}
.ed-edge-arab{border-inline-start:4px solid #2e9e5b}

/* stat tiles */
.ed-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:10px 0}
.ed-stat{background:#f6f8fb;border-radius:12px;padding:12px;text-align:center}
.ed-stat-num{font-size:24px;font-weight:800}
.ed-stat-label{font-size:12.5px;color:#5b6b85;font-weight:700;margin-top:2px}
.ed-progress{height:12px;border-radius:8px;background:#e3e8f0;overflow:hidden;margin:8px 0}
.ed-progress-fill{height:100%;background:#0d1a2e}

/* party rows */
.ed-prow{border-bottom:1px solid #eef1f6;padding:11px 4px}
.ed-prow:last-child{border-bottom:none}
.ed-prow-main{display:flex;align-items:center;gap:10px;width:100%;background:none;border:none;cursor:pointer;text-align:start;font:inherit;color:inherit;padding:0;flex-wrap:wrap}
.ed-prow-name{font-weight:800;font-size:15px;flex:1;min-width:0}
.ed-prow-name .edge{display:inline-block;width:4px;height:16px;border-radius:2px;margin-inline-end:8px;vertical-align:-2px}
.ed-prow-pct{font-weight:700;font-size:14.5px;white-space:nowrap}
.ed-prow-seats{font-weight:800;font-size:14.5px;white-space:nowrap}
.ed-prow-chev{color:#5b6b85;font-size:11px}
.ed-prow-detail{font-size:13.5px;color:#3c4a63;line-height:1.8;padding:8px 26px 4px 4px}

/* threshold list */
.ed-thr-item{padding:12px 4px;border-bottom:1px solid #eef1f6;font-size:14px;line-height:1.8}
.ed-thr-item:last-child{border-bottom:none}
.ed-thr-head{display:flex;align-items:center;gap:10px;margin-bottom:4px;flex-wrap:wrap}
.ed-thr-name{font-weight:800;font-size:15px}

/* localities */
.ed-search{width:100%;padding:12px 14px;border:1px solid #d5dce8;border-radius:10px;font-size:15px;font-family:inherit;margin:8px 0 12px;background:#fff}
.ed-twlist{display:flex;flex-direction:column}
.ed-tw{border-bottom:1px solid #eef1f6;background:#fff}
.ed-tw summary{display:grid;grid-template-columns:minmax(110px,1fr) auto;gap:4px 12px;align-items:center;padding:12px 6px;cursor:pointer;list-style:none}
.ed-tw summary::-webkit-details-marker{display:none}
.ed-tw summary::before{content:'▾';color:#5b6b85;font-size:11px;grid-row:1;justify-self:end;display:none}
.ed-tw[open] summary{border-bottom:1px dashed #eef1f6}
.ed-twn{font-weight:800;font-size:15.5px}
.ed-tag{background:#fdf0c0;border:1px solid #ecd98f;border-radius:8px;padding:3px 9px;font-size:12.5px;font-weight:700;color:#7a5b00;justify-self:start;white-space:normal}
.ed-twb{font-size:13px;color:#3c4a63;grid-column:1 / -1}
.ed-twtop{color:#5b6b85;font-size:12.8px}
.ed-twd{padding:8px 6px 14px}
.ed-twt{width:100%;border-collapse:collapse;font-size:13.5px}
.ed-twt th,.ed-twt td{padding:5px 4px;text-align:start;border-bottom:1px dashed #eef1f6;font-weight:400}
.ed-twt thead th{font-size:12px;color:#5b6b85;border-bottom:1px solid #e3e8f0}
.ed-twt .ed-tb th{font-weight:800}
.ed-twt small{color:#5b6b85;font-size:12px}
.ed-twmore{margin-top:8px}
.ed-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* coalition */
.ed-coal-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:820px){.ed-coal-grid{grid-template-columns:1fr 1fr}}
.ed-coal-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 4px;border-bottom:1px solid #eef1f6}
.ed-coal-row:last-child{border-bottom:none}
.ed-coal-name{font-weight:700;font-size:14.5px}
.ed-coal-note{font-size:12.5px;color:#5b6b85}
.ed-coal-num{font-size:22px;font-weight:800;border-radius:10px;padding:4px 12px;white-space:nowrap}
.ed-coal-short{background:#fdeaea;color:#c0392b}
.ed-coal-win{background:#e6f6ec;color:#1e7a41}
.ed-banner{background:#0d1a2e;color:#fff;border-radius:12px;padding:13px 16px;font-weight:700;font-size:14.5px;line-height:1.7;text-align:center;margin:12px 0}

/* feed + commentary */
.ed-feed-item{background:#fff;border:1px solid #e3e8f0;border-radius:12px;padding:13px 16px;margin:9px 0;position:relative}
.ed-feed-time{position:absolute;top:12px;inset-inline-end:14px}
.ed-feed-body{font-size:14px;line-height:1.85;padding-inline-end:52px;white-space:pre-line}
.ed-mini-line{padding:8px 2px;border-bottom:1px solid rgba(23,35,59,.09);font-size:14px;line-height:1.7;display:flex;gap:10px;align-items:baseline}
.ed-mini-line:last-child{border-bottom:none}

/* quotes */
.ed-quote-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:820px){.ed-quote-grid{grid-template-columns:1fr 1fr}}
.ed-quote{background:#fff;border:1px solid #e3e8f0;border-inline-start:4px solid #0d1a2e;border-radius:12px;padding:14px 16px}
.ed-quote-text{font-size:15.5px;font-weight:700;line-height:1.7}
.ed-quote-attr{font-size:13px;color:#5b6b85;margin-top:8px}

/* statements rows */
.ed-stmt{padding:11px 4px;border-bottom:1px solid #eef1f6;font-size:14px;line-height:1.8}
.ed-stmt:last-child{border-bottom:none}
.ed-stmt-name{font-weight:800}

/* callouts */
.ed-callout{border-radius:12px;padding:13px 16px;margin:10px 0;font-size:13.5px;line-height:1.8}
.ed-callout-warn{background:#fff8ec;border:1px solid #f0df9e}
.ed-callout-info{background:#f0f5fd;border:1px solid #d5e2f5}
.ed-callout-title{font-weight:800;margin-bottom:4px}

/* bullets */
.ed-bullets{margin:8px 0;padding-inline-start:20px;font-size:14px;line-height:1.9}
.ed-bullets li{margin-bottom:6px}
.ed-cap{font-size:12.5px;color:#5b6b85;line-height:1.75;margin-top:10px}
.ed-key{font-size:16px;font-weight:800;background:#f0f5fd;border:1px solid #d5e2f5;border-radius:12px;padding:13px 16px;line-height:1.7}

/* footer */
.ed-footer{background:#0d1a2e;color:#aebad0;margin-top:26px;padding:22px 0;font-size:13px;line-height:1.9}
.ed-footer a{color:#9db8e8}
.ed-footer-src{color:#dbe4f2}
.ed-footer-src b{color:#fff}

@media(max-width:720px){
  .ed-header h1{font-size:23px}
  .ed-bloc-num{font-size:26px}
  .ed-h2{font-size:18px}
  .ed-feed-body{padding-inline-end:0;padding-top:26px}
}

@media (max-width:640px){
  .ed-tw summary{grid-template-columns:1fr;gap:3px}
  .ed-twn{font-size:15px}
  .ed-tag{justify-self:start}
}

.kk-row{display:flex;align-items:center;gap:10px;padding:5px 0}
.kk-name{min-width:140px;font-weight:700;font-size:13.5px}
.kk-track{flex:1;background:#e9edf4;border-radius:7px;height:14px;overflow:hidden}
.kk-fill{display:block;height:100%;background:#1d4fa1;border-radius:7px}
.kk-pct{min-width:44px;font-weight:800;font-size:13px;text-align:end}
@media (max-width:640px){.kk-name{min-width:110px;font-size:12.5px}}
.ed-prow-static{cursor:default}

.ed-partner{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:6px;font-size:16px;font-weight:700;color:#cdd7ea}
.ed-partner-logo{width:48px;height:48px;border-radius:10px;object-fit:cover}
.ed-tag-cec{background:#e3f2e6;border:1px solid #a9d6b5;color:#1e6b34}

.ed-seccollapse{margin-bottom:10px}

.ed-hemi{direction:ltr;margin:12px 0 4px}
.ed-hemi svg{width:100%;max-width:420px;display:block;margin:0 auto}
.ed-hemi .ed-cap{direction:rtl}
@media (max-width:600px){.ed-partner{font-size:13.5px;gap:7px}.ed-partner-logo{width:30px;height:30px;border-radius:7px}}

.ed-freshbar{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:10px;background:#0d1a2e;color:#fff;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:700;box-shadow:0 6px 24px rgba(0,0,0,.35);max-width:92vw}
.ed-fresh-go{background:#2fa36b;color:#fff;border:0;border-radius:8px;padding:6px 12px;font-size:14px;font-weight:800;cursor:pointer}
.ed-fresh-x{background:transparent;color:#cdd7ea;border:0;font-size:15px;cursor:pointer;padding:4px}
@media (max-width:520px){
.ed-freshbar{bottom:8px;padding:7px 10px;gap:6px;font-size:12px;border-radius:10px;max-width:96vw;white-space:nowrap;overflow:hidden}
.ed-fresh-go{padding:4px 9px;font-size:12px}
}

@media (max-width:520px){
.ed-prow-name{flex:1 1 100%;margin-bottom:2px}
}
