/**
 * Aeon News – section head on category, topic and tag archives.
 *
 * Mobile first; breakpoints 768 / 1024. Colours come from the theme tokens, so every
 * publication gets its own accent.
 */

.aeon-section-head {
	--aeon-sh-ink: var(--aeon-ink, #222);
	--aeon-sh-muted: #5f6368;
	--aeon-sh-line: #e3e3e3;
	--aeon-sh-accent: var(--aeon-accent, #69043b);
	margin: 0 0 20px;
	padding: 12px 0 16px;
	border-top: 4px solid var(--aeon-sh-accent);
	border-bottom: 1px solid var(--aeon-sh-line);
}

.aeon-section-head__kicker {
	margin: 0 0 2px;
	font-family: var(--aeon-interactives-font, inherit);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aeon-sh-accent);
}

.aeon-section-head__kicker a {
	color: inherit;
	text-decoration: none;
}

.aeon-section-head__kicker a::after {
	content: " ›";
}

.aeon-section-head__kicker a:hover,
.aeon-section-head__kicker a:focus-visible {
	text-decoration: underline;
}

.aeon-section-head__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aeon-section-head__title {
	margin: 0;
	font-size: 36px;
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--aeon-sh-ink);
	overflow-wrap: anywhere;
}

.aeon-section-head__page {
	align-self: flex-end;
	padding-bottom: 6px;
	font-family: var(--aeon-interactives-font, inherit);
	font-size: 14px;
	color: var(--aeon-sh-muted);
	white-space: nowrap;
}

.aeon-section-head__rss {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: auto;
	border: 1px solid var(--aeon-sh-line);
	border-radius: 50%;
	color: var(--aeon-sh-muted);
	transition: color 0.15s, border-color 0.15s;
}

.aeon-section-head__rss:hover,
.aeon-section-head__rss:focus-visible {
	color: var(--aeon-sh-accent);
	border-color: currentColor;
}

.aeon-section-head__updated {
	margin: 6px 0 0;
	font-family: var(--aeon-interactives-font, inherit);
	font-size: 13px;
	color: var(--aeon-sh-muted);
}

.aeon-section-head__updated::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--aeon-trending-accent-color, var(--aeon-sh-accent));
	vertical-align: 1px;
}

.aeon-section-head__description {
	max-width: 62ch;
	margin-top: 8px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--aeon-sh-muted);
}

.aeon-section-head__description p {
	margin: 0 0 0.5em;
}

.aeon-section-head__description p:last-child {
	margin-bottom: 0;
}

.aeon-section-head__links {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	font-family: var(--aeon-interactives-font, inherit);
}

.aeon-section-head__links-label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--aeon-sh-muted);
}

/* One scrollable row on small screens; wraps from tablets up. */
.aeon-section-head__links ul {
	display: flex;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 2px 24px 2px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.aeon-section-head__links ul::-webkit-scrollbar {
	display: none;
}

.aeon-section-head__links li {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.aeon-section-head__links a {
	display: inline-block;
	padding: 5px 11px;
	border: 1px solid rgba(105, 4, 59, 0.3);
	border: 1px solid color-mix(in srgb, var(--aeon-sh-accent) 32%, transparent);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--aeon-sh-accent);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.aeon-section-head__links a:hover,
.aeon-section-head__links a:focus-visible {
	background: var(--aeon-sh-accent);
	border-color: var(--aeon-sh-accent);
	color: #fff;
}

@media (min-width: 768px) {
	.aeon-section-head {
		padding-top: 14px;
	}

	.aeon-section-head__title {
		font-size: 48px;
	}

	.aeon-section-head__links {
		align-items: baseline;
	}

	.aeon-section-head__links ul {
		flex-wrap: wrap;
		padding-right: 0;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (min-width: 1024px) {
	.aeon-section-head__title {
		font-size: 54px;
	}
}

/* The theme's dark mode. */
body.dark-mode .aeon-section-head {
	--aeon-sh-ink: #ececec;
	--aeon-sh-muted: #a8a8a8;
	--aeon-sh-line: #3a3a3a;
}

body.dark-mode .aeon-section-head__kicker,
body.dark-mode .aeon-section-head__links a {
	color: #f0d9e4;
	color: color-mix(in srgb, var(--aeon-sh-accent) 25%, #fff);
}

body.dark-mode .aeon-section-head__links a {
	border-color: #555;
}

body.dark-mode .aeon-section-head__links a:hover,
body.dark-mode .aeon-section-head__links a:focus-visible {
	background: #ececec;
	border-color: #ececec;
	color: #111;
}
