/**
 * Event page elements (ek-core): notice, share buttons, add to calendar, extras.
 * Built on the site's design tokens, with fallbacks.
 */

/* ---------- Event notice ---------- */
.ek-notice {
	display: flex;
	flex-direction: column;
	gap: var(--space-4, 4px);
	width: 100%;
	padding: var(--space-14, 14px) var(--space-18, 18px);
	border-radius: var(--radius-lg, 12px);
	background: rgba(255, 255, 255, 0.85);
	box-shadow: var(--shadow-hairline, 0 0 6px rgba(0, 0, 0, 0.08));
	color: #000;
}

.ek-notice--alert {
	background: #fff0f3;
	box-shadow: inset 0 0 0 1px #e8a3b5;
}

.ek-notice p {
	margin: 0;
}

.ek-notice__title {
	font-size: var(--fs-body-l, 17px);
	font-weight: 700;
	line-height: 1.3;
}

.ek-notice__text {
	font-size: var(--fs-ui-s, 14px);
	color: #444;
}

.ek-notice__link {
	align-self: flex-start;
	margin-top: var(--space-4, 4px);
	color: #000;
	font-size: var(--fs-ui-s, 14px);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Share buttons ---------- */
.ek-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8, 8px);
}

.ek-share__label {
	margin-right: var(--space-4, 4px);
	color: #666;
	font-size: var(--fs-label, 12px);
	font-weight: 700;
}

.ek-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-6, 6px);
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--space-12, 12px);
	border: 0;
	border-radius: var(--radius-pill, 960px);
	background: rgba(0, 0, 0, 0.05);
	color: #000;
	font: inherit;
	font-size: var(--fs-ui-s, 14px);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}

.ek-share__btn:hover {
	box-shadow: inset 0 0 0 1px #000;
}

.ek-share__btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.ek-share__btn[hidden] {
	display: none;
}

.ek-share__btn {
	padding: 0;
}

.ek-share__status {
	color: #666;
	font-size: var(--fs-meta, 13px);
}

/* On a dark section (Bricks class ek-dark, e.g. the Stage and Screening heroes). */
.ek-dark .ek-share__label,
.ek-dark .ek-share__status {
	color: #b3b3b3;
}

.ek-dark .ek-share__btn {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.ek-dark .ek-share__btn:hover {
	box-shadow: inset 0 0 0 1px #fff;
}

.ek-dark .ek-share__btn:focus-visible {
	outline-color: #fff;
}

/* ---------- Add to calendar ---------- */
/* Split button sized like the Bricks buttons next to it (48px, 8px corners, outline). */
.ek-cal {
	position: relative;
	display: inline-flex;
	max-width: 100%;
	color: #000;
}

.ek-cal--button {
	align-items: stretch;
	min-height: 48px;
	border: 1px solid currentColor;
	border-radius: 8px;
}

.ek-cal__main {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8, 8px);
	min-width: 0;
	padding: 0 var(--space-14, 14px) 0 var(--space-16, 16px);
	border-radius: 7px 0 0 7px;
	color: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: var(--ls-tight, -0.04em);
	text-decoration: none;
}

.ek-cal__label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ek-cal__more {
	position: static;
}

.ek-cal__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 44px;
	border-left: 1px solid currentColor;
	border-radius: 0 7px 7px 0;
	cursor: pointer;
	list-style: none;
}

.ek-cal__toggle::-webkit-details-marker {
	display: none;
}

.ek-cal__main:hover,
.ek-cal--button .ek-cal__toggle:hover,
.ek-cal__more[open] > .ek-cal__toggle:not(.ek-cal__toggle--link) {
	background: rgba(0, 0, 0, 0.06);
}

.ek-cal__main:focus-visible,
.ek-cal__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ek-cal__more[open] .ek-cal__toggle > .ek-cal__icon:last-child {
	transform: rotate(180deg);
}

.ek-cal__icon {
	flex: 0 0 auto;
	transition: transform 0.15s ease;
}

/* Text link variant (Plan your visit box). */
.ek-cal--link .ek-cal__more {
	position: relative;
}

.ek-cal__toggle--link {
	gap: var(--space-6, 6px);
	justify-content: flex-start;
	min-width: 0;
	min-height: 44px;
	border: 0;
	font-size: var(--fs-ui, 15px);
	font-weight: 600;
}

.ek-cal__toggle--link > span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Menu */
.ek-cal__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 40;
	width: max-content;
	min-width: 100%;
	max-width: min(320px, calc(100vw - 32px));
	padding: var(--space-6, 6px);
	border-radius: var(--radius-lg, 12px);
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
	color: #000;
	text-align: left;
}

.ek-cal--up .ek-cal__menu {
	top: auto;
	bottom: calc(100% + 6px);
}

.ek-cal__step[hidden] {
	display: none;
}

.ek-cal__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8, 8px);
	margin: 0;
	padding: var(--space-8, 8px) var(--space-10, 10px) var(--space-6, 6px);
	color: #666;
	font-size: var(--fs-label, 12px);
	font-weight: 700;
}

.ek-cal__back {
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.ek-cal__back[hidden] {
	display: none;
}

.ek-cal__item {
	display: flex;
	align-items: center;
	gap: var(--space-10, 10px);
	width: 100%;
	min-height: 44px;
	padding: var(--space-6, 6px) var(--space-10, 10px);
	border: 0;
	border-radius: var(--radius-sm, 8px);
	background: none;
	color: #000;
	font: inherit;
	font-size: var(--fs-ui, 15px);
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ek-cal__item:hover,
.ek-cal__item:focus-visible {
	background: rgba(0, 0, 0, 0.05);
	outline: none;
}

.ek-cal__item:focus-visible {
	box-shadow: inset 0 0 0 2px #000;
}

.ek-cal__item--show {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	font-weight: 600;
}

.ek-cal__note {
	color: #666;
	font-size: var(--fs-meta, 13px);
	font-weight: 400;
}

.ek-cal__check {
	margin-left: auto;
	visibility: hidden;
}

.ek-cal__item.is-default {
	font-weight: 700;
}

.ek-cal__item.is-default .ek-cal__check {
	visibility: visible;
}

/* On a dark section (Stage, Screening heroes). The menu stays white. */
.ek-dark .ek-cal {
	color: #fff;
}

.ek-dark .ek-cal__main:hover,
.ek-dark .ek-cal--button .ek-cal__toggle:hover,
.ek-dark .ek-cal__more[open] > .ek-cal__toggle:not(.ek-cal__toggle--link) {
	background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 478px) {
	/* Phones: hero buttons (tickets, directions, calendar) stack at full width. */
	.ek-event-hero .ek-actions > .brxe-button,
	.ek-cal--button {
		flex: 1 1 100%;
	}

	.ek-event-hero .ek-actions > .brxe-button {
		justify-content: center;
	}

	.ek-cal--button .ek-cal__main {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ---------- Event extras ---------- */
.ek-extras {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vw, 40px);
	width: 100%;
	min-width: 0;
}

.ek-extras__section {
	display: flex;
	flex-direction: column;
	gap: var(--space-16, 16px);
}

.ek-extras__heading {
	margin: 0;
	font-size: var(--fs-title-l, 22px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--ls-tight, -0.04em);
}

.ek-extras__chips,
.ek-extras__links,
.ek-extras__agenda {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ek-extras__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8, 8px);
}

.ek-extras__chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: var(--radius-pill, 960px);
	background: rgba(0, 0, 0, 0.05);
	color: #000;
	font-size: var(--fs-ui, 15px);
	font-weight: 600;
	text-decoration: none;
}

.ek-extras__chip:hover {
	box-shadow: inset 0 0 0 1px #000;
}

/* Types: outlined, so they read apart from the categories. */
.ek-extras__chip--type {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Details of other event kinds (e.g. Session details on a music workshop). */
.ek-extras__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px 24px;
	margin: 0;
}

.ek-extras__fact {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ek-extras__fact dt {
	font-size: 13px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.6);
}

.ek-extras__fact dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.ek-extras__agenda-item {
	display: grid;
	grid-template-columns: minmax(72px, 110px) 1fr;
	gap: var(--space-16, 16px);
	padding: var(--space-12, 12px) 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ek-extras__agenda-item:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ek-extras__time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ek-extras__what {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ek-extras__what-title {
	font-weight: 600;
}

.ek-extras__what-detail {
	color: #666;
	font-size: var(--fs-ui-s, 14px);
}

.ek-extras__links {
	display: flex;
	flex-direction: column;
	gap: var(--space-8, 8px);
}

.ek-extras__link {
	color: #000;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ek-extras__faq-item {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ek-extras__faq-item:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ek-extras__faq-item summary {
	display: flex;
	justify-content: space-between;
	gap: var(--space-16, 16px);
	min-height: 44px;
	padding: var(--space-14, 14px) 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.ek-extras__faq-item summary::-webkit-details-marker {
	display: none;
}

.ek-extras__faq-item summary::after {
	content: "+";
	font-weight: 400;
}

.ek-extras__faq-item[open] summary::after {
	content: "–";
}

.ek-extras__faq-answer {
	padding-bottom: var(--space-14, 14px);
	color: #222;
	line-height: 1.6;
}

.ek-extras__faq-answer p {
	margin: 0 0 0.75em;
}

/*
 * "When" on the event page hero for an event over several days (0.49.4, layout 0.49.11, user
 * requests 2026-11-27): {ek_date_span} prints "Wed, 25 Nov – Sat, 5 Dec" and "Starts 4 pm ·
 * Ends 8 pm" in place of the start date and time (the element carries the value class, so
 * the dates look like a single date does).
 */
.ek-when-span {
	display: block;
}

/* "Wed, 25 Nov – Sat, 5 Dec": each date stays whole, the line breaks after the dash. */
.ek-when-span__dates {
	display: block;
}

.ek-when-span__date {
	white-space: nowrap;
}

/* "Starts 4 pm · Ends 8 pm": quieter, like the time under a single date (opacity, so it
   works on the light and the dark event heroes). */
.ek-when-span__times {
	display: block;
	margin-top: 4px;
	font-size: 0.82em;
	font-weight: 400;
	opacity: 0.72;
}

/* With a date range, "When" takes a wider column (When, Where, Admission in one row). */
@media (min-width: 768px) {
	.ek-meta-list.brxe-block:has(.ek-when-span):has(> :nth-child(3):last-child) {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, 0.8fr);
	}
}

/* Event page "Where": the place's name opens Google Maps (0.50.0, user request 2026-11-30). */
.ek-where-map {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ek-where-map::after {
	content: "\00a0\2197";
	font-size: 0.85em;
}
