/* Front page central section (template-parts/front-central.php) */

.fc {
	--fc-ink: #1f2a37;
	--fc-text: #3c4858;
	--fc-muted: #556577;
	--fc-sky: #86bbdf;
	--fc-sky-deep: #4b8fbf;
	--fc-link: #23628e;
	--fc-link-hover: #164a6e;
	--fc-wash: #f2f7fb;
	--fc-line: #dbe6ef;
	--fc-ease: cubic-bezier(0.16, 1, 0.3, 1);

	padding: 72px 0 48px;
	color: var(--fc-text);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 300;
}

.fc ::selection {
	background: rgba(134, 187, 223, 0.45);
	color: var(--fc-ink);
}

/* Links: the global child styles turn link hover white; undo that here. */
.fc a,
.fc a:hover,
.fc a:focus {
	opacity: 1 !important;
}

.fc a:focus-visible {
	outline: 2px solid var(--fc-sky-deep);
	outline-offset: 3px;
	border-radius: 2px;
}

.fc-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fc-link) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	text-decoration-color: rgba(35, 98, 142, 0.35);
	transition: text-decoration-color 0.25s var(--fc-ease), color 0.25s var(--fc-ease);
}

.fc-link:hover,
.fc-link:focus {
	color: var(--fc-link-hover) !important;
	text-decoration-color: currentColor;
}

.fc-arrow {
	width: 16px;
	height: 16px;
	flex: none;
	transition: transform 0.3s var(--fc-ease);
}

.fc-link:hover .fc-arrow,
.fc-link:focus .fc-arrow {
	transform: translateX(4px);
}

/* ---------- Intro: statement + fact sheet ---------- */

.fc-intro {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 64px;
	align-items: start;
}

/* Statement stays in view while the taller fact sheet scrolls past. */
.fc-lead {
	position: sticky;
	top: 140px;
}

.fc-title {
	margin: 0 0 28px;
	color: var(--fc-ink);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-size: clamp(28px, 2.5vw, 40px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.fc-acronym {
	color: var(--fc-link);
	white-space: nowrap;
}

.fc-summary {
	max-width: 62ch;
	margin: 0 0 28px;
	color: var(--fc-text);
	font-family: "Roboto Slab", "Times New Roman", serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
}

.fc-sheet {
	padding: 28px 28px 8px;
	background: var(--fc-wash);
	border-radius: 6px;
}

/* Timeline */

.fc-time {
	margin-bottom: 28px;
}

.fc-time-label {
	margin: 0 0 2px;
	color: var(--fc-muted);
	font-size: 13px;
	font-weight: 700;
}

.fc-time-status {
	margin: 0 0 18px;
	color: var(--fc-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.fc-track {
	position: relative;
	height: 10px;
	margin-bottom: 30px;
	background: #d6e5f0;
	border-radius: 5px;
}

.fc-track-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--fc-progress, 0%);
	background: linear-gradient(90deg, var(--fc-sky), var(--fc-sky-deep));
	border-radius: 5px;
	animation: fc-fill 1.6s var(--fc-ease) 0.2s both;
}

.fc-time--running .fc-track-fill::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -7px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: #fff;
	border: 3px solid var(--fc-sky-deep);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(31, 42, 55, 0.18);
}

@keyframes fc-fill {
	from {
		width: 0;
	}
}

.fc-tick {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(255, 255, 255, 0.85);
}

.fc-tick span {
	position: absolute;
	top: 16px;
	left: 0;
	transform: translateX(-50%);
	color: var(--fc-muted);
	font-size: 12px;
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fc-time-range {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	color: var(--fc-ink);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Facts */

.fc-facts {
	margin: 0;
}

.fc-fact {
	padding: 14px 0;
	border-top: 1px solid var(--fc-line);
}

.fc-fact dt {
	margin: 0 0 3px;
	color: var(--fc-muted);
	font-size: 13px;
	font-weight: 700;
}

.fc-fact dd {
	margin: 0;
	color: var(--fc-ink);
	font-size: 15px;
	line-height: 1.5;
}

/* ---------- Section headings ---------- */

.fc-h {
	margin: 0 0 28px;
	color: var(--fc-ink);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.008em;
}

/* ---------- Themes ---------- */

.fc-themes {
	margin-top: 88px;
}

.fc-themes-body {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 64px;
	align-items: center;
}

.fc-theme-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--fc-line);
}

.fc-theme-list li {
	position: relative;
	padding: 18px 0 18px 36px;
	border-top: 1px solid var(--fc-line);
	color: var(--fc-ink);
	font-family: "Roboto Slab", "Times New Roman", serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.45;
	text-wrap: pretty;
}

.fc-theme-list li::before {
	content: "";
	position: absolute;
	top: 31px;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--fc-sky-deep);
}

.fc-poster {
	margin: 0;
}

.fc-poster img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* ---------- News ---------- */

.fc-news {
	margin-top: 88px;
}

.fc-news-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.fc-news-head .fc-h {
	margin: 0;
}

.fc-news-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-post {
	padding-top: 20px;
	border-top: 2px solid var(--fc-sky);
}

.fc-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0 0 10px;
	color: var(--fc-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.fc-post-meta time {
	font-weight: 700;
}

.fc-post-title {
	margin: 0 0 10px;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-wrap: pretty;
}

.fc-post-title a {
	color: var(--fc-ink) !important;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.4s var(--fc-ease), color 0.25s var(--fc-ease);
}

.fc-post-title a:hover,
.fc-post-title a:focus {
	color: var(--fc-link) !important;
	background-size: 100% 1px;
}

.fc-post-excerpt {
	margin: 0;
	color: var(--fc-text);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- Funding ---------- */

.fc-funding {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-top: 80px;
	padding-top: 32px;
	border-top: 1px solid var(--fc-line);
}

.fc-funding img {
	flex: none;
	width: 280px;
	max-width: 100%;
	height: auto;
}

.fc-funding p {
	max-width: 60ch;
	margin: 0;
	color: var(--fc-muted);
	font-size: 14px;
	line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.fc {
		padding-top: 56px;
	}

	.fc-lead {
		position: static;
	}

	.fc-intro,
	.fc-themes-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.fc-poster {
		max-width: 520px;
	}

	.fc-news-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.fc-themes,
	.fc-news {
		margin-top: 64px;
	}
}

@media (max-width: 600px) {
	.fc {
		padding: 40px 0 32px;
	}

	.fc-summary {
		font-size: 17px;
	}

	.fc-sheet {
		padding: 22px 20px 4px;
	}

	.fc-theme-list li {
		font-size: 17px;
		padding-left: 30px;
	}

	.fc-theme-list li::before {
		top: 29px;
		width: 16px;
	}

	.fc-funding {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-top: 56px;
	}

	.fc-funding img {
		width: 240px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-track-fill {
		animation: none;
	}

	.fc-link,
	.fc-arrow,
	.fc-post-title a {
		transition: none;
	}
}
