/* ── Single article — newsroom treatment ─────────────────────────────
 *
 * Loaded by single.php (posts) and templates/single-mlc-resource.php
 * (MLC resources). The article carries the `single-article` class from
 * post_class(); everything here scopes under it or `.single-related`.
 * Loads after the compiled style.css, so equal-specificity rules win
 * ties against the legacy _post.scss styles. The eyebrow pill and the
 * related-card grid reuse archive-listing.css classes (also enqueued on
 * both templates).
 */

/* ── Article card surface ───────────────────────────────────────── */

.single .single-article,
.single-article {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 66rem;
	padding-block: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.75rem, 3.5vw, 3rem);
	/* width:auto (not 100%): the compiled .single .post rules add their own
	 * inline padding below md, and 100% + content-box padding overflows. */
	width: auto;
}

.single-article .post-content-wrapper {
	background: var(--wdg-color-white, #fff);
	border: 1px solid #e3e6ec;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 34, 63, 0.05);
	padding: clamp(1.4rem, 3.6vw, 3rem);
}

/* ── Header zone ────────────────────────────────────────────────── */

.single-article .post__eyebrow {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.85rem;
	margin: 1.1rem 0 1.2rem;
}

/* Match the breadcrumb-text indent the title already uses (global
 * header-alignment convention: 30px icon+arrow + two xsmall gaps). */
.single-article .post__header:has(.breadcrumb-data) .post__eyebrow {
	margin-inline-start: calc(30px + (2 * var(--wdg-gap-xsmall)));
}

.single-article .post__eyebrow .post__date {
	color: #5b6472;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.single .single-article .post__title,
.nam-article-drawer .single-article .post__title {
	font-size: clamp(2rem, 3.3vw, 2.7rem);
	line-height: 1.16;
	margin-bottom: 0;
}

/* The drawer heading is an h2 on a slightly narrower measure. */
.nam-article-drawer .single-article .post__title {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	margin-top: 0;
	position: relative;
}

.nam-article-drawer .single-article .post__title::after {
	background-color: var(--wdg-color-secondary, #00a9e0);
	bottom: -20px;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	width: 81px;
}

.single .single-article .post__subtitle,
.nam-article-drawer .single-article .post__subtitle {
	color: #41505f;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 400;
	line-height: 1.45;
	margin-top: var(--wdg-gap-medium, 1.5rem);
}

/* Byline + share row: hairline retired, chips instead of bare icons. */
.single .single-article .post__meta,
.nam-article-drawer .single-article .post__meta {
	align-items: center;
	border-top: 0;
	margin-top: clamp(1.6rem, 2.6vw, 2.2rem);
	padding-block: 0;
}

.nam-article-drawer .single-article .post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
}

.single-article .post__byline {
	color: #41505f;
}

.single-article .post__share {
	gap: 0.5rem;
}

.single-article .post__share > span {
	color: #5b6472;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.single-article .post__share .share-icon {
	align-items: center;
	background: var(--wdg-color-white, #fff);
	border: 1px solid #d7dce4;
	border-radius: 50%;
	box-sizing: border-box;
	display: flex;
	height: 38px;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	width: 38px;
}

.single-article .post__share .share-icon svg {
	fill: var(--wdg-color-primary, #0032a0);
}

.single-article .post__share .share-icon:hover,
.single-article .post__share .share-icon:focus {
	background-color: var(--wdg-color-primary, #0032a0);
	border-color: var(--wdg-color-primary, #0032a0);
}

.single-article .post__share .share-icon:hover svg,
.single-article .post__share .share-icon:focus svg {
	fill: #fff;
}

/* ── Featured figure ────────────────────────────────────────────── */

.single-article .post__figure {
	margin: clamp(1.4rem, 2.4vw, 2rem) 0 0;
}

.single-article .post__figure-media {
	border-bottom: 3px solid var(--wdg-color-secondary, #00a9e0);
	border-radius: 12px;
	overflow: hidden;
}

.single-article .post__figure-media img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.single-article .post__figure figcaption {
	color: #5b6472;
	font-size: 0.78rem;
	line-height: 1.5;
	padding-top: 0.55rem;
}

/* MLC resource lead video embeds get the same chrome. */
.single-article .post__content figure.nam-resource-video {
	border-bottom: 3px solid var(--wdg-color-secondary, #00a9e0);
	border-radius: 12px;
	margin: clamp(1.4rem, 2.4vw, 2rem) 0;
	overflow: hidden;
}

.single-article .post__content figure.nam-resource-video iframe {
	display: block;
	width: 100%;
}

/* ── Body ───────────────────────────────────────────────────────── */

.single-article .post__content {
	margin-top: clamp(1.4rem, 2.4vw, 1.9rem);
}

/* ── Bottom tag pills ───────────────────────────────────────────── */

.single-article .post__taxonomies {
	border-top: 1px solid #eef1f5;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: clamp(1.6rem, 2.6vw, 2.2rem);
	padding-top: 1.1rem;
}

.single-article .post__tag {
	align-items: center;
	background: color-mix(in srgb, var(--alb-facet-color, var(--wdg-color-secondary, #00a9e0)) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--alb-facet-color, var(--wdg-color-secondary, #00a9e0)) 32%, #fff);
	border-radius: 999px;
	color: #2a3540;
	display: inline-flex;
	font-size: 0.7rem;
	font-weight: 700;
	gap: 0.35rem;
	letter-spacing: 0.06em;
	line-height: 1.4;
	padding: 0.18rem 0.65rem;
	text-transform: uppercase;
	white-space: nowrap;
}

@supports not (background: color-mix(in srgb, red 10%, #fff)) {
	.single-article .post__tag {
		background: #eef2f7;
		border-color: #e3e6ec;
	}
}

.single-article .post__tag::before {
	background: var(--alb-facet-color, var(--wdg-color-secondary, #00a9e0));
	border-radius: 50%;
	content: "";
	flex: 0 0 auto;
	height: 7px;
	width: 7px;
}

/* ── Related content section ────────────────────────────────────── */

.single-related {
	margin: 0 auto;
	max-width: 80rem;
	padding-block: 0.5rem clamp(2rem, 4vw, 3rem);
	width: 100%;
}

.single-related__title {
	color: var(--wdg-color-primary, #0032a0);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 1.1rem;
	text-transform: uppercase;
}

@media (min-width: 55em) {
	.single-related .archive-listing__results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.single-related__actions {
	margin-top: 1.75rem;
	text-align: center;
}

.single-related__viewall {
	align-items: center;
	background: transparent;
	border: 1px solid var(--wdg-color-primary, #0032a0);
	border-radius: 999px;
	color: var(--wdg-color-primary, #0032a0);
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	gap: 0.4rem;
	letter-spacing: 0.06em;
	line-height: 1;
	padding: 0.85rem 1.7rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.single-related__viewall:hover,
.single-related__viewall:focus {
	background: var(--wdg-color-primary, #0032a0);
	color: #fff;
	text-decoration: none;
}

/* ── Mobile ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.single .single-article,
	.single-article {
		padding-block: 1rem 1.5rem;
	}

	.single-article .post-content-wrapper {
		border-radius: 10px;
		padding: 1.1rem 1rem 1.35rem;
	}

	.single .single-article .post__title {
		font-size: 1.55rem;
	}

	.single-article .post__share {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-article .post__share .share-icon,
	.single-related__viewall {
		transition: none;
	}
}
