/* The Latest, News Single, Search, 404. */

.ceh-dark-hero {
	padding: var(--ceh-space-2xl) max(var(--ceh-layout-gutter), (100% - var(--ceh-layout-content-max)) / 2);
	background: var(--ceh-hero-no-image);
	color: var(--ceh-text-inverse);
}

.ceh-dark-hero--404 {
	padding-block: var(--ceh-space-3xl);
}

.ceh-dark-hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-md);
	max-width: 720px;
}

.ceh-dark-hero__title {
	margin: 0;
	font: 700 var(--ceh-display-page-title-size) / var(--ceh-display-page-title-line-height) var(--ceh-font-heading);
}

.ceh-dark-hero__intro {
	margin: 0;
	color: var(--ceh-text-muted-on-inverse);
}

/* ---------- Grids ---------- */
.ceh-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--ceh-space-xl) var(--ceh-space-md);
}

.ceh-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-xs);
}

.ceh-news-card__still {
	display: block;
	overflow: hidden;
	aspect-ratio: 2.39 / 1;
	margin-bottom: var(--ceh-space-xs);
	border-radius: var(--ceh-radius-md);
}

.ceh-news-card__title {
	margin: 0;
	font: 700 var(--ceh-heading-h4-size) / var(--ceh-heading-h4-line-height) var(--ceh-font-heading);
}

.ceh-news-card__title a {
	color: var(--ceh-text-primary);
	text-decoration: none;
}

.ceh-news-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ceh-news-card:hover .ceh-news-card__title a {
	color: var(--ceh-text-accent);
}

.ceh-news-card img {
	transition: transform 0.4s ease;
}

.ceh-news-card:hover img {
	transform: scale(1.03);
}

.ceh-load-more {
	align-self: center;
	margin-top: var(--ceh-space-lg);
}

/* ---------- News single ---------- */
.ceh-news {
	max-width: calc(var(--ceh-layout-content-max) + 2 * var(--ceh-layout-gutter));
	margin-inline: auto;
	padding: var(--ceh-space-xl) var(--ceh-layout-gutter) var(--ceh-space-2xl);
}

.ceh-news__header {
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-sm);
}

.ceh-news__back {
	color: var(--ceh-text-muted);
	text-decoration: none;
}

.ceh-news__title {
	max-width: 900px;
	margin: 0;
	font: 700 var(--ceh-display-hero-size) / var(--ceh-display-hero-line-height) var(--ceh-font-heading);
}

.ceh-news__standfirst {
	max-width: 720px;
	margin: 0;
	color: var(--ceh-text-secondary);
	font-size: 18px;
	line-height: 1.5;
}

.ceh-news__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--ceh-space-sm);
	margin-top: var(--ceh-space-sm);
	padding-top: var(--ceh-space-sm);
	border-top: var(--ceh-stroke-hairline) solid var(--ceh-border-divider);
}

.ceh-news__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ceh-space-sm);
}

.ceh-news__share a,
.ceh-news__share button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ceh-text-accent);
	font: 500 var(--ceh-caption-regular-size) / var(--ceh-caption-regular-line-height) var(--ceh-font-body);
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.ceh-news__image {
	margin: var(--ceh-space-lg) 0 0;
}

.ceh-news__image .ceh-still {
	aspect-ratio: 2.39 / 1;
	height: auto;
}

.ceh-news__image figcaption {
	margin-top: var(--ceh-space-xs);
	color: var(--ceh-text-muted);
	font-size: var(--ceh-caption-regular-size);
}

.ceh-news__columns {
	display: grid;
	grid-template-columns: 280px minmax(0, 720px);
	gap: var(--ceh-space-2xl);
	margin-top: var(--ceh-space-xl);
}

.ceh-news__aside {
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-lg);
}

.ceh-news__facts {
	margin: 0;
}

.ceh-news__facts div {
	padding: var(--ceh-space-sm) 0;
	border-top: var(--ceh-stroke-hairline) solid var(--ceh-border-divider);
}

.ceh-news__facts dt {
	color: var(--ceh-text-muted);
	font-size: var(--ceh-caption-regular-size);
	text-transform: uppercase;
}

.ceh-news__facts dd {
	margin: var(--ceh-space-2xs) 0 0;
}

.ceh-news__facts a {
	color: var(--ceh-text-accent);
	text-decoration: none;
}

.ceh-news__body > p:first-child {
	color: var(--ceh-text-primary);
	font-weight: 500;
}

.ceh-news__body blockquote {
	margin: var(--ceh-space-lg) 0;
	padding-left: var(--ceh-space-md);
	border-left: var(--ceh-stroke-frame) solid var(--ceh-border-accent);
	color: var(--ceh-text-primary);
	font: 700 var(--ceh-heading-h3-size) / var(--ceh-heading-h3-line-height) var(--ceh-font-heading);
}

.ceh-news__body blockquote cite {
	display: block;
	margin-top: var(--ceh-space-xs);
	color: var(--ceh-text-muted);
	font: 400 var(--ceh-caption-regular-size) / 1.4 var(--ceh-font-body);
	text-transform: uppercase;
}

.ceh-news__body h2,
.ceh-news__body h3 {
	margin-top: var(--ceh-space-lg);
	color: var(--ceh-text-primary);
	font: 700 var(--ceh-heading-h3-size) / var(--ceh-heading-h3-line-height) var(--ceh-font-heading);
}

.ceh-news__body table {
	width: 100%;
	border-collapse: collapse;
}

.ceh-news__body td {
	padding: var(--ceh-space-sm) var(--ceh-space-xs) var(--ceh-space-sm) 0;
	border-bottom: var(--ceh-stroke-hairline) solid var(--ceh-border-divider);
}

/* ---------- Search ---------- */
.ceh-search-form {
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-xs);
}

.ceh-search-form__row {
	display: flex;
	gap: var(--ceh-space-sm);
	max-width: 100%;
}

.ceh-search-form__row .ceh-field__input {
	flex: 1;
}

.ceh-search-form--inverse .ceh-field__label {
	color: var(--ceh-text-inverse);
}

.ceh-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ceh-space-xs);
}

.ceh-filter-chips .ceh-chip--light {
	min-height: 32px;
	padding-block: var(--ceh-space-2xs);
	border-color: var(--ceh-border-accent);
	color: var(--ceh-text-accent);
}

.ceh-filter-chips .ceh-chip--light.is-active {
	border-color: var(--ceh-bg-accent);
	background: var(--ceh-bg-accent);
	color: var(--ceh-text-inverse);
}

.ceh-search-group {
	padding-top: 0;
}

.ceh-person-chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: var(--ceh-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ceh-result-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ceh-result-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ceh-space-md);
	padding: var(--ceh-space-md) 0;
	border-bottom: var(--ceh-stroke-hairline) solid var(--ceh-border-subtle);
}

.ceh-result-row a {
	color: var(--ceh-text-primary);
	font: 700 var(--ceh-heading-h4-size) / var(--ceh-heading-h4-line-height) var(--ceh-font-heading);
	text-decoration: none;
}

.ceh-result-row a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ceh-result-row:hover a {
	color: var(--ceh-text-accent);
}

.ceh-result-row--news > span:first-child {
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-xs);
}

.ceh-result-row__thumb {
	flex: 0 0 160px;
	aspect-ratio: 2.39 / 1;
}

.ceh-no-results {
	padding: var(--ceh-space-lg) 0;
}

.ceh-no-results__title {
	margin: 0 0 var(--ceh-space-sm);
	font: 700 var(--ceh-heading-h3-size) / var(--ceh-heading-h3-line-height) var(--ceh-font-heading);
}

.ceh-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ceh-space-sm);
	margin: var(--ceh-space-sm) 0 0;
}

.ceh-dark-hero .ceh-button--outline {
	border-color: var(--ceh-border-accent);
	color: var(--ceh-text-accent-on-inverse);
}

@media (max-width: 1024px) {
	.ceh-news__columns {
		grid-template-columns: 1fr;
	}

	.ceh-news__aside {
		order: 2;
	}
}

@media (max-width: 767px) {
	.ceh-dark-hero__title,
	.ceh-news__title {
		font-size: var(--ceh-heading-h1-size);
		line-height: var(--ceh-heading-h1-line-height);
	}

	.ceh-search-form__row {
		flex-direction: column;
	}

	.ceh-result-row__thumb {
		flex-basis: 96px;
	}
}

/* ---------- Light pills (32px, light surfaces) ---------- */
.ceh-pill-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: var(--ceh-space-2xs) 14px;
	border: var(--ceh-stroke-hairline) solid var(--ceh-border-accent);
	border-radius: var(--ceh-radius-full);
	color: var(--ceh-text-accent);
	font: 500 var(--ceh-label-strong-size) / var(--ceh-label-strong-line-height) var(--ceh-font-label);
	text-decoration: none;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.ceh-pill-light--round {
	padding-inline: var(--ceh-space-xs);
}

.ceh-pill-light.is-active {
	border-color: var(--ceh-bg-accent);
	background: var(--ceh-bg-accent);
	color: var(--ceh-text-inverse);
}

.ceh-pill-light.is-disabled {
	opacity: 0.35;
	cursor: default;
}

.ceh-pill-light:not(.is-active):not(.is-disabled):hover {
	background: var(--ceh-bg-accent-subtle);
}

.ceh-year-selector__more--light .ceh-year-selector__menu {
	border: var(--ceh-stroke-hairline) solid var(--ceh-border-subtle);
	background: var(--ceh-bg-page);
}

.ceh-year-selector__more--light .ceh-year-selector__menu a {
	color: var(--ceh-text-accent);
}

/* ---------- No results ---------- */
.ceh-no-results {
	gap: var(--ceh-space-lg);
}

.ceh-did-you-mean {
	color: var(--ceh-text-accent);
	font: 700 var(--ceh-heading-h3-size) / var(--ceh-heading-h3-line-height) var(--ceh-font-heading);
	text-decoration: none;
}

.ceh-did-you-mean:hover {
	text-decoration: underline;
}

/* ---------- Distributors index ---------- */
.ceh-dist-controls {
	display: flex;
	flex-direction: column;
	gap: var(--ceh-space-xs);
	margin-bottom: var(--ceh-space-xl);
}

.ceh-dist-controls__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ceh-space-xs);
}

.ceh-dist-controls__row .ceh-year-selector__label {
	flex: 0 0 64px;
	color: var(--ceh-text-muted);
}

.ceh-dist-group + .ceh-dist-group {
	margin-top: var(--ceh-space-2xl);
}

.ceh-dist-group__letter {
	margin: 0;
	padding-bottom: var(--ceh-space-xs);
	border-bottom: var(--ceh-stroke-frame) solid var(--ceh-border-frame);
	font: 700 var(--ceh-heading-h4-size) / var(--ceh-heading-h4-line-height) var(--ceh-font-heading);
}

.ceh-dist-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ceh-dist-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--ceh-space-md);
	padding: var(--ceh-space-sm) 0;
	border-bottom: var(--ceh-stroke-hairline) solid var(--ceh-border-subtle);
}

.ceh-dist-logo {
	display: grid;
	flex: 0 0 112px;
	place-items: center;
	overflow: hidden;
	height: 72px;
	border: var(--ceh-stroke-hairline) solid var(--ceh-border-subtle);
	border-radius: var(--ceh-radius-md);
	background: var(--ceh-bg-surface);
}

.ceh-dist-logo--lg {
	width: 240px;
	height: 140px;
	border: 0;
}

.ceh-dist-logo__img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

.ceh-dist-row__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--ceh-space-2xs);
	min-width: 0;
}

.ceh-dist-row__name {
	color: var(--ceh-text-primary);
	font: 700 var(--ceh-heading-h4-size) / var(--ceh-heading-h4-line-height) var(--ceh-font-heading);
	text-decoration: none;
}

.ceh-dist-row__name::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ceh-dist-row:hover .ceh-dist-row__name {
	color: var(--ceh-text-accent);
}

.ceh-dist-row__meta {
	color: var(--ceh-text-secondary);
	font-size: var(--ceh-caption-regular-size);
}

.ceh-dist-row__pills {
	display: flex;
	gap: var(--ceh-space-xs);
}

.ceh-tag--sm {
	padding: 2px var(--ceh-space-xs);
	font-size: 11px;
	line-height: 16px;
}

.ceh-dist-row__arrow {
	color: var(--ceh-text-muted);
	font-size: 20px;
}

.ceh-dist-row:hover .ceh-dist-row__arrow {
	color: var(--ceh-text-accent);
}

@media (max-width: 767px) {
	.ceh-dist-row {
		flex-wrap: wrap;
	}

	.ceh-dist-logo {
		flex-basis: 72px;
		height: 48px;
	}

	.ceh-dist-row__pills {
		order: 3;
		flex-basis: 100%;
		padding-left: calc(72px + var(--ceh-space-md));
	}

	.ceh-dist-row__arrow {
		display: none;
	}

	.ceh-dist-logo--lg {
		width: 160px;
		height: 96px;
	}
}
