/*
 * Cycling calendar design — mirrors the sports page card system
 * (`sports-calendar/page.css`) but scoped to `.calendar-page--cycling` and
 * using the cycling row classes (`calendar-row-date`, `calendar-row-title`,
 * `calendar-row-channels`, `calendar-row-notes`).
 *
 * Cycling has no side banner and no mobile inline banner, so the layout is
 * always a single 1200px content column.
 *
 * Type steps and column breakpoints match sports so both pages read as the
 * same design system.
 */

.calendar-page--cycling .site-main {
  max-width: 1200px;
  padding: 20px 10px 40px;
}

.calendar-page--cycling .banner-section {
  overflow: hidden;
}

.calendar-page--cycling .calendar-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@media (max-width: 768px) {
  .calendar-page--cycling .calendar-banner {
    object-position: 70% center;
  }
}

.calendar-page--cycling .calendar-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7.5px;
  margin-bottom: 20px;
}

.calendar-page--cycling .calendar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.calendar-page--cycling .calendar-intro,
.calendar-page--cycling .calendar-subtitle {
  margin: 0;
  padding-bottom: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.calendar-page--cycling .calendar-intro a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.calendar-page--cycling .calendar-intro a:hover {
  opacity: 0.8;
}

.calendar-page--cycling .calendar-group {
  margin-bottom: 20px;
}

.calendar-page--cycling .calendar-group-header {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
}

.calendar-page--cycling .calendar-day-events {
  margin: 0;
  padding: 15px 20px 5px;
  list-style: none;
  background: #342c44;
  border-radius: 10px;
  overflow: hidden;
}

/*
 * Columns mirror the sports rows: fixed date column, flexible title,
 * channel column that sizes to its text up to 40% of the row.
 */
.calendar-page--cycling .calendar-event-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) fit-content(40%);
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.calendar-page--cycling .calendar-row-date,
.calendar-page--cycling .calendar-row-title,
.calendar-page--cycling .calendar-row-channels {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  color: #fff;
  font-weight: 400;
  font-variant-numeric: normal;
}

.calendar-page--cycling .calendar-row-channels {
  text-align: right;
}

.calendar-page--cycling .calendar-row-notes {
  display: block;
  margin-top: 2px;
  color: rgb(255 255 255 / 60%);
  font-size: 0.875em;
}

.calendar-page--cycling .calendar-unavailable {
  color: rgb(255 255 255 / 40%);
  font-style: italic;
}

/* PXDS type step up (matches sports). */
@media (min-width: 761px) {
  .calendar-page--cycling .calendar-title {
    font-size: 24px;
  }
}

@media (min-width: 1201px) {
  .calendar-page--cycling .calendar-title {
    font-size: 28px;
  }

  .calendar-page--cycling .calendar-group-header {
    font-size: 20px;
  }

  .calendar-page--cycling .calendar-intro,
  .calendar-page--cycling .calendar-subtitle,
  .calendar-page--cycling .calendar-event-row {
    font-size: 16px;
  }
}

/* Tablet rows. */
@media (max-width: 768px) {
  .calendar-page--cycling .calendar-event-row {
    grid-template-columns: 85px minmax(0, 1fr) fit-content(40%);
    gap: 7.5px;
  }
}

/* Mobile: tighter rows with dividers, 12px regular text. */
@media (max-width: 480px) {
  .calendar-page--cycling .calendar-day-events {
    padding-right: 15px;
    padding-left: 15px;
  }

  .calendar-page--cycling .calendar-event-row {
    grid-template-columns: 65px minmax(0, 1fr) fit-content(40%);
    gap: 5px;
    margin-bottom: 0;
    padding: 5px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
  }

  .calendar-page--cycling .calendar-event-row:last-child {
    border-bottom: none;
  }

  .calendar-page--cycling .calendar-row-date,
  .calendar-page--cycling .calendar-row-date *,
  .calendar-page--cycling .calendar-row-title,
  .calendar-page--cycling .calendar-row-title *,
  .calendar-page--cycling .calendar-row-channels,
  .calendar-page--cycling .calendar-row-channels * {
    font-size: 12px;
    font-weight: 400;
  }
}
