/* Events L3 (templates/single-event.html). Enqueued only on single Event posts, so nothing here
   needs a page-scoping selector beyond the pattern's own class. */

/* Figma sets the date/location eyebrow in caps. Cased here rather than in the stored meta so
   bpd_event_location stays readable wherever else it prints — the past-events cards use sentence
   case for the same string. */
.bpd-event-header__meta {
	text-transform: uppercase;
}

/* An event whose hero already carries its branding hides the duplicate title — see
   bpd_event_hide_title in functions.php. */
.bpd-event-header--no-title .wp-block-post-title {
	display: none;
}

/* Core's grid layout uses auto-fill, so a session with two speakers still reserves the third
   299px track and the pair sits against an empty column. auto-fit collapses the empty track and
   the cards share the full rail; a three-speaker session is unaffected. Matched with
   .wp-block-group so it outweighs core's own generated layout class. */
.wp-block-group.bpd-event-speakers {
	grid-template-columns: repeat( auto-fit, minmax( min( 299px, 100% ), 1fr ) );
}

/* Day panels. Hidden only once event-agenda.js has marked the switcher ready, so with JS off every
   day stays readable instead of collapsing to one. The script also sets [hidden]; this rule keeps
   the panel out of view on first paint, before it runs. */
[data-bpd-agenda-ready] .bpd-event-agenda__day:not(.is-active) {
	display: none;
}

.bpd-event-agenda .bpd-pill-row .wp-block-button__link {
	cursor: pointer;
}
