main {
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.week-category {
    font-size: 1.125rem;
    color: #888888;
    margin-bottom: 1rem;
}

.week-category strong {
    color: #ffffff;
    font-weight: 600;
}

/* Center Clerk's fixed-width sign-in card in the wide main container. */
.sign-in {
    display: flex;
    justify-content: center;
}

.status-banner {
    display: inline-block;
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    color: #888888;
}

.status-banner.voted {
    border-color: #00ff88;
    color: #00ff88;
}

.ballots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.ballot {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.ballot:hover {
    border-color: #555555;
}

.ballot.chosen {
    border-color: #00ff88;
}

.ballot h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.ballot-description {
    color: #888888;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ballot > a {
    color: #0070f3;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.ballot > a:hover {
    text-decoration: underline;
}

.ballot-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #222222;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tally {
    font-size: 0.8125rem;
    color: #888888;
}

.vote-button {
    margin-left: auto;
    padding: 0.5rem 1.25rem;
}

.voted-badge {
    margin-left: auto;
    color: #00ff88;
    font-size: 0.875rem;
    font-weight: 500;
}

.vote-placeholder {
    margin-left: auto;
    height: 1.5rem;
}

.cancel-button {
    background-color: transparent;
    color: #888888;
    border: 1px solid #333333;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.cancel-button:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #555555;
}

.cancel-button:disabled {
    background-color: transparent;
    opacity: 0.5;
}

#vote-message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #ff6b6b;
    display: none;
}

#vote-message.visible {
    display: block;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .ballots {
        grid-template-columns: 1fr;
    }
}
