/*
Theme Name:   Headline
Description:  Modern, SEO-first magazine child theme for GeneratePress. Self-hosted Inter, built-in schema, breadcrumbs, table of contents, Summary / Key points / FAQ / Sources article sections and Most read. No jQuery.
Author:       Headline
Template:     generatepress
Version:      1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  headline
*/

/* ---------- Font: self-hosted Inter (variable) with a metric-matched fallback to avoid layout shift ---------- */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	ascent-override: 90.2%;
	descent-override: 22.48%;
	line-gap-override: 0%;
	size-adjust: 107.4%;
}

/* ---------- Tokens ---------- */
:root {
	--hl-accent: #c8102e;
	--hl-accent-soft: #fdf1f3;
	--hl-accent-line: #f5d0d6;
	--hl-ink: #0f172a;
	--hl-text: #1e293b;
	--hl-muted: #64748b;
	--hl-line: #e2e8f0;
	--hl-soft: #f8fafc;
	--hl-dark: #0f172a;
	--hl-radius: 12px;
	--hl-radius-sm: 8px;
	--hl-gap: 24px;
	--hl-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
	--hl-font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--hl-font);
}
body {
	color: var(--hl-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01";
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--hl-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Header: logo, menu and search in one sticky bar ---------- */
.hl-header {
	--hh-bg: var(--hl-dark);
	--hh-fg: #cbd5e1;
	--hh-strong: #fff;
	--hh-hover: rgba(255, 255, 255, .08);
	--hh-field: rgba(255, 255, 255, .07);
	--hh-field-line: rgba(255, 255, 255, .14);
	--hh-line: rgba(255, 255, 255, .08);
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hh-bg);
	color: var(--hh-fg);
	border-bottom: 1px solid var(--hh-line);
}
.hl-header-light .hl-header {
	--hh-bg: rgba(255, 255, 255, .96);
	--hh-fg: var(--hl-text);
	--hh-strong: var(--hl-ink);
	--hh-hover: var(--hl-soft);
	--hh-field: var(--hl-soft);
	--hh-field-line: var(--hl-line);
	--hh-line: var(--hl-line);
	backdrop-filter: saturate(180%) blur(10px);
}
.admin-bar .hl-header { top: 32px; }

.hl-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
	padding: 0 20px;
}
.hl-logo { display: flex; flex: none; align-items: center; }
.hl-logo img { display: block; width: auto; height: 44px; max-height: 44px; }
.hl-footer__brand img { display: block; width: auto; height: 40px; }
@media (max-width: 1024px) {
	.hl-logo img { height: 36px; }
}
.hl-logo--text {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--hh-strong);
	text-decoration: none;
}
.hl-logo--text::after { content: "."; color: var(--hl-accent); }
.hl-logo--text:hover { color: var(--hh-strong); }

.hl-nav { flex: 1; min-width: 0; }
.hl-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hl-menu li { position: relative; margin: 0; }
.hl-menu a {
	position: relative;
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--hh-fg);
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.hl-menu a:hover { background: var(--hh-hover); color: var(--hh-strong); }
.hl-menu > .current-menu-item > a,
.hl-menu > .current-menu-ancestor > a,
.hl-menu > .current-post-ancestor > a,
.hl-menu > .current-category-ancestor > a { color: var(--hh-strong); }
.hl-menu > .current-menu-item > a::after,
.hl-menu > .current-menu-ancestor > a::after,
.hl-menu > .current-post-ancestor > a::after,
.hl-menu > .current-category-ancestor > a::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 2px;
	left: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--hl-accent);
}
.hl-menu > .menu-item-has-children > a { padding-right: 28px; }
.hl-menu > .menu-item-has-children::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid var(--hh-fg);
	border-bottom: 1.5px solid var(--hh-fg);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.hl-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
	box-shadow: var(--hl-shadow);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.hl-menu li:hover > .sub-menu,
.hl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hl-menu .sub-menu a { font-weight: 500; color: var(--hl-text); }
.hl-menu .sub-menu a:hover { background: var(--hl-soft); color: var(--hl-ink); }

/* Search */
.hl-search {
	display: flex;
	flex: none;
	align-items: center;
	width: 260px;
	height: 40px;
	padding: 0 4px 0 16px;
	border: 1px solid var(--hh-field-line);
	border-radius: 999px;
	background: var(--hh-field);
	transition: border-color .2s;
}
.hl-search:focus-within { border-color: var(--hl-accent); }
.hl-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 14px;
	color: var(--hh-strong);
	outline: 0;
}
.hl-search input[type="search"]::placeholder { color: var(--hh-fg); opacity: .75; }
.hl-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hl-header .hl-search button {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hl-accent);
	color: #fff;
	cursor: pointer;
}
.hl-header .hl-search button:hover,
.hl-header .hl-search button:focus { background: #a50d26; color: #fff; }

/* Mobile menu button */
.hl-header .hl-toggle {
	display: none;
	flex: none;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 9px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--hh-strong);
	cursor: pointer;
}
.hl-header .hl-toggle:hover,
.hl-header .hl-toggle:focus { background: var(--hh-hover); color: var(--hh-strong); }
.hl-toggle span {
	display: block;
	height: 2px;
	margin: 5px 0;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s, opacity .2s;
}
.hl-header.is-open .hl-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hl-header.is-open .hl-toggle span:nth-child(2) { opacity: 0; }
.hl-header.is-open .hl-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	.hl-header__inner {
		flex-wrap: wrap;
		height: auto;
		min-height: 60px;
		gap: 0 12px;
		padding: 9px 16px;
	}
	.hl-header .hl-toggle { display: block; }
	.hl-nav,
	.hl-search { display: none; }
	.hl-header.is-open .hl-search {
		display: flex;
		order: 3;
		width: 100%;
		margin: 8px 0 6px;
	}
	.hl-header.is-open .hl-nav {
		display: block;
		order: 4;
		flex-basis: 100%;
		max-height: calc(100vh - 140px);
		padding-bottom: 10px;
		overflow-y: auto;
	}
	.hl-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.hl-menu a { padding: 13px 4px; border-bottom: 1px solid var(--hh-line); border-radius: 0; }
	.hl-menu a:hover { background: transparent; }
	.hl-menu > .current-menu-item > a::after,
	.hl-menu > .current-menu-ancestor > a::after,
	.hl-menu > .current-post-ancestor > a::after,
	.hl-menu > .current-category-ancestor > a::after { top: 14px; right: auto; bottom: 14px; left: -16px; width: 3px; height: auto; }
	.hl-menu > .menu-item-has-children::after { display: none; }
	.hl-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.hl-menu .sub-menu a { color: var(--hh-fg); }
	.hl-menu .sub-menu a:hover { background: transparent; color: var(--hh-strong); }
}
@media (max-width: 782px) {
	.admin-bar .hl-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .hl-header { top: 0; }
}

/* ---------- Hero slider ---------- */
.hl-slider {
	position: relative;
	margin-bottom: 48px;
	overflow: hidden;
	border-radius: var(--hl-radius);
	background: var(--hl-dark);
}
.hl-slider__track {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.hl-slider__track::-webkit-scrollbar { display: none; }
.hl-slide {
	position: relative;
	isolation: isolate;
	display: flex;
	flex: 0 0 100%;
	align-items: flex-end;
	aspect-ratio: 21 / 9;
	min-height: 400px;
	color: #fff;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.hl-slide__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(135deg, #1e293b, #334155);
}
.hl-slide__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 6s ease-out;
}
.hl-slide:hover .hl-slide__media img { transform: scale(1.04); }
.hl-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, .94) 0%, rgba(15, 23, 42, .6) 38%, rgba(15, 23, 42, 0) 72%);
}
.hl-slide__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	max-width: 820px;
	padding: 40px 48px 72px;
}
.hl-slide__cat {
	position: relative;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--hl-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
}
.hl-slide__cat:hover { background: #fff; color: var(--hl-accent); }
.hl-slide__title {
	margin: 0;
	font-size: clamp(26px, 3.6vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.035em;
}
.hl-slide__title a { color: #fff; text-decoration: none; }
.hl-slide__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hl-slide:hover .hl-slide__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hl-slide__excerpt { max-width: 640px; margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.hl-slide__meta { font-size: 13px; color: rgba(255, 255, 255, .7); }

.hl-slider__nav {
	position: absolute;
	right: 24px;
	bottom: 22px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
}
.hl-slider .hl-slider__prev,
.hl-slider .hl-slider__next {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background .2s, color .2s;
}
.hl-slider .hl-slider__prev:hover,
.hl-slider .hl-slider__next:hover { background: #fff; color: var(--hl-ink); }
.hl-slider__dots { display: flex; gap: 6px; }
.hl-slider .hl-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: width .25s, background .25s;
}
.hl-slider .hl-slider__dot:hover { background: rgba(255, 255, 255, .8); }
.hl-slider .hl-slider__dot[aria-current="true"] { width: 26px; background: #fff; }

@media (max-width: 768px) {
	.hl-slide { aspect-ratio: 4 / 5; min-height: 0; }
	.hl-slide__body { padding: 24px 20px 60px; }
	.hl-slider__nav { right: 20px; bottom: 22px; left: 20px; }
	.hl-slider .hl-slider__prev,
	.hl-slider .hl-slider__next { display: none; }
}
@media (max-width: 600px) {
	.hl-slide__excerpt { display: none; }
	.hl-slider { margin-bottom: 36px; }
}

/* ---------- Layout ---------- */
.one-container .site-content { padding: 32px 20px 48px; }
.hl-front .site-content { padding-top: 28px; }

.hl-section { margin-bottom: 52px; }
.hl-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.hl-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 22px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--hl-ink);
}
.hl-section__title::before {
	content: "";
	flex: none;
	width: 4px;
	height: 1.05em;
	border-radius: 2px;
	background: var(--hl-accent);
}
.hl-section__title a { color: var(--hl-ink); text-decoration: none; }
.hl-section__title a:hover { color: var(--hl-accent); }
.hl-section__more {
	flex: none;
	padding: 6px 12px;
	border: 1px solid var(--hl-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hl-text);
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.hl-section__more::after { content: " \2192"; }
.hl-section__more:hover { border-color: var(--hl-accent); color: var(--hl-accent); }

.hl-grid-lead,
.hl-grid-4 {
	display: grid;
	gap: var(--hl-gap);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hl-grid-lead .hl-card--lead {
	grid-column: span 2;
	grid-row: span 2;
}

.hl-split {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 40px;
	margin-bottom: 52px;
}
.hl-split .hl-section { margin-bottom: 0; }

.hl-list { display: grid; gap: 20px; }

/* ---------- Cards ---------- */
.hl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.hl-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--hl-radius);
	background: var(--hl-soft);
}
.hl-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hl-card:hover .hl-card__media img { transform: scale(1.04); }
.hl-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.hl-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.015em;
}
.hl-card__title a {
	color: var(--hl-ink);
	text-decoration: none;
	transition: color .2s;
}
/* Whole card is clickable; the category link sits above the overlay. */
.hl-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.hl-card:hover .hl-card__title a { color: var(--hl-accent); }
.hl-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--hl-muted);
}
.hl-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 13px;
	color: var(--hl-muted);
}
.hl-card__cat {
	position: relative;
	z-index: 1;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--hl-accent-soft);
	font-size: 12px;
	font-weight: 600;
	color: var(--hl-accent);
	text-decoration: none;
}
.hl-card__cat:hover { background: var(--hl-accent); color: #fff; }

.hl-card--lead .hl-card__title { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; }
.hl-card--lead .hl-card__excerpt { font-size: 17px; }

.hl-card--row {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 18px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--hl-line);
}
.hl-card--row:last-child { border-bottom: 0; }
.hl-card--row .hl-card__media { border-radius: var(--hl-radius-sm); }
.hl-card--row .hl-card__title { font-size: 18px; }

/* ---------- Most read ---------- */
.hl-mostread {
	margin-bottom: 32px;
	padding: 20px 20px 8px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: var(--hl-soft);
}
.hl-mostread .hl-section__title { margin-bottom: 8px; font-size: 19px; }
.hl-mostread ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hl-mr;
}
.hl-mostread li {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0;
	border-top: 1px solid var(--hl-line);
	counter-increment: hl-mr;
}
.hl-mostread li:first-child { border-top: 0; }
.hl-mostread li::before {
	content: counter(hl-mr, decimal-leading-zero);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--hl-accent);
	font-variant-numeric: tabular-nums;
}
.hl-mostread a {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hl-ink);
	text-decoration: none;
}
.hl-mostread a:hover { color: var(--hl-accent); }

/* ---------- Breadcrumbs ---------- */
.hl-breadcrumbs { margin-bottom: 16px; font-size: 13px; color: var(--hl-muted); }
.hl-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hl-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.hl-breadcrumbs a { color: var(--hl-muted); text-decoration: none; }
.hl-breadcrumbs a:hover { color: var(--hl-accent); }

/* ---------- Single post ---------- */
.single .entry-title {
	margin-bottom: 0;
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.035em;
	color: var(--hl-ink);
}
.hl-standfirst {
	margin: 16px 0 0;
	font-size: 20px;
	line-height: 1.5;
	color: #475569;
}
.hl-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 20px 0 24px;
	font-size: 14px;
	color: var(--hl-muted);
}
.hl-meta img { border-radius: 50%; }
.hl-meta a { color: var(--hl-ink); font-weight: 600; text-decoration: none; }
.hl-meta a:hover { color: var(--hl-accent); }
.hl-meta > * + *:not(img):not(.hl-meta__author)::before { content: "\00B7"; margin-right: 16px; color: #cbd5e1; }
.hl-hero { margin: 0 0 28px; }
.hl-hero img { display: block; width: 100%; height: auto; border-radius: var(--hl-radius); }
.hl-hero figcaption { margin-top: 10px; font-size: 13px; text-align: center; color: var(--hl-muted); }

/* Summary ("The short answer") */
.hl-summary {
	margin: 0 0 20px;
	padding: 20px 22px;
	border: 1px solid var(--hl-accent-line);
	border-radius: var(--hl-radius);
	background: var(--hl-accent-soft);
	font-size: 17px;
	line-height: 1.65;
	color: var(--hl-text);
}
.hl-summary__label {
	display: inline-block;
	margin: 0 0 10px !important;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--hl-accent-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--hl-accent);
}
.hl-summary p { margin: 0 0 .75em; }
.hl-summary p:last-child { margin-bottom: 0; }

/* Key points */
.hl-keypoints {
	margin: 0 0 32px;
	padding: 20px 22px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
	box-shadow: var(--hl-shadow);
}
.hl-keypoints__title {
	margin: 0 0 12px !important;
	font-size: 15px;
	font-weight: 700;
	color: var(--hl-ink);
}
.hl-keypoints ul { margin: 0; padding: 0; list-style: none; }
.hl-keypoints li {
	position: relative;
	padding: 6px 0 6px 28px;
	font-size: 15px;
	line-height: 1.55;
}
.hl-keypoints li::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--hl-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c8102e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hl-keypoints a { color: var(--hl-accent); }

/* Article body */
.single .entry-content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--hl-text);
}
.entry-content h2 { margin: 1.8em 0 .6em; font-size: 26px; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; color: var(--hl-ink); }
.entry-content h3 { margin: 1.5em 0 .5em; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; color: var(--hl-ink); }
.entry-content h2,
.entry-content h3 { scroll-margin-top: 96px; /* clears the sticky header */ }
.entry-content a { color: var(--hl-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul,
.entry-content ol { margin-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--hl-accent); }
.entry-content blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--hl-accent);
	font-size: 21px;
	font-weight: 500;
	font-style: normal;
	line-height: 1.5;
	color: var(--hl-ink);
}
.entry-content img { height: auto; border-radius: var(--hl-radius-sm); }
.entry-content figure { margin: 1.8em 0; }
.entry-content .wp-block-image img { border: 1px solid var(--hl-line); }
.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: var(--hl-muted);
}
.entry-content table {
	width: 100%;
	margin: 1.8em 0;
	border: 1px solid var(--hl-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--hl-radius-sm);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--hl-line); text-align: left; }
.entry-content thead th { background: var(--hl-soft); font-weight: 700; color: var(--hl-ink); }
.entry-content tr:last-child td { border-bottom: 0; }

/* ---------- Article components (use inside a Custom HTML block) ----------
   hl-note, hl-callout(--warn|--tip), hl-stats, hl-bars, hl-steps,
   hl-procon, hl-checklist, hl-verdict, hl-domain-cards. */

/* Short lists in two columns */
.entry-content .hl-cols { columns: 2; column-gap: 32px; }
.entry-content .hl-cols li { break-inside: avoid; }

/* Note box, e.g. "How we reviewed" */
.entry-content .hl-note {
	margin: 0 0 32px;
	padding: 18px 22px;
	border: 1px solid var(--hl-line);
	border-left: 4px solid var(--hl-ink);
	border-radius: var(--hl-radius-sm);
	background: var(--hl-soft);
	font-size: 15px;
	line-height: 1.6;
}
.entry-content .hl-note > p:first-child,
.entry-content .hl-callout__title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hl-ink);
}
.entry-content .hl-note ul { margin: 0 0 0 1.1em; }
.entry-content .hl-note li { margin-bottom: .35em; }
.entry-content .hl-note > :last-child,
.entry-content .hl-callout > :last-child { margin-bottom: 0; }

/* Callouts */
.entry-content .hl-callout {
	margin: 28px 0;
	padding: 18px 22px 18px 58px;
	border: 1px solid #c7d7fe;
	border-radius: var(--hl-radius);
	background: #f0f5ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%233b5bdb'/%3E%3Cpath d='M12 11v6M12 7.5v.5' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") 20px 20px / 22px no-repeat;
	font-size: 16px;
	line-height: 1.65;
}
.entry-content .hl-callout--warn {
	border-color: #fcd9a8;
	background-color: #fff8ee;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1.5 21h21z' fill='%23d9480f'/%3E%3Cpath d='M12 9v5M12 17.2v.3' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.entry-content .hl-callout--tip {
	border-color: #b2e3c6;
	background-color: #effaf3;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%232b8a3e'/%3E%3Cpath d='m7.5 12.5 3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.entry-content .hl-callout p { margin: 0 0 .6em; }

/* Stat tiles */
.entry-content .hl-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px;
}
.entry-content .hl-stat {
	padding: 16px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
	box-shadow: var(--hl-shadow);
}
.entry-content .hl-stat__value {
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.03em;
	color: var(--hl-ink);
}
.entry-content .hl-stat__value.is-accent { color: var(--hl-accent); }
.entry-content .hl-stat__label {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--hl-muted);
}

/* Horizontal bar chart */
.entry-content .hl-bars {
	margin: 28px 0;
	padding: 20px 22px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
}
.entry-content .hl-bars__title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--hl-ink); }
.entry-content .hl-bars ul { margin: 0; padding: 0; list-style: none; }
.entry-content .hl-bars li {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin: 0 0 10px;
	font-size: 14px;
}
.entry-content .hl-bars li::marker { content: none; }
.entry-content .hl-bar__label { font-weight: 600; color: var(--hl-text); }
.entry-content .hl-bar__track { display: block; border-radius: 6px; background: var(--hl-soft); }
.entry-content .hl-bar__fill {
	display: block;
	min-width: 64px;
	padding: 5px 10px;
	border-radius: 6px;
	background: #94a3b8;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.entry-content .hl-bars li.is-best .hl-bar__fill { background: var(--hl-accent); }
.entry-content .hl-bars li.is-best .hl-bar__label { color: var(--hl-accent); }
.entry-content .hl-bars__note { margin: 12px 0 0; font-size: 13px; color: var(--hl-muted); }

/* Numbered step cards */
.entry-content .hl-steps {
	margin: 24px 0;
	padding: 0;
	list-style: none;
	counter-reset: hl-step;
}
.entry-content .hl-steps > li {
	position: relative;
	margin: 0 0 12px;
	padding: 16px 18px 16px 64px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
	counter-increment: hl-step;
	font-size: 16px;
	line-height: 1.6;
}
.entry-content .hl-steps > li::before {
	content: counter(hl-step);
	position: absolute;
	top: 16px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--hl-ink);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
.entry-content .hl-steps > li::marker { content: none; }
.entry-content .hl-steps strong { display: block; color: var(--hl-ink); }

/* Pros and cons */
.entry-content .hl-procon {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0;
}
.entry-content .hl-procon > div {
	padding: 18px 20px;
	border: 1px solid var(--hl-line);
	border-top: 4px solid #2b8a3e;
	border-radius: var(--hl-radius);
	background: #fff;
}
.entry-content .hl-procon > div + div { border-top-color: var(--hl-accent); }
.entry-content .hl-procon__title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--hl-ink); }
.entry-content .hl-procon ul { margin: 0; padding: 0; list-style: none; }
.entry-content .hl-procon li {
	position: relative;
	margin: 0;
	padding: 7px 0 7px 26px;
	border-top: 1px solid var(--hl-line);
	font-size: 15px;
	line-height: 1.5;
}
.entry-content .hl-procon li:first-child { border-top: 0; }
.entry-content .hl-procon li::before {
	content: "\2713";
	position: absolute;
	top: 7px;
	left: 0;
	font-weight: 800;
	color: #2b8a3e;
}
.entry-content .hl-procon > div + div li::before { content: "\2715"; color: var(--hl-accent); }

/* Checklist */
.entry-content .hl-checklist { margin: 20px 0; padding: 0; list-style: none; }
.entry-content .hl-checklist li {
	position: relative;
	margin: 0 0 8px;
	padding: 12px 16px 12px 48px;
	border-radius: var(--hl-radius-sm);
	background: var(--hl-soft);
	font-size: 16px;
	line-height: 1.55;
}
.entry-content .hl-checklist li::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 16px;
	width: 20px;
	height: 20px;
	border: 2px solid #94a3b8;
	border-radius: 6px;
	background: #fff;
}

/* Domain cards */
.entry-content .hl-domain-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 8px;
}
.entry-content .hl-domain-card {
	padding: 16px 18px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
	font-size: 14px;
	line-height: 1.55;
}
.entry-content .hl-domain-card.is-subject { border-color: var(--hl-ink); box-shadow: var(--hl-shadow); }
.entry-content .hl-domain-card.is-official { border-color: #b2e3c6; background: #effaf3; }
.entry-content .hl-domain-card__name {
	display: block;
	margin-bottom: 4px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--hl-ink);
	word-break: break-word;
}
.entry-content .hl-domain-card__tag {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--hl-soft);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hl-muted);
}
.entry-content .hl-domain-card p { margin: 0; }

/* Verdict box */
.entry-content .hl-verdict {
	margin: 28px 0;
	padding: 24px 26px;
	border-radius: var(--hl-radius);
	background: var(--hl-dark);
	color: #e2e8f0;
	font-size: 16px;
	line-height: 1.7;
}
.entry-content .hl-verdict__label {
	display: inline-block;
	margin: 0 0 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--hl-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
}
.entry-content .hl-verdict p { margin: 0 0 .8em; }
.entry-content .hl-verdict p:last-child { margin-bottom: 0; }
.entry-content .hl-verdict strong { color: #fff; }
.entry-content .hl-verdict a { color: #fff; }

@media (max-width: 900px) {
	.entry-content .hl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content .hl-domain-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.entry-content .hl-procon { grid-template-columns: 1fr; }
	.entry-content .hl-bars li { grid-template-columns: 1fr; gap: 4px; }
	.entry-content .hl-callout { padding: 16px 16px 16px 50px; background-position: 16px 18px; }
	.entry-content .hl-steps > li { padding-left: 58px; }
	.entry-content .hl-verdict { padding: 20px; }
}

/* Table of contents */
.entry-content .hl-toc {
	margin: 0 0 36px;
	overflow: hidden;
	border: 1px solid var(--hl-line);
	border-radius: 16px;
	background: linear-gradient(180deg, #fff 0%, var(--hl-soft) 100%);
	box-shadow: var(--hl-shadow);
	line-height: 1.4;
}
.entry-content .hl-toc summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.entry-content .hl-toc summary::-webkit-details-marker { display: none; }
.entry-content .hl-toc details[open] summary { border-bottom: 1px solid var(--hl-line); }
.hl-toc__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--hl-accent-soft);
	color: var(--hl-accent);
}
.hl-toc__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hl-toc__title { font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--hl-ink); }
.hl-toc__meta { font-size: 13px; color: var(--hl-muted); }
.hl-toc__chev {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-left: auto;
	border: 1px solid var(--hl-line);
	border-radius: 50%;
	background: #fff;
	transition: transform .25s, border-color .2s;
}
.hl-toc__chev::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid var(--hl-muted);
	border-bottom: 2px solid var(--hl-muted);
	transform: rotate(45deg);
}
.entry-content .hl-toc summary:hover .hl-toc__chev { border-color: var(--hl-muted); }
.entry-content .hl-toc details[open] .hl-toc__chev { transform: rotate(180deg); }

.entry-content .hl-toc ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--hl-toc-rows, 6), auto);
	grid-auto-flow: column; /* 01–06 down the left, 07–12 down the right */
	gap: 2px 12px;
	margin: 0;
	padding: 12px 12px 14px;
	list-style: none;
	counter-reset: hl-toc;
}
/* Short articles that also list H3s read better in one column. */
.entry-content .hl-toc ol:has(.is-h3) { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
.entry-content .hl-toc li { margin: 0; }
.entry-content .hl-toc li::marker { content: none; }
.entry-content .hl-toc .is-h2 { counter-increment: hl-toc; }
.entry-content .hl-toc a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--hl-text);
	text-decoration: none;
	transition: background .15s, color .15s;
}
.entry-content .hl-toc .is-h2 > a::before {
	content: counter(hl-toc, decimal-leading-zero);
	flex: none;
	min-width: 30px;
	border: 1px solid var(--hl-line);
	border-radius: 7px;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	color: var(--hl-muted);
	font-variant-numeric: tabular-nums;
	transition: background .15s, border-color .15s, color .15s;
}
.entry-content .hl-toc .is-h3 > a { padding-left: 52px; font-size: 14px; color: var(--hl-muted); }
.entry-content .hl-toc a:hover { background: var(--hl-accent-soft); color: var(--hl-ink); }
.entry-content .hl-toc .is-h2 > a:hover::before { border-color: var(--hl-accent); background: var(--hl-accent); color: #fff; }

@media (max-width: 600px) {
	.entry-content .hl-toc summary { padding: 14px 16px; }
	.entry-content .hl-toc ol { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; padding: 8px 8px 10px; }
}

/* FAQ */
.hl-faq { margin-top: 2.4em; }
.hl-faq__item {
	margin-bottom: 10px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius-sm);
	background: #fff;
	transition: border-color .2s;
}
.hl-faq__item[open] { border-color: #cbd5e1; }
.hl-faq__item summary {
	position: relative;
	padding: 14px 48px 14px 18px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--hl-ink);
	list-style: none;
	cursor: pointer;
}
.hl-faq__item summary::-webkit-details-marker { display: none; }
.hl-faq__item summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 18px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var(--hl-muted);
	transform: translateY(-50%);
}
.hl-faq__item[open] summary::after { content: "\2212"; color: var(--hl-accent); }
.hl-faq__answer { padding: 0 18px 16px; font-size: 16px; line-height: 1.65; }
.hl-faq__answer p { margin: 0 0 .75em; }
.hl-faq__answer p:last-child { margin-bottom: 0; }

/* Sources */
.hl-sources { margin-top: 2.4em; font-size: 15px; }
.hl-sources h2 { font-size: 20px; }
.hl-sources ol { margin-left: 1.2em; }
.hl-sources a { word-break: break-word; }

/* Tags, share, author */
.hl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}
.hl-tags a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--hl-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hl-text);
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.hl-tags a:hover { border-color: var(--hl-accent); color: var(--hl-accent); }

.hl-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 20px 0 0;
	font-size: 13px;
}
.hl-share span { margin-right: 4px; font-weight: 700; color: var(--hl-ink); }
.hl-share a {
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--hl-dark);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	transition: background .2s;
}
.hl-share a:hover { background: var(--hl-accent); color: #fff; }

.hl-author {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	margin: 32px 0 0;
	padding: 20px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: var(--hl-soft);
}
.hl-author img { width: 64px; height: 64px; border-radius: 50%; }
.hl-author p { margin: 0; }
.hl-author__name a { font-size: 17px; font-weight: 700; color: var(--hl-ink); text-decoration: none; }
.hl-author__name a:hover { color: var(--hl-accent); }
.hl-author__bio { margin-top: 4px !important; font-size: 14px; line-height: 1.6; color: var(--hl-muted); }

.hl-related { margin-top: 48px; }

/* ---------- Archives ---------- */
.hl-archive-head {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--hl-line);
}
.hl-archive-head h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; color: var(--hl-ink); }
.hl-archive-head h1 span { font-weight: 500; color: var(--hl-muted); }
.hl-archive-head__desc { margin-top: 10px; font-size: 17px; color: var(--hl-muted); }
.hl-archive-head__desc p:last-child { margin-bottom: 0; }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 36px;
}
.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 14px;
	border: 1px solid var(--hl-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: var(--hl-text);
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--hl-ink);
	border-color: var(--hl-ink);
	color: #fff;
}

/* ---------- Sidebar ---------- */
.inside-right-sidebar .widget {
	margin-bottom: 32px;
	padding: 0;
	background: transparent;
}
.inside-right-sidebar .widget-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--hl-ink);
}

/* ---------- Footer ---------- */
.hl-footer { background: var(--hl-dark); color: #cbd5e1; }
.hl-footer .grid-container { padding: 40px 20px 24px; }
.hl-footer__brand {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.035em;
	color: #fff;
	text-decoration: none;
}
.hl-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid #1e293b;
	list-style: none;
}
.hl-footer a { font-size: 14px; font-weight: 500; color: #cbd5e1; text-decoration: none; }
.hl-footer a:hover { color: #fff; }
.site-info {
	background: var(--hl-dark);
	font-size: 13px;
	color: #94a3b8;
}
.site-info a { color: #e2e8f0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hl-grid-lead,
	.hl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hl-grid-lead .hl-card--lead { grid-column: 1 / -1; grid-row: auto; }
	.hl-split { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) {
	.one-container .site-content,
	.hl-front .site-content { padding: 20px 16px 36px; }
	.hl-card--lead .hl-card__title { font-size: 24px; }
	.single .entry-content { font-size: 17px; }
	.hl-standfirst { font-size: 18px; }
	.hl-summary,
	.hl-keypoints { padding: 16px 18px; }
}

@media (max-width: 600px) {
	:root { --hl-gap: 16px; }
	.hl-grid-lead,
	.hl-grid-4 { grid-template-columns: 1fr; }

	/* Small cards and rows become compact thumbnail + headline. */
	.hl-card--card,
	.hl-card--row {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--hl-line);
	}
	.hl-card--card .hl-card__media,
	.hl-card--row .hl-card__media { border-radius: var(--hl-radius-sm); }
	.hl-card--card .hl-card__excerpt,
	.hl-card--row .hl-card__excerpt { display: none; }
	.hl-card--card .hl-card__title,
	.hl-card--row .hl-card__title { font-size: 16px; }
	.hl-list { gap: 16px; }
	.hl-meta > *::before { display: none; }
	.hl-author { grid-template-columns: 52px minmax(0, 1fr); }
	.hl-author img { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; }
	.hl-card:hover .hl-card__media img { transform: none; }
}
