/* =========================================================
   VOTE SMART KE
   CANDIDATE PROFILE — HERO
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.vsk-hero {
    background: #f5f7fb;
    padding: 60px 20px 30px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.vsk-hero .vsk-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   HERO CARD
   ========================================================= */

.vsk-hero-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;

    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);

    gap: 50px;
    align-items: center;

    border: 1px solid #e5eaf1;

    box-shadow:
        0 15px 45px rgba(15, 43, 77, 0.08);
}


/* =========================================================
   PHOTO
   ========================================================= */

.vsk-photo {
    min-width: 0;
}

.vsk-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;

    object-fit: cover;

    border-radius: 20px;

    display: block;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.15);
}


/* =========================================================
   INFORMATION
   ========================================================= */

.vsk-info {
    min-width: 0;
}


/* =========================================================
   PROFILE LABEL
   ========================================================= */

.vsk-profile-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #64748b;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   CANDIDATE NAME
   ========================================================= */

.vsk-info h1 {
    margin: 0;

    color: #0b2f5b;

    font-size: clamp(2.6rem, 4vw, 3.8rem);
    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -0.03em;
}


/* =========================================================
   POSITION
   ========================================================= */

.vsk-candidate-position {
    margin: 12px 0 22px;

    color: #2563eb;

    font-size: 1.45rem;
    line-height: 1.35;

    font-weight: 700;
}


/* =========================================================
   ELECTION
   ========================================================= */

.vsk-election {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;

    padding: 8px 16px;

    background: #eef4ff;
    color: #0b2f5b;

    border: 1px solid #dbeafe;

    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================================
   LOCATION
   ========================================================= */

.vsk-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;

    color: #475569;

    font-size: 1rem;
    line-height: 1.6;
}


.vsk-location a {
    color: #0b2f5b;

    font-weight: 700;

    text-decoration: none;
}


.vsk-location a:hover {
    color: #2563eb;
    text-decoration: underline;
}


.vsk-location-separator {
    color: #94a3b8;
}


/* =========================================================
   PARTY BADGE
   ========================================================= */

.vsk-badges {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;
}


.party {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 17px;

    border-radius: 999px;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 0.02em;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   PARTY COLORS
   ========================================================= */

.party-odm {
    background: #f58220;
}

.party-uda {
    background: linear-gradient(
        90deg,
        #facc15,
        #15803d
    );

    color: #111827;
}

.party-dcp {
    background: #6d28d9;
}

.party-wiper {
    background: #2563eb;
}

.party-jubilee {
    background: #dc2626;
}

.party-kanu {
    background: #c1121f;
}

.party-ford-kenya {
    background: #10b981;
}

.party-anc {
    background: #f59e0b;
}

.party-dap-k {
    background: #22c55e;
}

.party-ccu {
    background: #06b6d4;
}

.party-independent {
    background: #6b7280;
}


/* =========================================================
   LAST UPDATED
   ========================================================= */

.vsk-last-updated {
    margin-top: 4px;

    color: #64748b;

    font-size: 0.85rem;
    line-height: 1.5;
}


.vsk-last-updated strong {
    color: #334155;

    font-weight: 700;
}


/* =========================================================
   HERO SUMMARY
   ========================================================= */

.hero-summary {
    max-width: 720px;

    margin: 28px 0;

    padding: 4px 0 4px 24px;

    border-left: 4px solid #0b2f5b;

    color: #475569;

    font-size: 1.12rem;
    line-height: 1.8;

    font-style: italic;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 12px 20px;

    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.hero-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   PRIMARY
   ========================================================= */

.hero-btn-primary {
    background: #0b2f5b;
    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(11, 47, 91, 0.15);
}


.hero-btn-primary:hover {
    background: #154a8b;
    color: #ffffff;
}


/* =========================================================
   SECONDARY
   ========================================================= */

.hero-btn-secondary {
    background: #2563eb;
    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(37, 99, 235, 0.15);
}


.hero-btn-secondary:hover {
    background: #1d4ed8;
    color: #ffffff;
}


/* =========================================================
   OUTLINE
   ========================================================= */

.hero-btn-outline {
    background: #ffffff;
    color: #0b2f5b;

    border: 1px solid #cbd5e1;
}


.hero-btn-outline:hover {
    background: #f8fafc;
    color: #0b2f5b;

    border-color: #93c5fd;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .vsk-hero-card {
        grid-template-columns: 1fr;

        padding: 35px;

        gap: 35px;
    }

    .vsk-photo {
        width: 100%;
        max-width: 340px;

        margin: 0 auto;
    }

    .vsk-info {
        text-align: center;
    }

    .vsk-location {
        justify-content: center;
    }

    .vsk-badges {
        justify-content: center;
    }

    .hero-summary {
        margin: 28px auto;

        text-align: left;
    }

    .hero-actions {
        justify-content: center;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .vsk-hero {
        padding: 35px 14px 20px;
    }

    .vsk-hero .vsk-container {
        padding: 0;
    }

    .vsk-hero-card {
        padding: 25px 20px;

        border-radius: 18px;

        gap: 28px;
    }

    .vsk-photo {
        max-width: 280px;
    }

    .vsk-info h1 {
        font-size: 2.25rem;
    }

    .vsk-candidate-position {
        margin-top: 10px;

        font-size: 1.2rem;
    }

    .vsk-election {
        font-size: 0.85rem;
    }

    .vsk-location {
        font-size: 0.95rem;
    }

    .hero-summary {
        padding-left: 18px;

        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .hero-btn {
        width: 100%;
    }
}

/* =========================================================
   HERO SVG ICONS
   ========================================================= */

.vsk-hero .hero-inline-icon,
.vsk-hero .hero-button-icon {
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   2026-09 HERO MOBILE STABILISATION
   ========================================================= */

/* Contain every inline hero sprite regardless of theme SVG rules. */
.vsk-hero .hero-inline-icon,
.vsk-hero .hero-button-icon,
.vsk-hero .vsk-election > svg,
.vsk-hero .vsk-location > svg,
.vsk-hero .hero-btn > svg {
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vsk-hero .vsk-election {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 8px 14px !important;
    margin: 0 0 18px !important;
    border-radius: 999px !important;
}

.vsk-hero .vsk-location {
    min-height: 0 !important;
}

.vsk-hero .hero-btn {
    min-height: 46px !important;
    height: auto !important;
}

@media (max-width: 600px) {
    .vsk-hero {
        padding: 18px 10px 16px !important;
    }

    .vsk-hero-card {
        gap: 20px !important;
        padding: 20px 16px 22px !important;
        border-radius: 16px !important;
    }

    .vsk-photo {
        width: min(100%, 250px) !important;
        max-width: 250px !important;
    }

    .vsk-photo img {
        border-radius: 16px !important;
    }

    .vsk-profile-label {
        margin-bottom: 7px !important;
        font-size: .7rem !important;
    }

    .vsk-info h1 {
        font-size: clamp(2rem, 10vw, 2.45rem) !important;
        line-height: 1.08 !important;
    }

    .vsk-candidate-position {
        margin: 7px 0 15px !important;
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
    }

    .vsk-hero .vsk-election {
        margin-bottom: 14px !important;
        padding: 7px 12px !important;
        font-size: .82rem !important;
        line-height: 1.35 !important;
    }

    .vsk-location {
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 14px !important;
        font-size: .9rem !important;
        line-height: 1.45 !important;
    }

    .vsk-badges {
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .party {
        padding: 7px 13px !important;
        font-size: .8rem !important;
    }

    .vsk-last-updated {
        margin-top: 0 !important;
        font-size: .8rem !important;
    }

    .hero-summary {
        max-width: none !important;
        margin: 20px 0 18px !important;
        padding: 2px 0 2px 14px !important;
        border-left-width: 3px !important;
        font-size: .95rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .hero-btn {
        width: 100% !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        border-radius: 9px !important;
        font-size: .88rem !important;
        line-height: 1.3 !important;
    }
}
