/* Schedule — Zola-inspired rhythm, multi-tone palette (page-scoped) */

.schedule-page {
  --schedule-date: #c03200;
  --schedule-title: #5c4030;
  --schedule-body: #6b4a38;
  --schedule-meta: #8f5a28;
  --schedule-cta: #c03200;
  --schedule-cta-text: #fdf8f6;
  --schedule-rule: color-mix(in srgb, var(--border) 70%, #d4a882);
  --schedule-icon-size: 3.5rem;
  /* Icon tint matches body text (#6b4a38). */
  --schedule-icon-tint: brightness(0) saturate(100%) invert(28%) sepia(32%)
    saturate(700%) hue-rotate(346deg) brightness(0.72) contrast(1.15);
}

.schedule-page main {
  max-width: 36rem;
  padding-top: 1.25rem;
  padding-bottom: 3.5rem;
}

.schedule-page .page-title {
  margin-bottom: 0.85rem;
}

.schedule-intro {
  margin: 0 0 2.75rem;
  text-align: center;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--schedule-meta);
}

.schedule-intro__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--schedule-date);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--schedule-date) 45%, transparent);
  cursor: pointer;
}

.schedule-intro__link:hover {
  color: var(--schedule-title);
}

.schedule-day {
  margin-bottom: 3.75rem;
  text-align: center;
  padding-bottom: 2.75rem;
  position: relative;
}

.schedule-day:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(14rem, 72%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--schedule-date) 50%, var(--border)),
    transparent
  );
  opacity: 0.7;
}

.schedule-day:last-child {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

/* Emphasis: bigger than event titles, smaller than page "Schedule". */
.schedule-day__date {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 2.1rem);
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--schedule-title);
  margin: 0 0 1.85rem;
  padding: 0;
  border: none;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
}

.schedule-event + .schedule-event {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--schedule-rule);
}

.schedule-event__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.15rem;
}

.schedule-event__icon-slot {
  box-sizing: border-box;
  flex: 0 0 var(--schedule-icon-size);
  width: var(--schedule-icon-size);
  height: var(--schedule-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-event__icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: var(--schedule-icon-tint) drop-shadow(0 1px 1px rgb(0 0 0 / 0.14));
}

/* Lighter line-art needs extra weight/size to stand next to denser ganesh. */
.schedule-event__icon[src*="momo"],
.schedule-event__icon[src*="yomari"] {
  transform: scale(1.28);
  transform-origin: center;
  filter: brightness(0) saturate(100%) invert(24%) sepia(36%) saturate(800%)
    hue-rotate(346deg) brightness(0.58) contrast(1.3)
    drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.28));
}

.schedule-event__icon[src*="mehendi"] {
  transform: scale(1.62);
  transform-origin: center;
  filter: brightness(0) saturate(100%) invert(22%) sepia(38%) saturate(850%)
    hue-rotate(346deg) brightness(0.5) contrast(1.35)
    drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.3));
}

.schedule-event__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.6vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--schedule-date);
  margin: 0 0 0.55rem;
  text-align: center;
  line-height: 1.35;
}

.schedule-event__time {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--schedule-meta);
  margin: 0 0 0.4rem;
  text-align: center;
}

.schedule-event__venue {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--schedule-body);
  margin: 0 0 0.5rem;
  text-align: center;
  line-height: 1.55;
  max-width: 28rem;
}

.schedule-event__venue + .schedule-event__body {
  margin-top: 0.75rem;
}

.schedule-event__dress {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--schedule-meta);
  margin: 0 0 1.15rem;
  text-align: center;
}

.schedule-event__body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: normal;
  color: var(--schedule-body);
  margin: 0 0 1.5rem;
  text-align: justify;
  max-width: 32rem;
}

.schedule-event__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
}

.schedule-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 9.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--schedule-cta);
  color: var(--schedule-cta-text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.schedule-btn:hover {
  opacity: 0.92;
}

.schedule-btn:focus {
  outline: none;
}

.schedule-btn:focus-visible {
  outline: 2px solid var(--schedule-title);
  outline-offset: 3px;
}

.schedule-error {
  text-align: center;
  font-style: italic;
  color: var(--schedule-meta);
  opacity: 0.9;
}

@media (min-width: 640px) {
  .schedule-page {
    --schedule-icon-size: 3.85rem;
  }

  .schedule-event__actions {
    max-width: 24rem;
  }
}
