/**
 * Single News story.
 *
 * Loaded only on a bb_news single (slug "single-bb_news"). Figma frame
 * "News-details", 1512 wide. Uses the theme design tokens from main.css.
 *
 * 1. Hero
 * 2. Meta strip
 * 3. Body
 * 4. Related stories
 * 5. Responsive
 */

/* -------------------------------------------------------------------------- */
/* 1. Hero                                                                     */
/* -------------------------------------------------------------------------- */

.ndhero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 30vw, 460px);
	padding-block: clamp(40px, 4.6vw, 70px);
	background: var(--c-purple);
	color: var(--c-white);
	isolation: isolate;
}

.ndhero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ndhero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ndhero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(20 12 42 / 35%) 0%, rgb(20 12 42 / 82%) 100%);
}

.ndhero__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ndhero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: var(--fw-medium);
}

.ndhero__crumb {
	color: var(--c-lilac);
	text-decoration: none;
	transition: color var(--duration) var(--ease);
}

.ndhero__crumb:hover {
	color: var(--c-white);
}

.ndhero__crumb--current {
	color: var(--c-white);
}

.ndhero__crumb-sep {
	width: 16px;
	height: 16px;
	color: var(--c-lilac);
	flex: none;
}

.ndhero__title {
	max-width: 20ch;
	margin: 0;
	font-size: clamp(34px, 4.76vw, 72px);
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
	line-height: 1.02;
	text-transform: uppercase;
	text-wrap: balance;
}

/* -------------------------------------------------------------------------- */
/* 2. Meta strip                                                               */
/* -------------------------------------------------------------------------- */

.ndstrip {
	background: var(--c-purple);
	color: var(--c-white);
	border-top: 1px solid rgb(255 255 255 / 12%);
}

.ndstrip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 16px;
	font-size: 16px;
	font-weight: var(--fw-medium);
}

.ndstrip__tags,
.ndstrip__byline {
	margin: 0;
}

.ndstrip__byline {
	color: rgb(255 255 255 / 88%);
}

.ndstrip__share {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.ndstrip__share-label {
	white-space: nowrap;
}

.ndshare {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndshare__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--c-white);
	transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.ndshare__link:hover {
	color: var(--c-lilac);
	transform: translateY(-1px);
}

.ndshare__icon {
	width: 22px;
	height: 22px;
}

/* -------------------------------------------------------------------------- */
/* 3. Body                                                                     */
/* -------------------------------------------------------------------------- */

.ndbody {
	padding-block: clamp(40px, 5.3vw, 80px);
	background: var(--c-white);
}

.ndbody__inner {
	max-width: 870px;
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.ndbody__inner > *:first-child {
	margin-top: 0;
}

.ndbody__inner p {
	margin: 0 0 24px;
	color: var(--c-grey);
	font-size: clamp(16px, 1.32vw, 20px);
	font-weight: var(--fw-medium);
	line-height: 1.65;
}

.ndbody__inner h2 {
	margin: clamp(32px, 3.6vw, 56px) 0 20px;
	color: var(--c-charcoal);
	font-size: clamp(26px, 2.65vw, 40px);
	font-weight: var(--fw-semibold);
	line-height: 1.1;
	letter-spacing: -0.01em;
	/* The article's own sub-headings read as sentence case, not the uppercase
	   used for section titles elsewhere. */
	text-transform: none;
}

.ndbody__inner h3 {
	margin: clamp(28px, 3vw, 40px) 0 16px;
	color: var(--c-charcoal);
	font-size: clamp(20px, 1.9vw, 28px);
	font-weight: var(--fw-semibold);
	line-height: 1.15;
	text-transform: none;
}

.ndbody__inner img {
	display: block;
	width: 100%;
	height: auto;
	margin: clamp(28px, 3.2vw, 48px) 0;
	border-radius: 16px;
	aspect-ratio: 870 / 497;
	object-fit: cover;
}

.ndbody__inner a {
	color: var(--c-purple);
	text-decoration: underline;
}

.ndbody__inner ul,
.ndbody__inner ol {
	margin: 0 0 24px;
	padding-left: 1.25em;
	color: var(--c-grey);
	font-size: clamp(16px, 1.32vw, 20px);
	line-height: 1.65;
}

.ndbody__inner li {
	margin-bottom: 8px;
}

/* -------------------------------------------------------------------------- */
/* 4. Related stories                                                          */
/* -------------------------------------------------------------------------- */

.ndrelated {
	padding-block: clamp(48px, 6.35vw, 96px);
	background: var(--c-white);
	border-top: 1px solid var(--c-cream);
}

.ndrelated__head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: clamp(28px, 3vw, 44px);
}

.ndrelated__title {
	margin: 0;
	color: var(--c-charcoal);
	font-size: clamp(28px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.ndrelated__view {
	color: var(--c-purple);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	white-space: nowrap;
}

.ndrelated__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 3vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: start;
}

/* Cream card on the white section, matching the Figma "Card / Blog". */
.ndcard {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 8px;
	border-radius: 14px;
	background: var(--c-cream);
}

.ndcard__media {
	display: block;
	aspect-ratio: 423 / 370;
	overflow: hidden;
	border-radius: 10px;
}

.ndcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--duration) var(--ease);
}

.ndcard__media:hover img {
	transform: scale(1.04);
}

.ndcard__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 8px 12px;
}

.ndcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	margin: 0;
	font-size: 14px;
	font-weight: var(--fw-medium);
}

.ndcard__cat {
	color: var(--c-purple);
}

.ndcard__date {
	color: var(--c-charcoal);
}

.ndcard__title {
	margin: 0;
	font-size: clamp(20px, 1.587vw, 24px);
	font-weight: var(--fw-semibold);
	line-height: 1.25;
}

.ndcard__title a {
	color: var(--c-charcoal);
	text-decoration: none;
}

.ndcard__title a:hover {
	color: var(--c-purple);
}

.ndcard__more {
	margin-top: 4px;
	color: var(--c-purple);
	font-size: 14px;
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 5. Responsive                                                               */
/* -------------------------------------------------------------------------- */

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

@media (max-width: 720px) {
	.ndstrip__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

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