/*
 * Event page polish, 22 Nov 2026 (Chris, on the Immersion Weekend page).
 *
 * 1. The date line read as fine print. Set it in the display serif and rust, at the
 *    size the homepage Immersion block uses, so the dates are the first thing seen
 *    under the title.
 * 2. Everything in the page column lines up on both edges: the hero picture, the
 *    rules, the teacher portraits and the booking box. The portraits were fixed
 *    132px cards that stopped short of the right edge, and the booking box was
 *    capped at 44rem, narrower than the column.
 *
 * Scoped to main.rhx-event (single event pages) so class pages, which also use
 * the chooser, are untouched. The prefix also outranks 12-alignment.css and
 * 30-events.css.
 */

main.rhx-event .rhx-event__facts .rhx-event__when {
  color: var(--rust);
  font-family: var(--d);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-block-end: 4px;
}

/* Equal columns that always fill the column width: five teachers at 772px give five
   ~134px portraits; one or two teachers keep the same card size (auto-fill keeps the
   empty tracks), so a single portrait never balloons. */
main.rhx-event .rhx-event__teacher-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 22px 26px;
  align-items: start;
}

main.rhx-event .rhx-event__teacher-list li {
  width: auto;
  min-width: 0;
}

main.rhx-event .rhc-chooser {
  max-width: none;
}

@media (max-width: 640px) {
  main.rhx-event .rhx-event__teacher-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px 14px;
  }
}
