/* ── Brand Custom Properties ── */
:root {
	--color-primary: #1A6B6A;
	--color-secondary: #F5F0E8;
	--color-accent: #E8913A;
	--color-text: #2D2D2D;
	--color-text-light: #FFFFFF;
	--color-muted: #8C8C8C;
	--color-tint: #E6F2F2;
	--color-border: #D9D4CA;

	--font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

	--radius: 8px;
	--shadow: 0 2px 8px rgba(45, 45, 45, 0.06);
}

/* ── Global ── */
body {
	background-color: var(--color-secondary);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-primary);
	line-height: 1.2;
	margin-top: 0;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
h4 { font-weight: 500; }

p { margin-bottom: 1.5em; }

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

a:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

/* ── Navigation ── */
.site-nav {
	background-color: var(--color-primary);
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav .navbar-brand {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 17px;
	color: var(--color-text-light);
	padding: 14px 0;
	text-decoration: none;
}

.site-nav .navbar-brand:hover { color: var(--color-text-light); text-decoration: none; }

.site-nav .nav-link {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	padding: 16px 14px;
	transition: color 200ms ease;
	text-decoration: none;
}

.site-nav .nav-link:hover { color: var(--color-text-light); text-decoration: none; }

.site-nav .nav-link.active {
	color: var(--color-text-light);
	border-bottom: 2px solid var(--color-text-light);
}

.site-nav .nav-link-donate {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	padding: 16px 14px;
	transition: color 200ms ease;
	text-decoration: none;
}

.site-nav .nav-link-donate:hover { color: rgba(255, 255, 255, 0.9); text-decoration: none; }

.site-nav .navbar-toggler {
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 4px 10px;
}

.site-nav .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
	.site-nav .navbar-collapse { padding: 8px 0 16px; }
	.site-nav .nav-link,
	.site-nav .nav-link-donate { padding: 10px 0; }
}

/* ── Buttons ── */
.btn-amber {
	background-color: var(--color-accent);
	color: var(--color-text-light);
	border: none;
	padding: 12px 28px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
	display: inline-block;
	text-decoration: none;
	line-height: 1.4;
}

.btn-amber:hover {
	background-color: #D17E2F;
	color: var(--color-text-light);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(232, 145, 58, 0.3);
}

.btn-amber:active { transform: translateY(0); box-shadow: none; }

.btn-outline-light {
	background-color: transparent;
	color: var(--color-text-light);
	border: 2px solid var(--color-text-light);
	padding: 10px 28px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
	display: inline-block;
	text-decoration: none;
	line-height: 1.4;
}

.btn-outline-light:hover {
	background-color: var(--color-text-light);
	color: var(--color-primary);
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-outline-teal {
	background-color: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
	padding: 10px 28px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
	display: inline-block;
	text-decoration: none;
	line-height: 1.4;
}

.btn-outline-teal:hover {
	background-color: var(--color-primary);
	color: var(--color-text-light);
	text-decoration: none;
	transform: translateY(-1px);
}

/* ── Section Spacing ── */
.section { padding: 80px 0; }

@media (max-width: 767px) { .section { padding: 48px 0; } }

/* ── Backgrounds ── */
.bg-tint { background-color: var(--color-tint); }
.bg-sand { background-color: var(--color-secondary); }

/* ── Metadata ── */
.meta {
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-muted);
}

/* ── Narrow column ── */
.narrow-col { max-width: 720px; margin: 0 auto; }

/* ── Cards ── */
.card-brand {
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
	height: 100%;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.card-brand:hover {
	box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
	transform: translateY(-2px);
}

/* Curator logo inside research area card */
.card-curator-logo {
	width: auto;
	max-width: 120px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.card-curator-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ── Hero ── */
.hero {
	background-color: var(--color-primary);
	color: var(--color-text-light);
	padding: 72px 0 80px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.hero[style*="background-image"]::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(25, 78, 76, 0.88) 0%, rgba(25, 78, 76, 0.7) 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
	color: var(--color-text-light);
	font-size: 2.6rem;
	max-width: 680px;
}

.hero p {
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	max-width: 560px;
}

.hero-key-figures {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	align-items: center;
}

.hero-stat-number {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 2rem;
	color: #fff;
	line-height: 1.1;
	margin-bottom: 3px;
}

.hero-stat-label {
	font-family: var(--font-heading);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hero-key-figures-divider {
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	align-self: center;
}

@media (max-width: 767px) {
	.hero { padding: 48px 0 56px; }
	.hero h1 { font-size: 1.8rem; }
	.hero-key-figures-divider { display: none; }
	.hero-stat-number { font-size: 1.6rem; }
}

/* ── Page Header ── */
.page-header { padding: 56px 0 40px; }

.page-header h1 { font-size: 2.4rem; margin-bottom: 8px; }

@media (max-width: 767px) {
	.page-header { padding: 40px 0 28px; }
	.page-header h1 { font-size: 1.8rem; }
}

/* ── Breadcrumb ── */
.breadcrumb-nav {
	padding: 16px 0 0;
	font-family: var(--font-heading);
	font-size: 13px;
}

.breadcrumb-nav a { color: var(--color-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb-nav .separator { color: var(--color-muted); margin: 0 6px; }
.breadcrumb-nav .current { color: var(--color-text); }

/* ── Curator attribution ── */
.curator-attribution {
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-muted);
}

.curator-attribution a { color: var(--color-muted); text-decoration: none; transition: color 200ms ease; }
.curator-attribution a:hover { color: var(--color-primary); text-decoration: underline; }

/* ── Body text ── */
.body-text { font-size: 17px; line-height: 1.6; max-width: 720px; }
.body-text p { margin-bottom: 1.5em; }
.body-text a { text-decoration: underline; text-underline-offset: 3px; }
.body-text a:hover { text-decoration-thickness: 2px; }
.body-text a.btn-amber,
.body-text a.btn-outline-teal,
.body-text a.btn-outline-light { text-decoration: none; }

/* ── Condition tags ── */
.condition-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 0; }
.condition-tags-label { font-family: var(--font-heading); font-size: 13px; color: var(--color-muted); margin-right: 4px; }

.condition-tag {
	display: inline-block;
	background-color: var(--color-tint);
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}

.condition-tag:hover { background-color: var(--color-primary); color: var(--color-text-light); text-decoration: none; }

/* ── Key Concepts ── */
.concepts-container {
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
}

.concept-list { list-style: none; padding: 0; margin: 0; }
.concept-list li { margin-bottom: 16px; }
.concept-list li:last-child { margin-bottom: 0; }
.concept-term { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-text); display: block; margin-bottom: 4px; }
.concept-definition { font-family: var(--font-body); font-size: 16px; color: var(--color-text); line-height: 1.5; }

/* ── Curator card (compact, used on research area pages) ── */
.curator-card {
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.curator-card-logo {
	width: 60px;
	height: 60px;
	min-width: 60px;
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.curator-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

.curator-card-logo svg {
	width: 28px;
	height: 28px;
	stroke: var(--color-primary);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.curator-card-body h4 { margin-bottom: 4px; font-size: 18px; }
.curator-card-institution { font-family: var(--font-heading); font-size: 14px; color: var(--color-muted); margin-bottom: 6px; }
.curator-card-lead { font-family: var(--font-heading); font-size: 14px; color: var(--color-text); margin-bottom: 8px; }
.curator-card-bio { font-family: var(--font-body); font-size: 15px; color: var(--color-text); margin-bottom: 12px; line-height: 1.5; }
.curator-card-link { font-family: var(--font-heading); font-size: 14px; font-weight: 500; }

@media (max-width: 575px) { .curator-card { flex-direction: column; gap: 16px; } }

/* ── Curator listing card ── */
.curator-listing-card {
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.curator-listing-card:hover {
	box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
	transform: translateY(-2px);
}

.curator-listing-logo {
	width: 72px;
	height: 72px;
	min-width: 72px;
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.curator-listing-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

.curator-listing-logo svg {
	width: 32px;
	height: 32px;
	stroke: var(--color-primary);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.curator-listing-body h3 { font-size: 20px; margin-bottom: 4px; }
.curator-listing-body h3 a { color: var(--color-primary); text-decoration: none; }
.curator-listing-body h3 a:hover { color: var(--color-accent); text-decoration: underline; }
.curator-listing-institution { font-family: var(--font-heading); font-size: 14px; color: var(--color-muted); margin-bottom: 4px; }
.curator-listing-lead { font-family: var(--font-heading); font-size: 14px; color: var(--color-text); margin-bottom: 10px; }
.curator-listing-bio { font-family: var(--font-body); font-size: 16px; color: var(--color-text); margin-bottom: 12px; line-height: 1.5; }

.curator-listing-area {
	display: inline-block;
	background-color: var(--color-tint);
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}

.curator-listing-area:hover { background-color: var(--color-primary); color: var(--color-text-light); text-decoration: none; }
.curator-listing-link { font-family: var(--font-heading); font-size: 14px; font-weight: 500; }

@media (max-width: 575px) { .curator-listing-card { flex-direction: column; gap: 16px; } }

/* ── Profile header ── */
.profile-header { padding: 40px 0 48px; }

.profile-header-inner { display: flex; gap: 28px; align-items: flex-start; }

.profile-logo {
	width: 96px;
	height: 96px;
	min-width: 96px;
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.profile-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

.profile-logo svg {
	width: 44px;
	height: 44px;
	stroke: var(--color-primary);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.profile-header-text h1 { font-size: 2rem; margin-bottom: 6px; }
.profile-institution { font-family: var(--font-heading); font-size: 16px; color: var(--color-muted); margin-bottom: 4px; }
.profile-lead { font-family: var(--font-heading); font-size: 15px; color: var(--color-text); margin-bottom: 0; }

@media (max-width: 575px) {
	.profile-header-inner { flex-direction: column; gap: 16px; }
	.profile-header-text h1 { font-size: 1.6rem; }
}

/* ── External links ── */
.external-links { display: flex; flex-wrap: wrap; gap: 12px; }

.external-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 10px 18px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-primary);
	text-decoration: none;
	transition: background-color 200ms ease, border-color 200ms ease, transform 150ms ease;
}

.external-link:hover {
	background-color: var(--color-tint);
	border-color: var(--color-primary);
	color: var(--color-primary);
	text-decoration: none;
	transform: translateY(-1px);
}

.external-link svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Curator chip (homepage curators row) ── */
.curator-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 12px 20px;
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-text);
	text-decoration: none;
	transition: box-shadow 200ms ease;
}

.curator-chip:hover { box-shadow: var(--shadow); text-decoration: none; color: var(--color-primary); }
.curator-chip .chip-institution { color: var(--color-muted); }

/* ── Other curator chip ── */
.other-curator-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 12px 20px;
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-text);
	text-decoration: none;
	transition: box-shadow 200ms ease;
}

.other-curator-chip:hover { box-shadow: var(--shadow); text-decoration: none; color: var(--color-primary); }
.other-curator-chip .chip-institution { color: var(--color-muted); }

/* ── Supporter listing card ── */
.supporter-listing-card {
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.supporter-listing-card:hover {
	box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
	transform: translateY(-2px);
}

.supporter-listing-logo {
	width: 72px;
	height: 72px;
	min-width: 72px;
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.supporter-listing-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

.supporter-listing-logo svg {
	width: 32px;
	height: 32px;
	stroke: var(--color-primary);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.supporter-listing-body h3 { font-size: 20px; margin-bottom: 4px; }
.supporter-listing-body h3 a { color: var(--color-primary); text-decoration: none; }
.supporter-listing-body h3 a:hover { color: var(--color-accent); text-decoration: underline; }
.supporter-listing-institution { font-family: var(--font-heading); font-size: 14px; color: var(--color-muted); margin-bottom: 4px; }
.supporter-listing-lead { font-family: var(--font-heading); font-size: 14px; color: var(--color-text); margin-bottom: 10px; }
.supporter-listing-bio { font-family: var(--font-body); font-size: 16px; color: var(--color-text); margin-bottom: 12px; line-height: 1.5; }

.supporter-listing-area {
	display: inline-block;
	background-color: var(--color-tint);
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}

.supporter-listing-area:hover { background-color: var(--color-primary); color: var(--color-text-light); text-decoration: none; }
.supporter-listing-link { font-family: var(--font-heading); font-size: 14px; font-weight: 500; }

@media (max-width: 575px) { .supporter-listing-card { flex-direction: column; gap: 16px; } }

/* ── Other supporter chip ── */
.other-supporter-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 12px 20px;
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-text);
	text-decoration: none;
	transition: box-shadow 200ms ease;
}

.other-supporter-chip:hover { box-shadow: var(--shadow); text-decoration: none; color: var(--color-primary); }
.other-supporter-chip .chip-institution { color: var(--color-muted); }

/* ── Footer supporters ── */
.footer-supporters {
	background-color: var(--color-tint);
	border-top: 1px solid var(--color-border);
	padding: 32px 0;
	text-align: center;
}

.footer-supporters-label {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
	margin-bottom: 20px;
}

.footer-supporters-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 32px;
}

.footer-supporter-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: opacity 200ms ease;
	max-width: 180px;
	max-height: 60px;
	overflow: hidden;
}

.footer-supporter-logo img {
	height: 60px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
	filter: grayscale(100%) opacity(0.5);
	transition: filter 200ms ease;
	display: block;
}

.footer-supporter-logo:hover img {
	filter: grayscale(0%) opacity(1);
}

.footer-supporter-logo span {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-muted);
	transition: color 200ms ease;
}

.footer-supporter-logo:hover span {
	color: var(--color-primary);
}

/* ── Site footer ── */
.site-footer {
	background-color: var(--color-primary);
	color: rgba(255, 255, 255, 0.7);
	padding: 56px 0 32px;
	font-family: var(--font-heading);
	font-size: 14px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	margin-bottom: 40px;
}

.footer-heading {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 200ms ease;
}

.footer-links a:hover {
	color: rgba(255, 255, 255, 1);
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 24px;
	text-align: center;
}

.footer-bottom p {
	margin: 0 0 4px;
}

.footer-bottom a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-bottom a:hover {
	color: rgba(255, 255, 255, 1);
}

@media (max-width: 767px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
}

@media (max-width: 479px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ── Newsletter card ── */
.newsletter-card {
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 40px;
	max-width: 720px;
	margin: 0 auto;
}

@media (max-width: 575px) { .newsletter-card { padding: 24px; } }

/* ── News cards (homepage) ── */
.news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
	height: 100%;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.news-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	transform: translateY(-2px);
	color: inherit;
	text-decoration: none;
}
.news-card-date {
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--color-muted);
	margin-bottom: 8px;
}
.news-card-title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.35;
}
.news-card-excerpt {
	font-size: 15px;
	color: var(--color-muted);
	flex: 1;
	margin-bottom: 0;
}

.checkbox-group-label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

/* ── Stats ── */
.stat-number { font-family: var(--font-heading); font-weight: 700; font-size: 2.8rem; color: var(--color-primary); line-height: 1.1; margin-bottom: 4px; }
.stat-label { font-family: var(--font-heading); font-size: 14px; color: var(--color-muted); margin-bottom: 4px; }
.stat-why { font-family: var(--font-body); font-size: 14px; color: var(--color-muted); }

/* ── Badge ── */
.badge-recruiting {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-text-light);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 100px;
}

/* ── Clinical trial card ── */
.card-trial {
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
	height: 100%;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.card-trial:hover { box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1); transform: translateY(-2px); }

/* ── Form elements ── */
.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-label { font-family: var(--font-body); font-size: 15px; color: var(--color-text); }
.form-control:focus, .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.15); }

/* ── Step icons ── */
.step-number {
	width: 36px;
	height: 36px;
	background-color: var(--color-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 12px;
}
.step-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.step-icon svg { width: 56px; height: 56px; stroke: var(--color-primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── About page example quotes ── */
.about-example {
	font-size: 15px;
	font-style: italic;
	color: var(--color-muted);
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--color-border);
	margin-bottom: 0;
}

/* ── About page — section TOC nav ── */
.about-toc {
	background-color: var(--color-secondary);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding: 0;
}
.about-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.about-toc-list li {
	flex: 1 1 auto;
}
.about-toc-list a {
	display: block;
	padding: 14px 20px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	text-decoration: none;
	text-align: center;
	border-right: 1px solid var(--color-border);
	transition: background-color 150ms ease, color 150ms ease;
	white-space: nowrap;
}
.about-toc-list li:last-child a { border-right: none; }
.about-toc-list a:hover {
	background-color: var(--color-tint);
	color: var(--color-primary);
}
@media (max-width: 767px) {
	.about-toc-list { flex-direction: column; }
	.about-toc-list a { border-right: none; border-bottom: 1px solid var(--color-border); }
	.about-toc-list li:last-child a { border-bottom: none; }
}

/* ── Newsletter prompt (contextual, on research area pages) ── */
.newsletter-prompt {
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
}

.newsletter-prompt h3 { font-size: 18px; margin-bottom: 6px; }
.newsletter-prompt > p { font-size: 15px; color: var(--color-muted); margin-bottom: 16px; }

.newsletter-prompt .form-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.newsletter-prompt .form-inline .form-control { flex: 1; min-width: 200px; }

@media (max-width: 575px) {
	.newsletter-prompt .form-inline { flex-direction: column; }
	.newsletter-prompt .form-inline .form-control,
	.newsletter-prompt .form-inline .btn-amber { width: 100%; }
}

/* ── Feed header ── */
.feed-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 16px;
}

.feed-header h2 { margin-bottom: 0; }

/* ── Feed filter controls ── */
.feed-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	align-items: flex-end;
}

.feed-controls .form-group { display: flex; flex-direction: column; gap: 4px; }

.feed-controls label { font-family: var(--font-heading); font-size: 13px; color: var(--color-muted); }

.feed-controls .form-control,
.feed-controls .form-select { border-color: var(--color-border); font-family: var(--font-body); font-size: 15px; }

.feed-search { flex: 1; min-width: 200px; }

@media (max-width: 575px) {
	.feed-controls { flex-direction: column; }
	.feed-controls .form-group, .feed-search { width: 100%; }
}

/* ── Download button ── */
.btn-download {
	background-color: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-border);
	padding: 8px 18px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, transform 150ms ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	line-height: 1.4;
}

.btn-download:hover {
	background-color: var(--color-tint);
	border-color: var(--color-primary);
	color: var(--color-primary);
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-download:active { transform: translateY(0); }

.btn-download svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.btn-download .chevron {
	width: 14px;
	height: 14px;
	margin-left: 2px;
	transition: transform 200ms ease;
}

.btn-download[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* ── Download loading state ── */
.btn-download.is-downloading {
	pointer-events: none;
	position: relative;
	overflow: hidden;
	color: #fff;
	border-color: var(--color-accent, #2a9d6e);
	background: linear-gradient(
		90deg,
		var(--color-accent, #2a9d6e) 0%,
		var(--color-accent, #2a9d6e) 40%,
		transparent 60%,
		transparent 100%
	);
	background-size: 250% 100%;
	animation: download-sweep 1.5s ease-in-out infinite;
}

.btn-download.is-downloading svg {
	stroke: #fff;
}

@keyframes download-sweep {
	0%   { background-position: 100% 0; }
	100% { background-position: -50% 0; }
}

/* Smooth fill when download completes */
.btn-download.is-download-done {
	pointer-events: none;
	position: relative;
	overflow: hidden;
	color: #fff;
	border-color: var(--color-accent, #2a9d6e);
	background: var(--color-accent, #2a9d6e);
	animation: none;
	transition: background 0.4s ease-out;
}

.btn-download.is-download-done svg {
	stroke: #fff;
}

/* ── Download dropdown ── */
.download-dropdown {
	position: relative;
	display: inline-flex;
}

.download-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: 0 4px 16px rgba(45, 45, 45, 0.12);
	list-style: none;
	margin: 0;
	padding: 4px 0;
	z-index: 100;
}

.download-menu.is-open { display: block; }

.download-menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.download-option {
	display: block;
	width: 100%;
	background: none;
	border: none;
	outline: none;
	box-shadow: none;
	padding: 10px 16px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	cursor: pointer;
	text-align: left;
}

.download-option:hover { background-color: var(--color-tint); color: var(--color-primary); }

/* ── Paper card ── */
#paper-list { min-height: 540px; }

.paper-card {
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 16px;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.paper-card:hover { box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1); transform: translateY(-1px); }

/* ── Spotlight carousel ── */
.spotlight-carousel-wrap {
	overflow: hidden;
}

.spotlight-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: var(--color-border) transparent;
	max-width: calc(720px + 300px);
}

.spotlight-carousel::-webkit-scrollbar { height: 6px; }
.spotlight-carousel::-webkit-scrollbar-track { background: transparent; }
.spotlight-carousel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.spotlight-item {
	flex: 0 0 280px;
	scroll-snap-align: start;
	background: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-top: 2px solid var(--color-primary);
	border-radius: var(--radius);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: var(--color-text);
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.spotlight-item:hover {
	box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
	transform: translateY(-1px);
	color: var(--color-text);
	text-decoration: none;
}

.spotlight-item-journal {
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-primary);
}

.spotlight-item-title {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.spotlight-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-family: var(--font-heading);
	font-size: 12px;
	color: var(--color-muted);
}

.spotlight-item-meta .access-badge { font-size: 11px; }

@media (max-width: 767px) {
	.spotlight-carousel {
		flex-direction: column;
		overflow-x: visible;
		scroll-snap-type: none;
		max-width: none;
		gap: 0;
	}

	.spotlight-item {
		flex: none;
		width: 100%;
		border-radius: 0;
		border: none;
		border-bottom: 1px solid var(--color-border);
		border-top: none;
		padding: 14px 16px;
		gap: 4px;
	}

	.spotlight-item:first-child {
		border-top: 2px solid var(--color-primary);
		border-top-left-radius: var(--radius);
		border-top-right-radius: var(--radius);
	}

	.spotlight-item:last-child {
		border-bottom-left-radius: var(--radius);
		border-bottom-right-radius: var(--radius);
	}

	.spotlight-item:hover { transform: none; box-shadow: none; }

	.spotlight-item-title {
		-webkit-line-clamp: 3;
		font-size: 13px;
	}
}

.paper-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--color-primary); margin-bottom: 8px; line-height: 1.35; }
.paper-card-title a { color: var(--color-primary); text-decoration: none; }
.paper-card-title a:hover { color: var(--color-accent); text-decoration: underline; }

.paper-card-authors { font-family: var(--font-heading); font-size: 14px; color: var(--color-muted); margin-bottom: 6px; line-height: 1.4; }

.paper-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--color-muted);
}

.paper-card-journal { font-style: italic; font-family: var(--font-body); }

.relevance-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background-color: var(--color-tint);
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 100px;
}

.relevance-badge .dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--color-primary); }
.relevance-badge.medium .dot { background-color: var(--color-accent); }

/* ── Paper card: takeaway & access badge ── */
.paper-card-takeaway {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--color-text);
	margin: 10px 0;
	line-height: 1.5;
}

.paper-card-doi {
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--color-muted);
	text-decoration: none;
}

.paper-card-doi:hover { color: var(--color-accent); text-decoration: underline; }

.paper-card-date { color: var(--color-muted); }

.access-badge {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: 100px;
	line-height: 1.6;
}

.access-badge.open {
	background-color: #E6F4EC;
	color: #1A6B39;
}

.access-badge.restricted {
	background-color: var(--color-tint);
	color: var(--color-muted);
}

/* ── Feed loading & empty states ── */
.paper-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px 0;
	color: var(--color-muted);
	font-family: var(--font-heading);
	font-size: 15px;
	gap: 16px;
}

.paper-loading-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--color-border);
	border-top-color: var(--color-primary);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.paper-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--color-muted);
	font-family: var(--font-heading);
	font-size: 15px;
}

/* ── Pagination ── */
.pagination-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

.pagination-btn {
	background-color: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-border);
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pagination-btn:hover { background-color: var(--color-tint); border-color: var(--color-primary); }
.pagination-btn.active { background-color: var(--color-primary); color: var(--color-text-light); border-color: var(--color-primary); cursor: default; }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-btn:disabled:hover { background-color: transparent; border-color: var(--color-border); }

.pagination-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pagination-info { font-family: var(--font-heading); font-size: 13px; color: var(--color-muted); margin-left: 12px; }

/* ── Search methodology ── */
.methodology-container {
	background-color: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
}

.query-block {
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 12px;
}

.query-block:last-child { margin-bottom: 0; }

.query-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.query-name { font-family: var(--font-heading); font-size: 14px; font-weight: 500; color: var(--color-text); }

.query-source-badge {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-text-light);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 100px;
}

.query-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.query-status-dot.active { background-color: var(--color-primary); }
.query-status-dot.low { background-color: var(--color-accent); }
.query-status-dot.zero { background-color: var(--color-muted); }

.query-string { font-family: var(--font-mono); font-size: 14px; color: var(--color-text); line-height: 1.5; word-break: break-all; }

/* ── Research area card (used on curator profile) ── */
.research-area-card {
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.research-area-card:hover { box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1); transform: translateY(-2px); }
.research-area-card h3 { font-size: 20px; margin-bottom: 8px; }
.research-area-card h3 a { color: var(--color-primary); text-decoration: none; }
.research-area-card h3 a:hover { color: var(--color-accent); text-decoration: underline; }
.research-area-card p { font-size: 16px; color: var(--color-text); margin-bottom: 12px; flex: 1; }
.research-area-link { font-family: var(--font-heading); font-size: 14px; font-weight: 500; }

/* ── Breadcrumb (dark, on primary background) ── */
.breadcrumb-nav-dark {
	background-color: var(--color-primary);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding: 10px 0;
}

.breadcrumb-nav-dark a {
	font-family: var(--font-heading);
	font-size: 13px;
	color: rgba(255,255,255,0.65);
	text-decoration: none;
}

.breadcrumb-nav-dark a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb-nav-dark span { font-family: var(--font-heading); font-size: 13px; color: rgba(255,255,255,0.4); margin: 0 6px; }
.breadcrumb-nav-dark strong { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9); }

/* ── Section tabs (clinical trials / research papers) ── */
.section-tabs {
	background-color: var(--color-secondary);
	border-bottom: 1px solid var(--color-border);
	padding: 0;
}
.section-tabs-nav {
	display: flex;
	gap: 0;
}
.section-tab {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	padding: 14px 24px;
	color: var(--color-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 200ms ease, border-color 200ms ease;
}
.section-tab:hover:not(.disabled) {
	color: var(--color-primary);
	text-decoration: none;
}
.section-tab.active {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
}
.section-tab.disabled {
	color: var(--color-muted);
	opacity: 0.55;
	cursor: default;
}
.coming-soon-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: var(--color-border);
	color: var(--color-muted);
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 6px;
	vertical-align: middle;
}

/* ── Stats bar (clinical trials) ── */
.stats-bar {
	background-color: var(--color-secondary);
	border-bottom: 1px solid var(--color-border);
	padding: 20px 0;
}

.stat-item {
	text-align: center;
	padding: 0 24px;
	border-right: 1px solid var(--color-border);
}

.stat-item:last-child { border-right: none; }

.stats-bar .stat-number {
	font-size: 1.8rem;
}

/* ── Sticky filter bar (clinical trial listing) ── */
.filter-bar {
	background-color: var(--color-secondary);
	border-bottom: 1px solid var(--color-border);
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.filter-bar .form-control,
.filter-bar .form-select {
	font-family: var(--font-heading);
	font-size: 14px;
	border-color: var(--color-border);
	background-color: var(--color-text-light);
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.15);
}

.filter-bar label {
	font-family: var(--font-heading);
	font-size: 12px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 4px;
}

.results-count { font-family: var(--font-heading); font-size: 14px; color: var(--color-muted); }
.results-count strong { color: var(--color-text); font-weight: 600; }

/* ── Filter buttons (conditions index) ── */
.filter-btn {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	padding: 7px 18px;
	border-radius: 100px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-muted);
	cursor: pointer;
	transition: all 150ms ease;
}

.filter-btn:hover,
.filter-btn.active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text-light);
}

/* ── Trial card (individual trial in listing) ── */
.trial-card {
	background-color: var(--color-text-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
	margin-bottom: 16px;
	transition: box-shadow 200ms ease, border-color 200ms ease;
}

.trial-card:hover {
	box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
	border-color: rgba(26, 107, 106, 0.25);
}

.trial-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--color-primary); line-height: 1.35; margin-bottom: 4px; }
.trial-title a { color: var(--color-primary); text-decoration: none; }
.trial-title a:hover { color: var(--color-accent); text-decoration: underline; }
.trial-nct { font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); margin-bottom: 12px; }
.trial-description { font-size: 15px; color: var(--color-text); margin-bottom: 16px; line-height: 1.55; }

.trial-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--color-border);
	margin-bottom: 16px;
}

.trial-meta-item .meta-label {
	display: block;
	font-family: var(--font-heading);
	font-size: 11px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 2px;
}

.trial-meta-item .meta-value { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: var(--color-text); }

/* ── Condition tag (clinical trials index cards) ── */
.condition-tag-ct {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 500;
	color: var(--color-primary);
	background-color: var(--color-tint);
	border: 1px solid rgba(26, 107, 106, 0.2);
	padding: 3px 10px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

/* ── Trial stat block (in condition cards) ── */
.trial-stat-block {
	border-top: 1px solid var(--color-border);
	padding-top: 16px;
	margin-top: auto;
	margin-bottom: 20px;
}

.trial-stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; line-height: 1; margin-bottom: 2px; }
.trial-stat-num.recruiting { color: var(--color-accent); }
.trial-stat-num.total { color: var(--color-primary); }
.trial-stat-desc { font-family: var(--font-heading); font-size: 11px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Related areas (in condition cards) ── */
.related-areas { margin-bottom: 20px; }
.related-areas .label { font-family: var(--font-heading); font-size: 12px; color: var(--color-muted); }
.related-areas a { font-family: var(--font-heading); font-size: 12px; color: var(--color-primary); }
.related-areas a:hover { color: var(--color-accent); }

/* ── Additional badge variants ── */
.badge-active {
	display: inline-block;
	background-color: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 100px;
}

.badge-completed {
	display: inline-block;
	background-color: transparent;
	color: var(--color-muted);
	border: 1px solid var(--color-border);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 100px;
}

.badge-phase {
	display: inline-block;
	background-color: var(--color-tint);
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 100px;
}

/* ── Suggest box ── */
.suggest-box {
	border: 2px dashed var(--color-border);
	border-radius: var(--radius);
	padding: 32px;
	text-align: center;
}

/* ── Pagination bar (trial listing) ── */
.pagination-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 32px 0 0;
}

.page-btn {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	padding: 7px 14px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	background: var(--color-text-light);
	color: var(--color-text);
	cursor: pointer;
	transition: all 150ms ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.page-btn.active { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-light); }

/* ── News ── */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-card h3 a { color: var(--color-primary); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card-image { width: calc(100% + 48px); height: 200px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin: -24px -24px 20px -24px; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }

/* ── Subscribe form ── */
.subscribe-card {
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px;
}

@media (max-width: 575px) {
	.subscribe-card { padding: 24px; }
}

.subscribe-label {
	display: block;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 6px;
}

.subscribe-required {
	color: var(--color-accent);
}

.subscribe-hint {
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-muted);
	margin-bottom: 16px;
}

.subscribe-input {
	display: block;
	width: 100%;
	font-family: var(--font-heading);
	font-size: 15px;
	color: var(--color-text);
	background-color: var(--color-secondary);
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius);
	padding: 10px 14px;
	transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
	appearance: none;
	-webkit-appearance: none;
}

.subscribe-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.12);
	outline: none;
	background-color: #fff;
}

.subscribe-input.is-invalid {
	border-color: #dc3545;
}

.subscribe-input.is-invalid:focus {
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.subscribe-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238C8C8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 36px;
	cursor: pointer;
}

.subscribe-field-error {
	font-family: var(--font-heading);
	font-size: 13px;
	color: #dc3545;
	margin-top: 6px;
	display: none;
}

.subscribe-input.is-invalid ~ .subscribe-field-error {
	display: block;
}

/* Subscription list checkboxes */
.subscribe-group-label {
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 600;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}

.subscribe-list-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.subscribe-list-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	background-color: var(--color-secondary);
	transition: border-color 200ms ease, background-color 200ms ease;
	user-select: none;
}

.subscribe-list-item:hover,
.subscribe-list-item:has(.subscribe-checkbox:checked),
.subscribe-list-item.is-selected {
	border-color: var(--color-primary);
	background-color: var(--color-tint);
}

.subscribe-checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.subscribe-checkmark {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-border);
	border-radius: 4px;
	background-color: #fff;
	margin-top: 2px;
	transition: border-color 200ms ease, background-color 200ms ease;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

.subscribe-list-item:has(.subscribe-checkbox:checked) .subscribe-checkmark,
.subscribe-list-item.is-selected .subscribe-checkmark {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 4L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.subscribe-list-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.subscribe-list-title {
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
}

.subscribe-list-desc {
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--color-muted);
	line-height: 1.5;
}

/* Alerts */
.subscribe-alert {
	padding: 14px 16px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-size: 14px;
	margin-bottom: 20px;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

/* Submit button */
.subscribe-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: var(--color-accent);
	color: var(--color-text-light);
	border: none;
	padding: 14px 28px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.subscribe-submit:hover:not(:disabled) {
	background-color: #D17E2F;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(232, 145, 58, 0.3);
}

.subscribe-submit:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.subscribe-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Spinner */
.subscribe-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: subscribe-spin 600ms linear infinite;
	flex-shrink: 0;
}

@keyframes subscribe-spin {
	to { transform: rotate(360deg); }
}

/* Privacy note */
.subscribe-privacy {
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--color-muted);
	text-align: center;
	margin-top: 16px;
	margin-bottom: 0;
}

/* ── Thank-you / error confirmation pages ── */
.thankyou-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: var(--color-tint);
	border: 2px solid var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 28px;
	color: var(--color-primary);
}

.thankyou-icon svg {
	width: 36px;
	height: 36px;
}

.thankyou-icon--error {
	background-color: #fef2f2;
	border-color: #dc3545;
	color: #dc3545;
}
/* ── Transparency page ── */
.transp-grid-heading {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 28px;
}

.transp-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
}

@media (max-width: 991px) {
        .transp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
        .transp-grid { grid-template-columns: 1fr; }
}

.transp-card {
        display: flex;
        flex-direction: column;
        background-color: var(--color-secondary);
        border: 1px solid rgba(0,0,0,0.07);
        border-radius: 8px;
        padding: 24px;
        text-decoration: none;
        color: var(--color-text);
        transition: box-shadow 200ms ease, transform 200ms ease;
        box-shadow: var(--shadow);
}

.transp-card:hover {
        box-shadow: 0 4px 16px rgba(45,45,45,0.10);
        transform: translateY(-2px);
        text-decoration: none;
        color: var(--color-text);
}

.transp-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: var(--color-tint);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        margin-bottom: 16px;
        flex-shrink: 0;
}

.transp-card-title {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
}

.transp-card-desc {
        font-family: var(--font-heading);
        font-size: 14px;
        color: var(--color-muted);
        line-height: 1.5;
        flex: 1;
        margin-bottom: 16px;
}

.transp-card-cta {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 600;
        color: var(--color-primary);
        display: inline-flex;
        align-items: center;
        gap: 4px;
}

.transp-card-cta::after {
        content: '\2192';
}

.transp-quick-jump {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	background-color: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--color-border);
	border-radius: 10px;
}

.transp-quick-jump-label {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-right: 2px;
}

.transp-quick-jump-link {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--color-primary);
	padding: 6px 10px;
	border-radius: 999px;
	background-color: var(--color-tint);
	border: 1px solid transparent;
	transition: background-color 200ms ease, border-color 200ms ease;
}

.transp-quick-jump-link:hover {
	text-decoration: none;
	background-color: #d7ecf0;
	border-color: rgba(0, 0, 0, 0.08);
}

.transp-section-intro {
	font-family: var(--font-heading);
	font-size: 17px;
	line-height: 1.6;
	color: var(--color-text);
	margin-bottom: 0.9em;
}

.transp-source-list {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: grid;
	gap: 12px;
}

.transp-source-item {
	background-color: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 14px 16px;
}

.transp-source-item h3 {
	font-family: var(--font-heading);
	font-size: 16px;
	margin: 0 0 6px;
}

.transp-source-item p {
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.transp-bullet-list {
	margin: 0 0 16px;
	padding-left: 20px;
}

.transp-bullet-list li {
	margin-bottom: 6px;
	line-height: 1.5;
}

.transp-note-card {
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 16px 18px;
	margin-top: 20px;
}

.transp-note-card h3 {
	font-size: 1.05rem;
	margin: 0 0 8px;
}

.transp-note-card p {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.transp-quick-jump {
		padding: 14px;
		gap: 8px;
	}

	.transp-quick-jump-label {
		width: 100%;
		margin-bottom: 2px;
	}

	.transp-source-item {
		padding: 12px 14px;
	}
}

/* ── Donation page ── */
.donor-stats-banner {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        padding: 28px 32px;
        background-color: var(--color-primary);
        border-radius: 8px;
}

.donor-stats-banner .stat-number {
        color: var(--color-text-light);
        font-size: 2.4rem;
}

.donor-stats-banner .stat-label {
        color: rgba(255, 255, 255, 0.72);
}

.donor-stat-item {
        display: flex;
        flex-direction: column;
}

.donor-table-heading {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 600;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 16px;
}

.donor-table {
        width: 100%;
        border-collapse: collapse;
        font-family: var(--font-heading);
        font-size: 15px;
}

.donor-table th {
        font-weight: 600;
        font-size: 13px;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 8px 12px;
        border-bottom: 2px solid rgba(0, 0, 0, 0.08);
        text-align: left;
}

.donor-table td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        color: var(--color-text);
        vertical-align: middle;
}

.donor-table tr:last-child td { border-bottom: none; }

.donor-amount { white-space: nowrap; }
.donor-date   { white-space: nowrap; color: var(--color-muted); }

.donor-details summary {
        list-style: none;
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 500;
        color: var(--color-primary);
        cursor: pointer;
        padding: 10px 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
}

.donor-details summary::-webkit-details-marker { display: none; }

.donor-details summary::before {
        content: '▸';
        display: inline-block;
        transition: transform 200ms ease;
}

.donor-details[open] summary::before {
        transform: rotate(90deg);
}

.donor-goal {
        margin-top: 28px;
}

.donor-goal-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
}

.donor-goal-label {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 600;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
}

.donor-goal-value {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 600;
        color: var(--color-primary);
}

.donor-goal-track {
        height: 8px;
        background-color: rgba(0, 0, 0, 0.08);
        border-radius: 4px;
        overflow: hidden;
}

.donor-goal-fill {
        height: 100%;
        background-color: var(--color-primary);
        border-radius: 4px;
        transition: width 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-width: 4px;
}

.donor-goal-note {
        font-family: var(--font-heading);
        font-size: 13px;
        color: var(--color-muted);
        margin-top: 8px;
        margin-bottom: 0;
}

@media (max-width: 575px) {
        .donor-stats-banner {
                flex-direction: column;
                gap: 24px;
                padding: 24px;
        }
}

/* ── Research Papers listing ────────────────────────────────────────────── */

/* Category description panel */
.category-description-panel {
	background: var(--color-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px 24px;
	margin: 0 0 8px;
}
.category-panel-inner {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.category-panel-text {
	flex: 1;
	min-width: 0;
}
.category-panel-inner strong {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--color-primary);
	margin-bottom: 6px;
}
.category-panel-inner p {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0;
}
.category-panel-sparkline {
	flex-shrink: 0;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.sparkline-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.sparkline-label {
	font-family: var(--font-heading);
	font-size: 11px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.sparkline-legend {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-heading);
	font-size: 10px;
	color: var(--color-muted);
	margin-top: 2px;
}
.sparkline-legend-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}
.sparkline-loading {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 40px;
	padding: 4px 0;
}
.sparkline-loading span {
	display: block;
	width: 6px;
	border-radius: 2px;
	background: var(--color-border);
	animation: sparkline-pulse 1.2s ease-in-out infinite;
}
.sparkline-loading span:nth-child(1) { height: 60%; animation-delay: 0s; }
.sparkline-loading span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.sparkline-loading span:nth-child(3) { height: 40%; animation-delay: 0.4s; }
@keyframes sparkline-pulse {
	0%, 100% { opacity: 0.3; }
	50%       { opacity: 0.9; }
}

/* Abstract on paper cards */
.paper-card-abstract {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text);
	margin: 6px 0 8px;
}

/* Category chips on paper cards */
.paper-card-categories {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

/* ML prediction badge */
.ml-badge {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	padding: 2px 7px;
	border-radius: 3px;
	vertical-align: middle;
	white-space: nowrap;
}
.ml-badge.success {
	background: #D1FAE5;
	color: #065F46;
}
.ml-badge.warning {
	background: #FEF3C7;
	color: #92400E;
}
.ml-badge.muted {
	background: var(--color-border);
	color: var(--color-muted);
}

/* Expert / curator badge */
.expert-badge {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	background: var(--color-primary);
	color: #fff;
	vertical-align: middle;
	white-space: nowrap;
}

/* Skeleton loading cards */
@keyframes skeleton-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.4; }
}
.paper-skeleton {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin-bottom: 24px;
	animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.paper-skeleton-title {
	height: 18px;
	width: 70%;
	background: var(--color-border);
	border-radius: 4px;
	margin-bottom: 10px;
}
.paper-skeleton-meta {
	height: 12px;
	width: 40%;
	background: var(--color-border);
	border-radius: 4px;
	margin-bottom: 12px;
}
.paper-skeleton-body {
	height: 12px;
	width: 90%;
	background: var(--color-border);
	border-radius: 4px;
}

/* Pagination ellipsis */
.pagination-ellipsis {
	display: inline-flex;
	align-items: center;
	padding: 0 6px;
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--color-muted);
}

@media (max-width: 768px) {
	.category-description-panel {
		padding: 12px 16px;
	}
}