/* ==========================================================================
   Single Study + Single News templates (Figma "Study Page - BAR Website")
   ========================================================================== */

.bar-article {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Study header — title + dates, centred (Figma "Page title")
 * --------------------------------------------------------------------------- */
.bar-article__header-inner {
	max-width: var(--bar-content);
	margin-inline: auto;
	padding-inline: var(--bar-section-x);
	padding-block: 60px 0;
	text-align: center;
}

.bar-article__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(30px, 5vw, 44px);
	font-weight: 700;
	line-height: 1.43;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--primary, #104246);
	margin: 0;
}

.bar-article__meta {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(18px, 3vw, 24px);
	font-weight: 300;
	line-height: 1.5;
	color: var(--wp--preset--color--primary, #104246);
	margin: 24px 0 0;
}

/* ---------------------------------------------------------------------------
 * Featured banner — 58px below the title block (Figma section gap)
 * --------------------------------------------------------------------------- */
.bar-article__banner {
	max-width: var(--bar-content);
	margin: 58px auto 0;
	padding-inline: var(--bar-section-x);
}

.bar-article__banner-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1280 / 458;
	object-fit: cover;
	border-radius: var(--bar-radius-base, 8px);
}

/* ---------------------------------------------------------------------------
 * Study body — rich content (core blocks styled by theme.json).
 * Figma sets the whole body at Lato 20px in dark emerald, with the section
 * sub-headings ("Study Overview", "Who May Qualify?") as *bold body text*
 * rather than display headings — hence the 20px cap on h2/h3/h4 below.
 * --------------------------------------------------------------------------- */
.bar-article__content {
	max-width: var(--bar-content);
	margin-inline: auto;
	padding-inline: var(--bar-section-x);
	padding-block: 58px 60px;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(17px, 2.5vw, 20px);
	font-weight: 300;
	line-height: 1.5;
	color: var(--wp--preset--color--primary, #104246);
}

.bar-article__content > * {
	max-width: 100%;
}

.bar-article__content :where(h2, h3, h4) {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(17px, 2.5vw, 20px);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--wp--preset--color--primary, #104246);
}

.bar-article__content :where(h2, h3, h4) {
	margin-top: 30px;
	margin-bottom: 0;
}

.bar-article__content :where(h2, h3, h4):first-child {
	margin-top: 0;
}

.bar-article__content :where(p) {
	margin: 0 0 15px;
}

.bar-article__content :where(ul, ol) {
	margin: 0 0 15px;
	padding-left: 1.4em;
}

.bar-article__content :where(li) {
	margin-bottom: 0;
	line-height: 1.5;
}

/* ---------------------------------------------------------------------------
 * Mobile
 * --------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.bar-article__header-inner,
	.bar-article__banner,
	.bar-article__content {
		padding-inline: var(--bar-gutter);
	}

	.bar-article__banner {
		margin-top: 28px;
	}

	.bar-article__content {
		padding-block: 32px 40px;
	}

	.bar-article__banner-img {
		aspect-ratio: 16 / 9;
	}
}
