#main-content.ref-schedule-main {
  width: min(1440px, 100%);
  max-width: none;
  margin-inline: auto;
  padding: clamp(132px, 12vw, 176px) clamp(20px, 4vw, 60px) clamp(84px, 9vw, 132px);
}

#main-content.ref-schedule-main > section.schedule-section {
  width: 100%;
  max-width: none;
  padding-inline: 0 !important;
}

.schedule-section {
  margin: 0;
}

.schedule-section + .schedule-section {
  margin-top: clamp(96px, 11vw, 168px);
}

.schedule-overview h1,
.schedule-section-heading h2 {
  margin: 0;
  font-family: var(--ref-display);
  font-weight: 700;
}

.schedule-overview h1 {
  max-width: 12ch;
  font-size: clamp(56px, 8vw, 122px);
  line-height: 0.9;
}

.schedule-overview-lede {
  max-width: 42ch;
  margin: 26px 0 0;
  color: rgba(244, 241, 237, 0.72);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
}

.schedule-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(52px, 7vw, 92px);
  border-top: 1px solid rgba(244, 241, 237, 0.3);
  border-bottom: 1px solid rgba(244, 241, 237, 0.3);
}

.schedule-facts article {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 24px 0;
  border-right: 1px solid rgba(244, 241, 237, 0.18);
}

.schedule-facts article + article {
  padding-left: 24px;
}

.schedule-facts article:last-child {
  border-right: 0;
}

.schedule-facts span,
.schedule-facts small {
  color: rgba(244, 241, 237, 0.56);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-facts strong {
  color: var(--ref-ink);
  font-family: var(--ref-display);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 700;
  line-height: 1.02;
}

.schedule-facts small {
  font-size: 12px;
  text-transform: none;
}

.schedule-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.schedule-section-heading h2 {
  max-width: 13ch;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.92;
}

.schedule-section-heading > p {
  max-width: 34ch;
  margin: 0 0 4px;
  color: rgba(244, 241, 237, 0.68);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
}

.schedule-agenda-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.schedule-track {
  display: grid;
  gap: 12px;
}

.schedule-track-label {
  margin: 0 0 4px;
  color: rgba(244, 241, 237, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-event {
  display: grid;
  grid-template-columns: minmax(98px, 0.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 124px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  color: #111216;
}

.schedule-event > time {
  display: flex;
  flex-direction: column;
  font-family: var(--ref-display);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700;
  line-height: 0.9;
}

.schedule-event > time small {
  margin-top: 7px;
  font-family: var(--ref-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.schedule-event-type {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 900;
}

.schedule-event h3 {
  margin: 0;
  font-family: var(--ref-display);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 0.98;
}

.schedule-event p {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.schedule-event-orange { background: var(--ref-orange); }
.schedule-event-lilac { background: var(--ref-lilac); }
.schedule-event-blue { background: #90c5ef; }
.schedule-event-yellow { background: var(--ref-yellow); }
.schedule-event-cream { background: var(--ref-ink); }

.schedule-speaker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-speaker-placeholder {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 7px 20px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(244, 241, 237, 0.26);
  border-radius: 22px;
  background: rgba(244, 241, 237, 0.04);
}

.schedule-placeholder-avatar {
  display: grid;
  width: 106px;
  height: 142px;
  grid-row: 1 / -1;
  place-items: center;
  border: 1px dashed rgba(244, 241, 237, 0.4);
  border-radius: 14px;
  color: rgba(244, 241, 237, 0.6);
  font-size: 30px;
  font-weight: 300;
}

.schedule-speaker-placeholder > span {
  color: var(--ref-orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-speaker-placeholder h3 {
  align-self: center;
  margin: 0;
  font-family: var(--ref-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 0.95;
}

.schedule-speaker-placeholder p {
  align-self: end;
  margin: 0;
  color: rgba(244, 241, 237, 0.6);
  font-size: 14px;
}

.schedule-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.schedule-sponsor-grid > div {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px dashed rgba(244, 241, 237, 0.35);
  border-radius: 20px;
  background: rgba(244, 241, 237, 0.03);
}

.schedule-sponsor-grid span {
  color: rgba(244, 241, 237, 0.48);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-sponsor-grid strong {
  color: rgba(244, 241, 237, 0.82);
  font-family: var(--ref-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 0.95;
}

.schedule-map-wrap {
  height: min(520px, 56vw);
  min-height: 360px;
  overflow: hidden;
  border-radius: 26px;
  background: #d5b9f5;
}

.schedule-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

@media (max-width: 900px) {
  .schedule-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-facts article:nth-child(2) {
    border-right: 0;
  }

  .schedule-facts article:nth-child(3),
  .schedule-facts article:nth-child(4) {
    border-top: 1px solid rgba(244, 241, 237, 0.18);
  }

  .schedule-section-heading {
    display: block;
  }

  .schedule-section-heading > p {
    margin-top: 20px;
  }

  .schedule-agenda-columns {
    grid-template-columns: 1fr;
  }

  .schedule-sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #main-content.ref-schedule-main {
    padding-top: 116px;
  }

  .schedule-facts article,
  .schedule-facts article + article {
    min-height: 134px;
    padding: 18px 14px 18px 0;
  }

  .schedule-facts article + article {
    padding-left: 14px;
  }

  .schedule-facts strong {
    font-size: 20px;
  }

  .schedule-event {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    border-radius: 18px;
  }

  .schedule-event > time {
    font-size: 30px;
  }

  .schedule-event h3 {
    font-size: 28px;
  }

  .schedule-speaker-grid,
  .schedule-sponsor-grid {
    grid-template-columns: 1fr;
  }

  .schedule-map-wrap {
    height: 420px;
    min-height: 0;
    border-radius: 20px;
  }
}

/* Calendar grid matching the event's parallel programme tracks. */
.schedule-calendar {
  --schedule-column-gap: 14px;
  overflow-x: auto;
}

.schedule-calendar-head,
.schedule-calendar-body {
  display: grid;
  grid-template-columns: 72px minmax(280px, 1fr) minmax(280px, 1fr);
  column-gap: var(--schedule-column-gap);
  min-width: 690px;
}

.schedule-calendar-head {
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 241, 237, 0.28);
}

.schedule-calendar-head strong {
  color: var(--ref-orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-calendar-body {
  --schedule-track-height: clamp(840px, 73vw, 960px);
  height: var(--schedule-track-height);
  align-items: stretch;
}

.schedule-calendar-times {
  position: relative;
  height: var(--schedule-track-height);
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  padding-right: 8px;
  color: rgba(244, 241, 237, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.schedule-calendar-times span {
  align-self: start;
  transform: translateY(-0.55em);
}

.schedule-calendar-times span:last-child {
  position: absolute;
  bottom: -0.55em;
  left: 0;
}

.schedule-calendar-track {
  position: relative;
  display: grid;
  height: var(--schedule-track-height);
  grid-template-rows: repeat(20, minmax(0, 1fr));
  row-gap: 4px;
  overflow: hidden;
  border-left: 1px solid rgba(244, 241, 237, 0.18);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(10% - 1px),
    rgba(244, 241, 237, 0.13) calc(10% - 1px),
    rgba(244, 241, 237, 0.13) 10%
  );
}

.schedule-calendar-event {
  z-index: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  margin: 0 7px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 17px;
  color: #111216;
}

.schedule-calendar-event time {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
}

.schedule-calendar-event time small {
  font-size: inherit;
}

.schedule-calendar-event strong {
  font-family: var(--ref-display);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 0.98;
}

.schedule-calendar-opening { grid-row: 1 / span 1; background: #272727; color: var(--ref-ink); }
.schedule-calendar-talks { grid-row: 2 / span 2; background: var(--ref-orange); }
.schedule-calendar-ctf { grid-row: 4 / span 16; background: #5349ee; color: #fff; }
.schedule-calendar-awards { grid-row: 20 / span 1; background: var(--ref-ink); }

.schedule-calendar-opening,
.schedule-calendar-awards {
  justify-content: center;
  gap: 2px;
  padding: 5px 12px;
}

.schedule-calendar-opening time,
.schedule-calendar-awards time {
  font-size: 10px;
}

.schedule-calendar-opening strong,
.schedule-calendar-awards strong {
  font-size: 15px;
}

.schedule-calendar-breaks .schedule-calendar-event {
  border-color: rgba(244, 241, 237, 0.3);
  background: rgba(0, 0, 0, 0.18);
  color: var(--ref-ink);
}

.schedule-calendar-coffee { grid-row: 4 / span 2; }
.schedule-calendar-recruitment-one { grid-row: 6 / span 3; }
.schedule-calendar-lunch { grid-row: 9 / span 3; }
.schedule-calendar-recruitment-two { grid-row: 12 / span 7; }

.schedule-calendar-breaks .schedule-calendar-event strong {
  font-family: var(--ref-body);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 800;
}

.schedule-speaker-placeholder {
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: end;
  min-height: 160px;
}

.schedule-placeholder-avatar {
  width: 96px;
  height: 122px;
  grid-column: 1;
  grid-row: 1 / -1;
}

.schedule-speaker-placeholder > span {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.schedule-speaker-placeholder > strong {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: rgba(244, 241, 237, 0.82);
  font-family: var(--ref-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 0.98;
}

.schedule-sponsor-grid > div {
  justify-content: flex-end;
  min-height: 112px;
}

.schedule-sponsor-grid span {
  font-family: var(--ref-display);
  font-size: clamp(20px, 2vw, 30px);
}

@media (max-width: 640px) {
  .schedule-calendar-body {
    --schedule-track-height: 820px;
  }

  .schedule-calendar-head,
  .schedule-calendar-body {
    grid-template-columns: 58px minmax(260px, 1fr) minmax(260px, 1fr);
  }

  .schedule-calendar-event {
    margin-inline: 5px;
    padding: 9px 11px;
  }

  .schedule-calendar-event strong {
    font-size: 18px;
  }
}
