/*
 * TOP v2.1 coloring — Kyrgyz red as brand lead, yellow as support.
 * Scoped to the front page. IA / copy / structure stay in the templates.
 */

body.home {
	color: var(--top-text);
	background: var(--top-bg);
	--color-text: var(--top-text);
	--color-muted: var(--top-muted);
	--color-bg-warm: var(--top-bg);
	--color-accent-red: var(--top-red);
	--color-accent-gold: var(--top-yellow);
	--color-slate: var(--top-text);
}

body.home .site-header {
	background: var(--top-red-deep);
	color: var(--top-white);
	border-bottom: 1px solid var(--top-yellow);
	box-shadow: none;
	padding: 14px 28px;
}

body.home .site-header .logo-mark {
	background: var(--top-white);
	color: var(--top-red-deep);
}

body.home .site-header .logo-text {
	color: var(--top-white);
}

body.home .site-header .logo-text span {
	color: var(--top-white);
}

body.home .site-header .main-nav a {
	color: var(--top-white);
}

body.home .site-header .main-nav a:hover,
body.home .site-header .main-nav a:focus-visible,
body.home .site-header .main-nav a[aria-current="page"] {
	color: var(--top-yellow-soft);
	border-bottom-color: var(--top-yellow);
}

body.home .site-header .header-menu-btn {
	background: var(--top-white);
	border-color: var(--top-yellow);
	color: var(--top-red-deep);
}

body.home .site-header .header-menu-btn[aria-expanded="true"] {
	background: var(--top-yellow-soft);
	border-color: var(--top-yellow);
	color: var(--top-red-deep);
}

body.home .site-header .header-menu-btn:focus-visible,
body.home .site-header .main-nav a:focus-visible {
	outline: 2px solid var(--top-yellow-soft);
	outline-offset: 2px;
}

body.home .site-header .header-menu-panel {
	background: var(--top-white);
	border-color: var(--top-yellow);
	color: var(--top-text);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--top-text) 16%, transparent);
}

body.home .site-header .panel-title {
	color: var(--top-red);
}

body.home .site-header .panel-items {
	color: var(--top-muted);
}

body.home .site-header .panel-items a {
	color: var(--top-text);
}

body.home .site-header .panel-items a:hover,
body.home .site-header .panel-items a:focus-visible {
	color: var(--top-red);
}

body.home .skip-link:focus {
	border-color: var(--top-red);
}

body.home .header-menu-btn:focus-visible,
body.home .main-nav a:focus-visible,
body.home .btn-primary:focus-visible,
body.home .btn-secondary:focus-visible,
body.home .entrance-cta:focus-visible,
body.home .section-text-link:focus-visible,
body.home .art-title:focus-visible,
body.home .bottombar-item:focus-visible {
	outline: 2px solid var(--top-red);
	outline-offset: 2px;
}

/* Layout */
body.home .top-v2 {
	background: var(--top-bg);
}

body.home .top-wrap {
	width: min(1180px, calc(100% - 64px));
	margin-inline: auto;
}

body.home .section {
	padding: 56px 0;
}

body.home .section-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	color: var(--top-red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

body.home .section-eyebrow::before {
	content: "";
	width: 18px;
	height: 1px;
	flex: 0 0 18px;
	background: var(--top-yellow);
}

body.home .section-title {
	margin-bottom: 12px;
	color: var(--top-text);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

body.home .section-lead {
	max-width: 640px;
	margin-top: 0;
	margin-bottom: 28px;
	color: var(--top-muted);
	font-size: 15px;
	line-height: 1.8;
}

body.home .section-text-link {
	margin-top: 20px;
	color: var(--top-red);
	border-bottom-color: var(--top-yellow);
	font-size: 14px;
	font-weight: 700;
}

body.home .section-text-link:hover,
body.home .section-text-link:focus-visible {
	color: var(--top-red-deep);
}

/* Hero — white / warm, photo first, red as CTA only */
body.home .hero {
	display: grid;
	grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
	min-height: 420px;
	background: var(--top-white);
}

body.home .hero-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 40px 48px;
	background: var(--top-white);
	color: var(--top-text);
	border-left: 3px solid var(--top-red);
}

body.home .hero-portal-role {
	display: none;
}

body.home .hero-eyebrow {
	color: var(--top-red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: none;
}

body.home .hero-copy-l {
	color: var(--top-text);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.45;
}

body.home .hero-copy-s {
	max-width: 420px;
	color: var(--top-muted);
	font-size: 15px;
	line-height: 1.8;
}

body.home .hero-actions {
	gap: 12px;
	margin-top: 8px;
}

body.home .hero-actions .btn-primary {
	background: var(--top-red);
	color: var(--top-white);
	margin-top: 0;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

body.home .hero-actions .btn-primary:hover {
	background: var(--top-red-deep);
}

body.home .hero-actions .btn-secondary {
	background: var(--top-white);
	color: var(--top-red);
	border: 1px solid var(--top-red);
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 700;
}

body.home .hero-actions .btn-secondary:hover {
	background: var(--top-red-soft);
	border-color: var(--top-red);
	color: var(--top-red-deep);
}

body.home .hero-photo {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	background: var(--top-bg);
}

body.home .hero-photo .photo-ph,
body.home .hero-photo .media-frame {
	position: absolute;
	inset: 0;
	margin: 0;
}

body.home .hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	aspect-ratio: 4 / 3;
}

/* Entrances — photo / content / footer, identical cards */
body.home #top-entrances {
	scroll-margin-top: 16px;
}

body.home .top-entrances {
	background: var(--top-white);
}

body.home .entrance-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: start;
}

body.home .entrance-card,
body.home .initiatives-body,
body.home .hero-text {
	min-width: 0;
}

body.home .entrance-card {
	display: flex;
	flex-direction: column;
	background: var(--top-white);
	border: 1px solid color-mix(in srgb, var(--top-text) 12%, var(--top-white));
}

body.home .entrance-photo,
body.home .entrance-photo.media-frame {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--top-bg);
}

body.home .entrance-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

body.home .entrance-content {
	padding: 16px 18px 12px;
}

body.home .entrance-target {
	margin-bottom: 6px;
	color: var(--top-red);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

body.home .entrance-action {
	color: var(--top-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

body.home .entrance-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 18px 16px;
}

body.home .entrance-tags {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.home .entrance-tags li {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 2px 7px;
	background: var(--top-yellow-soft);
	border: 0;
	color: var(--top-muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	white-space: nowrap;
}

body.home .entrance-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 16px;
	background: var(--top-red);
	color: var(--top-white);
	border: 0;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

body.home .entrance-cta:hover {
	background: var(--top-red-deep);
	color: var(--top-white);
}

/* Foundation initiatives */
body.home .top-initiatives {
	background: var(--top-bg);
}

body.home .initiatives-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 36px;
	align-items: start;
}

body.home .initiatives-photo,
body.home .initiatives-photo.media-frame {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--top-white);
}

body.home .initiatives-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

body.home .initiatives-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.home .initiatives-item {
	padding: 14px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--top-text) 10%, var(--top-bg));
}

body.home .initiatives-item:first-child {
	padding-top: 0;
}

body.home .initiatives-title {
	margin-bottom: 4px;
	color: var(--top-text);
	font-size: 17px;
	font-weight: 700;
}

body.home .initiatives-text {
	color: var(--top-muted);
	font-size: 14px;
	line-height: 1.75;
}

body.home .initiatives-facts {
	display: grid;
	gap: 12px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

body.home .initiatives-facts li {
	display: grid;
	grid-template-columns: 4.5em 1fr;
	gap: 12px;
	align-items: baseline;
	padding-bottom: 12px;
	border-bottom: 1px solid color-mix(in srgb, var(--top-text) 10%, var(--top-bg));
}

body.home .initiatives-fact-label {
	color: var(--top-red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

body.home .initiatives-fact-value {
	color: var(--top-text);
	font-size: 16px;
	font-weight: 700;
}

/* Local voices */
body.home .top-voices {
	background: var(--top-bg);
}

body.home .article-list {
	max-width: none;
}

body.home .art-tag {
	color: var(--top-muted);
	background: var(--top-yellow-soft);
	border-color: color-mix(in srgb, var(--top-yellow) 45%, var(--top-white));
}

body.home .art-title {
	color: var(--top-text);
}

body.home .art-title:hover,
body.home .art-title:focus-visible {
	color: var(--top-red);
}

/* Final CTA — inquiry only */
body.home .final-cta {
	background: var(--top-red-deep);
	color: var(--top-white);
	padding: 56px 0;
	text-align: left;
}

body.home .final-cta .section-eyebrow {
	color: var(--top-white);
}

body.home .final-cta .section-eyebrow::before {
	background: var(--top-yellow);
}

body.home .final-cta .section-title {
	margin-bottom: 10px;
	color: var(--top-white);
}

body.home .final-cta-lead {
	max-width: 560px;
	margin-bottom: 24px;
	color: color-mix(in srgb, var(--top-white) 82%, var(--top-red-deep));
	font-size: 15px;
	line-height: 1.8;
}

body.home .final-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body.home .final-cta .btn-primary {
	background: var(--top-white);
	color: var(--top-red-deep);
	margin-top: 0;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	min-height: 44px;
}

body.home .final-cta .btn-primary:hover {
	background: var(--top-red-soft);
	color: var(--top-red-deep);
}

/* Footer — TOP only; outrank the shared Phase 2 footer rule without !important. */
body.home main.top-v2 + .site-footer {
	background: var(--top-footer);
	color: color-mix(in srgb, var(--top-white) 78%, var(--top-footer));
	border-top: 1px solid var(--top-yellow-soft);
}

body.home .footer-col-title {
	color: var(--top-white);
	border-bottom-color: var(--top-yellow);
}

body.home .footer-col a {
	color: color-mix(in srgb, var(--top-white) 76%, var(--top-footer));
}

body.home .footer-col a:hover,
body.home .footer-col a:focus-visible {
	color: var(--top-white);
}

body.home .footer-bottom {
	border-top-color: color-mix(in srgb, var(--top-white) 16%, var(--top-footer));
	color: color-mix(in srgb, var(--top-white) 58%, var(--top-footer));
}

@media (max-width: 900px) {
	body.home .top-wrap {
		width: min(1180px, calc(100% - 36px));
	}

	body.home .site-header {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
		padding: 10px 16px;
	}

	body.home .main-nav {
		display: none;
	}

	body.home .header-menu-group {
		width: auto;
		margin-left: auto;
	}

	body.home .header-menu-btn {
		width: auto;
		min-height: 40px;
		padding: 8px 12px;
		font-size: 12px;
	}

	body.home .header-menu-label-full {
		display: none;
	}

	body.home .header-menu-label-compact {
		display: inline;
	}

	body.home .hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	body.home .hero-photo {
		order: -1;
		height: 220px;
		min-height: 220px;
	}

	body.home .hero-text {
		padding: 28px 20px 32px;
		border-left: 0;
		border-top: 3px solid var(--top-red);
	}

	body.home .entrance-grid,
	body.home .initiatives-layout {
		grid-template-columns: 1fr;
	}

	body.home .entrance-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	body.home .entrance-cta {
		width: 100%;
	}

	body.home .initiatives-layout {
		gap: 22px;
	}

	body.home .mobile-bottombar {
		min-height: 65px;
		border-top-color: color-mix(in srgb, var(--top-text) 12%, var(--top-white));
	}

	body.home.site-shell {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}

	body.home .bottombar-item.is-active {
		color: var(--top-red);
	}

	body.home .bottombar-item.is-active .bottombar-icon {
		background: var(--top-red);
		border-color: var(--top-red);
	}
}

@media (max-width: 480px) {
	body.home .top-wrap {
		width: calc(100% - 32px);
	}

	body.home .section,
	body.home .final-cta {
		padding: 40px 0;
	}

	body.home .section-title,
	body.home .final-cta .section-title {
		font-size: 22px;
	}

	body.home .hero-copy-l {
		font-size: 22px;
	}

	body.home .hero-photo {
		height: 200px;
		min-height: 200px;
	}

	body.home .hero-actions,
	body.home .final-cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.home .hero-actions .btn-primary,
	body.home .final-cta .btn-primary {
		justify-content: center;
		width: 100%;
	}

	body.home .entrance-photo,
	body.home .entrance-photo.media-frame {
		aspect-ratio: 16 / 9;
	}
}
