/* --- VOTER GUIDE STYLING --- */
:root { 
    --primary-red: #B91C1C; 
    --bg-gray: #F3F4F6; 
    --blue-accent: #1E3A8A; 
}

/* Main Container */
.voter-guide-container { 
    font-family: 'Segoe UI', Helvetica, sans-serif; 
    max-width: 100%; 
    margin: 0 auto; 
}

/* Section Headers (Federal/State) */
.vg-section-header { 
    display: flex; 
    align-items: center; 
    border-bottom: 2px solid #e5e7eb; 
    padding-bottom: 10px; 
    margin: 40px 0 20px 0; 
}
.vg-section-badge { 
    background: #333; 
    color: white; 
    padding: 5px 12px; 
    border-radius: 4px; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    margin-right: 15px; 
}
.vg-section-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #1f2937; 
    margin: 0; 
}

/* Race Card */
.vg-race-block { 
    background: white; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    border-top: 5px solid var(--primary-red); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    overflow: hidden; 
}
.vg-race-header { padding: 20px; border-bottom: 1px solid #eee; }
.vg-race-title { margin: 0; font-size: 1.4rem; font-weight: 800; color: #111; }
.vg-race-subtitle { margin: 5px 0 0 0; color: #666; font-size: 0.9rem; }
.vg-alert-text { 
    color: #b91c1c; 
    font-weight: bold; 
    font-size: 0.85rem; 
    margin-top: 8px; 
    display: block; 
}

/* Accordions */
details.vg-details { border-bottom: 1px solid #eee; }
summary.vg-summary { 
    padding: 15px 20px; 
    cursor: pointer; 
    font-weight: 700; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    list-style: none; 
}
summary.vg-summary::-webkit-details-marker { display: none; }
summary.vg-summary::after { content: '+'; font-size: 1.5rem; color: #999; }
details[open] summary.vg-summary::after { content: '−'; }

.vg-summary-job { background: #EFF6FF; color: var(--blue-accent); }
.vg-content-job { padding: 20px; background: white; line-height: 1.6; color: #374151; }
.vg-summary-candidates { background: #FEF2F2; color: var(--primary-red); }

/* Candidate Grid */
.vg-candidates-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px; 
    padding: 20px; 
    background: white; 
}
.vg-candidate-card { 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 15px; 
    background: white; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s; 
}
.vg-candidate-card:hover { 
    transform: translateY(-2px); 
    border-color: var(--primary-red); 
    box-shadow: 0 10px 15px rgba(0,0,0,0.05); 
}
.vg-card-header { margin-bottom: 12px; }
.vg-candidate-name { margin: 0 0 5px 0; font-size: 1.15rem; font-weight: 800; }

/* Badges */
.vg-badge { 
    font-size: 0.7rem; 
    padding: 3px 8px; 
    border-radius: 4px; 
    text-transform: uppercase; 
    font-weight: bold; 
    display: inline-block; 
}
.vg-badge-incumbent { background: #DEF7EC; color: #03543F; }
.vg-badge-challenger { background: #F3F4F6; color: #4B5563; }
.vg-badge-open { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }

/* Priorities Box */
.vg-priorities-box { 
    background: #f9fafb; 
    padding: 10px; 
    border-radius: 6px; 
    border-left: 3px solid var(--primary-red); 
    font-size: 0.85rem; 
    margin-bottom: 15px; 
    flex-grow: 1; 
}
.vg-priorities-box ul { margin: 5px 0 0 0; padding-left: 20px; color: #374151; }
.vg-priorities-box li { margin-bottom: 3px; }

/* Button */
.vg-btn-link { 
    display: block; 
    width: 100%; 
    text-align: center; 
    background: var(--primary-red); 
    color: white !important; 
    padding: 10px 0; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    transition: background 0.2s; 
}
.vg-btn-link:hover { background: #991B1B; }