/* =========================================================
   CXO Events: public styles
   The look matches the CXO Global site: navy ink, light blue
   accent, serif headings. Change the colors in the first block.
========================================================= */

.cxo-ev,
.cxo-ev-single {
	--ev-ink: #0e1a22;
	--ev-body: #44535c;
	--ev-accent: #9bc8d7;
	--ev-line: rgba(14, 26, 34, 0.2);
	--ev-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

.cxo-ev,
.cxo-ev *,
.cxo-ev *::before,
.cxo-ev *::after,
.cxo-ev-single,
.cxo-ev-single *,
.cxo-ev-single *::before,
.cxo-ev-single *::after {
	box-sizing: border-box;
}

.cxo-ev {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	color: var(--ev-ink);
	font-size: 17px;
	line-height: 1.6;
}

.cxo-ev p {
	margin: 0;
}

/* ---------- Heading and filter tabs ---------- */

.cxo-ev__heading {
	margin: 0 0 32px;
	color: var(--ev-ink);
	font-family: var(--ev-serif);
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cxo-ev__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-bottom: 48px;
}

.cxo-ev__filters a {
	padding-bottom: 4px;
	color: var(--ev-body);
	border-bottom: 2px solid transparent;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.cxo-ev__filters a:hover {
	color: var(--ev-ink);
	border-color: var(--ev-accent);
}

.cxo-ev__filters a.is-current {
	color: var(--ev-ink);
	border-color: var(--ev-ink);
}

/* ---------- List ---------- */

.cxo-ev__list {
	border-bottom: 1px solid var(--ev-line);
}

.cxo-ev__empty {
	padding: 48px 0;
	border-top: 1px solid var(--ev-line);
	color: var(--ev-body);
	font-size: 18px;
}

.cxo-ev__item {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding: 48px 0;
	border-top: 1px solid var(--ev-line);
}

.cxo-ev__item--noimage {
	grid-template-columns: minmax(0, 1fr);
}

.cxo-ev__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #16252f;
}

.cxo-ev__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.cxo-ev__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.cxo-ev__body {
	min-width: 0;
}

/* ---------- Tags ---------- */

.cxo-ev__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.cxo-ev__tag {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--ev-ink);
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.cxo-ev__tag--upcoming {
	color: var(--ev-ink);
	background: var(--ev-accent);
	border-color: var(--ev-accent);
}

.cxo-ev__tag--live {
	color: #ffffff;
	background: var(--ev-ink);
}

.cxo-ev__tag--past {
	color: var(--ev-body);
	background: transparent;
	border-color: var(--ev-line);
}

.cxo-ev__type {
	color: var(--ev-body);
	font-size: 16px;
	font-weight: 600;
}

/* ---------- Text ---------- */

.cxo-ev__title {
	max-width: 24ch;
	margin: 16px 0 0;
	font-family: var(--ev-serif);
	font-size: clamp(26px, 2.8vw, 38px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.cxo-ev__title a {
	color: var(--ev-ink);
	text-decoration: none;
}

.cxo-ev__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ev-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.cxo-ev__when {
	margin-top: 16px !important;
	color: var(--ev-ink);
	font-size: 18px;
	font-weight: 600;
}

.cxo-ev__where {
	margin-top: 4px !important;
	color: var(--ev-body);
	font-size: 17px;
}

.cxo-ev__summary {
	max-width: 38em;
	margin-top: 16px !important;
	color: var(--ev-body);
}

.cxo-ev__people {
	margin-top: 16px !important;
	color: var(--ev-body);
}

.cxo-ev__people strong {
	color: var(--ev-ink);
	font-weight: 600;
}

/* ---------- Actions ---------- */

.cxo-ev__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	margin-top: 32px;
}

.cxo-ev__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	color: var(--ev-ink);
	background: var(--ev-accent);
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.cxo-ev__button:hover {
	color: #ffffff;
	background: var(--ev-ink);
}

.cxo-ev__more {
	padding-bottom: 4px;
	color: var(--ev-ink);
	border-bottom: 1px solid var(--ev-ink);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 200ms ease;
}

.cxo-ev__more:hover {
	border-color: var(--ev-accent);
}

.cxo-ev__count {
	color: var(--ev-body);
	font-size: 16px;
}

/* ---------- Pagination ---------- */

.cxo-ev__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
}

.cxo-ev__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	color: var(--ev-ink);
	border: 1px solid var(--ev-line);
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

a.cxo-ev__page:hover {
	border-color: var(--ev-ink);
}

.cxo-ev__page.is-current {
	color: #ffffff;
	background: var(--ev-ink);
	border-color: var(--ev-ink);
}

.cxo-ev__gap {
	padding: 0 4px;
	color: var(--ev-body);
}

/* ---------- Single event page ---------- */

.cxo-ev-single--top {
	margin-bottom: 32px;
}

.cxo-ev-single--top .cxo-ev__when,
.cxo-ev-single--top .cxo-ev__where {
	margin-top: 12px;
}

.cxo-ev-single--top p {
	margin-bottom: 0;
}

.cxo-ev-single--top .cxo-ev__button {
	margin-top: 20px;
}

.cxo-ev-single {
	margin-top: 48px;
	color: var(--ev-ink);
}

.cxo-ev-single--top {
	margin-top: 0;
}

.cxo-ev-single__heading {
	margin: 0 0 16px;
	font-family: var(--ev-serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
}

.cxo-ev-single__people,
.cxo-ev-single__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cxo-ev-single__people li,
.cxo-ev-single__links li {
	padding: 12px 0;
	border-top: 1px solid var(--ev-line);
}

.cxo-ev-single__people span {
	display: block;
	color: var(--ev-body);
}

.cxo-ev-single__links a {
	color: var(--ev-ink);
	font-weight: 600;
}

.cxo-ev-single__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.cxo-ev-single__gallery a {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #16252f;
}

.cxo-ev-single__gallery img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Focus ---------- */

.cxo-ev a:focus-visible,
.cxo-ev-single a:focus-visible {
	outline: 2px solid var(--ev-ink);
	outline-offset: 4px;
}

/* ---------- Tablet and mobile ---------- */

@media (max-width: 760px) {

	.cxo-ev__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 32px 0;
	}

	.cxo-ev__image {
		max-width: 560px;
	}

	.cxo-ev__title {
		max-width: 28ch;
	}

}

@media (max-width: 480px) {

	.cxo-ev__image {
		max-width: none;
	}

	.cxo-ev__button {
		width: 100%;
	}

}

@media (prefers-reduced-motion: reduce) {

	.cxo-ev__button,
	.cxo-ev__more {
		transition: none;
	}

}
