/**
 * @file
 * Styles for the schedule and timeline pages.
 */

.hidden {
    display: none !important;
}

/* NAV BAR TABS ===================================================================== */

.rp-info-programme-nav-tabs-en,
.rp-info-programme-nav-tabs-de {
	margin-bottom: 0;
}
@media (min-width: 62.5rem) {
	.rp-info-programme-nav-tabs-en, 
	.rp-info-programme-nav-tabs-de {
		grid-column: 2 / 14 !important;
	}
}
@media (min-width: 43.75rem) {
	.rp-info-programme-nav-tabs-en, 
	.rp-info-programme-nav-tabs-de {
		grid-column: 1 / 15;
	}
}

.programme-nav-tabs-box {
	width: 100%;
	display: flex;
	user-select: none;
	padding: 0rem .5rem;
	text-transform: uppercase;
	margin-bottom: 0.2rem;
	/* flex-direction: column; */
	flex-direction: row;
	border: none;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.programme-nav-tab {
	flex-grow: 1;
	max-width: 25rem;
	text-align: center;
	text-decoration: none;
	padding: 0.6rem 0;
	border-style: solid;
	border-color: black;
	font-weight: bold;
	font-family: var(--font-heading);
	font-size: var(--font-size-menu-item);
	line-height: var(--line-height-menu-item);
	outline: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	background-color: white;
	border-width: 1px;
	border-radius: var(--button-radius);
}

/* .programme-nav-tabs-box .programme-nav-tab:first-of-type {
	border-left-width: 3px;
} */

/* .programme-nav-tabs-box .programme-nav-tab:last-of-type {
	border-right-width: 3px; 
} */
 
@media (min-width: 801px) {
	.programme-nav-tabs-box  {
		margin-bottom: 1rem;
	}
}

/* @media (max-width: 800px) {
	.programme-nav-tabs-box .programme-nav-tab:first-child {
		border-top-width: 3px;
	}

	.programme-nav-tabs-box .programme-nav-tab:last-child {
		border-bottom-width: 3px;
	}
} */


.programme-nav-tab:active, 
.programme-nav-tab:hover, 
.programme-nav-tab.active {
	background-color: black;
	color: white !important;
	/* margin-bottom: 0;
	margin-top: 0;
	padding-bottom: 0.5rem;
	padding-top: 0.5rem; */
}


/* Navbar button icons */
#nav-tab-vertical::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/sessions-black.svg');
}
#nav-tab-horizontal::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/timetable-black.svg');
}
#nav-tab-speaker::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/speakers-black.svg');
}
/* Preload white icons above: (hidden) */
.nav-tab-horizontal::after, .nav-tab-vertical::after {
	position: absolute; width: 0; height: 0; overflow: hidden; z-index:-1;
	content: url('/themes/custom/rp/images/sessions-white.svg') 
	url('/themes/custom/rp/images/timetable-white.svg') 
	url('/themes/custom/rp/images/schedule_icons/speakers-white.svg');
}

#nav-tab-vertical:hover::before,
#nav-tab-vertical.active::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/sessions-white.svg');
}
#nav-tab-horizontal:hover::before,
#nav-tab-horizontal.active::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/timetable-white.svg');
}
#nav-tab-speaker:hover::before,
#nav-tab-speaker.active::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/speakers-white.svg');
}



/* UI: FILTER BUTTONS etc ========================================================================= */


.filter-button-box { /* #rp-vertical .button-box */
	width: 100%;
	display: inline-flex;
	justify-content: center;
	gap: 0.5rem;
}

/* standard button */
.rp-button-style { 
	border: 1px solid #000;
	border-radius: var(--button-radius);
	max-width: fit-content;
	font-size: var(--font-size-menu-item);
	font-weight: bold;

	box-shadow: 0 0 0;
	display: inline-block;
	/* line-height: 1; */
	color: black;
	position: relative;
	font-family: var(--font-heading);
	box-shadow: none !important;
	user-select: none;
	background-color: white;

}

.rp-button-style > .button-with-icon, 
.rp-button-style > input {
	padding: 0.5rem 1rem;
}

.button-with-icon {
	display: inline-block;
}
:root {
	--schedule-icons-size: 25px;
}
.button-with-icon::before {
	background-size: var(--schedule-icons-size);
	background-repeat: no-repeat;
	display: inline-block;
	vertical-align: middle;
	width: var(--schedule-icons-size);
	height: var(--schedule-icons-size);
	margin-right: 0.2rem;
	content: "";
}
.button-with-icon > span {
	vertical-align: -10%;
}

/* FILTER */
#mmenu-light-open.button:hover {
	background: #000;
	color: #FFF !important;
	box-shadow: none !important;
	cursor: pointer;
}

.button-link { /* only for #reset-filters-text */
	padding: 0.75rem;
	display: inline-block;
	line-height: 1;
	font-size: var(--font-size-menu-item);
	font-weight: 600;
	font-family: var(--font-heading);
	text-decoration: none;
    align-content: center;
}
.button-link:hover {
	text-decoration: underline;
	color: #000 !important;
}
.button-link.hidden {
	display: none;
}

/* Search Box */

/* wrapper */
#search-box {
	padding: 0;
	display: flex;
	align-items: center;
	max-width: fit-content;
}

/* search bar */
#search-box input, 
.view--speakers .views-exposed-form .form-item input {
	border-radius: var(--button-radius) 0 0 var(--button-radius);
	padding-left: 1rem;
	font-size: var(--font-size-menu-item);

	height: 100%;
	padding-right: 0;
	vertical-align: top;
	min-height: auto;
	border: none;
	outline: none;
	width: unset;
}

/* search button */
#search-button, 
.view--speakers .form-actions input {
	margin: 0;
	height: 100%;
	padding: 8px;
	padding-left: 10px;
	background-color: unset;
	border: none;
	border-left: 1px solid black;
	border-radius:  0 var(--button-radius) var(--button-radius) 0;
}
#search-button:hover,
.view--speakers .views-exposed-form .form-actions input:hover {
	background-color: #000;
	cursor: pointer;
}

/* clear button */
#clear-search {
	display: none;
	background: #000;
	border: none;
	padding: 0;
	margin: 0 5px;
	height: 24px;
	width: 24px;
	cursor: pointer;
	font-size: 1.5rem;
	font-weight: bold;
	color: white;
	line-height: 1;
	position: relative;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid white; 
}

#clear-search::before {
	content: '×';
	position: absolute;
	top: -3px;
	font-weight: normal;
}

#clear-search:hover {
	color: black;
	background: white;
	border: 1px solid black; 
}

#search-box.has-search-query #clear-search {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Button icons */
#filter-text, 
#favourites-text {
	border-radius: var(--button-radius);
}
#filter-text, 
#favourites-text, 
#export-favourites-text {
	text-decoration: none;
}
#mmenu-light-open:hover,
#favourites-text:hover,
#export-favourites-text:hover,
#filter-text.active, 
#favourites-text.active,
#export-favourites-text.active  {
	background: black;
	color: white;
	cursor: pointer;
}

/* FAVOURITES button with Export button */
#export-favourites-text {
	border-radius: 0 .5rem .5rem 0;
	border-radius: 0 var(--button-radius) var(--button-radius) 0;

}
#export-favourites-text.active {
	border-left: 0;
	margin-left: 3px;
}
#favourites-text.active {
	border-right: 0;
	border-radius: var(--button-radius) 0 0 var(--button-radius);
}

#search-button::before,
.view--speakers .views-exposed-form .form-actions input {
	background-image: url('/themes/custom/rp/images/schedule_icons/search-black.svg');
	background-size: 1.5rem;
	background-repeat: no-repeat;
	background-position: center;
}
#filter-text::before {
background-image: url('/themes/custom/rp/images/schedule_icons/filter-black.svg');
}
#favourites-text::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/heart-red.svg');
}
#export-favourites-text::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/export-black.svg');
}
/* hover */
#search-button:hover::before,
.view--speakers .views-exposed-form .form-actions input:hover {
	background-image: url('/themes/custom/rp/images/schedule_icons/search-white.svg');
}
#mmenu-light-open:hover > #filter-text::before, 
#filter-text.active::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/filter-white.svg');
}
#export-favourites-text:hover::before,
#export-favourites-text.active::before {
	background-image: url('/themes/custom/rp/images/schedule_icons/export-white.svg');
}

/* Export QR code: wrapper, qr-img holder, qr-img, info text, info-img icon */
#export-wrapper {
	display: flex;
	flex: 1 0 100%;
	justify-content: center;
	margin: 1.5rem 0 1rem 0;
	position: relative;
}
@media (max-width: 650px) {
	#export-wrapper { 
		flex-direction: column;
		gap: 1rem;
	}
}

#export-qr-code {
	display: inline-block; 
	background: white;
	padding: .3rem;
	border-radius: 1rem;
	width: fit-content;

	border: 1px solid black;
	box-shadow: 10px 10px black;
}

#export-qr-code > img {
	min-width: 10rem;
}

#export-info {
	display: flex;
	margin: auto 0;
	margin-right: 3rem;
}

#export-info img {
	width: 80px;
	height: 80px;
	border-radius: 7px;
	margin-right: 1rem;
}


/* DAY CHOOSER ========================================================================================== */
.button-box {
	flex-wrap: wrap;
}

.button-box #day-chooser {
	flex: 1 0 100%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: .4rem;
	align-content: center;
}

#day-chooser .form-item {
    margin-top: .125rem;
    margin-bottom: .125rem;
}


.button-box #day-chooser input {
	display: none;
}


.button-box {
	flex-wrap: wrap;
}

.button-box #day-chooser {
	flex: 1 0 100%;
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: .5rem;
	margin-bottom: 1rem;
}

@media (max-width: 43.75rem) {
	.button-box #day-chooser {
		flex-wrap: wrap;
	}
}

.button-box #day-chooser .form-item {
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0.5rem 2rem;
	border-bottom: 3px solid #c5c5c5;
	display: inline-block;
	line-height: 1;
	color: #000 !important;
	font-size: var(--font-size-menu-item);
	font-weight: 600;
	position: relative;
	text-decoration: none !important;
	font-family: var(--font-heading);
	box-shadow: none !important;
	user-select: none;
}

@media (max-width: 43.75rem) {
	.button-box #day-chooser {
		flex-wrap: wrap;
		gap: .4rem;
		flex-direction: column;
		max-height: 42px;
		margin-top: 5px;
		margin-bottom: 2rem;
	}

	.button-box #day-chooser .form-item {
		flex: 1 0 100%;
		text-align: center;
		/* margin: .2rem 0; */
		margin-top: 0.1rem;
		margin-bottom: 0rem;
		padding: 0.2rem 0.2rem;
		line-height: 1.7rem;
		color: #000 !important;
	}
}

.button-box #day-chooser input {
	display: none;
}

.button-box #day-chooser .form-item:hover, 
.button-box #day-chooser .form-item.active {
	border-bottom: 3px solid black;
	cursor: pointer;
}
.button-box #day-chooser .form-item label:hover {
	cursor: pointer;
}

/* SCHEDULE FAVOURITES =============================================================== */
.fav-icon {
	position: absolute;
	display: block;
	width: 40px;
	height: 40px;
	background-size: 30px;
	background-repeat: no-repeat;
	background-position: center;
	background-image: none;
	border-radius: 50%;

	margin-left: auto;
	cursor: pointer;
}
#rp-vertical .fav-icon {
	top: -20px;
	right: -20px;
}
#horizontal-schedule .fav-icon {
	top: 13px;
	left: -18px;
	z-index: 100;
}

@media (hover:none) {
/* On Mobile: Always show like btn */
	.fav-icon:not(.active) {
			background-image: url('/themes/custom/rp/images/schedule_icons/heart-empty-red.svg');
			background-color: white;
			box-shadow: 0px 0px 5px #c8c8c8;
	}
}

/* .session is vertical */
.session:hover .fav-icon, 
.horizontal-session-wrapper:hover .fav-icon, 
.fav-icon.active {
	background-color: white;
	box-shadow: 0px 0px 5px #c8c8c8;
}

.session:hover .fav-icon:not(.active),
.horizontal-session-wrapper:hover .fav-icon:not(.active) {
	background-image: url('/themes/custom/rp/images/schedule_icons/heart-empty-red.svg');
}

.fav-icon.active/* , .fav-icon:hover */ {
	background-image: url('/themes/custom/rp/images/schedule_icons/heart-red.svg');
}



/* SPEAKERS PAGE ====================================================================== */

/* Speaker Search - overwrite present styles */
.view-speakers .view-filters { /* all filters wrapper */
	display: flex;
	justify-content: center;
}
.view-speakers .views-exposed-form { /* wrapper */
	background-color: white;
	border: 3px solid #000;
	display: inline-block;
	/* line-height: 1; */
	color: #000 !important;
	border-radius: .5rem;
	font-size: 1.25rem;
	/* font-weight: 600; */
	text-decoration: none !important;
	font-family: var(--font-heading);
	box-shadow: none !important;
	user-select: none;
}

.view-speakers .views-exposed-form .form-actions { /* search button wrapper */
	margin: 0;
}
.view-speakers .views-exposed-form .form-actions input { /* search button */
	color: transparent;
	display: inline-block;
	padding: 23px 25px;

	background-size: var(--schedule-icons-size);
	background-repeat: no-repeat;
	display: inline-block;
	vertical-align: middle;
	width: var(--schedule-icons-size);
	height: var(--schedule-icons-size);
}
.view-speakers .views-exposed-form .form-actions input:hover {
	cursor: pointer;
}
.view-speakers .views-exposed-form .form-item input {
	height: 45.5px !important;
}


/* FILTER POPUP */
.mm-ocd__content {
	overflow: scroll;
}

.mm-ocd__content .view-filters {
	padding: 0 1rem;

}

.mm-ocd__content .view-filters .fieldset__wrapper {
	padding: 0;
}

.mm-ocd__content .view-filters .fieldset__legend {
    background: none;

    font-family: var(--font-heading);
    font-size: var(--font-size-expand);
    line-height: var(--line-height-expand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.25rem;
}

.mm-ocd__content .view-filters .fieldset__label {
	color: #000;
	padding: 1.125rem 0;
}

.mm-ocd__content .view-filters .fieldset--group .fieldset__wrapper {
	border: 0;
}

.mm-ocd__content .view-filters .form-item {
	display: inline-block;
	margin-right: 0.35rem;
	margin-bottom: 0;
	float: none;
}

.mm-ocd__content .view-filters .form-item label{
	margin-bottom: 0.5rem;
}

.mm-ocd__content .view-filters .form-checkboxes,
.mm-ocd__content .view-filters .form-radios {
	display: block;
}

.mm-ocd__content .view-filters .form-checkbox,
.mm-ocd__content .view-filters .form-radio {
	display: none;
}

.mm-ocd__content .view-filters .option {
	text-decoration: none;

    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    font-family: var(--font-body);
    font-size: var(--font-size-expand);
    line-height: var(--line-height-expand);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-grey-light);
    border-radius: var(--button-radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease,border-color 0.15s ease,color 0.15s ease;
}

.mm-ocd__content .view-filters input:checked + .option {
	background: #000;
	color: #FFF;
} 

.filterbox, .days {
	display: flex;
	gap: 1rem;
  justify-content: center;
	margin-bottom:15px;
	flex-wrap: wrap;
}

#rp-vertical a {
	text-decoration: none;
}

.page-schedule .container {
    max-width: var(--layout-width-small);
	margin: 0 auto;
}

.path-timeline .container {
    max-width: 100%;
	margin: 0 auto;
}

.page-schedule h1 {
	text-align: center;
	margin-bottom: 0.5rem;
}

#rp-vertical .time span {
	font-family: var(--font-heading);
    font-size: var(--font-size-standard);
    line-height: var(--line-height-standard);
}

#rp-vertical .language, #rp-vertical .special {
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

#rp-vertical span.speakers a, 
#rp-vertical span.moderators a {
	font-family: var(--font-body);
	font-size: var(--font-size-standard);
	line-height: var(--line-height-standard);
}


#rp-vertical .right h4.stage-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-standard);
	line-height: var(--line-height-standard);
	text-transform: uppercase;
}

#rp-vertical .track, #rp-vertical .track a {
	font-family: var(--font-heading);
	font-size: var(--font-size-expand);
	line-height: var(--line-height-expand);
}

#rp-vertical .opener-action .icon {
	padding-left: 0;
}

#rp-vertical .description {
    font-size: var(--font-size-standard);
	font-family: var(--font-body);
	line-height: var(--line-height-standard);
}

#rp-vertical .left {
	width:180px;
}


@media (max-width: 43.75rem) {
    #rp-vertical .left {
        width: 100%;
        display: flex;
        flex-direction: row;
        order: 1;
    }
}

#rp-vertical {
	margin: var(--block-padding) auto;
}

#rp-vertical .session {
	margin-top: var(--block-padding);
}

#rp-vertical .session-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-standard);
	line-height: var(--line-height-standard);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin-bottom: 0.25rem;
}

#rp-vertical .session > div {
    padding: .5rem 1rem .5rem 1rem;
}

#rp-vertical .prevhour {
	margin-top: var(--block-padding);
}

#rp-vertical .nexthour {
	margin-bottom: var(--block-padding);
}

#rp-vertical span.format {
font-size: var(--font-size-expand);
line-height: var(--line-height-expand);
hyphens: auto;
}

.button-box #day-chooser {
    margin: var(--block-padding) auto 0 auto;
}

div#horical-wrapper a {
    text-decoration: none;
}

#horical-wrapper .horizontal-session .node__title {
	font-family: var(--font-heading);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin-bottom: 0.25rem;
}

#nav-tab-offstage::before {
    background-image: url(/themes/custom/rp_fl/images/icons/offstage.svg);
}
#nav-tab-offstage:hover::before,
#nav-tab-offstage.active::before {
    filter: invert(1);
}

/*TEMPORARY*/
/* a#export-favourites-text {
    pointer-events: none;
}

a#export-favourites-text span:after {
    content: 'coming soon!';
    text-decoration: none !important;
    margin-left: 5px;
} */


/* ========================================================================
   Booth programme — Ticket card (display mode "ticket")

   Reuses the .session-ticket structure from session.css.  Article is the
   flex container; the main link is the upper part and the partner block
   is the lower part (sibling, not nested) so the partner's own teaser
   link doesn't land inside another <a>.
   ======================================================================== */

.session-ticket--booth {
  display: flex;
  flex-direction: column;
  background: var(--color-track-default);
}

/* Cycle through the site track colors so adjacent booth tickets vary
   visually.  Indexed via node.id mod 6 in the template — no partner
   mapping; this is purely for visual variety in the listing.
   Two classes used so specificity beats `.session-ticket` from
   session.css, which is loaded after schedule.css in the library. */
.session-ticket--booth.session-ticket--bg-0 { background: var(--color-track-1); }
.session-ticket--booth.session-ticket--bg-1 { background: var(--color-track-10); }
.session-ticket--booth.session-ticket--bg-2 { background: var(--color-track-11); }
.session-ticket--booth.session-ticket--bg-3 { background: var(--color-track-14); }
.session-ticket--booth.session-ticket--bg-4 { background: var(--color-track-120); }
.session-ticket--booth.session-ticket--bg-5 { background: var(--color-track-155); }

.session-ticket--booth .session-ticket__link {
  min-height: 0;
  flex-grow: 1;
  padding-bottom: 0.75rem;
}

.session-ticket--booth .session-ticket__teaser {
  font-family: var(--font-body);
  font-size: var(--font-size-expand);
  line-height: var(--line-height-expand);
  margin: 0 0 0.75rem;
  flex-grow: 1;
}

.session-ticket--booth .session-ticket__teaser p:last-child {
  margin-bottom: 0;
}

/* Footer strip: full-width white band across the bottom of the card
   that hosts the partner logo, booth number and partner name.  Solid
   white so logos with a white background blend in seamlessly. */
.session-ticket--booth .session-ticket__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--color-grey-light);
}

.session-ticket--booth .session-ticket__partner {
  flex: 0 0 auto;
}

.session-ticket--booth .session-ticket__partner .partner-teaser__link {
  display: inline-block;
  text-decoration: none;
}

.session-ticket--booth .session-ticket__partner .partner-teaser__link:hover {
  opacity: 0.8;
}

.session-ticket--booth .session-ticket__partner .field--name-field-logo img {
  display: block;
  max-width: 150px;
  max-height: 90px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.session-ticket--booth .session-ticket__footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-family: var(--font-body);
  line-height: var(--line-height-expand);
  min-width: 0;
}

.session-ticket--booth .session-ticket__footer-info .session-ticket__room {
  font-size: var(--font-size-expand);
  font-weight: 700;
  text-transform: uppercase;
}

.session-ticket--booth .session-ticket__footer-info .session-ticket__partner-name {
  font-size: var(--font-size-expand);
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* Booth listing page — center the view and lay rows out as a 3-up
   grid.  The Views markup has no .view-content wrapper, so the rows
   are direct siblings of the exposed form / header / contextual region
   div; everything that isn't a row spans the full grid width. */
.page-view--booth-programme-compact .view--booth-programme-compact {
  max-width: var(--layout-width-small);
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.page-view--booth-programme-compact .view--booth-programme-compact > :not(.views-row) {
  grid-column: 1 / -1;
}

/* Grid items (.views-row) stretch to the row height, but the article
   inside doesn't fill that height by default — so cards in the same
   row end up uneven.  Make the row a flex container and let the
   article grow to fill it. */
.page-view--booth-programme-compact .views-row {
  display: flex;
}

.page-view--booth-programme-compact .views-row > article {
  flex: 1;
}

@media (max-width: 68.75rem) {
  .page-view--booth-programme-compact .view--booth-programme-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 43.75rem) {
  .page-view--booth-programme-compact .view--booth-programme-compact {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   Booth-programme exposed filter form

   The booth-filter.js script lifts the form OUT of the cards' grid
   container so it can use the wider var(--layout-width) instead of
   the grid's var(--layout-width-small).  Toggle button is injected
   right before the form by the same script.

   On viewports < 700px the form is hidden behind the toggle button.
   On viewports >= 700px the form is always visible, button is hidden.
   ======================================================================== */

/* Mirrors the .view--sessions filter styling: legend + radios sit in
   one flex-wrap row per fieldset, native inputs hidden, labels styled
   as pills, checked state inverts to black/white, submit hidden. */

.page-view--booth-programme-compact .views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem 1.5rem;
  max-width: var(--layout-width);
  margin: 0 auto 1rem;
  padding: 0 10px;
}

.page-view--booth-programme-compact .views-exposed-form fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  border: none;
  padding: 0;
  margin: 0;
}

.page-view--booth-programme-compact .views-exposed-form legend {
  display: contents;
}

.page-view--booth-programme-compact .views-exposed-form .fieldset-legend {
  font-family: var(--font-heading);
  font-size: var(--font-size-expand);
  line-height: var(--line-height-expand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.page-view--booth-programme-compact .views-exposed-form .fieldset-wrapper,
.page-view--booth-programme-compact .views-exposed-form .fieldset-wrapper > div,
.page-view--booth-programme-compact .views-exposed-form .form-radios {
  display: contents;
}

.page-view--booth-programme-compact .views-exposed-form .form-item {
  margin: 0;
}

/* Hide the native radio. */
.page-view--booth-programme-compact .views-exposed-form .form-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Label styled as pill/chip. */
.page-view--booth-programme-compact .views-exposed-form label.option {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  font-family: var(--font-body);
  font-size: var(--font-size-expand);
  line-height: var(--line-height-expand);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--button-radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-view--booth-programme-compact .views-exposed-form label.option:hover {
  border-color: var(--color-black);
}

.page-view--booth-programme-compact .views-exposed-form .form-radio:checked + label.option {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
}

.page-view--booth-programme-compact .views-exposed-form .form-radio:focus-visible + label.option {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Submit button — hidden (BEF auto-submit). */
.page-view--booth-programme-compact .views-exposed-form .form-actions {
  display: none;
}

/* Day-filter pills inherit the same track palette the cards use, so the
   user can read the legend at a glance: Monday = track-1, Tuesday =
   track-10, Wednesday = track-11.  Mapping is hardcoded to the rp26
   schedule (Mon 18.05, Tue 19.05, Wed 20.05) — adjust if the
   conference dates shift.  Selected state keeps the colour and adds
   a black border for a clear "selected" affordance. */
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="1"] + label.option,
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="1"]:checked + label.option {
  background: var(--color-track-1);
  border-color: var(--color-track-1);
  color: var(--color-text);
}
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="2"] + label.option,
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="2"]:checked + label.option {
  background: var(--color-track-10);
  border-color: var(--color-track-10);
  color: var(--color-text);
}
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="3"] + label.option,
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="3"]:checked + label.option {
  background: var(--color-track-11);
  border-color: var(--color-track-11);
  color: var(--color-text);
}

.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="1"]:checked + label.option,
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="2"]:checked + label.option,
.page-view--booth-programme-compact .views-exposed-form .form-radio[name="field_date_value"][value="3"]:checked + label.option {
  border-color: var(--color-black);
  font-weight: 700;
}

/* Toggle button — injected by JS, only shown on mobile.  Sits at the
   same width container as the form (full var(--layout-width)). */
.page-view--booth-programme-compact .booth-filter-toggle {
  display: none;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-black);
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  max-width: var(--layout-width);
  margin: 0 auto 1rem;
}

.page-view--booth-programme-compact .booth-filter-toggle::after {
  content: ' ▾';
  font-size: 0.85em;
  display: inline-block;
  transition: transform 0.15s;
}

.page-view--booth-programme-compact .booth-filter-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Mobile: show the toggle button (as a grid-spanning row), hide the
   form until the button is clicked.  display:none on the form takes
   it out of the grid flow so the cards reflow up. */
@media (max-width: 43.75rem) {
  .page-view--booth-programme-compact .booth-filter-toggle {
    display: block;
    margin-left: 10px;
    margin-right: 10px;
  }
  .page-view--booth-programme-compact .views-exposed-form:not(.booth-filter-open) {
    display: none;
  }
}
