/**
 * YEBN 2026 — newsletter
 *
 * Loaded on the newsletter archive and on single issues.
 */

.yebn-issues,
.yebn-issuepage {
	max-width: var(--yebn-container);
	margin-inline: auto;
	padding-inline: var(--yebn-space-3);
	padding-block: var(--yebn-space-6) var(--yebn-space-6);
}

/* =========================================================================
 * Archive
 * ====================================================================== */

.yebn-issues__header {
	max-width: 60ch;
	margin-bottom: var(--yebn-space-6);
}

.yebn-issues__header h1 { margin: 0 0 var(--yebn-space-2); }

.yebn-issues__year {
	margin: var(--yebn-space-5) 0 var(--yebn-space-2);
	padding-bottom: var(--yebn-space-1);
	border-bottom: 1px solid var(--yebn-line);
	font-size: var(--yebn-fs-sm);
	font-weight: 600;
	letter-spacing: var(--yebn-ls-label);
	color: var(--yebn-muted);
	font-variant-numeric: tabular-nums;
}

.yebn-issues__year:first-child { margin-top: 0; }

.yebn-issue + .yebn-issue { border-top: 1px solid var(--yebn-line-soft); }

.yebn-issue__link {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: var(--yebn-space-3);
	align-items: start;
	padding: var(--yebn-space-3) var(--yebn-space-2);
	text-decoration: none;
	border-radius: var(--yebn-radius);
	transition: background-color var(--yebn-dur-fast) var(--yebn-ease);
}

@media (min-width: 700px) {
	.yebn-issue__link { grid-template-columns: 128px minmax(0, 1fr); }
}

.yebn-issue__link:hover,
.yebn-issue__link:focus-visible { background-color: var(--yebn-surface); }

.yebn-issue__cover {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid var(--yebn-line);
	border-radius: var(--yebn-radius);
	background-color: var(--yebn-surface);
}

.yebn-issue__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* An issue with no cover still gets something with weight to it. */
.yebn-issue__coverfallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background-color: var(--yebn-navy);
	color: var(--yebn-paper);
	font-family: var(--yebn-font-display);
	font-size: 2rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.yebn-issue__text { display: block; }

.yebn-issue__label {
	display: block;
	font-family: var(--yebn-font-display);
	font-size: var(--yebn-fs-xs);
	font-weight: 600;
	letter-spacing: var(--yebn-ls-label);
	text-transform: uppercase;
	color: var(--yebn-gold-text);
	margin-bottom: 4px;
}

.yebn-issue__title {
	display: block;
	font-family: var(--yebn-font-display);
	font-size: var(--yebn-fs-xl);
	font-weight: 600;
	line-height: 1.2;
	color: var(--yebn-navy);
	margin-bottom: 6px;
}

.yebn-issue__summary {
	display: block;
	color: var(--yebn-muted);
	font-size: var(--yebn-fs-sm);
	max-width: 62ch;
	margin-bottom: 6px;
}

.yebn-issue__date {
	display: block;
	font-size: var(--yebn-fs-xs);
	color: var(--yebn-muted);
	font-variant-numeric: tabular-nums;
}

/* =========================================================================
 * Single issue
 * ====================================================================== */

.yebn-issuepage {
	max-width: 900px;
}

.yebn-issuepage__masthead {
	padding-bottom: var(--yebn-space-3);
	border-bottom: 2px solid var(--yebn-navy);
	margin-bottom: var(--yebn-space-4);
}

.yebn-issuepage__masthead .yebn-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.yebn-issuepage__label {
	margin: 0 0 var(--yebn-space-1);
	font-family: var(--yebn-font-display);
	font-size: var(--yebn-fs-sm);
	font-weight: 600;
	letter-spacing: var(--yebn-ls-label);
	text-transform: uppercase;
	color: var(--yebn-gold-text);
	font-variant-numeric: tabular-nums;
}

.yebn-issuepage__title { margin: 0 0 var(--yebn-space-2); }

.yebn-issuepage__standfirst {
	margin: 0 0 var(--yebn-space-2);
	font-size: var(--yebn-fs-lg);
	line-height: 1.5;
	color: var(--yebn-muted);
	max-width: 60ch;
}

.yebn-issuepage__date {
	margin: 0;
	font-size: var(--yebn-fs-xs);
	color: var(--yebn-muted);
	font-variant-numeric: tabular-nums;
}

.yebn-issuepage__cover {
	margin: 0 0 var(--yebn-space-5);
	border-radius: var(--yebn-radius);
	overflow: hidden;
}

.yebn-issuepage__cover img { display: block; width: 100%; height: auto; }

/* Sections inside an issue: each h2 gets a rule above it, so a run of short
   snippets reads as separate items rather than one long column. */
.yebn-issuepage__body > h2 {
	margin-top: var(--yebn-space-6);
	padding-top: var(--yebn-space-2);
	border-top: 1px solid var(--yebn-line);
	font-size: var(--yebn-fs-2xl);
}

.yebn-issuepage__body > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.yebn-issuepage__body > p,
.yebn-issuepage__body > ul,
.yebn-issuepage__body > ol {
	max-width: min(var(--yebn-measure), var(--yebn-measure-px));
}

.yebn-issuepage__nav {
	display: grid;
	gap: var(--yebn-space-2);
	margin-top: var(--yebn-space-6);
	padding-top: var(--yebn-space-4);
	border-top: 1px solid var(--yebn-line);
}

@media (min-width: 700px) {
	.yebn-issuepage__nav { grid-template-columns: 1fr 1fr; }
	.yebn-issuepage__next { text-align: right; }
}

.yebn-issuepage__nav a {
	display: block;
	padding: var(--yebn-space-2);
	border: 1px solid var(--yebn-line);
	border-radius: var(--yebn-radius);
	text-decoration: none;
}

.yebn-issuepage__nav a:hover { border-color: var(--yebn-navy); }

.yebn-issuepage__nav span {
	display: block;
	font-size: var(--yebn-fs-xs);
	letter-spacing: var(--yebn-ls-label);
	text-transform: uppercase;
	color: var(--yebn-gold-text);
	margin-bottom: 2px;
}

.yebn-issuepage__nav strong {
	font-family: var(--yebn-font-display);
	font-weight: 600;
	color: var(--yebn-navy);
}

/* =========================================================================
 * Subscribe strip
 * ====================================================================== */

.yebn-subscribe {
	margin-inline: calc(50% - 50vw);
	padding-inline: max(var(--yebn-space-3), calc(50vw - var(--yebn-container) / 2));
	padding-block: var(--yebn-space-6);
	background-color: var(--yebn-navy);
	color: var(--yebn-paper);
}

.yebn-subscribe__inner {
	display: grid;
	gap: var(--yebn-space-4);
	max-width: var(--yebn-container);
	margin-inline: auto;
}

@media (min-width: 860px) {
	.yebn-subscribe__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
		gap: var(--yebn-space-6);
		align-items: center;
	}
}

.yebn-subscribe__text h2 {
	margin: 0 0 var(--yebn-space-1);
	color: var(--yebn-paper);
	font-size: var(--yebn-fs-2xl);
}

.yebn-subscribe__text p {
	margin: 0;
	color: rgba(255, 251, 243, 0.82);
	max-width: 52ch;
}

.yebn-subscribe__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--yebn-space-1);
}

.yebn-subscribe__email {
	flex: 1 1 200px;
	min-width: 0;
	padding: 13px 14px;
	font-family: var(--yebn-font-body);
	font-size: var(--yebn-fs-base);
	color: var(--yebn-ink);
	background-color: var(--yebn-paper);
	border: 1px solid var(--yebn-paper);
	border-radius: var(--yebn-radius);
}

.yebn-subscribe__form .yebn-btn {
	background-color: var(--yebn-gold);
	border-color: var(--yebn-gold);
	color: var(--yebn-ink);
	flex: none;
}

.yebn-subscribe__form .yebn-btn:hover {
	background-color: var(--yebn-paper);
	border-color: var(--yebn-paper);
	color: var(--yebn-navy);
}

.yebn-subscribe__privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: var(--yebn-space-2);
	font-size: var(--yebn-fs-xs);
	line-height: 1.45;
	color: rgba(255, 251, 243, 0.78);
}

.yebn-subscribe__privacy input { margin-top: 3px; flex: none; }

.yebn-subscribe__privacy a { color: var(--yebn-paper); }

/* =========================================================================
 * Coming up
 * ====================================================================== */

.yebn-issuepage__events {
	padding-block: var(--yebn-space-6);
	background-color: var(--yebn-surface);
	margin-inline: calc(50% - 50vw);
	padding-inline: max(var(--yebn-space-3), calc(50vw - var(--yebn-container) / 2));
}

.yebn-issuepage__eventsinner {
	max-width: var(--yebn-container);
	margin-inline: auto;
}

.yebn-issuepage__eventsinner h2 {
	margin: 0 0 var(--yebn-space-4);
	font-size: var(--yebn-fs-xl);
}
