/* Public squad selector. Printable exports retain the complete timetable grid. */
.schedule-picker,
.placeholder-hero:has(+ .schedule-section) > .container {
  width: min(1500px, calc(100vw - 2.6rem));
}

.schedule-picker { color: var(--text, var(--ink)); }
.schedule-picker svg { flex-shrink: 0; width: 1.2em; height: 1.2em; }

.schedule-picker__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.schedule-picker__tab {
  --squad-circle: #c0c0c0;
  --squad-circle-ink: #102f41;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  min-height: 102px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-soft, var(--surface-alt));
  color: var(--text, var(--ink));
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.schedule-picker__tab:last-child { border-right: 0; }
.schedule-picker__tab-copy { min-width: 0; display: grid; gap: .3rem; }
.schedule-picker__tab-minimum { color: var(--muted, var(--ink-soft)); font-size: .84rem; font-weight: 400; line-height: 1.3; }
.schedule-picker__tab-minimum strong { color: var(--brand-strong, var(--navy)); font-weight: 700; font-size: 1rem; }
.schedule-picker__tab[data-squad-tab="academy-gold"] { --squad-circle: #d6a430; }
.schedule-picker__tab[data-squad-tab="comp-state-dev"],
.schedule-picker__tab[data-squad-tab="competition"] { --squad-circle: #8ec63f; }
.schedule-picker__tab[data-squad-tab="state-national"] {
  --squad-circle: #071f36;
  --squad-circle-ink: #fff;
}
.schedule-picker__step {
  display: grid;
  place-items: center;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  color: var(--squad-circle-ink);
  background: var(--squad-circle);
  font-size: 1.15rem;
}
.schedule-picker__tab[aria-selected="true"] {
  border-bottom-color: transparent;
  color: var(--brand-strong, var(--navy));
  background: var(--surface);
}
.schedule-picker__tab:focus-visible,
.schedule-picker__panel:focus-visible {
  outline: 3px solid var(--brand, var(--blue));
  outline-offset: -5px;
}
.schedule-picker__panel {
  margin-bottom: 1.25rem;
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--surface);
}
.schedule-picker__panel[hidden] { display: none; }

.schedule-picker__overview {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  margin-bottom: 1.3rem;
}
.schedule-picker__overview-header {
  margin-bottom: 1.5rem;
}
.schedule-picker__overview-copy { max-width: 1050px; }
.schedule-picker__overview h2 {
  margin: 0 0 .65rem;
  color: var(--brand-strong, var(--navy));
  font-family: "Barlow Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: 2.25rem;
  line-height: 1.05;
}
.schedule-picker__description {
  color: var(--muted, var(--ink-soft));
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}
.schedule-picker__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.schedule-picker__detail + .schedule-picker__detail { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.schedule-picker__detail h3,
.schedule-picker__timetable-title {
  color: var(--brand-strong, var(--navy));
  font-family: "Barlow Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: 1.4rem;
  line-height: 1.1;
  margin: 0 0 .7rem;
}
.schedule-picker__detail p { color: var(--muted, var(--ink-soft)); font-size: .95rem; line-height: 1.6; margin: 0; }
.schedule-picker__timetable-title { font-size: 1.65rem; margin-bottom: 1rem; }
.schedule-picker__timetable-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: 1rem; }
.schedule-picker__timetable-heading .schedule-picker__timetable-title { margin: 0; }
.schedule-picker__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--brand-strong, var(--navy));
  background: var(--surface);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.schedule-picker__pdf-link:hover { border-color: var(--brand, var(--blue)); }
.schedule-picker__pdf-link:focus-visible { outline: 3px solid var(--brand, var(--blue)); outline-offset: 3px; }

.schedule-picker__week {
  display: grid;
  grid-template-columns: repeat(var(--schedule-day-count), minmax(0, 1fr));
  align-items: stretch;
  gap: .7rem;
  min-width: 0;
}
.schedule-picker__day {
  padding: 1rem .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f4f1;
  min-width: 0;
}
.schedule-picker__day h4 {
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  color: var(--brand-strong, var(--navy));
  font-family: "Barlow Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
}
.schedule-picker__period + .schedule-picker__period {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.schedule-picker__period h5 {
  color: var(--muted, var(--ink-soft));
  margin: 0 0 .8rem;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.schedule-picker__activities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.schedule-picker__activity {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: .25rem .5rem;
  align-items: center;
}
.schedule-picker__activity-icon {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--surface-soft, var(--surface-alt));
  color: var(--brand-strong, var(--navy));
}
.schedule-picker__activity-icon--swim { color: #1470a9; background: #e5f2fb; }
.schedule-picker__activity-icon--dryland { color: #ac443c; background: #fcebe7; }
.schedule-picker__activity-icon--cycle { color: #467323; background: #edf6e1; }
.schedule-picker__activity-copy { display: contents; font-size: .95rem; line-height: 1.35; }
.schedule-picker__activity-copy strong { color: var(--text, var(--ink)); }
.schedule-picker__time {
  grid-column: 1 / -1;
  color: var(--muted, var(--ink-soft));
  font-size: .88rem;
}
.schedule-picker__location {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--brand-strong, var(--navy));
  font-size: .78rem;
  font-weight: 600;
}
.schedule-picker__location svg { width: .85rem; height: .85rem; }
.schedule-picker__day--rest { background: #f5f4f1; }
.schedule-picker__rest,
.schedule-picker__session-note,
.schedule-picker__footnote { color: var(--muted, var(--ink-soft)); font-size: .92rem; }
.schedule-picker__rest { margin: 0; }
.schedule-picker__footnote { margin: 1.2rem 0 0; }

html[data-theme="dark"] .schedule-picker__activity-icon--swim { color: #8bd2ff; background: #193b50; }
html[data-theme="dark"] .schedule-picker__activity-icon--dryland { color: #ffb6aa; background: #492c30; }
html[data-theme="dark"] .schedule-picker__activity-icon--cycle { color: #b8df8e; background: #293e2b; }
html[data-theme="dark"] .schedule-picker__day { background: #2b4773; }

@media screen and (max-width: 1100px) {
  .schedule-picker__tab { gap: .6rem; padding: .9rem .75rem; font-size: .94rem; }
  .schedule-picker__step { flex-basis: 2.15rem; width: 2.15rem; height: 2.15rem; }
  .schedule-picker__day { padding: .9rem .7rem; }
  .schedule-picker__day h4 { font-size: 1.4rem; }
  .schedule-picker__week { gap: .55rem; }
  .schedule-picker__panel { padding: 1.15rem; }
  .schedule-picker__details { gap: 1rem; }
  .schedule-picker__detail + .schedule-picker__detail { padding-left: 1rem; }
}

@media screen and (max-width: 959px) {
  .schedule-picker__week { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  .schedule-picker__day { padding: 1.15rem; }
  .schedule-picker__day h4 { font-size: 1.6rem; }
  .schedule-picker__activity { display: flex; align-items: start; gap: .6rem; }
  .schedule-picker__activity-icon { flex: 0 0 1.95rem; width: 1.95rem; height: 1.95rem; }
  .schedule-picker__activity-copy { min-width: 0; display: grid; gap: .15rem; }
  .schedule-picker__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.5rem; }
  .schedule-picker__detail + .schedule-picker__detail { padding-left: 0; border-left: 0; }
  .schedule-picker__detail:last-child { grid-column: 1 / -1; }
}

@media screen and (max-width: 760px) {
  .schedule-picker__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-picker__tab { min-height: 95px; font-size: .95rem; }
  .schedule-picker__tab:nth-child(2) { border-right: 0; }
  .schedule-picker__tab:nth-child(-n+2)[aria-selected="true"] { border-bottom-color: var(--line); }
  .schedule-picker__week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-picker__overview h2 { font-size: 2rem; }
}

@media screen and (max-width: 640px) {
  .schedule-picker,
  .placeholder-hero:has(+ .schedule-section) > .container { width: calc(100vw - 1.4rem); }
}

@media screen and (max-width: 500px) {
  .schedule-picker__tab { font-size: .9rem; padding: .75rem .6rem; }
  .schedule-picker__tab-minimum { font-size: .75rem; }
  .schedule-picker__tab-minimum strong { font-size: .9rem; }
  .schedule-picker__panel { padding: 1.1rem .8rem; }
  .schedule-picker__details { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .schedule-picker__week { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .schedule-picker__day { padding: 1.2rem; }
  .schedule-picker__activity-copy { font-size: 1rem; }
  .schedule-picker__time { font-size: .95rem; }
  .schedule-picker__period { padding-left: .15rem; }
}
