/* ============================================================
   CROTONA — Event timetable
   Vertical running-order timeline. Clean rows with type modifiers.
   Highlight row = full-width bolt-yellow slab breakout.
   Mobile-first.
   ============================================================ */

.cr-ev-timetable {
  background: var(--crotona-cream);
  color: var(--crotona-ink);
  padding: 80px 24px;
}

.cr-ev-timetable__intro {
  font-size: 19px;
  line-height: 1.55;
  max-width: 720px;
  opacity: 0.9;
  margin: 0 0 40px;
}

/* Container: max-width 1080px, centered */
.cr-ev-timetable__rows {
  max-width: 1080px;
}

/* ------------------------------------------------------------------
   Base row: 2-col grid (time + label)
   ------------------------------------------------------------------ */

.cr-ev-timetable__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 8px;
  border-top: 1.5px solid var(--crotona-ink);
}

.cr-ev-timetable__row:last-child {
  border-bottom: 1.5px solid var(--crotona-ink);
}

/* Time column */
.cr-ev-timetable__time {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--crotona-ink);
  flex-shrink: 0;
}

/* Label column */
.cr-ev-timetable__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-ev-timetable__type-badge {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.cr-ev-timetable__label-text {
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: 1.15;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Row type modifiers
   ------------------------------------------------------------------ */

/* Set: full opacity, bold label */
.cr-ev-timetable__row--set .cr-ev-timetable__label-text {
  font-size: 28px;
  font-weight: var(--fw-bold);
}

/* Moment: 62% opacity, italic label */
.cr-ev-timetable__row--moment {
  opacity: 0.62;
}

.cr-ev-timetable__row--moment .cr-ev-timetable__label-text {
  font-style: italic;
}

/* Door: slightly muted */
.cr-ev-timetable__row--door .cr-ev-timetable__label-text {
  opacity: 0.75;
}

/* ------------------------------------------------------------------
   Highlight row: full bolt slab breakout
   ------------------------------------------------------------------ */

.cr-ev-timetable__row--highlight {
  background: var(--crotona-bolt);
  border: 3px solid var(--crotona-ink);
  border-top: 3px solid var(--crotona-ink);
  box-shadow: 8px 9px 0 var(--crotona-ink);
  padding: 24px 24px;
  margin: 8px -24px; /* negative margin to break out on mobile */
  transform: rotate(-0.6deg);
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  opacity: 1;
}

.cr-ev-timetable__row--highlight .cr-ev-timetable__time {
  font-size: 48px;
}

.cr-ev-timetable__row--highlight .cr-ev-timetable__label-text {
  font-size: 36px;
  font-weight: var(--fw-bold);
  font-style: normal;
  opacity: 1;
}

.cr-ev-timetable__row--highlight .cr-ev-timetable__eyebrow {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* Sticker badge on highlight */
.cr-ev-timetable__highlight-badge {
  background: var(--crotona-ink);
  color: var(--crotona-bolt);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  box-shadow: 3px 3px 0 var(--crotona-black, #000);
  transform: rotate(8deg);
  display: inline-block;
  align-self: flex-start;
}

/* ------------------------------------------------------------------
   Responsive: mobile only (max-width: 767px)
   ------------------------------------------------------------------ */

@media (max-width: 767px) {
  /* Stack time above label on mobile (single column) */
  .cr-ev-timetable__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 8px;
  }

  /* Smaller time font on mobile */
  .cr-ev-timetable__time {
    font-size: 24px;
    line-height: 1;
  }

  /* Smaller label font on mobile */
  .cr-ev-timetable__label-text {
    font-size: 18px;
  }

  .cr-ev-timetable__row--set .cr-ev-timetable__label-text {
    font-size: 20px;
  }

  /* Highlight row: no negative margin breakout on mobile (prevents overflow) */
  .cr-ev-timetable__row--highlight {
    margin: 8px 0;
    padding: 16px 16px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cr-ev-timetable__row--highlight .cr-ev-timetable__time {
    font-size: 32px;
  }

  .cr-ev-timetable__row--highlight .cr-ev-timetable__label-text {
    font-size: 24px;
  }

  /* Highlight badge: float to end of label area on mobile */
  .cr-ev-timetable__highlight-badge {
    align-self: flex-start;
    margin-top: 8px;
  }
}

/* ------------------------------------------------------------------
   Responsive: tablet+
   ------------------------------------------------------------------ */

@media (min-width: 768px) {
  .cr-ev-timetable {
    padding: 120px 56px;
  }

  .cr-ev-timetable__row {
    grid-template-columns: 120px 1fr;
    padding: 24px 8px;
  }

  .cr-ev-timetable__time {
    font-size: 56px;
  }

  .cr-ev-timetable__label-text {
    font-size: 32px;
  }

  .cr-ev-timetable__row--set .cr-ev-timetable__label-text {
    font-size: 32px;
  }

  .cr-ev-timetable__row--highlight {
    margin: 8px 0;
    padding: 32px 36px;
    grid-template-columns: 200px 1fr auto;
  }

  .cr-ev-timetable__row--highlight .cr-ev-timetable__time {
    font-size: 80px;
  }

  .cr-ev-timetable__row--highlight .cr-ev-timetable__label-text {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .cr-ev-timetable__row {
    grid-template-columns: 200px 1fr;
  }
}
