/* Results page (/resultado): ranked candidate alignment cards. */

.res-layout {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 28px 20px 40px;
}

.res-header {
    margin-bottom: 22px;
}

.res-eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--accent);
}

.res-title {
    margin: 0 0 8px;
    font-size: 1.9rem;
    font-weight: 600;
}

.res-sub {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.res-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.res-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}

.res-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}

.res-summary::-webkit-details-marker {
    display: none;
}

.res-rank {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--stone-300);
}

.res-id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.res-name {
    font-weight: 600;
    font-size: 1.02rem;
}

.res-party {
    font-size: 0.8rem;
    color: var(--muted);
}

.res-score {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.res-score-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.res-conf {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
}

.res-conf.conf-high {
    color: #bde39a;
    border-color: rgba(151, 196, 89, 0.6);
}

.res-conf.conf-medium {
    color: #e6c96a;
    border-color: rgba(230, 201, 106, 0.5);
}

.res-conf.conf-low {
    color: #d99a8f;
    border-color: rgba(217, 154, 143, 0.5);
}

.res-bar {
    height: 6px;
    margin: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.res-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
}

.res-transparency {
    margin: 8px 18px 0;
    font-size: 0.78rem;
    color: var(--stone-500);
}

.res-help-link {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.res-help-link:hover {
    text-decoration: underline;
}

.res-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px 18px 20px;
}

@media (max-width: 560px) {
    .res-detail {
        grid-template-columns: 1fr;
    }
}

.res-col-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-500);
}

.res-col-title:not(:first-child) {
    margin-top: 16px;
}

.res-roots,
.res-issues {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.res-roots li,
.res-issues li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.res-issue-name {
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.res-pct {
    flex: none;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.res-issues.agree .res-pct {
    color: #bde39a;
}

.res-issues.disagree .res-pct {
    color: #d99a8f;
}

.res-empty {
    margin-top: 40px;
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
}

.res-empty p {
    margin: 0 0 16px;
}

.res-cta {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--accent);
    color: #10240a;
    font-weight: 700;
    text-decoration: none;
}

.res-cta:hover {
    background: var(--accent-strong);
}
