.ffd-homepage {
	--ffd-bg: #f7fafc;
	--ffd-surface: #ffffff;
	--ffd-surface-alt: #eef5f9;
	--ffd-ink: #101828;
	--ffd-muted: #4f5b68;
	--ffd-border: rgba(17, 24, 39, 0.1);
	--ffd-blue: #0f6fa8;
	--ffd-blue-deep: #0b5d8e;
	--ffd-amber: #b87333;
	--ffd-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, #fbfdff 0%, var(--ffd-bg) 100%);
	color: var(--ffd-ink);
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.ffd-homepage h1,
.ffd-homepage h2,
.ffd-homepage h3 {
	color: var(--ffd-ink);
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.98;
	margin: 0;
}

.ffd-homepage a,
.ffd-homepage span,
.ffd-homepage input {
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.ffd-homepage__shell {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 24px;
}

.ffd-homepage__clusters,
.ffd-homepage__latest {
	padding: 52px 0 0;
}

.ffd-homepage__hero {
	padding-top: 76px;
}

.ffd-homepage__hero-grid {
	align-items: center;
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
	max-width: 680px;
}

.ffd-homepage__hero-copy {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 32px;
	box-shadow: var(--ffd-shadow);
	max-width: 520px;
	padding: 40px 28px;
}

.ffd-homepage__hero h1 {
	font-size: clamp(2.8rem, 5vw, 5.3rem);
	max-width: 8.6ch;
}

.ffd-homepage__lede {
	color: var(--ffd-muted);
	font-size: clamp(1.06rem, 1.7vw, 1.28rem);
	line-height: 1.75;
	margin: 24px 0 0;
	max-width: 32rem;
}

.ffd-homepage__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.ffd-homepage__button {
	align-items: center;
	background: var(--ffd-blue);
	border: 1px solid var(--ffd-blue);
	border-radius: 12px;
	color: #ffffff;
	display: inline-flex;
	font-size: 0.97rem;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ffd-homepage__button:hover,
.ffd-homepage__button:focus {
	background: var(--ffd-blue-deep);
	border-color: var(--ffd-blue-deep);
	color: #ffffff;
	transform: translateY(-1px);
}

.ffd-homepage__button--ghost {
	background: #ffffff;
	border-color: var(--ffd-border);
	color: var(--ffd-ink);
}

.ffd-homepage__button--ghost:hover,
.ffd-homepage__button--ghost:focus {
	background: #f8fbfd;
	border-color: rgba(17, 24, 39, 0.16);
	color: var(--ffd-ink);
}

.ffd-homepage__search-wrap {
	margin-top: 22px;
	max-width: 420px;
}

.ffd-homepage__search-wrap .search-field {
	background: #ffffff;
	border: 1px solid var(--ffd-border);
	border-radius: 12px;
	color: var(--ffd-ink);
	font-size: 0.96rem;
	min-height: 50px;
	padding: 0 16px;
	width: 100%;
}

.ffd-homepage__search-wrap .search-submit {
	background: #ffffff;
	border: 1px solid var(--ffd-border);
	border-radius: 12px;
	color: var(--ffd-ink);
	font-size: 0.92rem;
	font-weight: 800;
	min-height: 50px;
	padding: 0 18px;
}

.ffd-homepage__hero-media {
	background: #ffffff;
	border: 1px solid var(--ffd-border);
	border-radius: 18px;
	box-shadow: var(--ffd-shadow);
	overflow: hidden;
}

.ffd-homepage__hero-image {
	display: block;
	height: auto;
	width: 100%;
}

.ffd-homepage__eyebrow {
	color: var(--ffd-amber);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.ffd-homepage__section-intro {
	margin-bottom: 28px;
	max-width: 720px;
}

.ffd-homepage__section-intro h2 {
	font-size: clamp(2rem, 3vw, 3.1rem);
	margin-top: 0;
}

.ffd-homepage__section-intro p:last-child {
	color: var(--ffd-muted);
	font-size: 1rem;
	line-height: 1.78;
	margin: 14px 0 0;
}

.ffd-homepage__section-heading {
	align-items: end;
	display: grid;
	gap: 16px;
	margin-bottom: 28px;
}

.ffd-homepage__section-link {
	color: var(--ffd-blue);
	font-size: 0.98rem;
	font-weight: 800;
	text-decoration: none;
}

.ffd-homepage__section-link:focus-visible,
.ffd-cluster-panel__start:focus-visible,
.ffd-subgroup__item a:focus-visible,
.ffd-latest-card__body h3 a:focus-visible {
	outline: 2px solid var(--ffd-blue);
	outline-offset: 3px;
	text-decoration: underline;
}

.ffd-cluster-grid,
.ffd-latest-grid {
	display: grid;
	gap: 22px;
}

.ffd-cluster-panel,
.ffd-latest-card {
	background: var(--ffd-surface);
	border: 1px solid var(--ffd-border);
	border-radius: 18px;
	box-shadow: var(--ffd-shadow);
	display: flex;
	flex-direction: column;
}

.ffd-cluster-panel {
	overflow: hidden;
}

.ffd-cluster-panel__header {
	border-bottom: 1px solid var(--ffd-border);
	padding: 24px 22px 18px;
}

.ffd-cluster-panel__header h3 {
	font-size: 1.42rem;
}

.ffd-cluster-panel__tagline {
	color: var(--ffd-muted);
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 10px 0 0;
	max-width: 28ch;
}

.ffd-cluster-panel__start {
	color: var(--ffd-amber);
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 800;
	margin-top: 14px;
	text-decoration: none;
}

.ffd-cluster-panel__groups {
	display: grid;
	gap: 14px;
	padding: 18px 16px 16px;
}

.ffd-subgroup {
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 14px;
	overflow: hidden;
}

.ffd-subgroup__label {
	background: #f8fbfd;
	border-bottom: 1px solid rgba(17, 24, 39, 0.08);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	padding: 12px 14px;
	text-transform: uppercase;
}

.ffd-subgroup__list {
	list-style: none;
	margin: 0;
	max-height: 250px;
	overflow: auto;
	padding: 0;
}

.ffd-subgroup__item {
	border-bottom: 1px solid rgba(17, 24, 39, 0.06);
	display: grid;
	gap: 4px;
	padding: 14px;
}

.ffd-subgroup__item:last-child {
	border-bottom: none;
}

.ffd-subgroup__item a {
	color: var(--ffd-ink);
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.ffd-subgroup__item a:hover {
	color: var(--ffd-blue);
}

.ffd-subgroup__item span {
	color: #6a7685;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ffd-latest-card {
	overflow: hidden;
}

.ffd-latest-card__media {
	align-items: center;
	background: var(--ffd-surface-alt);
	display: flex;
	justify-content: center;
	min-height: 248px;
	text-decoration: none;
}

.ffd-latest-card__image {
	display: block;
	height: auto;
	max-height: 360px;
	object-fit: cover;
	width: 100%;
}

.ffd-latest-card__placeholder {
	background: linear-gradient(180deg, #f4f8fb 0%, #edf4f8 100%);
	height: 248px;
	width: 100%;
}

.ffd-latest-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 24px;
}

.ffd-latest-card__body h3 {
	font-size: 1.22rem;
	line-height: 1.2;
	margin-bottom: 10px;
}

.ffd-latest-card__body h3 a {
	color: var(--ffd-ink);
	text-decoration: none;
}

.ffd-latest-card__body h3 a:hover {
	color: var(--ffd-blue);
}

.ffd-latest-card__body p {
	color: var(--ffd-muted);
	font-size: 0.95rem;
	line-height: 1.72;
	margin: 0;
}

.home #header,
.home hr:first-of-type {
	display: none;
}

@media (min-width: 720px) {
	.ffd-homepage__search-wrap .search-form {
		align-items: center;
		display: grid;
		grid-template-columns: 1fr auto;
	}

	.ffd-homepage__search-wrap .search-field {
		margin: 0;
	}

	.ffd-homepage__search-wrap .search-submit {
		padding: 0 20px;
	}

	.ffd-homepage__section-heading {
		grid-template-columns: 1fr auto;
	}
}

@media (min-width: 980px) {
	.ffd-homepage__hero-copy {
		padding: 52px 44px;
	}

	.ffd-homepage__hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
	}

	.ffd-cluster-grid,
	.ffd-latest-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
