/* ==========================================================================
   Results & Dissemination — list page + detail pages
   ========================================================================== */

/* ── Results list page ── */

.results-list {
	padding: var(--space-xl) 0;
}

.results-list-header {
	text-align: center;
	margin-bottom: var(--space-xl);
}

.results-list-header__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--navy);
	font-weight: 700;
	margin: 0;
}

.results-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-lg);
}

/* Result card */
.result-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	background: var(--bg);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.result-card:hover,
.result-card:focus-visible {
	box-shadow: 0 6px 24px rgba(0, 32, 91, 0.18);
	transform: translateY(-3px);
	outline: none;
}

.result-card[aria-disabled="true"] {
	pointer-events: none;
	opacity: 0.55;
}

/* Accent bar at top */
.result-card__accent {
	height: 5px;
	background: var(--navy);
	flex-shrink: 0;
}

.result-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-md) var(--space-lg);
	flex: 1;
}

.result-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
	line-height: 1.3;
}

.result-card__excerpt {
	font-size: 0.95rem;
	color: var(--text);
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.result-card__cta {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--green);
	margin-top: var(--space-sm);
}

.result-card:hover .result-card__cta,
.result-card:focus-visible .result-card__cta {
	text-decoration: underline;
}

/* ── Result detail page ── */

.result-single {
	padding-bottom: var(--space-xl);
}

/* Full-width hero image */
.result-single__hero {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
	margin-bottom: var(--space-xl);
}

.result-single__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.result-single__body {
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
}

.result-single__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	color: var(--navy);
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

/* Quote box */
.result-quote {
	margin: 0;
	padding: var(--space-md) var(--space-lg);
	border-left: 3px solid var(--navy);
	background: #f4f6fa;
	border-radius: 0 4px 4px 0;
}

.result-quote__text {
	font-size: 1.1rem;
	font-style: italic;
	color: var(--navy);
	line-height: 1.7;
	margin: 0 0 var(--space-sm);
}

.result-quote__author {
	font-size: 0.875rem;
	color: #5a6a7a;
	font-style: normal;
	font-weight: 600;
}

/* WYSIWYG content area */
.result-single__content.result-content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--text);
}

.result-content h2,
.result-content h3,
.result-content h4 {
	color: var(--navy);
	margin-top: 1.75em;
	margin-bottom: 0.5em;
}

.result-content h2 { font-size: 1.5rem; }
.result-content h3 { font-size: 1.25rem; }

.result-content p  { margin: 0 0 1em; }

.result-content ul,
.result-content ol {
	padding-left: 1.5em;
	margin: 0 0 1em;
}

.result-content li { margin-bottom: 0.4em; }

.result-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	margin: var(--space-md) auto;
}

.result-content a {
	color: var(--green);
	text-decoration: underline;
}

.result-content a:hover { opacity: 0.75; }

.result-content blockquote {
	border-left: 3px solid var(--navy);
	margin: 1.5em 0;
	padding: 0.75em 1.25em;
	font-style: italic;
	color: #4a5a6a;
	background: #f4f6fa;
}

/* Auto News box */
.result-news-box {
	border-top: 2px solid #e4e8ef;
	padding-top: var(--space-xl);
}

.result-news-box__header {
	margin-bottom: var(--space-md);
}

.result-news-box__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
}

.result-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.result-news-card {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	text-decoration: none;
	color: inherit;
}

.result-news-card__image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.result-news-card__body {
	padding: var(--space-sm) var(--space-md);
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1;
}

.result-news-card__date {
	font-size: 0.8rem;
	color: #6b7b8d;
	margin: 0;
}

.result-news-card__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--navy);
	margin: 0;
	line-height: 1.4;
}

.result-news-card__title a {
	text-decoration: none;
	color: inherit;
}

.result-news-card__title a:hover {
	text-decoration: underline;
}

.result-news-box__more {
	margin-top: var(--space-lg);
	text-align: center;
}

/* ── Fix: restore list markers inside WYSIWYG content ── */
.result-content ul { list-style: disc; }
.result-content ol { list-style: decimal; }

/* ── Responsive ── */

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

@media (max-width: 640px) {
	.results-cards-grid {
		grid-template-columns: 1fr;
	}

	.result-news-grid {
		grid-template-columns: 1fr;
	}

	.result-single__hero {
		max-height: 260px;
	}

	.result-single__body {
		gap: var(--space-lg);
	}

	.result-quote {
		padding: var(--space-sm) var(--space-md);
	}
}

/* ==========================================================================
   Results & Dissemination — MAIN HUB PAGE (page-results.php)
   ========================================================================== */

/* Hero image */
.results-page__hero {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
}

.results-page__hero img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

/* Page body — constrained, vertically spaced */
.results-page__body {
	max-width: 820px;
	margin: 0 auto;
	padding: var(--space-xl) 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
}

/* Centered page title */
.results-page__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	color: var(--navy);
	text-align: center;
	margin: 0;
	line-height: 1.2;
}

/* Summary box — teal left-border accent, light teal wash background */
.results-summary {
	margin: 0;
	padding: var(--space-md) var(--space-lg);
	border-left: 4px solid var(--green);
	background: rgba(24, 165, 164, 0.07);
	border-radius: 0 6px 6px 0;
}

.results-summary__text {
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.75;
	color: var(--text);
	margin: 0 0 var(--space-sm);
}

.results-summary__text:only-child {
	margin-bottom: 0;
}

.results-summary__attribution {
	display: block;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	color: var(--green);
}

/* ── Bottom two-column row ── */
.results-bottom-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	align-items: start;
}

/* Shared box heading */
.results-box__heading {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 var(--space-md);
	line-height: 1.3;
}

/* News heading — short red underline */
.results-box__heading--accent {
	display: inline-block;
	padding-bottom: 0.3em;
	border-bottom: 3px solid var(--red);
	margin-bottom: var(--space-md);
}

/* News list */
.results-news-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: var(--space-lg);
}

.results-news-item {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	padding: var(--space-sm) 0;
	border-bottom: 1px solid rgba(0, 32, 91, 0.08);
}

.results-news-item:last-child {
	border-bottom: none;
}

.results-news-item__date {
	font-size: 0.78rem;
	color: #6b7b8d;
}

.results-news-item__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.4;
}

.results-news-item__title:hover {
	color: var(--green);
	text-decoration: underline;
}

.results-news-box__cta {
	margin-top: var(--space-md);
}

/* Person box — card styling without hover lift */
.results-person-box {
	padding: var(--space-lg);
	background: var(--card-bg);
	border: var(--card-border);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
}

.results-person__inner {
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
}

.results-person__photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.results-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.results-person__info {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	flex: 1;
}

.results-person__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
}

.results-person__name a {
	color: var(--navy);
}

.results-person__name a:hover {
	text-decoration: underline;
}

.results-person__position {
	font-size: 0.875rem;
	color: var(--text);
	opacity: 0.8;
	margin: 0;
}

.results-person__email {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--green);
	margin-top: 0.35em;
}

.results-person__email:hover {
	text-decoration: underline;
}

/* ── Responsive — main results page ── */

@media (max-width: 768px) {
	.results-bottom-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.results-page__hero img {
		height: 260px;
	}

	.results-page__body {
		padding: var(--space-lg) 0;
		gap: var(--space-lg);
	}

	.results-summary {
		padding: var(--space-sm) var(--space-md);
	}
}
