/*
 * LEO Insider — main.css
 * Dark editorial design system. Mobile-first, no external dependencies.
 *
 * ============================================================
 * WCAG AA CONTRAST VERIFICATION (WCAG 2.1 relative luminance)
 * Every text/background pair used in this theme, AA requires 4.5:1:
 *
 *   #E0E0EE text        on #0A0A14 background  → 15.07:1  pass (AAA)
 *   #E0E0EE text        on #0D0D1A surface     → 14.74:1  pass (AAA)
 *   #E0E0EE text        on #111120 card        → 14.28:1  pass (AAA)
 *   #E0E0EE text        on #1A1200 nl-box      → 14.21:1  pass (AAA)
 *   #9999BB secondary   on #0A0A14 background  →  7.15:1  pass (AAA)
 *   #9999BB secondary   on #0D0D1A surface     →  7.00:1  pass (AAA)
 *   #9999BB secondary   on #111120 card        →  6.78:1  pass (AA+)
 *   #FF9F1C accent      on #0A0A14 background  →  9.59:1  pass (links, pills)
 *   #FF9F1C accent      on #111120 card        →  9.09:1  pass
 *   #FF9F1C accent      on #1A1200 nl-box      →  9.05:1  pass
 *   #0A0A14 dark text   on #FF9F1C accent      →  9.59:1  pass (buttons, selection, breaking bar)
 *   #4DA6FF data blue   on #0A0A14 background  →  7.70:1  pass
 *   #4DA6FF data blue   on #111120 card        →  7.30:1  pass
 *   #00C896 success     on #0A0A14 background  →  9.10:1  pass
 *   #00C896 success     on #111120 card        →  8.63:1  pass (company status)
 *   #FF4D4D risk        on #0A0A14 background  →  6.02:1  pass
 *   #FF4D4D risk        on #111120 card        →  5.71:1  pass
 * ============================================================
 */

/* ---------- 1. Design tokens ---------- */

:root {
	--leo-bg: #0A0A14;
	--leo-surface: #0D0D1A;
	--leo-card: #111120;
	--leo-border: #1A1A2E;
	--leo-accent: #FF9F1C;
	--leo-blue: #4DA6FF;
	--leo-success: #00C896;
	--leo-risk: #FF4D4D;
	--leo-text: #E0E0EE;
	--leo-text-2: #9999BB;
	--leo-radius: 6px;
	--leo-container: 1200px;
	--leo-content: 800px;
	--leo-header-h: 56px;
	--leo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--leo-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 2. Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--leo-bg);
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--leo-accent);
	color: var(--leo-bg);
}

:focus-visible {
	outline: 2px solid var(--leo-accent);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.25;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0 0 0.6em;
	overflow-wrap: break-word;
}

p {
	margin: 0 0 1.25em;
}

a {
	color: var(--leo-accent);
}

img {
	max-width: 100%;
	height: auto;
}

[id] {
	scroll-margin-top: calc(var(--leo-header-h) + 24px);
}

/* ---------- 3. Layout ---------- */

.container {
	max-width: var(--leo-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.container-narrow {
	max-width: calc(var(--leo-content) + 40px);
	margin-inline: auto;
	padding-inline: 20px;
}

@media (min-width: 768px) {
	.container,
	.container-narrow {
		padding-inline: 32px;
	}
}

/* ---------- 4. Accessibility helpers ---------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: 8px;
	z-index: 1000;
	background: var(--leo-accent);
	color: var(--leo-bg);
	padding: 10px 16px;
	border-radius: var(--leo-radius);
	font-weight: 700;
	text-decoration: none;
}

/* ---------- 5. Buttons, pills, forms ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--leo-accent);
	color: var(--leo-bg);
	border: 0;
	border-radius: var(--leo-radius);
	padding: 9px 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.btn:hover {
	background: #FFAE3D;
	color: var(--leo-bg);
}

.category-pill {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--leo-accent);
	text-decoration: none;
	border: 1px solid rgba(255, 159, 28, 0.4);
	border-radius: 999px;
	padding: 3px 10px;
}

.category-pill:hover {
	background: rgba(255, 159, 28, 0.12);
}

.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pill-link {
	border: 1px solid var(--leo-border);
	background: var(--leo-card);
	color: var(--leo-text);
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pill-link:hover {
	border-color: var(--leo-accent);
	color: var(--leo-accent);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	color: var(--leo-text);
	border-radius: var(--leo-radius);
	padding: 10px 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	width: 100%;
}

input::placeholder,
textarea::placeholder {
	color: var(--leo-text-2);
	opacity: 1;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="search"]:focus-visible,
input[type="url"]:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--leo-accent);
	outline-offset: 1px;
	border-color: var(--leo-accent);
}

.read-more {
	color: var(--leo-accent);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.read-more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 6. Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 20, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--leo-border);
}

body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: var(--leo-header-h);
	position: relative;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-branding .custom-logo {
	max-height: 36px;
	width: auto;
	display: block;
}

.site-wordmark {
	color: var(--leo-text);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.site-wordmark:hover {
	color: var(--leo-accent);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	border-radius: var(--leo-radius);
	color: var(--leo-text-2);
	cursor: pointer;
}

.icon-btn:hover {
	color: var(--leo-text);
	background: var(--leo-card);
}

.nav-toggle {
	display: inline-flex;
}

/* Primary nav — slide-down panel on mobile, inline on desktop */

.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--leo-surface);
	border-bottom: 1px solid var(--leo-border);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

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

.nav-list {
	list-style: none;
	margin: 0;
	padding: 10px 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-list a {
	display: block;
	color: var(--leo-text-2);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 10px 8px;
	border-radius: var(--leo-radius);
}

.nav-list a:hover {
	color: var(--leo-text);
	background: var(--leo-card);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	color: var(--leo-accent);
}

@media (min-width: 900px) {
	.site-nav {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		box-shadow: none;
		min-width: 0;
	}

	.nav-list {
		flex-direction: row;
		align-items: center;
		gap: 2px;
		padding: 0;
	}

	.nav-list a {
		font-size: 13px;
		padding: 8px 10px;
	}

	.nav-list a:hover {
		background: transparent;
		color: var(--leo-accent);
	}

	.nav-toggle {
		display: none;
	}
}

/* Search panel below the header */

.search-panel {
	border-top: 1px solid var(--leo-border);
	background: var(--leo-surface);
	padding: 16px 0;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
}

.search-form .search-field {
	flex: 1;
}

/* Breaking-news bar */

.breaking-bar {
	background: var(--leo-accent);
	color: var(--leo-bg);
	font-size: 14px;
	font-weight: 600;
}

.breaking-bar .container {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.breaking-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	flex-shrink: 0;
}

/* ---------- 7. Front page: hero ---------- */

.hero {
	padding: 44px 0 48px;
}

.hero-grid {
	display: grid;
	gap: 40px;
}

@media (min-width: 900px) {
	.hero-grid {
		grid-template-columns: 3fr 2fr;
		gap: 64px;
		align-items: center;
	}
}

.hero-media {
	display: block;
	margin-bottom: 24px;
	border-radius: var(--leo-radius);
	overflow: hidden;
	border: 1px solid var(--leo-border);
	aspect-ratio: 16 / 9;
	background: #0f0f18;
	line-height: 0;
}

.hero-media-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.hero-media:hover .hero-media-img {
	transform: scale(1.03);
}

.hero-headline {
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 16px 0;
}

@media (min-width: 768px) {
	.hero-headline {
		font-size: 44px;
	}
}

.hero-headline a {
	color: var(--leo-text);
	text-decoration: none;
}

.hero-headline a:hover {
	color: var(--leo-accent);
}

.hero-excerpt {
	color: var(--leo-text-2);
	font-size: 17px;
	line-height: 1.7;
	margin: 0 0 20px;
}

.hero-list {
	min-width: 0;
}

@media (min-width: 900px) {
	.hero-list {
		padding-left: 40px;
		border-left: 1px solid var(--leo-border);
		align-self: stretch;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

.hero-list-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--leo-text-2);
	margin: 0 0 4px;
}

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

.hero-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--leo-border);
}

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

.hero-list a {
	color: var(--leo-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.hero-list a:hover {
	color: var(--leo-accent);
}

.hero-list time {
	display: block;
	color: var(--leo-text-2);
	font-size: 13px;
	margin-top: 5px;
}

/* ---------- 8. Front page: sections ---------- */

.newsletter-strip {
	padding-bottom: 16px;
}

.stats-section {
	padding: 24px 0;
}

.stats-bar {
	display: grid;
	border-block: 1px solid var(--leo-border);
}

.stat {
	padding: 22px 20px;
	text-align: center;
	border-bottom: 1px solid var(--leo-border);
}

.stat:last-child {
	border-bottom: 0;
}

@media (min-width: 640px) {
	.stats-bar {
		grid-template-columns: repeat(3, 1fr);
	}

	.stat {
		border-bottom: 0;
		border-left: 1px solid var(--leo-border);
	}

	.stat:first-child {
		border-left: 0;
	}
}

.stat-value {
	display: block;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--leo-blue);
	font-variant-numeric: tabular-nums;
}

.stat-label {
	display: block;
	color: var(--leo-text-2);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: 4px;
}

.section {
	padding: 48px 0 0;
}

.section:last-of-type {
	padding-bottom: 24px;
}

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.section-title {
	position: relative;
	font-size: 22px;
	letter-spacing: -0.01em;
	margin: 0;
	padding-top: 12px;
}

.section-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--leo-accent);
}

.about-section .about-blurb {
	max-width: var(--leo-content);
	color: var(--leo-text-2);
	margin: 20px 0 0;
}

/* ---------- 9. Editorial cards ---------- */

.card-grid {
	display: grid;
	gap: 18px;
}

@media (min-width: 768px) {
	.card-grid {
		grid-template-columns: 1fr 1fr;
	}
}

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

.card-editorial {
	display: flex;
	flex-direction: column;
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	overflow: hidden;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.card-editorial:hover {
	border-color: #33334F;
	background: #14141F;
}

.card-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: #0f0f18;
	border-bottom: 1px solid var(--leo-border);
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

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

.card-body {
	min-width: 0;
	padding: 16px 18px 18px;
}

.card-title {
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 10px 0 7px;
}

.card-title a {
	color: var(--leo-text);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--leo-accent);
}

.card-excerpt {
	color: var(--leo-text-2);
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-date {
	color: var(--leo-text-3, #6f6f88);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---------- 10. Breadcrumbs ---------- */

.breadcrumbs {
	padding: 20px 0 4px;
	font-size: 13px;
}

.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--leo-text-2);
	min-width: 0;
}

.breadcrumbs li + li::before {
	content: "›";
	color: var(--leo-text-2);
}

.breadcrumbs a {
	color: var(--leo-text-2);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--leo-accent);
}

.breadcrumbs [aria-current="page"] {
	color: var(--leo-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 46ch;
}

/* ---------- 11. Single article ---------- */

.article-layout {
	padding: 8px 0 56px;
}

.article-wrap {
	max-width: var(--leo-content);
	margin-inline: auto;
	min-width: 0;
}

@media (min-width: 1024px) {
	.article-layout.has-sidebar {
		display: grid;
		grid-template-columns: minmax(0, var(--leo-content)) 260px;
		gap: 64px;
		justify-content: center;
	}

	.article-layout.has-sidebar .article-wrap {
		margin-inline: 0;
	}
}

.article-title {
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 16px 0 18px;
}

@media (min-width: 768px) {
	.article-title {
		font-size: 44px;
	}
}

.article-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	color: var(--leo-text-2);
	font-size: 14px;
}

.article-byline a {
	color: var(--leo-text);
	font-weight: 600;
	text-decoration: none;
}

.article-byline a:hover {
	color: var(--leo-accent);
}

.byline-credentials {
	color: var(--leo-text-2);
}

.data-current {
	font-size: 13px;
	color: var(--leo-text-2);
	border-left: 2px solid var(--leo-accent);
	padding-left: 10px;
	margin: 16px 0;
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 0;
	border-top: 1px solid var(--leo-border);
	border-bottom: 1px solid var(--leo-border);
	margin: 20px 0 28px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	color: var(--leo-text-2);
	padding: 7px 12px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.share-btn:hover {
	color: var(--leo-text);
	border-color: #33334F;
}

.share-btn.is-copied {
	color: var(--leo-success);
	border-color: var(--leo-success);
}

/* Branded featured image — single-post header banner */

.article-hero {
	margin: 4px 0 36px;
	border-radius: var(--leo-radius);
	overflow: hidden;
	border: 1px solid var(--leo-border);
	line-height: 0;
	aspect-ratio: 16 / 9;
	background: #0f0f18;
}

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

/* Article body typography */

.entry-content {
	font-size: 17px;
	line-height: 1.75;
}

.entry-content h2 {
	font-size: 28px;
	margin: 44px 0 18px;
}

.entry-content h3 {
	font-size: 21px;
	margin: 32px 0 14px;
}

.entry-content h4 {
	font-size: 18px;
	margin: 28px 0 12px;
}

.entry-content a {
	color: var(--leo-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	color: #FFB54A;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25em;
	padding-left: 24px;
}

.entry-content li {
	margin: 6px 0;
}

.entry-content code {
	font-family: var(--leo-mono);
	font-size: 0.85em;
	color: var(--leo-blue);
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: 4px;
	padding: 2px 6px;
}

.entry-content img {
	border-radius: var(--leo-radius);
}

/* ---------- 12. Table of contents ---------- */

.article-sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.article-sidebar {
		display: block;
	}

	.leo-toc-sidebar {
		position: sticky;
		top: calc(var(--leo-header-h) + 32px);
		max-height: calc(100vh - var(--leo-header-h) - 64px);
		overflow-y: auto;
	}
}

.leo-toc-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--leo-text-2);
	margin: 0 0 10px;
}

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

.leo-toc a {
	display: block;
	padding: 7px 0 7px 14px;
	border-left: 2px solid var(--leo-border);
	color: var(--leo-text-2);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}

.leo-toc a:hover {
	color: var(--leo-text);
}

.leo-toc a.active {
	color: var(--leo-accent);
	border-left-color: var(--leo-accent);
}

/* Inline collapsible TOC (mobile/tablet) */

.leo-toc-inline {
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	margin: 24px 0;
}

.leo-toc-inline summary {
	padding: 12px 16px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.leo-toc-inline summary::marker {
	color: var(--leo-accent);
}

.leo-toc-inline ul {
	list-style: none;
	margin: 0;
	padding: 0 16px 14px;
}

.leo-toc-inline a {
	display: block;
	padding: 6px 0;
	color: var(--leo-text-2);
	font-size: 14px;
	text-decoration: none;
}

.leo-toc-inline a:hover {
	color: var(--leo-text);
}

@media (min-width: 1024px) {
	.leo-toc-inline {
		display: none;
	}
}

/* ---------- 13. Author box, related posts ---------- */

.author-box {
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-left: 3px solid var(--leo-accent);
	border-radius: var(--leo-radius);
	padding: 24px;
	margin: 48px 0 0;
}

.author-box.has-photo {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.author-photo {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--leo-radius);
	border: 1px solid var(--leo-border);
}

.author-box-body {
	min-width: 0;
}

.author-box-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--leo-text-2);
	margin: 0 0 6px;
}

.author-name {
	font-size: 18px;
	margin: 0;
}

.author-name a {
	color: var(--leo-text);
	text-decoration: none;
}

.author-name a:hover {
	color: var(--leo-accent);
}

.author-credentials {
	color: var(--leo-accent);
	font-size: 13px;
	font-weight: 600;
	margin: 4px 0 10px;
}

.author-bio {
	color: var(--leo-text-2);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.author-links {
	display: flex;
	gap: 14px;
}

.author-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--leo-text-2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.author-links a:hover {
	color: var(--leo-text);
}

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

.related-grid {
	display: grid;
	gap: 16px;
	margin-top: 22px;
}

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

.related-card {
	background: var(--leo-surface);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	padding: 18px;
}

.related-card h3 {
	font-size: 15px;
	line-height: 1.4;
	margin: 10px 0;
}

.related-card h3 a {
	color: var(--leo-text);
	text-decoration: none;
}

.related-card h3 a:hover {
	color: var(--leo-accent);
}

.related-card time {
	color: var(--leo-text-2);
	font-size: 12px;
}

.article-footer .newsletter-cta {
	margin-top: 48px;
}

/* ---------- 14. Newsletter CTA ---------- */

.newsletter-cta {
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	padding: 28px;
}

.newsletter-cta--full {
	border-color: var(--leo-accent);
	text-align: center;
}

.newsletter-cta--full .newsletter-form {
	justify-content: center;
}

.newsletter-cta--compact {
	background: transparent;
	border: 0;
	padding: 0;
}

.newsletter-title {
	font-size: 22px;
	margin: 0 0 6px;
}

.newsletter-text {
	color: var(--leo-text-2);
	font-size: 15px;
	margin: 0;
}

.newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.newsletter-form input[type="email"] {
	flex: 1 1 220px;
	max-width: 360px;
}

@media (min-width: 900px) {
	.newsletter-cta--strip {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 32px;
	}

	.newsletter-cta--strip .newsletter-form {
		margin-top: 0;
		flex-shrink: 0;
	}
}

/* ---------- 15. Archives, search, pagination, 404 ---------- */

.page-header {
	max-width: var(--leo-content);
	padding: 28px 0 8px;
	margin-bottom: 28px;
}

.page-title {
	font-size: 30px;
	margin: 0 0 10px;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 38px;
	}
}

.archive-description {
	color: var(--leo-text-2);
	font-size: 16px;
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.navigation.pagination {
	padding: 40px 0;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 8px 12px;
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	color: var(--leo-text-2);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

a.page-numbers:hover {
	color: var(--leo-text);
	border-color: #33334F;
}

.page-numbers.current {
	background: var(--leo-accent);
	border-color: var(--leo-accent);
	color: var(--leo-bg);
}

.page-numbers.dots {
	border: 0;
}

.no-results,
.error-404 {
	padding: 32px 0 56px;
	max-width: var(--leo-content);
}

.error-404 .search-form {
	margin: 24px 0 40px;
}

.recent-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.recent-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--leo-border);
}

.recent-list a {
	color: var(--leo-text);
	font-weight: 600;
	text-decoration: none;
}

.recent-list a:hover {
	color: var(--leo-accent);
}

.recent-list time {
	display: block;
	color: var(--leo-text-2);
	font-size: 13px;
	margin-top: 3px;
}

/* ---------- 16. Footer ---------- */

.site-footer {
	background: var(--leo-surface);
	border-top: 1px solid var(--leo-border);
	margin-top: 64px;
}

.footer-grid {
	display: grid;
	gap: 36px;
	padding: 48px 0;
}

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

.footer-wordmark {
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.footer-about p {
	color: var(--leo-text-2);
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}

.footer-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--leo-text-2);
	margin: 0 0 14px;
}

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

.footer-menu a {
	display: inline-block;
	color: var(--leo-text-2);
	font-size: 14px;
	padding: 5px 0;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--leo-text);
}

.footer-newsletter .newsletter-text {
	font-size: 14px;
}

.footer-bottom {
	border-top: 1px solid var(--leo-border);
	padding: 18px 0;
	font-size: 13px;
	color: var(--leo-text-2);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.footer-copy {
	margin: 0;
}

.footer-legal {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.footer-legal a {
	color: var(--leo-text-2);
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--leo-text);
}

.footer-social {
	display: flex;
	gap: 6px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--leo-radius);
	color: var(--leo-text-2);
}

.footer-social a:hover {
	color: var(--leo-accent);
}

/* ---------- 17. Company directory ---------- */

.company-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 48px;
}

@media (min-width: 640px) {
	.company-grid {
		grid-template-columns: 1fr 1fr;
	}
}

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

.card-company {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	padding: 24px 22px;
	transition: border-color 0.15s ease;
}

.card-company:hover {
	border-color: #33334F;
}

.card-company .card-excerpt {
	margin: 0;
}

.card-company .read-more {
	margin-top: auto;
}

.company-head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.company-logo {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--leo-surface);
	border: 1px solid var(--leo-border);
}

.company-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.company-logo-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	color: var(--leo-accent);
}

.company-name {
	font-size: 19px;
	letter-spacing: -0.01em;
	margin: 0;
}

.company-name a {
	color: var(--leo-text);
	text-decoration: none;
}

.company-name a:hover {
	color: var(--leo-accent);
}

.company-status {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--leo-success);
}

.company-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--leo-border);
}

.company-meta dt {
	color: var(--leo-text-2);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.company-meta dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--leo-blue);
	font-variant-numeric: tabular-nums;
}

/* ---------- 18. WordPress core alignment helpers ---------- */

.alignwide {
	max-width: var(--leo-container);
}

.alignfull {
	max-width: none;
}

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

/* --- Operator strip (front page) -------------------------------------------
   A directory teaser, not a link dump: name + one hard number per operator,
   with the detail living on the profile page itself. */
.section-link {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--leo-accent);
	text-decoration: none;
}
.section-link:hover {
	text-decoration: underline;
}
.operator-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
@media (min-width: 600px) {
	.operator-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.operator-row { grid-template-columns: repeat(5, 1fr); }
}
.operator-chip {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 16px;
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.operator-chip:hover {
	border-color: var(--leo-accent);
	transform: translateY(-1px);
}
.operator-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--leo-text);
	line-height: 1.25;
}
.operator-stat {
	font-family: var(--leo-mono);
	font-size: 11.5px;
	color: var(--leo-accent);
	line-height: 1.3;
}
@media (prefers-reduced-motion: reduce) {
	.operator-chip { transition: none; }
	.operator-chip:hover { transform: none; }
}

/* --- Newsletter: honeypot + result notice ---------------------------------
   The honeypot must be invisible to people but present to a bot parsing the
   DOM — so it is moved off-screen rather than display:none, which some bots
   check for. */
.leo-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.newsletter-notice {
	flex-basis: 100%;
	margin: 12px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
}
.newsletter-notice--success {
	color: var(--leo-success);
}
.newsletter-notice--error {
	color: var(--leo-risk);
}

/* --- Cookie consent banner -------------------------------------------------
   Rendered on every (cached) page and hidden by default; JS reveals it only when
   no choice is stored. Server-side conditionals would be baked into LiteSpeed's
   cached HTML and shown to everyone forever. */
.leo-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.leo-consent.is-open {
	opacity: 1;
	transform: none;
}
.leo-consent-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: var(--leo-container);
	margin: 0 auto;
	padding: 18px 20px;
	background: var(--leo-card);
	border: 1px solid var(--leo-border);
	border-radius: var(--leo-radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 780px) {
	.leo-consent-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 28px;
	}
}
.leo-consent-title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--leo-text);
}
.leo-consent-text {
	margin: 0;
	max-width: 68ch;
	font-size: 13.5px;
	line-height: 1.55;
	color: #9999BB;
}
.leo-consent-text a {
	color: var(--leo-accent);
}
.leo-consent-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}
.leo-consent-actions .btn {
	white-space: nowrap;
}
.btn-ghost {
	background: transparent;
	border: 1px solid var(--leo-border);
	color: #9999BB;
}
.btn-ghost:hover {
	border-color: var(--leo-accent);
	color: var(--leo-text);
}
@media (prefers-reduced-motion: reduce) {
	.leo-consent { transition: none; }
}
