/* styling for party profile */

/* === Party Hero === */
.party-hero {
    background: var(--off-white);
    border-bottom: 3px solid lightgrey;
    padding: 32px 56px 30px;
    text-align: left;
}

.party-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 8px;
}

.party-eyebrow-independent {
    color: var(--gold);
}

.party-hero h1 {
    font-family: "Poppins", "Inter", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--heading);
    line-height: 1.3;
    margin: 0;
}

/* Hero stat strip — same pattern as the TD and debate pages */
.party-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-value {
    font-family: "Inter", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}

.hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Sentiment tooltip */
.hero-stat-tooltip {
    position: relative;
    cursor: default;
}

.sentiment-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-stat-tooltip:hover .sentiment-popup {
    opacity: 1;
    transform: translateY(0);
}

.stance-negative {
    background: var(--red-light);
    color: var(--red);
}

.stance-neutral {
    background: var(--green-light);
    color: var(--text-muted);
}

.stance-positive {
    background: var(--green-light);
    color: var(--green-deep);
}

/* === Page Body === */
.party-profile-container {
    max-width: 1800px;
    margin: 24px auto 0;
    padding: 0 56px 48px;
}

/* === Charts (word frequency + language share) === */
.insights-wrapper {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.insights-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 22px 28px 28px;
}

.insights-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--green-light);
}

.insights-body {
    display: grid;
    grid-template-columns: 2fr 1px 1fr;
    gap: 28px;
    align-items: stretch;
}

.insights-divider {
    background: var(--green-light);
}

@media (max-width: 800px) {
    .insights-body {
        grid-template-columns: 1fr;
    }

    .insights-divider {
        display: none;
    }
}

#overallprobdist,
#overallirishper {
    width: 100%;
    height: 380px;
}

/* === Responsive === */
@media (max-width: 800px) {
    .party-hero-stats {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .hero-stat-divider {
        display: none;
    }

    .party-profile-container {
        padding: 0 20px 32px;
    }
}