/**
 * Events landing — yacht-style hero + SYT sections.
 */

.myh-events,
.myh-events * {
	font-family: "Gotham Book", sans-serif;
}

/* Intro under hero (same pattern as yacht tabs) */
.myh-events__intro-block {
	background: #fff;
	padding: 1.75rem 0 0.75rem;
	text-align: center;
}

.myh-events__intro-block--after-hero {
	padding-top: 1.75rem;
}

.myh-events__lead {
	max-width: 46rem;
	margin: 0 auto;
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.65;
}

.myh-events__section {
	padding: 1.25rem 0 2.5rem;
	background: #fff;
}

.myh-events__section--past {
	border-top: 1px solid var(--myh-border, #e5e5e5);
	padding-top: 2rem;
}

.myh-events__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.myh-events__section-head--solo {
	justify-content: flex-start;
}

.myh-events__section-title {
	margin: 0;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 700;
	color: #0a2540;
	line-height: 1.25;
}

.myh-events__see-all {
	flex-shrink: 0;
	color: var(--myh-primary, #0096e1);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.myh-events__see-all:hover {
	text-decoration: underline;
}

.myh-events__grid--upcoming {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem 1.25rem;
}

.myh-event-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(10, 37, 64, 0.08);
	height: 100%;
}

.myh-event-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #e8eef3;
	width: 100%;
}

.myh-event-card__img,
.myh-event-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center;
	color: #9aa3af;
	background: #dbe3ea;
}

.myh-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.9rem 1rem 1.1rem;
	flex: 1;
}

.myh-event-card__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0a2540;
}

.myh-event-card__title a {
	color: inherit;
}

.myh-event-card__title a:hover {
	color: var(--myh-primary, #0096e1);
}

.myh-event-card__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: #6b7280;
	font-size: 0.82rem;
	line-height: 1.4;
}

.myh-event-card__icon {
	display: inline-flex;
	color: #9aa3af;
	flex-shrink: 0;
}

.myh-event-card__edition {
	margin: 0.45rem 0 0;
	color: #9aa3af;
	font-size: 0.78rem;
	line-height: 1.3;
}

.myh-events-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	margin: 0.25rem 0 1.5rem;
	background: #f3f4f6;
	border-radius: 4px;
}

.myh-events-ad__label {
	color: #9aa3af;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Reports: 2-col */
.myh-events-reports {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 2.5rem;
}

.myh-events-report__media {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	background: #e8eef3;
	width: 100%;
}

.myh-events-report__img,
.myh-events-report__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	max-height: 320px;
	object-fit: cover;
	object-position: center;
	background: #dbe3ea;
}

.myh-events-report__body {
	padding-top: 1rem;
}

.myh-events-report__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 700;
	line-height: 1.3;
	color: #0a2540;
}

.myh-events-report__title a {
	color: inherit;
}

.myh-events-report__title a:hover {
	color: var(--myh-primary, #0096e1);
}

.myh-events-report__excerpt {
	margin: 0 0 0.65rem;
	color: #4a5568;
	font-size: 0.92rem;
	line-height: 1.55;
}

.myh-events-report__meta {
	margin: 0;
	color: #9aa3af;
	font-size: 0.82rem;
}

/* Event news strip */
.myh-events-news {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.15rem 1.25rem;
}

.myh-events-news__link {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	height: 100%;
	color: inherit;
}

.myh-events-news__media {
	display: block;
	border-radius: 5px;
	overflow: hidden;
	background: #e8eef3;
	width: 100%;
}

.myh-events-news__img,
.myh-events-news__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	max-height: 140px;
	object-fit: cover;
	background: #dbe3ea;
}

.myh-events-news__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0a2540;
}

.myh-events-news__link:hover .myh-events-news__title {
	color: var(--myh-primary, #0096e1);
}

.myh-events-news__meta {
	color: #9aa3af;
	font-size: 0.78rem;
}

.myh-events__more {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.myh-events__load-more {
	appearance: none;
	border: 0;
	border-radius: 6px;
	background: var(--myh-primary, #0096e1);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.7rem 1.75rem;
	cursor: pointer;
}

.myh-events__load-more:hover {
	background: #007bb8;
}

.myh-events__load-more:disabled {
	opacity: 0.65;
	cursor: wait;
}

.myh-events__empty {
	margin: 0;
	color: #6b7280;
	text-align: center;
	padding: 1.5rem 0;
}

/* Hide default page chrome */
.myh-events-page .wp-block-post-title,
.myh-events-page .entry-title,
.myh-events-page .myh-page-layout__title,
.myh-events-page .myh-page-layout__updated {
	display: none !important;
}

body.myh-events-page main.wp-block-group,
body.myh-events-page.page:not(.myh-page-has-layout) main.wp-block-group,
body.myh-events-page.myh-has-yl-hero:not(.myh-page-has-layout) main.wp-block-group {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 0 !important;
}

.myh-events-page .entry-content > .myh-events:first-child,
.myh-events-page .wp-block-post-content > .myh-events:first-child {
	margin-top: 0;
}

/* Events hero uses shared yacht hub pipe nav centering */
.myh-events-page .myh-yl-hero__content--hub .myh-yl__subnav-list {
	justify-content: center;
}

.myh-events-page .myh-yl-hero__content--hub .myh-yl__subnav-list > li:not(:last-child)::after {
	content: "|";
	margin: 0 0.65rem;
	color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1199.98px) {
	.myh-events__grid--upcoming {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.myh-events-news {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.myh-events__grid--upcoming,
	.myh-events-reports {
		grid-template-columns: 1fr;
	}

	.myh-events-news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

.myh-event-single {
	background: #fff;
	padding: 1.5rem 0 3rem;
}

.myh-event-single,
.myh-event-single * {
	font-family: "Gotham Book", sans-serif;
}

.myh-event-single__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: #6b7280;
	font-size: 0.78rem;
	margin-bottom: 1.5rem;
}

.myh-event-single__crumbs a {
	color: #6b7280;
	text-decoration: none;
}

.myh-event-single__crumbs a:hover {
	color: var(--myh-navy, #0b2545);
}

.myh-event-single__heading {
	max-width: 52rem;
	margin: 0 auto 1rem;
	color: var(--myh-navy, #0b2545);
	font-family: "Gotham Bold", sans-serif;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	line-height: 1.35;
	text-align: center;
}

.myh-event-single__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0 0 2.25rem;
	color: #4b5563;
	font-size: 0.85rem;
}

.myh-event-single__facts strong {
	color: var(--myh-navy, #0b2545);
	font-family: "Gotham Bold", sans-serif;
	font-weight: 400;
}

.myh-event-single__website {
	color: var(--myh-navy, #0b2545);
	text-decoration: underline;
}

.myh-event-single__section {
	max-width: 52rem;
	margin: 0 auto 2.5rem;
}

.myh-event-single__section-title {
	color: var(--myh-navy, #0b2545);
	font-family: "Gotham Bold", sans-serif;
	font-size: 1.05rem;
	line-height: 1.4;
	margin: 0 0 0.9rem;
	text-align: center;
}

.myh-event-single__text,
.myh-event-single__content p {
	color: #4b5563;
	font-size: 0.9rem;
	line-height: 1.75;
	margin: 0 0 1rem;
}

.myh-event-single__bullets {
	margin: 0;
	padding-left: 1.1rem;
	color: #4b5563;
	font-size: 0.9rem;
	line-height: 1.8;
}

.myh-event-single__video {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}

.myh-event-single__video iframe,
.myh-event-single__video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.myh-event-single__contact {
	text-align: center;
	color: #4b5563;
	font-size: 0.88rem;
	line-height: 1.7;
}

.myh-event-single__contact p {
	margin: 0 0 0.25rem;
}

.myh-event-single__contact a {
	color: var(--myh-navy, #0b2545);
}

.myh-event-single__contact-name {
	color: var(--myh-navy, #0b2545);
	font-family: "Gotham Bold", sans-serif;
}

.myh-event-single__section--sponsors {
	max-width: 60rem;
}

.myh-event-sponsors {
	margin-bottom: 2rem;
}

.myh-event-sponsors__label {
	margin: 0 0 0.9rem;
	color: #6b7280;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.myh-event-sponsors__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.75rem 2.5rem;
}

.myh-event-sponsors__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 190px;
}

.myh-event-sponsors__img {
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.85;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.myh-event-sponsors__item:hover .myh-event-sponsors__img {
	filter: grayscale(0);
	opacity: 1;
}

.myh-event-single__back {
	margin: 1rem 0 0;
	text-align: center;
	font-size: 0.85rem;
}

.myh-event-single__back a {
	color: var(--myh-navy, #0b2545);
	text-decoration: none;
}

.myh-event-single__back a:hover {
	text-decoration: underline;
}

@media (max-width: 575.98px) {
	.myh-event-sponsors__grid {
		gap: 1.25rem 1.5rem;
	}

	.myh-event-sponsors__item {
		max-width: 130px;
	}
}
