:root {
    color-scheme: light;
    font: 100%/1.55 system-ui, sans-serif;
    color: #202e2b;
    background: #f4f6f3;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.site-header { background: #173d35; color: #fff; padding: 1.25rem 0; }
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.65rem, 3vw, 1.25rem);
    padding: clamp(.9rem, 3vw, 1.8rem) clamp(.8rem, 4vw, 2.5rem);
    border: 1px solid #d2c2a1;
    border-radius: .45rem;
    background: #fff9ee;
    color: #372b20;
    text-decoration: none;
}
.brand::before, .brand::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #bea169;
}
.brand img { width: clamp(2.8rem, 11vw, 5rem); height: auto; flex: none; }
.brand-title { display: block; font: 700 clamp(1.55rem, 5.5vw, 2.9rem)/1.1 Georgia, serif; }
.brand-subtitle { display: block; color: #69533b; font-size: clamp(.85rem, 2.4vw, 1.2rem); }
@media (max-width: 34rem) {
    .brand::before, .brand::after { display: none; }
}
nav, .actions { display: flex; gap: .65rem 1rem; flex-wrap: wrap; align-items: center; }
.site-header nav { margin-top: .6rem; }
main { padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin: 1.6rem 0 1rem; font-size: clamp(1.8rem, 5vw, 2.8rem); }
a { color: #18584a; text-underline-offset: .18em; }
.panel { background: white; border: 1px solid #d6dfd9; border-radius: .55rem; padding: 1rem; margin: 0 0 .75rem; }
.stack { display: grid; gap: .9rem; max-width: 44rem; }
.stack > button { justify-self: start; }
label { display: grid; gap: .25rem; min-width: 0; font-weight: 600; }
input, select, textarea, button, .button, .site-header nav a, .months a { font: inherit; }
input, select, textarea { width: 100%; border: 1px solid #81968d; border-radius: .35rem; padding: .5rem; color: inherit; background: #fff; }
textarea { resize: vertical; }
button, .button, .site-header nav a, .months a { border: 1px solid #205847; border-radius: .35rem; color: #fff; background: #205847; padding: .5rem .8rem; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { color: #205847; background: #fff; }
:focus-visible { outline: 3px solid #b46a1d; outline-offset: 3px; }
.check { display: flex; align-items: center; }
.check input { width: auto; }
.paired { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .8rem; }
.filter { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.filter input { max-width: 8rem; }
.club { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.months { padding: .6rem 0; }
.site-header nav a:hover, .site-header nav button:hover, .months a:hover {
    background: #153e32;
    border-color: #9dbcb0;
}
.month { margin-top: 1.65rem; }
.month h2 { border-bottom: 1px solid #cbd7d0; padding-bottom: .45rem; }
.event p, .event h3 { margin: .25rem 0; }
.event-date { color: #285b4d; font-weight: 700; }
.muted { color: #52645d; }
.cancelled { display: inline-block; font-size: .85rem; color: #88251f; background: #ffeae6; border-radius: .25rem; padding: .12rem .35rem; }
.description { white-space: pre-wrap; }
.event, .message { overflow-wrap: anywhere; }
.message { background: #e2efe7; padding: .75rem 1rem; border-radius: .35rem; }
.error { color: #85251f; background: #ffeae6; }

.club-choices {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.25rem), 1fr));
    gap: .55rem;
}
.club-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .15rem;
    padding: .6rem .45rem;
    border: 1px solid #b8c9c0;
    border-radius: .4rem;
    background: white;
    color: #173d35;
    text-align: center;
    text-decoration: none;
    font-size: .875rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.club-choice:hover, .club-choice[aria-current="true"], .club-choice[aria-pressed="true"] {
    background: #e2efe7;
    border-color: #205847;
}
.club-choice[aria-current="true"], .club-choice[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px #205847;
}
.club-choice img.club-logo {
    height: auto;
}
.club-logo { width: 7rem; height: 7rem; object-fit: contain; flex: none; }
.club-initials {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f3ecdb;
    color: #473620;
    font-weight: 700;
}

.event-club { display: flex; align-items: center; gap: .55rem; }
.event-club .club-logo { width: 4rem; height: 4rem; }
.event-club .club-initials { font-size: .75rem; }
