.flash-success {
    color: var(--pico-form-element-valid-active-border-color);
    margin-bottom: 0.75rem;
}

.flash-error {
    color: var(--pico-form-element-invalid-active-border-color);
    margin-bottom: 0.75rem;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.footer-links {
    float: right;
}

/* Home */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.club-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.club-card-logo {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background-color: var(--pico-card-background-color);
    border-radius: calc(var(--pico-border-radius) * 0.5);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}
.club-card h3 {
    margin-bottom: 0.25rem;
}
.club-card h3 a {
    text-decoration: none;
}
.club-card p {
    flex-grow: 1;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--pico-muted-color);
}
.club-card .created-date {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    margin: 0;
}
.cta-panel {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.cta-actions a {
    margin: 0;
}

/* Search */
.results-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 1rem;
}

.filters-sidebar form {
    margin-bottom: 0;
}

.filters-sidebar select {
    width: 100%;
}

.result-list {
    margin-top: 0;
}

@media (max-width: 768px) {
    .results-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }
}

/* Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
:where(.login-page) main {
    width: 100%;
    max-width: 400px;
}
.login-container {
    text-align: center;
}
.login-container h1 {
    margin-bottom: 0.5rem;
}
.login-container p {
    margin-bottom: 2rem;
    color: #666;
}
.oauth-button {
    display: inline-block;
    width: 100%;
}
.login-terms {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #999;
}

/* Club home */
.centered-header-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.centered-header-image img {
    margin: auto;
    max-height: 200px;
}

.club-events {
    margin-top: 1.5rem;
}

.club-event p {
    margin-bottom: 0.5rem;
}

.club-event details {
    margin-top: 0.5rem;
}

.create-event {
    margin-top: 1rem;
}

.ownership-section {
    margin-top: 2rem;
    border-top: 1px solid var(--pico-muted-border-color);
    padding-top: 1rem;
}
