/* ==========================================================================
   Hipertrofia.org — health-publisher theme
   Sections: 1 base · 2 layout · 3 header · 4 cards · 5 home · 6 hub archive
             7 article · 8 sidebar · 9 forms · 10 footer · 11 utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hp-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--hp-bg);
	color: var(--hp-fg);
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-base);
	line-height: var(--hp-lh-normal);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--hp-navy-600);
	text-decoration: none;
}

a:hover {
	color: var(--hp-red-ink);
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-family: var(--hp-font-display);
	color: var(--hp-navy-900);
	line-height: var(--hp-lh-snug);
	font-weight: 700;
	letter-spacing: -0.018em;
	margin: 0 0 var(--hp-space-4);
	text-wrap: balance;
}

h1 {
	font-size: var(--hp-fs-4xl);
	line-height: var(--hp-lh-tight);
	font-weight: 800;
	letter-spacing: -0.03em;
}
h2 {
	font-size: var(--hp-fs-2xl);
	letter-spacing: -0.022em;
}
h3 {
	font-size: var(--hp-fs-xl);
}
h4 {
	font-size: var(--hp-fs-lg);
}

p {
	margin: 0 0 var(--hp-space-4);
}

ul,
ol {
	margin: 0 0 var(--hp-space-4);
	padding-left: 1.35em;
}

hr {
	border: 0;
	border-top: 1px solid var(--hp-line);
	margin: var(--hp-space-6) 0;
}

/* Visible focus for every interactive element — never removed. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--hp-ring);
	outline-offset: 2px;
	border-radius: var(--hp-radius-sm);
}

.hp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--hp-navy-900);
	color: var(--hp-white);
	padding: var(--hp-space-3) var(--hp-space-4);
	font-weight: 700;
}
.hp-skip-link:focus {
	left: var(--hp-space-4);
	top: var(--hp-space-4);
	color: var(--hp-white);
}

.hp-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;
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */

.hp-shell {
	width: 100%;
	max-width: var(--hp-shell);
	margin-inline: auto;
	padding-inline: var(--hp-gutter);
}

.hp-shell--narrow {
	max-width: var(--hp-shell-narrow);
}

.hp-section {
	padding-block: var(--hp-space-7);
}

@media (min-width: 1024px) {
	.hp-section {
		padding-block: var(--hp-space-8);
	}
}

.hp-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hp-space-4);
	flex-wrap: wrap;
	margin-bottom: var(--hp-space-5);
	padding-bottom: var(--hp-space-3);
	border-bottom: 3px solid var(--hp-hub);
}

.hp-section-head h2 {
	margin: 0;
	font-size: var(--hp-fs-xl);
}

.hp-section-head .hp-more {
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-sm);
	font-weight: 700;
	color: var(--hp-red-ink);
	white-space: nowrap;
}

.hp-section-head .hp-more::after {
	content: " →";
}

/* Per-hub accent scoping. Set on <body> and on section wrappers. */
.hub--treino {
	--hp-hub: var(--hp-red-ink);
	--hp-hub-soft: var(--hp-red-050);
}
.hub--dieta {
	--hp-hub: var(--hp-navy);
	--hp-hub-soft: var(--hp-navy-050);
}
.hub--suplementacao {
	--hp-hub: var(--hp-navy-500);
	--hp-hub-soft: var(--hp-navy-050);
}
.hub--receitas-fitness {
	--hp-hub: var(--hp-red-deep);
	--hp-hub-soft: var(--hp-red-050);
}
.hub--fisiculturismo {
	--hp-hub: var(--hp-navy-900);
	--hp-hub-soft: var(--hp-surface-2);
}

/* --------------------------------------------------------------------------
   3. Header + navigation
   -------------------------------------------------------------------------- */

.hp-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-line);
	transition: box-shadow var(--hp-dur) var(--hp-ease);
}

.hp-header.is-stuck {
	box-shadow: var(--hp-shadow);
}

.hp-masthead {
	display: flex;
	align-items: center;
	gap: var(--hp-space-4);
	min-height: var(--hp-header-h);
}

.hp-brand {
	display: flex;
	align-items: center;
	flex: none;
	margin-right: auto;
}

/* Below 1024px the hub nav lives in the drawer, so the brand keeps pushing
   the actions right on its own. */
@media (min-width: 1024px) {
	.hp-brand {
		margin-right: 0;
	}
}

/* Wordmark only. Its viewBox is the type's own bounding box, so the logo has
   no internal padding to sit on and cannot drift off the header's baseline. */
.hp-brand img {
	height: 22px;
	width: auto;
}

@media (min-width: 768px) {
	.hp-brand img {
		height: 26px;
	}
}

.hp-masthead__actions {
	display: flex;
	align-items: center;
	gap: var(--hp-space-2);
}

/* Icon buttons — 44x44 touch target, always paired with a label. */
.hp-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0; /* browser default <button> padding would crush the icon */
	border: 0;
	background: transparent;
	color: var(--hp-navy);
	border-radius: var(--hp-radius);
	cursor: pointer;
	transition: background var(--hp-dur-fast) var(--hp-ease),
		color var(--hp-dur-fast) var(--hp-ease);
}

.hp-iconbtn:hover {
	background: var(--hp-navy-050);
	color: var(--hp-red-ink);
}

.hp-iconbtn svg {
	width: 22px;
	height: 22px;
}

@media (min-width: 1024px) {
	.hp-iconbtn--menu {
		display: none;
	}
}

/* Hub navigation — shares the masthead row, so the sticky bar stays one bar. */
.hp-hubnav {
	display: none;
}

@media (min-width: 1024px) {
	.hp-hubnav {
		display: block;
		margin-left: var(--hp-space-5);
		margin-right: auto;
		align-self: stretch;
	}
}

.hp-hubnav ul {
	display: flex;
	align-items: stretch;
	height: 100%;
	gap: var(--hp-space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hp-hubnav a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 2px;
	font-size: var(--hp-fs-sm);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--hp-navy-900);
	border-bottom: 3px solid transparent;
	transition: color var(--hp-dur-fast) var(--hp-ease),
		border-color var(--hp-dur-fast) var(--hp-ease);
}

.hp-hubnav a:hover {
	color: var(--hp-red-ink);
	border-bottom-color: var(--hp-red);
	text-decoration: none;
}

.hp-hubnav .current-menu-item > a,
.hp-hubnav .current-post-ancestor > a,
.hp-hubnav .current-menu-parent > a {
	color: var(--hp-red-ink);
	border-bottom-color: var(--hp-red);
}

/* Mobile drawer */
.hp-drawer {
	position: fixed;
	inset: 0;
	z-index: 150;
	display: none;
}

.hp-drawer[data-open="true"] {
	display: block;
}

.hp-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(6, 31, 48, 0.55);
	border: 0;
	width: 100%;
	cursor: pointer;
	animation: hp-fade var(--hp-dur) var(--hp-ease);
}

.hp-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(88vw, 340px);
	background: var(--hp-white);
	padding: var(--hp-space-4) var(--hp-space-5) var(--hp-space-7);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: var(--hp-shadow-lg);
	animation: hp-slide-in var(--hp-dur) var(--hp-ease);
	padding-bottom: max(var(--hp-space-7), env(safe-area-inset-bottom));
}

.hp-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--hp-space-4);
	padding-bottom: var(--hp-space-3);
	border-bottom: 1px solid var(--hp-line);
}

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

.hp-drawer__panel li + li {
	border-top: 1px solid var(--hp-line);
}

.hp-drawer__panel a {
	display: block;
	padding: var(--hp-space-3) 0;
	min-height: 44px;
	font-weight: 700;
	color: var(--hp-navy-900);
	font-size: var(--hp-fs-md);
}

.hp-drawer__panel .current-menu-item > a {
	color: var(--hp-red-ink);
	box-shadow: inset 4px 0 0 var(--hp-red);
	padding-left: var(--hp-space-3);
}

.hp-drawer__panel .sub-menu a {
	font-weight: 400;
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
	padding-left: var(--hp-space-4);
}

@keyframes hp-fade {
	from {
		opacity: 0;
	}
}

@keyframes hp-slide-in {
	from {
		transform: translateX(-100%);
	}
}

/* Search panel */
.hp-searchpanel {
	display: none;
	border-top: 1px solid var(--hp-line);
	background: var(--hp-surface);
	padding-block: var(--hp-space-4);
}

.hp-searchpanel[data-open="true"] {
	display: block;
}

/* --------------------------------------------------------------------------
   4. Cards + shared post bits
   -------------------------------------------------------------------------- */

.hp-eyebrow {
	display: inline-block;
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hp-hub);
	margin-bottom: var(--hp-space-2);
}

a.hp-eyebrow:hover {
	color: var(--hp-red-ink);
}

.hp-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--hp-space-2);
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
}

.hp-meta__sep {
	color: var(--hp-ink-2);
}

.hp-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--hp-surface-2);
	border-radius: var(--hp-radius);
	aspect-ratio: 16 / 9; /* reserved space — avoids CLS */
}

.hp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--hp-ease);
}

.hp-card {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-3);
	min-width: 0;
}

.hp-card__title {
	font-size: var(--hp-fs-lg);
	margin: 0;
	line-height: var(--hp-lh-snug);
}

.hp-card__title a {
	color: var(--hp-navy-900);
}

.hp-card__title a:hover {
	color: var(--hp-red-ink);
	text-decoration: none;
}

.hp-card:hover .hp-thumb img {
	transform: scale(1.04);
}

.hp-card__excerpt {
	margin: 0;
	color: var(--hp-ink-2);
	font-size: var(--hp-fs-sm);
	line-height: var(--hp-lh-normal);
}

.hp-thumb-link {
	display: block;
	border-radius: var(--hp-radius);
	overflow: hidden;
}

.hp-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-2);
	min-width: 0;
	flex: 1 1 auto;
}

.hp-card__body .hp-eyebrow,
.hp-card__body .hp-meta {
	margin: 0;
}

.hp-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.hp-thumb__icon {
	width: 34%;
	height: auto;
	max-width: 56px;
	opacity: 0.65;
}

/* Horizontal compact card (lists, sidebars) */
.hp-card--row {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--hp-space-4);
}

.hp-card--row .hp-thumb-link {
	flex: 0 0 108px;
}

.hp-card--row .hp-thumb {
	aspect-ratio: 4 / 3;
}

.hp-card--row .hp-card__title {
	font-size: var(--hp-fs-base);
}

@media (min-width: 768px) {
	.hp-card--row .hp-thumb-link {
		flex-basis: 132px;
	}
}

/* Lead / feature card */
.hp-card--lead .hp-card__title {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
}

.hp-card--lead .hp-card__excerpt {
	font-size: var(--hp-fs-base);
}

/* Archive lead spans the full shell, so it splits instead of stacking —
   a full-width 16:9 image would otherwise swallow the fold. */
.hp-archive-lead {
	margin-bottom: var(--hp-space-7);
	padding-bottom: var(--hp-space-6);
	border-bottom: 1px solid var(--hp-line);
}

@media (min-width: 900px) {
	.hp-archive-lead .hp-card--lead {
		flex-direction: row;
		align-items: center;
		gap: var(--hp-space-6);
	}

	.hp-archive-lead .hp-card--lead > .hp-thumb-link {
		flex: 0 0 54%;
	}
}

/* Grids */
.hp-grid {
	display: grid;
	gap: var(--hp-space-5) var(--hp-space-5);
	grid-template-columns: 1fr;
}

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

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

.hp-stack {
	display: grid;
	gap: var(--hp-space-4);
}

.hp-stack--divided > * + * {
	border-top: 1px solid var(--hp-line);
	padding-top: var(--hp-space-4);
}

/* --------------------------------------------------------------------------
   5. Home page
   -------------------------------------------------------------------------- */

.hp-lead {
	padding-block: var(--hp-space-6) var(--hp-space-7);
	border-bottom: 1px solid var(--hp-line);
}

.hp-lead__grid {
	display: grid;
	gap: var(--hp-space-6);
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.hp-lead__grid {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
		gap: var(--hp-space-7);
	}

	.hp-lead__side {
		border-left: 1px solid var(--hp-line);
		padding-left: var(--hp-space-6);
	}
}

.hp-lead__side h2 {
	font-size: var(--hp-fs-base);
	font-family: var(--hp-font-ui);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hp-ink-2);
	padding-bottom: var(--hp-space-3);
	border-bottom: 2px solid var(--hp-navy);
}

/* Hub shortcut strip */
.hp-hubstrip {
	background: var(--hp-navy-050);
	border-bottom: 1px solid var(--hp-line);
	padding-block: var(--hp-space-6);
}

/* Scroll-snap track: the tiles keep their pixel width and overflow sideways,
   so the artwork is never squeezed into an equal share of the row. */
.hp-hubstrip__track {
	display: flex;
	gap: var(--hp-space-4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: var(--hp-space-2);
}

.hp-hubstrip__track::-webkit-scrollbar {
	display: none;
}

/* Drag-to-slide affordance (pointer: fine only — no cursor on touch). */
@media (hover: hover) and (pointer: fine) {
	.hp-hubstrip__track {
		cursor: grab;
	}

	.hp-hubstrip__track.is-dragging {
		cursor: grabbing;
		user-select: none;
	}
}

.hp-hubstrip__nav {
	display: none;
}

@media (min-width: 768px) {
	.hp-hubstrip__nav {
		display: flex;
		justify-content: flex-end;
		gap: var(--hp-space-2);
		margin-top: var(--hp-space-4);
	}
}

.hp-hubstrip__nav button[disabled] {
	opacity: 0.35;
	pointer-events: none;
}

.hp-hubtile {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-3);
	flex: none;
	width: 250px;
	scroll-snap-align: start;
	font-weight: 700;
	font-size: var(--hp-fs-md);
	color: var(--hp-navy-900);
}

.hp-hubtile__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 360px;
	overflow: hidden;
	border-radius: var(--hp-radius-lg);
	background: var(--hp-hub);
}

@media (min-width: 768px) {
	.hp-hubtile {
		width: 320px;
	}

	.hp-hubtile__media {
		height: 430px;
	}
}

.hp-hubtile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--hp-dur) var(--hp-ease);
}

.hp-hubtile__media svg {
	width: 34%;
	height: auto;
	color: var(--hp-white);
}

.hp-hubtile:hover {
	color: var(--hp-hub);
	text-decoration: none;
}

.hp-hubtile:hover img {
	transform: scale(1.04);
}

/* Trust band */
.hp-trust {
	background: var(--hp-white);
	border-bottom: 1px solid var(--hp-line);
	padding-block: var(--hp-space-6);
}

.hp-trust__grid {
	display: grid;
	gap: var(--hp-space-5);
	grid-template-columns: 1fr;
}

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

.hp-trust__item {
	display: flex;
	gap: var(--hp-space-3);
	align-items: flex-start;
}

.hp-trust__item svg {
	width: 28px;
	height: 28px;
	flex: none;
	color: var(--hp-navy);
}

.hp-trust__item h3 {
	font-size: var(--hp-fs-base);
	font-family: var(--hp-font-ui);
	margin: 0 0 var(--hp-space-1);
}

.hp-trust__item p {
	margin: 0;
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
}

/* Newsletter band */
.hp-newsletter {
	background: var(--hp-navy);
	color: var(--hp-white);
	padding-block: var(--hp-space-7);
	background-image: linear-gradient(
		135deg,
		var(--hp-navy-900) 0%,
		var(--hp-navy) 55%,
		var(--hp-navy-600) 100%
	);
}

.hp-newsletter__grid {
	display: grid;
	gap: var(--hp-space-5);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.hp-newsletter__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: var(--hp-space-7);
	}
}

.hp-newsletter h2 {
	color: var(--hp-white);
	margin-bottom: var(--hp-space-2);
}

.hp-newsletter p {
	color: var(--hp-navy-200);
	margin: 0;
}

/* --------------------------------------------------------------------------
   6. Hub archive
   -------------------------------------------------------------------------- */

.hp-hubhero {
	background: var(--hp-hub);
	color: var(--hp-white);
	padding-block: var(--hp-space-7);
	position: relative;
	overflow: hidden;
}

.hp-hubhero::after {
	content: "";
	position: absolute;
	inset-block: 0;
	right: -6%;
	width: 42%;
	background: rgba(255, 255, 255, 0.06);
	transform: skewX(-13deg); /* echoes the logo's italic skew */
	pointer-events: none;
}

.hp-hubhero__inner {
	position: relative;
	max-width: 780px;
}

.hp-hubhero .hp-eyebrow {
	color: var(--hp-white);
	opacity: 0.85;
}

.hp-hubhero h1 {
	color: var(--hp-white);
	margin-bottom: var(--hp-space-3);
}

.hp-hubhero p {
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--hp-fs-md);
	max-width: 62ch;
	margin: 0;
}

.hp-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hp-space-2);
	list-style: none;
	margin: var(--hp-space-5) 0 0;
	padding: 0;
}

.hp-pills a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--hp-space-4);
	border-radius: var(--hp-radius-pill);
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: var(--hp-white);
	font-size: var(--hp-fs-sm);
	font-weight: 500;
	transition: background var(--hp-dur-fast) var(--hp-ease);
}

.hp-pills a:hover {
	background: var(--hp-white);
	color: var(--hp-hub);
	text-decoration: none;
}

/* Editable pillar copy at the top of a hub page. */
.hp-hub-intro {
	max-width: 68ch;
	padding-block: var(--hp-space-5) 0;
	font-size: var(--hp-fs-md);
}

.hp-hub-intro > :last-child {
	margin-bottom: 0;
}

/* Breadcrumbs — Yoast emits <p><span>…</span></p>; the <ol> rules below are
   the fallback markup used when Yoast is deactivated. */
.hp-crumbs {
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
	padding-block: var(--hp-space-4);
}

.hp-crumbs p {
	margin: 0;
}

.hp-crumbs a {
	color: var(--hp-navy-600);
}

.hp-crumbs .breadcrumb_last {
	color: var(--hp-ink);
	font-weight: 500;
}

.hp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hp-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hp-crumbs li + li::before {
	content: "/";
	margin-right: var(--hp-space-2);
	color: var(--hp-line-strong);
}

/* Pagination */
.hp-pagination {
	display: flex;
	justify-content: center;
	gap: var(--hp-space-2);
	flex-wrap: wrap;
	margin-top: var(--hp-space-7);
}

.hp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 var(--hp-space-3);
	border: 1px solid var(--hp-line-strong);
	border-radius: var(--hp-radius);
	color: var(--hp-navy);
	font-weight: 500;
}

.hp-pagination .page-numbers:hover {
	border-color: var(--hp-navy);
	background: var(--hp-navy-050);
	text-decoration: none;
}

.hp-pagination .page-numbers.current {
	background: var(--hp-navy);
	border-color: var(--hp-navy);
	color: var(--hp-white);
}

/* --------------------------------------------------------------------------
   7. Single article
   -------------------------------------------------------------------------- */

.hp-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: var(--hp-red);
	z-index: 120;
	will-change: transform;
}

.hp-article__head {
	margin-bottom: var(--hp-space-5);
	padding-top: var(--hp-space-2);
}

.hp-article__head h1 {
	margin-bottom: var(--hp-space-4);
}

/* Breadcrumb and trust badge share one row so neither costs a band of the
   fold on its own. They sit adjacent, not pushed to opposite edges — the
   badge belongs to the article, so it stays inside its text column. */
.hp-topline {
	display: flex;
	align-items: center;
	gap: var(--hp-space-3);
	flex-wrap: wrap;
}

.hp-topline .hp-crumbs {
	min-width: 0;
}

.hp-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.7em;
	border: 1px solid var(--hp-navy-200);
	border-radius: var(--hp-radius-pill);
	font-size: var(--hp-fs-xs);
	font-weight: 600;
	color: var(--hp-navy-600);
	white-space: nowrap;
	flex: none;
}

.hp-badge svg {
	width: 13px;
	height: 13px;
	stroke-width: 3;
}

.hp-article__standfirst {
	font-size: var(--hp-fs-lg);
	line-height: var(--hp-lh-normal);
	color: var(--hp-ink-2);
	margin-bottom: var(--hp-space-5);
}

.hp-byline {
	display: flex;
	align-items: flex-start;
	gap: var(--hp-space-3);
	padding-block: var(--hp-space-4);
	border-block: 1px solid var(--hp-line);
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
}

.hp-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	background: var(--hp-navy);
	color: var(--hp-white);
	font-weight: 700;
	font-size: var(--hp-fs-sm);
	letter-spacing: 0.02em;
}

/* Let the text column shrink and wrap instead of being pushed below the avatar. */
.hp-byline > div {
	flex: 1;
	min-width: 0;
}

.hp-byline strong {
	color: var(--hp-navy-900);
}

.hp-byline__reviewed {
	display: flex;
	align-items: flex-start;
	gap: 0.35em;
	color: var(--hp-navy-600);
	font-weight: 500;
}

.hp-byline__reviewed svg {
	width: 15px;
	height: 15px;
	flex: none;
	margin-top: 0.2em; /* Sit on the first text line, not centred on a wrapped block. */
}

.hp-article__figure {
	margin: var(--hp-space-5) 0;
}

.hp-article__figure img {
	width: 100%;
	border-radius: var(--hp-radius-lg);
}

.hp-article__figure figcaption {
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
	margin-top: var(--hp-space-2);
}

.hp-article__layout {
	padding-bottom: var(--hp-space-8);
}

/* The narrow shell sets the measure — no second cap inside it. */
.hp-prose {
	font-size: var(--hp-fs-md);
	line-height: var(--hp-lh-reading);
	color: var(--hp-ink);
}

.hp-prose > :first-child {
	margin-top: 0;
}

.hp-prose > h2 {
	font-size: var(--hp-fs-2xl);
	margin-top: var(--hp-space-7);
	scroll-margin-top: calc(var(--hp-header-h) + 1.5rem);
}

.hp-prose > h3 {
	font-size: var(--hp-fs-xl);
	margin-top: var(--hp-space-6);
	scroll-margin-top: calc(var(--hp-header-h) + 1.5rem);
}

.hp-prose li {
	margin-bottom: var(--hp-space-2);
}

.hp-prose a {
	color: var(--hp-navy-600);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.hp-prose a:hover {
	color: var(--hp-red-ink);
}

.hp-prose img {
	border-radius: var(--hp-radius);
	margin-block: var(--hp-space-5);
}

.hp-prose blockquote {
	margin: var(--hp-space-6) 0;
	padding: var(--hp-space-2) 0 var(--hp-space-2) var(--hp-space-5);
	border-left: 4px solid var(--hp-red);
	font-size: var(--hp-fs-lg);
	font-weight: 500;
	color: var(--hp-navy-800);
}

.hp-prose blockquote p:last-child {
	margin-bottom: 0;
}

.hp-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--hp-fs-sm);
	margin-block: var(--hp-space-5);
}

.hp-prose th,
.hp-prose td {
	border: 1px solid var(--hp-line);
	padding: var(--hp-space-3);
	text-align: left;
}

.hp-prose th {
	background: var(--hp-navy-050);
	color: var(--hp-navy-900);
}

/* Wide content must scroll inside itself, never the page. */
.hp-scroll-x {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Callouts */
.hp-callout {
	margin-block: var(--hp-space-6);
	padding: var(--hp-space-5);
	border-radius: var(--hp-radius-lg);
	background: var(--hp-navy-050);
	border-left: 5px solid var(--hp-navy);
	font-size: var(--hp-fs-base);
	line-height: var(--hp-lh-normal);
}

.hp-callout > :last-child {
	margin-bottom: 0;
}

.hp-callout__title {
	display: flex;
	align-items: center;
	gap: var(--hp-space-2);
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hp-navy);
	margin-bottom: var(--hp-space-3);
}

.hp-callout__title svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.hp-callout--alert {
	background: var(--hp-red-050);
	border-left-color: var(--hp-red);
}

.hp-callout--alert .hp-callout__title {
	color: var(--hp-red-ink);
}

/* Article footer: sources, share */
.hp-sources {
	margin-top: var(--hp-space-7);
	padding-top: var(--hp-space-5);
	border-top: 3px solid var(--hp-navy);
}

.hp-sources h2 {
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-base);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.hp-sources ol {
	font-size: var(--hp-fs-sm);
	color: var(--hp-ink-2);
	line-height: var(--hp-lh-normal);
}

/* --------------------------------------------------------------------------
   8. Widgets
   -------------------------------------------------------------------------- */

.hp-widget h2 {
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hp-navy-900);
	padding-bottom: var(--hp-space-2);
	margin-bottom: var(--hp-space-4);
	border-bottom: 2px solid var(--hp-red);
}

.hp-widget--boxed {
	background: var(--hp-navy);
	color: var(--hp-white);
	border-radius: var(--hp-radius-lg);
	padding: var(--hp-space-5);
}

.hp-widget--boxed h2 {
	color: var(--hp-white);
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.hp-widget--boxed p {
	color: var(--hp-navy-200);
	font-size: var(--hp-fs-sm);
}

/* --------------------------------------------------------------------------
   9. Forms + buttons
   -------------------------------------------------------------------------- */

.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--hp-space-2);
	min-height: 48px;
	padding: 0 var(--hp-space-5);
	border: 2px solid transparent;
	border-radius: var(--hp-radius);
	background: var(--hp-red-ink);
	color: var(--hp-white);
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-base);
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background var(--hp-dur-fast) var(--hp-ease),
		transform var(--hp-dur-fast) var(--hp-ease);
}

.hp-btn:hover {
	background: var(--hp-red-deep);
	color: var(--hp-white);
	text-decoration: none;
}

.hp-btn:active {
	transform: translateY(1px);
}

.hp-btn--sm {
	min-height: 40px;
	padding: 0 var(--hp-space-4);
	font-size: var(--hp-fs-sm);
}

/* The header CTA is a nice-to-have — drop it before the logo gets squeezed. */
.hp-masthead__cta {
	display: none;
}

@media (min-width: 480px) {
	.hp-masthead__cta {
		display: inline-flex;
	}
}

.hp-btn--ghost {
	background: transparent;
	border-color: var(--hp-navy);
	color: var(--hp-navy);
}

.hp-btn--ghost:hover {
	background: var(--hp-navy);
	color: var(--hp-white);
}

.hp-btn--onDark {
	background: var(--hp-white);
	color: var(--hp-navy-900);
}

.hp-btn--onDark:hover {
	background: var(--hp-navy-100);
	color: var(--hp-navy-900);
}

.hp-field {
	display: grid;
	gap: var(--hp-space-2);
}

.hp-field label {
	font-size: var(--hp-fs-sm);
	font-weight: 500;
}

.hp-input {
	width: 100%;
	min-height: 48px;
	padding: 0 var(--hp-space-4);
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-base);
	color: var(--hp-ink);
	background: var(--hp-white);
	border: 1px solid var(--hp-line-strong);
	border-radius: var(--hp-radius);
}

.hp-input::placeholder {
	color: var(--hp-ink-3);
}

.hp-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hp-space-2);
}

.hp-inline-form .hp-input {
	flex: 1 1 220px;
	min-width: 0;
}

.hp-inline-form .hp-help {
	flex: 1 0 100%;
	font-size: var(--hp-fs-xs);
	margin: 0;
	color: var(--hp-ink-2);
}

.hp-inline-form--stacked {
	flex-direction: column;
}

.hp-inline-form--stacked .hp-input {
	flex: none;
}

.hp-inline-form--stacked .hp-btn {
	width: 100%;
}

.hp-widget--boxed .hp-inline-form .hp-help {
	color: var(--hp-navy-200);
}

.hp-newsletter .hp-help {
	color: var(--hp-navy-200);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.hp-footer {
	background: var(--hp-navy-900);
	color: var(--hp-navy-200);
	padding-block: var(--hp-space-7) var(--hp-space-5);
	font-size: var(--hp-fs-sm);
	padding-bottom: max(var(--hp-space-5), env(safe-area-inset-bottom));
}

.hp-footer__grid {
	display: grid;
	gap: var(--hp-space-6);
	grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
	.hp-footer__grid {
		grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
		gap: var(--hp-space-7);
	}
}

.hp-footer h2 {
	font-family: var(--hp-font-ui);
	font-size: var(--hp-fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hp-white);
	margin-bottom: var(--hp-space-4);
}

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

.hp-footer li {
	margin-bottom: var(--hp-space-2);
}

.hp-footer a {
	color: var(--hp-navy-200);
}

.hp-footer a:hover {
	color: var(--hp-white);
}

.hp-footer__brand img {
	height: 26px;
	width: auto;
	margin-bottom: var(--hp-space-4);
}

.hp-footer__brand .hp-disclaimer {
	font-size: var(--hp-fs-sm);
	color: var(--hp-navy-200);
}

.hp-footer__legal {
	margin-top: var(--hp-space-7);
	padding-top: var(--hp-space-4);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-wrap: wrap;
	gap: var(--hp-space-4);
	justify-content: space-between;
	font-size: var(--hp-fs-xs);
	color: var(--hp-navy-200);
}

.hp-footer__legal p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Utilities + preferences
   -------------------------------------------------------------------------- */

.hp-empty {
	padding: var(--hp-space-8) 0;
	text-align: center;
	color: var(--hp-ink-2);
}

.hp-lock {
	overflow: hidden;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.hp-header,
	.hp-footer,
	.hp-newsletter,
	.hp-progress {
		display: none !important;
	}
}
