/* === Weekly schedule ========================================================
   Seven columns of hours. The job is to let a reader find "where am I in the
   week" fast, so today's column is marked, the live slot is unmistakable, and
   every show keeps the same colour it has everywhere else on the site.
   ========================================================================== */

.cw-schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  /* No outer border or shared background: the columns are cards now, which
     stops the grid reading as a spreadsheet. */
  background: none;
  border: 0;
}

.cw-schedule__day {
  background: var(--icrt-paper, #fff);
  border: 1px solid var(--icrt-line, #e3e5ea);
  border-radius: 0.7rem;
  padding: 0.9rem 0.75rem 1rem;
  min-width: 0;
}

/* Today is the column a reader is looking for nine times out of ten. */
.cw-schedule__day.is-today {
  border-color: var(--icrt-accent, #1160d4);
  box-shadow: 0 10px 28px rgba(17, 96, 212, 0.13);
}

.cw-schedule__day-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--icrt-line, #e3e5ea);
}

.cw-schedule__day.is-today .cw-schedule__day-name {
  border-bottom-color: var(--icrt-accent, #1160d4);
}

.cw-schedule__today {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--icrt-accent, #1160d4);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.cw-schedule__list { list-style: none; margin: 0; padding: 0; }

.cw-schedule__entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.55rem 0.55rem 0.75rem;
  border-radius: 0.45rem;
  background: var(--icrt-mist, #f4f5f7);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* The show's own colour, as a spine down the left of its slot. It is the same
   colour the show carries in the index and on a presenter's card, so one
   programme can be tracked down a column without reading every title. */
.cw-schedule__entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 3px;
  background: var(--cw-show, #1160d4);
}

.cw-schedule__time {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--icrt-muted);
  font-variant-numeric: tabular-nums;
}

.cw-schedule__title {
  text-decoration: none;
  font-weight: 700;
  color: var(--icrt-ink, #14161a);
}

.cw-schedule__title:hover { color: var(--icrt-accent, #1160d4); }

.cw-schedule__with {
  font-size: 0.7rem;
  color: var(--icrt-muted);
}

/* Live: blue, like everything else that is live on this site. It used to be a
   pink wash, which was the one warm colour left after the retone to blue. */
.cw-schedule__entry.is-on-air {
  background: rgba(17, 96, 212, 0.09);
  box-shadow: inset 0 0 0 1px rgba(17, 96, 212, 0.35);
}

.cw-schedule__live {
  align-self: flex-start;
  margin-top: 0.2rem;
  display: inline-block;
  background: var(--icrt-accent, #1160d4);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.cw-schedule__empty { color: var(--icrt-muted); font-size: 0.8rem; }

@media (max-width: 1100px) {
  .cw-schedule { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cw-schedule { grid-template-columns: minmax(0, 1fr); }
}
