/* ============================================================
   HEW Election Widget — Scoreboard Style (English)
   Mirrors hnf-ew but LTR and font-family: inherit
   ============================================================ */

.hew-ew {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    direction: ltr;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    margin: 16px 0;
}

/* ── HEADER ── */
.hew-ew-header {
    background: #1a1a2e;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hew-ew-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.hew-ew-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hew-ew-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 14px;
    white-space: nowrap;
}
.hew-ew-stat strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.hew-ew-divider-v {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
}

.hew-ew-logo img {
    height: 34px;
    width: 34px;
    object-fit: contain;
    display: block;
}

/* ── SCOREBOARD ── */
.hew-ew-scores {
    display: flex;
    direction: ltr;
    background: #fff;
}

.hew-ew-party {
    flex: 1;
    position: relative;
    padding: 16px 8px 14px;
    text-align: center;
    border-right: 1px solid #ececec;
    overflow: hidden;
    min-width: 0;
}
.hew-ew-party:last-child {
    border-right: none;
}

/* Colour stripe at top */
.hew-ew-party::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--party-color, #ccc);
}

/* Slight tint for leader */
.hew-ew-party.is-leading {
    background: #fafafa;
}

/* Ghost logo background */
.hew-ew-party-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}

.hew-ew-party-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Round logo */
.hew-ew-party-logo {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 2px solid var(--party-color, #ccc);
    margin-bottom: 8px;
}

/* Fallback circle */
.hew-ew-party-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 8px;
    border: 2px solid rgba(0,0,0,0.1);
}

/* THE NUMBER */
.hew-ew-num {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #111;
    letter-spacing: -1px;
}
.hew-ew-party.is-leading .hew-ew-num {
    color: var(--party-color, #111);
}

/* Party label */
.hew-ew-name {
    font-size: 12px;
    font-weight: 700;
    color: #777;
    margin-top: 5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ── FOOTER ── */
.hew-ew-footer {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 5px 14px;
    text-align: left;
    font-size: 11px;
    color: #c00;
    direction: ltr;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
    .hew-ew-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px;
    }
    .hew-ew-title {
        font-size: 16px;
        width: 100%;
    }
    .hew-ew-meta {
        width: 100%;
        justify-content: flex-start;
    }
    .hew-ew-scores {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hew-ew-party {
        flex: 0 0 80px;
        min-width: 80px;
        padding: 12px 6px 10px;
    }
    .hew-ew-num  { font-size: 24px; }
    .hew-ew-name { font-size: 11px; }
    .hew-ew-party-logo,
    .hew-ew-party-circle { width: 26px; height: 26px; }
}
