/* ==========================================================================
   HPN theme styles
   Colours and fonts come from theme.json presets, with fallbacks.
   ========================================================================== */

:root {
	--hpn-brand: var(--wp--preset--color--brand, #3dae2b);
	--hpn-brand-dark: var(--wp--preset--color--brand-dark, #1f7a1a);
	--hpn-accent: var(--wp--preset--color--accent, #d7282f);
	--hpn-ink: var(--wp--preset--color--ink, #16191d);
	--hpn-muted: var(--wp--preset--color--muted, #5b6470);
	--hpn-line: var(--wp--preset--color--line, #e3e6ea);
	--hpn-surface: var(--wp--preset--color--surface, #f5f7f8);
	--hpn-white: #fff;

	--hpn-font-sans: var(--wp--preset--font-family--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--hpn-font-serif: var(--wp--preset--font-family--serif, Charter, Cambria, Georgia, serif);

	--hpn-container: 1200px;
	--hpn-narrow: 760px;
	--hpn-gutter: clamp(16px, 4vw, 32px);
	--hpn-gap: clamp(20px, 2.5vw, 32px);
	--hpn-radius: 6px;
	--hpn-sidebar: 300px;
}

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--hpn-white);
	color: var(--hpn-ink);
	font-family: var(--hpn-font-sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--hpn-brand-dark);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--hpn-ink);
}

:focus-visible {
	outline: 3px solid var(--hpn-brand);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--hpn-white);
	color: var(--hpn-ink);
	font-weight: 700;
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
}

.container {
	width: 100%;
	max-width: calc(var(--hpn-container) + 2 * var(--hpn-gutter));
	margin-inline: auto;
	padding-inline: var(--hpn-gutter);
}

.container--narrow {
	max-width: calc(var(--hpn-narrow) + 2 * var(--hpn-gutter));
}

.button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: var(--hpn-radius);
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--hpn-ink);
	color: var(--hpn-white);
}

.button--outline {
	border: 2px solid var(--hpn-brand-dark);
	background: transparent;
	color: var(--hpn-brand-dark);
}

.button--outline:hover {
	border-color: var(--hpn-brand-dark);
	background: var(--hpn-brand-dark);
}

.button--light {
	background: var(--hpn-white);
	color: var(--hpn-brand-dark);
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.15);
}

.button--light:hover {
	background: var(--hpn-ink);
	color: var(--hpn-white);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid #c4cad1;
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
	color: var(--hpn-ink);
	font: inherit;
}

/* Header
   ========================================================================== */

.site-header {
	border-top: 4px solid var(--hpn-brand);
	background: var(--hpn-white);
}

.topbar {
	background: var(--hpn-ink);
	color: #c9cfd6;
	font-size: 0.8125rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 34px;
}

.topbar__date {
	margin: 0;
}

.topbar__end {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.topbar__menu {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__menu a {
	color: var(--hpn-white);
	text-decoration: none;
}

.topbar__menu a:hover,
.topbar__menu a:focus-visible {
	color: var(--hpn-brand);
	text-decoration: underline;
}

.site-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hpn-gap);
	padding-block: 16px;
}

.custom-logo {
	width: auto;
	max-height: 56px;
}

.site-title {
	color: var(--hpn-ink);
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
}

.site-description {
	margin: 0;
	color: var(--hpn-muted);
	font-size: 0.875rem;
}

.site-nav {
	position: relative;
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
}

.site-nav__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-height: 48px;
}

.nav-toggle,
.search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-toggle {
	margin-left: auto;
	padding-inline: 0.75rem;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.nav-toggle__icon {
	position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__icon::before {
	top: -6px;
}

.nav-toggle__icon::after {
	top: 6px;
}

.nav-open .nav-toggle__icon {
	background: transparent;
}

.nav-open .nav-toggle__icon::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle__icon::after {
	transform: translateY(-6px) rotate(-45deg);
}

.site-nav .menu,
.site-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu {
	display: none;
	order: 3;
	width: 100%;
	padding-bottom: 0.75rem;
}

.nav-open .site-nav .menu {
	display: block;
}

.site-nav .menu a {
	display: block;
	padding: 0.6rem 0;
	color: var(--hpn-white);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.site-nav .sub-menu {
	padding-left: 1rem;
	border-left: 2px solid rgb(255 255 255 / 0.25);
}

.site-nav .sub-menu a {
	font-weight: 400;
}

/* Menu item highlight: add "menu-highlight" (white pill) or "menu-highlight-red"
   (HPN red pill) in the item's CSS Classes field (Appearance → Menus → Screen
   Options → CSS Classes). */
.site-nav .menu > li.menu-highlight > a,
.site-nav .menu > li.menu-highlight-red > a {
	display: inline-block;
	margin: 0.35rem 0;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: var(--hpn-white);
	color: var(--hpn-brand-dark);
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav .menu > li.menu-highlight-red > a {
	background: var(--hpn-accent);
	color: var(--hpn-white);
}

.site-nav .menu > li.menu-highlight > a:hover {
	background: var(--hpn-ink);
	color: var(--hpn-white);
	text-decoration: none;
}

.site-nav .menu > li.menu-highlight-red > a:hover {
	background: var(--hpn-white);
	color: var(--hpn-accent);
	text-decoration: none;
}

/* Links that open in a new tab get a small arrow, so readers know they're leaving. */
.site-nav .menu a[target="_blank"]::after,
.site-footer .menu a[target="_blank"]::after {
	content: "\2197";
	display: inline-block;
	margin-left: 0.3em;
	font-size: 0.85em;
	text-decoration: none;
}

/* Header search: slides in from the right over the menu bar. */
.site-search {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 60;
	height: 48px;
	overflow: hidden; /* The form waits off to the right; don't let it widen the page on phones. */
	background: var(--hpn-brand-dark);
	visibility: hidden;
	clip-path: inset(0 0 0 100%);
	transition: clip-path 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}

.site-search.is-open {
	visibility: visible;
	clip-path: inset(0);
	transition: clip-path 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.site-search__form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 100%;
	opacity: 0;
	transform: translateX(32px);
	transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-search.is-open .site-search__form {
	opacity: 1;
	transform: none;
}

.site-search__field {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
}

.site-search .site-search__icon {
	position: absolute;
	z-index: 1;
	left: 0.85rem;
	color: var(--hpn-muted);
	pointer-events: none;
}

.site-search .site-search__input {
	width: 100%;
	height: 36px;
	padding: 0 1rem 0 2.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--hpn-white);
	box-shadow: none;
	color: var(--hpn-ink);
	font: inherit;
	font-size: 0.9375rem;
	-webkit-appearance: none;
	appearance: none;
}

.site-search .site-search__input::-webkit-search-cancel-button {
	display: none;
}

.site-search .site-search__input:focus {
	outline: 3px solid rgb(255 255 255 / 0.45);
	outline-offset: 1px;
}

.site-search .site-search__submit,
.site-search .site-search__close {
	display: inline-grid;
	flex: none;
	place-items: center;
	height: 36px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: none;
	color: var(--hpn-white);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.site-search .site-search__submit {
	padding: 0 1rem;
	border-color: rgb(255 255 255 / 0.5);
}

.site-search .site-search__close {
	width: 36px;
}

.site-search .site-search__submit:hover,
.site-search .site-search__close:hover {
	background: rgb(255 255 255 / 0.14);
}

.site-search__submit:focus-visible,
.site-search__close:focus-visible {
	outline: 2px solid var(--hpn-white);
	outline-offset: 1px;
}

/* Phones: the keyboard's Search key submits. */
@media (max-width: 599px) {
	.site-search__submit {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-search,
	.site-search.is-open,
	.site-search__form {
		transition: none;
	}
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 640px;
}

.search-form__input {
	flex: 1;
}

@media (min-width: 960px) {
	.custom-logo {
		max-height: 80px;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav .menu {
		display: flex;
		flex-wrap: wrap;
		order: 0;
		width: auto;
		padding: 0;
	}

	.site-nav .menu > li {
		position: relative;
	}

	.site-nav .menu > li > a {
		padding: 0.85rem 0.8rem;
	}

	.site-nav .menu > li:first-child > a {
		padding-left: 0;
	}

	.site-nav .menu > li.menu-highlight,
	.site-nav .menu > li.menu-highlight-red {
		display: flex;
		align-items: center;
		margin-left: 0.4rem;
	}

	.site-nav .menu > li.menu-highlight > a,
	.site-nav .menu > li.menu-highlight-red > a {
		margin: 0;
		padding: 0.4rem 0.95rem;
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 50;
		min-width: 220px;
		padding: 0.5rem 0;
		border: 1px solid var(--hpn-line);
		border-radius: 0 0 var(--hpn-radius) var(--hpn-radius);
		background: var(--hpn-white);
		box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
		visibility: hidden;
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	}

	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.site-nav .sub-menu a {
		padding: 0.5rem 1rem;
		color: var(--hpn-ink);
	}
}

/* Layout
   ========================================================================== */

.site-main {
	padding-block: clamp(24px, 4vw, 40px);
}

.layout {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
	.has-sidebar .layout {
		grid-template-columns: minmax(0, 1fr) var(--hpn-sidebar);
	}
}

/* No sidebar widgets: centre the article column. */
.single:not(.has-sidebar) .layout {
	max-width: 840px;
	margin-inline: auto;
}

.section-title {
	position: relative;
	margin-bottom: 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--hpn-line);
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 56px;
	height: 3px;
	background: var(--hpn-brand);
}

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

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px solid var(--hpn-line);
	margin-bottom: 1.25rem;
}

.section-header .section-title {
	margin-bottom: 0;
	border-bottom: 0;
}

.section-header__more {
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.label {
	display: inline-block;
	margin-bottom: 0.4rem;
	color: var(--hpn-brand-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.label:hover {
	color: var(--hpn-ink);
}

/* Cards
   ========================================================================== */

.card-grid {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

@media (min-width: 640px) {
	.card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.has-sidebar .layout .card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.has-sidebar .layout .card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

.card__media,
.list-item__media {
	display: block;
	overflow: hidden;
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

.card__media {
	aspect-ratio: 16 / 9;
	margin-bottom: 0.85rem;
}

.card__media img,
.list-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card:hover .card__media img,
.list-item:hover .list-item__media img {
	transform: scale(1.03);
}

.thumb-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--hpn-brand-dark), var(--hpn-brand));
	color: rgb(255 255 255 / 0.9);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.card__title {
	margin-bottom: 0.4rem;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.card__title a,
.list-item__title a {
	color: var(--hpn-ink);
	text-decoration: none;
}

.card__title a:hover,
.list-item__title a:hover {
	color: var(--hpn-brand-dark);
	text-decoration: underline;
}

.card__excerpt {
	margin-bottom: 0.5rem;
	color: var(--hpn-muted);
	font-size: 0.9375rem;
}

.card__meta {
	margin: 0;
	color: var(--hpn-muted);
	font-size: 0.8125rem;
}

.card--lead .card__title {
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.15;
}

.card--lead .card__excerpt {
	font-size: 1.0625rem;
}

.list-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 0.9rem;
	align-items: start;
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--hpn-line);
}

.list-item:first-child {
	padding-top: 0;
}

.list-item:last-child {
	border-bottom: 0;
}

.list-item__media {
	aspect-ratio: 1;
}

.list-item__title {
	margin-bottom: 0.25rem;
	font-size: 0.9875rem;
	line-height: 1.3;
}

.list-item .label {
	margin-bottom: 0.2rem;
	font-size: 0.6875rem;
}

/* Homepage
   ========================================================================== */

.site-main--home {
	padding-block: 0;
}

.home-block {
	padding-block: clamp(36px, 5vw, 64px);
}

.home-section {
	margin-top: clamp(32px, 5vw, 56px);
}

.site-main--home .home-section {
	margin-top: 0;
}

.home-section--grid {
	background: var(--hpn-surface);
}

.home-section--grid .card__media {
	background: var(--hpn-white);
}

.mini-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mini-title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--hpn-accent);
}

.more-link-wrap {
	margin-top: var(--hpn-gap);
	text-align: center;
}

/* Trending strip */

.trending {
	border-bottom: 1px solid var(--hpn-line);
	background: var(--hpn-white);
}

.trending__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: 0.7rem;
}

.trending__label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex: none;
	color: var(--hpn-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.trending__label::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgb(215 40 47 / 0.15);
}

.trending__list {
	display: flex;
	flex: 1;
	min-width: 0; /* Scroll inside the row instead of widening the page on phones. */
	gap: 0.5rem;
	margin: 0;
	padding: 0.15rem 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
	mask-image: linear-gradient(to right, #000 92%, transparent);
}

.trending__list::-webkit-scrollbar {
	display: none;
}

.trending__list a {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--hpn-line);
	border-radius: 999px;
	color: var(--hpn-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.trending__list a:hover {
	border-color: var(--hpn-brand-dark);
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
}

/* Hero */

.home-hero {
	padding-block: clamp(20px, 3vw, 32px) clamp(36px, 5vw, 56px);
	background: linear-gradient(to bottom, var(--hpn-surface), var(--hpn-white));
}

.home-hero__grid {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
	.home-hero__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: stretch;
	}
}

.home-hero__top {
	padding: 1.25rem 1.25rem 0.5rem;
	border-top: 3px solid var(--hpn-brand);
	border-radius: 0 0 var(--hpn-radius) var(--hpn-radius);
	background: var(--hpn-white);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.05);
}

/* Lead story: headline over the image */

.card--overlay {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: var(--hpn-radius);
	background: var(--hpn-ink);
	isolation: isolate;
}

.card--overlay > * {
	grid-area: 1 / 1;
}

.card--overlay .card__media {
	aspect-ratio: auto;
	height: 100%;
	min-height: 440px;
	margin: 0;
	border-radius: 0;
}

.card--overlay .card__body {
	z-index: 1;
	align-self: end;
	padding: clamp(20px, 3.5vw, 40px);
	background: linear-gradient(to top, rgb(10 14 18 / 0.92) 0%, rgb(10 14 18 / 0.7) 55%, transparent 100%);
	color: var(--hpn-white);
}

.card--overlay .label {
	position: relative;
	z-index: 2;
	margin-bottom: 0.75rem;
	padding: 0.3rem 0.6rem;
	border-radius: 3px;
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
}

.card--overlay .card__title {
	max-width: 30ch;
	font-size: clamp(1.5rem, 3.2vw, 2.375rem);
	line-height: 1.12;
}

.card--overlay .card__title a {
	color: var(--hpn-white);
}

/* Whole card is clickable via the title link. */
.card--overlay .card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card--overlay .card__title a:hover {
	color: var(--hpn-white);
}

.card--overlay .card__excerpt {
	max-width: 60ch;
	color: rgb(255 255 255 / 0.85);
}

.card--overlay .card__meta {
	color: rgb(255 255 255 / 0.75);
}

@media (max-width: 599px) {
	.card--overlay .card__media {
		min-height: 400px;
	}

	.card--overlay .card__excerpt {
		display: none;
	}
}

@media (min-width: 960px) {
	.card--overlay .card__media {
		min-height: 520px;
	}
}

/* Numbered lists (Top stories, Most read) */

.numbered-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hpn-rank;
}

.numbered-list > li {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: 0.5rem;
	counter-increment: hpn-rank;
	border-bottom: 1px solid var(--hpn-line);
}

.numbered-list > li:last-child {
	border-bottom: 0;
}

.numbered-list > li::before {
	content: counter(hpn-rank);
	padding-top: 0.85rem;
	color: var(--hpn-brand);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
}

.numbered-list .list-item {
	padding-block: 0.85rem;
	border-bottom: 0;
}

/* Rank shown as a badge on the thumbnail's corner. */
.numbered-list--thumbs > li {
	position: relative;
	grid-template-columns: minmax(0, 1fr);
}

.numbered-list--thumbs > li::before {
	position: absolute;
	top: 0.85rem;
	left: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.35rem;
	border-radius: var(--hpn-radius) 0 var(--hpn-radius) 0;
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
	font-size: 0.9375rem;
}

.numbered-list--thumbs > li::before {
	top: 0.7rem;
}

.numbered-list--thumbs .list-item {
	grid-template-columns: 84px minmax(0, 1fr);
	padding-block: 0.7rem;
}

.numbered-list--thumbs .list-item__title {
	font-size: 0.9375rem;
}

/* Lead story stretches to the height of the Top stories column. */
@media (min-width: 960px) {
	.home-hero__lead {
		display: grid;
	}

	.home-hero__lead .card--overlay {
		height: 100%;
	}
}

/* Narrower sidebar panel: smaller thumbnail and badge. */
.numbered-list--compact.numbered-list--thumbs .list-item {
	grid-template-columns: 68px minmax(0, 1fr);
	gap: 0.75rem;
}

.numbered-list--compact.numbered-list--thumbs > li::before {
	min-width: 1.5rem;
	height: 1.5rem;
	font-size: 0.8125rem;
}

.numbered-list--compact.numbered-list--thumbs .list-item__title {
	font-size: 0.875rem;
	text-wrap: pretty;
}

.home-aside .panel {
	padding-inline: 1rem;
}

.numbered-list--compact .list-item__title {
	font-size: 0.9375rem;
}

.list-item--text {
	grid-template-columns: minmax(0, 1fr);
}

/* Latest + Most read */

.home-split {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
	.home-split {
		grid-template-columns: minmax(0, 1fr) var(--hpn-sidebar);
	}

	.home-split .card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.home-split .card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.home-latest,
.home-aside {
	min-width: 0;
}

.panel {
	margin-bottom: 2rem;
	padding: 1.25rem 1.25rem 0.5rem;
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

.home-aside .sidebar {
	position: static;
}

/* Call-to-action band */

.cta-band {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 6vw, 72px);
	background: linear-gradient(120deg, #17611a 0%, var(--hpn-brand-dark) 55%, #2a8f23 100%);
	color: var(--hpn-white);
}

.cta-band__cross {
	position: absolute;
	top: 50%;
	right: -40px;
	width: clamp(220px, 30vw, 380px);
	color: rgb(255 255 255 / 0.12);
	transform: translateY(-50%);
	pointer-events: none;
}

.cta-band__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.cta-band__text {
	max-width: 640px;
}

.cta-band__eyebrow {
	margin-bottom: 0.5rem;
	color: rgb(255 255 255 / 0.8);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cta-band__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.cta-band__description {
	margin: 0;
	color: rgb(255 255 255 / 0.9);
	font-size: 1.0625rem;
}

/* Feature section: one big story + list */

.section-feature {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.section-feature {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}
}

.card--feature .card__title {
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.2;
}

.section-feature__list .list-item {
	grid-template-columns: 112px minmax(0, 1fr);
}

/* Latest digital magazine */

.home-magazine {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 6vw, 72px);
	background: linear-gradient(120deg, #17611a 0%, var(--hpn-brand-dark) 55%, #2a8f23 100%);
	color: var(--hpn-white);
}

.home-magazine__cross {
	position: absolute;
	top: 50%;
	right: -60px;
	width: clamp(260px, 34vw, 440px);
	color: rgb(255 255 255 / 0.1);
	transform: translateY(-50%);
	pointer-events: none;
}

.home-magazine__inner {
	position: relative;
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
	.home-magazine__inner {
		grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	}
}

@media (min-width: 1100px) {
	.home-magazine__inner {
		grid-template-columns: minmax(200px, 270px) minmax(0, 1fr) minmax(0, 330px);
	}
}

.home-magazine__cover {
	display: block;
	max-width: 260px;
	transform: rotate(-2deg);
	transition: transform 0.2s ease;
}

.home-magazine__cover:hover {
	transform: rotate(0) translateY(-4px);
}

.home-magazine__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 210 / 297;
	object-fit: cover;
	border-radius: 3px;
	background: var(--hpn-white);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
}

.home-magazine__img--empty {
	display: grid;
	place-items: center;
	color: var(--hpn-brand-dark);
	font-size: 2rem;
	font-weight: 800;
}

.home-magazine__eyebrow {
	margin-bottom: 0.5rem;
	color: rgb(255 255 255 / 0.8);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home-magazine__title {
	margin-bottom: 0.35rem;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.home-magazine__title a {
	color: var(--hpn-white);
	text-decoration: none;
}

.home-magazine__title a:hover {
	text-decoration: underline;
}

.home-magazine__label {
	margin-bottom: 0.75rem;
	color: rgb(255 255 255 / 0.85);
	font-weight: 600;
}

.home-magazine__summary {
	max-width: 52ch;
	color: rgb(255 255 255 / 0.9);
}

.home-magazine__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
}

.button--ghost {
	border: 2px solid rgb(255 255 255 / 0.7);
	background: transparent;
	color: var(--hpn-white);
}

.button--ghost:hover {
	border-color: var(--hpn-white);
	background: rgb(255 255 255 / 0.12);
	color: var(--hpn-white);
}

.home-magazine__previous {
	padding: 1.1rem 1.1rem 0.9rem;
	border-radius: var(--hpn-radius);
	background: rgb(0 0 0 / 0.16);
}

@media (min-width: 720px) and (max-width: 1099px) {
	.home-magazine__previous {
		grid-column: 1 / -1;
	}
}

.home-magazine__previous-title {
	margin-bottom: 0.75rem;
	color: rgb(255 255 255 / 0.85);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home-magazine__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-magazine__list a {
	display: block;
	color: rgb(255 255 255 / 0.9);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.home-magazine__list .home-magazine__img {
	margin-bottom: 0.4rem;
	box-shadow: 0 6px 16px rgb(0 0 0 / 0.3);
	transition: transform 0.2s ease;
}

.home-magazine__list a:hover .home-magazine__img {
	transform: translateY(-3px);
}

.home-magazine__all {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--hpn-white);
	font-size: 0.875rem;
	font-weight: 600;
}

.home-magazine__all:hover {
	color: var(--hpn-white);
}

/* Newsletter sign-up */

.home-newsletter__card {
	display: grid;
	gap: clamp(20px, 4vw, 48px);
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--hpn-line);
	border-top: 4px solid var(--hpn-brand);
	border-radius: var(--hpn-radius);
	background: linear-gradient(135deg, var(--hpn-surface), var(--hpn-white));
}

@media (min-width: 900px) {
	.home-newsletter__card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	}
}

.home-newsletter__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
}

.home-newsletter__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-newsletter__text {
	color: var(--hpn-muted);
	font-size: 1.0625rem;
}

.home-newsletter__points {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.home-newsletter__points li::before {
	content: "✓";
	margin-right: 0.4rem;
	color: var(--hpn-brand-dark);
}

.home-newsletter__form {
	padding: clamp(18px, 3vw, 28px);
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 10px 30px rgb(0 0 0 / 0.06);
}

/* Listings
   ========================================================================== */

.listing-header {
	margin-bottom: var(--hpn-gap);
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--hpn-brand);
}

.listing-header__title {
	margin-bottom: 0.25rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.listing-header__description,
.listing-header__page {
	color: var(--hpn-muted);
}

.listing-header__description p:last-child {
	margin-bottom: 0;
}

.listing-header .search-form {
	margin-top: 1rem;
}

.pagination {
	margin-top: calc(var(--hpn-gap) * 1.5);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
	color: var(--hpn-ink);
	font-weight: 600;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--hpn-brand-dark);
	color: var(--hpn-brand-dark);
}

.pagination .page-numbers.current {
	border-color: var(--hpn-brand-dark);
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
}

.pagination .dots {
	border: 0;
}

/* Load more (replaces the pagination when JavaScript runs) */
.load-more {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	min-height: 3rem;
	margin-top: calc(var(--hpn-gap) * 1.5);
	text-align: center;
}

.load-more[hidden] {
	display: none;
}

.load-more__spinner {
	display: none;
	width: 28px;
	height: 28px;
	border: 3px solid var(--hpn-line);
	border-top-color: var(--hpn-brand-dark);
	border-radius: 50%;
	animation: hpn-spin 0.8s linear infinite;
}

.load-more.is-loading .load-more__spinner {
	display: block;
}

.load-more.is-loading .load-more__button {
	display: none;
}

.load-more__end {
	margin: 0;
	color: var(--hpn-muted);
	font-size: 0.875rem;
}

@keyframes hpn-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.load-more__spinner {
		animation-duration: 2s;
	}
}

/* Article
   ========================================================================== */

.entry {
	min-width: 0;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	color: var(--hpn-muted);
	font-size: 0.8125rem;
}

.breadcrumbs li + li::before {
	content: "›";
	margin-right: 0.35rem;
}

.breadcrumbs a {
	color: var(--hpn-muted);
}

.entry-header {
	max-width: var(--hpn-narrow);
	margin-bottom: 1.5rem;
}

.entry-title {
	font-size: clamp(1.75rem, 4vw, 2.625rem);
	line-height: 1.12;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	color: var(--hpn-muted);
	font-size: 0.875rem;
}

.entry-media {
	margin: 0 0 2rem;
}

.entry-media img {
	width: 100%;
	border-radius: var(--hpn-radius);
}

.entry-media figcaption,
.wp-caption-text,
.wp-element-caption {
	margin-top: 0.5rem;
	color: var(--hpn-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.entry-content {
	max-width: var(--hpn-narrow);
	font-family: var(--hpn-font-serif);
	font-size: 1.125rem;
	line-height: 1.7;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-block: 0 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.75em;
	font-family: var(--hpn-font-sans);
}

.entry-content h2 {
	font-size: 1.5rem;
}

.entry-content h3 {
	font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 4px solid var(--hpn-brand);
	color: #333a42;
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--hpn-font-sans);
	font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
	padding: 0.6em 0.75em;
	border: 1px solid var(--hpn-line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--hpn-surface);
}

.entry-content img {
	border-radius: 4px;
}

.entry-content figure,
.wp-caption {
	max-width: 100%;
	margin-inline: 0;
}

.entry-content iframe {
	display: block;
	border: 0;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

@media (max-width: 599px) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
	}
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.page-links {
	display: flex;
	gap: 0.5rem;
	font-family: var(--hpn-font-sans);
}

.entry-footer {
	max-width: var(--hpn-narrow);
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--hpn-line);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.entry-tags a {
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: var(--hpn-surface);
	color: var(--hpn-ink);
	font-size: 0.8125rem;
	text-decoration: none;
}

.entry-tags a:hover {
	background: var(--hpn-line);
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.share__title {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share__link {
	display: inline-block;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
	color: var(--hpn-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.share__link:hover {
	border-color: var(--hpn-brand-dark);
	color: var(--hpn-brand-dark);
}

.after-content {
	margin-top: 2rem;
}

.post-navigation {
	margin-top: 2.5rem;
}

.post-navigation .nav-links {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
	color: var(--hpn-ink);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--hpn-brand-dark);
}

.post-nav__label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--hpn-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.post-nav__title {
	font-weight: 600;
	line-height: 1.35;
}

.related {
	margin-top: 3rem;
}

/* Article page (single post)
   ========================================================================== */

.reading-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: 3px;
	pointer-events: none;
}

.reading-progress__bar {
	display: block;
	height: 100%;
	background: var(--hpn-brand);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.admin-bar .reading-progress {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .reading-progress {
		top: 46px;
	}
}

.article-page .breadcrumbs {
	margin-bottom: 1rem;
}

.article__header {
	max-width: 860px;
	margin: 0 auto 1.75rem;
}

.article__title {
	margin: 0.35rem 0 0.9rem;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.article__standfirst {
	max-width: 760px;
	margin: 0 0 1.4rem;
	color: #3a414a;
	font-family: var(--hpn-font-serif);
	font-size: clamp(1.125rem, 2vw, 1.3rem);
	line-height: 1.5;
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.9rem;
	border-block: 1px solid var(--hpn-line);
}

.byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.byline__badge,
.author-box__badge {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e8f3e6;
	color: var(--hpn-brand-dark);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.byline__text {
	display: grid;
	gap: 0.1rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

.byline__author {
	font-weight: 600;
}

.byline__author a {
	color: var(--hpn-ink);
	text-decoration: none;
}

.byline__author a:hover {
	color: var(--hpn-brand-dark);
	text-decoration: underline;
}

.byline__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.4rem;
	color: var(--hpn-muted);
}

.article__media {
	max-width: 1080px;
	margin: 0 auto 2.25rem;
}

.article__media img {
	display: block;
	width: 100%;
	max-height: 640px;
	border-radius: var(--hpn-radius);
	object-fit: cover;
}

.article__media figcaption {
	max-width: 860px;
	margin: 0.6rem auto 0;
	color: var(--hpn-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.article__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* Never wider than the screen, whatever the content. */
	gap: clamp(2rem, 4vw, 3.5rem);
	max-width: 1080px;
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.article__body {
		grid-template-columns: minmax(0, 1fr) var(--hpn-sidebar);
	}
}

.article__main {
	min-width: 0;
	max-width: 720px;
}

/* Text */
.article__content {
	font-size: 1.1875rem;
	line-height: 1.75;
	color: #1f2429;
}

.article__content > p:first-child,
.article__content > .wp-block-group:first-child > p:first-child {
	font-size: 1.3rem;
	line-height: 1.6;
	color: var(--hpn-ink);
}

.article__content a {
	color: var(--hpn-brand-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.article__content a:hover {
	text-decoration-thickness: 2px;
}

.article__content h2 {
	margin-top: 2.2em;
	font-size: 1.6rem;
	line-height: 1.25;
	scroll-margin-top: 90px;
}

.article__content h3 {
	margin-top: 1.8em;
	font-size: 1.3rem;
	scroll-margin-top: 90px;
}

.article__content blockquote:not(.wp-block-pullquote blockquote) {
	position: relative;
	margin: 2em 0;
	padding: 0.2em 0 0.2em 1.5em;
	border-left: 4px solid var(--hpn-brand);
	color: var(--hpn-ink);
	font-size: 1.25rem;
	font-style: normal;
	line-height: 1.55;
}

.article__content blockquote cite,
.article__content blockquote footer {
	display: block;
	margin-top: 0.6em;
	color: var(--hpn-muted);
	font-family: var(--hpn-font-sans);
	font-size: 0.875rem;
	font-style: normal;
}

.article__content .wp-block-pullquote {
	margin: 2.2em 0;
	padding: 1.5em 0;
	border-block: 3px solid var(--hpn-brand);
	text-align: left;
}

.article__content .wp-block-pullquote blockquote {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.4;
}

.article__content figure {
	margin-block: 2em;
}

.article__content figcaption {
	margin-top: 0.5rem;
	color: var(--hpn-muted);
	font-family: var(--hpn-font-sans);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.article__content .wp-block-table,
.article__content .table-wrap {
	overflow-x: auto;
}

.article__content tbody tr:nth-child(even) td {
	background: #fafbfb;
}

.article__content hr {
	width: 80px;
	margin: 2.5em 0;
	border: 0;
	border-top: 2px solid var(--hpn-line);
}

/* Contents box */
.toc {
	margin: 0 0 2rem;
	padding: 1rem 1.25rem 1.1rem;
	border-left: 4px solid var(--hpn-brand);
	border-radius: 0 var(--hpn-radius) var(--hpn-radius) 0;
	background: var(--hpn-surface);
}

.toc__title {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hpn-brand-dark);
}

.toc__list {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.toc__list li + li {
	margin-top: 0.35rem;
}

.toc__list a {
	color: var(--hpn-ink);
	text-decoration: none;
}

.toc__list a:hover,
.toc__list a[aria-current] {
	color: var(--hpn-brand-dark);
	text-decoration: underline;
}

.toc__list a[aria-current] {
	font-weight: 600;
}

/* In-article ad */
.ad-slot--in-article {
	margin: 2.25em 0;
	font-family: var(--hpn-font-sans);
}

/* Footer of the article */
.article__footer {
	display: grid;
	gap: 1.25rem;
	max-width: none;
}

.article__footer .hpn-share {
	margin: 0;
}

.author-box {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
}

.author-box__badge {
	width: 56px;
	height: 56px;
	font-size: 1.1rem;
}

.author-box__text {
	min-width: 0;
}

.author-box__eyebrow {
	margin: 0;
	color: var(--hpn-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.author-box__name {
	margin: 0.1rem 0 0.35rem;
	font-size: 1.125rem;
	font-weight: 700;
}

.author-box__bio {
	margin: 0 0 0.5rem;
	color: #3a414a;
	font-size: 0.9375rem;
}

.author-box__more {
	color: var(--hpn-brand-dark);
	font-size: 0.9375rem;
	font-weight: 600;
}

.article-page .post-navigation {
	margin-top: 2rem;
}

.article-page .related {
	max-width: 1080px;
	margin: 3rem auto 0;
}

.article__comments {
	max-width: 720px;
	margin: 2.5rem auto 0;
}

@media (min-width: 1024px) {
	.article__comments {
		max-width: 1080px;
		padding-right: calc(var(--hpn-sidebar) + clamp(2rem, 4vw, 3.5rem));
	}
}

/* Right rail */
.article-rail {
	min-width: 0;
}

.article-rail__inner {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.article-rail__inner {
		position: sticky;
		top: 1.5rem;
	}

	.admin-bar .article-rail__inner {
		top: calc(32px + 1.5rem);
	}
}

.article-rail .ad-slot {
	margin: 0;
}

.rail-box {
	padding: 1.1rem 1.2rem 1.2rem;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
}

.rail-box__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--hpn-brand);
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rail-box__text {
	margin: 0 0 0.75rem;
	color: var(--hpn-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.rail-most {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.rail-most li {
	padding: 0.7rem 0;
	border-top: 1px solid var(--hpn-line);
}

.rail-most li:first-child {
	padding-top: 0;
	border-top: 0;
}

.rail-most li:last-child {
	padding-bottom: 0;
}

.rail-most__link {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.75rem;
	align-items: start;
	color: var(--hpn-ink);
	text-decoration: none;
}

.rail-most__thumb {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

.rail-most__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.rail-most__thumb .thumb-placeholder {
	font-size: 0.875rem;
}

/* Rank badge on the thumbnail's corner. */
.rail-most__rank {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 0.3rem;
	border-bottom-right-radius: var(--hpn-radius);
	background: var(--hpn-brand-dark);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
}

.rail-most__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.rail-most__link:hover .rail-most__title {
	color: var(--hpn-brand-dark);
	text-decoration: underline;
}

.rail-most__link:hover .rail-most__thumb img {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.rail-most__thumb img {
		transition: none;
	}
}

.rail-box--newsletter {
	background: #f3f8f2;
	border-color: #d7e8d3;
}

.rail-box--magazine {
	padding: 0;
	overflow: hidden;
}

.rail-magazine {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	color: var(--hpn-ink);
	text-decoration: none;
}

.rail-magazine__cover {
	width: 96px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
}

.rail-magazine__text {
	display: grid;
	gap: 0.25rem;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.rail-magazine__eyebrow {
	color: var(--hpn-brand-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rail-magazine__cta {
	color: var(--hpn-brand-dark);
	font-weight: 700;
}

.rail-magazine:hover .rail-magazine__cta {
	text-decoration: underline;
}

@media (max-width: 1023px) {
	/* Centre the column with justify-self: auto margins in a grid would size it to its content. */
	.article__main,
	.article-rail {
		justify-self: center;
		width: 100%;
		max-width: 720px;
	}
}

@media (max-width: 599px) {
	.article__content {
		font-size: 1.0625rem;
	}

	.article__content > p:first-child {
		font-size: 1.15rem;
	}

	.article__meta {
		align-items: flex-start;
	}

	.author-box {
		flex-direction: column;
	}
}

@media print {
	.reading-progress,
	.article-rail,
	.article__meta .hpn-share,
	.toc {
		display: none !important;
	}

	.article__body {
		display: block;
	}
}

/* Sidebar & widgets
   ========================================================================== */

.sidebar {
	min-width: 0;
}

@media (min-width: 1024px) {
	.sidebar {
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}
}

.widget {
	margin-bottom: 2rem;
	font-size: 0.9375rem;
}

.widget-title {
	margin-bottom: 0.9rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--hpn-brand);
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding-block: 0.5rem;
	border-bottom: 1px solid var(--hpn-line);
}

.widget .wp-block-heading,
.widget label.wp-block-categories__label {
	display: block;
	margin-bottom: 0.9rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--hpn-brand);
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.widget_custom_html img,
.widget_media_image img {
	margin-inline: auto;
}

/* Comments
   ========================================================================== */

.comments {
	max-width: var(--hpn-narrow);
	margin-top: 3rem;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 1.5rem;
	list-style: none;
}

.comment-body {
	padding-block: 1rem;
	border-bottom: 1px solid var(--hpn-line);
}

.comment-meta {
	font-size: 0.875rem;
}

.comment-author .avatar {
	float: left;
	margin-right: 0.75rem;
	border-radius: 50%;
}

/* Footer
   ========================================================================== */

.site-footer {
	margin-top: clamp(40px, 6vw, 72px);
	padding-top: clamp(40px, 6vw, 64px);
	border-top: 4px solid var(--hpn-brand);
	background: var(--hpn-ink);
	color: #aab2bc;
	font-size: 0.9375rem;
}

.site-footer a {
	color: #d5dae0;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--hpn-white);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.footer-main {
	display: grid;
	gap: 40px 32px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding-bottom: clamp(36px, 5vw, 56px);
}

.footer-brand,
.footer-col--issue {
	grid-column: 1 / -1;
}

@media (min-width: 1024px) {
	.footer-main {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
		gap: 48px;
	}

	.footer-brand,
	.footer-col--issue {
		grid-column: auto;
	}
}

/* The logo has dark text, so it sits on a white tile. */
.footer-brand__logo {
	display: inline-block;
	padding: 0.6rem 0.8rem;
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
	line-height: 0;
}

.footer-brand__logo img {
	display: block;
	width: auto;
	max-width: 190px;
	height: auto;
	max-height: 56px;
}

.footer-brand__about {
	max-width: 42ch;
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.65;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.site-footer .footer-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: 50%;
	color: var(--hpn-white);
}

.site-footer .footer-social a:hover {
	border-color: var(--hpn-brand);
	background: var(--hpn-brand-dark);
}

.footer-col__title {
	position: relative;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	color: var(--hpn-white);
	font-family: var(--hpn-font-sans, inherit);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.footer-col__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: var(--hpn-brand);
}

.footer-links {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Latest issue */
.site-footer .footer-issue {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	padding: 0.75rem;
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: var(--hpn-radius);
	text-decoration: none;
}

.site-footer .footer-issue:hover {
	border-color: var(--hpn-brand);
	text-decoration: none;
}

.footer-issue__cover img {
	display: block;
	width: 60px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.4);
}

.footer-issue__text strong {
	display: block;
	color: var(--hpn-white);
	font-size: 0.875rem;
	line-height: 1.35;
}

.footer-issue__cta {
	display: inline-block;
	margin-top: 0.35rem;
	color: var(--hpn-brand);
	font-size: 0.8125rem;
	font-weight: 600;
}

.footer-newsletter {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
}

.site-footer .footer-newsletter__button {
	display: flex;
	justify-content: center;
	width: fit-content;
	margin-top: 0.75rem;
	padding: 0.6rem 1.1rem;
	border-radius: var(--hpn-radius);
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
	font-weight: 600;
	text-decoration: none;
}

.site-footer .footer-newsletter__button:hover {
	background: #175f14;
	text-decoration: none;
}

/* Legal bar */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	color: #8d96a0;
	font-size: 0.8125rem;
	line-height: 1.55;
}

.site-footer__copy {
	max-width: 72ch;
	margin: 0;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Ad slots
   ========================================================================== */

.ad-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.ad-slot__label {
	color: var(--hpn-muted);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ad-slot[hidden] {
	display: none;
}

.ad-slot__content {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.ad-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	width: min(100%, calc(var(--ad-w) * 1px));
	aspect-ratio: var(--ad-w) / var(--ad-h);
	min-height: 90px;
	padding: 0.75rem 1rem;
	border: 2px dashed #b9c3cc;
	border-radius: var(--hpn-radius);
	background: repeating-linear-gradient(135deg, var(--hpn-surface) 0 12px, #eef1f3 12px 24px);
	color: var(--hpn-ink);
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ad-placeholder:hover {
	border-color: var(--hpn-brand-dark);
	background: #eef7ec;
	color: var(--hpn-ink);
}

.ad-placeholder__title {
	color: var(--hpn-brand-dark);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
}

.ad-placeholder__text {
	color: var(--hpn-muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.ad-placeholder__size {
	color: var(--hpn-muted);
	font-size: 0.6875rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.05em;
}

/* Leaderboards (728×90): lay the text out in a row so it fits the height. */
.ad-slot--header-ad .ad-placeholder,
.ad-slot--home-inline .ad-placeholder {
	flex-flow: row wrap;
	column-gap: 1rem;
}

.ad-slot--header-ad .ad-placeholder__size,
.ad-slot--home-inline .ad-placeholder__size {
	padding: 0.15rem 0.5rem;
	border: 1px solid #c4cad1;
	border-radius: 999px;
}

.ad-slot--header-ad {
	display: none;
}

@media (min-width: 960px) {
	.ad-slot--header-ad {
		display: flex;
		flex: 0 1 728px;
	}

	.ad-slot--header-ad .ad-placeholder {
		width: 100%;
	}
}

.home-ad {
	padding-block: clamp(8px, 1.5vw, 16px);
}

.home-hero + .home-ad {
	margin-top: calc(clamp(36px, 5vw, 56px) * -0.5);
}

.home-aside .ad-slot {
	margin-bottom: 2rem;
}

/* Advertise with us page
   ========================================================================== */

.site-main--advertise {
	padding-block: 0;
}

.adv-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 8vw, 96px);
	background: linear-gradient(120deg, #17611a 0%, var(--hpn-brand-dark) 55%, #2a8f23 100%);
	color: var(--hpn-white);
}

.adv-hero::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -80px;
	width: clamp(260px, 36vw, 460px);
	aspect-ratio: 1;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M35 5h30v30h30v30H65v30H35V65H5V35h30z' fill='none' stroke='white' stroke-opacity='.12' stroke-width='3'/%3E%3C/svg%3E");
	transform: translateY(-50%);
	pointer-events: none;
}

.adv-hero__inner {
	position: relative;
	max-width: calc(var(--hpn-container) + 2 * var(--hpn-gutter));
}

.adv-hero__eyebrow,
.adv-request__eyebrow {
	margin-bottom: 0.6rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.adv-hero__eyebrow {
	color: rgb(255 255 255 / 0.8);
}

.adv-hero__title {
	max-width: 18ch;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.08;
}

.adv-hero__text {
	max-width: 60ch;
	color: rgb(255 255 255 / 0.9);
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.adv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.75rem 0 0;
}

.adv-facts {
	border-bottom: 1px solid var(--hpn-line);
	background: var(--hpn-white);
}

.adv-facts__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.adv-facts__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.adv-facts__list li {
	padding: clamp(18px, 3vw, 28px) clamp(12px, 2vw, 24px);
	border-left: 1px solid var(--hpn-line);
}

.adv-facts__list li:first-child,
.adv-facts__list li:nth-child(3) {
	border-left: 0;
}

@media (min-width: 900px) {
	.adv-facts__list li:nth-child(3) {
		border-left: 1px solid var(--hpn-line);
	}
}

.adv-facts__list strong {
	display: block;
	color: var(--hpn-brand-dark);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.1;
}

.adv-facts__list span {
	display: block;
	margin-top: 0.35rem;
	color: var(--hpn-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.adv-ways__list {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.adv-way {
	padding: clamp(18px, 2.5vw, 26px);
	border: 1px solid var(--hpn-line);
	border-top: 3px solid var(--hpn-brand);
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
}

.adv-way__icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 0.9rem;
	border-radius: 50%;
	background: #eef7ec;
	color: var(--hpn-brand-dark);
}

.adv-way__title {
	font-size: 1.125rem;
}

.adv-way__text {
	margin: 0;
	color: var(--hpn-muted);
	font-size: 0.9375rem;
}

.adv-note {
	margin: var(--hpn-gap) 0 0;
	padding: 0.9rem 1.1rem;
	border-left: 4px solid var(--hpn-accent);
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
	font-size: 0.9375rem;
}

.adv-formats {
	background: var(--hpn-surface);
}

.adv-formats__list {
	display: grid;
	gap: var(--hpn-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.adv-format {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem;
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

/* A mini page with the slot drawn to scale (970px wide = full frame width). */
.adv-format__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-bottom: 0.5rem;
	padding: 10px;
	border: 1px dashed #c4cad1;
	border-radius: 4px;
	background: repeating-linear-gradient(0deg, transparent 0 14px, #f1f3f4 14px 16px);
}

.adv-format__box {
	display: grid;
	place-items: center;
	width: calc(var(--w) / 970 * 100%);
	aspect-ratio: var(--w) / var(--h);
	max-height: 100%;
	border-radius: 3px;
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
	font-size: 0.6875rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.adv-format__name {
	font-weight: 700;
}

.adv-format__where {
	color: var(--hpn-muted);
	font-size: 0.875rem;
}

.adv-request {
	background: linear-gradient(180deg, var(--hpn-white), var(--hpn-surface));
}

.adv-request__inner {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
	.adv-request__inner {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}
}

.adv-request__eyebrow {
	color: var(--hpn-brand-dark);
}

.adv-request__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.adv-request__pack {
	margin: 1.5rem 0 0;
}

.adv-request__pack img {
	display: block;
	width: min(100%, 360px);
	height: auto;
	border-radius: 4px;
	box-shadow: 0 16px 40px rgb(0 0 0 / 0.18);
	transform: rotate(-1.5deg);
}

.adv-request__alt {
	margin-top: 1.5rem;
	color: var(--hpn-muted);
}

.adv-request__form {
	padding: clamp(20px, 3.5vw, 36px);
	border: 1px solid var(--hpn-line);
	border-top: 4px solid var(--hpn-brand);
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.06);
}

/* Contact & Subscribe pages
   ========================================================================== */

.page-hero .adv-hero__title {
	max-width: 760px;
}

.page-routes {
	margin-top: calc(-1 * clamp(28px, 4vw, 44px));
	position: relative;
}

.page-routes .adv-way {
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 30px rgb(22 25 29 / 0.08);
}

.page-routes .adv-way__text {
	flex: 1;
}

.page-routes__link {
	margin-top: 0.75rem;
	color: var(--hpn-brand-dark);
	font-weight: 700;
	text-decoration: none;
}

.page-routes__link:hover {
	text-decoration: underline;
}

@media (min-width: 960px) {
	.page-routes__list--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.page-split {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	margin-top: clamp(40px, 6vw, 72px);
	scroll-margin-top: 24px;
}

@media (min-width: 1024px) {
	.page-split {
		grid-template-columns: minmax(0, 1fr) var(--hpn-sidebar);
	}
}

.page-split__main {
	min-width: 0;
	max-width: 760px;
}

.page-split__extra {
	margin-top: 2rem;
}

.page-facts {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #3a414a;
}

.page-facts strong {
	display: block;
	color: var(--hpn-ink);
}

.page-facts__more {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	font-weight: 600;
}

.page-facts__more a {
	color: var(--hpn-brand-dark);
}

.page-publisher {
	margin: 1rem 0 0;
	color: var(--hpn-muted);
	font-size: 0.8125rem;
}

/* Subscribe */
.sub-block {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	margin-top: clamp(40px, 6vw, 72px);
	scroll-margin-top: 24px;
}

@media (min-width: 860px) {
	.sub-block {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
}

.sub-block__eyebrow {
	margin: 0 0 0.35rem;
	color: var(--hpn-brand-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sub-block__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.sub-block__lead {
	margin: 0 0 1.5rem;
	color: #3a414a;
	font-size: 1.0625rem;
}

.sub-block__note {
	color: var(--hpn-muted);
	font-size: 0.9375rem;
}

.sub-ticks {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.sub-ticks li {
	position: relative;
	padding-left: 1.75rem;
}

.sub-ticks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--hpn-brand-dark);
	font-weight: 800;
}

.sub-block__cover {
	display: grid;
	gap: 0.6rem;
	justify-items: center;
	color: var(--hpn-ink);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.sub-block__cover img {
	width: 220px;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 16px 36px rgb(0 0 0 / 0.2);
	transition: transform 0.2s ease;
}

.sub-block__cover:hover img {
	transform: translateY(-4px) rotate(-1deg);
}

.sub-band {
	margin-top: clamp(40px, 6vw, 72px);
	padding-block: clamp(32px, 5vw, 56px);
	background: #f3f8f2;
	border-block: 1px solid #d7e8d3;
	scroll-margin-top: 24px;
}

.sub-band__inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 960px) {
	.sub-band__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 3rem;
	}
}

.sub-band p {
	color: #3a414a;
}

/* Privacy policy & other text pages */
.page .entry-content h2 {
	margin-top: 2em;
	padding-top: 0.5em;
	border-top: 1px solid var(--hpn-line);
}

.page .entry-content table {
	display: block;
	overflow-x: auto;
}

.page .entry-content td:first-child {
	white-space: nowrap;
	font-family: var(--hpn-font-sans);
	font-size: 0.875rem;
}

.privacy-updated {
	color: var(--hpn-muted);
	font-family: var(--hpn-font-sans);
	font-size: 0.875rem;
}

/* Page not found (404)
   ========================================================================== */

.site-main--404 {
	padding-top: 0;
}

.nf-hero {
	padding-block: clamp(36px, 6vw, 72px);
	background: linear-gradient(180deg, #f3f8f2 0%, var(--hpn-white) 100%);
	border-bottom: 1px solid var(--hpn-line);
}

.nf-hero__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.nf-hero__inner {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	}
}

.nf-hero__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--hpn-brand-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nf-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.nf-hero__lead {
	max-width: 560px;
	margin: 0 0 1rem;
	color: #3a414a;
	font-size: 1.125rem;
}

.nf-hero__path {
	margin: 0 0 1.5rem;
}

.nf-hero__path code {
	display: inline-block;
	max-width: 100%;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--hpn-line);
	border-radius: 999px;
	background: var(--hpn-white);
	color: var(--hpn-muted);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.nf-search {
	position: relative;
	display: flex;
	gap: 0.5rem;
	max-width: 560px;
	margin: 0 0 1.25rem;
}

.nf-search__icon {
	position: absolute;
	top: 50%;
	left: 0.9rem;
	color: var(--hpn-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.nf-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding-left: 2.6rem;
	font-size: 1rem;
}

.nf-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin: 0;
}

.nf-actions .button {
	gap: 0.5rem;
}

.nf-actions__back[hidden] {
	display: none;
}

.nf-actions__report {
	color: var(--hpn-muted);
	font-size: 0.9375rem;
}

.nf-actions__report:hover {
	color: var(--hpn-brand-dark);
}

/* Illustration: a heartbeat line that flattens into "404". */
.nf-hero__art svg {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin-inline: auto;
}

.nf-art__line,
.nf-art__flat {
	fill: none;
	stroke: var(--hpn-brand);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nf-art__line {
	stroke-dasharray: 420;
	stroke-dashoffset: 420;
	animation: nf-beat 1.6s ease-out 0.2s forwards;
}

.nf-art__flat {
	stroke: #c7d9c4;
}

.nf-art__code {
	fill: var(--hpn-brand-dark);
	font-family: var(--hpn-font-sans);
	font-size: 92px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.nf-art__dot {
	fill: var(--hpn-accent);
	animation: nf-blink 1.2s ease-in-out infinite;
}

@keyframes nf-beat {
	to { stroke-dashoffset: 0; }
}

@keyframes nf-blink {
	50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.nf-art__line { animation: none; stroke-dashoffset: 0; }
	.nf-art__dot { animation: none; }
}

@media (max-width: 899px) {
	.nf-hero__art {
		order: -1;
	}

	.nf-hero__art svg {
		max-width: 260px;
		margin-inline: 0;
	}
}

.nf-block {
	margin-top: clamp(32px, 5vw, 56px);
}

.nf-matches {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.nf-matches {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nf-match {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 0.85rem;
	align-items: center;
	height: 100%;
	padding: 0.75rem;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
	background: var(--hpn-white);
	color: var(--hpn-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nf-match:hover {
	border-color: var(--hpn-brand);
	box-shadow: 0 6px 18px rgb(22 25 29 / 0.07);
}

.nf-match__thumb {
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

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

.nf-match__thumb .thumb-placeholder {
	font-size: 0.8rem;
}

.nf-match__text {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.nf-match__text strong {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.nf-match__text span {
	color: var(--hpn-muted);
	font-size: 0.8125rem;
}

.nf-match__go {
	color: var(--hpn-brand-dark);
	font-weight: 700;
}

.nf-more {
	margin: 0.9rem 0 0;
	font-weight: 600;
}

.nf-more a {
	color: var(--hpn-brand-dark);
}

.nf-sections {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-sections a {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--hpn-line);
	border-radius: 999px;
	background: var(--hpn-white);
	color: var(--hpn-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.nf-sections a:hover {
	border-color: var(--hpn-brand-dark);
	background: var(--hpn-brand-dark);
	color: #fff;
}

/* Collapsible sections in articles (References, Abbreviations) */
.article__content details {
	margin: 2rem 0;
	border: 1px solid var(--hpn-line);
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

.article__content summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	color: var(--hpn-ink);
	font-family: var(--hpn-font-sans, system-ui, sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.article__content summary::-webkit-details-marker {
	display: none;
}

.article__content summary::after {
	content: "";
	flex: none;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: -0.25rem;
	border-right: 2px solid var(--hpn-brand-dark);
	border-bottom: 2px solid var(--hpn-brand-dark);
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.article__content details[open] summary::after {
	margin-top: 0.25rem;
	transform: rotate(-135deg);
}

.article__content summary:hover {
	color: var(--hpn-brand-dark);
}

.article__content summary:focus-visible {
	outline: 3px solid rgb(31 122 26 / 0.35);
	outline-offset: 2px;
}

.article__content details[open] summary {
	border-bottom: 1px solid var(--hpn-line);
}

.article__content details > :not(summary) {
	margin-inline: 1.1rem;
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.article__content details > ul,
.article__content details > ol {
	padding-left: 1.25rem;
}

.article__content details > :last-child {
	margin-bottom: 1.1rem;
}

/* Featured stories carousel (homepage) */
.carousel {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--hpn-radius);
	background: var(--hpn-ink);
}

.carousel__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__slide {
	display: grid;
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.carousel__slide .card--overlay {
	height: 100%;
	border-radius: 0;
}

/* Room under the date for the controls. */
.carousel__slide .card--overlay .card__body {
	padding-bottom: calc(clamp(20px, 3.5vw, 40px) + 24px);
}

@media (prefers-reduced-motion: reduce) {
	.carousel__track {
		scroll-behavior: auto;
	}
}

.carousel__controls {
	position: absolute;
	z-index: 3;
	bottom: 10px;
	left: 50%;
	display: flex;
	align-items: center;
	transform: translateX(-50%);
}

.carousel__controls[hidden] {
	display: none;
}

.carousel__btn,
.carousel__dot {
	position: relative;
	display: grid;
	place-items: center;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgb(255 255 255 / 0.8);
	cursor: pointer;
}

.carousel__btn {
	width: 28px;
	border-radius: 50%;
}

.carousel__btn svg {
	width: 14px;
	height: 14px;
}

.carousel__btn:hover {
	background: rgb(255 255 255 / 0.16);
	color: var(--hpn-white);
}

.carousel__btn:focus-visible,
.carousel__dot:focus-visible {
	outline: 2px solid var(--hpn-white);
	outline-offset: -2px;
	border-radius: 999px;
}

.carousel__icon-play,
.carousel.is-paused .carousel__icon-pause {
	display: none;
}

.carousel.is-paused .carousel__icon-play {
	display: block;
}

.carousel__dots {
	display: flex;
	align-items: center;
}

.carousel__dot {
	width: 16px;
	transition: width 0.25s;
}

/* The dot, and on the current story a pill that fills up until the next one. */
.carousel__dot::before,
.carousel__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 5px;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.5);
	transition: width 0.25s, background-color 0.25s;
}

.carousel__dot::after {
	display: none;
}

.carousel__dot:hover::before {
	background: var(--hpn-white);
}

.carousel__dot[aria-current="true"] {
	width: 30px;
}

.carousel__dot[aria-current="true"]::before {
	width: 20px;
	background: rgb(255 255 255 / 0.35);
}

.carousel__dot[aria-current="true"]::after {
	display: block;
	width: 20px;
	background: var(--hpn-white);
	animation: carousel-progress 7s linear forwards;
}

.carousel.is-paused .carousel__dot::after,
.carousel.is-held .carousel__dot::after,
.carousel.is-away .carousel__dot::after {
	animation-play-state: paused;
}

@keyframes carousel-progress {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

/* Back to top (corner button, every page) */
.back-to-top {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--hpn-brand-dark);
	color: var(--hpn-white);
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-to-top:hover {
	background: #175f14;
	color: var(--hpn-white);
}

.back-to-top:focus-visible {
	outline: 3px solid rgb(31 122 26 / 0.45);
	outline-offset: 3px;
}

.back-to-top__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.back-to-top__ring circle {
	fill: none;
	stroke-width: 2.5;
}

.back-to-top__track {
	stroke: rgb(255 255 255 / 0.22);
}

.back-to-top__bar {
	stroke: var(--hpn-white);
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--progress, 0) * 100);
}

@media (min-width: 960px) {
	.back-to-top {
		right: 28px;
		bottom: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top {
		transition: none;
	}
}

@media print {
	.back-to-top {
		display: none;
	}
}

/* Motion: gentle entrances
   --------------------------------------------------------------------------
   Pure CSS. The top of each page fades up once on load (the hero image itself
   isn't animated, so it doesn't hold up loading). Further down, blocks rise in
   as they scroll into view using scroll-driven animations; browsers without
   them simply show everything. Nothing waits for JavaScript, and visitors who
   ask for reduced motion get none. */

@keyframes hpn-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hpn-reveal {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	/* On load */
	.home-hero .card__body,
	.home-hero__top,
	.article__header > *,
	.page-hero .adv-hero__inner > *,
	.nf-hero__lead > *,
	.entry-header {
		animation: hpn-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.home-hero__top,
	.article__header > :nth-child(2),
	.page-hero .adv-hero__inner > :nth-child(2),
	.nf-hero__lead > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.article__header > :nth-child(3),
	.page-hero .adv-hero__inner > :nth-child(3),
	.nf-hero__lead > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.article__header > :nth-child(n + 4),
	.page-hero .adv-hero__inner > :nth-child(n + 4),
	.nf-hero__lead > :nth-child(n + 4) {
		animation-delay: 0.24s;
	}

	/* On scroll: each block finishes once it is fully on screen, so even the
	   last blocks on a page settle completely. */
	@supports (animation-timeline: view()) {
		.card-grid > *,
		.section-header,
		.section-feature,
		.section-feature__list > *,
		.home-magazine__inner > *,
		.home-newsletter__card,
		.home-aside > *,
		.adv-ways__list > *,
		.adv-formats__list > *,
		.adv-facts__list > *,
		.nf-block,
		.related .card,
		.footer-main > * {
			animation: hpn-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 70%;
		}

		/* Cards in a row arrive one after another. */
		.card-grid:not(.card-grid--4) > :nth-child(3n + 2),
		.card-grid--4 > :nth-child(4n + 2),
		.adv-ways__list > :nth-child(3n + 2),
		.footer-main > :nth-child(2) {
			animation-range: entry 10% entry 80%;
		}

		.card-grid:not(.card-grid--4) > :nth-child(3n + 3),
		.card-grid--4 > :nth-child(4n + 3),
		.adv-ways__list > :nth-child(3n + 3),
		.footer-main > :nth-child(3) {
			animation-range: entry 20% entry 90%;
		}

		.card-grid--4 > :nth-child(4n + 4),
		.footer-main > :nth-child(4) {
			animation-range: entry 30% entry 100%;
		}
	}
}

/* In-feed ad (listings): sits in the grid like a story card. */
.card-ad {
	display: grid;
	place-items: center;
	padding: 1rem;
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

.card-ad .ad-slot {
	width: 100%;
	max-width: 300px;
}

.card-ad .ad-slot__content,
.card-ad .ad-slot__content img,
.card-ad .ad-slot__content iframe {
	max-width: 100%;
}

.card-ad .ad-slot__content img {
	height: auto;
}

/* Misc
   ========================================================================== */

.no-results {
	padding: 2rem;
	border-radius: var(--hpn-radius);
	background: var(--hpn-surface);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.site-nav,
	.ad-slot,
	.sidebar,
	.share,
	.after-content,
	.post-navigation,
	.related,
	.site-footer {
		display: none;
	}
}
