.uvl-tool {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.uvl-card {
    background: linear-gradient(180deg, #fffdfa 0%, #f7f2ea 100%);
    border: 1px solid #e7dccd;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(46, 38, 28, 0.06);
}

.uvl-card h2 {
    margin: 0 0 12px;
    color: #22324a;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.uvl-intro {
    margin: 0 0 22px;
    color: #4c5b6f;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 760px;
}

.uvl-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
}

.uvl-form input {
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #d9cfbe;
    border-radius: 14px;
    font-size: 16px;
    background: #fffefc;
    color: #1f2937;
}

.uvl-form input:focus {
    outline: none;
    border-color: #b24a32;
    box-shadow: 0 0 0 4px rgba(178, 74, 50, 0.10);
}

.uvl-form button {
    background: #b2412b;
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 15px 22px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    min-width: 132px;
}

.uvl-status {
    margin-bottom: 18px;
    color: #2f4058;
    font-size: 1rem;
    font-weight: 600;
}

.uvl-hidden {
    display: none;
}

.uvl-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.uvl-result-box,
.uvl-explanation,
.uvl-candidates {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #eadfcf;
    border-radius: 18px;
    padding: 18px;
}

.uvl-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #7d6e5b;
    margin-bottom: 10px;
    font-weight: 700;
}

.uvl-result-box strong {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    color: #16283f;
    line-height: 1;
}

.uvl-explanation,
.uvl-candidates {
    margin-bottom: 18px;
}

.uvl-section-title {
    margin: 0 0 18px;
    color: #16283f;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#uvl-candidates-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}


.uvl-candidate-card {
    border: 1px solid #eadfce;
    border-radius: 18px;
    background: #fffdfa;
    padding: 18px;
    box-shadow: 0 6px 14px rgba(46, 34, 18, 0.04);
}

.uvl-candidate-card-incumbent {
    border-color: #d4b47a;
    box-shadow: 0 8px 20px rgba(157, 112, 36, 0.10);
}

.uvl-candidate-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.uvl-candidate-name {
    margin: 0 0 6px;
    font-size: 1.45rem;
    color: #1b2e46;
    line-height: 1.1;
}

.uvl-candidate-party {
    color: #5c6a80;
    font-weight: 600;
}

.uvl-candidate-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.uvl-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2eadc;
    color: #6f5424;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.uvl-pill-incumbent {
    background: #efe2bf;
    color: #6e4c14;
}

.uvl-candidate-note {
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 14px;
    background: #f8f4ed;
    border: 1px solid #eadfcf;
}

.uvl-candidate-note.supporters {
    border-left: 4px solid #4f6f5c;
}

.uvl-candidate-note.critics {
    border-left: 4px solid #a05a48;
}

.uvl-candidate-note-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #72624b;
    margin-bottom: 8px;
    font-weight: 700;
}

.uvl-candidate-note-text,
.uvl-candidate-note-full {
    color: #39495f;
    line-height: 1.72;
}

.uvl-expand-button {
    margin-top: 8px;
    background: transparent;
    border: 0;
    color: #6f6251;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.82rem;
    border-radius: 0;
}

.uvl-expand-button:hover {
    color: #3f4f67;
    text-decoration: underline;
}

.uvl-expand-button:hover {
    background: #efe5d6;
}

.uvl-candidate-note-full {
    margin-top: 10px;
}

.uvl-candidates-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eadcc5;
    color: #5f6e83;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
}

.uvl-candidates-meta a {
    color: #8d3b2d;
    font-weight: 700;
    text-decoration: none;
}

.uvl-candidates-meta a:hover {
    text-decoration: underline;
}

.uvl-map {
    width: 100%;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ddcfb7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
    #uvl-candidates-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .uvl-tool {
        padding: 14px 10px 28px;
    }

    .uvl-card {
        padding: 18px;
        border-radius: 18px;
    }

    .uvl-form {
        grid-template-columns: 1fr;
    }

    .uvl-form button {
        width: 100%;
    }

    .uvl-result-grid {
        grid-template-columns: 1fr;
    }

    .uvl-candidate-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .uvl-candidate-pills {
        justify-content: flex-start;
    }

    .uvl-map {
        height: 340px;
    }
}
