/* Clubs and after-school activities */

.clubs-section { margin-top: 12px; padding: 14px; border: 1px solid #d6e7f2; border-radius: 20px; background: #e8f5fb; }
.clubs-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.clubs-heading h3 { margin: 1px 0 0; color: var(--navy); font-size: 24px; letter-spacing: -.025em; }
.clubs-heading > .lucide { width: 24px; color: var(--accent); }
.club-card { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 9px 13px; border: 1px solid #d7e5ee; border-radius: 16px; background: #fff; }
.club-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; }
.club-icon .lucide { width: 25px; height: 25px; }
.club-copy { min-width: 0; }
.club-copy strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.25; }
.club-copy span { display: block; margin-top: 3px; color: #496780; font-size: 12.5px; line-height: 1.25; }
@media (max-width: 700px) {
.clubs-section { margin-top: 18px; padding: 16px; border-radius: 20px; }
.clubs-heading h3 { font-size: 23px; }
}
.clubs-section { margin: 28px 0 0; padding: 0; border: 0; background: transparent; }
.clubs-heading { margin: 0 4px 13px; }
.clubs-heading h3 { margin: 2px 0 0; font-size: 24px; }
.clubs-timeline::before { top: 30px; bottom: 30px; }
.club-card {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px 13px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: rgba(255,255,255,.77);
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(36,68,113,.07);
}
.club-card.selected { box-shadow: inset 0 1px 0 #fff, inset 5px 0 0 var(--tone), 0 12px 28px rgba(36,68,113,.11); }
.club-icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--tone); }
.club-icon .lucide { width: 27px; height: 27px; }
.club-copy { min-width: 0; text-align: left; }
.club-copy strong { display: block; font-size: 16px; line-height: 1.2; }
.club-copy span { display: block; margin-top: 4px; color: var(--sm-muted); font-size: 12px; }
.club-end { min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; color: #586b86; background: rgba(103,124,155,.09); font-size: 12px; font-weight: 800; }
@media (max-width: 760px) {
.clubs-section { margin-left: 0; }
.club-card { min-height: 78px; grid-template-columns: 46px minmax(0,1fr) auto; padding: 12px; border-radius: 18px; }
.club-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
}
@media (max-width: 430px) {
.clubs-section { margin-left: 0; }
}

/* The card body opens the details, the star says he attends. Same division as a
   lesson card, so one gesture does not have to mean two things. */
.club-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.club-main.as-text { cursor: default; }

.club-side { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.club-side > .lucide { width: 19px; height: 19px; color: #9fb0c6; }
.club-side .note-mark .lucide { width: 16px; height: 16px; color: #e0a11c; }

/* What is running now and what comes next. Nothing for a club already over. */
.club-state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
}
.club-state.current { color: #177b38; background: rgba(52,199,89,.16); }
.club-state.next { color: #0b67c8; background: rgba(22,119,242,.13); }

/* The details sit under the card and span it, the way a lesson panel does. */
.club-panel { grid-column: 1 / -1; margin: 0; padding: 13px 0 0; }
.club-card.is-expanded { background: rgba(255,255,255,.9); }

/* The star on a club card marks the one the pupil attends. */
.club-star {
  display: grid;
  border: 0;
  background: none;
  cursor: pointer;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 2px;
  border-radius: 50%;
  color: #c2cedd;
}
.club-star .lucide { width: 18px; height: 18px; }
.club-card.selected .club-star { color: #f2a900; }
.club-card.selected .club-star .lucide { fill: currentColor; }

/* When any club that day is starred, the rest step back. */
.club-card.is-muted {
  min-height: 62px;
  padding: 9px 12px;
  opacity: .62;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 16px rgba(36, 68, 113, .05);
}
.club-card.is-muted .club-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
.club-card.is-muted .club-icon .lucide { width: 20px; height: 20px; }
.club-card.is-muted .club-copy strong { font-size: 14px; }
.club-card.is-muted .club-copy span { display: none; }
.club-card.is-muted:hover,
.club-card.is-muted:focus-visible { opacity: .95; }
