/* Booker App Events – overview. Colors follow the mockup; override the
   custom properties in the theme to adapt them.

   Every rule starts with ":root:root" (+2 classes of specificity). Global
   theme styles such as Elementor's kit typography (".elementor-kit-14 a",
   ".elementor-kit-14 a:hover", ".elementor-kit-14 h3") would otherwise beat
   the plugin's single-class rules and blow links and headings up to the
   site's text size. Elementor widget controls ("{{WRAPPER}} .bae …", +4)
   still win. New rules need the same prefix. */

/* Defaults without the prefix, so a theme can override them with ".bae". */
.bae {
	--bae-primary: #2c5558;
	--bae-primary-contrast: #ffffff;
	--bae-accent: #c4507a;
	--bae-text: #1f2b2c;
	--bae-muted: #5d6b6c;
	--bae-border: #dde4e3;
	--bae-surface: #ffffff;
	--bae-soft: #eef3f2;
	--bae-chip: #eef1f1;
	--bae-radius: 14px;
	--bae-radius-sm: 8px;
	--bae-shadow: 0 1px 2px rgba(31, 43, 44, 0.04);

	color: var(--bae-text);
	font-family: inherit;
	line-height: 1.45;
}

:root:root .bae *,
:root:root .bae *::before,
:root:root .bae *::after {
	box-sizing: border-box;
}

/* Layout decisions follow the widget's own width (Elementor columns), not
   the window. The fixed filter sheet lives outside this container. */
:root:root .bae__inner,
:root:root .bae-detail,
:root:root .bae-highlights {
	container-type: inline-size;
}

/* Highlight tiles ([booker_app_highlights]) */
:root:root .bae-highlights__grid {
	display: grid;
	grid-template-columns: repeat(var(--bae-cols, 3), minmax(0, 1fr));
	gap: 20px;
}

/* Every tile here is a highlight: the badge is enough, no extra frame. */
:root:root .bae-highlights .bae-card--highlight {
	border-color: var(--bae-border);
	box-shadow: var(--bae-shadow);
}

@container (max-width: 899.98px) {
	/* :is() keeps the weight equal to the phone rule below, which must win. */
	:root:root :is(.bae-highlights--c3, .bae-highlights--c4, .bae-highlights--c5, .bae-highlights--c6) .bae-highlights__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container (max-width: 559.98px) {
	:root:root .bae-highlights .bae-highlights__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

:root:root .bae [hidden] {
	display: none !important;
}

/* Beat theme rules like ".page-content a" regardless of load order. */
:root:root .bae a:any-link,
:root:root .bae a:any-link:hover {
	text-decoration: none;
}

/* Links and buttons take the text size of their surroundings unless a
   plugin rule sets one: Elementor's kit puts its link typography right on
   every <a> (".elementor-kit-14 a { font-size: 20px }"). Weight 0,2,2 beats
   the kit including its :hover rule (0,2,1), but not the plugin's own
   classes (0,3,0), so it stays without the ":root:root" prefix. */
:root body .bae :is(a, button) {
	font: inherit;
	letter-spacing: inherit;
	word-spacing: inherit;
	text-transform: inherit;
}

:root:root .bae :is(h1, h2, h3, h4) {
	font-family: inherit;
	font-weight: 700;
	letter-spacing: normal;
}

:root:root .bae .bae-icon {
	flex: none;
	vertical-align: -3px;
}

:root:root .bae.is-loading .bae__main {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Region tabs */
:root:root .bae__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}

:root:root .bae__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid var(--bae-border);
	border-radius: 999px;
	background: var(--bae-surface);
	color: var(--bae-primary);
	font-weight: 700;
	font-size: 1.05rem;
	box-shadow: var(--bae-shadow);
	transition: background 0.15s ease, color 0.15s ease;
}

:root:root .bae__tab:hover,
:root:root .bae__tab:focus-visible {
	border-color: var(--bae-primary);
	color: var(--bae-primary);
}

:root:root .bae__tab.is-active {
	background: var(--bae-primary);
	border-color: var(--bae-primary);
	color: var(--bae-primary-contrast);
}

:root:root .bae__tab-count {
	font-size: 0.72rem;
	font-weight: 600;
	opacity: 0.8;
}

/* Venue next to the region tabs (only once a region is chosen). */
:root:root .bae__tabs-sep {
	align-self: center;
	width: 1px;
	height: 28px;
	margin: 0 4px;
	background: var(--bae-border);
}

:root:root .bae__venue {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin: 0;
}

:root:root .bae__venue select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 12px 46px 12px 46px;
	border: 1px solid var(--bae-border);
	border-radius: 999px;
	background: var(--bae-surface);
	color: var(--bae-primary);
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.45;
	text-overflow: ellipsis;
	box-shadow: var(--bae-shadow);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:root:root .bae__venue select:hover,
:root:root .bae__venue select:focus-visible {
	border-color: var(--bae-primary);
}

:root:root .bae__venue select:focus-visible {
	outline: 2px solid var(--bae-primary);
	outline-offset: 2px;
}

:root:root .bae__venue.is-set select {
	border-color: var(--bae-primary);
	box-shadow: inset 0 0 0 1px var(--bae-primary);
}

:root:root .bae__venue .bae-icon {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 18px;
	color: var(--bae-primary);
	transform: translateY(-50%);
	pointer-events: none;
}

:root:root .bae__venue .bae-icon--pin {
	left: 20px;
}

:root:root .bae__venue .bae-icon--chevron-down {
	right: 18px;
}

:root:root .bae__venue-go {
	margin-left: 8px;
}

/* Layout */
:root:root .bae__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

@container (min-width: 900px) {
	:root:root .bae__layout {
		grid-template-columns: var(--bae-sidebar-width, 240px) minmax(0, 1fr);
	}

	:root:root .bae__sidebar {
		position: sticky;
		top: 24px;
	}
}

/* Filter sidebar */
:root:root .bae-filter {
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius);
	background: var(--bae-surface);
	padding: 18px 20px;
	box-shadow: var(--bae-shadow);
}

:root:root .bae-filter__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--bae-primary);
}

:root:root .bae-filter__reset {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	padding: 5px 12px 5px 9px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bae-accent);
	transition: background 0.15s ease, color 0.15s ease;
}

:root:root .bae-filter__reset:hover,
:root:root .bae-filter__reset:focus-visible {
	background: var(--bae-accent);
	border-color: var(--bae-accent);
	color: #ffffff;
}

:root:root .bae-filter__reset .bae-icon,
:root:root .bae-active__clear .bae-icon {
	width: 14px;
	height: 14px;
	flex: none;
}

:root:root .bae-filter__form {
	margin-top: 14px;
}

:root:root .bae-field {
	padding: 14px 0;
	border-top: 1px solid var(--bae-border);
}

:root:root .bae-field:first-of-type {
	border-top: 0;
	padding-top: 4px;
}

:root:root .bae-field__label {
	display: block;
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--bae-primary);
}

:root:root .bae-field__hint {
	margin: 6px 0 0;
	font-size: 0.75rem;
	color: var(--bae-muted);
}

:root:root .bae .bae-filter input[type="search"],
:root:root .bae .bae-filter input[type="date"],
:root:root .bae .bae-filter select {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius-sm);
	background: var(--bae-surface);
	color: var(--bae-text);
	font: inherit;
	font-size: 0.85rem;
}

:root:root .bae .bae-filter input:focus-visible,
:root:root .bae .bae-filter select:focus-visible {
	outline: 2px solid var(--bae-primary);
	outline-offset: 1px;
}

:root:root .bae-search {
	position: relative;
}

:root:root .bae-search .bae-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bae-muted);
}

:root:root .bae .bae-search input[type="search"] {
	padding-left: 32px;
}

/* Two date fields don't fit side by side in the 240px sidebar: one row each. */
:root:root .bae-range {
	display: grid;
	gap: 8px;
}

:root:root .bae-range label {
	display: flex;
	align-items: center;
	gap: 8px;
}

:root:root .bae-range span {
	flex: none;
	width: 26px;
	font-size: 0.75rem;
	color: var(--bae-muted);
}

:root:root .bae .bae-range input[type="date"] {
	flex: 1;
	min-width: 0;
	padding: 6px 8px;
	font-size: 0.8rem;
}

/* Mini calendar */
:root:root .bae-cal {
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius-sm);
	padding: 8px;
}

:root:root .bae-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

:root:root .bae-cal__month {
	font-size: 0.85rem;
	font-weight: 600;
}

:root:root .bae-cal__nav {
	display: inline-flex;
	padding: 4px;
	border-radius: 6px;
	color: var(--bae-text);
}

:root:root .bae-cal__nav:hover {
	background: var(--bae-soft);
}

:root:root .bae-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}

:root:root .bae-cal__weekday {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--bae-muted);
	padding: 2px 0 4px;
}

:root:root .bae-cal__day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: 6px;
	font-size: 0.78rem;
	color: #9aa5a6;
}

:root:root .bae-cal__day.has-events {
	color: var(--bae-text);
	font-weight: 600;
}

:root:root a.bae-cal__day:hover {
	background: var(--bae-soft);
}

:root:root .bae-cal__day.is-outside {
	opacity: 0.45;
}

:root:root .bae-cal__day.is-today {
	box-shadow: inset 0 0 0 1px var(--bae-primary);
}

:root:root .bae-cal__day.is-selected {
	background: var(--bae-primary);
	color: var(--bae-primary-contrast);
}

/* Pills and chips */
:root:root .bae-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

:root:root .bae-pill {
	padding: 5px 11px;
	border: 1px solid var(--bae-border);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bae-text);
	background: var(--bae-surface);
}

:root:root .bae-pill:hover {
	border-color: var(--bae-primary);
}

:root:root .bae-pill.is-active {
	background: var(--bae-primary);
	border-color: var(--bae-primary);
	color: var(--bae-primary-contrast);
}

:root:root .bae-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bae-chip);
	font-size: 0.75rem;
	color: var(--bae-text);
}

:root:root .bae-chip--outline {
	border-radius: 6px;
	background: transparent;
	border: 1px solid var(--bae-border);
}

:root:root .bae-chip--removable:hover {
	background: #e2e8e7;
}

/* "Nur Angebote ohne Zusatzkosten" */
:root:root .bae .bae-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 6px;
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--bae-text);
	cursor: pointer;
}

:root:root .bae .bae-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--bae-primary);
}

:root:root .bae-check__label {
	flex: 1;
	min-width: 0;
}

:root:root .bae-check .bae-pill__count {
	flex: none;
	font-size: 0.75rem;
}

/* Note for dates with additional costs (detail page). */
:root:root .bae .bae-info__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.95rem;
	line-height: 1.4;
}

:root:root .bae-info__note .bae-icon {
	flex: none;
	margin-top: 2px;
	color: var(--bae-accent);
}

/* Topics ("Themen"): colour from the app as dot and light tint. */
:root:root .bae .bae-topic {
	--bae-topic: var(--bae-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	background: var(--bae-chip);
	background: color-mix(in srgb, var(--bae-topic) 13%, var(--bae-surface));
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--bae-text);
	text-decoration: none;
}

:root:root .bae a.bae-topic:hover {
	background: color-mix(in srgb, var(--bae-topic) 24%, var(--bae-surface));
}

:root:root .bae .bae-topic--more {
	padding-left: 10px;
	color: var(--bae-muted);
}

:root:root .bae-topic__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bae-topic, var(--bae-muted));
}

:root:root .bae-pill--topic {
	--bae-topic: var(--bae-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	line-height: 1.3;
}

/* Long topic names wrap inside the pill instead of leaving the box. */
:root:root .bae-pill--topic .bae-pill__label {
	min-width: 0;
	overflow-wrap: anywhere;
}

:root:root .bae-pill--topic .bae-pill__count,
:root:root .bae-pill--topic .bae-topic__dot {
	flex: none;
}

:root:root .bae-pill__count {
	font-weight: 400;
	opacity: 0.7;
}

/* Theme weekend: framed in its colour, calendar icon instead of the dot. */
:root:root .bae .bae-topic--weekend {
	border: 1px solid var(--bae-topic);
	font-weight: 600;
}

:root:root .bae-topic--weekend .bae-icon {
	flex: none;
	width: 12px;
	height: 12px;
	color: var(--bae-topic);
}

/* Selected topic: tinted in its own colour, so the colour stays readable. */
:root:root .bae .bae-pill--topic.is-active,
:root:root .bae-pill--topic.bae-pill--radio:has(input:checked) {
	background: color-mix(in srgb, var(--bae-topic) 18%, var(--bae-surface));
	border-color: var(--bae-topic);
	color: var(--bae-text);
	box-shadow: inset 0 0 0 1px var(--bae-topic);
}

/* Buttons and links */
:root:root .bae-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 24px;
	border: 2px solid var(--bae-primary);
	border-radius: 999px;
	background: var(--bae-primary);
	color: var(--bae-primary-contrast);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

:root:root .bae-button--outline {
	background: transparent;
	color: var(--bae-primary);
}

:root:root .bae-button--outline:hover {
	background: var(--bae-soft);
}

:root:root .bae-button.is-disabled {
	opacity: 0.35;
	cursor: default;
}

:root:root .bae-filter__submit {
	width: 100%;
	margin-top: 8px;
}

:root:root .bae.is-enhanced .bae-filter__submit {
	display: none;
}

:root:root .bae-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bae-accent);
	font-weight: 700;
	font-size: 0.85rem;
}

/* Results header */
:root:root .bae-results {
	margin-bottom: 8px;
}

:root:root .bae .bae-results__count {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--bae-primary);
}

:root:root .bae-results__count:focus {
	outline: none;
}

:root:root .bae .bae-start {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: var(--bae-muted);
}

:root:root .bae-start .bae-icon {
	flex: none;
}

:root:root .bae-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
}

:root:root .bae-active__label {
	color: var(--bae-muted);
}

:root:root .bae-active__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 11px;
	border: 1px solid var(--bae-accent);
	border-radius: 999px;
	background: var(--bae-accent);
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	transition: filter 0.15s ease;
}

:root:root .bae-active__clear:hover,
:root:root .bae-active__clear:focus-visible {
	color: #ffffff;
	filter: brightness(0.9);
}

/* Days */
:root:root .bae-day {
	margin-top: 22px;
}

:root:root .bae-day__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	padding-bottom: 10px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--bae-border);
}

:root:root .bae .bae-day__title {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.2;
	color: var(--bae-primary);
}

:root:root .bae-day__count {
	font-size: 0.8rem;
	color: var(--bae-muted);
}

:root:root .bae-day__more {
	margin-top: 16px;
}

/* Tile grid */
:root:root .bae-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 18px;
}

@container (min-width: 900px) {
	:root:root .bae-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

:root:root .bae-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius);
	background: var(--bae-surface);
	overflow: hidden;
	box-shadow: var(--bae-shadow);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

:root:root .bae-card:hover {
	box-shadow: 0 8px 24px rgba(31, 43, 44, 0.1);
	transform: translateY(-2px);
}

:root:root .bae-card__media {
	position: relative;
	/* Same format as the app's own preview images: nothing extra is cut off. */
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--bae-g1), var(--bae-g2));
}

:root:root .bae-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Highlight */
:root:root .bae .bae-highlight {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: var(--bae-highlight, var(--bae-accent));
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--bae-highlight-text, #ffffff);
	white-space: nowrap;
}

:root:root .bae-highlight .bae-icon {
	flex: none;
	width: 13px;
	height: 13px;
}

:root:root .bae .bae-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

:root:root .bae-card--highlight {
	border-color: var(--bae-highlight, var(--bae-accent));
	box-shadow: 0 0 0 1px var(--bae-highlight, var(--bae-accent)), var(--bae-shadow);
}

:root:root .bae .bae-highlight--inline {
	padding: 3px 9px 3px 7px;
}

:root:root .bae-month__star {
	color: var(--bae-highlight, var(--bae-accent));
}

:root:root .bae-month__event.is-highlight .bae-month__name {
	font-weight: 700;
}

:root:root .bae-card__date {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 62px;
	padding: 6px 10px 5px;
	border-radius: 8px;
	background: #ffffff;
	color: var(--bae-text);
	line-height: 1.1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root:root .bae-card__weekday {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

:root:root .bae-card__day {
	font-size: 1.15rem;
	font-weight: 700;
}

:root:root .bae-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

:root:root .bae-card__meta {
	display: flex;
	gap: 6px;
	margin: 0;
	font-size: 0.78rem;
	color: var(--bae-muted);
}

:root:root .bae .bae-card__title {
	margin: 4px 0 2px;
	font-size: 1.1rem;
	line-height: 1.25;
	color: var(--bae-primary);
}

:root:root .bae .bae-card__subtitle {
	margin: 0 0 2px;
	font-size: 0.88rem;
	line-height: 1.35;
	color: var(--bae-muted);
}

:root:root .bae-card__link {
	color: inherit;
}

/* The whole tile is clickable; the title link stays the accessible name. */
:root:root .bae-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

:root:root .bae-card__link:focus-visible {
	outline: none;
}

:root:root .bae-card:has(.bae-card__link:focus-visible) {
	outline: 2px solid var(--bae-primary);
	outline-offset: 2px;
}

:root:root .bae-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

:root:root .bae-card__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 14px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--bae-accent);
}

/* Paging, empty and error states */
:root:root .bae-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

:root:root .bae-pager__status {
	font-size: 0.8rem;
	color: var(--bae-muted);
}

:root:root .bae-empty {
	margin-top: 22px;
	padding: 32px 24px;
	border: 1px dashed var(--bae-border);
	border-radius: var(--bae-radius);
	text-align: center;
	color: var(--bae-muted);
}

:root:root .bae-empty p {
	margin: 0 0 14px;
}

:root:root .bae-empty--error {
	border-style: solid;
	background: #fdf3dc;
	border-color: #f1dfb2;
	color: #6d4a00;
}

:root:root .bae-empty__admin {
	font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
	:root:root .bae-card,
	:root:root .bae.is-loading .bae__main {
		transition: none;
	}

	:root:root .bae-card:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Detail page                                                         */
/* ------------------------------------------------------------------ */

:root:root .bae-grid--4 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@container (min-width: 1100px) {
	:root:root .bae-grid.bae-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

:root:root .bae-preview-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: var(--bae-radius-sm, 8px);
	background: #fdf3dc;
	color: #6d4a00;
	font-size: 0.85rem;
}

:root:root .bae-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	margin: 0 0 28px;
	padding: 14px 20px;
	border-radius: var(--bae-radius);
	background: var(--bae-soft);
	font-size: 0.85rem;
}

:root:root .bae-crumbs__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	color: var(--bae-accent);
}

:root:root .bae .bae-crumbs__trail {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--bae-muted);
}

:root:root .bae-crumbs__trail li + li::before {
	content: "/";
	margin-right: 6px;
}

:root:root .bae-crumbs__trail a {
	color: var(--bae-muted);
}

:root:root .bae-crumbs__trail a:hover {
	color: var(--bae-primary);
}

:root:root .bae-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

@container (min-width: 900px) {
	:root:root .bae-detail__layout {
		grid-template-columns: minmax(0, 1fr) minmax(260px, var(--bae-aside-width, 420px));
		gap: 48px;
	}

	:root:root .bae-detail__aside {
		position: sticky;
		top: 24px;
	}
}

:root:root .bae-detail__media {
	/* Width first: otherwise min-height + aspect-ratio widen the box on phones. */
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	min-height: 200px;
	max-height: 75vh;
	border-radius: var(--bae-radius);
	overflow: hidden;
	background: linear-gradient(135deg, var(--bae-g1), var(--bae-g2));
	isolation: isolate;
}

/* The whole image, never cropped ... */
:root:root .bae-detail__media .bae-detail__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ... on a blurred, slightly darkened copy of itself filling the frame. */
:root:root .bae-detail__media .bae-detail__backdrop {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(28px) saturate(1.15) brightness(0.82);
	transform: scale(1.2);
}

:root:root .bae-detail__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
}

:root:root .bae .bae-detail__title {
	margin: 14px 0 18px;
	font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
	line-height: 1.1;
	color: var(--bae-primary);
}

/* Subtitle: directly under the heading, the heading's gap moves below it. */
:root:root .bae .bae-detail__title:has(+ .bae-detail__lead) {
	margin-bottom: 8px;
}

:root:root .bae .bae-detail__lead {
	margin: 0 0 22px;
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
	line-height: 1.4;
	color: var(--bae-muted);
}

:root:root .bae-detail__description {
	font-size: 1.05rem;
	line-height: 1.6;
}

:root:root .bae-detail__description > :first-child {
	margin-top: 0;
}

:root:root .bae-detail__description a {
	color: var(--bae-accent);
	text-decoration: underline;
}

:root:root .bae-detail__dates {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--bae-border);
}

:root:root .bae .bae-detail__subtitle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 1.45rem;
	line-height: 1.2;
	color: var(--bae-primary);
}

:root:root .bae-detail__subtitle .bae-icon {
	width: 22px;
	height: 22px;
}

:root:root .bae .bae-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root:root .bae-dates__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 16px;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius-sm);
	color: var(--bae-text);
	font-size: 0.85rem;
}

:root:root .bae-dates__item strong {
	color: var(--bae-primary);
}

:root:root .bae-dates__item span {
	color: var(--bae-muted);
}

:root:root .bae-dates__item:hover {
	border-color: var(--bae-primary);
}

:root:root .bae-detail__note {
	margin: 10px 0 0;
	font-size: 0.8rem;
	color: var(--bae-muted);
}

/* Info box */
:root:root .bae-info {
	padding: 28px 30px;
	border-radius: var(--bae-radius);
	background: var(--bae-soft);
}

:root:root .bae-info__section {
	padding: 0 0 18px;
	margin: 0 0 18px;
	border-bottom: 1px solid #cfdcda;
}

:root:root .bae .bae-info p {
	margin: 0;
}

:root:root .bae .bae-info__label {
	margin-bottom: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bae-muted);
}

:root:root .bae .bae-info__value {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bae-primary);
}

:root:root .bae .bae-info__extra {
	margin-top: 4px;
	color: var(--bae-text);
}

:root:root .bae-info__extra a {
	color: var(--bae-accent);
	font-weight: 600;
}

:root:root .bae-info__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

:root:root .bae-info__actions .bae-button {
	width: 100%;
}

:root:root .bae .bae-info__hint {
	margin: -2px 0 6px;
	text-align: center;
	font-size: 0.78rem;
	color: var(--bae-muted);
}

:root:root .bae-button--accent {
	border-color: var(--bae-accent);
	background: var(--bae-accent);
	color: #ffffff;
}

:root:root .bae-button--accent:hover {
	filter: brightness(0.95);
}

:root:root .bae-detail .bae-button {
	text-align: center;
}

/* More from the series */
:root:root .bae-detail__more {
	margin-top: 56px;
	padding: 40px 0 0;
	border-top: 1px solid var(--bae-border);
}

:root:root .bae-detail__more-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 18px;
}

:root:root .bae-detail__more-head .bae-detail__subtitle {
	margin: 0;
}

:root:root .bae-detail__error {
	max-width: 720px;
}

:root:root .bae-detail__error > p {
	margin: 0 0 18px;
}

/* ------------------------------------------------------------------ */
/* Narrow layout (mobile mockups)                                      */
/* ------------------------------------------------------------------ */

:root:root .bae-mbar,
:root:root .bae-more {
	display: none;
}

:root:root .bae-button--small {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.9rem;
}

@container (max-width: 899.98px) {
	:root:root .bae__sidebar,
	:root:root .bae-pager,
	:root:root .bae-results__count,
	:root:root .bae-day__more:not(.is-capped) {
		display: none;
	}

	:root:root .bae-mbar,
	:root:root .bae-more {
		display: block;
	}

	:root:root .bae__tabs {
		gap: 8px;
		margin-bottom: 20px;
	}

	:root:root .bae__tab {
		padding: 8px 16px;
		font-size: 0.9rem;
		box-shadow: none;
	}

	:root:root .bae__tab-count {
		display: none;
	}

	:root:root .bae__tabs-sep {
		display: none;
	}

	/* Own line below the tabs on narrow layouts. */
	:root:root .bae__venue {
		flex-basis: 100%;
	}

	:root:root .bae__venue select {
		width: 100%;
		padding: 8px 40px 8px 40px;
		font-size: 0.9rem;
		box-shadow: none;
	}

	:root:root .bae__venue .bae-icon--pin {
		left: 14px;
	}

	:root:root .bae__venue .bae-icon--chevron-down {
		right: 14px;
	}

	:root:root .bae-results {
		margin: 0;
	}

	:root:root .bae-day {
		margin-top: 18px;
	}

	:root:root .bae .bae-day__title {
		font-size: 1.3rem;
	}

	:root:root .bae-day__head {
		flex-direction: column;
		gap: 2px;
		border-bottom: 0;
		padding-bottom: 0;
		margin-bottom: 14px;
	}

	:root:root .bae-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@container (min-width: 900px) {
	:root:root .bae-card--overflow {
		display: none;
	}
}

:root:root .bae-mbar {
	position: relative;
	margin-bottom: 8px;
}

:root:root .bae-mbar__row,
:root:root .bae-mbar__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

:root:root .bae-mbar__month {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bae-primary);
}

:root:root .bae-mbar__actions {
	margin-top: 16px;
}

/* Popovers (calendar, search) without script: <details>. */
:root:root .bae-pop > summary {
	list-style: none;
	cursor: pointer;
}

:root:root .bae-pop > summary::-webkit-details-marker {
	display: none;
}

:root:root .bae-pop__panel {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 30;
	margin-top: 8px;
	padding: 12px;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius);
	background: var(--bae-surface);
	box-shadow: 0 12px 32px rgba(31, 43, 44, 0.14);
}

:root:root .bae-pop--cal .bae-cal {
	border: 0;
	padding: 0;
}

:root:root .bae-msearch {
	display: flex;
	gap: 8px;
}

:root:root .bae-msearch .bae-search {
	flex: 1;
}

:root:root .bae .bae-msearch input[type="search"] {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px 8px 32px;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius-sm);
	font: inherit;
	font-size: 0.9rem;
}

:root:root .bae-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #ffffff;
	color: var(--bae-primary);
	font-size: 0.72rem;
	font-weight: 700;
}

/* Day strip */
:root:root .bae .bae-strip {
	display: flex;
	gap: 8px;
	margin: 12px 0 0;
	padding: 2px 2px 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

:root:root .bae-strip::-webkit-scrollbar {
	display: none;
}

:root:root .bae-strip li {
	flex: none;
	scroll-snap-align: start;
}

:root:root .bae-strip__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 60px;
	border: 1px solid var(--bae-border);
	border-radius: 10px;
	background: var(--bae-surface);
	color: var(--bae-text);
	line-height: 1.1;
}

:root:root .bae-strip__wd {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

:root:root .bae-strip__d {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--bae-primary);
}

:root:root .bae-strip__day.is-active {
	background: var(--bae-primary);
	border-color: var(--bae-primary);
	color: var(--bae-primary-contrast);
}

:root:root .bae-strip__day.is-active .bae-strip__d {
	color: inherit;
}

:root:root .bae-strip__day.is-empty {
	opacity: 0.4;
}

/* Load more */
:root:root .bae-more {
	margin-top: 24px;
	text-align: center;
}

:root:root .bae-more__button {
	width: 100%;
}

:root:root .bae-more__button.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

:root:root .bae .bae-more__status {
	margin: 10px 0 0;
	font-size: 0.8rem;
	color: var(--bae-muted);
}

/* Filter sheet (full-screen overlay) */
html.bae-sheet-open {
	overflow: hidden;
}

:root:root .bae-sheet {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #ffffff;
	color: var(--bae-text);
}

:root:root .bae-sheet.is-open,
:root:root .bae-sheet:target {
	display: block;
}

:root:root .bae-sheet__form {
	display: flex;
	flex-direction: column;
	height: 100%;
}

:root:root .bae-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--bae-border);
}

:root:root .bae .bae-sheet__title {
	margin: 0;
	font-size: 1.7rem;
	line-height: 1.2;
	color: var(--bae-primary);
}

:root:root .bae-sheet__close {
	display: inline-flex;
	padding: 6px;
	color: var(--bae-primary);
}

:root:root .bae-sheet__close .bae-icon {
	width: 26px;
	height: 26px;
}

:root:root .bae-sheet__body {
	flex: 1;
	overflow-y: auto;
	padding: 4px 20px 24px;
	-webkit-overflow-scrolling: touch;
}

:root:root .bae-sheet__body .bae-field {
	border-top: 0;
	padding: 18px 0 0;
}

:root:root .bae-sheet__body .bae-field__label {
	font-size: 1rem;
	margin-bottom: 10px;
}

:root:root .bae .bae-sheet select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius-sm);
	background: #ffffff;
	color: var(--bae-text);
	font: inherit;
	font-size: 1rem;
}

:root:root .bae-sheet__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--bae-border);
	background: #ffffff;
}

:root:root .bae-sheet__reset {
	font-weight: 700;
	color: var(--bae-accent);
}

:root:root .bae-sheet__submit {
	flex: 1;
	min-height: 52px;
	font-size: 1rem;
}

:root:root .bae-sheet__submit.is-counting {
	opacity: 0.75;
}

:root:root .bae-sheet__submit:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Pill radio buttons */
:root:root .bae .bae-pills {
	margin: 0;
	padding: 18px 0 0;
	border: 0;
	min-width: 0;
}

:root:root .bae-pills legend {
	padding: 0;
}

:root:root .bae-pills__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

:root:root .bae-pill--radio {
	position: relative;
	padding: 9px 18px;
	font-size: 0.95rem;
	cursor: pointer;
}

:root:root .bae-pill--radio input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

:root:root .bae-pill--radio:has(input:checked) {
	background: var(--bae-primary);
	border-color: var(--bae-primary);
	color: var(--bae-primary-contrast);
}

:root:root .bae-pill--radio:has(input:focus-visible) {
	outline: 2px solid var(--bae-primary);
	outline-offset: 2px;
}

:root:root .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Theme resets style button/[type=submit] with the same specificity as
   .bae-button and load later: raise ours. */
:root:root .bae .bae-button {
	border: 2px solid var(--bae-primary);
	border-radius: 999px;
	background: var(--bae-primary);
	color: var(--bae-primary-contrast);
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
	text-transform: none;
}

:root:root .bae .bae-button--outline {
	background: transparent;
	color: var(--bae-primary);
}

:root:root .bae .bae-button--outline:hover,
:root:root .bae .bae-button--outline:focus-visible {
	background: var(--bae-soft);
	color: var(--bae-primary);
}

:root:root .bae .bae-button--accent {
	border-color: var(--bae-accent);
	background: var(--bae-accent);
	color: #ffffff;
}

:root:root .bae .bae-button--accent:hover,
:root:root .bae .bae-button--accent:focus-visible {
	background: var(--bae-accent);
	color: #ffffff;
	filter: brightness(0.95);
}

:root:root .bae .bae-sheet__submit {
	min-width: 0;
	padding: 12px 16px;
}

/* Legends sit on the fieldset border by default; make them behave like labels. */
:root:root .bae .bae-pills {
	padding-top: 0;
	margin-top: 18px;
}

:root:root .bae .bae-pills > legend {
	float: left;
	width: 100%;
}

:root:root .bae-pills__list {
	clear: both;
}

/* An open search field pushes the list down instead of covering it. */
:root:root .bae-mbar:has(.bae-pop--search[open]) {
	padding-bottom: 76px;
}

:root:root .bae-pop--search .bae-pop__panel {
	box-shadow: none;
	padding: 10px;
}

/* ------------------------------------------------------------------ */
/* Views: switch, list, month                                          */
/* ------------------------------------------------------------------ */

:root:root .bae-results__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-bottom: 8px;
}

:root:root .bae .bae-results__bar .bae-results__count {
	margin: 0;
}

:root:root .bae-results__tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Calendar subscription */
:root:root .bae-subscribe {
	position: relative;
}

:root:root .bae .bae-subscribe__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--bae-border);
	border-radius: 10px;
	background: var(--bae-surface);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--bae-primary);
	list-style: none;
	cursor: pointer;
}

:root:root .bae-subscribe__toggle::-webkit-details-marker {
	display: none;
}

:root:root .bae-subscribe__toggle:hover,
:root:root .bae-subscribe[open] .bae-subscribe__toggle {
	border-color: var(--bae-primary);
}

:root:root .bae-subscribe__toggle:focus-visible {
	outline: 2px solid var(--bae-primary);
	outline-offset: 2px;
}

:root:root .bae-subscribe__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	width: min(300px, calc(100vw - 32px));
	padding: 14px;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius);
	background: var(--bae-surface);
	box-shadow: 0 12px 32px rgba(31, 43, 44, 0.16);
}

:root:root .bae .bae-subscribe__title {
	margin: 0 0 4px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--bae-primary);
}

:root:root .bae .bae-subscribe__intro {
	margin: 0 0 10px;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--bae-muted);
}

:root:root .bae .bae-subscribe__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: left;
	color: var(--bae-text);
	text-decoration: none;
	cursor: pointer;
}

:root:root .bae .bae-subscribe__item:hover,
:root:root .bae .bae-subscribe__item:focus-visible {
	background: var(--bae-soft);
	color: var(--bae-primary);
}

:root:root .bae .bae-subscribe__copy {
	margin-top: 4px;
	border-top: 1px solid var(--bae-border);
	border-radius: 0 0 8px 8px;
	color: var(--bae-accent);
}

:root:root .bae .bae-subscribe__copy.is-copied {
	color: var(--bae-primary);
}

:root:root .bae-subscribe__item .bae-icon {
	flex: none;
	opacity: 0.6;
}

/* Full-width variant (detail page info box). */
:root:root .bae-subscribe--block > summary {
	width: 100%;
	list-style: none;
	cursor: pointer;
}

:root:root .bae-subscribe--block > summary::-webkit-details-marker {
	display: none;
}

:root:root .bae-subscribe--block .bae-subscribe__menu {
	left: 0;
	right: 0;
	width: auto;
	padding: 8px;
}

/* Share links */
:root:root .bae-share {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--bae-border);
}

:root:root .bae-share__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

:root:root .bae .bae-share__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--bae-border);
	border-radius: 8px;
	background: var(--bae-surface);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--bae-text);
	text-decoration: none;
	cursor: pointer;
}

:root:root .bae .bae-share__item:hover,
:root:root .bae .bae-share__item:focus-visible {
	border-color: var(--bae-primary);
	color: var(--bae-primary);
}

:root:root .bae-share__item .bae-icon {
	flex: none;
}

:root:root .bae-share__item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

:root:root .bae .bae-share__item.is-copied {
	border-color: var(--bae-primary);
	color: var(--bae-primary);
}

:root:root .bae-share__native {
	grid-column: 1 / -1;
	justify-content: center;
}

:root:root .bae-share__native[hidden] {
	display: none;
}

:root:root .bae-views {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--bae-soft);
}

:root:root .bae-views__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--bae-muted);
}

:root:root .bae-views__item:hover {
	color: var(--bae-primary);
}

:root:root .bae-views__item.is-active {
	background: #ffffff;
	color: var(--bae-primary);
	box-shadow: 0 1px 3px rgba(31, 43, 44, 0.12);
}

/* Narrow: compact switch with icons only (the count beside it is hidden). */
@container (max-width: 899.98px) {
	:root:root .bae-results__bar {
		justify-content: flex-end;
		margin: 14px 0 0;
	}

	:root:root .bae-views__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	:root:root .bae-views__item {
		padding: 8px 10px;
	}

	:root:root .bae-results__tools {
		width: 100%;
		justify-content: space-between;
	}

	/* The button sits on the left here: open the menu to the right. */
	:root:root .bae-subscribe__menu {
		right: auto;
		left: 0;
	}
}

/* List */
:root:root .bae-rows {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bae-border);
	border-radius: var(--bae-radius);
	background: var(--bae-surface);
	overflow: hidden;
}

:root:root .bae-row {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 18px 14px 20px;
	border-top: 1px solid var(--bae-border);
	transition: background 0.15s ease;
}

:root:root .bae-row:first-child {
	border-top: 0;
}

:root:root .bae-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--bae-g1);
}

:root:root .bae-row:hover {
	background: var(--bae-soft);
}

:root:root .bae-row:has(.bae-card__link:focus-visible) {
	outline: 2px solid var(--bae-primary);
	outline-offset: -2px;
}

:root:root .bae-row__time {
	display: flex;
	flex-direction: column;
	font-size: 0.85rem;
	line-height: 1.3;
	color: var(--bae-muted);
}

:root:root .bae-row__time strong {
	font-size: 0.95rem;
	color: var(--bae-primary);
}

:root:root .bae .bae-row__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--bae-primary);
}

:root:root .bae .bae-row__subtitle {
	margin: 2px 0 0;
	font-size: 0.88rem;
	line-height: 1.35;
	color: var(--bae-muted);
}

:root:root .bae .bae-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--bae-muted);
}

:root:root .bae-row__place {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

:root:root .bae-row__arrow {
	color: var(--bae-accent);
}

@container (max-width: 599.98px) {
	:root:root .bae-row {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 10px;
		padding: 12px 14px 12px 16px;
	}

	:root:root .bae-row__time {
		font-size: 0.78rem;
		hyphens: auto;
		overflow-wrap: anywhere;
	}

	:root:root .bae-row__time strong {
		font-size: 0.82rem;
	}

	:root:root .bae-row__arrow {
		display: none;
	}
}

/* Month */
:root:root .bae-month {
	margin-top: 14px;
}

:root:root .bae-month__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

:root:root .bae .bae-month__title {
	margin: 0 6px;
	font-size: 1.35rem;
	color: var(--bae-primary);
}

:root:root .bae-month__nav {
	display: inline-flex;
	padding: 6px;
	border: 1px solid var(--bae-border);
	border-radius: 8px;
	color: var(--bae-primary);
}

:root:root .bae-month__nav:hover {
	background: var(--bae-soft);
}

:root:root .bae-month__today {
	margin-left: auto;
}

:root:root .bae .bae-month__empty {
	margin: 0 0 12px;
	color: var(--bae-muted);
	font-size: 0.85rem;
}

:root:root .bae-month__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--bae-border);
	border-left: 1px solid var(--bae-border);
	border-radius: var(--bae-radius-sm);
	overflow: hidden;
}

:root:root .bae-month__wd {
	padding: 8px 6px;
	border-right: 1px solid var(--bae-border);
	border-bottom: 1px solid var(--bae-border);
	background: var(--bae-soft);
	font-size: 0.72rem;
	font-weight: 700;
	text-align: center;
	color: var(--bae-muted);
}

:root:root .bae-month__day {
	min-height: 110px;
	padding: 6px;
	border-right: 1px solid var(--bae-border);
	border-bottom: 1px solid var(--bae-border);
	background: var(--bae-surface);
}

:root:root .bae-month__day.is-outside {
	background: #fafbfb;
}

:root:root .bae-month__day.is-outside .bae-month__num {
	opacity: 0.4;
}

:root:root .bae-month__day.is-selected {
	background: #f2f7f6;
}

:root:root .bae .bae-month__date {
	margin: 0 0 4px;
}

:root:root .bae-month__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--bae-text);
}

:root:root .bae-month__day.is-today .bae-month__num {
	background: var(--bae-primary);
	color: var(--bae-primary-contrast);
}

:root:root .bae-month__long {
	display: none;
}

:root:root .bae .bae-month__list {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root:root .bae-month__event a,
:root:root .bae-month__event > span {
	display: block;
	overflow: hidden;
	padding: 2px 6px 2px 8px;
	border-left: 3px solid var(--bae-dot);
	border-radius: 4px;
	background: var(--bae-soft);
	font-size: 0.72rem;
	line-height: 1.35;
	color: var(--bae-text);
	white-space: nowrap;
	text-overflow: ellipsis;
}

:root:root .bae-month__event a:hover {
	background: #e2ebe9;
}

:root:root .bae-month__time {
	font-weight: 700;
	color: var(--bae-primary);
}

:root:root .bae-month__more {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--bae-accent);
}

/* Day buttons and the day list below the grid: narrow layouts only. */
:root:root .bae-month__pick,
:root:root .bae-month__agenda {
	display: none;
}

/* Narrow: a compact grid with one dot per date; tapping a day lists its
   dates below. Without the script all days with dates are listed. */
@container (max-width: 699.98px) {
	:root:root .bae-month__grid {
		border: 0;
		border-radius: 0;
		row-gap: 2px;
	}

	:root:root .bae-month__wd {
		padding: 4px 0 6px;
		border: 0;
		background: transparent;
		font-size: 0.7rem;
	}

	:root:root .bae-month__day {
		min-height: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}

	:root:root .bae-month__day.is-outside,
	:root:root .bae-month__day.is-selected {
		background: transparent;
	}

	:root:root .bae .bae-month__date,
	:root:root .bae .bae-month__list,
	:root:root .bae .bae-month__more {
		display: none;
	}

	:root:root .bae-month__pick {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		width: 100%;
		min-height: 52px;
		margin: 0;
		padding: 6px 0 4px;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: var(--bae-muted);
		font: inherit;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	:root:root .bae-month__day.has-events .bae-month__pick {
		color: var(--bae-text);
	}

	:root:root .bae-month__pnum {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 999px;
		font-size: 0.95rem;
		font-weight: 600;
		line-height: 1;
	}

	:root:root .bae-month__day.has-events .bae-month__pnum {
		font-weight: 800;
	}

	:root:root .bae-month__day.is-today .bae-month__pnum {
		box-shadow: inset 0 0 0 2px var(--bae-primary);
		color: var(--bae-primary);
	}

	:root:root .bae-month__day.is-picked .bae-month__pnum {
		background: var(--bae-primary);
		box-shadow: none;
		color: var(--bae-primary-contrast);
	}

	:root:root .bae-month__pick:focus-visible {
		outline: 2px solid var(--bae-primary);
		outline-offset: -2px;
	}

	:root:root .bae-month__dots {
		display: flex;
		align-items: center;
		gap: 3px;
		height: 6px;
	}

	:root:root .bae-month__dots i {
		width: 6px;
		height: 6px;
		border-radius: 999px;
		background: var(--bae-dot);
	}

	:root:root .bae-month__dots b {
		font-size: 0.6rem;
		font-weight: 800;
		line-height: 1;
		color: var(--bae-muted);
	}

	/* Day list below the grid. */
	:root:root .bae-month__agenda {
		display: block;
		margin-top: 14px;
		padding-top: 16px;
		border-top: 1px solid var(--bae-border);
	}

	:root:root .bae-month__aday {
		margin-bottom: 18px;
	}

	:root:root .bae-month__aday.is-empty {
		display: none;
	}

	/* With the script: only the picked day, empty or not. */
	:root:root .bae.is-enhanced .bae-month__aday {
		display: none;
	}

	:root:root .bae.is-enhanced .bae-month__aday.is-picked {
		display: block;
	}

	:root:root .bae .bae-month__ahead {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px 10px;
		margin: 0 0 10px;
		font-size: 1.05rem;
		font-weight: 800;
		color: var(--bae-primary);
	}

	:root:root .bae-month__ahead span {
		font-size: 0.78rem;
		font-weight: 600;
		color: var(--bae-muted);
	}

	:root:root .bae .bae-month__anone {
		margin: 0;
		padding: 14px;
		border-radius: var(--bae-radius-sm);
		background: var(--bae-soft);
		font-size: 0.88rem;
		color: var(--bae-muted);
	}

	:root:root .bae .bae-month__alist {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	:root:root .bae-month__aitem > a,
	:root:root .bae-month__aitem > span {
		display: flex;
		flex-direction: column;
		gap: 2px;
		padding: 10px 12px 10px 14px;
		border: 1px solid var(--bae-border);
		border-left: 4px solid var(--bae-dot);
		border-radius: var(--bae-radius-sm);
		background: var(--bae-surface);
		color: var(--bae-text);
	}

	:root:root .bae-month__aitem > a:hover,
	:root:root .bae-month__aitem > a:focus-visible {
		background: var(--bae-soft);
	}

	:root:root .bae-month__atime {
		font-size: 0.78rem;
		font-weight: 700;
		color: var(--bae-primary);
	}

	:root:root .bae-month__aname {
		font-size: 0.95rem;
		font-weight: 700;
		line-height: 1.3;
	}

	:root:root .bae-month__aplace {
		font-size: 0.78rem;
		color: var(--bae-muted);
	}
}

/* Month name in the sidebar calendar selects the whole month. */
:root:root a.bae-cal__month {
	color: var(--bae-text);
	border-radius: 6px;
	padding: 2px 6px;
}

:root:root a.bae-cal__month:hover {
	background: var(--bae-soft);
	color: var(--bae-primary);
}

/* Month arrows without dates beyond them. */
:root:root .bae-cal__nav.is-disabled,
:root:root .bae-month__nav.is-disabled {
	opacity: 0.3;
	cursor: default;
}

:root:root .bae-month__nav.is-disabled:hover,
:root:root .bae-cal__nav.is-disabled:hover {
	background: transparent;
}
