/* ==========================================================================
   THE GAROE GROUP — article.css
   News & Press single article. Loaded only on single posts. Covers both
   variants (lightweight News & Press and full template) off one set of
   components. All values reference tokens from style.css. Carbon / copper /
   gold, Playfair headings, IBM Plex Sans body, IBM Plex Mono labels.
   ========================================================================== */


/* ==========================================================================
   HERO
   The hero image is passed in as the --news-hero-image custom property on the
   header element (a div, not an <img>), so the editor's img-style stripping
   never applies and there is no inline <style> block to manage.
   ========================================================================== */

.news-hero {
	position: relative;
	isolation: isolate;
	background-color: var(--color-carbon-2);
	border-bottom: var(--border-thin);
}

.news-hero.has-image {
	background-image: var(--news-hero-image);
	background-size: cover;
	background-position: center;
}

.news-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.news-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.news-hero .garoe-breadcrumb__list {
	justify-content: center;
}

.news-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-muted);
}

.news-hero__category {
	color: var(--color-gold);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.news-hero__category:hover {
	color: var(--color-gold-light);
}

.news-hero__title {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: -0.01em;
	color: var(--color-white);
	margin: 0 auto;
	max-width: 20ch;
}

.news-hero__byline {
	margin: var(--space-5) 0 0;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--color-muted);
}

/* --- Full-template centered hero --- */
.news-hero--full {
	padding-top: var(--space-20);
	padding-bottom: var(--space-20);
}

.news-hero--full .news-hero__title {
	font-size: var(--text-5xl);
}

.news-hero--full.has-image .news-hero__scrim {
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.78) 100%);
}

/* --- Lightweight centered hero: smaller scale, simple treatment --- */
.news-hero--light {
	padding-top: var(--space-14);
	padding-bottom: var(--space-14);
}

.news-hero--light .news-hero__title {
	font-size: var(--text-3xl);
	max-width: 24ch;
}

.news-hero--light.has-image .news-hero__scrim {
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.74) 0%, rgba(10, 10, 10, 0.82) 100%);
}

/* --- Full-bleed overlay (full template, explicit override) --- */
.news-hero--fullbleed {
	display: flex;
	align-items: flex-end;
	min-height: 70vh;
	padding-top: var(--space-24);
	padding-bottom: var(--space-16);
}

.news-hero--fullbleed .news-hero__inner {
	width: 100%;
}

.news-hero--fullbleed .news-hero__title {
	font-size: var(--text-5xl);
}

.news-hero--fullbleed.has-image .news-hero__scrim {
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.92) 100%);
}

/* When a full-bleed hero has no image it falls back to the centered band so it
   never renders as a tall empty box. */
.news-hero--fullbleed.no-image {
	min-height: 0;
	display: block;
	padding-top: var(--space-20);
	padding-bottom: var(--space-20);
}


/* ==========================================================================
   BODY LAYOUT
   ========================================================================== */

.news-body {
	padding-top: var(--space-16);
	padding-bottom: var(--space-20);
}

.news-body__grid:not(.has-toc) {
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.news-body__grid.has-toc {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: var(--space-16);
	align-items: start;
	max-width: 1060px;
	margin-inline: auto;
}

.news-body__grid.has-toc .news-body__main {
	max-width: 760px;
}


/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.news-toc-wrap {
	position: sticky;
	top: calc(var(--space-16) + var(--space-4));
}

.garoe-toc__label {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--color-gold);
	margin: 0 0 var(--space-4);
	padding-bottom: var(--space-3);
	border-bottom: var(--border-thin);
}

.garoe-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.garoe-toc__item--h3 {
	padding-left: var(--space-4);
}

.garoe-toc__item a {
	display: block;
	padding: var(--space-1) 0;
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	color: color-mix(in srgb, var(--color-muted) 65%, var(--color-paper-text) 35%);
	text-decoration: none;
	border-left: 2px solid transparent;
	padding-left: var(--space-3);
	margin-left: calc(var(--space-3) * -1);
	transition: color var(--transition-fast), border-color var(--transition-fast);
}

.garoe-toc__item a:hover {
	color: var(--color-paper-text);
}

.garoe-toc__item a.is-active {
	color: var(--color-gold);
	border-left-color: var(--color-gold);
}


/* ==========================================================================
   KEY TAKEAWAYS
   ========================================================================== */

.news-takeaways {
	background-color: var(--color-carbon-2);
	border: var(--border-thin);
	border-left: 2px solid var(--color-gold);
	border-radius: var(--radius-md);
	padding: var(--space-6) var(--space-8);
	margin-bottom: var(--space-10);
}

.news-takeaways__label {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--color-gold);
	margin: 0 0 var(--space-4);
}

.news-takeaways__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.news-takeaways__list li {
	position: relative;
	padding-left: var(--space-6);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	color: var(--color-paper-text);
}

.news-takeaways__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--color-gold);
}


/* ==========================================================================
   PROSE — small tuning on top of main.css .prose
   ========================================================================== */

.news-prose {
	font-size: var(--text-md);
}

.news-prose > :first-child {
	margin-top: 0;
}

/* The lead paragraph of an article reads slightly larger. */
.news-prose > p:first-of-type {
	font-size: var(--text-lg);
	line-height: var(--leading-relaxed);
	color: var(--color-white);
}


/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.news-share {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-12);
	padding-top: var(--space-6);
	border-top: var(--border-thin);
}

.news-share__label {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--color-muted);
	margin-right: var(--space-2);
}

.news-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--color-muted);
	background-color: transparent;
	border: 1px solid var(--color-line-dark);
	border-radius: var(--radius-sm);
	cursor: pointer;
	text-decoration: none;
	transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.news-share__btn:hover {
	color: var(--color-gold);
	border-color: rgba(200, 169, 110, 0.5);
	background-color: rgba(200, 169, 110, 0.06);
}

.news-share__btn.is-copied {
	color: var(--color-gold);
	border-color: var(--color-gold);
}

.news-share__feedback {
	position: absolute;
	bottom: calc(100% + var(--space-2));
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-gold);
}

.news-share__feedback:empty {
	display: none;
}


/* ==========================================================================
   FAQ ACCORDION
   Reuses the site's faq-item markup/behaviour (the global handler in main.js),
   restated here because legacy.css is not loaded on single posts. Answer cap
   is raised for longer News answers.
   ========================================================================== */

.news-faq {
	margin-top: var(--space-16);
	padding-top: var(--space-10);
	border-top: var(--border-thin);
}

.news-faq__heading {
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: -0.01em;
	color: var(--color-white);
	margin: 0 0 var(--space-6);
}

.news-faq .faq-item {
	border-top: 1px solid var(--color-line-dark);
	overflow: hidden;
}

.news-faq .faq-item:last-child {
	border-bottom: 1px solid var(--color-line-dark);
}

.news-faq .faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	width: 100%;
	padding: var(--space-5) 0;
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
}

.news-faq .faq-question-text {
	font-family: var(--font-body);
	font-size: var(--text-md);
	line-height: var(--leading-snug);
	color: var(--color-paper-text);
}

.news-faq .faq-toggle {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid rgba(200, 169, 110, 0.25);
	border-radius: var(--radius-sm);
	transition: border-color var(--transition-fast);
}

.news-faq .faq-toggle-icon {
	font-family: var(--font-mono);
	font-size: 16px;
	line-height: 1;
	color: var(--color-gold);
	transition: transform var(--transition-base);
}

.news-faq .faq-item.open .faq-toggle {
	border-color: rgba(200, 169, 110, 0.55);
}

.news-faq .faq-item.open .faq-toggle-icon {
	transform: rotate(45deg);
}

.news-faq .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition-slow);
}

.news-faq .faq-item.open .faq-answer {
	max-height: 1200px;
}

.news-faq .faq-answer-inner {
	padding: 0 0 var(--space-6);
	max-width: 640px;
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-muted);
}


/* ==========================================================================
   CTA BLOCK — [garoe_cta]
   ========================================================================== */

.garoe-cta {
	margin: var(--space-12) 0;
	background-color: var(--color-carbon-2);
	border: var(--border-thin);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.garoe-cta__inner {
	padding: var(--space-8) var(--space-10);
	border-left: 3px solid var(--color-copper-dark);
}

.garoe-cta--academy .garoe-cta__inner {
	border-left-color: var(--color-gold);
}

.garoe-cta__eyebrow {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--color-gold);
	margin-bottom: var(--space-3);
}

.garoe-cta__heading {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 700;
	line-height: var(--leading-snug);
	color: var(--color-white);
	margin: 0 0 var(--space-3);
}

.garoe-cta__text {
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	color: var(--color-paper-text);
	margin: 0 0 var(--space-5);
	max-width: 60ch;
}

.garoe-cta .garoe-cta__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--color-carbon);
	background-color: var(--color-gold);
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background-color var(--transition-fast);
}


.garoe-cta .garoe-cta__link:hover {
	background-color: var(--color-gold-light);
	color: var(--color-carbon);
}


/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */

.news-related {
	max-width: var(--container-max);
	margin: var(--space-20) auto 0;
	padding-top: var(--space-10);
	border-top: var(--border-thin);
}

.news-related__label {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--color-gold);
	margin: 0 0 var(--space-8);
}

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

.news-related__link {
	display: block;
	text-decoration: none;
}

.news-related__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-sm);
	border: var(--border-thin);
	margin-bottom: var(--space-4);
	background-color: var(--color-carbon-3);
}

.news-related__date {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: var(--space-2);
}

.news-related__title {
	display: block;
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: 700;
	line-height: var(--leading-snug);
	color: var(--color-white);
	transition: color var(--transition-fast);
}

.news-related__link:hover .news-related__title {
	color: var(--color-gold);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media ( max-width: 900px ) {

	.news-body__grid.has-toc {
		grid-template-columns: 1fr;
		gap: var(--space-10);
		max-width: var(--container-narrow);
	}

	.news-toc-wrap {
		position: static;
	}

	.garoe-toc {
		padding: var(--space-5) var(--space-6);
		background-color: var(--color-carbon-2);
		border: var(--border-thin);
		border-radius: var(--radius-md);
	}

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

@media ( max-width: 600px ) {

	.news-hero--full .news-hero__title,
	.news-hero--fullbleed .news-hero__title {
		font-size: var(--text-3xl);
	}

	.news-hero--fullbleed {
		min-height: 60vh;
	}

	.news-hero--full {
		padding-top: var(--space-14);
		padding-bottom: var(--space-14);
	}

	.garoe-cta__inner {
		padding: var(--space-6) var(--space-6);
	}

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