/*
===============================================================================================================================
Project-specific styling.
===============================================================================================================================
*/

:root {
	--spr-ocean: #0d3b5a;
	--spr-sea: #156f86;
	--spr-sand: #f1e8d8;
	--spr-reef: #39a0a6;
	--spr-ink: #19303e;
}

body {
	color: var(--spr-ink);
}

/* Keep the top nav readable even before scroll adds .scrolled. */
body.header-transparent #header:not(.scrolled),
body.header-dark.header-transparent #header:not(.scrolled),
#header {
	background: linear-gradient(180deg, rgba(13, 59, 90, 0.95), rgba(13, 59, 90, 0.72));
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

#header .navbar a,
#header .navbar .logo-text {
	color: #fff;
}

#header .dropmenu ul li a:hover,
#header .dropmenu ul li a:focus,
#header .dropmenu ul li a.active {
	color: #d2eef3 !important;
}

/* Replace icon-font dependent nav chevrons with plain Unicode arrows. */
#header .dropmenu ul li a:before {
	content: "▾";
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	margin-right: -16px;
}

#header .dropmenu ul ul li a:before {
	content: "▸";
}

#header .dropmenu ul li a:only-child:before {
	content: "";
}

.mobile-menu .button_container span {
	background: #ffffff;
}

#footer {
	background: linear-gradient(180deg, #f6f1e6, #efe3cb);
}

.project-hero {
	background: linear-gradient(135deg, rgba(13, 59, 90, 0.08), rgba(57, 160, 166, 0.18));
	border: 1px solid rgba(21, 111, 134, 0.15);
	border-radius: 1rem;
	margin-bottom: 2rem;
	padding: 2rem;
}

.project-hero .eyebrow {
	color: var(--spr-sea);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.project-hero h2 {
	color: var(--spr-ocean);
	font-size: 2.3rem;
	line-height: 1.1;
	margin-bottom: 1rem;
}

.metrics-grid,
.section-grid,
.sticky-section,
.recent-section {
	display: grid;
	gap: 1rem;
	margin: 0 0 2rem;
}

.metrics-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 1.5rem 0 2rem;
}

.section-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sticky-section {
	margin-bottom: 2rem;
}

.sticky-card {
	grid-column: 1 / -1;
}

.recent-section {
	grid-template-columns: repeat(2, 1fr);
}

.metric-card,
.section-card {
	background: #fff;
	border: 1px solid rgba(13, 59, 90, 0.1);
	border-radius: 0.9rem;
	box-shadow: 0 14px 28px rgba(25, 48, 62, 0.06);
	padding: 1.1rem 1.2rem;
}

.metric-card strong {
	color: var(--spr-ocean);
	display: block;
	font-size: 1.4rem;
	margin-bottom: 0.2rem;
}

.metric-card span {
	color: #466171;
	display: block;
}

.section-card {
	color: inherit;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.section-card:hover,
.section-card:focus {
	box-shadow: 0 18px 36px rgba(21, 111, 134, 0.14);
	transform: translateY(-2px);
}

.section-card h3 {
	color: var(--spr-ocean);
	margin-top: 0;
}

.post-badge {
	background: rgba(21, 111, 134, 0.14);
	border: 1px solid rgba(21, 111, 134, 0.3);
	border-radius: 999px;
	color: var(--spr-ocean);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	margin-left: 0.5rem;
	padding: 0.15rem 0.5rem;
	text-transform: uppercase;
}

.btn.btn-primary {
	background: var(--spr-sea);
	border-color: var(--spr-sea);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
	background: var(--spr-ocean);
	border-color: var(--spr-ocean);
}

/* ── Post author ─────────────────────────────────────────────────────── */

.post-byline {
	color: #466171;
	font-size: 0.88rem;
	margin-top: -0.25rem;
}

.post-author {
	font-weight: 600;
	color: var(--spr-ocean);
}

.post-author-link {
	color: var(--spr-sea);
	font-weight: 600;
	text-decoration: none;
}

.post-author-link:hover {
	text-decoration: underline;
}

/* ── Contributors ───────────────────────────────────────────────────────── */

.contributors-intro {
	color: #466171;
	margin-bottom: 2rem;
}

.contributors-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin-top: 1.5rem;
}

.contributor-card {
	background: #fff;
	border: 1px solid rgba(13, 59, 90, 0.1);
	border-radius: 0.9rem;
	box-shadow: 0 4px 12px rgba(25, 48, 62, 0.06);
	color: inherit;
	display: block;
	padding: 1.2rem;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contributor-card:hover {
	box-shadow: 0 8px 24px rgba(21, 111, 134, 0.14);
	transform: translateY(-2px);
}

.contributor-card__name {
	color: var(--spr-ocean);
	font-size: 1rem;
	margin: 0 0 0.5rem;
}

.contributor-card__bio {
	color: #466171;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 0;
}

.contributor-profile {
	max-width: 760px;
}

.contributor-header h1 {
	color: var(--spr-ocean);
	margin-bottom: 0.5rem;
}

.contributor-bio {
	color: #466171;
	border-bottom: 1px solid rgba(13, 59, 90, 0.1);
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
}

.contributor-posts h2 {
	color: var(--spr-ocean);
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.contributor-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contributor-post-item {
	border-bottom: 1px solid rgba(13, 59, 90, 0.07);
	padding: 0.9rem 0;
}

.contributor-post-item:last-child {
	border-bottom: none;
}

.contributor-post-title {
	color: var(--spr-ocean);
	font-weight: 600;
	text-decoration: none;
}

.contributor-post-title:hover {
	text-decoration: underline;
}

.contributor-post-date {
	color: #466171;
	display: block;
	font-size: 0.82rem;
	margin: 0.1rem 0 0.3rem;
}

.contributor-post-summary {
	color: #466171;
	font-size: 0.9rem;
	margin: 0;
}

.contributor-back {
	margin-top: 2rem;
}

.contributor-back a {
	color: var(--spr-sea);
	text-decoration: none;
}

.contributor-back a:hover {
	text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.project-hero {
		padding: 1.4rem;
	}

	.project-hero h2 {
		font-size: 1.75rem;
	}

	.recent-section {
		grid-template-columns: 1fr;
	}
}
