.cd-front {
	--news-bg: #f5fbff;
	--news-surface: #ffffff;
	--news-surface-2: #f0f8ff;
	--news-surface-3: #e3f4ff;
	--news-line: rgba(16, 48, 72, 0.12);
	--news-line-strong: rgba(16, 48, 72, 0.22);
	--news-text: #102033;
	--news-muted: rgba(16, 32, 51, 0.72);
	--news-soft: rgba(16, 32, 51, 0.58);
	--news-accent: #38b6ff;
	--news-accent-2: #f5b942;
	--news-danger: #ff6b5f;
	--news-radius: 8px;
	--news-shadow: 0 18px 48px rgba(15, 56, 86, 0.14);
	--news-shadow-soft: 0 12px 28px rgba(15, 56, 86, 0.10);

	background:
		linear-gradient(180deg, rgba(56, 182, 255, 0.10), rgba(255, 255, 255, 0) 240px),
		var(--news-bg);
	color: var(--news-text);
	overflow-x: clip;
	overflow-y: visible;
	padding: 24px 0 76px;
}

.cd-front *,
.cd-front *::before,
.cd-front *::after {
	min-width: 0;
}

.cd-front .cd-container {
	width: min(1240px, calc(100% - 32px));
	margin-inline: auto;
	padding: 0;
}

.cd-front a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.cd-front a:focus-visible {
	outline: 3px solid rgba(56, 182, 255, 0.55);
	outline-offset: 4px;
	border-radius: 6px;
}

.cd-section-kicker {
	margin: 0;
	color: var(--news-accent);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.cd-front-section {
	margin-top: 38px;
}

.cd-front-section--hero {
	margin-top: 0;
}

.cd-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.cd-section-title {
	margin: 5px 0 0;
	font-size: 1.85rem;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.1;
	text-wrap: balance;
}

.cd-section-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	justify-self: end;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--news-accent);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: color 0.18s ease, transform 0.18s ease;
}

.cd-section-link::after {
	content: "→";
	margin-left: 7px;
	transform: translateY(-1px);
	transition: transform 0.22s ease;
}

.cd-section-link:hover {
	opacity: 1;
	transform: translateY(-1px);
	color: #0a95df;
	text-decoration: none;
}

.cd-section-link:hover::after,
.cd-section-link:focus-visible::after {
	transform: translate(5px, -1px);
}

.cd-featured-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
	gap: 20px;
	align-items: stretch;
}

.cd-lead-story,
.cd-feature-card,
.cd-news-card,
.cd-category-card,
.cd-sidebar-panel,
.cd-empty-state {
	border: 1px solid var(--news-line);
	border-radius: var(--news-radius);
	background: var(--news-surface);
	box-shadow: var(--news-shadow-soft);
	overflow: clip;
}

.cd-lead-story,
.cd-news-card,
.cd-category-card,
.cd-feature-card {
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cd-lead-story:hover,
.cd-news-card:hover,
.cd-category-card:hover,
.cd-feature-card:hover {
	transform: translateY(-3px);
	border-color: var(--news-line-strong);
	box-shadow: var(--news-shadow);
}

.cd-lead-story__media,
.cd-feature-card__media,
.cd-news-card__media,
.cd-category-card__media {
	position: relative;
	display: block;
	background: var(--news-surface-2);
	overflow: hidden;
}

.cd-lead-story__media {
	aspect-ratio: 16 / 9;
}

.cd-feature-card__media {
	min-height: 100%;
}

.cd-news-card__media {
	aspect-ratio: 16 / 10;
}

.cd-category-card__media {
	aspect-ratio: 16 / 10;
}

.cd-lead-story__image,
.cd-feature-card__image,
.cd-news-card__image,
.cd-category-card__image,
.cd-news-fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.cd-lead-story:hover .cd-lead-story__image,
.cd-feature-card:hover .cd-feature-card__image,
.cd-news-card:hover .cd-news-card__image,
.cd-category-card:hover .cd-category-card__image {
	transform: scale(1.035);
}

.cd-news-fallback {
	position: relative;
	min-height: 100%;
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(56, 182, 255, 0.16), transparent 42%),
		linear-gradient(315deg, rgba(245, 185, 66, 0.16), transparent 44%),
		var(--news-surface-2);
	color: var(--news-text);
	font-weight: 900;
}

.cd-news-fallback::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid var(--news-line);
	border-radius: 6px;
}

.cd-news-fallback span {
	position: relative;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid var(--news-line-strong);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.72);
	font-size: 1rem;
}

.cd-lead-story__body {
	padding: 28px;
}

.cd-news-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--news-accent);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.cd-news-kicker::before {
	content: "";
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.cd-news-kicker:hover {
	color: #0a95df;
	opacity: 1;
}

.cd-lead-story__title,
.cd-feature-card__title,
.cd-news-card__title,
.cd-category-card__title,
.cd-side-list h3 {
	margin: 0;
	font-weight: 850;
	letter-spacing: 0;
	overflow-wrap: anywhere;
	word-break: normal;
}

.cd-lead-story__title {
	margin-top: 13px;
	font-size: 2.45rem;
	line-height: 1.04;
	text-wrap: balance;
}

.cd-lead-story__title a,
.cd-feature-card__title a,
.cd-news-card__title a,
.cd-category-card__title a,
.cd-ranked-list a,
.cd-side-list a {
	text-decoration: none;
}

.cd-lead-story__title a:hover,
.cd-feature-card__title a:hover,
.cd-news-card__title a:hover,
.cd-category-card__title a:hover,
.cd-ranked-list a:hover,
.cd-side-list a:hover {
	text-decoration: underline;
	opacity: 1;
}

.cd-lead-story__excerpt,
.cd-news-card__excerpt {
	margin: 14px 0 0;
	color: var(--news-muted);
	line-height: 1.68;
}

.cd-news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	align-items: center;
	margin-top: 15px;
	color: var(--news-soft);
	font-size: 0.84rem;
	line-height: 1.35;
}

.cd-card-meta__sep {
	margin: 0 .42em;
	color: inherit;
}

.cd-news-meta > * {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: 0;
	line-height: inherit;
}

.cd-card-meta__date,
.cd-card-meta__comments {
	display: inline-flex;
	align-items: center;
	color: inherit;
	font: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.cd-feature-stack {
	display: grid;
	gap: 12px;
}

.cd-feature-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	min-height: 132px;
	background: var(--news-surface);
}

.cd-feature-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 14px 16px;
}

.cd-feature-card__title {
	margin-top: 8px;
	font-size: 1.02rem;
	line-height: 1.32;
}

.cd-feature-card .cd-news-meta {
	margin-top: 10px;
}

.cd-front-shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 30px;
	align-items: start;
	margin-top: 40px;
}

.cd-front-shell__main {
	display: grid;
	gap: 10px;
}

.cd-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.cd-news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--news-surface);
}

.cd-news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 17px;
}

.cd-news-card__title {
	margin-top: 10px;
	font-size: 1.18rem;
	line-height: 1.28;
}

.cd-news-card__excerpt {
	font-size: 0.94rem;
}

.cd-news-card .cd-news-meta {
	margin-top: auto;
	padding-top: 16px;
}

.cd-category-section {
	padding-top: 14px;
}

.cd-category-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
	gap: 14px;
}

.cd-category-card:first-child {
	grid-row: span 2;
}

.cd-category-card:first-child .cd-category-card__media {
	aspect-ratio: 16 / 11;
}

.cd-category-card:not(:first-child) {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	background: var(--news-surface);
}

.cd-category-card:not(:first-child) .cd-category-card__media {
	aspect-ratio: auto;
	min-height: 118px;
}

.cd-category-card__body {
	padding: 16px;
}

.cd-category-card__title {
	margin-top: 9px;
	font-size: 1.08rem;
	line-height: 1.32;
}

.cd-category-card:first-child .cd-category-card__title {
	font-size: 1.45rem;
	line-height: 1.18;
}

.cd-front-sidebar {
	position: sticky;
	top: calc(var(--header-h, 72px) + 16px);
	align-self: start;
	height: max-content;
	margin-top: 0;
	max-height: none;
	overflow: visible;
	transform: translateZ(0);
	display: grid;
	gap: 18px;
}

@media (min-width: 1121px) {
	.cd-feature-card {
		grid-template-columns: 116px minmax(0, 1fr);
		min-height: 112px;
	}

	.cd-feature-card__body {
		padding: 12px 14px;
	}

	.cd-feature-card__title {
		margin-top: 7px;
		font-size: 0.96rem;
		line-height: 1.25;
	}

	.cd-feature-card .cd-news-meta {
		margin-top: 8px;
		font-size: 0.8rem;
	}
}

body.admin-bar .cd-front-sidebar {
	top: calc(var(--header-h, 72px) + 48px);
}

@media (max-width: 782px) {
	body.admin-bar .cd-front-sidebar {
		top: calc(var(--header-h, 72px) + 62px);
	}
}

@supports not (overflow: clip) {
	.cd-front {
		overflow-x: visible;
	}
}

.cd-sidebar-panel {
	padding: 18px;
	background: var(--news-surface);
}

.cd-sidebar-panel__head {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--news-line);
}

.cd-sidebar-panel__head h2 {
	margin: 5px 0 0;
	font-size: 1.12rem;
	line-height: 1.2;
}

.cd-ranked-list,
.cd-side-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cd-ranked-list {
	display: grid;
	gap: 0;
	counter-reset: news-rank;
}

.cd-ranked-list__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	padding: 15px 0;
	border-bottom: 1px solid var(--news-line);
}

.cd-ranked-list__item:last-child,
.cd-side-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.cd-ranked-list__number {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 32px;
	border: 1px solid var(--news-line);
	border-radius: 6px;
	color: var(--news-accent-2);
	font-size: 0.78rem;
	font-weight: 900;
}

.cd-ranked-list a {
	align-self: center;
	font-weight: 800;
	line-height: 1.34;
}

.cd-side-list {
	display: grid;
}

.cd-side-list__item {
	padding: 15px 0;
	border-bottom: 1px solid var(--news-line);
}

.cd-side-list .cd-news-meta {
	margin-top: 0;
}

.cd-side-list h3 {
	margin-top: 7px;
	font-size: 1rem;
	line-height: 1.35;
}

.cd-empty-state {
	margin-top: 34px;
	padding: 28px;
}

.cd-empty-state h2 {
	margin: 0;
	font-size: 1.6rem;
}

.cd-empty-state p {
	margin: 10px 0 0;
	color: var(--news-muted);
	line-height: 1.65;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cd-js .cd-front .cd-lead-story,
.cd-js .cd-front .cd-feature-card,
.cd-js .cd-front .cd-news-card,
.cd-js .cd-front .cd-category-card,
.cd-js .cd-front .cd-sidebar-panel,
.cd-js .cd-front .cd-archive-card {
	opacity: 0;
	transform: translateY(14px);
}

.cd-js .cd-front .cd-lead-story.is-visible,
.cd-js .cd-front .cd-feature-card.is-visible,
.cd-js .cd-front .cd-news-card.is-visible,
.cd-js .cd-front .cd-category-card.is-visible,
.cd-js .cd-front .cd-sidebar-panel.is-visible,
.cd-js .cd-front .cd-archive-card.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.42s ease, transform 0.42s ease;
}

.cd-js .cd-front .cd-lead-story.is-visible:hover,
.cd-js .cd-front .cd-feature-card.is-visible:hover,
.cd-js .cd-front .cd-news-card.is-visible:hover,
.cd-js .cd-front .cd-category-card.is-visible:hover {
	transform: translateY(-3px);
	border-color: var(--news-line-strong);
	box-shadow: var(--news-shadow);
}

@media (max-width: 1120px) {
	.cd-featured-layout,
	.cd-front-shell {
		grid-template-columns: 1fr;
	}

	.cd-feature-stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cd-feature-stack .cd-feature-card:nth-child(n+5) {
		display: none;
	}

	.cd-front-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 880px) {
	.cd-lead-story__title {
		font-size: 2rem;
		line-height: 1.08;
	}

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

	.cd-category-grid {
		grid-template-columns: 1fr;
	}

	.cd-category-card:first-child {
		grid-row: auto;
	}

	.cd-category-card:not(:first-child) {
		grid-template-columns: 150px minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.cd-front .cd-container {
		width: min(100% - 24px, 1240px);
	}

	.cd-section-heading {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: 8px 12px;
		margin-bottom: 16px;
	}

	.cd-section-link {
		font-size: 0.86rem;
	}

	.cd-feature-stack,
	.cd-news-grid,
	.cd-front-sidebar {
		grid-template-columns: 1fr;
	}

	.cd-feature-card,
	.cd-category-card:not(:first-child) {
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.cd-feature-card__media,
	.cd-category-card:not(:first-child) .cd-category-card__media {
		min-height: 112px;
	}
}

@media (max-width: 520px) {
	.cd-front {
		padding-bottom: 54px;
	}

	.cd-section-title {
		font-size: 1.5rem;
	}

	.cd-lead-story__body,
	.cd-empty-state {
		padding: 20px;
	}

	.cd-lead-story__title {
		font-size: 1.65rem;
	}

	.cd-feature-card,
	.cd-category-card:not(:first-child) {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.cd-feature-card__body,
	.cd-category-card__body,
	.cd-news-card__body,
	.cd-sidebar-panel {
		padding: 14px;
	}

	.cd-feature-card__title,
	.cd-side-list h3 {
		font-size: 0.96rem;
	}

	.cd-news-card__title,
	.cd-category-card:first-child .cd-category-card__title {
		font-size: 1.12rem;
	}
}

@media (max-width: 380px) {
	.cd-section-heading {
		grid-template-columns: 1fr;
	}

	.cd-section-link {
		justify-self: end;
		font-size: 0.82rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cd-lead-story,
	.cd-news-card,
	.cd-category-card,
	.cd-feature-card,
	.cd-lead-story__image,
	.cd-feature-card__image,
	.cd-news-card__image,
	.cd-category-card__image,
	.cd-section-link,
	.cd-section-link::after,
	.cd-front .is-visible {
		transition: none;
	}

	.cd-lead-story:hover,
	.cd-news-card:hover,
	.cd-category-card:hover,
	.cd-feature-card:hover,
	.cd-section-link:hover {
		transform: none;
	}

	.cd-js .cd-front .cd-lead-story,
	.cd-js .cd-front .cd-feature-card,
	.cd-js .cd-front .cd-news-card,
	.cd-js .cd-front .cd-category-card,
	.cd-js .cd-front .cd-sidebar-panel,
	.cd-js .cd-front .cd-archive-card,
	.cd-front .is-visible {
		opacity: 1;
		transform: none;
	}
}
