/*
Theme Name: Eritrea Business Journal
Description: Custom child theme for Eritrea Business Journal.
Template: astra
Version: 1.0.0
*/

:root {
	--ebj-navy: #071A2B;
	--ebj-gold: #C7A24B;
	--ebj-white: #FFFFFF;
	--ebj-off-white: #F7F5F0;
	--ebj-charcoal: #222222;
	--ebj-muted: #6B7280;
	--ebj-rule: rgba(7, 26, 43, 0.12);
	--ebj-rule-light: rgba(7, 26, 43, 0.08);
	--ebj-text-serif: Georgia, "Times New Roman", Times, serif;
	--ebj-text-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------
   EBJ GLOBAL OVERRIDES
   ------------------------------------------------------------------ */

body {
	background-color: var(--ebj-off-white);
	color: var(--ebj-charcoal);
}

html,
body {
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

.ebj-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------
   ASTRA HEADER — EDITORIAL PRESENTATION
   ------------------------------------------------------------------ */

.site-header,
.site-header .ast-primary-header-bar,
.site-header .main-header-bar,
.ast-primary-header-bar {
	background-color: var(--ebj-navy) !important;
	border-bottom: 3px solid var(--ebj-gold);
}

.site-header a,
.site-header .site-title a,
.site-header .main-header-menu a,
.site-header .main-header-menu .menu-item a,
.site-header .ast-menu-toggle,
.ast-primary-header-bar a,
.ast-primary-header-bar .main-header-menu a,
.ast-primary-header-bar .main-header-menu .menu-item a,
.main-header-bar a {
	color: var(--ebj-white) !important;
}

.site-header .site-title,
.site-header .site-title a {
	font-family: var(--ebj-text-serif);
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ebj-white) !important;
}

.site-header .site-description {
	display: none;
}

/* EBJ brand logo replaces the default site title. */
.site-branding.ast-site-identity {
	overflow: visible !important;
	min-width: 0;
}

.site-branding .site-logo-img {
	display: inline-flex !important;
	max-width: 100%;
	width: auto !important;
	overflow: visible !important;
}

.ast-builder-grid-row,
.ast-builder-grid-row-container,
.site-header-section,
.site-header-primary-section-left,
.site-header-primary-section-right,
.ast-flex {
	overflow: visible !important;
}

.site-header-primary-section-left {
	flex: 0 0 auto !important;
	min-width: 240px !important;
}

.ebj-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	max-width: 100%;
	overflow: visible !important;
}

.ebj-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
}

.ebj-logo--desktop {
	display: block;
	width: 220px !important;
	height: auto !important;
	max-width: 100%;
	line-height: 0;
}

.ebj-logo--desktop svg {
	display: block;
	width: 100%;
	height: auto;
}

.ebj-logo--mobile {
	display: none;
	width: 55px !important;
	min-width: 55px !important;
	height: auto !important;
	max-width: none !important;
	line-height: 0;
}

.ebj-logo--mobile svg {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 921px) {
	.ebj-logo-link {
		width: 55px !important;
		min-width: 55px !important;
		max-width: none !important;
		overflow: visible !important;
	}

	.ebj-logo--desktop {
		display: none;
	}

	.ebj-logo--mobile {
		display: block;
		width: 55px !important;
		min-width: 55px !important;
		max-width: none !important;
		overflow: visible !important;
	}

	.ebj-logo--mobile svg {
		width: 100% !important;
		min-width: 55px !important;
		overflow: visible !important;
	}

	.site-branding.ast-site-identity,
	.ast-mobile-header-wrap .site-branding,
	.ast-mobile-header-wrap .site-header-section,
	.ast-mobile-header-wrap .ast-flex,
	.ast-mobile-header-wrap .site-header-primary-section-left {
		overflow: visible !important;
		min-width: 0;
		flex: 0 0 auto !important;
	}
}

.site-header .main-header-menu .menu-item a:hover,
.site-header .main-header-menu .menu-item a:focus,
.ast-primary-header-bar .main-header-menu .menu-item a:hover,
.ast-primary-header-bar .main-header-menu .menu-item a:focus {
	color: var(--ebj-gold);
}

.site-header .main-header-menu .menu-item a,
.ast-primary-header-bar .main-header-menu .menu-item a,
.main-header-bar .main-header-menu .menu-item a {
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	padding-left: 0.625rem;
	padding-right: 0.625rem;
}

.site-header .main-header-menu,
.ast-primary-header-bar .main-header-menu {
	gap: 0.125rem;
}

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-mobile-header-wrap .main-header-bar {
	background-color: var(--ebj-navy) !important;
}

@media (max-width: 1200px) {
	.site-header .ast-primary-header-bar,
	.site-header .main-header-bar {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.site-header .site-title,
	.site-header .site-title a {
		font-size: 1.375rem;
	}

	.site-header .main-header-menu,
	.ast-primary-header-bar .main-header-menu,
	.main-header-bar .main-header-menu {
		justify-content: flex-end !important;
		margin-top: 0;
		margin-bottom: 0;
	}

	.site-header .main-header-menu .menu-item,
	.ast-primary-header-bar .main-header-menu .menu-item,
	.main-header-bar .main-header-menu .menu-item {
		margin-bottom: 0;
	}

	.site-header .main-header-menu .menu-item a,
	.ast-primary-header-bar .main-header-menu .menu-item a,
	.main-header-bar .main-header-menu .menu-item a {
		font-size: 0.75rem;
		padding: 0.25rem 0.5rem;
	}
}

/* ------------------------------------------------------------------
   MOBILE SECTION NAVIGATION
   ------------------------------------------------------------------ */

.ebj-mobile-nav {
	display: none;
}

@media (max-width: 768px) {
	.ebj-mobile-nav {
		display: block;
		background-color: var(--ebj-navy);
		border-bottom: 1px solid rgba(199, 162, 75, 0.35);
	}

	.ebj-mobile-nav__list {
		display: flex;
		flex-wrap: nowrap;
		gap: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		max-width: 1100px;
		margin: 0 auto;
		padding: 0 1rem;
		list-style: none;
	}

	.ebj-mobile-nav__list::-webkit-scrollbar {
		display: none;
	}

	.ebj-mobile-nav__list li {
		flex: 0 0 auto;
	}

	.ebj-mobile-nav__list li a {
		display: block;
		padding: 0.75rem 0.875rem;
		font-size: 0.6875rem;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--ebj-white);
		text-decoration: none;
		white-space: nowrap;
	}

	.ebj-mobile-nav__list li a:hover,
	.ebj-mobile-nav__list li a:focus {
		color: var(--ebj-gold);
	}
}

/* ------------------------------------------------------------------
   ASTRA FOOTER — EDITORIAL PRESENTATION
   ------------------------------------------------------------------ */

.site-footer {
	background-color: transparent;
	padding: 0 !important;
	border: none;
}

.site-footer .site-below-footer-wrap,
.site-footer > .site-below-footer-wrap,
#colophon .site-below-footer-wrap {
	display: none !important;
}

.ebj-footer-copyright {
	background-color: var(--ebj-navy);
	border-top: 3px solid var(--ebj-gold);
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
}

.ebj-footer-copyright__inner {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	text-align: center;
}

.ebj-footer-copyright p {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------------------------------------------
   EBJ HOMEPAGE — INAUGURAL EDITION DESIGN
   ------------------------------------------------------------------ */

.ebj-homepage {
	background-color: var(--ebj-off-white);
	color: var(--ebj-charcoal);
	font-family: var(--ebj-text-sans);
	line-height: 1.6;
}

.ebj-homepage > section {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.ebj-homepage *,
.ebj-homepage *::before,
.ebj-homepage *::after {
	box-sizing: border-box;
}

.ebj-homepage h1,
.ebj-homepage h2,
.ebj-homepage h3,
.ebj-homepage p {
	margin-top: 0;
}

/* ------------------------------------------------------------------
   IMAGE PLACEHOLDERS
   ------------------------------------------------------------------ */

.ebj-image-placeholder {
	position: relative;
	background-color: var(--ebj-off-white);
	border: 1px solid var(--ebj-rule);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.ebj-image-placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 8px,
		rgba(7, 26, 43, 0.04) 8px,
		rgba(7, 26, 43, 0.04) 16px
	);
}

.ebj-featured-image,
.ebj-story-card__image {
	position: relative;
	overflow: hidden;
	background-color: var(--ebj-off-white);
}

.ebj-story-card__image {
	aspect-ratio: 16 / 9;
	margin-bottom: 1rem;
}

.ebj-featured-image__img,
.ebj-story-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ------------------------------------------------------------------
   SHARED TYPOGRAPHY
   ------------------------------------------------------------------ */

.ebj-section-label {
	display: inline-block;
	margin-bottom: 0.625rem;
	color: var(--ebj-gold);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ebj-headline {
	font-family: var(--ebj-text-serif);
	font-weight: 700;
	line-height: 1.15;
	color: var(--ebj-navy);
}

.ebj-headline a {
	color: inherit;
	text-decoration: none;
}

.ebj-story-link:hover,
.ebj-story-link:focus,
.ebj-headline a:hover,
.ebj-headline a:focus {
	color: var(--ebj-gold);
}

.ebj-story-link:focus-visible,
.ebj-headline a:focus-visible {
	outline: 2px solid var(--ebj-gold);
	outline-offset: 2px;
}

.ebj-excerpt {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ebj-charcoal);
}

.ebj-dateline {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: var(--ebj-muted);
	letter-spacing: 0.02em;
}

.ebj-byline {
	font-size: 0.8125rem;
	color: var(--ebj-charcoal);
	font-weight: 500;
}

.ebj-meta-separator {
	color: var(--ebj-gold);
}

/* ------------------------------------------------------------------
   TOP STRIP
   ------------------------------------------------------------------ */

.ebj-top-strip {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--ebj-rule);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ebj-top-strip__edition,
.ebj-top-strip__flagship {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
}

.ebj-edition-label,
.ebj-flagship-label {
	color: var(--ebj-gold);
	font-weight: 700;
}

.ebj-edition-date {
	color: var(--ebj-muted);
}

.ebj-flagship-story {
	padding-left: 0.625rem;
	border-left: 2px solid var(--ebj-gold);
}

.ebj-flagship-link {
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}

.ebj-flagship-link:hover,
.ebj-flagship-link:focus {
	color: var(--ebj-gold);
}

/* ------------------------------------------------------------------
   LEAD STORY
   ------------------------------------------------------------------ */

.ebj-lead-story {
	padding-top: 2.75rem;
	padding-bottom: 2.5rem;
	background-color: var(--ebj-white);
}

.ebj-lead-story__article {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 3rem;
	align-items: start;
	position: relative;
	padding-bottom: 2rem;
	border-bottom: 4px solid var(--ebj-navy);
}

.ebj-lead-story__article::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 6rem;
	height: 4px;
	background-color: var(--ebj-gold);
}

.ebj-lead-story__content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ebj-headline--lead {
	font-size: clamp(2rem, 4.6vw, 3.35rem);
	margin-bottom: 1rem;
	max-width: 24ch;
}

.ebj-lead-story .ebj-standfirst {
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--ebj-charcoal);
	max-width: 55ch;
	margin-bottom: 1.25rem;
}

.ebj-lead-story__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.625rem;
	font-size: 0.8125rem;
}

.ebj-featured-image--lead {
	aspect-ratio: 16 / 10;
	border: 1px solid var(--ebj-rule);
}

/* ------------------------------------------------------------------
   SECONDARY LEADS
   ------------------------------------------------------------------ */

.ebj-secondary-leads {
	padding-top: 2rem;
	padding-bottom: 2.5rem;
	background-color: var(--ebj-white);
	border-top: 1px solid var(--ebj-rule);
}

.ebj-secondary-leads__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.ebj-story-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ebj-story-card--secondary {
	padding-top: 1.25rem;
	border-top: 3px solid var(--ebj-navy);
	position: relative;
}

.ebj-story-card--secondary::before {
	content: "";
	position: absolute;
	left: 0;
	top: -3px;
	width: 3rem;
	height: 3px;
	background-color: var(--ebj-gold);
}

.ebj-story-card--secondary .ebj-headline--secondary {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	margin-bottom: 0.625rem;
	line-height: 1.2;
}

.ebj-story-card--secondary .ebj-excerpt {
	margin: 0;
	max-width: 40ch;
}

/* ------------------------------------------------------------------
   SECTION RIBBONS
   ------------------------------------------------------------------ */

.ebj-section-ribbon {
	padding-top: 2.25rem;
	padding-bottom: 2.25rem;
	border-top: 1px solid var(--ebj-rule);
	background-color: var(--ebj-off-white);
}

.ebj-section-ribbon__header {
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--ebj-navy);
	position: relative;
}

.ebj-section-ribbon__header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 4rem;
	height: 2px;
	background-color: var(--ebj-gold);
}

.ebj-section-title {
	font-family: var(--ebj-text-serif);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--ebj-navy);
	letter-spacing: 0.01em;
}

.ebj-section-ribbon__stories {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.ebj-story-card--compact {
	padding: 1rem 0;
	border-bottom: 1px solid var(--ebj-rule-light);
}

.ebj-story-card--compact:last-child {
	border-bottom: none;
}

.ebj-headline--card {
	font-size: 1.0625rem;
	margin-bottom: 0.5rem;
	max-width: 38ch;
}

/* ------------------------------------------------------------------
   RESEARCH & DATA
   ------------------------------------------------------------------ */

.ebj-research-data {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	background-color: var(--ebj-white);
	border-top: 4px solid var(--ebj-navy);
	border-bottom: 4px solid var(--ebj-navy);
}

.ebj-research-data__header {
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--ebj-rule);
}

.ebj-research-data__feature {
	padding: 2rem;
	background-color: var(--ebj-off-white);
	border-left: 4px solid var(--ebj-gold);
}

.ebj-headline--research {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	max-width: 34ch;
}

/* ------------------------------------------------------------------
   EDITORS' PICKS
   ------------------------------------------------------------------ */

.ebj-editors-picks {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	background-color: var(--ebj-off-white);
}

.ebj-editors-picks__header {
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--ebj-rule);
}

.ebj-editors-picks__stories {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

/* ------------------------------------------------------------------
   NEWSLETTER
   ------------------------------------------------------------------ */

.ebj-newsletter {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	background-color: var(--ebj-navy);
	color: var(--ebj-white);
}

.ebj-newsletter__inner {
	max-width: 600px;
}

.ebj-newsletter__title {
	font-family: var(--ebj-text-serif);
	font-size: 1.625rem;
	font-weight: 700;
	color: var(--ebj-white);
	margin-bottom: 0.375rem;
}

.ebj-newsletter__description {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 1.25rem;
	max-width: 55ch;
}

.ebj-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1rem;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--ebj-gold);
}

.ebj-newsletter__input {
	flex: 1 1 16rem;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--ebj-white);
	font-size: 0.9375rem;
}

.ebj-newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.ebj-newsletter__input:focus {
	outline: 2px solid var(--ebj-gold);
	outline-offset: 2px;
}

.ebj-newsletter__button {
	flex: 0 0 auto;
	padding: 0.75rem 1.5rem;
	border: none;
	background-color: var(--ebj-gold);
	color: var(--ebj-navy);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
}

.ebj-newsletter__button:hover,
.ebj-newsletter__button:focus {
	background-color: #d4af5c;
}

.ebj-newsletter__input:disabled,
.ebj-newsletter__button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ebj-newsletter__note {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.68);
}

/* ------------------------------------------------------------------
   SINGLE ARTICLE
   ------------------------------------------------------------------ */

.ebj-article {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	padding: 2.5rem 1.5rem 3.5rem;
	color: var(--ebj-charcoal);
	font-family: var(--ebj-text-sans);
	line-height: 1.7;
	background-color: var(--ebj-white);
}

.ast-separate-container .ebj-article {
	padding: 2.5rem 1.5rem 3.5rem;
	border-bottom: none;
}

.ebj-article__header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--ebj-rule);
	position: relative;
}

.ebj-article__header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 4rem;
	height: 1px;
	background-color: var(--ebj-gold);
}

.ebj-article__category {
	margin-bottom: 0.625rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ebj-article__category a {
	color: var(--ebj-gold);
	text-decoration: none;
}

.ebj-article__category a:hover,
.ebj-article__category a:focus {
	color: var(--ebj-navy);
}

.ebj-article__title {
	font-family: var(--ebj-text-serif);
	font-size: clamp(1.875rem, 4.5vw, 2.875rem);
	font-weight: 700;
	line-height: 1.12;
	color: var(--ebj-navy);
	margin: 0 0 1rem;
}

.ebj-article__standfirst {
	font-size: 1.125rem;
	line-height: 1.45;
	color: var(--ebj-charcoal);
	margin: 0 0 1.25rem;
	max-width: 58ch;
}

.ebj-article__meta {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.8125rem;
	color: var(--ebj-muted);
}

.ebj-article__byline a {
	color: var(--ebj-navy);
	font-weight: 600;
	text-decoration: none;
}

.ebj-article__byline a:hover,
.ebj-article__byline a:focus {
	color: var(--ebj-gold);
}

.ebj-article__meta-separator {
	color: var(--ebj-gold);
}

.ebj-article__hero {
	margin: 0 0 2rem;
	padding: 0;
}

.ebj-article__hero-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background-color: var(--ebj-navy);
}

.ebj-article__hero-credit {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--ebj-muted);
	font-style: normal;
}

.ebj-article__body {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.ebj-article__body > * {
	margin-bottom: 1.25rem;
}

.ebj-article__body p {
	max-width: 65ch;
}

.ebj-article__body h2,
.ebj-article__body h3 {
	font-family: var(--ebj-text-serif);
	color: var(--ebj-navy);
	margin-top: 2rem;
	margin-bottom: 0.875rem;
	line-height: 1.2;
}

.ebj-article__body h2 {
	font-size: 1.375rem;
}

.ebj-article__body h3 {
	font-size: 1.125rem;
}

.ebj-article__body a {
	color: var(--ebj-navy);
	text-decoration: underline;
	text-decoration-color: var(--ebj-gold);
}

.ebj-article__body a:hover,
.ebj-article__body a:focus {
	color: var(--ebj-gold);
}

.ebj-article__footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ebj-rule);
}

.ebj-article__categories {
	font-size: 0.8125rem;
	color: var(--ebj-muted);
	margin-bottom: 1.5rem;
}

.ebj-article__categories a {
	color: var(--ebj-navy);
	text-decoration: none;
}

.ebj-article__categories a:hover,
.ebj-article__categories a:focus {
	color: var(--ebj-gold);
}

.ebj-article__navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	font-family: var(--ebj-text-sans);
}

.ebj-nav-previous,
.ebj-nav-next {
	display: flex;
	flex-direction: column;
}

.ebj-nav-next {
	text-align: right;
}

.ebj-nav-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ebj-gold);
	margin-bottom: 0.25rem;
}

.ebj-nav-title {
	font-family: var(--ebj-text-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ebj-navy);
	line-height: 1.25;
}

.ebj-article__navigation a {
	text-decoration: none;
}

.ebj-article__navigation a:hover .ebj-nav-title,
.ebj-article__navigation a:focus .ebj-nav-title {
	color: var(--ebj-gold);
}

.ebj-page-links {
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--ebj-muted);
}

.ebj-page-links a {
	color: var(--ebj-navy);
	margin: 0 0.25rem;
}

/* ------------------------------------------------------------------
   INLINE GRAPHICS
   ------------------------------------------------------------------ */

.ebj-figure {
	margin: 2rem 0;
	padding: 0;
	max-width: 100%;
}

.ebj-figure__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	background-color: var(--ebj-white);
}

.ebj-figure__caption {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--ebj-muted);
	line-height: 1.4;
}

/* ------------------------------------------------------------------
   ARCHIVE / CATEGORY PAGES
   ------------------------------------------------------------------ */

body.archive .ast-container,
body.category .ast-container {
	max-width: 1100px;
}

body.archive #primary.content-area,
body.category #primary.content-area {
	display: block;
	width: 100%;
	max-width: 100%;
	float: none;
	padding-left: 0;
	padding-right: 0;
}

body.archive #primary.content-area.ast-grid-3,
body.category #primary.content-area.ast-grid-3,
body.archive #primary.content-area [class*="ast-blog-layout-"],
body.category #primary.content-area [class*="ast-blog-layout-"] {
	display: block;
}

body.archive .ebj-archive-item.ast-grid-common-col,
body.category .ebj-archive-item.ast-grid-common-col,
body.archive .ebj-archive-item.ast-article-post,
body.category .ebj-archive-item.ast-article-post {
	width: 100%;
	max-width: 100%;
	float: none;
	flex: 0 0 auto;
	margin-left: 0;
	margin-right: 0;
}

.ebj-archive-header {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 1.5rem 1.25rem;
	border-bottom: 3px solid var(--ebj-navy);
	position: relative;
}

.ebj-archive-header::after {
	content: "";
	position: absolute;
	left: 1.5rem;
	bottom: -3px;
	width: 4rem;
	height: 3px;
	background-color: var(--ebj-gold);
}

.ebj-archive-title {
	font-family: var(--ebj-text-serif);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--ebj-navy);
	margin: 0;
}

.ebj-archive-description {
	margin-top: 0.625rem;
	font-size: 0.9375rem;
	color: var(--ebj-muted);
	max-width: 70ch;
}

.ebj-archive-list {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 1.5rem 1.5rem 2.5rem;
}

.ebj-archive-item {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--ebj-rule-light);
}

.ebj-archive-item:first-child {
	padding-top: 0.5rem;
}

.ebj-archive-item:last-child {
	border-bottom: none;
}

.ebj-archive-item__content {
	min-width: 0;
}

.ebj-story-card__image--archive {
	margin-bottom: 0;
}

.ebj-headline--archive {
	font-family: var(--ebj-text-serif);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ebj-navy);
	margin: 0 0 0.5rem;
}

.ebj-archive-empty {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding: 1.5rem 1.5rem 2.5rem;
	font-size: 0.9375rem;
	color: var(--ebj-muted);
}

body.archive .ebj-section-label a,
body.category .ebj-section-label a {
	color: var(--ebj-gold);
	text-decoration: none;
}

body.archive .ebj-section-label a:hover,
body.category .ebj-section-label a:hover,
body.archive .ebj-section-label a:focus,
body.category .ebj-section-label a:focus {
	color: var(--ebj-navy);
}

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.ebj-lead-story__article {
		gap: 2rem;
	}

	.ebj-secondary-leads__grid,
	.ebj-section-ribbon__stories,
	.ebj-editors-picks__stories {
		gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	.ebj-homepage > section,
	.ebj-archive-header,
	.ebj-archive-list,
	.ebj-archive-empty {
		max-width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ebj-mobile-nav__list {
		max-width: 100%;
	}

	.ast-container {
		max-width: 100%;
	}

	.ebj-top-strip {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.375rem;
	}

	.ebj-flagship-story {
		min-width: auto;
	}

	.ebj-lead-story {
		padding-top: 1.75rem;
		padding-bottom: 1.5rem;
	}

	.ebj-lead-story__article {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.ebj-headline--lead {
		font-size: clamp(1.75rem, 7vw, 2.25rem);
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.ebj-lead-story .ebj-standfirst {
		font-size: 1rem;
	}

	.ebj-secondary-leads__grid,
	.ebj-section-ribbon__stories,
	.ebj-editors-picks__stories {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.ebj-story-card--secondary {
		padding-top: 1rem;
	}

	.ebj-research-data__feature {
		padding: 1.5rem;
	}

	.ebj-newsletter__form {
		flex-direction: column;
	}

	.ebj-newsletter__input,
	.ebj-newsletter__button {
		width: 100%;
	}

	.ebj-article {
		padding: 1.75rem 1rem 2.5rem;
	}

	.ebj-article__title {
		font-size: clamp(1.625rem, 6vw, 2rem);
	}

	.ebj-article__standfirst {
		font-size: 1rem;
	}

	.ebj-article__navigation {
		grid-template-columns: 1fr;
	}

	.ebj-nav-next {
		text-align: left;
	}

	.ebj-archive-header::after {
		left: 1rem;
	}

	.ebj-archive-item {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.ebj-story-card__image--archive {
		max-width: 100%;
	}

	.ebj-headline--archive {
		font-size: 1.125rem;
	}
}
