/* Bearius Calendar Pro - extra views and event page layouts.
   Uses the same custom properties as the free plugin (1.1.3 or newer):
   cards paint --bcal-surface and use the calendar colours, everything else
   sits on the page and uses the theme text colour. Rules use the
   --bcal-ctx-* tokens, which hold the page values on the calendar root and
   the card values inside the cards listed below. */

/* Cards: calendar colours inside. */
:where(.bcal) :where(.bcalp-badge, .bcalp-poster, .bcalp-ticket, .bcalp-square__date, .bcalp-sp__buy, .bcalp-st__card, .bcalp-tabs, .bcalp-tl__tile, .bcalp-tl__card, .bcalp-wk__scroll, .bcalp-sc__scroll, .bcalp-cr__card, .bcalp-cr__badge, .bcalp-cr__cat, .bcalp-hr--top .bcalp-hr__row, .bcalp-hr__tile, .bcalp-ag__box, .bcalp-mc, .bcalp-hr__main.is-overlay .bcalp-hr__panel) {
	--bcal-ctx-text: var(--bcal-text);
	--bcal-ctx-muted: var(--bcal-muted);
	--bcal-ctx-ink: var(--bcal-accent-ink);
	--bcal-ctx-line: var(--bcal-border);
	--bcal-ctx-soft: var(--bcal-soft);
	--bcal-ctx-tint: var(--bcal-tint);
	--bcal-ctx-surface: var(--bcal-surface);
	color: var(--bcal-text);
}

/* Shared badge */
:where(.bcalp-badge) {
	position: absolute; top: 12px; left: 12px;
	display: flex; flex-direction: column; align-items: center;
	min-width: 56px; padding: 6px 8px;
	border-radius: var(--bcal-radius-sm);
	background: var(--bcal-surface); color: var(--bcal-ctx-text);
	line-height: 1; box-shadow: 0 2px 10px rgb(0 0 0 / 0.12);
}
:where(.bcalp-badge) b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
:where(.bcalp-badge) span { margin-top: 3px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--bcal-ctx-ink); }

/* Posters */
:where(.bcalp-posters) {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--bcal-gap); margin: 0; padding: 0; list-style: none;
}
:where(.bcalp-poster) {
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--bcal-radius);
	background: var(--bcal-surface);
	box-shadow: 0 0 0 1px var(--bcal-ctx-line);
}
:where(.bcalp-poster__media) { position: relative; display: block; }
:where(.bcalp-poster__img) { aspect-ratio: 4 / 5; border-radius: 0; font-size: 2rem; }
:where(.bcalp-poster__cat) {
	position: absolute; right: 12px; bottom: 12px;
	padding: 4px 12px; border-radius: 999px;
	background: rgb(0 0 0 / 0.62); color: #fff;
	font-size: 0.75rem; font-weight: 600;
}
:where(.bcalp-poster__body) { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
:where(.bcalp-poster__when) { font-size: 0.8125rem; font-weight: 700; color: var(--bcal-ctx-ink); }
:where(.bcalp-poster__title) { margin: 0; font-size: 1.125rem; line-height: 1.25; }
:where(.bcalp-poster__title) a { text-decoration: none; }
:where(.bcalp-poster__place) { font-size: 0.875rem; color: var(--bcal-ctx-muted); }
:where(.bcalp-poster__body) > .bcal-status { align-self: flex-start; }
:where(.bcalp-poster__foot) {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bcal-ctx-line);
}
:where(.bcalp-poster.is-featured) { box-shadow: 0 0 0 2px var(--bcal-accent); }

/* Tickets */
:where(.bcalp-tickets) { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
:where(.bcalp-ticket) {
	display: grid; grid-template-columns: 112px minmax(0, 1fr) auto;
	align-items: stretch;
	border-radius: var(--bcal-radius);
	background: var(--bcal-surface);
	box-shadow: 0 0 0 1px var(--bcal-ctx-line);
}
:where(.bcalp-ticket__stub, .bcalp-st__stub) {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 16px 10px;
	border-radius: var(--bcal-radius) 0 0 var(--bcal-radius);
	background: var(--bcal-accent); color: var(--bcal-on-accent);
	text-align: center; line-height: 1.1;
}
:where(.bcalp-ticket__stub, .bcalp-st__stub)::after {
	content: ""; position: absolute; top: 8px; bottom: 8px; right: -1px;
	border-right: 2px dashed var(--bcal-surface);
}
:where(.bcalp-ticket__day) { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
:where(.bcalp-ticket__month) { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
:where(.bcalp-ticket__wd) { font-size: 0.75rem; opacity: 0.9; }
:where(.bcalp-ticket__time) { margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--bcal-on-accent) 12%, transparent); font-size: 0.8125rem; font-weight: 700; }
:where(.bcalp-ticket__body) { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 20px; min-width: 0; }
:where(.bcalp-ticket__cat) { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bcal-ctx-ink); }
:where(.bcalp-ticket__title) { margin: 0; font-size: 1.1875rem; line-height: 1.25; }
:where(.bcalp-ticket__title) a { text-decoration: none; }
:where(.bcalp-ticket__place) { font-size: 0.875rem; color: var(--bcal-ctx-muted); }
:where(.bcalp-ticket__body) > .bcal-status { align-self: flex-start; }
:where(.bcalp-ticket__side) {
	display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px;
	padding: 16px 20px; border-left: 1px dashed var(--bcal-ctx-line);
}
:where(.bcalp-ticket.is-featured) { box-shadow: 0 0 0 2px var(--bcal-accent); }

/* Grid (squares) */
:where(.bcalp-grid) {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 6px; margin: 0; padding: 0; list-style: none;
}
:where(.bcalp-square) { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--bcal-radius-sm); background: var(--bcal-accent); }
:where(.bcalp-square__link) { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
:where(.bcalp-square__img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
:where(.bcalp-square.has-image .bcalp-square__link)::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.05) 55%, rgb(0 0 0 / 0.25));
}
:where(.bcalp-square.no-image .bcalp-square__link) { color: var(--bcal-on-accent); }
:where(.bcalp-square__link):hover .bcalp-square__img { transform: scale(1.04); }
:where(.bcalp-square__date) {
	position: absolute; top: 10px; left: 10px; z-index: 1;
	padding: 3px 9px; border-radius: 999px;
	background: var(--bcal-surface); color: var(--bcal-ctx-text);
	font-size: 0.75rem; font-weight: 600;
}
:where(.bcalp-square__txt) { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
:where(.bcalp-square__title) {
	font-size: 1rem; font-weight: 800; line-height: 1.2;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:where(.bcalp-square.no-image .bcalp-square__title) { font-size: 1.25rem; }
:where(.bcalp-square__place) { font-size: 0.75rem; opacity: 0.9; }

/* Single: Poster */
:where(.bcalp-sp__top) {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(24px, 4vw, 56px); align-items: start;
	margin-bottom: clamp(28px, 4vw, 48px);
}
:where(.bcalp-sp__poster) {
	overflow: hidden; border-radius: var(--bcal-radius);
	aspect-ratio: 4 / 5; background: var(--bcal-ctx-soft);
	box-shadow: 0 12px 40px rgb(0 0 0 / 0.12);
}
:where(.bcalp-sp__poster) img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.bcalp-sp__fallback) {
	display: flex; align-items: flex-end; height: 100%; padding: 28px;
	background: var(--bcal-accent); color: var(--bcal-on-accent);
	font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em;
}
:where(.bcalp-sp__facts) { display: flex; flex-direction: column; gap: 18px; }
:where(.bcalp-sp__facts) > .bcal-tag, :where(.bcalp-sp__facts) > .bcal-status { align-self: flex-start; }
:where(.bcalp-sp__title) { margin: 0; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
:where(.bcalp-sp__list) { display: flex; flex-direction: column; gap: 14px; margin: 0; }
:where(.bcalp-sp__list) > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sp__list) dt { margin: 0; color: var(--bcal-ctx-ink); }
:where(.bcalp-sp__list) dd { display: flex; flex-direction: column; gap: 3px; margin: 0; }
:where(.bcalp-sp__list) dd span { color: var(--bcal-ctx-muted); font-size: 0.9375rem; }
:where(.bcalp-sp__buy) {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
	padding: 18px; border-radius: var(--bcal-radius);
	background: var(--bcal-surface); box-shadow: 0 0 0 1px var(--bcal-ctx-line);
}
:where(.bcalp-sp__price) { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
:where(.bcalp-sp__buttons) { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; justify-content: flex-end; }
:where(.bcalp-sp__content) { margin: 0 auto 24px; }

/* Single: Ticket */
:where(.bcalp-st__hero) { margin: 0 0 -48px; overflow: hidden; border-radius: var(--bcal-radius); aspect-ratio: 12 / 5; max-height: 460px; background: var(--bcal-ctx-soft); }
:where(.bcalp-st__hero) img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.bcalp-st__card) {
	position: relative;
	display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px;
	margin: 0 clamp(0px, 3vw, 32px) 24px;
	border-radius: var(--bcal-radius);
	background: var(--bcal-surface);
	box-shadow: 0 0 0 1px var(--bcal-ctx-line), 0 16px 40px rgb(0 0 0 / 0.1);
}
:where(.bcalp-st__main) { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; min-width: 0; }
:where(.bcalp-st__main) > .bcal-status { align-self: flex-start; }
:where(.bcalp-st__title) { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
:where(.bcalp-st__place) { display: flex; gap: 10px; }
:where(.bcalp-st__place) > div { display: flex; flex-direction: column; gap: 3px; }
:where(.bcalp-st__buy) {
	display: flex; flex-direction: column; justify-content: center; gap: 12px;
	padding: 24px; border-left: 2px dashed var(--bcal-ctx-line);
}
:where(.bcalp-st__price) { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
:where(.bcalp-st) > .bcal-utility { max-width: 480px; margin: 0 auto 28px; }
:where(.bcalp-st__content) { margin: 0 auto 24px; }

/* Place card */
:where(.bcal-copy) {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	min-height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--bcal-ctx-muted); font: inherit; font-size: 0.875rem; font-weight: 600;
}
:where(.bcal-copy):hover { color: var(--bcal-ctx-text); }

@media (max-width: 900px) {
	:where(.bcalp-sp__top) { grid-template-columns: minmax(0, 1fr); }
	:where(.bcalp-sp__poster) { max-width: 480px; width: 100%; margin-inline: auto; }
	:where(.bcalp-st__card) { grid-template-columns: 120px minmax(0, 1fr); }
	:where(.bcalp-st__buy) { grid-column: 1 / -1; border-left: 0; border-top: 2px dashed var(--bcal-ctx-line); }
	:where(.bcalp-st__stub) { border-radius: var(--bcal-radius) 0 0 0; }
}

@media (max-width: 640px) {
	:where(.bcalp-posters) { grid-template-columns: minmax(0, 1fr); }
	:where(.bcalp-ticket) { grid-template-columns: 84px minmax(0, 1fr); }
	:where(.bcalp-ticket__day) { font-size: 1.75rem; }
	:where(.bcalp-ticket__body) { padding: 12px 14px; }
	:where(.bcalp-ticket__title) { font-size: 1.0625rem; }
	:where(.bcalp-ticket__side) {
		grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center;
		padding: 12px 14px; border-left: 0; border-top: 1px dashed var(--bcal-ctx-line);
	}
	:where(.bcalp-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
	:where(.bcalp-square__title) { font-size: 0.875rem; }
	:where(.bcalp-sp__buttons) { justify-content: stretch; }
	:where(.bcalp-sp__buttons) .bcal-btn { flex: 1 1 100%; }
	:where(.bcalp-st__hero) { margin-bottom: 16px; aspect-ratio: 16 / 9; }
	:where(.bcalp-st__card) { grid-template-columns: minmax(0, 1fr); margin-inline: 0; }
	:where(.bcalp-st__stub) { flex-direction: row; gap: 10px; padding: 12px 16px; border-radius: var(--bcal-radius) var(--bcal-radius) 0 0; }
	:where(.bcalp-st__stub)::after { display: none; }
	:where(.bcalp-st__main) { padding: 18px; }
	:where(.bcalp-st__buy) { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	:where(.bcalp-square__img) { transition: none; }
}

/* ==========================================================================
   Views: Timeline, Week, Schedule, Carousel, Hero, Agenda, Mini calendar
   All colours come from the calendar tokens, so light, dark and "theme"
   modes work without extra rules. Category colours arrive as --c and are
   mixed with the surface and text colours to stay readable in both modes.
   ========================================================================== */

:where(.bcalp-ev, .bcalp-legend li) { --c: var(--bcal-accent); }

/* Shared event block (Week, Schedule) */
:where(.bcalp-ev) {
	position: absolute; box-sizing: border-box; z-index: 1;
	display: flex; flex-direction: column; gap: 2px; overflow: hidden;
	padding: 6px 8px; border-radius: var(--bcal-radius-sm);
	background: color-mix(in srgb, var(--c) 14%, var(--bcal-ctx-surface, var(--bcal-surface)));
	border: 1px solid color-mix(in srgb, var(--c) 38%, var(--bcal-ctx-surface, var(--bcal-surface)));
	text-decoration: none; line-height: 1.25;
	transition: background-color 0.15s;
}
:where(.bcalp-ev):hover { background: color-mix(in srgb, var(--c) 22%, var(--bcal-ctx-surface, var(--bcal-surface))); }
:where(.bcalp-ev__time) { font-size: 0.75rem; font-weight: 700; color: color-mix(in srgb, var(--c) 62%, var(--bcal-ctx-text)); white-space: nowrap; }
:where(.bcalp-ev__title) {
	font-size: 0.8125rem; font-weight: 700;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
:where(.bcalp-ev__title--lg) { font-size: 0.9375rem; }
:where(.bcalp-ev__sub) { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.bcalp-ev--bar) {
	position: relative; display: flex; flex-direction: row; align-items: center;
	margin: 0 3px; padding: 0 10px; font-size: 0.8125rem; font-weight: 700;
	white-space: nowrap; text-overflow: ellipsis;
}

/* Legend */
:where(.bcalp-legend) { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 600; }
:where(.bcalp-legend li) { display: inline-flex; align-items: center; gap: 7px; }
:where(.bcalp-legend li)::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* Tabs (Schedule days, Agenda periods) */
:where(.bcalp-tabs) {
	display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 16px;
	border-radius: var(--bcal-radius); background: var(--bcal-surface); box-shadow: 0 0 0 1px var(--bcal-ctx-line);
}
:where(.bcalp-tabs--wide) { display: flex; margin-bottom: 0; }
:where(.bcalp-tabs--wide .bcalp-tabs__item) { flex: 1 1 0; }
:where(.bcalp-tabs__item) {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 44px; padding: 4px 16px; border-radius: var(--bcal-radius-sm);
	text-decoration: none; font-size: 0.875rem; line-height: 1.2;
}
:where(.bcalp-tabs__item) span { font-size: 0.75rem; opacity: 0.8; }

/* Timeline */
:where(.bcalp-tl) { --axis: 60px; display: flex; flex-direction: column; }
:where(.bcalp-tl--alternate) { --axis: 50%; }
:where(.bcalp-tl__head, .bcalp-tl__row) { position: relative; }
:where(.bcalp-tl__head)::before, :where(.bcalp-tl__row)::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: var(--axis); width: 2px; margin-left: -1px; background: var(--bcal-ctx-line);
}
:where(.bcalp-tl__head) { display: flex; padding: 6px 0 22px calc(120px + 24px); }
:where(.bcalp-tl--alternate .bcalp-tl__head) { justify-content: center; padding-left: 0; }
:where(.bcalp-tl__day) { position: relative; margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
:where(.bcalp-tl--alternate .bcalp-tl__day) { padding: 8px 20px; border-radius: 999px; font-size: 1rem; background: var(--bcal-strong); color: var(--bcal-on-strong); }
:where(.bcalp-tl__row) { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; padding-bottom: 24px; }
:where(.bcalp-tl--alternate .bcalp-tl__row) { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); column-gap: 0; }
:where(.bcalp-tl__mark) { position: relative; z-index: 1; grid-row: 1; grid-column: 1; display: flex; justify-content: center; align-items: flex-start; padding-top: 4px; }
:where(.bcalp-tl--alternate .bcalp-tl__mark) { grid-column: 2; }
:where(.bcalp-tl__card) { grid-row: 1; grid-column: 2; }
:where(.bcalp-tl--alternate .bcalp-tl__card) { grid-column: 1; }
:where(.bcalp-tl--alternate .bcalp-tl__row.is-right .bcalp-tl__card) { grid-column: 3; }
:where(.bcalp-tl__tile) {
	width: 76px; padding: 10px 0 8px; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius-sm); background: var(--bcal-surface);
}
:where(.bcalp-tl__tile) b { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
:where(.bcalp-tl__tile) span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
:where(.bcalp-tl__dot) { width: 16px; height: 16px; margin-top: 26px; border-radius: 999px; background: var(--bcal-accent); box-shadow: 0 0 0 6px var(--bcal-ctx-tint); }
:where(.bcalp-tl__card) {
	display: flex; gap: 22px; padding: 22px;
	border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius); background: var(--bcal-surface);
}
:where(.bcalp-tl__card.is-featured) { box-shadow: 0 0 0 1px var(--bcal-accent-edge); }
:where(.bcalp-tl__body) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
:where(.bcalp-tl__meta) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
:where(.bcalp-tl__time) { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
:where(.bcalp-tl__title) { margin: 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
:where(.bcalp-tl__place) { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.9375rem; }
:where(.bcalp-tl__excerpt) { margin: 0; font-size: 0.9375rem; line-height: 1.55; }
:where(.bcalp-tl__foot) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
:where(.bcalp-tl__media) { flex: 0 0 230px; align-self: center; overflow: hidden; border-radius: var(--bcal-radius-sm); aspect-ratio: 3 / 2; }
:where(.bcalp-tl__media) img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Week */
:where(.bcalp-wk) { display: flex; flex-direction: column; gap: 16px; }
:where(.bcalp-wk__bar) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
:where(.bcalp-wk__nav) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:where(.bcalp-wk__range) { margin: 0 0 0 8px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
:where(.bcalp-wk__scroll, .bcalp-sc__scroll) {
	overflow-x: auto; border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius); background: var(--bcal-surface);
	scrollbar-width: thin;
}
:where(.bcalp-wk__grid) { min-width: 760px; }
:where(.bcalp-wk__head, .bcalp-wk__allday) { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-wk__dh) { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 10px; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-wk__wd) { font-size: 0.8125rem; font-weight: 600; }
:where(.bcalp-wk__num) { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; font-size: 1.125rem; font-weight: 700; }
:where(.bcalp-wk__dh.is-today .bcalp-wk__num) { background: var(--bcal-accent); color: var(--bcal-on-accent); }
:where(.bcalp-wk__allday) { row-gap: 4px; padding: 8px 0; }
:where(.bcalp-wk__alllabel) { grid-column: 1; grid-row: 1; align-self: center; padding-left: 10px; font-size: 0.6875rem; font-weight: 600; }
:where(.bcalp-wk__body) { position: relative; }
:where(.bcalp-wk__line, .bcalp-sc__line) { position: absolute; left: 64px; right: 0; border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__line.is-sub) { border-top-style: dashed; opacity: 0.6; }
:where(.bcalp-wk__hour, .bcalp-sc__hour) { position: absolute; left: 0; width: 56px; text-align: right; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
:where(.bcalp-wk__cols) { position: absolute; top: 0; bottom: 0; left: 64px; right: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
:where(.bcalp-wk__col) { position: relative; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-wk__col.is-weekend, .bcalp-wk__dh.is-weekend) { background: var(--bcal-ctx-tint); }
:where(.bcalp-wk__col.is-today, .bcalp-wk__dh.is-today) { background: color-mix(in srgb, var(--bcal-accent) 6%, var(--bcal-ctx-surface, var(--bcal-surface))); }
:where(.bcalp-wk__now) { position: absolute; left: 0; right: 0; z-index: 2; border-top: 2px solid var(--bcal-accent-edge); }
:where(.bcalp-wk__now)::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 999px; background: var(--bcal-accent-edge); }
:where(.bcalp-wk__empty) { position: absolute; left: 64px; right: 0; top: 40%; margin: 0; text-align: center; font-weight: 600; }

/* Schedule */
:where(.bcalp-sc__day) { margin: 0 0 16px; font-size: 1.375rem; }
:where(.bcalp-sc__grid) { min-width: calc(64px + var(--lanes) * 170px); }
:where(.bcalp-sc__heads) { display: grid; grid-template-columns: 64px repeat(var(--lanes), minmax(0, 1fr)); border-bottom: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__lanehead) { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 12px; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__lanehead) b { font-size: 1rem; line-height: 1.25; }
:where(.bcalp-sc__lanehead) span { font-size: 0.75rem; }
:where(.bcalp-sc__body) { position: relative; }
:where(.bcalp-sc__cols) { position: absolute; top: 0; bottom: 0; left: 64px; right: 0; display: grid; grid-template-columns: repeat(var(--lanes), minmax(0, 1fr)); }
:where(.bcalp-sc__col) { position: relative; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__hgrid) { min-width: 900px; }
:where(.bcalp-sc__hhead, .bcalp-sc__hrow) { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-bottom: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__hrow:last-child) { border-bottom: 0; }
:where(.bcalp-sc__hscale) { position: relative; height: 40px; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__hscale) span { position: absolute; top: 11px; margin-left: 6px; font-size: 0.75rem; font-weight: 600; }
:where(.bcalp-sc__hrow .bcalp-sc__lanehead) { border-left: 0; }
:where(.bcalp-sc__htrack) { position: relative; height: 104px; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__vline) { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-sc__vline.is-sub) { border-left-style: dashed; opacity: 0.6; }

/* Carousel */
:where(.bcalp-cr) { --gap: var(--bcal-gap); position: relative; display: flex; flex-direction: column; gap: 16px; }
:where(.bcalp-cr__arrows) { display: flex; justify-content: flex-end; gap: 8px; }
:where(.bcalp-cr__arrows .bcalp-cr__btn) { border-radius: 999px; }
:where(.bcalp-cr__btn[disabled]) { opacity: 0.4; cursor: default; }
:where(.bcalp-cr__track) {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
	gap: var(--gap); margin: 0; padding: 2px 2px 8px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
	overscroll-behavior-x: contain;
}
:where(.bcalp-cr__track)::-webkit-scrollbar { display: none; }
:where(.bcalp-cr__item) { scroll-snap-align: start; display: flex; min-width: 0; }
:where(.bcalp-cr__card) {
	display: flex; flex-direction: column; width: 100%; overflow: hidden;
	border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius); background: var(--bcal-surface);
}
:where(.bcalp-cr__card.is-featured) { box-shadow: 0 0 0 1px var(--bcal-accent-edge); }
:where(.bcalp-cr__media) { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
:where(.bcalp-cr__media) img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.bcalp-cr__badge) {
	position: absolute; left: 12px; bottom: 12px; display: flex; align-items: baseline; gap: 8px;
	padding: 8px 12px; border-radius: var(--bcal-radius-sm); background: var(--bcal-surface); color: var(--bcal-ctx-text);
	font-size: 0.8125rem; font-weight: 600;
}
:where(.bcalp-cr__badge) b { font-size: 1.5rem; line-height: 1; }
:where(.bcalp-cr__cat) {
	position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
	background: var(--bcal-surface); color: var(--bcal-ctx-text); font-size: 0.8125rem; font-weight: 600;
}
:where(.bcalp-cr__typo) {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
	aspect-ratio: 3 / 2; box-sizing: border-box; padding: 18px 20px 20px; position: relative;
	background: var(--bcal-accent); color: var(--bcal-on-accent); text-decoration: none;
}
:where(.bcalp-cr__pill) {
	position: absolute; top: 18px; left: 20px; padding: 4px 11px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--bcal-on-accent) 55%, transparent); font-size: 0.8125rem; font-weight: 600;
}
:where(.bcalp-cr__big) { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; }
:where(.bcalp-cr__when) { font-size: 0.9375rem; font-weight: 600; }
:where(.bcalp-cr__datehead) { display: flex; align-items: flex-end; gap: 12px; padding: 20px 20px 0; }
:where(.bcalp-cr__num) { font-size: 3.25rem; font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; }
:where(.bcalp-cr__dm) { display: flex; flex-direction: column; font-size: 0.875rem; line-height: 1.3; }
:where(.bcalp-cr__datehead .bcal-tag) { margin-left: auto; }
:where(.bcalp-cr__body) { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
:where(.bcalp-cr__body) > .bcal-status { align-self: flex-start; }
:where(.bcalp-cr__title) { margin: 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
:where(.bcalp-cr__place) { margin: 0; font-size: 0.875rem; }
:where(.bcalp-cr__foot) { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
:where(.bcalp-cr__dots) { display: flex; justify-content: center; gap: 2px; }
:where(.bcalp-cr__dot) { width: 36px; height: 44px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
:where(.bcalp-cr__dot) span { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--bcal-ctx-line); transition: width 0.2s; }
:where(.bcalp-cr__dot.is-active) span { width: 28px; background: var(--bcal-accent); }

/* Hero with list */
:where(.bcalp-hr) { display: grid; gap: clamp(24px, 4vw, 40px); align-items: start; }
:where(.bcalp-hr--side) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
:where(.bcalp-hr__main) { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--bcal-radius); }
:where(.bcalp-hr__media) { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--bcal-radius); }
:where(.bcalp-hr--top .bcalp-hr__media) { aspect-ratio: 21 / 9; }
:where(.bcalp-hr__media) img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.bcalp-hr__panel) { display: flex; flex-direction: column; gap: 12px; padding: 22px 4px 0; }
:where(.bcalp-hr__main.is-overlay .bcalp-hr__panel) {
	position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 24px;
	border-radius: var(--bcal-radius); background: var(--bcal-surface); box-shadow: 0 12px 32px rgb(0 0 0 / 0.16);
}
:where(.bcalp-hr--top .bcalp-hr__main.is-overlay .bcalp-hr__panel) { right: 40%; }
:where(.bcalp-hr__main.is-typo) {
	min-height: 420px; box-sizing: border-box; padding: 32px; justify-content: flex-end;
	background: var(--bcal-accent); color: var(--bcal-on-accent);
}
:where(.bcalp-hr--top .bcalp-hr__main.is-typo) { min-height: 320px; }
:where(.bcalp-hr__main.is-typo .bcalp-hr__panel) { padding: 0; }
:where(.bcalp-hr__big) { position: absolute; top: 24px; right: 32px; font-size: clamp(6rem, 14vw, 10rem); font-weight: 800; line-height: 0.78; letter-spacing: -0.06em; }
:where(.bcalp-hr__eyebrow) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
:where(.bcalp-hr__pick) { padding: 4px 11px; border-radius: 999px; background: var(--bcal-accent); color: var(--bcal-on-accent); font-size: 0.8125rem; font-weight: 700; }
:where(.bcalp-hr__main.is-typo .bcalp-hr__pick) { background: transparent; border: 1px solid color-mix(in srgb, var(--bcal-on-accent) 60%, transparent); color: inherit; }
:where(.bcalp-hr__when) { font-size: 0.9375rem; font-weight: 700; }
:where(.bcalp-hr__title) { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.06; letter-spacing: -0.025em; }
:where(.bcalp-hr__place) { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
:where(.bcalp-hr__foot) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
:where(.bcalp-hr__main.is-typo .bcal-btn--primary) { background: var(--bcal-on-accent); color: var(--bcal-accent); border-color: var(--bcal-on-accent); }
:where(.bcalp-hr__listtitle) { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -0.01em; }
:where(.bcalp-hr__list) { margin: 0; padding: 0; list-style: none; }
:where(.bcalp-hr--top .bcalp-hr__list) { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
:where(.bcalp-hr__list li + li) { border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-hr--top .bcalp-hr__list li + li) { border-top: 0; }
:where(.bcalp-hr__row) { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 0; text-decoration: none; }
:where(.bcalp-hr--top .bcalp-hr__row) { padding: 12px; border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius); background: var(--bcal-surface); }
:where(.bcalp-hr__tile) {
	flex: 0 0 56px; height: 60px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
	border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius-sm); background: var(--bcal-surface);
}
:where(.bcalp-hr__tile) b { font-size: 1.5rem; line-height: 1; }
:where(.bcalp-hr__tile) span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
:where(.bcalp-hr__rowtxt) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
:where(.bcalp-hr__rowtitle) { font-weight: 700; line-height: 1.3; }
:where(.bcalp-hr__rowmeta) { font-size: 0.875rem; }

/* Compact agenda */
:where(.bcalp-ag) { display: flex; flex-direction: column; gap: 16px; }
:where(.bcalp-ag__bar) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
:where(.bcalp-ag__bar .bcalp-tabs) { flex: 1 1 360px; }
:where(.bcalp-ag__count) { font-size: 0.875rem; font-weight: 600; }
:where(.bcalp-ag__box) { overflow: hidden; border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius); background: var(--bcal-surface); }
:where(.bcalp-ag__day) { margin: 0; padding: 12px 20px; font-size: 1rem; background: var(--bcal-ctx-tint); border-bottom: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-ag__list + .bcalp-ag__day) { border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-ag__list) { margin: 0; padding: 0; list-style: none; }
:where(.bcalp-ag__list li + li) { border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-ag__row) {
	display: grid; grid-template-columns: 72px minmax(0, 1fr) 18px; align-items: center; gap: 16px;
	min-height: 64px; box-sizing: border-box; padding: 14px 20px; text-decoration: none;
}
:where(.bcalp-ag__row.has-price) { grid-template-columns: 72px minmax(0, 1fr) auto 18px; }
:where(.bcalp-ag--compact .bcalp-ag__row) { min-height: 48px; padding: 9px 20px; }
:where(.bcalp-ag__time) { font-weight: 700; font-variant-numeric: tabular-nums; }
:where(.bcalp-ag__txt) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
:where(.bcalp-ag__title) { font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.bcalp-ag__meta) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.875rem; }
:where(.bcalp-ag__cat) { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
:where(.bcalp-ag__cat)::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--bcal-cat, var(--bcal-accent)); }
:where(.bcalp-ag__price) { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }

/* Mini calendar */
:where(.bcalp-mc) {
	max-width: 420px; padding: 18px; box-sizing: border-box;
	border: 1px solid var(--bcal-ctx-line); border-radius: var(--bcal-radius); background: var(--bcal-surface);
	display: flex; flex-direction: column; gap: 12px;
}
:where(.bcalp-mc__nav) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
:where(.bcalp-mc__title) { margin: 0; font-size: 1.125rem; letter-spacing: -0.01em; }
:where(.bcalp-mc__grid) { display: flex; flex-direction: column; gap: 2px; }
:where(.bcalp-mc__row) { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
:where(.bcalp-mc__wd) { padding-bottom: 4px; text-align: center; font-size: 0.75rem; font-weight: 700; }
:where(.bcalp-mc__day) {
	height: 46px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	border-radius: var(--bcal-radius-sm); font-size: 0.9375rem; text-decoration: none;
}
:where(.bcalp-mc__day.has-events) { font-weight: 700; }
:where(.bcalp-mc__day.is-muted) { opacity: 0.7; }
:where(.bcalp-mc__day.is-today) { box-shadow: inset 0 0 0 2px var(--bcal-accent-edge); }
:where(.bcalp-mc__mark) { min-height: 6px; }
:where(.bcalp-mc--dots .bcalp-mc__day.has-events .bcalp-mc__mark) { width: 6px; height: 6px; border-radius: 999px; background: var(--bcal-accent); }
:where(.bcalp-mc--numbers .bcalp-mc__day.has-events .bcalp-mc__mark) {
	min-width: 16px; height: 14px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
	background: var(--bcal-accent); color: var(--bcal-on-accent); font-size: 0.625rem; line-height: 14px; text-align: center;
}
:where(.bcalp-mc__day.is-selected) { background: var(--bcal-accent); color: var(--bcal-on-accent); }
:where(.bcalp-mc__day.is-selected .bcalp-mc__mark) { background: var(--bcal-on-accent) !important; color: var(--bcal-accent) !important; }
:where(.bcalp-mc__list) { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-mc__sel) { margin: 0; font-size: 1rem; }
:where(.bcalp-mc__none) { margin: 0; font-size: 0.875rem; }
:where(.bcalp-mc__list ul) { margin: 0; padding: 0; list-style: none; }
:where(.bcalp-mc__list li + li) { border-top: 1px solid var(--bcal-ctx-line); }
:where(.bcalp-mc__ev) { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 10px 0; text-decoration: none; }
:where(.bcalp-mc__evtime) { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
:where(.bcalp-mc__evtxt) { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; line-height: 1.3; }
:where(.bcalp-mc__all) { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 700; }

/* Tablets */
@media (max-width: 1024px) {
	:where(.bcalp-cr) { --per: 2 !important; }
}
@media (max-width: 900px) {
	:where(.bcalp-hr--side) { grid-template-columns: minmax(0, 1fr); }
	:where(.bcalp-tl--alternate) { --axis: 28px; }
	:where(.bcalp-tl--alternate .bcalp-tl__head) { justify-content: flex-start; padding-left: 56px; }
	:where(.bcalp-tl--alternate .bcalp-tl__row) { grid-template-columns: 56px minmax(0, 1fr); }
	:where(.bcalp-tl--alternate .bcalp-tl__mark) { grid-column: 1; }
	:where(.bcalp-tl--alternate .bcalp-tl__card), :where(.bcalp-tl--alternate .bcalp-tl__row.is-right .bcalp-tl__card) { grid-column: 2; }
	:where(.bcalp-tl--alternate .bcalp-tl__tile) { width: 48px; }
}

/* Phones */
@media (max-width: 640px) {
	:where(.bcalp-tl) { --axis: 14px !important; }
	:where(.bcalp-tl__head) { padding-left: 40px !important; justify-content: flex-start !important; }
	:where(.bcalp-tl__day) { font-size: 1.125rem; }
	:where(.bcalp-tl--alternate .bcalp-tl__day) { padding: 0; background: none; color: inherit; border-radius: 0; }
	:where(.bcalp-tl__row) { grid-template-columns: 40px minmax(0, 1fr) !important; column-gap: 0 !important; padding-bottom: 16px; }
	:where(.bcalp-tl__mark) { grid-column: 1 !important; justify-content: flex-start; padding-left: 7px; }
	:where(.bcalp-tl__tile) { display: none; }
	:where(.bcalp-tl--date .bcalp-tl__mark)::after { content: ""; width: 14px; height: 14px; margin-top: 22px; border-radius: 999px; background: var(--bcal-accent); box-shadow: 0 0 0 5px var(--bcal-ctx-tint); }
	:where(.bcalp-tl__dot) { width: 14px; height: 14px; margin-top: 22px; }
	:where(.bcalp-tl__card) { grid-column: 2 !important; flex-direction: column-reverse; gap: 0; padding: 0; overflow: hidden; }
	:where(.bcalp-tl__body) { padding: 14px 16px 16px; gap: 8px; }
	:where(.bcalp-tl__media) { flex: none; width: 100%; border-radius: 0; aspect-ratio: 16 / 9; }
	:where(.bcalp-tl__title) { font-size: 1.125rem; }
	:where(.bcalp-tl__excerpt) { display: none; }
	:where(.bcalp-cr) { --per: 1 !important; }
	:where(.bcalp-cr__track) { grid-auto-columns: 85%; }
	:where(.bcalp-cr__arrows) { display: none; }
	:where(.bcalp-hr__main.is-overlay .bcalp-hr__panel) { position: static; box-shadow: none; padding: 18px 4px 0; background: transparent; }
	:where(.bcal) :where(.bcalp-hr__main.is-overlay .bcalp-hr__panel) {
		--bcal-ctx-text: currentColor;
		--bcal-ctx-muted: var(--bcal-page-muted);
		--bcal-ctx-ink: var(--bcal-page-ink);
		--bcal-ctx-line: var(--bcal-page-line);
		--bcal-ctx-soft: var(--bcal-page-soft);
		--bcal-ctx-tint: var(--bcal-page-tint);
		--bcal-ctx-surface: transparent;
		color: inherit;
	}
	:where(.bcalp-hr__main.is-typo) { min-height: 300px; padding: 22px; }
	:where(.bcalp-ag__row), :where(.bcalp-ag__row.has-price) { grid-template-columns: 52px minmax(0, 1fr) 18px; gap: 12px; padding: 12px 14px; }
	:where(.bcalp-ag__price) { grid-column: 2; grid-row: 2; }
	:where(.bcalp-ag__row .bcal-icon) { grid-column: 3; grid-row: 1 / span 2; }
	:where(.bcalp-ag__title) { white-space: normal; }
	:where(.bcalp-wk__range) { font-size: 1.125rem; margin-left: 0; flex-basis: 100%; }
	:where(.bcalp-tabs) { display: flex; }
	:where(.bcalp-tabs__item) { flex: 1 1 0; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	:where(.bcalp-cr__track) { scroll-behavior: auto; }
	:where(.bcalp-ev, .bcalp-cr__dot span) { transition: none; }
}

/* Colour guard (see the free plugin): theme link colours must not win. */
/* Card text beats theme rules such as ".entry-content li" and the free guard for list items. */
.bcal:not(#bcal-guard) :is(.bcalp-badge, .bcalp-poster, .bcalp-ticket, .bcalp-square__date, .bcalp-sp__buy, .bcalp-st__card, .bcalp-tabs, .bcalp-tl__tile, .bcalp-tl__card, .bcalp-wk__scroll, .bcalp-sc__scroll, .bcalp-cr__card, .bcalp-cr__badge, .bcalp-cr__cat, .bcalp-hr--top .bcalp-hr__row, .bcalp-hr__tile, .bcalp-ag__box, .bcalp-mc) { color: var(--bcal-text); }
/* Grid squares: white text on the image shade, accent text colour without an image. */
.bcal:not(#bcal-guard) a.bcalp-square__link { color: #fff; }
.bcal:not(#bcal-guard) .bcalp-square.no-image a.bcalp-square__link { color: var(--bcal-on-accent); }
.bcal:not(#bcal-guard) .bcalp-square__date { color: var(--bcal-text); }
.bcal:not(#bcal-guard) a:is(.bcalp-ev, .bcalp-ag__row, .bcalp-mc__ev, .bcalp-mc__day, .bcalp-tabs__item, .bcalp-hr__row) { color: var(--bcal-ctx-text); }
.bcal:not(#bcal-guard) a.bcalp-tabs__item.is-active { color: var(--bcal-on-strong); }
.bcal:not(#bcal-guard) a.bcalp-mc__day.is-selected { color: var(--bcal-on-accent); }
.bcal:not(#bcal-guard) a.bcalp-mc__all { color: var(--bcal-ctx-ink); }
.bcal:not(#bcal-guard) :is(.bcalp-ev, .bcalp-hr__row, .bcalp-ag__row, .bcalp-mc__ev, .bcalp-mc__day, .bcalp-tabs__item, .bcalp-tl__title a, .bcalp-cr__title a, .bcalp-hr__title a, .bcalp-ticket__title a, .bcalp-poster__title a) { color: var(--bcal-ctx-text); text-decoration: none; }
.bcal:not(#bcal-guard) :is(.bcalp-tl__title a, .bcalp-cr__title a, .bcalp-hr__title a, .bcalp-hr__row, .bcalp-ag__row, .bcalp-mc__ev):hover :is(.bcalp-hr__rowtitle, .bcalp-ag__title, b),
.bcal:not(#bcal-guard) :is(.bcalp-tl__title a, .bcalp-cr__title a, .bcalp-hr__title a, .bcalp-ticket__title a, .bcalp-poster__title a):hover { text-decoration: underline; }
.bcal:not(#bcal-guard) .bcalp-tabs__item.is-active { background: var(--bcal-strong); color: var(--bcal-on-strong); }
.bcal:not(#bcal-guard) :is(.bcalp-tl__time, .bcalp-tl__tile b, .bcalp-ag__time, .bcalp-mc__evtime, .bcalp-hr__tile b, .bcalp-cr__num, .bcalp-wk__alllabel, a.bcalp-mc__all) { color: var(--bcal-ctx-ink); }
.bcal:not(#bcal-guard) :is(.bcalp-tl__place, .bcalp-tl__excerpt, .bcalp-tl__tile span, .bcalp-wk__wd, .bcalp-wk__hour, .bcalp-sc__hour, .bcalp-sc__hscale span, .bcalp-sc__lanehead span, .bcalp-ev__sub, .bcalp-cr__place, .bcalp-cr__dm span, .bcalp-hr__rowmeta, .bcalp-hr__tile span, .bcalp-ag__meta, .bcalp-ag__count, .bcalp-mc__wd, .bcalp-mc__evtxt span, .bcalp-mc__none, .bcalp-legend li, .bcalp-wk__empty) { color: var(--bcal-ctx-muted); }
.bcal:not(#bcal-guard) .bcalp-mc__day.is-selected { color: var(--bcal-on-accent); }
.bcal:not(#bcal-guard) :is(.bcalp-cr__typo, .bcalp-hr__main.is-typo, .bcalp-hr__main.is-typo :is(.bcalp-hr__title a, .bcalp-hr__place, .bcalp-hr__when, .bcal-price)) { color: var(--bcal-on-accent); }
.bcal:not(#bcal-guard) .bcalp-hr__main.is-overlay .bcalp-hr__when,
.bcal:not(#bcal-guard) .bcalp-hr__main:not(.is-typo) .bcalp-hr__when { color: var(--bcal-ctx-ink); }
