/*
 * BAI-3224 Festivals. Scoped to .bai-festivals; the site header, footer and Inter come from the theme.
 * The picker's frame (header, tabs, filter sidebar) uses the theme's Browse classes and its bai-browse.css,
 * so it matches /browse/; this file only adds the plugin's own parts. Breakpoints as the theme: 768 / 992 px.
 */

.bai-festivals {
	--fest-ink: #0a0a0a;
	--fest-text: #434b52;
	--fest-muted: #6d6d6d;
	--fest-line: rgba(109, 109, 109, 0.24);
	--fest-soft: #f2f2f2;
	--fest-field: #fafafa;
	--fest-border: #e0e0e0;
	--fest-yellow: #fdcd1c;
	--fest-yellow-hover: #fac41d;
	--fest-focus: #0a0a0a;
	background: #fff;
	color: var(--fest-ink);
	font-family: Inter, Arial, sans-serif;
}

.bai-festivals *,
.bai-festivals *::before,
.bai-festivals *::after {
	box-sizing: border-box;
}

.bai-festivals__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 16px 80px;
}

.bai-festivals a {
	color: var(--fest-ink);
}

.bai-festivals a:hover {
	color: var(--fest-muted);
}

.bai-festivals :is(a, button, input, select):focus-visible {
	outline: 2px solid var(--fest-focus);
	outline-offset: 2px;
}

.bai-festivals [hidden] {
	display: none !important;
}

/* Long unbroken names (artists, companies, festival titles) wrap instead of pushing the page sideways. */
.bai-festivals :is(h1, h2, th, td, li, p, .bai-festivals-controls__pill, .bai-festivals-crumbs) {
	overflow-wrap: anywhere;
}

.bai-festivals-controls__pill {
	max-width: 100%;
	text-align: left;
}

.bai-festivals__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Buttons */
.bai-festivals__button,
.bai-festivals .bai-festivals__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 20px;
	border: 0;
	border-radius: 100px;
	background: var(--fest-yellow);
	color: var(--fest-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease-in-out;
}

.bai-festivals__button:hover,
.bai-festivals .bai-festivals__button:hover {
	background: var(--fest-yellow-hover);
	color: var(--fest-ink);
}

/* Notice: message pages and empty states */
.bai-festivals__notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 40px auto;
	padding: 40px 24px;
	border: 1px solid var(--fest-border);
	border-radius: 15px;
	text-align: center;
}

.bai-festivals__icon {
	color: var(--fest-text);
}

.bai-festivals__notice-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.bai-festivals__notice-text {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fest-text);
}

/* Demo page (no access): the page built from demo data, blurred and cut to a fixed height (the header's
   height varies, so nothing is subtracted from the viewport), the block on top. No script needed. */
.bai-pd-locked {
	position: relative;
	max-height: 75vh;
	max-height: min(75svh, 900px);
	overflow: hidden;
}

.bai-pd-locked__page {
	filter: blur(6px);
	pointer-events: none;
	user-select: none;
}

.bai-festivals .bai-pd-locked__block {
	position: absolute;
	z-index: 2;
	top: 48px;
	left: 50%;
	width: calc(100% - 32px);
	max-height: calc(100% - 64px);
	margin: 0;
	overflow: auto;
	background: #fff;
	box-shadow: 0 12px 40px rgba(10, 10, 10, 0.16);
	transform: translateX(-50%);
}

.bai-pd-locked__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.bai-festivals .bai-festivals__button--secondary {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--fest-ink);
}

.bai-festivals .bai-festivals__button--secondary:hover {
	background: var(--fest-soft);
}

@media (max-width: 600px) {
	.bai-festivals .bai-pd-locked__block {
		top: 24px;
		padding: 28px 16px;
	}
}

/* Browse frame (theme classes, styled by the theme's bai-browse.css). Ours are real buttons where the
   theme uses divs (keyboard): undo only what browsers add to <button>; the theme sets everything else. */
.bai-festivals .bai-browse-filters__title,
.bai-festivals .bai-browse-filters__filter-header {
	font-family: inherit;
}

.bai-festivals .bai-browse-filters__filter-header {
	width: 100%;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: inherit;
	font-size: inherit;
	text-align: left;
}

.bai-festivals .bai-browse-filters__filter-header[aria-expanded="true"] {
	border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 992px) {
	/* A heading on wide screens, the panel opener on phones (as in the theme). */
	.bai-festivals .bai-browse-filters__title {
		width: 100%;
		border: 0;
		pointer-events: none;
	}
}

.bai-festivals button.bai-browse-pagination__link {
	font-family: inherit;
	cursor: pointer;
}

.bai-festivals .bai-browse-filters__search-input {
	min-height: 40px;
	margin-bottom: 0;
	font-size: 15px;
	color: var(--fest-ink);
}

.bai-festivals .bai-browse-header__subtitle strong {
	color: var(--fest-ink);
}

/* Picker table */
.bai-festivals-picker {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.bai-festivals-picker th,
.bai-festivals-picker td {
	padding: 16px 12px;
	border-bottom: 1px solid var(--fest-line);
	text-align: left;
	vertical-align: middle;
}

.bai-festivals-picker thead th {
	padding-top: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--fest-ink);
}

.bai-festivals-picker__name {
	font-weight: 700;
}

.bai-festivals-picker__name a {
	text-decoration: none;
}

.bai-festivals-picker__name a:hover {
	text-decoration: underline;
}

.bai-festivals-picker__location {
	color: var(--fest-text);
}

.bai-festivals-years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bai-festivals .bai-festivals-years__year {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 100px;
	background: var(--fest-soft);
	color: var(--fest-ink);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.bai-festivals .bai-festivals-years__year.is-latest {
	background: var(--fest-yellow);
}

.bai-festivals .bai-festivals-years__year:hover {
	background: var(--fest-yellow-hover);
	color: var(--fest-ink);
}

.bai-festivals__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px 0;
	font-size: 15px;
	color: var(--fest-text);
}

.bai-festivals__empty p {
	margin: 0;
}

.bai-festivals__count {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--fest-muted);
}

/* Phones: picker rows become cards */
@media (max-width: 767px) {
	.bai-festivals__inner {
		padding-top: 24px;
	}

	.bai-festivals-picker,
	.bai-festivals-picker tbody,
	.bai-festivals-picker tr,
	.bai-festivals-picker th,
	.bai-festivals-picker td {
		display: block;
	}

	.bai-festivals-picker thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.bai-festivals-picker tr {
		padding: 16px 0;
		border-bottom: 1px solid var(--fest-line);
	}

	.bai-festivals-picker th,
	.bai-festivals-picker td {
		padding: 0;
		border: 0;
	}

	.bai-festivals-picker__name {
		font-size: 17px;
	}

	.bai-festivals-picker__location {
		margin: 4px 0 12px;
	}
}

/* ---------------------------------------------------------------------------------------------------
 * Lineup page (design canvas 2 + 3, site fonts and colours)
 * ------------------------------------------------------------------------------------------------- */
.bai-festivals--lineup > .bai-container {
	padding-top: 32px;
	padding-bottom: 80px;
}

.bai-festivals-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--fest-muted);
}

.bai-festivals .bai-festivals-crumbs a {
	color: var(--fest-muted);
}

.bai-festivals-crumbs [aria-current] {
	color: var(--fest-ink);
}

.bai-festivals-lineup__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 32px;
}

.bai-festivals-lineup__title {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
}

.bai-festivals-lineup__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	align-items: baseline;
	margin: 0;
	font-size: 15px;
	color: var(--fest-text);
}

.bai-festivals-lineup__meta b {
	color: var(--fest-ink);
}

.bai-festivals-lineup__meta span + span::before {
	content: "·";
	margin-right: 16px;
	color: var(--fest-muted);
}

.bai-festivals-lineup__year-select {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
}

.bai-festivals-lineup__year-select select {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--fest-border);
	border-radius: 8px;
	background: #fff;
	color: var(--fest-ink);
	font: inherit;
}

@media (min-width: 768px) {
	.bai-festivals-lineup__year-select {
		display: none !important;
	}
}

/* Who booked */
.bai-festivals-bookers {
	margin-bottom: 32px;
	padding: 24px;
	border: 1px solid var(--fest-border);
	border-radius: 15px;
}

.bai-festivals-bookers__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 16px;
}

.bai-festivals-bookers__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.bai-festivals-bookers__hint {
	margin: 0 0 0 auto;
	font-size: 14px;
	color: var(--fest-muted);
}

.bai-festivals-bookers__bars {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 32px;
}

.bai-festivals-bookers__bar {
	display: grid;
	grid-template-columns: minmax(0, calc(14em + 38px)) minmax(0, 1fr) 2.5em; /* 38px: logo + gap (BAI-3244) */
	align-items: center;
	gap: 12px;
	min-height: 40px;
	padding: 4px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--fest-ink);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.bai-festivals-bookers__bar:hover {
	background: var(--fest-soft);
}

.bai-festivals-bookers__bar[aria-pressed="true"] {
	background: #fff8dc;
	box-shadow: inset 0 0 0 1.5px var(--fest-yellow-hover);
}

.bai-festivals-bookers__name {
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.bai-festivals-bookers__track {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: var(--fest-soft);
}

.bai-festivals-bookers__fill {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: var(--fest-yellow);
}

.bai-festivals-bookers.has-filter .bai-festivals-bookers__bar:not([aria-pressed="true"]) .bai-festivals-bookers__fill {
	background: #d6d6d6;
}

.bai-festivals-bookers__count {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.bai-festivals__link-button {
	margin-top: 12px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--fest-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* Bars | Pie */
.bai-festivals-views {
	display: inline-flex;
	padding: 3px;
	border-radius: 100px;
	background: var(--fest-soft);
}

.bai-festivals-views__view {
	min-height: 32px;
	padding: 0 16px;
	border: 0;
	border-radius: 100px;
	background: transparent;
	color: var(--fest-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bai-festivals-views__view[aria-pressed="true"] {
	background: #fff;
	color: var(--fest-ink);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.bai-festivals-bookers[data-view="pie"] :is(.bai-festivals-bookers__bars, [data-bai-fest-more]),
.bai-festivals-bookers[data-view="bars"] .bai-festivals-pie {
	display: none !important;
}

/* Pie (validated categorical order; slices 9-16 are darker steps of 1-8; Others grey). The legend carries
   names and numbers, so the colours only have to tell neighbours apart. */
.bai-festivals-pie {
	--fest-pie-1: #2a78d6;
	--fest-pie-2: #eb6834;
	--fest-pie-3: #1baf7a;
	--fest-pie-4: #eda100;
	--fest-pie-5: #e87ba4;
	--fest-pie-6: #008300;
	--fest-pie-7: #6250d6;
	--fest-pie-8: #e34948;
	--fest-pie-9: #1c5cab;
	--fest-pie-10: #c0501f;
	--fest-pie-11: #138a62;
	--fest-pie-12: #a87300;
	--fest-pie-13: #c94f82;
	--fest-pie-14: #3d7a12;
	--fest-pie-15: #4c3fb8;
	--fest-pie-16: #b93535;
	--fest-pie-others: #a9a8a3;
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: start;
	gap: 16px 40px;
}

.bai-festivals-pie .is-c1 { --c: var(--fest-pie-1); }
.bai-festivals-pie .is-c2 { --c: var(--fest-pie-2); }
.bai-festivals-pie .is-c3 { --c: var(--fest-pie-3); }
.bai-festivals-pie .is-c4 { --c: var(--fest-pie-4); }
.bai-festivals-pie .is-c5 { --c: var(--fest-pie-5); }
.bai-festivals-pie .is-c6 { --c: var(--fest-pie-6); }
.bai-festivals-pie .is-c7 { --c: var(--fest-pie-7); }
.bai-festivals-pie .is-c8 { --c: var(--fest-pie-8); }
.bai-festivals-pie .is-c9 { --c: var(--fest-pie-9); }
.bai-festivals-pie .is-c10 { --c: var(--fest-pie-10); }
.bai-festivals-pie .is-c11 { --c: var(--fest-pie-11); }
.bai-festivals-pie .is-c12 { --c: var(--fest-pie-12); }
.bai-festivals-pie .is-c13 { --c: var(--fest-pie-13); }
.bai-festivals-pie .is-c14 { --c: var(--fest-pie-14); }
.bai-festivals-pie .is-c15 { --c: var(--fest-pie-15); }
.bai-festivals-pie .is-c16 { --c: var(--fest-pie-16); }
.bai-festivals-pie .is-others { --c: var(--fest-pie-others); }

.bai-festivals-pie__chart {
	display: block;
	width: 100%;
	height: auto;
}

.bai-festivals-pie__slice {
	fill: var(--c);
	stroke: #fff;
	stroke-width: 1.5;
	stroke-linejoin: round;
	cursor: pointer;
	transition: opacity 0.15s;
}

.bai-festivals-pie__slice:hover {
	opacity: 0.85;
}

.bai-festivals-bookers.has-filter .bai-festivals-pie__slice:not(.is-active) {
	opacity: 0.25;
}

.bai-festivals-pie__pct {
	fill: var(--fest-ink);
	stroke: #fff;
	stroke-width: 3px;
	paint-order: stroke;
	font-size: 11px;
	font-weight: 700;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
}

.bai-festivals-pie__legend {
	display: grid;
	gap: 2px;
}

.bai-festivals-pie__legend.is-wide {
	display: block;
	columns: 2;
	column-gap: 32px;
}

/* Down the first column, then the second: the same order as the slices. */
.bai-festivals-pie__legend.is-wide .bai-festivals-pie__item {
	width: 100%;
	margin-bottom: 2px;
	break-inside: avoid;
}

.bai-festivals-pie__item {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 34px;
	padding: 4px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--fest-ink);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.bai-festivals-pie__item:hover {
	background: var(--fest-soft);
}

.bai-festivals-pie__item[aria-pressed="true"] {
	background: #fff8dc;
	box-shadow: inset 0 0 0 1.5px var(--fest-yellow-hover);
}

.bai-festivals-pie__swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.bai-festivals-pie__name {
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.bai-festivals-pie__value {
	color: var(--fest-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bai-festivals-pie__more {
	display: none;
}

/* Controls */
.bai-festivals-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-bottom: 16px;
}

.bai-festivals-controls__search {
	position: relative;
	flex: 1 1 320px;
	max-width: 480px;
}

.bai-festivals-controls__search .bai-festivals__icon {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 18px;
	height: 18px;
	color: var(--fest-muted);
	transform: translateY(-50%);
}

.bai-festivals-controls__search input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px 10px 40px;
	border: 1px solid var(--fest-border);
	border-radius: 100px;
	background: var(--fest-field);
	color: var(--fest-ink);
	font: inherit;
	font-size: 15px;
}

.bai-festivals-controls__search input::placeholder {
	color: var(--fest-muted); /* Browser default grey is under 4.5:1 on the field colour. */
	opacity: 1;
}

.bai-festivals-controls__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--fest-yellow-hover);
	border-radius: 100px;
	background: #fff8dc;
	color: var(--fest-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bai-festivals-controls__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 15px;
	cursor: pointer;
}

.bai-festivals-controls__toggle input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--fest-ink);
}

.bai-festivals-controls__count {
	margin: 0 0 0 auto;
	font-size: 14px;
	color: var(--fest-muted);
}

/* Lineup table: scrolls with the page (no inner scroll box). The header row sticks under the site's sticky
   header (its height comes from festivals.js); columns wrap, so nothing scrolls sideways and an extra sticky
   Artist column isn't needed. */
.bai-festivals-lineup__scroll {
	border: 1px solid var(--fest-border);
	border-radius: 15px;
	/* Clip the cells' square backgrounds to the rounded corners. "clip" (not "hidden") doesn't make this a
	   scroll container, so the header row still sticks under the site header. */
	overflow: clip;
}

.bai-festivals-lineup {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}

.bai-festivals-lineup th,
.bai-festivals-lineup td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--fest-line);
	background: #fff;
	text-align: left;
	vertical-align: top;
}

.bai-festivals-lineup tbody tr.is-alt > * {
	background: #fafafa;
}

.bai-festivals-lineup tbody tr:hover > * {
	background: #fff8dc;
}

.bai-festivals-lineup thead th {
	position: sticky;
	top: var(--bai-fest-sticky-top, 0px);
	z-index: 2;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 16px;
	font-weight: 600;
	vertical-align: middle;
	white-space: nowrap;
}

.bai-festivals-lineup thead th {
	box-shadow: 0 1px 0 var(--fest-line);
}

.bai-festivals-lineup thead th:first-child {
	border-top-left-radius: 15px;
}

.bai-festivals-lineup thead th:last-child {
	border-top-right-radius: 15px;
}

.bai-festivals-lineup tbody tr:last-child > * {
	border-bottom: 0;
}

.bai-festivals-lineup__artist {
	width: 26%;
}

.bai-festivals-lineup__sort {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--fest-ink);
	font: inherit;
	cursor: pointer;
}

.bai-festivals-lineup__sort [aria-hidden] {
	color: var(--fest-muted);
	font-size: 12px;
}

.bai-festivals-lineup__artist {
	font-weight: 700;
}

.bai-festivals-lineup__artist a {
	text-decoration: none;
}

.bai-festivals-lineup__artist a:hover {
	text-decoration: underline;
}

.bai-festivals-lineup :is(.bai-festivals-lineup__booked, .bai-festivals-lineup__mgmt) a {
	text-decoration: none;
	box-shadow: inset 0 -1px 0 var(--fest-line);
}

.bai-festivals-lineup :is(.bai-festivals-lineup__booked, .bai-festivals-lineup__mgmt) a:hover {
	box-shadow: none;
	text-decoration: underline;
}

.bai-festivals-lineup tr.is-removed .bai-festivals-lineup__artist > .notranslate {
	color: var(--fest-muted);
	text-decoration: line-through;
}

.bai-festivals-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border: 1px solid var(--fest-yellow-hover);
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	vertical-align: 2px;
}

.bai-festivals-badge--removed {
	border-color: #b4b4b4;
	color: var(--fest-text);
}

.bai-festivals-lineup__booked.is-dim {
	color: var(--fest-text);
	font-style: italic;
}

.bai-festivals-lineup__mgmt ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bai-festivals-lineup__mgmt li + li {
	margin-top: 4px;
}

.bai-festivals-lineup__label {
	display: none;
}

.bai-festivals-lineup__team {
	white-space: nowrap;
}

.bai-festivals .bai-festivals-lineup__team a {
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bai-festivals-lineup__note {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--fest-muted);
}

/* Phones: year select, chip row, cards. Only the chip row scrolls sideways. */
@media (max-width: 767px) {
	.bai-festivals-lineup__title {
		font-size: 26px;
	}

	.bai-festivals-lineup__meta {
		flex-direction: column;
	}

	.bai-festivals-lineup__meta span + span::before {
		display: none;
	}

	.bai-festivals-lineup__years.has-select [data-bai-fest-year-links] {
		display: none;
	}

	.bai-festivals-bookers {
		padding: 16px;
	}

	.bai-festivals-bookers__hint {
		flex: 1 1 100%;
		order: 3;
		margin-left: 0;
	}

	/* Bars as on Market Share: one column, name and count on top, the bar under them. */
	.bai-festivals-bookers__bars {
		grid-template-columns: minmax(0, 1fr);
	}

	.bai-festivals-bookers__bar {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
	}

	.bai-festivals-bookers__track {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.bai-festivals-bookers__head {
		align-items: center;
	}

	.bai-festivals-pie {
		grid-template-columns: minmax(0, 1fr);
	}

	.bai-festivals-pie__chart {
		max-width: 220px;
		margin: 0 auto;
	}

	.bai-festivals-pie__legend.is-wide {
		columns: 1;
	}

	.bai-festivals-pie:not(.is-open) .bai-festivals-pie__item.is-extra {
		display: none;
	}

	.bai-festivals-pie__more {
		display: block;
		justify-self: start;
		padding: 8px 0;
		border: 0;
		background: none;
		color: var(--fest-ink);
		font: inherit;
		font-size: 14px;
		font-weight: 600;
		text-decoration: underline;
		cursor: pointer;
	}

	.bai-festivals-controls__search {
		flex-basis: 100%;
		max-width: none;
	}

	.bai-festivals-controls__count {
		margin-left: 0;
	}

	.bai-festivals-lineup__scroll {
		border: 0;
	}

	.bai-festivals-lineup,
	.bai-festivals-lineup tbody,
	.bai-festivals-lineup tr,
	.bai-festivals-lineup th,
	.bai-festivals-lineup td {
		display: block;
	}

	.bai-festivals-lineup thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.bai-festivals-lineup tbody tr {
		margin-bottom: 12px;
		padding: 16px;
		border: 1px solid var(--fest-border);
		border-radius: 15px;
	}

	.bai-festivals-lineup tbody tr[hidden] {
		display: none;
	}

	.bai-festivals-lineup th,
	.bai-festivals-lineup td,
	.bai-festivals-lineup tbody tr.is-alt > *,
	.bai-festivals-lineup tbody tr:hover > * {
		position: static;
		min-width: 0;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.bai-festivals-lineup__artist {
		width: auto;
		margin-bottom: 12px;
		font-size: 17px;
	}

	.bai-festivals-lineup__booked,
	.bai-festivals-lineup__mgmt {
		display: grid !important;
		grid-template-columns: 7.5em minmax(0, 1fr);
		gap: 12px;
		margin-bottom: 8px;
	}

	.bai-festivals-lineup__label {
		display: block;
		color: var(--fest-muted);
		font-size: 13px;
		font-style: normal;
		font-weight: 400;
	}

	.bai-festivals-lineup__team {
		margin-top: 12px;
	}

	/* Act not in our database: no link, so no empty gap at the bottom of the card. */
	.bai-festivals-lineup__team.is-empty {
		display: none;
	}
}

/* Logos next to names (BAI-3244): the logo sits inside the name element, so the row's grid keeps its columns. */
.bai-logo-name {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.bai-logo-name__text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.bai-logo {
	display: block;
	flex: none;
	width: 30px;
	height: 30px;
	border: 1px solid var(--fest-line);
	border-radius: 6px;
	background: #fff;
	object-fit: contain;
}

.bai-logo.is-placeholder {
	border-color: transparent;
	background: transparent;
}

.bai-logo--none {
	border-color: transparent;
	background: transparent;
}

.bai-logo--team {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.bai-logo--header {
	width: 56px;
	height: 56px;
	border-radius: 10px;
}
