/**
 * Yacht News landing — SYT-style layout.
 */

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

.myh-yn__intro {
	background: #fff;
	padding: 1.75rem 0 0.5rem;
	text-align: center;
}

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

.myh-yn__featured {
	padding: 1.5rem 0 2rem;
	background: #fff;
}

.myh-yn-featured {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 2.5rem;
}

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

.myh-yn-card__img,
.myh-yn-card__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	max-height: 450px;
	object-fit: cover;
	object-position: center;
}

.myh-yn-card__placeholder {
	min-height: 280px;
	background: #dbe3ea;
}

.myh-yn-card__body {
	padding-top: 1rem;
}

.myh-yn-cat {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
}

.myh-yn-cat,
.myh-yn-cat a {
	color: var(--myh-primary, #0096e1);
	text-decoration: none;
}

.myh-yn-cat a:hover {
	text-decoration: underline;
}

.myh-yn-card__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	font-weight: 700;
	line-height: 1.3;
	color: #0a2540;
}

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

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

.myh-yn-card__excerpt {
	margin: 0 0 0.75rem;
	color: #4a5568;
	font-size: 0.92rem;
	line-height: 1.55;
}

.myh-yn-meta {
	margin: 0;
	color: #9aa3af;
	font-size: 0.82rem;
	line-height: 1.4;
}

.myh-yn__partners {
	padding: 1.25rem 0 2.25rem;
	background: #fff;
}

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

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

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

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

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

.myh-yn-partners {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.15rem 1.25rem;
}

.myh-yn-partner__link {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	height: 100%;
	color: inherit;
}

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

.myh-yn-partner__img,
.myh-yn-partner__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	max-height: 175px;
	object-fit: cover;
	object-position: center;
}

.myh-yn-partner__placeholder {
	min-height: 100px;
	background: #dbe3ea;
}

.myh-yn-partner__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-yn-partner__link:hover .myh-yn-partner__title {
	color: var(--myh-primary, #0096e1);
}

.myh-yn__latest {
	padding: 0.5rem 0 3rem;
	background: #fff;
}

.myh-yn-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 920px;
}

.myh-yn-list__item {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 1.35rem 1.75rem;
	align-items: start;
}

.myh-yn-list__media {
	display: block;
	width: 320px;
	max-width: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: #e8eef3;
	flex-shrink: 0;
}

.myh-yn-list__img,
.myh-yn-list__placeholder {
	display: block;
	width: 320px;
	max-width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center;
}

.myh-yn-list__placeholder {
	background: #dbe3ea;
}

.myh-yn-list__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-yn-list__title a {
	color: inherit;
}

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

.myh-yn-list__excerpt {
	margin: 0 0 0.7rem;
	color: #4a5568;
	font-size: 0.92rem;
	line-height: 1.55;
}

.myh-yn-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	background: #f3f4f6;
	border-radius: 4px;
}

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

.myh-yn__more {
	display: flex;
	justify-content: center;
	margin-top: 2.25rem;
}

.myh-yn__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;
	transition: background 0.2s ease, opacity 0.2s ease;
}

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

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

.myh-yn__empty {
	padding: 3rem 0;
	text-align: center;
	color: #6b7280;
}

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

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

body.myh-yacht-news-page main.wp-block-group,
body.myh-yacht-news-page.page:not(.myh-page-has-layout) main.wp-block-group,
body.myh-yacht-news-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;
}

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

@media (max-width: 991.98px) {
	.myh-yn-featured {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.myh-yn-list__item {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.myh-yn-list__media,
	.myh-yn-list__img,
	.myh-yn-list__placeholder {
		width: 240px;
		height: 150px;
	}
}

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

	.myh-yn-list__item {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.myh-yn-list__media,
	.myh-yn-list__img,
	.myh-yn-list__placeholder {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
		max-height: 220px;
	}
}

@media (max-width: 575.98px) {
	.myh-yn__intro {
		padding-top: 1.25rem;
	}

	.myh-yn-partners {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}
