:root {
  color-scheme: light;
  --ink: #102820;
  --muted: #425951;
  --paper: #f4f7f4;
  --line: #d5ded7;
}

body {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--ink);
}

.site-nav {
  min-height: 4.5rem;
  max-width: 64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: #fff;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
  line-height: 1.2;
}

.wordmark:hover {
  color: #fff;
}

.wordmark:hover .brand-name {
  text-decoration: underline;
}

.brand-mark {
  flex: none;
  object-fit: contain;
  background: #ecf4ef;
  border-radius: .55rem;
}

.brand-text {
  display: grid;
  gap: .25rem;
  overflow-wrap: anywhere;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-organisation {
  color: #c6ded0;
  font-size: .83rem;
}

.site-nav form {
  flex-shrink: 0;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer-inner {
  max-width: 64rem;
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.footer-organisation {
  font-weight: 600;
  color: var(--ink);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

.footer-contact a {
  color: #245b42;
}

.skip-link {
  position: absolute;
  background: white;
  padding: .5rem 1rem;
}

.page-content {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding-block: clamp(2rem, 9vw, 5rem);
}

.panel {
  width: min(100%, 29rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
}

h1 {
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.intro {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.form-label {
  font-weight: 600;
}

.form-control, .panel .btn {
  min-height: 2.75rem;
}

.admin-link {
  margin: 1.5rem 0 0;
}

.membership-workspace {
  max-width: 64rem;
}

.member-form {
  max-width: 42rem;
}

.membership-fields dd {
  overflow-wrap: anywhere;
}

.member-form label {
  font-weight: 600;
  margin-bottom: .25rem;
}

.errorlist {
  color: #a01826;
  padding-left: 1.25rem;
}

@media (min-width: 576px) {
  .membership-fields {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
    gap: .5rem 1rem;
  }

  .membership-fields dd {
    margin: 0;
  }
}

.club-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .35rem;
}

.club-week-labels {
  text-align: center;
}

.club-day {
  min-height: 5rem;
  padding: .5rem;
  border: 1px solid var(--line, #d0d8d2);
  border-radius: .4rem;
  background: white;
  overflow-wrap: anywhere;
}

.club-day-outside {
  opacity: .65;
}

.club-day-today {
  outline: 2px solid #13653f;
  outline-offset: -2px;
}

.club-mobile-empty {
  display: none;
}

@media (max-width: 767px) {
  .club-week {
    grid-template-columns: 1fr;
  }

  .club-week-labels,
  .club-day-empty {
    display: none;
  }

  .club-day {
    min-height: auto;
  }

  .club-month:not(:has(.club-day:not(.club-day-empty))) .club-mobile-empty {
    display: block;
  }
}
