:root {
    --brand-red: #bb0000;
    --ink: #1f1f1f;
    --muted: #6d6d6d;
    --line: #e5e5e5;
    --soft: #f6f6f6;
    --paper: #ffffff;
    --max: 1232px;
    --radius: 8px;
    --text: #4a4a4a;
    --border: #d6d6d6;
    --bn-party: #0168b7;
    --ph-party: #9845B7;
    --pn-party: #F13F21;
    --ind-party: #939393;
    --yellow: #FFB753;
}

.seat-list {
    display: grid;
    gap: 12px;
}

.home-lead {
    padding: 68px 0 36px;
}

.home-title {
    margin: 0 0 34px;
    font-size: 32px;
    line-height: 1.1;
}


.home-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .home-news-head .section-title {
        margin: 0;
    }

.home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 297px;
    gap: 72px;
    align-items: start;
}

.home-news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

    .home-news-list + .home-news-list {
        margin-top: 34px;
    }

    .home-news-list .news-card {
        border: 0;
        border-radius: 0;
        padding: 0;
    }

.news-thumb {
    display: block;
    aspect-ratio: 259 / 174;
    margin-bottom: 18px;
    background: #c4c4c4;
}

.home-dun {
    background: #e5e5e5;
    padding: 24px 0 48px;
}

.home-dun-grid {
    display: grid;
    grid-template-columns: 345px minmax(0, 1fr);
    gap: 63px;
    align-items: start;
}

.home-dun-sidebar {
    display: grid;
    gap: 26px;
}

    .home-dun-sidebar .section-title {
        margin: 0;
    }

.state-card {
    position: relative;
}

    .state-card .result-tag {
        position: absolute;
        right: 20px;
    }

    .state-card .seat-progress {
        margin: 30px 0;
    }


    .state-card .seat-card-content {
        padding: 10px 20px 30px 20px;
    }

.seat-result-card {
    border: 1px solid #d6d6d6;
    background: var(--paper);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    width: 100%;
}


.seat-card-content {
    padding: 0 20px 20px 20px;
}

.
/* TOP BAR */
.seat-top-bar {
    height: 10px;
    background: #0168b7;
    border-radius: 8px 8px 0 0;
}


/* HEADER */
.seat-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seat-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


/* LOCATION */
.seat-state {
    font-size: 12px;
    color: #939393;
    margin-bottom: 4px;
    font-weight: 900;
    text-transform: uppercase;
}

/* TITLE */
.seat-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

    .seat-title span {
        font-size: 14px;
        font-weight: 400;
        margin-right: 4px;
    }

    .seat-title::after {
        content: "chevron_right";
        font-family: "Material Symbols Rounded";
        font-size: 20px;
        line-height: 1;
    }

/* ACTIONS */
.seat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* HOT BUTTON */
.hot-seat-btn,
.pin-btn {
    width: 28px;
    xheight: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
}

    /* HOT */
    .hot-seat-btn::after {
        content: "local_fire_department";
        font-family: "Material Symbols Rounded";
        font-size: 20px;
        font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
        background: linear-gradient( 180deg, #FFB753 0%, #F13F21 100% );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

    /* PIN */
    .pin-btn::after {
        content: "keep";
        font-family: "Material Symbols Rounded";
        font-size: 20px;
        color: #555;
        transform: rotate(22deg);
        display: block;
    }


/* STATS BOX */
.seat-stats-box {
    background: #fff1dd;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* STAT */
.seat-stat {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text);
}

    .seat-stat strong {
        font-weight: 700;
    }

/* INCUMBENT */
.incumbent-text {
    font-size: 14px;
    color: var(--text);
    margin: 15px 15px 0px 15px;
}

    .incumbent-text strong {
        color: var(--text);
    }


/* BUTTON */
.seat-share-btn {
    margin: 15px 0 0 0;
    border: 1px solid var(--brand-red);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 24px;
    background: transparent;
    height: 35px;
}

.seat-result-card h3 {
    margin: 0;
    font-size: 19px;
}

.candidate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

    .candidate-row strong {
        display: block;
    }

    .candidate-row span {
        color: var(--muted);
        font-size: 13px;
    }

    .candidate-row .votes {
        color: #111;
        font-size: 20px;
        font-weight: 900;
        text-align: right;
    }

.home-map-area {
    position: sticky;
    top: 50px;
    z-index: 15;
    background: #e5e5e5;
    transition: padding .2s ease, box-shadow .2s ease;
}

    .home-map-area.is-compact {
        box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
    }

.home-map-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

    .home-map-topline .search-panel {
        width: 345px;
        padding: 0;
        border: 1px solid #d6d6d6;
        background: #fafafa;
    }

.dummy-map.home-map {
    min-height: 510px;
    grid-template-columns: repeat(7, 1fr);
    border: 0;
    background: var(--brand-red);
    padding: 26px;
}

.home-map-area.is-compact .home-map-topline {
    margin-bottom: 8px;
}

    .home-map-area.is-compact .home-map-topline .section-title,
    .home-map-area.is-compact .home-map-topline .search-panel {
        display: none;
    }

.home-map-area.is-compact .dummy-map.home-map {
    min-height: 88px;
    grid-template-columns: repeat(10, 1fr);
    padding: 8px;
}

.home-map-area.is-compact .map-region {
    min-height: 25px;
    font-size: 0;
}

.seat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.seat-code {
    color: var(--brand-red);
    font-weight: 900;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

    .result-table th,
    .result-table td {
        padding: 12px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .result-table th {
        background: var(--soft);
        font-size: 12px;
        text-transform: uppercase;
    }


@media (max-width: 900px) {
    .content-grid,
    .newsletter-box,
    .map-inner,
    .home-news-grid,
    .home-dun-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .two-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-shell {
        top: 48px;
    }

        .map-shell.is-compact .map-inner {
            grid-template-columns: 112px minmax(0, 1fr);
        }

    .map-summary h1 {
        font-size: 28px;
    }

    .home-map-area {
        top: 48px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100% - 24px, var(--max));
    }

    .page-title {
        font-size: 30px;
    }

    .search-panel,
    .card-grid,
    .two-grid,
    .newsletter-form,
    .home-news-list {
        grid-template-columns: 1fr;
    }

    .star-logo {
        width: 118px;
        height: 42px;
        font-size: 25px;
    }

    .home-lead {
        padding: 40px 0 28px;
    }

    .home-news-head,
    .home-map-topline {
        align-items: flex-start;
        flex-direction: column;
    }

        .home-map-topline .search-panel {
            width: 100%;
        }

    .dummy-map.home-map {
        min-height: 320px;
        grid-template-columns: repeat(4, 1fr);
    }

    .dummy-map {
        min-height: 280px;
        grid-template-columns: repeat(4, 1fr);
    }

    .seat-card {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.election-news {
    padding: 50px 0 40px;
}

/* =========================================
   HERO GRID
========================================= */

.election-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
    margin-bottom: 20px;
}


.live-video {
    margin-bottom: 40px;
}


/* =========================================
   HERO TOP
========================================= */

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--text);
    margin: 0;
}

/* LIVE */
.hero-live {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--brand-red);
    position: relative;
}

    .live-dot::after {
        content: "";
        position: absolute;
        inset: 2px;
        border-radius: 50%;
        background: var(--brand-red);
    }

.live-pill {
    height: 16px;
    padding: 0 6px;
    border-radius: 100px;
    background: #ffb753;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: var(--text);
}

/* =========================================
   HERO IMAGE
========================================= */

.hero-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ddd;
}

    .hero-image-link > img:first-child {
        width: 100%;
        display: block;
    }

/* OVERLAY */
.hero-image-overlay {
    xposition: absolute;
    xinset: 0;
    xbackground: rgba(255,255,255,0.72);
}

/* CENTER CONTENT */
.hero-video-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* PLAY BUTTON */
.hero-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* PLAY ICON */
    .hero-play-btn .material-symbols-rounded {
        font-size: 40px;
        color: #666;
        margin-left: 4px;
        font-variation-settings: 'FILL' 1;
    }

/* LOGO */
.hero-logo {
    xwidth: 180px;
    xdisplay: block;
}

/* =========================================
   SIDEBAR
========================================= */

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.daily-alert-card {
    border: 1px solid #cfcfcf;
    background: #fff;
    padding: 18px 16px 20px;
}

.daily-alert-logo {
    width: 132px;
    height: auto;
    margin-bottom: 18px;
}

.daily-alert-copy {
    margin: 0 0 14px;
    color: #1f1f1f;
    font-size: 16px;
    line-height: 1.45;
}

    .daily-alert-copy strong {
        font-weight: 900;
    }

.daily-alert-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 14px;
}

    .daily-alert-form input {
        flex: 1 1 auto;
        min-width: 0;
        height: 42px;
        border: 1px solid #cfcfcf;
        border-radius: 4px;
        border-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0 12px;
        color: #333;
        font-size: 14px;
    }

        .daily-alert-form input::placeholder {
            color: #8b8b8b;
        }

    .daily-alert-form button {
        flex: 0 0 auto;
        min-height: 42px;
        border: 0;
        border-radius: 4px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        background: #4a4a4a;
        color: #fff;
        cursor: pointer;
        font-size: 15px;
        font-weight: 900;
        padding: 0 18px;
    }

.daily-alert-note {
    margin: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.45;
}

    .daily-alert-note a {
        color: #004BD1;
        font-weight: 900;
    }


/* NOTE */
.newsletter-box {
    border: 1px solid #d6d6d6;
}

.newsletter-logo {
    width: 150px;
    margin-bottom: 10px;
}

.newsletter-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 18px;
}

    .newsletter-text strong {
        font-weight: 900;
        color: #000;
    }

.newsletter-form {
    display: flex;
    margin-bottom: 16px;
}

    .newsletter-form input {
        flex: 1;
        height: 40px;
        border: 1px solid var(--border);
        border-right: none;
        padding: 0 10px;
        background: white;
        font-size: 16px;
        min-width: 0;
    }

    .newsletter-form button {
        border: none;
        background: var(--text);
        color: white;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
        padding: 0 18px;
        white-space: nowrap;
    }

.newsletter-content {
    padding: 15px 10px 0 10px;
}

.newsletter-note {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    background: #efefed;
    padding: 10px;
    margin-bottom: 0;
}

    .newsletter-note a {
        color: #0048b8;
        font-weight: 700;
    }


.daily-alert-form button:hover,
.daily-alert-form button:active {
    background: #bb0000;
}

/* SPONSOR */
.hero-sponsor {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .hero-sponsor span {
        font-size: 14px;
        color: #555;
    }

    .hero-sponsor img {
        height: 20px;
    }

/* =========================================
   LATEST NEWS
========================================= */

.latest-news-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* TITLE */

.state-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--text);
    text-align: left;
    margin-bottom: 25px;
}

/* HOT SEAT ICON */

.hot-seat-icon::before {
    content: "local_fire_department";
    display: block;
    font-family: "Material Symbols Rounded";
    font-size: 28px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    background: linear-gradient( 180deg, #FFB753 0%, #F13F21 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--text);
}


/* SPONSOR */
.latest-news-sponsor {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .latest-news-sponsor span {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
    }

    .latest-news-sponsor img {
        height: 20px;
    }

/* GRID */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */
.news-card {
    display: flex;
    flex-direction: column;
}

/* IMAGE */
.news-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #e7e7e7;
}

    .news-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* META */
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-category {
    font-size: 13px;
    font-weight: 400;
    color: var(--brand-red);
}

.news-time {
    font-size: 12px;
    color: var(--text);
    font-weight: 400;
}

/* TITLE */
.news-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

    .news-title a {
        color: var(--text);
        text-decoration: none;
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 1120px) {

    .election-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-sidebar {
        max-width: 420px;
        margin: 0 auto;
    }

    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .election-news {
        padding: 32px 0 48px;
    }

    .hero-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 25px;
    }

    .hero-live {
        align-self: flex-start;
    }

    .hero-logo {
        width: 160px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

        .newsletter-form input {
            border-right: 1px solid #d0d0d0;
        }

        .newsletter-form button {
            width: 100%;
            height: 48px;
        }

    .latest-news-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .latest-news-title {
        font-size: 34px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 18px;
    }
}

/* VIEW ALL BUTTON */
.news-button {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* BUTTON */
.latest-news-btn {
    padding: 8px 24px;
    border: 1px solid var(--brand-red);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--brand-red);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

    /* HOVER */
    .latest-news-btn:hover {
        background: var(--brand-red);
        color: white;
    }

/* WINNER */
.candidate-badge .winner-icon {
    display: block;
    width: 22px;
    height: 22px;
}

    .candidate-badge .winner-icon::before {
        content: "editor_choice";
        font-family: "Material Symbols Rounded";
        font-size: 28px;
        line-height: 1;
        font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
        color: #ff9500;
        position: relative;
        top: 3px;
    }


/* META */
.candidate-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* TAG */
.result-tag {
    padding: 2px 6px;
    border-radius: 100px;
    background: #ff9500;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--paper);
}

/* =========================================
   PINNED SECTION
========================================= */

.pinned-seats-section {
    padding: 50px 0 0 0;
}

/* TOP */
.pinned-seats-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 58px;
}

/* PIN ICON */
.pinned-master-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .pinned-master-btn::after {
        content: "keep";
        font-family: "Material Symbols Rounded";
        font-size: 24px;
        color: #555;
        transform: rotate(22deg);
        display: block;
    }

/* SUBTITLE */
.pinned-seats-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    color: var(--text);
    font-size: 15px;
}


/* GRID */
.pinned-seats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

    /* CARD */
    .pinned-seats-grid .seat-result-card {
        max-width: 100%;
    }

/* ACTIVE PIN */
.pin-btn.active::after {
    color: #555;
}

/* EMPTY STATE */
.pinned-empty-state {
    padding: 0 0 90px;
    color: #888;
    font-size: 15px;
}

/* HIDE WHEN HAS CARDS */
.pinned-seats-section.has-pinned .pinned-empty-state {
    display: none;
}


/* =========================================
   HEADER
========================================= */

.pinned-seats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.pinned-seats-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .pinned-seats-title::after {
        content: "keep";
        display: inline-block;
        font-family: "Material Symbols Rounded";
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        color: #939393;
        transform: rotate(-35deg);
        font-variation-settings: 'FILL' 1;
    }

/* =========================================
   LEFT HEADING
========================================= */

.pinned-seats-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ICON BOX */
.pinned-seats-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    /* ICON */
    .pinned-seats-icon::before {
        content: "keep";
        font-family: "Material Symbols Rounded";
        font-size: 30px;
        color: #bb0000;
        transform: rotate(22deg);
        display: block;
    }

/* TEXT WRAPPER */
.pinned-seats-text {
    min-width: 0;
}


/* DESCRIPTION */
.pinned-seats-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #777;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .pinned-seats-header {
        align-items: center;
        gap: 18px;
    }

    .pinned-seats-heading {
        align-items: flex-start;
    }

    .pinned-seats-description {
        font-size: 14px;
    }
}
/* =========================================
   TABLET
========================================= */

@media (max-width: 1120px) {

    .pinned-seats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .pinned-seats-section {
        padding: 40px 0 56px;
    }

    .pinned-seats-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .pinned-seats-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HOT SEAT SECTION
========================================= */

.hot-seats-section {
    padding: 50px 0 0 0;
}

/* TOP */
.hot-seats-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

/* TITLE */
.hot-seats-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    color: #444;
}

/* GRID */
.hot-seats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.hot-seats-masonry {
    grid-auto-flow: row;
    grid-auto-rows: 8px;
}

/* CARD */
.hot-seats-grid .seat-result-card {
    max-width: 100%;
}

.hot-seats-masonry .seat-result-card {
    min-width: 0;
}

/* ACTIVE PIN */
.hot-btn.active::after {
    color: #555;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1120px) {

    .hot-seats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .hot-seats-section {
        padding: 40px 0 0;
    }

    .hot-seats-title {
        font-size: 32px;
    }

    .hot-seats-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .hot-seats-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HISTORICAL
========================================= */
.historical-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.historical-section {
    padding: 50px 0 0 0;
}

.historical-data {
    padding: 50px 0 0 0;
}

/* TITLE */
.historical-title {
    margin-bottom: 22px;
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
}

/* GRID */
.historical-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* CARD */
.historical-card {
    position: relative;
    padding: 30px 20px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fdfdfd;
    overflow: hidden;
}

/* WATERMARK */
.historical-watermark {
    position: absolute;
    top: 20px;
    right: -8px;
    width: 72px;
    height: 86px;
    background: url('../images/vote6.png') center / contain no-repeat;
    pointer-events: none;
}

/* YEAR */
.historical-year {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 900;
    color: #939393;
    text-transform: uppercase;
}

/* RESULT */
.historical-result {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* ICON */
.historical-winner-icon::before {
    content: "editor_choice";
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    color: #ff9500;
    display: block;
    font-weight: 400;
}

/* STATS */
.historical-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

/* NUMBER */
.historical-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

/* LABEL */
.historical-label {
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
}

/* RIGHT */
.historical-stat-right {
    text-align: right;
}

/* BAR */
.historical-progress {
    height: 10px;
    background: #d8d8d8;
    border-radius: 100px;
    overflow: hidden;
}

/* FILL */
.historical-progress-fill {
    width: 34%;
    height: 100%;
    border-radius: 100px;
    background: var(--bn-party);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .historical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .historical-section {
        padding: 40px 0 0 0;
    }

    .historical-title {
        font-size: 32px;
    }

    .historical-grid {
        grid-template-columns: 1fr;
    }

    .historical-card {
        padding: 20px;
    }

    .historical-watermark .material-symbols-rounded {
        font-size: 72px;
    }
}


/* =========================================
   GUIDE
========================================= */

.guide-summary-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.guide-section {
    padding: 56px 0;
}

/* TITLE */
.guide-title {
    margin-bottom: 28px;
    font-size: 42px;
    font-weight: 700;
    color: #444;
}

/* GRID */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

/* CARD */
.guide-card {
    position: relative;
    min-height: 110px;
    padding: 22px 20px;
    border-radius: var(--radius);
    background: rgba(187, 0, 0, 0.10);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-decoration: none;
}

/* NUMBER */
.guide-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

/* TEXT */
.guide-text {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

/* CORNER */
.guide-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 77px;
    height: 72px;
    background-image: url("../images/corner-deco.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    pointer-events: none;
}

/* FOOTER */
.guide-footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

/* BUTTON */
.guide-btn {
    min-width: 130px;
    height: 48px;
    padding: 0 28px;
    border: 1px solid #bb0000;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bb0000;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

    .guide-btn:hover {
        background: #bb0000;
        color: white;
    }

/* =========================================
   LARGE TABLET
========================================= */

@media (max-width: 1200px) {

    .guide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .guide-section {
        padding: 40px 0;
    }

    .guide-title {
        font-size: 32px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guide-card {
        min-height: 96px;
        padding: 18px 18px;
    }

    .guide-number {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .guide-text {
        font-size: 17px;
    }
}

/* =========================================
   SECTION
========================================= */

.state-summary {
    padding: 50px 0 40px 0;
}


.state-summary-result {
    background: #f6f6f6;
    padding: 50px 30px;
    border-radius: 8px;
}

/* GRID */
.results-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 70px;
    align-items: start;
    margin-top: 30px;
}

.results-grid {
    width: 700px;
    margin: 0 auto;
}


@media (max-width: 991px) {
    .results-grid {
        width: 100%;
    }
}



/* =========================================
   RESULTS CARD
========================================= */

.results-card {
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: var(--paper);
    margin-top: 20px;
}

.result-card-content {
    padding: 30px;
}

/* TOP */
.results-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

/* HEADING */
.results-heading {
    font-size: 14px;
    color: #939393;
    font-weight: 900;
    text-transform: uppercase;
}

.state-name {
    font-size: 14px;
    color: #939393;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

/* TOTAL */
.results-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .results-total strong {
        font-size: 32px;
        line-height: 1;
        font-weight: 900;
        color: var(--text);
    }

    .results-total span {
        font-size: 18px;
        font-weight: 900;
        color: var(--text);
    }

/* =========================================
   PROGRESS
========================================= */

.results-progress {
    margin-bottom: 34px;
}

.results-progress-bar {
    display: flex;
    height: 30px;
    overflow: hidden;
    border-radius: 100px;
    background: #dcdcdc;
}

.bar-purple {
    width: 30%;
    background: var(--pn-party);
}

.bar-blue {
    width: 22%;
    background: var(--bn-party);
}

.bar-orange {
    width: 17%;
    background: var(--ph-party);
}

.bar-green {
    width: 1%;
    background: #1BA492;
}

.bar-others {
    width: 1%;
    background: var(--ind-party);
}



/* =========================================
   TABLE
========================================= */

.results-table-head {
    font-size: 14px;
    color: #777;
}

/* PARTY */
.results-party {
    border-top: 1px solid #dddddd;
}

    .results-party:first-of-type {
        border-top: none;
    }

/* MAIN */
.results-party-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 110px;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
}

/* LEFT */
.party-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* BOX */
.party-box {
    width: 40px;
    height: 22px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* COLORS */
.party-ph {
    background: #ff4c1f;
}

.party-bn {
    background: #0f6ab7;
}

.party-pn {
    background: #9646c6;
}

.party-gta {
    background: #1fa88b;
}

.party-other {
    background: #888;
}

/* NUMBERS */
.party-won,
.party-contested {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

/* CONTESTED */
.party-contested {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* CHEVRON */
.party-chevron::before {
    content: "expand_more";
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    color: #444;
}

/* SUB */
.results-party-sub {
    display: grid;
    gap: 14px;
    padding: 0 0 20px;
}

/* SUB ROW */
.results-sub-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 110px;
    gap: 20px;
    color: #555;
    font-size: 12px;
    padding-left: 15px;
}

    .results-sub-row div:nth-child(2),
    .results-sub-row div:nth-child(3) {
        text-align: center;
    }


/* HEADER */
.results-table-head,
.results-party-main,
.results-sub-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 110px 44px;
    gap: 20px;
    align-items: center;
}

    /* CENTER WON + CONTESTED */
    .results-table-head div:nth-child(2),
    .results-table-head div:nth-child(3),
    .party-won,
    .party-contested,
    .results-sub-row div:nth-child(2),
    .results-sub-row div:nth-child(3) {
        text-align: center;
    }

.party-won,
.party-contested {
    justify-self: center;
    width: 100%;
}

/* TOGGLE */
.party-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    /* ICON */
    .party-toggle::before {
        content: "expand_more";
        font-family: "Material Symbols Rounded";
        font-size: 22px;
        color: #444;
        transition: 0.25s ease;
    }

/* ROTATE */
.results-party.expanded .party-toggle::before {
    transform: rotate(180deg);
}

/* SUB */
.results-party-sub {
    display: none;
    padding-bottom: 20px;
}

/* SHOW */
.results-party.expanded .results-party-sub {
    display: grid;
    gap: 14px;
}

/* =========================================
   LIVE BLOG
========================================= */
.liveblog-placeholder {
    margin-top: 20px;
    margin-bottom: 30px;
}


/* IMAGE */
.liveblog-image {
    display: block;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* BUTTON */
.liveblog-btn {
    padding: 8px 24px;
    border: 1px solid #bb0000;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bb0000;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

    .liveblog-btn:hover {
        background: #bb0000;
        color: white;
    }

.liveblog-formobile {
    display: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
    .results-main-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 40px;
        align-items: start;
    }
}

@media (max-width: 991px) {
    .results-main-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 40px;
        align-items: start;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .results-main-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: start;
    }

    .liveblog-formobile {
        display: block;
        margin-bottom: 20px;
    }

    .results-head-right {
        display: none;
    }

    .results-liveblog-section {
        padding: 40px 0;
    }

    .results-card {
        padding: 22px;
    }

    .results-total strong {
        font-size: 42px;
    }

    .results-total span {
        font-size: 18px;
    }

    .liveblog-title {
        font-size: 32px;
    }

    .results-party-main,
    .results-table-head,
    .results-sub-row {
        grid-template-columns: minmax(0, 1fr) 60px 90px;
        gap: 10px;
    }

    .party-won,
    .party-contested {
        font-size: 18px;
    }

    .results-table-head,
    .results-party-main,
    .results-sub-row {
        grid-template-columns: minmax(0, 1fr) 50px 70px 30px;
        gap: 10px;
    }
}


/* =========================================
  demographics
========================================= */

.demographics-section {
    padding: 56px 0;
}

/* TOP */
.demographics-top {
    margin-bottom: 24px;
}

/* =========================================
   GRID
========================================= */

.demographics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

/* =========================================
   CARD
========================================= */

.demographic-card {
    padding: 20px 20px 40px 20px;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
}

/* TITLE */
.demographic-title {
    margin: 0 0 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d6d6d6;
    font-size: 14px;
    font-weight: 900;
    color: #939393;
}

/* LIST */
.demographic-list {
    display: grid;
    gap: 22px;
}

/* ITEM */
.demographic-item {
    display: grid;
    gap: 10px;
}

/* ROW */
.demographic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    /* LABEL */
    .demographic-row span {
        font-size: 14px;
        font-weight: 400;
        color: var(--text);
    }

    /* VALUE */
    .demographic-row strong {
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
    }

.demographic-card--urban {
    grid-column: 3;
    grid-row: 2;
}

.demographics-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================
   BAR
========================================= */

.demographic-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: #d9d9d9;
    border-radius: 4px;
}

/* FILL */
.demographic-fill {
    height: 100%;
    background: #000;
    border-radius: 4px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .demographics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .demographics-section {
        padding: 40px 0 0 0;
    }

    .demographics-grid {
        grid-template-columns: 1fr;
    }

    .demographic-card {
        padding: 22px;
    }

    .demographic-title {
        margin-bottom: 24px;
        font-size: 16px;
    }

    .demographic-row span,
    .demographic-row strong {
        font-size: 15px;
    }
}

/* =========================================
   CANDIDATES IN CONSTITUENCY DETAILS
========================================= */

.candidates-section {
    padding: 30px 0 0 0;
}

/* TOP */
.candidates-top {
    margin-bottom: 24px;
}



/* =========================================
   MODAL 
========================================= */

body.modal-open {
    overflow: hidden;
}

.candidate-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999999;
}

    .candidate-modal.show {
        display: block;
    }

.candidate-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
}

.candidate-modal-dialog {
    position: relative;
    width: min(900px, 92vw);
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    z-index: 2;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.candidate-modal-profile {
    display: flex;
    gap: 24px;
    padding: 20px 30px;
    background: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 30px;
    align-items: center;
}

.modal-candidate-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-candidate-name {
    font-size: 18px;
    font-weight: 900;
    margin: 8px 0;
}

.modal-candidate-title {
    font-size: 16px;
    font-weight: 400;
}

.candidate-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: none;
    font-size: 32px;
    cursor: pointer;
    color: #979797;
}


.candidate-modal-profile .modal-seat-link {
    color: var(--brand-red);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    margin-top: 20px;
}

    .candidate-modal-profile .modal-seat-link::after {
        content: "chevron_forward";
        font-family: "Material Symbols Rounded";
        font-size: 22px;
        color: var(--brand-red);
        line-height: 24px;
        font-weight: 400;
    }

.candidate-modal-title {
    font-weight: 900;
    font-size: 25px;
    text-align: center;
    margin-bottom: 10px;
}

.candidate-tabs {
    display: flex;
    align-items: flex-end;
    gap: 36px;
    border-bottom: 3px solid #cfcfcf;
    margin: 32px 0 24px;
}

.candidate-tab {
    position: relative;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    font-weight: 700;
    line-height: 1;
    color: #4b4b4b;
    cursor: pointer;
    transition: color .2s ease;
}

    .candidate-tab:hover {
        color: #bb0000;
    }

    .candidate-tab.active {
        color: #bb0000;
    }

        .candidate-tab.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -3px;
            width: 100%;
            height: 3px;
            background: #bb0000;
        }


.candidate-tab-content {
    margin-bottom: 50px;
}

.candidate-facts-list {
    padding-left: 20px;
}

    .candidate-facts-list li {
        margin-bottom: 20px;
        list-style-position: outside;
        padding-left: 5px;
    }


.modal-share {
    text-align: center;
}



/* =========================================
   GRID
========================================= */

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* =========================================
   CARD
========================================= */

.candidate-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
}

.candidates-section .candidate-card {
    position: relative;
    padding: 20px 48px 20px 20px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .candidates-section .candidate-card::after {
        content: "chevron_right";
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        color: #8a8a8a;
        font-family: "Material Symbols Rounded";
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        transition: color .18s ease, transform .18s ease;
    }


    .candidates-section .candidate-card:hover::after {
        color: var(--brand-red);
        transform: translate(3px, -50%);
    }


.name-candidate {
    font-size: 16px;
    font-weight: 400;
}


/* =========================================
   AVATAR
========================================= */

.candidate-avatar img {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* =========================================
   CONTENT
========================================= */

.candidate-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

/* PARTY ROW */
.candidate-party-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* PARTY BOX */
.candidate-party-box {
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

/* PARTY COLORS */
.party-ph {
    background: #999;
}

/* PARTY NAME */
.candidate-party-name {
    font-size: 18px;
    font-weight: 700;
    color: #555;
}

/* NAME */
.candidate-name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: #444;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .candidates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .candidates-section {
        padding: 40px 0 0 0;
    }

    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .candidate-card {
        padding: 18px;
        gap: 18px;
    }

    .candidates-section .candidate-card {
        padding: 18px 44px 18px 18px;
    }

    .candidate-avatar {
        width: 64px;
        height: 64px;
    }

    .candidate-party-name {
        font-size: 16px;
    }

    .candidate-name {
        font-size: 16px;
    }
}


/* =========================================
   CANDIDATES OVERVIEW PAGE
========================================= */

.candidates-overview-head {
    margin-bottom: 22px;
}

.candidates-overview .hero-title {
    margin: 0;
}

.candidates-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(190px, .65fr) 112px;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 36px 22px;
    border-radius: 4px;
    background: #f5f5f5;
}

    .candidates-search-panel .field {
        height: 42px;
        border-color: #d6d6d6;
        border-radius: 0;
        background-color: #fff;
        font-size: 14px;
    }

.candidates-search-field .field {
    padding-left: 48px;
}

.candidates-party-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 46px 0 16px;
    color: #8a8a8a;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px 18px;
}

    .candidates-party-select::-ms-expand {
        display: none;
    }

.candidates-search-btn {
    min-height: 42px;
    border-radius: 8px;
    background: var(--brand-red);
    font-size: 14px;
}

.candidates-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 28px 0;
}

    .candidates-filter-pills button {
        display: inline-flex;
        min-width: 82px;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: #999;
        color: #fff;
        cursor: pointer;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        padding: 0 20px;
    }

        .candidates-filter-pills button.is-active {
            background: #4a4a4a;
        }

.candidates-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 28px;
}

.candidates-overview .candidate-card {
    position: relative;
    align-items: center;
    min-height: 88px;
    padding: 18px 48px 18px 20px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .candidates-overview .candidate-card[hidden] {
        display: none;
    }

    .candidates-overview .candidate-card::after {
        content: "chevron_right";
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        color: #8a8a8a;
        font-family: "Material Symbols Rounded";
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        transition: color .18s ease, transform .18s ease;
    }

    .candidates-overview .candidate-card:focus-visible {
        outline: 2px solid rgba(187, 0, 0, .25);
        outline-offset: 3px;
    }

    .candidates-overview .candidate-card.is-featured::before {
        content: "FEATURED";
        position: absolute;
        top: 0;
        right: 0;
        min-width: 72px;
        height: 18px;
        border-radius: 0 6px 0 4px;
        background: #d6d6d6;
        color: #555;
        font-size: 10px;
        font-weight: 900;
        line-height: 18px;
        text-align: center;
    }

.candidates-overview .candidate-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.candidates-overview .candidate-meta {
    gap: 10px;
}

.candidates-overview .party-name {
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.candidates-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.candidates-load-more {
    min-width: 116px;
}

@media (max-width: 991px) {
    .candidates-search-panel {
        grid-template-columns: minmax(0, 1fr) 180px;
    }

    .candidates-search-btn {
        grid-column: 1 / -1;
        justify-self: start;
        min-width: 112px;
    }

    .candidates-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .candidates-overview-head {
        margin-bottom: 20px;
    }

    .candidates-overview .hero-title {
        font-size: 18px;
    }

    .candidates-search-panel {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

        .candidates-search-panel .field {
            border-radius: 0;
            font-size: 11px;
        }

    .candidates-search-btn {
        width: 100%;
        min-height: 36px;
        justify-self: stretch;
        border-radius: 4px;
        font-size: 11px;
    }

    .candidates-filter-pills {
        gap: 14px;
        margin: 22px 0 20px;
    }

        .candidates-filter-pills button {
            min-width: 66px;
            min-height: 30px;
            font-size: 10px;
        }

    .candidates-overview-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .candidates-overview .candidate-card {
        min-height: 84px;
        padding: 14px 42px 14px 14px;
        gap: 14px;
    }

        .candidates-overview .candidate-card.is-featured::before {
            min-width: 58px;
            height: 16px;
            font-size: 8px;
            line-height: 16px;
        }

    .candidates-overview .candidate-avatar img {
        width: 44px;
        height: 44px;
    }

    .candidates-overview .party-box {
        width: 36px;
        height: 20px;
        font-size: 11px;
    }

    .candidates-overview .party-name {
        font-size: 10px;
    }

    .candidates-overview .name-candidate {
        font-size: 12px;
    }

    .candidates-load-more-wrap {
        margin-top: 22px;
    }
}


/* =========================================
   PARTIES OVERVIEW PAGE
========================================= */

.parties-overview-head {
    margin-bottom: 22px;
}

.parties-overview .hero-title {
    margin: 0;
}

.coalition-block {
    padding: 46px 0;
    border-bottom: 1px solid #d6d6d6;
}

    .coalition-block:first-of-type {
        padding-top: 48px;
    }

.coalition-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

    .coalition-head h2,
    .other-parties-head h2 {
        margin: 0;
        color: #111;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.2;
    }

.coalition-logo {
    display: block;
    width: 72px;
    height: 42px;
    object-fit: contain;
}

.coalition-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.coalition-profile {
    display: grid;
    justify-items: center;
    gap: 14px;
    color: var(--text);
    text-align: center;
}

    .coalition-profile img {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        object-fit: cover;
    }

    .coalition-profile p {
        margin: 0;
        font-size: 16px;
        line-height: 1.25;
    }

    .coalition-profile strong {
        font-weight: 900;
    }

    .coalition-profile a {
        color: var(--brand-red);
        font-size: 16px;
        font-weight: 900;
    }

.party-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 174px));
    gap: 24px 14px;
}

.party-member-card {
    display: grid;
    min-height: 158px;
    align-content: start;
    justify-items: center;
    gap: 10px;
    padding: 18px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    text-align: center;
}

    .party-member-card h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.2;
    }

    .party-member-card p {
        margin: 0;
        font-size: 14px;
        line-height: 1.25;
    }

    .party-member-card strong {
        font-weight: 900;
    }

.party-mark {
    display: block;
    width: 60px;
    height: 42px;
    object-fit: contain;
}

.other-parties-block {
    border-bottom: 0;
}

.other-parties-head {
    margin-bottom: 30px;
}

.other-party-grid {
    grid-template-columns: repeat(2, minmax(0, 174px));
}

@media (max-width: 900px) {
    .coalition-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 32px;
    }

    .party-member-grid {
        grid-template-columns: repeat(2, minmax(0, 174px));
    }
}

@media (max-width: 767px) {
    .parties-overview .party-member-grid,
    .parties-overview .other-party-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
}

@media (max-width: 575px) {
    .parties-overview-head {
        margin-bottom: 20px;
    }

    .parties-overview .hero-title {
        font-size: 22px;
    }

    .coalition-block {
        padding: 34px 0;
    }

        .coalition-block:first-of-type {
            padding-top: 34px;
        }

    .coalition-head {
        align-items: center;
        gap: 10px;
        margin-bottom: 22px;
    }

        .coalition-head h2,
        .other-parties-head h2 {
            font-size: 18px;
        }

    .coalition-logo {
        width: 58px;
        height: 34px;
        font-size: 10px;
    }

    .coalition-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .coalition-profile img {
        width: 70px;
        height: 70px;
    }

    .coalition-profile p,
    .coalition-profile a {
        font-size: 15px;
    }

    .party-member-card {
        min-height: 132px;
        padding: 16px 12px;
    }
}


/* ==========================================
   DROPDOWN WRAPPER - CONSTITUENCY DETAILS
========================================== */
/* FILTER ROW */

.election-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 15px;
}

/* LABEL */
.election-filter__label {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.election-dropdown {
    position: relative;
    width: 260px;
}

/* ==========================================
   TRIGGER
========================================== */

.election-dropdown__trigger {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s ease;
}

    .election-dropdown__trigger:hover {
        border-color: #bdbdbd;
    }

    /* CHEVRON */

    .election-dropdown__trigger::after {
        content: "\e5cf";
        font-family: "Material Symbols Rounded";
        font-size: 22px;
        line-height: 1;
        color: var(--text);
        transition: transform .25s ease;
    }

/* OPEN STATE */
.election-dropdown.open
.election-dropdown__trigger::after {
    transform: rotate(180deg);
}

/* ==========================================
   MENU
========================================== */

.election-dropdown__menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* OPEN */

.election-dropdown.open
.election-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   OPTIONS
========================================== */

.election-dropdown__option {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    transition: background .15s ease, color .15s ease;
}

    .election-dropdown__option:hover {
        background: #f5f5f5;
    }

    /* ACTIVE */

    .election-dropdown__option.active {
        background: #f8f8f8;
        color: #bb0000;
        font-weight: 700;
    }



/* ==========================================
   MOBILE
========================================== */
@media (max-width: 575px) {

    .election-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .election-filter__label {
        margin-bottom: 6px;
    }
}



/*======================================
  SEARCH ICON
=======================================*/
.search-field {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

    .search-icon::before {
        content: "search";
        font-family: "Material Symbols Rounded";
        font-size: 22px;
        line-height: 1;
        color: #9a9a9a;
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    }

/* INPUT */

.field {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 48px; /* space for icon */
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    font-size: 16px;
}
