/* Event Summaries - one-page event recaps.
   Scoped under .ev-es-* so nothing leaks into the Barrel theme. */

.ev-es-page {
	--ev-es-cols: 3;
	--ev-es-gap: 20px;
	--ev-es-ink: #1a1a1a;
	--ev-es-muted: #6b7280;
	--ev-es-line: #e6e8eb;
	--ev-es-tile: #fff;
	--ev-es-radius: 12px;
	--ev-es-accent: #1a1a1a;
	--ev-es-accent-fg: #fff;
}

.ev-es-body,
.ev-es-index {
	--ev-es-cols: 3;
	--ev-es-gap: 20px;
	--ev-es-ink: #1a1a1a;
	--ev-es-muted: #6b7280;
	--ev-es-line: #e6e8eb;
	--ev-es-tile: #fff;
	--ev-es-radius: 12px;
	--ev-es-accent: #1a1a1a;
	--ev-es-accent-fg: #fff;

	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 56px;
}

.ev-es-body--embed {
	padding-bottom: 0;
}

/* ---------- hero ---------- */

.ev-es-hero {
	position: relative;
	padding: 56px 20px;
	margin-bottom: 40px;
	text-align: center;
	background: #f6f7f9;
	overflow: hidden;
}

.ev-es-hero.has-image {
	color: #fff;
	background: #14161a;
}

.ev-es-hero__bg {
	position: absolute;
	inset: 0;
}

.ev-es-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.38;
}

.ev-es-hero__inner {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
}

.ev-es-hero__series {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
}

.ev-es-hero__title {
	margin: 0 0 12px;
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.12;
}

.ev-es-hero__strap {
	margin: 0 0 16px;
	font-size: clamp(17px, 2vw, 21px);
	opacity: 0.92;
}

.ev-es-hero__meta {
	margin: 0;
	font-size: 16px;
	opacity: 0.85;
}

.ev-es-hero__dot {
	margin: 0 8px;
}

/* ---------- stats ---------- */

.ev-es-stats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--ev-es-gap);
	margin: 0 0 40px;
	padding: 0;
}

.ev-es-stat {
	margin: 0;
	padding: 22px 16px;
	text-align: center;
	background: var(--ev-es-tile);
	border: 1px solid var(--ev-es-line);
	border-radius: var(--ev-es-radius);
}

.ev-es-stat__value {
	display: block;
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 800;
	line-height: 1.1;
	color: var(--ev-es-ink);
}

.ev-es-stat__label {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ev-es-muted);
}

.ev-es-intro {
	max-width: 760px;
	margin: 0 auto 40px;
	font-size: 17px;
	line-height: 1.7;
}

.ev-es-video {
	margin: 0 0 40px;
}

.ev-es-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--ev-es-radius);
}

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

.ev-es-filters {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ev-es-line);
}

.ev-es-filters__label {
	flex: 0 0 auto;
	min-width: 62px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ev-es-muted);
}

.ev-es-filters__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ev-es-chip {
	appearance: none;
	cursor: pointer;
	border: 1px solid var(--ev-es-line);
	background: #fff;
	color: #374151;
	font: inherit;
	font-size: 15px;
	line-height: 1.25;
	padding: 0.42em 0.9em;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ev-es-chip:hover {
	border-color: #c9ced6;
	background: #f6f7f9;
}

.ev-es-chip.is-active {
	background: var(--ev-es-accent);
	border-color: var(--ev-es-accent);
	color: var(--ev-es-accent-fg);
}

.ev-es-chip:focus-visible,
.ev-es-card__hit:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.ev-es-filters__none {
	flex: 1 0 100%;
	margin: 6px 0 0;
	color: var(--ev-es-muted);
}

.ev-es-filters__none[hidden] {
	display: none;
}

/* ---------- sections ---------- */

.ev-es-section {
	margin: 0 0 48px;
}

.ev-es-section[hidden] {
	display: none;
}

.ev-es-section__title {
	margin: 0 0 6px;
	font-size: clamp(21px, 2.6vw, 27px);
}

.ev-es-section__intro {
	margin: 0 0 20px;
	color: var(--ev-es-muted);
}

.ev-es-grid {
	list-style: none;
	display: grid;
	gap: var(--ev-es-gap);
	margin: 18px 0 0;
	padding: 0;
}

.ev-es-grid--people {
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.ev-es-grid--logos {
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.ev-es-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ev-es-card[hidden] {
	display: none;
}

.ev-es-card__hit {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 20px 14px;
	font: inherit;
	text-align: center;
	color: inherit;
	background: var(--ev-es-tile);
	border: 1px solid var(--ev-es-line);
	border-radius: var(--ev-es-radius);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ev-es-card__hit--static {
	cursor: default;
}

button.ev-es-card__hit:hover {
	transform: translateY(-3px);
	border-color: #d4d8de;
	box-shadow: 0 8px 22px rgba(16, 24, 40, 0.09);
}

.ev-es-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* People get a round portrait; organisations get a contained logo. */
.ev-es-card--people .ev-es-card__media {
	width: 104px;
	height: 104px;
	overflow: hidden;
	border-radius: 50%;
	background: #f1f3f5;
}

.ev-es-card--people .ev-es-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ev-es-card--logos .ev-es-card__media {
	width: 100%;
	height: 62px;
}

.ev-es-card--logos .ev-es-card__img {
	max-width: 100%;
	max-height: 62px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ev-es-card__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 26px;
	font-weight: 700;
	color: #98a2b3;
	background: #f1f3f5;
	border-radius: inherit;
}

.ev-es-card--logos .ev-es-card__initials {
	font-size: 19px;
	border-radius: 8px;
}

.ev-es-card__text {
	display: block;
}

.ev-es-card__name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ev-es-ink);
}

.ev-es-card__role,
.ev-es-card__blurb {
	display: block;
	margin-top: 4px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--ev-es-muted);
}

/* ---------- modal ---------- */

.ev-es-modal[hidden] {
	display: none;
}

.ev-es-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 24, 40, 0.62);
	/* The card lives inside a text-align:center tile - reset for the panel. */
	text-align: left;
}

.ev-es-modal__panel {
	position: relative;
	width: min(620px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	padding: 28px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(16, 24, 40, 0.3);
}

.ev-es-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	appearance: none;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: #98a2b3;
	cursor: pointer;
}

.ev-es-modal__close:hover {
	color: #1a1a1a;
}

.ev-es-modal__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 18px;
	padding-right: 28px;
}

.ev-es-modal__media {
	flex: 0 0 92px;
	width: 92px;
}

.ev-es-modal__media img {
	display: block;
	width: 92px;
	height: 92px;
	object-fit: contain;
	background: #f6f7f9;
	border-radius: 10px;
}

.ev-es-modal__name {
	margin: 0;
	font-size: 23px;
	line-height: 1.25;
}

.ev-es-modal__role {
	margin: 4px 0 0;
	color: var(--ev-es-muted);
}

.ev-es-modal__tagline {
	display: inline-block;
	margin: 8px 0 0;
	padding: 2px 10px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
	background: #f1f3f5;
	border-radius: 999px;
}

.ev-es-modal__bio {
	font-size: 16px;
	line-height: 1.65;
}

.ev-es-modal__bio p {
	margin: 0 0 12px;
}

.ev-es-modal__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
}

.ev-es-tag {
	padding: 3px 10px;
	font-size: 13px;
	color: #374151;
	background: #f1f3f5;
	border-radius: 999px;
}

.ev-es-modal__also {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--ev-es-line);
}

.ev-es-modal__also h4 {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ev-es-muted);
}

.ev-es-modal__also ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ev-es-modal__also li {
	margin: 0 0 5px;
}

.ev-es-modal__alsorole {
	color: var(--ev-es-muted);
	font-size: 14px;
}

.ev-es-modal__alsorole::before {
	content: " - ";
}

.ev-es-modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
}

.ev-es-btn {
	display: inline-block;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ev-es-accent-fg);
	background: var(--ev-es-accent);
	border: 1px solid var(--ev-es-accent);
	border-radius: 8px;
}

.ev-es-btn:hover {
	opacity: 0.88;
	color: var(--ev-es-accent-fg);
}

.ev-es-btn--ghost {
	color: var(--ev-es-accent);
	background: none;
}

.ev-es-btn--ghost:hover {
	color: var(--ev-es-accent);
	background: #f6f7f9;
}

/* ---------- index of summaries ---------- */

.ev-es-index__grid {
	list-style: none;
	display: grid;
	gap: 26px;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(var(--ev-es-cols), minmax(0, 1fr));
}

.ev-es-index__item[hidden] {
	display: none;
}

.ev-es-index__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: var(--ev-es-tile);
	border: 1px solid var(--ev-es-line);
	border-radius: var(--ev-es-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ev-es-index__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.1);
	color: inherit;
}

.ev-es-index__media img,
.ev-es-index__ph {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: linear-gradient(135deg, #e9edf2, #f6f7f9);
}

.ev-es-index__text {
	display: block;
	padding: 18px;
}

.ev-es-index__when {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ev-es-muted);
}

.ev-es-index__name {
	display: block;
	margin: 6px 0 4px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.ev-es-index__loc {
	display: block;
	font-size: 14.5px;
	color: var(--ev-es-muted);
}

.ev-es-index__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 12px;
	font-size: 13.5px;
	color: var(--ev-es-muted);
}

/* ---------- other events + empty ---------- */

.ev-es-more {
	margin-top: 8px;
	padding-top: 32px;
	border-top: 1px solid var(--ev-es-line);
}

.ev-es-more__title {
	margin: 0 0 16px;
	font-size: 20px;
}

.ev-es-more__list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
}

.ev-es-more__list a {
	display: block;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	background: var(--ev-es-tile);
	border: 1px solid var(--ev-es-line);
	border-radius: 10px;
}

.ev-es-more__list a:hover {
	border-color: #c9ced6;
	color: inherit;
}

.ev-es-more__name {
	display: block;
	font-weight: 700;
}

.ev-es-more__when {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	color: var(--ev-es-muted);
}

.ev-es-empty {
	margin: 24px 0;
	padding: 22px;
	text-align: center;
	color: var(--ev-es-muted);
	background: #f9fafb;
	border: 1px dashed var(--ev-es-line);
	border-radius: var(--ev-es-radius);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.ev-es-index__grid {
		grid-template-columns: repeat(min(var(--ev-es-cols), 2), minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.ev-es-filters__label {
		min-width: 100%;
	}
	.ev-es-modal__head {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}

@media (max-width: 640px) {
	.ev-es-body,
	.ev-es-index {
		padding: 0 16px 40px;
		--ev-es-gap: 14px;
	}
	.ev-es-hero {
		padding: 40px 16px;
	}
	.ev-es-index__grid {
		grid-template-columns: 1fr;
	}
	.ev-es-grid--people {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
	.ev-es-grid--logos {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
	.ev-es-card--people .ev-es-card__media {
		width: 84px;
		height: 84px;
	}
	.ev-es-modal__panel {
		padding: 22px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ev-es-card__hit,
	.ev-es-index__card,
	.ev-es-chip {
		transition: none;
	}
	button.ev-es-card__hit:hover,
	.ev-es-index__card:hover {
		transform: none;
	}
}
