:root {
	--ink: #172026;
	--muted: #63707a;
	--line: #d9e2e8;
	--panel: #ffffff;
	--panel-alt: #f4f7f9;
	--brand: #0e6f88;
	--brand-dark: #0a4c60;
	--accent: #d95f34;
	--sky: #e5f3f7;
	--shadow: 0 18px 42px rgba(19, 39, 52, 0.12);
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: #fbfcfd;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: var(--brand-dark);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--accent);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
}

.skip-link:focus {
	z-index: 20;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--ink);
	color: #fff;
}

.site-header {
	position: sticky;
	z-index: 10;
	top: 0;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.content-section,
.archive-header,
.filter-bar,
.single-resource,
.stats-band {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 1.5rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ink);
	font-weight: 800;
}

.site-brand__mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	letter-spacing: 0;
}

.site-brand__text {
	font-size: 1.1rem;
}

.primary-nav .menu,
.footer-nav .menu {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: 6px;
	color: var(--ink);
	font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:focus {
	background: var(--sky);
	color: var(--brand-dark);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}

.nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: var(--ink);
}

.hero {
	position: relative;
	display: grid;
	min-height: 620px;
	align-items: end;
	overflow: hidden;
	background: #0f252c;
	color: #fff;
}

.hero__media {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 21, 27, 0.88), rgba(7, 21, 27, 0.46) 58%, rgba(7, 21, 27, 0.12)),
		url("data:image/svg+xml,%3Csvg width='1600' height='900' viewBox='0 0 1600 900' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%2312262d' width='1600' height='900'/%3E%3Cpath d='M30 585 C350 505 560 505 870 548 C1110 582 1300 535 1570 430' fill='none' stroke='%23cddfe6' stroke-width='18' stroke-linecap='round' opacity='.88'/%3E%3Cpath d='M210 470 L970 310 L1308 342 L975 416 L645 650 Z' fill='%23f7fbfc' opacity='.9'/%3E%3Cpath d='M633 507 L868 453 L1106 600 L873 625 Z' fill='%230e6f88'/%3E%3Cpath d='M970 310 L1308 342 L1420 303 L1065 258 Z' fill='%23d95f34'/%3E%3Ccircle cx='348' cy='617' r='55' fill='%23172026'/%3E%3Ccircle cx='355' cy='617' r='23' fill='%23d9e2e8'/%3E%3Ccircle cx='1190' cy='484' r='45' fill='%23172026'/%3E%3Ccircle cx='1193' cy='484' r='19' fill='%23d9e2e8'/%3E%3Cpath d='M0 705 C180 666 346 665 530 704 C770 754 977 750 1208 690 C1365 650 1496 645 1600 662 L1600 900 L0 900 Z' fill='%230a4c60' opacity='.72'/%3E%3C/svg%3E") center / cover;
	transform: scale(1.02);
}

.hero__content {
	position: relative;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 7rem 0 5rem;
}

.hero h1 {
	max-width: 760px;
	margin: 0 0 1.25rem;
	font-size: clamp(2.6rem, 6vw, 5.7rem);
	line-height: 0.98;
	letter-spacing: 0;
}

.hero p:not(.eyebrow) {
	max-width: 650px;
	margin: 0 0 2rem;
	color: rgba(255, 255, 255, 0.84);
	font-size: 1.15rem;
}

.hero__actions,
.resource-card__actions,
.document-card__actions,
.single-resource__action,
.filter-bar form,
.search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.72rem 1rem;
	border: 1px solid var(--brand);
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
	line-height: 1.1;
	cursor: pointer;
}

.button:hover,
.button:focus {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.button-secondary {
	border-color: var(--line);
	background: #fff;
	color: var(--ink);
}

.button-disabled {
	border-color: var(--line);
	background: var(--panel-alt);
	color: var(--muted);
	cursor: not-allowed;
}

.eyebrow {
	margin: 0 0 0.65rem;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.stats-band {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: -34px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	position: relative;
	z-index: 2;
}

.stats-band div {
	padding: 1.2rem;
	background: #fff;
}

.stats-band strong {
	display: block;
	font-size: 2rem;
	line-height: 1;
}

.stats-band span {
	color: var(--muted);
	font-weight: 700;
}

.content-section {
	padding: 4.5rem 0;
}

.content-section--muted {
	width: 100%;
	max-width: none;
	padding-inline: max(16px, calc((100% - 1180px) / 2));
	background: var(--panel-alt);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.section-heading h2,
.archive-header h1,
.single-resource h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: 0;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem;
}

.resource-card,
.document-card,
.post-card {
	display: flex;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	box-shadow: 0 10px 28px rgba(19, 39, 52, 0.08);
	overflow: hidden;
}

.resource-card {
	flex-direction: column;
	min-height: 100%;
}

.resource-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #dbe8ee, #fff);
	overflow: hidden;
}

.resource-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.placeholder-plane {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 180px;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(14, 111, 136, 0.22), rgba(217, 95, 52, 0.18)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 54px);
	color: var(--brand-dark);
	font-weight: 900;
}

.resource-card__body,
.document-card__body,
.post-card {
	padding: 1.15rem;
}

.resource-card__body {
	flex: 1;
}

.resource-card__meta,
.resource-type {
	margin: 0 0 0.35rem;
	color: var(--brand-dark);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.resource-card h2,
.document-card h2,
.post-card h2 {
	margin: 0 0 0.65rem;
	font-size: 1.3rem;
	line-height: 1.2;
	letter-spacing: 0;
}

.resource-card p,
.document-card p,
.post-card p {
	color: var(--muted);
}

.detail-list {
	display: grid;
	gap: 0.45rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.detail-list li,
.document-meta span {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--line);
	font-size: 0.92rem;
}

.detail-list span,
.document-meta {
	color: var(--muted);
}

.detail-list strong {
	text-align: right;
}

.resource-card__actions,
.document-card__actions {
	padding: 1.15rem;
	border-top: 1px solid var(--line);
}

.document-list {
	display: grid;
	gap: 1rem;
}

.document-card {
	align-items: center;
	padding: 1rem;
	gap: 1rem;
}

.document-card__icon {
	display: grid;
	flex: 0 0 72px;
	width: 72px;
	height: 88px;
	place-items: center;
	border-radius: 6px;
	background: var(--brand-dark);
	color: #fff;
	font-weight: 900;
}

.document-card__body {
	flex: 1;
	padding: 0;
}

.document-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.document-meta span {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.3rem 0.65rem;
	background: #fff;
}

.archive-header {
	padding: 4rem 0 2rem;
}

.archive-header p {
	max-width: 720px;
	color: var(--muted);
	font-size: 1.08rem;
}

.filter-bar {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 10px 28px rgba(19, 39, 52, 0.06);
}

.filter-bar label,
.search-form label {
	display: grid;
	gap: 0.3rem;
	color: var(--muted);
	font-weight: 800;
}

select,
input[type="search"] {
	min-height: 44px;
	min-width: 220px;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.single-resource {
	padding: 4rem 0;
}

.single-resource__header {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.single-resource__header p:not(.eyebrow) {
	max-width: 740px;
	color: var(--muted);
	font-size: 1.12rem;
}

.single-resource__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 1.5rem;
	align-items: start;
}

.single-resource__media,
.single-resource__content,
.resource-details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 10px 28px rgba(19, 39, 52, 0.06);
	overflow: hidden;
}

.single-resource__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.single-resource__content,
.resource-details {
	padding: 1.4rem;
}

.resource-details h2 {
	margin-top: 0;
	font-size: 1.2rem;
}

.resource-details dl {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4rem;
	margin: 0;
}

.resource-details dt {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.resource-details dd {
	margin: 0 0 0.75rem;
	font-weight: 800;
}

.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.post-card {
	display: block;
}

.empty-state {
	padding: 1.25rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--muted);
}

.nav-links {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2rem;
}

.page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	font-weight: 800;
}

.page-numbers.current {
	background: var(--brand);
	color: #fff;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: #101c21;
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 2rem 0;
}

.site-footer a {
	color: #fff;
}

@media (max-width: 900px) {
	.nav-toggle {
		display: block;
	}

	.primary-nav {
		position: absolute;
		top: 76px;
		right: 16px;
		left: 16px;
		display: none;
		padding: 0.75rem;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav .menu {
		display: grid;
		gap: 0.25rem;
	}

	.card-grid,
	.post-list,
	.single-resource__layout {
		grid-template-columns: 1fr;
	}

	.single-resource__header,
	.section-heading,
	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.document-card {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.hero {
		min-height: 560px;
	}

	.hero__content {
		padding-bottom: 4rem;
	}

	.stats-band {
		grid-template-columns: 1fr;
		margin-top: 0;
	}

	.content-section {
		padding: 3rem 0;
	}

	.content-section--muted {
		padding-inline: 16px;
	}

	.filter-bar form,
	.search-form,
	.resource-card__actions,
	.document-card__actions {
		align-items: stretch;
		flex-direction: column;
	}

	select,
	input[type="search"],
	.button {
		width: 100%;
	}
}
