:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #19263a;
  --border: #ccd4df;
  --ink: #19263a;
  --muted: #475871;
  --navy: #142438;
  --accent: #f5bb64;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.1; }
h2 { font-size: 1.3rem; line-height: 1.2; }
button, select, input, textarea { font: inherit; }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.top { background: var(--navy); color: white; padding-block: 1.4rem; border-bottom: .25rem solid var(--accent); }
.top-content, .season, .dialog-head, .dialog-actions { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.brand { margin-bottom: .5rem; font-size: .875rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.schedule { padding-block: 1.25rem 3rem; }
.season, .dialog-actions { flex-wrap: wrap; }
.season { align-items: end; }
.season p { flex: 1; line-height: 1.4; }
.season-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.excel-download { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem .65rem; color: var(--ink); border: 1px solid var(--border); border-radius: .4rem; background: white; font-weight: 650; text-decoration: none; }
.excel-download:hover { text-decoration: underline; }
label { display: grid; gap: .3rem; font-size: .9375rem; font-weight: 650; }
input, select, textarea, button {
  min-height: 2.75rem;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: white;
  padding: .55rem .65rem;
}
input, select, textarea { width: 100%; min-width: 0; font-size: 1rem; }
button { cursor: pointer; font-weight: 650; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: .17rem solid #087eb8;
  outline-offset: .12rem;
}
.primary { background: var(--accent); border-color: #a06c24; color: #161920; }
.quiet { background: transparent; color: inherit; }
.muted, #message { color: var(--muted); }
#message:not(:empty) { margin-block: .85rem; }
.error { color: #961c31; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .65rem; margin-top: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .7rem; list-style: none; margin: .8rem 0 1rem; padding: 0; }
.legend li, .pill { padding: .14rem .42rem; border: 1px solid var(--border); border-radius: .35rem; font-size: .875rem; color: var(--ink); }
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.month { background: white; border: 1px solid var(--border); border-radius: .6rem; padding: .75rem; }
.month h2 { margin-bottom: .6rem; }
.weekends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.weekend { text-align: left; min-width: 0; padding: .45rem .55rem; min-height: 3.9rem; }
.weekend span { display: block; }
.weekend .count, .show-location { font-weight: 400; font-size: .875rem; color: #2f415a; }
.matches { margin-block: 1.15rem; }
.matches h2 { margin-bottom: .5rem; }
.show-list { display: grid; gap: .45rem; }
.show-row { display: grid; gap: .25rem; width: 100%; text-align: left; overflow-wrap: anywhere; }
.show-row > span:last-child { display: flex; flex-wrap: wrap; gap: .35rem; }
.pending { display: inline-block; width: max-content; max-width: 100%; font-size: .875rem; color: #653700; background: #fff1d5; border-radius: .35rem; padding: .16rem .45rem; }
dialog { border: 1px solid var(--border); border-radius: .75rem; color: var(--ink); width: min(100% - 1.5rem, 36rem); max-height: 88vh; padding: 1rem; }
dialog::backdrop { background: #0b152b9e; }
.dialog-head { align-items: start; margin-bottom: .8rem; }
.dialog-actions { justify-content: flex-start; }
.stack, #detail-content { display: grid; gap: .75rem; }
.contact { padding: .6rem; border: 1px solid var(--border); border-radius: .4rem; overflow-wrap: anywhere; }
.contact > * { display: block; margin-block: .2rem; }
.login { width: min(100% - 2rem, 25rem); margin: clamp(2rem, 12vh, 8rem) auto; background: white; border: 1px solid var(--border); border-top: .25rem solid var(--accent); border-radius: .65rem; padding: 1.3rem; }
.login h1, .login .error { margin-bottom: 1rem; }
@media (max-width: 58rem) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) {
  .months { grid-template-columns: 1fr; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters label:first-child { grid-column: 1 / -1; }
  .season p { order: 3; flex-basis: 100%; }
  .top { padding-block: 1rem; }
  .wrap { width: calc(100% - 1.25rem); }
}
