/* Sits directly under the programme section (both cream), so it opens without a top pad. */
.schedule {
  --time-w: clamp(118px, 11vw, 150px);
  --row-line: rgba(168, 132, 58, 0.22);
  padding-block: 0 var(--section);
}

.schedule__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: clamp(24px, 2.4vw, 34px);
  padding-top: clamp(40px, 4vw, 56px);
  border-top: 1px solid var(--line-light);
}

.schedule__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 1.6vw + 20px, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.schedule__note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.schedule__card {
  padding: clamp(20px, 2.4vw, 36px) clamp(16px, 3vw, 44px) clamp(24px, 2.8vw, 40px);
  background: var(--cream-light);
  border-radius: var(--radius);
  box-shadow:
    0 30px 60px -36px rgba(7, 11, 18, 0.28),
    0 2px 8px -2px rgba(7, 11, 18, 0.06);
}

.schedule__tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
}

.schedule__tab {
  min-height: 46px;
  padding: 0 clamp(20px, 2.2vw, 32px);
  border-radius: 999px;
  font-size: clamp(14px, 0.25vw + 13px, 17px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.schedule__tab:hover {
  background: rgba(10, 20, 39, 0.06);
}

.schedule__tab[aria-selected="true"] {
  margin: -1.5px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
}

.schedule__tab:focus-visible {
  border-radius: 999px;
  outline-offset: 4px;
}

.schedule__panel {
  margin-top: clamp(20px, 2.2vw, 30px);
}

.schedule__panel[hidden] {
  display: none;
}

.schedule__panel:focus-visible {
  border-radius: var(--radius-sm);
  outline-offset: 6px;
}

.schedule__panel.is-entering {
  animation: schedule-in 0.45s var(--ease) both;
}

.schedule__theme {
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  font-family: var(--italic);
  font-size: clamp(17px, 0.4vw + 15px, 21px);
  font-style: italic;
  line-height: 1.4;
  color: var(--slate);
  text-wrap: pretty;
}

.schedule__theme-label {
  margin-right: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: var(--gold-text);
}

.schedule__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--row-line);
}

.schedule__row {
  display: grid;
  grid-template-columns: var(--time-w) minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  padding-block: clamp(12px, 1.2vw, 16px);
  border-bottom: 1px solid var(--row-line);
}

.schedule__row--split {
  grid-template-columns: var(--time-w) minmax(0, 1fr) minmax(0, 1fr);
}

.schedule__time {
  padding-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule__slot {
  min-width: 0;
}

.schedule__slot p {
  margin: 0;
}

.schedule__hall {
  display: inline-block;
  margin-bottom: 6px !important;
  padding: 2px 9px;
  border: 1px solid rgba(10, 20, 39, 0.2);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--slate);
}

.schedule__kind {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold-text);
}

.schedule__what {
  font-size: clamp(15px, 0.25vw + 14px, 17px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}

.schedule__kind + .schedule__what {
  margin-top: 2px !important;
}

/* Inaugural, opening and closing sessions: set in the serif, one step up. */
.schedule__row--key .schedule__what {
  font-family: var(--serif);
  font-size: clamp(18px, 0.5vw + 15px, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.schedule__where {
  margin-left: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--slate);
}

/* Registration, meals and tea read as quiet bands. */
.schedule__row--break {
  background: rgba(168, 132, 58, 0.07);
  padding-block: 10px;
}

.schedule__row--break .schedule__time {
  padding-left: 12px;
  font-weight: 500;
  color: var(--slate);
}

.schedule__row--break .schedule__what {
  font-size: 15px;
  color: var(--slate);
}

.schedule__row--short .schedule__what {
  font-size: 15px;
  color: var(--slate);
}

/* Side-line events */
.sideline {
  margin-top: clamp(40px, 4.4vw, 64px);
}

.sideline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: clamp(18px, 2vw, 26px);
}

.sideline__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 1vw + 19px, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.sideline__note {
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--cream);
}

.sideline__days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tile-gap, 16px) clamp(16px, 2vw, 28px);
}

.sideline__day {
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px) clamp(8px, 1vw, 14px);
  background: #fff;
  border: 1px solid rgba(52, 65, 88, 0.13);
  border-radius: 12px;
}

.sideline__day-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-text);
}

.sideline__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sideline__item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 14px;
}

.sideline__item + .sideline__item {
  border-top: 1px solid var(--row-line);
}

.sideline__time {
  grid-row: span 2;
  padding-top: 1px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sideline__name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}

.sideline__by {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
}

.sideline__tag {
  justify-self: start;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--slate);
}

.sideline__tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
  vertical-align: 1px;
}

@keyframes schedule-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 899px) {
  .sideline__days {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 759px) {
  .schedule__card {
    margin-inline: calc(var(--gutter) * -0.5);
  }

  .schedule__tabs {
    display: grid;
    width: 100%;
    border-width: 1px;
    border-color: rgba(10, 20, 39, 0.28);
    border-radius: 10px;
  }

  .schedule__tab {
    padding: 0 8px;
    border-radius: 9px;
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .schedule__tab[aria-selected="true"] {
    margin: -1px;
  }

  .schedule__tab:focus-visible {
    border-radius: 9px;
  }

  /* Time sits above the slot; parallel halls stack. */
  .schedule__row,
  .schedule__row--split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .schedule__row--split .schedule__slot + .schedule__slot {
    padding-top: 10px;
    border-top: 1px dashed var(--row-line);
  }

  .schedule__row--break {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
  }

  .schedule__time {
    font-size: 14px;
  }

  .schedule__row--break .schedule__time {
    padding-top: 0;
  }

  .schedule__row--short {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 14px;
  }

  .schedule__row--short .schedule__time {
    grid-column: 1 / -1;
  }

  .schedule__row--short .schedule__slot + .schedule__slot {
    padding-top: 0;
    border-top: 0;
  }

  .sideline__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .sideline__time {
    grid-row: auto;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule__panel.is-entering {
    animation: none;
  }
}
