/*
 * Bennelongia Staff Publications page — hero + section wrappers (heading,
 * spacing, peach band for Edited Books / Popular Publications). The
 * publication cards themselves are rendered by the [bn_publications]
 * shortcode (see inc/publications/bn-publications-shortcode.php and
 * assets/css/bn-publications.css) — this file only lays out the sections
 * around it.
 *
 * Deliberately independent of assets/css/reports.css — same design
 * language (fonts, colours, radii) as the rest of the site, but no shared
 * selectors, so this page and the Bennelongia Reports page can never
 * collide or regress one another.
 */

.publications-hero,
.publications-list-block,
.publications-grid-block {
	--sp-font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sp-heading: #030712;
	--sp-peach: #FCECD8;
	--sp-max-width: 1704px;
}

/* =============================================================================
   Hero
   ============================================================================= */

.publications-hero {
	position: relative;
	/* Was capped at 1880px, which left ~20px of page background showing down
	   each side on a ~1920px screen — the banner spans the full width instead. */
	max-width: none;
	height: 400px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
	background-color: #1B250E;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}

.publications-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.publications-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--sp-max-width);
	margin: 0 auto;
	padding: 0 40px;
}

.publications-hero__title {
	margin: 0;
	font-family: var(--sp-font);
	font-size: 52px;
	font-weight: 600;
	line-height: 60px;
	color: #FFFFFF;
}

/* =============================================================================
   Refereed Journal Papers / Reports and Unrefereed Publications — heading
   above the [bn_publications] module (which renders its own year filter).
   ============================================================================= */

.publications-list-block {
	max-width: var(--sp-max-width);
	margin: 0 auto;
	padding: 100px 24px;
}

.publications-list-block__title {
	margin: 0 0 40px;
	font-family: var(--sp-font);
	font-size: 42px;
	font-weight: 600;
	line-height: 50px;
	letter-spacing: 0;
	color: var(--sp-heading);
}

/* =============================================================================
   Edited Books / Popular Publications — peach band around the
   [bn_publications] module (no year filter for these two sections).
   ============================================================================= */

.publications-grid-block {
	background: var(--sp-peach);
	padding: 100px 24px;
}

.publications-grid-block__inner {
	max-width: var(--sp-max-width);
	margin: 0 auto;
}

.publications-grid-block__title {
	margin: 0 0 40px;
	font-family: var(--sp-font);
	font-size: 28px;
	font-weight: 600;
	line-height: 36px;
	color: var(--sp-heading);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 1400px) {
	.publications-hero {
		height: 320px;
	}

	.publications-hero__title {
		font-size: 40px;
		line-height: 48px;
	}

	.publications-list-block__title {
		font-size: 32px;
		line-height: 40px;
	}
}

@media (max-width: 1024px) {
	.publications-hero {
		height: 260px;
		border-radius: 16px;
		margin-left: 24px;
		margin-right: 24px;
	}

	.publications-hero__title {
		font-size: 32px;
		line-height: 40px;
	}

	.publications-list-block__title {
		font-size: 26px;
		line-height: 34px;
	}

	.publications-grid-block__title {
		font-size: 22px;
		line-height: 30px;
	}

	.publications-list-block {
		padding: 60px 20px;
	}

	.publications-grid-block {
		padding: 60px 20px;
	}
}

@media (max-width: 640px) {
	.publications-hero {
		margin-left: 16px;
		margin-right: 16px;
		height: 200px;
		border-radius: 12px;
	}

	.publications-hero__inner {
		padding: 0 20px;
	}

	.publications-hero__title {
		font-size: 26px;
		line-height: 32px;
	}

	.publications-list-block__title {
		font-size: 22px;
		line-height: 30px;
	}

	.publications-list-block {
		padding: 40px 16px;
	}

	.publications-grid-block {
		padding: 40px 16px;
	}
}
