/*
 * What is on — the events page, the next-few strip, and one event's own page.
 *
 * Right-to-left first, like weather.css: every side is a logical property, so
 * the Arabic site and the French one share this file and no [dir] rule exists.
 * The date block sits at the inline start, which puts it on the right in
 * Arabic and the left in French without a line of extra CSS.
 *
 * ---------------------------------------------------------------------------
 * Update log
 * ---------------------------------------------------------------------------
 * 0.43.0 — 2026-08-28 — First build.
 * ---------------------------------------------------------------------------
 */

.bk-events,
.bk-evsingle {
	--bk-ev-sea: var( --bk-palette1, #1B6B70 );
	--bk-ev-clay: var( --bk-palette2, #B8432B );
	--bk-ev-gold: var( --bk-gold, #A8801F );
	--bk-ev-ink: var( --bk-palette3, #14252A );
	--bk-ev-soft: var( --bk-palette4, #3A4E53 );
	--bk-ev-sand: var( --bk-palette8, #EEF1F0 );
	--bk-ev-line: var( --bk-palette7, #E3E9E8 );
	--bk-ev-white: var( --bk-palette9, #FFFFFF );

	font-variant-numeric: tabular-nums;
}

.bk-events--next {
	margin-block-start: 3rem;
}

.bk-events__head {
	margin: 0 0 1rem !important;
	font-size: 1.35rem;
	color: var( --bk-ev-ink ) !important;
}

/* -------------------------------------------------------------------------
 * The filters
 * ---------------------------------------------------------------------- */

.bk-events__filters {
	margin-block-end: 1.75rem;
}

.bk-events__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.bk-events__row--kinds {
	margin-block-start: 0.6rem;
	padding-block-start: 0.6rem;
	border-block-start: 1px solid var( --bk-ev-line );
}

.bk-chip {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var( --bk-ev-line );
	border-radius: 999px;
	font-size: 0.9rem;
	line-height: 1.3;
	text-decoration: none !important;
	background: var( --bk-ev-white ) !important;
	color: var( --bk-ev-soft ) !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bk-chip:hover,
.bk-chip:focus-visible {
	border-color: var( --bk-ev-sea );
	color: var( --bk-ev-sea ) !important;
}

.bk-chip.is-on {
	border-color: var( --bk-ev-sea );
	font-weight: 600;
	background: var( --bk-ev-sea ) !important;
	color: var( --bk-ev-white ) !important;
}

.bk-chip--quiet {
	padding: 0.28rem 0.72rem;
	border-color: transparent;
	font-size: 0.83rem;
	background: transparent !important;
}

.bk-chip--quiet.is-on {
	background: rgba( 27, 107, 112, 0.12 ) !important;
	color: var( --bk-ev-sea ) !important;
}

/* -------------------------------------------------------------------------
 * The month heading
 * ---------------------------------------------------------------------- */

/*
 * A rule that runs off to the far edge, rather than a boxed heading. The list
 * below it is already a stack of boxes, and a second box on top of the stack
 * flattens the whole page.
 */
.bk-events__month {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 2rem 0 0.9rem !important;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var( --bk-ev-sea ) !important;
}

.bk-events__month::after {
	content: "";
	flex: 1;
	block-size: 1px;
	background: var( --bk-ev-line );
}

.bk-events__month:first-child {
	margin-block-start: 0 !important;
}

/* -------------------------------------------------------------------------
 * One event, as a card
 * ---------------------------------------------------------------------- */

.bk-ev {
	margin-block-end: 0.7rem;
}

.bk-ev__link {
	display: grid;
	grid-template-columns: 3.9rem minmax( 0, 1fr ) auto;
	align-items: start;
	gap: 1rem;
	padding: 0.95rem 1.1rem;
	border: 1px solid var( --bk-ev-line );
	border-radius: 16px;
	text-decoration: none !important;
	background: var( --bk-ev-white ) !important;
	color: var( --bk-ev-ink ) !important;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.bk-ev__link:hover,
.bk-ev__link:focus-visible {
	transform: translateY( -1px );
	border-color: var( --bk-ev-sea );
	box-shadow: 0 14px 28px -20px rgba( 20, 37, 42, 0.55 );
}

/*
 * The date block, which is the thing the eye lands on first when scanning a
 * list of thirty. Day number big and light; month small and coloured.
 */
.bk-ev__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.2rem;
	border-radius: 12px;
	background: var( --bk-ev-sand ) !important;
}

.bk-ev__day {
	font-size: 1.55rem;
	font-weight: 300;
	line-height: 1;
	color: var( --bk-ev-ink ) !important;
}

.bk-ev__month {
	margin-block-start: 0.1rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: var( --bk-ev-sea ) !important;
}

.bk-ev--now .bk-ev__link {
	border-color: var( --bk-ev-clay );
}

.bk-ev--now .bk-ev__date {
	background: rgba( 184, 67, 43, 0.1 ) !important;
}

.bk-ev--now .bk-ev__month {
	color: var( --bk-ev-clay ) !important;
}

.bk-ev__body {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	min-inline-size: 0;
}

.bk-ev__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

/*
 * The kind of thing it is, colour-coded. Eight kinds and four colours: a
 * festival and a concert are both "a night out" and share one, a market and a
 * fair are both "go and buy something" and share another. Eight distinct
 * colours would be a fruit salad and would tell a reader nothing.
 */
.bk-ev__kind {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	background: rgba( 27, 107, 112, 0.12 ) !important;
	color: #10504F !important;
}

.bk-ev__kind--festival,
.bk-ev__kind--music {
	background: rgba( 184, 67, 43, 0.12 ) !important;
	color: #8C2F1D !important;
}

.bk-ev__kind--market,
.bk-ev__kind--fair {
	background: rgba( 168, 128, 31, 0.16 ) !important;
	color: #6E5210 !important;
}

.bk-ev__kind--feast {
	background: rgba( 20, 37, 42, 0.1 ) !important;
	color: var( --bk-ev-ink ) !important;
}

.bk-ev__live {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	background: var( --bk-ev-clay ) !important;
	color: var( --bk-ev-white ) !important;
}

.bk-ev__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: var( --bk-ev-ink ) !important;
}

.bk-ev__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.85rem;
	color: var( --bk-ev-soft ) !important;
}

/*
 * A dot between the facts, drawn by the separator rather than typed into the
 * markup, so a card missing its place does not print a stray bullet.
 */
.bk-ev__fact + .bk-ev__fact::before {
	content: "·";
	margin-inline-end: 0.45rem;
	opacity: 0.45;
}

.bk-ev__fact--price {
	font-weight: 600;
	color: var( --bk-ev-sea ) !important;
}

.bk-ev__blurb {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var( --bk-ev-soft ) !important;

	/* Two lines, then stop. A card is an invitation, not the programme. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bk-ev__photo {
	display: block;
	inline-size: 6.5rem;
	block-size: 5rem;
	border-radius: 12px;
	overflow: hidden;
	background: var( --bk-ev-sand ) !important;
}

.bk-ev__photo img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
}

@media ( max-width: 560px ) {
	.bk-ev__link {
		grid-template-columns: 3.2rem minmax( 0, 1fr );
		gap: 0.75rem;
	}

	/* The photograph goes under both columns rather than squeezing the words. */
	.bk-ev__photo {
		grid-column: 1 / -1;
		inline-size: 100%;
		block-size: 8.5rem;
	}
}

/* -------------------------------------------------------------------------
 * Nothing on
 * ---------------------------------------------------------------------- */

.bk-ev-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: 3rem 1.5rem;
	border: 1px dashed var( --bk-ev-line );
	border-radius: 18px;
	text-align: center;
	background: var( --bk-ev-sand ) !important;
}

.bk-ev-empty__art {
	inline-size: 92px;
	block-size: auto;
	margin-block-end: 0.5rem;
	color: var( --bk-ev-sea );
	opacity: 0.45;
}

.bk-ev-empty__line {
	margin: 0 !important;
	font-size: 1.05rem;
	font-weight: 700;
	color: var( --bk-ev-ink ) !important;
}

.bk-ev-empty__hint {
	margin: 0 !important;
	font-size: 0.9rem;
	color: var( --bk-ev-soft ) !important;
}

.bk-events__more {
	margin: 1rem 0 0 !important;
}

.bk-events__more a {
	font-weight: 600;
	color: var( --bk-ev-sea ) !important;
}

/* -------------------------------------------------------------------------
 * One event's own page
 * ---------------------------------------------------------------------- */

.bk-evsingle {
	margin-block-end: 1.75rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var( --bk-ev-line );
	border-radius: 18px;
	background: var( --bk-ev-sand ) !important;
}

.bk-evsingle__facts {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 11rem, 1fr ) );
	gap: 1rem 1.5rem;
	margin: 0 !important;
}

.bk-evsingle__facts dt {
	margin: 0 0 0.15rem !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var( --bk-ev-sea ) !important;
}

.bk-evsingle__facts dd {
	margin: 0 !important;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var( --bk-ev-ink ) !important;
}

.bk-evsingle__place {
	display: block;
	font-size: 0.85rem;
	color: var( --bk-ev-sea ) !important;
}

.bk-evsingle__ics {
	margin: 1.1rem 0 0 !important;
	padding-block-start: 0.9rem;
	border-block-start: 1px solid var( --bk-ev-line );
}

.bk-evsingle__ics a {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none !important;
	background: var( --bk-ev-sea ) !important;
	color: var( --bk-ev-white ) !important;
}

.bk-evsingle__ics a:hover,
.bk-evsingle__ics a:focus-visible {
	background: var( --bk-ev-ink ) !important;
}
