/* schedule.css — Figma "Frame 1621508715" (1920 × 3653) */

.scheduleSection {
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--white) 100%);
}

.scheduleSection__stage {
  height: calc(3653 * var(--s));
  padding-top: calc(113 * var(--s));
}

.scheduleSection__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10 * var(--s));
  width: calc(1401 * var(--s));
  margin-left: calc(261 * var(--s));
}

.scheduleSection__title {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--s));
  white-space: nowrap;
}

.scheduleSection__title img {
  width: calc(12 * var(--s));
  height: calc(12 * var(--s));
  flex-shrink: 0;
}

.scheduleSection__header .sectionLead {
  width: 100%;
}

.scheduleTimeline {
  position: absolute;
  left: 0;
  top: calc(306 * var(--s));
  width: 100%;
  height: calc(3347 * var(--s));
}

.scheduleTimeline__line {
  position: absolute;
  left: calc(950 * var(--s));
  top: calc(16 * var(--s));
  width: calc(20 * var(--s));
  height: calc(2978 * var(--s));
  max-width: none;
}

.scheduleCard {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: calc(23 * var(--s));
  width: calc(629 * var(--s));
  padding: calc(36.1 * var(--s)) calc(28.1 * var(--s));
  border: var(--line) solid rgba(224, 72, 23, 0.12);
  border-radius: calc(20 * var(--s));
  background: var(--white);
  box-shadow: 0 calc(17 * var(--s)) calc(38 * var(--s)) rgba(255, 96, 0, 0.05),
    0 calc(9.905 * var(--s)) calc(18.624 * var(--s)) rgba(255, 96, 0, 0.02);
  font-size: calc(28 * var(--s));
}

.scheduleCard--left {
  left: calc(261 * var(--s));
  text-align: right;
}

.scheduleCard--right {
  left: calc(1038 * var(--s));
}

.scheduleCard:nth-of-type(1) { top: calc(52 * var(--s)); }
.scheduleCard:nth-of-type(2) { top: calc(378 * var(--s)); left: calc(1030 * var(--s)); }
.scheduleCard:nth-of-type(3) { top: calc(754 * var(--s)); }
.scheduleCard:nth-of-type(4) { top: calc(1046 * var(--s)); }
.scheduleCard:nth-of-type(5) { top: calc(1388 * var(--s)); }
.scheduleCard:nth-of-type(6) { top: calc(1748 * var(--s)); }
.scheduleCard:nth-of-type(7) { top: calc(2090 * var(--s)); }
.scheduleCard:nth-of-type(8) { top: calc(2382 * var(--s)); }
.scheduleCard:nth-of-type(9) { top: calc(2682 * var(--s)); }
.scheduleCard:nth-of-type(10) { top: calc(2974 * var(--s)); }

.scheduleCard__head {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--s));
  letter-spacing: calc(-1.12 * var(--s));
  line-height: normal;
  text-transform: uppercase;
}

.scheduleCard__head--narrow {
  align-self: flex-end;
  width: calc(353 * var(--s));
  white-space: nowrap;
}

.scheduleCard__time {
  font-weight: 900;
  color: var(--red-bright);
}

.scheduleCard__title {
  font-size: inherit;
  font-weight: 600;
}

.scheduleCard__title--tall {
  line-height: 1.5;
}

.scheduleCard__text {
  line-height: normal;
  color: var(--ink-soft);
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1023px) {
  .scheduleSection__stage {
    height: auto;
    padding-block: 24px;
  }

  .scheduleSection__header {
    width: 100%;
    margin-left: 0;
    gap: 12px;
  }

  .scheduleSection__title {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    white-space: normal;
  }

  .scheduleTimeline {
    position: relative;
    top: auto;
    height: auto;
    margin-top: 36px;
    padding-left: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .scheduleTimeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: var(--timeline-start, 32px);
    width: 4px;
    height: var(--timeline-span, calc(100% - 64px));
    border-radius: 2px;
    background: linear-gradient(180deg, var(--red) 0%, #ff8072 100%);
  }

  .scheduleTimeline__line {
    display: none;
  }

  .scheduleCard,
  .scheduleCard--left,
  .scheduleCard--right,
  .scheduleCard:nth-of-type(n) {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 20px 22px;
    gap: 12px;
    border-radius: 16px;
    text-align: left;
    font-size: clamp(16px, 2.4vw, 22px);
  }

  .scheduleCard::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: -32px;
    top: 24px;
    width: 16px;
    height: 16px;
    border: 3px solid #f3b0ae;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 4px #ffe8e4;
  }

  .scheduleCard.is-reached::before {
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 0 0 4px #ffe1dd;
  }

  .scheduleCard__head,
  .scheduleCard__head--narrow {
    align-self: stretch;
    width: auto;
    white-space: normal;
    gap: 6px;
    letter-spacing: -0.02em;
  }

  .scheduleCard__title--tall {
    line-height: normal;
  }
}
