/* ══════════════════════════════════════════════════════════════════
 * News / blog — listing (home.php, archive.php) + single article.
 * Loaded only on post contexts. Relies on foundation + components tokens.
 * ════════════════════════════════════════════════════════════════ */

/* ── Listing grid ─────────────────────────────────────────────────── */
.news-list {
	padding: 3rem 0 4.5rem;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

/* ── Post card ────────────────────────────────────────────────────── */
.post-card {
	display: flex;
	flex-direction: column;
	background: var(--colour-white);
	border: 1px solid var(--colour-border);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--colour-cream);
}

.post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__img {
	transform: scale(1.04);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.6rem 1.7rem;
	flex: 1;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
	font-family: var(--font-heading);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.post-card__cat {
	color: var(--heritage-green);
	font-weight: 600;
	text-decoration: none;
}

.post-card__cat:hover { text-decoration: underline; }

.post-card__date { color: var(--colour-text-light); }

.post-card__title {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	line-height: 1.3;
	margin: 0 0 0.6rem;
}

.post-card__title a {
	color: var(--heritage-green);
	text-decoration: none;
}

.post-card__title a:hover { color: var(--heritage-green-deep); }

.post-card__excerpt {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--colour-text-light);
	margin: 0 0 1rem;
}

.post-card__more {
	margin-top: auto;
	font-family: var(--font-heading);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--heritage-green);
}

.post-card__more span { display: inline-block; transition: transform 0.3s ease; }
.post-card:hover .post-card__more span { transform: translateX(4px); }

/* ── Featured lead card (spans the grid, image beside body) ────────── */
.post-card--featured {
	grid-column: 1 / -1;
	flex-direction: row;
}

.post-card--featured .post-card__media {
	flex: 0 0 55%;
	aspect-ratio: auto;
}

.post-card--featured .post-card__body {
	justify-content: center;
	padding: 2.5rem 2.75rem;
}

.post-card--featured .post-card__title { font-size: 1.9rem; }
.post-card--featured .post-card__excerpt { font-size: 1.02rem; }

/* ── Pagination ───────────────────────────────────────────────────── */
.news-list .pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.news-list .nav-links {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	align-items: center;
}

.news-list .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.6rem;
	border: 1px solid var(--colour-border);
	border-radius: 4px;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	color: var(--heritage-green);
	text-decoration: none;
}

.news-list .page-numbers.current {
	background: var(--heritage-green);
	border-color: var(--heritage-green);
	color: #fff;
}

.news-list a.page-numbers:hover {
	background: var(--colour-cream);
}

/* ── Single article — two-column layout ───────────────────────────── */
.news-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3.5rem;
	padding: 3.5rem 0 4.5rem;
	align-items: start;
}

.news-article {
	max-width: 720px; /* readable measure for articles */
}

.news-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	font-family: var(--font-heading);
	font-size: 0.8rem;
	color: var(--colour-text-light);
	padding-bottom: 1.25rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--colour-border);
}

.news-article__author { color: var(--heritage-green); font-weight: 600; }

/* TL;DR summary box */
.news-tldr {
	background: var(--colour-cream);
	border-left: 4px solid var(--heritage-green);
	border-radius: 0 6px 6px 0;
	padding: 1.25rem 1.5rem;
	margin: 0 0 2rem;
}

.news-tldr__label {
	font-family: var(--font-heading);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--heritage-green);
	margin: 0 0 0.4rem;
}

.news-tldr p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--colour-text); }

/* Article body typography */
.news-article__content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--colour-text);
}

.news-article__content h2,
.news-article__content h3 {
	font-family: var(--font-heading);
	color: var(--heritage-green);
	line-height: 1.25;
	margin: 2.25rem 0 0.85rem;
}

.news-article__content h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.news-article__content h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
.news-article__content p { margin: 0 0 1.25rem; }
.news-article__content ul,
.news-article__content ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.news-article__content li { margin-bottom: 0.4rem; }
.news-article__content a { color: var(--heritage-green); text-decoration: underline; text-underline-offset: 3px; }
.news-article__content a:hover { color: var(--heritage-green-deep); }
.news-article__content img { max-width: 100%; height: auto; border-radius: 4px; }
.news-article__content blockquote {
	border-left: 3px solid var(--heritage-green);
	margin: 2rem 0;
	padding: 0.5rem 0 0.5rem 1.5rem;
	font-style: italic;
	color: var(--urban-grey);
}

.news-article__tags {
	margin-top: 2rem;
	font-size: 0.85rem;
	color: var(--colour-text-light);
}

.news-article__tags span { font-weight: 600; }
.news-article__tags a { color: var(--heritage-green); }

/* ── FAQ accordion ────────────────────────────────────────────────── */
.news-faq {
	margin-top: 3rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--colour-border);
}

.news-faq__title {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	color: var(--heritage-green);
	margin: 0 0 1.25rem;
}

.news-faq__item {
	border: 1px solid var(--colour-border);
	border-radius: 6px;
	margin-bottom: 0.75rem;
	background: var(--colour-white);
	overflow: hidden;
}

.news-faq__q {
	cursor: pointer;
	list-style: none;
	padding: 1rem 1.25rem;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--heritage-green);
	position: relative;
	padding-right: 2.75rem;
}

.news-faq__q::-webkit-details-marker { display: none; }

.news-faq__q::after {
	content: '+';
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	line-height: 1;
	color: var(--heritage-green);
}

.news-faq__item[open] .news-faq__q::after { content: '–'; }

.news-faq__a {
	padding: 0 1.25rem 1.1rem;
	line-height: 1.7;
	color: var(--colour-text);
}

.news-faq__a p { margin: 0 0 0.75rem; }
.news-faq__a p:last-child { margin: 0; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.news-sidebar {
	position: sticky;
	top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.news-sidebar__block {
	border: 1px solid var(--colour-border);
	border-radius: 8px;
	padding: 1.5rem 1.6rem;
	background: var(--colour-white);
}

.news-sidebar__title {
	font-family: var(--font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--heritage-green);
	margin: 0 0 1rem;
}

/* Related posts */
.news-related { list-style: none; margin: 0; padding: 0; }
.news-related__item + .news-related__item { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--colour-border); }
.news-related__link { display: flex; gap: 0.85rem; text-decoration: none; align-items: center; }
.news-related__thumb { flex: 0 0 64px; }
.news-related__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 5px; display: block; }
.news-related__text { display: flex; flex-direction: column; gap: 0.2rem; }
.news-related__t { font-family: var(--font-heading); font-size: 0.92rem; line-height: 1.3; color: var(--heritage-green); font-weight: 600; }
.news-related__link:hover .news-related__t { color: var(--heritage-green-deep); }
.news-related__d { font-size: 0.72rem; color: var(--colour-text-light); }

/* Categories */
.news-categories { list-style: none; margin: 0; padding: 0; }
.news-categories li { margin-bottom: 0.5rem; }
.news-categories a { color: var(--colour-text); text-decoration: none; }
.news-categories a:hover { color: var(--heritage-green); }

/* Sidebar CTA */
.news-sidebar__cta { background: var(--colour-cream); }
.news-sidebar__cta p { font-size: 0.9rem; line-height: 1.6; color: var(--colour-text); margin: 0 0 1.1rem; }
.news-sidebar__cta .btn { width: 100%; text-align: center; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.news-single__layout { grid-template-columns: 1fr; gap: 2.5rem; }
	.news-article { max-width: none; }
	.news-sidebar { position: static; }
}

@media (max-width: 640px) {
	.news-grid { grid-template-columns: 1fr; }
	.post-card--featured { flex-direction: column; }
	.post-card--featured .post-card__media { flex-basis: auto; aspect-ratio: 16 / 10; }
	.post-card--featured .post-card__body { padding: 1.5rem 1.6rem 1.7rem; }
	.post-card--featured .post-card__title { font-size: 1.4rem; }
}

/* FAQ accordion separation within an article. */
.news-faq-wrap {
	margin-top: 3rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--colour-border);
}

/* ══════════════════════════════════════════════════════════════════
 * Content sections on posts — full-width tiled gallery strip.
 * (Text/image rows reuse the shared .project-block styles.)
 * ════════════════════════════════════════════════════════════════ */
.news-content-blocks { margin: 1rem 0; }

.sfs-strip { margin: 2.75rem 0; }

.sfs-strip__intro { margin-bottom: 1.5rem; }

.sfs-strip__title {
	font-family: var(--font-heading);
	color: var(--heritage-green);
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	margin: 0 0 0.75rem;
}

.sfs-strip__intro p {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--colour-text);
	max-width: 780px;
}

/* Edge-to-edge tiled row — equal columns, thin gaps, full viewport width. */
.sfs-strip__row {
	display: flex;
	width: 100%;
	gap: 4px;
}

.sfs-strip__item {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: var(--colour-cream);
}

.sfs-strip__item img {
	width: 100%;
	height: clamp(220px, 32vw, 440px);
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.sfs-strip__item:hover img { transform: scale(1.03); }

/* Caption kept for accessibility via alt text; hidden visually to preserve the
 * clean tiled look. */
.sfs-strip__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 900px) {
	.sfs-strip__row { flex-wrap: wrap; }
	.sfs-strip__item { flex: 1 1 calc(50% - 2px); }
	.sfs-strip__item img { height: clamp(180px, 42vw, 320px); }
	.sfs-strip__intro { padding: 0 var(--container-padding); }
}

/* ── News gallery ──────────────────────────────────────────────────
 * A hefty left/right scrollable image strip at the foot of an article,
 * sized to the content column (not full-bleed). Scrolls natively with
 * snap; the prev/next arrows are wired in assets/js/news-gallery.js and
 * stay hidden when there's nothing to scroll. */
.news-gallery {
	position: relative;
	margin: 2.75rem 0 0.5rem;
}
.news-gallery__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	border-radius: 6px;
}
.news-gallery__viewport::-webkit-scrollbar {
	display: none;
}
.news-gallery__track {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.news-gallery__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
}
.news-gallery__img {
	display: block;
	height: 440px;
	width: auto;
	max-width: none;
	object-fit: cover;
	border-radius: 6px;
	background: var(--colour-border, #e5e5e5);
}
.news-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 75, 44, 0.9);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
	transition: opacity 0.2s ease, background 0.2s ease;
	z-index: 2;
}
.news-gallery__nav:hover {
	background: var(--colour-primary, #0a4b2c);
}
.news-gallery__nav--prev { left: 12px; }
.news-gallery__nav--next { right: 12px; }
.news-gallery__nav[hidden] { display: none; }
.news-gallery__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 768px) {
	.news-gallery__img { height: 280px; }
	.news-gallery__nav { width: 40px; height: 40px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.news-gallery__viewport { scroll-behavior: auto; }
}

/* ── News content sections (contained) ─────────────────────────────
 * On posts the "Content sections" render inside the article column, so
 * neutralise the block's own centred .container — rows, the horizontal
 * rule (project-block border-top), the YouTube embed and tiled strips
 * then all align flush with the article text instead of going full width. */
.news-content-blocks .container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}
.news-content-blocks .project-block {
	padding: 2.25rem 0;
}
/* Tighter two-column rows in the narrower article measure; stack on smaller. */
.news-content-blocks .project-block__inner {
	gap: 2rem;
}
@media (max-width: 600px) {
	.news-content-blocks .project-block__inner { grid-template-columns: 1fr; gap: 1.25rem; }
}
