/*
Theme Name: Brel Digital
Theme URI: https://breldigital.com
Author: Brel Digital
Description: Independent AI intelligence publication and discovery platform.
Version: 17.5.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: breldigital
Tags: blog, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   Design tokens — Brel Digital Design System (AI intelligence product)
   Visual rebalancing 2026-07-13: cooler surfaces, stronger contrast.
   Structural layouts remain frozen (Constitution §2); tokens refine identity.
   ========================================================================== */
:root {
	/* Product Design Spec — exact values */
	--bg: #FAFAFA;
	--surface: #FFFFFF;
	--card: #FFFFFF;
	--hero: #FFFFFF;
	--panel: #F8FAFC;
	--section-alt: #F8FAFC;
	--hover: #F1F5F9;
	--row-alt: #F8FAFC;

	--text: #0F172A;
	--text-secondary: #475569;
	--text-muted: #64748B;

	--blue: #2563EB;
	--blue-hover: #1D4ED8;
	--blue-light: #EFF6FF;
	--gold: #CA8A04;
	--gold-text: #A16207;
	--gold-light: #FEF9C3;

	--success: #16A34A;
	--warning: #F59E0B;
	--danger: #DC2626;

	--border: #E2E8F0;
	--divider: #CBD5E1;
	--border-strong: #CBD5E1;

	--footer-bg: #0F172A;
	--footer-text: #F8FAFC;
	--footer-muted: #94A3B8;

	--ivory: #F8FAFC;
	--charcoal: #0F172A;

	--font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: var(--font-sans);

	/* Type scale */
	--text-hero: 4.5rem;      /* 72 */
	--text-h1: 3.5rem;       /* 56 */
	--text-h2: 2.625rem;     /* 42 */
	--text-h3: 2rem;         /* 32 */
	--text-h4: 1.625rem;     /* 26 */
	--text-subtitle: 1.5rem; /* 24 hero lead */
	--text-body: 1.125rem;   /* 18 */
	--text-meta: 0.9375rem;  /* 15 */
	--text-small: 0.9375rem; /* 15 */
	--text-label: 0.8125rem; /* 13 */
	--text-badge: 0.75rem;   /* 12 */
	--text-caption: 0.75rem;
	--leading-tight: 1.05;
	--leading-snug: 1.35;
	--leading-body: 1.6;

	--max: 1440px;
	--narrow: 820px;
	--content: 700px;
	--card-max: 420px;
	--header-h: 80px;
	--radius: 12px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	/* Spacing: 4 8 12 16 24 32 48 64 96 */
	--space-1: 0.25rem;  /* 4 */
	--space-2: 0.5rem;   /* 8 */
	--space-3: 0.75rem;  /* 12 */
	--space-4: 1rem;     /* 16 */
	--space-5: 1.5rem;   /* 24 */
	--space-6: 2rem;     /* 32 */
	--space-7: 3rem;     /* 48 */
	--space-8: 4rem;     /* 64 */
	--space-9: 6rem;     /* 96 */
	--space-2xs: var(--space-1);
	--space-xs: var(--space-2);
	--space-sm: var(--space-4);
	--space-md: var(--space-5);
	--space-lg: var(--space-6);
	--space-xl: var(--space-8);
	--space-2xl: var(--space-9);
	--space-hero-top: 2.5rem; /* header is in-flow sticky — not overlay */
	--space-hero-bottom: var(--space-8); /* 64 */
	--space-section: var(--space-9);

	--transition: 220ms ease;
	--shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
	--shadow-btn: 0 1px 2px rgba(37, 99, 235, 0.18);
	--shadow-lift: 0 8px 24px rgba(15, 23, 42, 0.08);
	--shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
	--focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.25);
	--focus-outline: 2px solid var(--blue);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.125rem; /* 18px desktop body */
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

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

a {
	color: var(--blue);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--blue-hover);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
}

h1 {
	font-size: clamp(2.25rem, 4vw, 3.5rem); /* → 56px */
	font-weight: 600;
	line-height: 1.05;
}

h2 {
	font-size: clamp(1.875rem, 3.5vw, 2.625rem); /* → 42px */
	font-weight: 600;
}

h3 {
	font-size: clamp(1.5rem, 2.5vw, 2rem); /* → 32px */
}

h4 {
	font-size: 1.625rem; /* 26px */
}

h3 {
	font-size: clamp(1.375rem, 2.5vw, 1.75rem); /* 22px / 28px */
}

p {
	margin: 0 0 1.25rem;
}

.site-container {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--space-md);
}

/* ==========================================================================
   Typography utilities
   ========================================================================== */
.eyebrow {
	font-family: var(--font-sans);
	font-size: 0.875rem; /* 14px */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--blue);
	margin: 0 0 var(--space-sm);
}

.eyebrow--gold {
	color: var(--gold-text);
}

.brief-block .eyebrow--gold {
	color: var(--gold-text);
}

.text-large,
.body-large {
	font-size: 1.25rem; /* 20px */
	line-height: 1.6;
}

.text-small,
.small {
	font-size: 0.875rem; /* 14px */
	line-height: 1.55;
}

.text-link {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--blue);
	white-space: nowrap;
}

.text-link:hover {
	color: var(--blue-hover);
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius);
	line-height: 1.3;
}

.badge--gold {
	background: var(--gold-light);
	color: var(--gold-text);
	border: 1px solid #D4B87A;
}

.badge--blue {
	background: var(--blue-light);
	color: var(--blue);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.5rem;
	background: var(--blue);
	color: #fff !important;
	border: 1px solid var(--blue);
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
	text-align: center;
	min-height: 48px;
	height: 48px;
	box-sizing: border-box;
}

.btn:hover {
	background: var(--blue-hover);
	border-color: var(--blue-hover);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: var(--shadow-soft);
}

.btn--secondary {
	background: var(--surface);
	color: var(--text) !important;
	border-color: var(--border);
}

.btn--secondary:hover {
	background: var(--hover);
	border-color: var(--border-strong);
	color: var(--text) !important;
	box-shadow: var(--shadow-soft);
}

.btn--sm {
	padding: 0.55rem 1rem;
	font-size: 0.875rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-soft);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
}

.site-header__inner,
.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: 0;
	height: var(--header-h);
}

.site-branding__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--text);
	min-height: 48px;
}

.site-branding__logo {
	display: block;
	height: 36px;
	width: auto;
	max-width: min(180px, 42vw);
	object-fit: contain;
	object-position: left center;
}

.site-branding__link:hover {
	color: var(--text);
}

.site-branding__wordmark {
	font-family: var(--font-serif);
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.site-branding__suffix {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	letter-spacing: 0.04em;
	line-height: 1;
}

.custom-logo-link img {
	max-height: 32px;
	width: auto;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
}

.header-cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.25rem;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff !important;
	background: var(--blue);
	border: 1px solid var(--blue);
	border-radius: var(--radius);
	transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
	white-space: nowrap;
	min-height: 48px;
	height: 48px;
	box-sizing: border-box;
}

.main-navigation ul,
.site-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.25rem;
}

@media (max-width: 1023px) {
	.site-nav__menu {
		display: block;
		flex-wrap: unset;
		gap: 0;
	}
}

.main-navigation a,
.site-nav__menu a {
	color: var(--text-secondary);
	font-size: 1.0625rem;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius);
	transition: color var(--transition), background var(--transition);
}

.main-navigation a:hover,
.site-nav__menu a:hover {
	color: var(--blue);
	background: var(--hover);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	color: var(--blue);
	background: var(--blue-light);
	font-weight: 600;
}

.header-cta:hover {
	background: var(--blue-hover);
	border-color: var(--blue-hover);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: var(--shadow-soft);
}

.header-search {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	min-height: 48px;
	height: 48px;
}

.header-search__label {
	/* Legacy link label — unused when input form is present */
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.site-nav__menu .menu-item-has-children {
	position: relative;
}

.site-nav__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0;
	min-width: 14rem;
}

@media (min-width: 901px) {
	.site-nav__menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		background: var(--surface);
		border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
		border-radius: var(--radius);
		box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
		opacity: 0;
		visibility: hidden;
		transform: translateY(0.25rem);
		transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
		z-index: 40;
	}

	.site-nav__menu .menu-item-has-children:hover > .sub-menu,
	.site-nav__menu .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.site-nav__menu .sub-menu a {
		display: block;
		padding: 0.55rem 0.9rem;
		white-space: nowrap;
	}
}

@media (max-width: 900px) {
	.site-nav__menu .sub-menu {
		padding-left: 0.75rem;
		margin-top: 0.15rem;
	}
}

.menu-toggle {
	display: none;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
	margin-bottom: var(--space-md);
}

.breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.35rem;
	color: var(--border-strong);
}

.breadcrumbs__item a {
	color: var(--text-secondary);
	font-weight: 500;
}

.breadcrumbs__item a:hover {
	color: var(--blue);
}

.breadcrumbs__item span[aria-current="page"] {
	color: var(--text);
	font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	padding: var(--space-xl) 0;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.hero__grid {
	display: grid;
	gap: var(--space-xl);
	align-items: start;
}

@media (min-width: 960px) {
	.hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 3.5rem;
	}
}

.hero__title {
	font-size: clamp(2.125rem, 4.5vw, 3.875rem);
	margin: 0 0 var(--space-md);
	line-height: 1.14;
}

.hero__lead {
	font-size: 1.25rem;
	color: var(--text-secondary);
	max-width: 540px;
	margin-bottom: var(--space-lg);
	line-height: 1.7;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-bottom: var(--space-md);
}

.hero__credibility {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.55;
	max-width: 480px;
}

/* Intelligence panel */
.intel-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.intel-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}

.intel-panel__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-secondary);
}

.intel-panel__status {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--blue);
}

.intel-panel__status::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--blue);
	border-radius: 50%;
	margin-right: 0.35rem;
	vertical-align: middle;
}

@media (max-width: 767px) {
	.intel-panel__status {
		font-size: 0.8125rem;
		text-align: right;
		max-width: 52%;
		line-height: 1.35;
	}
}

.intel-panel__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding: 0.9rem 1.15rem;
	border-bottom: 1px solid var(--border);
	align-items: center;
}

.intel-tag {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.4rem 0.75rem;
	line-height: 1.25;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-secondary);
	transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.intel-tag:hover {
	border-color: var(--blue);
	color: var(--blue);
	background: var(--blue-light);
}

.intel-panel__list {
	padding: 0.5rem 0;
}

.intel-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	transition: background var(--transition);
}

.intel-item:last-child {
	border-bottom: none;
}

.intel-item:hover {
	background: var(--bg);
}

.intel-item__name {
	display: block;
	font-size: 1.0625rem;
	font-weight: 600;
}

.intel-item__sector {
	display: block;
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-top: 0.2rem;
}

.intel-item__meta {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	white-space: nowrap;
}

.intel-panel__featured {
	padding: 1rem 1.15rem;
	background: var(--bg);
	border-top: 1px solid var(--border);
}

.intel-featured {
	display: block;
	margin-top: 0.5rem;
	color: var(--text);
}

.intel-featured:hover {
	color: var(--blue);
}

.intel-featured strong {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	font-weight: 600;
}

.intel-featured span {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
	padding: var(--space-xl) 0;
	border-bottom: 1px solid var(--border);
}

.section--matters {
	background: var(--surface);
}

.section--brief {
	border-bottom: none;
	padding-top: 0;
	padding-bottom: 5rem;
}

.section--insights {
	padding-bottom: var(--space-lg);
}

.section--insights + .section--brief {
	padding-top: var(--space-xl);
}

.section-header {
	margin-bottom: var(--space-lg);
	max-width: 640px;
}

.section-header--row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	max-width: none;
	gap: var(--space-md) var(--space-lg);
	flex-wrap: wrap;
	margin-bottom: var(--space-lg);
}

.section-header__intro {
	flex: 1;
	min-width: 0;
}

.section-header__action {
	flex-shrink: 0;
	white-space: nowrap;
	margin-bottom: 0.2rem;
}

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

.section-title {
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	margin: 0 0 0.5rem;
}

.section-lead {
	color: var(--text-secondary);
	font-size: 1.125rem;
	margin: 0;
	line-height: 1.65;
}

.section-subtitle {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	margin: var(--space-lg) 0 var(--space-md);
}

/* Matters featured — 3 column grid */
.matters-featured {
	display: grid;
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.matters-featured {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
	background: var(--card, var(--surface));
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.card--insight,
.card--matter {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lift);
	background: var(--surface);
}

.card__link {
	display: block;
	padding: 1.5rem;
	color: var(--text);
}

.card__link--insight,
.card--matter .card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	color: var(--text);
}

.card__link:hover,
.card__link--insight:hover {
	color: var(--text);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card__title {
	font-family: var(--font-serif);
	font-size: 1.3125rem;
	font-weight: 600;
	margin: 0.65rem 0;
	transition: color var(--transition);
	line-height: 1.3;
}

.card:hover .card__title {
	color: var(--blue);
}

.card__excerpt {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0 0 1rem;
	line-height: 1.6;
	flex: 1;
}

.card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin-top: auto;
}

.card__link--insight .card__meta,
.card--matter .card__meta {
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.card__link--insight .badge,
.card--matter .badge {
	align-self: flex-start;
}

.card--insight .card__title,
.card--matter .card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.4rem;
}

.card--insight .card__excerpt,
.card--matter .card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0;
}

.card__arrow {
	font-weight: 600;
	color: var(--blue);
	font-size: 0.875rem;
}

.card--report {
	border-left: 3px solid var(--gold);
}

.card__link--founder {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	height: 100%;
}

.card__avatar {
	width: 56px;
	height: 56px;
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 0.85rem;
	background: var(--bg);
	border: 1px solid var(--border);
	flex-shrink: 0;
}

.card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__avatar--initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--blue);
	background: var(--blue-light);
}

.card__role {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 0.15rem;
}

.card__company {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0 0 0.15rem;
}

.card__country {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0 0 0.5rem;
}

.card__quote {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-style: italic;
	color: var(--text-secondary);
	margin: 0 0 0.75rem;
	padding: 0;
	border: none;
	line-height: 1.55;
}

/* ==========================================================================
   Sector grid
   ========================================================================== */
.sector-grid {
	display: grid;
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

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

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

.sector-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.5rem;
	background: var(--surface);
	color: var(--text);
	min-height: 130px;
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: var(--shadow-soft);
	transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.sector-card:hover {
	background: var(--surface);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lift);
	color: var(--text);
}

.sector-card__name {
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
}

.sector-card__desc {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.5;
}

.sector-card__meta {
	margin-top: auto;
	font-size: 1rem;
	font-weight: 600;
	color: var(--blue);
}

/* ==========================================================================
   Founder grid
   ========================================================================== */
.founder-grid {
	display: grid;
	gap: var(--space-md);
}

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

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

	.founder-grid--archive {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==========================================================================
   Company table
   ========================================================================== */
.company-table {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
}

.company-table__head {
	display: none;
}

@media (min-width: 900px) {
	.company-table__head {
		display: grid;
		grid-template-columns: 1.4fr 0.8fr 0.7fr 1.6fr;
		gap: 1rem;
		padding: 0.75rem 1.25rem;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		font-size: 0.6875rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--text-muted);
	}
}

.company-row {
	border-bottom: 1px solid var(--border);
	background: var(--surface);
	transition: background var(--transition);
}

.company-row:nth-child(even) {
	background: var(--row-alt);
}

.company-row:hover {
	background: var(--hover);
}

.company-row:last-child {
	border-bottom: none;
}

.company-row__link {
	display: grid;
	gap: 0.5rem;
	padding: 1.25rem 1.35rem;
	color: var(--text);
	transition: background var(--transition);
}

@media (min-width: 900px) {
	.company-row__link {
		grid-template-columns: 1.4fr 0.8fr 0.7fr 1.6fr;
		gap: 1rem;
		align-items: center;
	}
}

.company-row__link:hover {
	background: var(--bg);
}

.company-row__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.company-row__text {
	min-width: 0;
}

.company-row__title {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	margin-bottom: 0.15rem;
}

.company-row__desc {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.45;
}

/* Legacy selectors — kept for backwards compatibility */
.company-row__name {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.company-row__name strong {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	margin-bottom: 0.15rem;
}

.company-row__name em {
	font-style: normal;
	font-size: 1rem;
	color: var(--text-secondary);
}

.company-row__logo {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg);
}

.company-row__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.company-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.company-row__summary {
	min-width: 0;
}

.company-row__sector,
.company-row__country {
	font-size: 1rem;
	color: var(--text-secondary);
}

.company-row__why {
	font-size: 1rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

.company-row__profile-link {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--blue);
}

/* ==========================================================================
   Sector tags
   ========================================================================== */
.sector-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}

.sector-tag {
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.55rem;
	background: var(--blue-light);
	color: var(--blue);
	border-radius: var(--radius);
}

.sector-tag:hover {
	background: var(--blue);
	color: #fff;
}

.technology-tags {
	margin-top: 0.35rem;
}

.technology-tag {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
}

.technology-tag:hover {
	background: var(--text);
	color: #fff;
	border-color: var(--text);
}

.tech-hub-section {
	margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Insights grid
   ========================================================================== */
.insights-grid,
.reports-grid {
	display: grid;
	gap: var(--space-md);
	align-items: stretch;
}

@media (min-width: 640px) {
	.insights-grid,
	.reports-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.insights-grid .card--insight {
	min-height: 100%;
}

/* ==========================================================================
   Brief block
   ========================================================================== */
.brief-block {
	display: grid;
	gap: var(--space-lg);
	padding: var(--space-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.brief-block {
		grid-template-columns: 1.2fr 1fr;
		align-items: center;
		padding: 2.5rem 3rem;
	}
}

.brief-block__title {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	margin: 0 0 0.5rem;
}

.brief-block__desc {
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.brief-block__trust {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.section--final-cta {
	border-bottom: none;
	padding-bottom: var(--space-xl);
}

.final-cta {
	text-align: center;
	padding: var(--space-xl) var(--space-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.final-cta__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 var(--space-sm);
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.final-cta__text {
	font-size: 1.0625rem;
	color: var(--text-secondary);
	margin: 0 auto var(--space-lg);
	max-width: 520px;
}

/* ==========================================================================
   Newsletter forms
   ========================================================================== */
.newsletter-form,
.newsletter-page__form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.newsletter-form input[type="email"],
.newsletter-page__form input[type="email"] {
	padding: 0.8rem 1rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	background: var(--bg);
	color: var(--text);
	width: 100%;
}

.newsletter-form input[type="email"]:focus,
.newsletter-page__form input[type="email"]:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 2px var(--blue-light);
}

.form-privacy {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.45;
}

/* Distinguish privacy links without relying on color alone (WCAG 1.4.1). */
.form-privacy a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

/* ==========================================================================
   Archive & filters
   ========================================================================== */
.archive-main,
.single-main {
	padding: var(--space-xl) 0 5rem;
}

.archive-header {
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border);
	max-width: 680px;
}

.archive-header__title {
	font-size: clamp(2.125rem, 4.5vw, 3.875rem);
	margin: 0 0 0.75rem;
}

.archive-header__lead {
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.65;
}

.archive-filters {
	margin-bottom: var(--space-lg);
	padding: var(--space-md);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: var(--shadow-soft);
}

.archive-filters__row {
	display: grid;
	gap: 0.65rem;
}

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

.archive-filters input[type="search"],
.archive-filters select {
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	background: var(--bg);
	color: var(--text);
	width: 100%;
}

.archive-filters input[type="search"]:focus,
.archive-filters select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 2px var(--blue-light);
}

.filter-count {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0.65rem 0 0;
}

.filterable-item[hidden] {
	display: none !important;
}

.empty-state {
	margin: 0;
	padding: var(--space-md) var(--space-md);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--panel);
	color: var(--text-secondary);
	font-style: normal;
	font-size: var(--text-small);
	line-height: var(--leading-snug);
}

.empty-state__title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-serif);
	font-size: var(--text-h4);
	font-weight: 600;
	color: var(--text);
	font-style: normal;
}

.empty-state__text {
	margin: 0 0 var(--space-sm);
	color: var(--text-secondary);
}

.empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.empty-state__actions a {
	font-weight: 600;
	font-size: var(--text-small);
}

p.empty-state {
	padding: var(--space-md);
}

/* ==========================================================================
   Profile & single pages
   ========================================================================== */
.single-layout--narrow {
	max-width: var(--narrow);
}

.profile-header {
	margin-bottom: var(--space-lg);
}

.profile-header--company {
	display: grid;
	gap: var(--space-md);
	align-items: start;
}

@media (min-width: 600px) {
	.profile-header--company {
		grid-template-columns: auto 1fr;
	}
}

.profile-logo {
	width: 72px;
	height: 72px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--surface);
	flex-shrink: 0;
}

.profile-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.profile-header__title {
	font-size: clamp(2.125rem, 4.5vw, 2.375rem);
	margin: 0 0 0.75rem;
}

.profile-header__summary {
	font-size: 1.25rem;
	color: var(--text-secondary);
	line-height: 1.55;
	margin-bottom: var(--space-sm);
}

.profile-header__meta {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0 0 var(--space-sm);
}

.profile-header__actions {
	margin: var(--space-sm) 0 0;
}

.profile-meta-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: var(--space-lg);
}

.profile-meta-bar div {
	padding: 1rem 1.15rem;
	background: var(--surface);
}

.profile-meta-bar span {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin-bottom: 0.25rem;
}

.profile-meta-bar strong {
	font-size: 0.9375rem;
	font-weight: 600;
}

.profile-highlight {
	padding: 1.35rem 1.5rem;
	background: var(--gold-light);
	border-left: 3px solid var(--gold);
	margin-bottom: var(--space-lg);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.profile-highlight h2 {
	font-size: 0.8125rem;
	font-family: var(--font-sans);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gold);
	margin: 0 0 0.5rem;
}

.profile-highlight p {
	margin: 0;
	color: var(--text);
	font-size: 1.0625rem;
	line-height: 1.55;
}

.product-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-link-list li {
	margin: 0 0 0.4rem;
}

.product-link-list a {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.product-link-list a:hover {
	color: var(--blue);
}

.profile-pullquote {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--text);
	margin: 0 0 var(--space-lg);
	padding: var(--space-md) 0 var(--space-md) var(--space-md);
	border-left: 3px solid var(--blue);
}

.profile-content,
.entry-content.profile-content {
	font-size: 1.125rem;
	line-height: 1.75;
}

.profile-content h2,
.entry-content h2 {
	font-size: 1.375rem;
	margin: 2rem 0 0.75rem;
}

.profile-content h3,
.entry-content h3 {
	font-size: 1.125rem;
	margin: 1.5rem 0 0.5rem;
}

.profile-content p,
.entry-content p {
	color: var(--text);
}

.profile-content ul,
.profile-content ol,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.profile-content li,
.entry-content li {
	margin-bottom: 0.35rem;
}

.profile-featured-image {
	margin-bottom: var(--space-lg);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.founder-profile-header {
	display: grid;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
	.founder-profile-header {
		grid-template-columns: auto 1fr;
		align-items: start;
	}
}

.founder-profile-header__photo {
	width: 100px;
	height: 100px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	flex-shrink: 0;
}

.founder-profile-header__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.founder-profile-header__photo--initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 600;
	color: var(--blue);
	background: var(--blue-light);
}

.founder-profile-header__role {
	font-weight: 600;
	margin: 0 0 0.15rem;
}

.founder-profile-header__company {
	color: var(--text-secondary);
	margin: 0 0 0.15rem;
}

.founder-profile-header__country {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0 0 0.75rem;
}

.profile-section {
	margin: var(--space-lg) 0;
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border);
}

.author-box {
	margin: var(--space-lg) 0;
	padding: var(--space-md);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.author-box strong {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	margin-bottom: 0.35rem;
}

.author-box p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--text-secondary);
}

.editorial-note {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: var(--space-lg) 0 0;
	padding-top: var(--space-md);
	border-top: 1px solid var(--border);
	line-height: 1.55;
}

.profile-cta {
	margin-top: var(--space-xl);
	padding: var(--space-lg);
	background: var(--blue-light);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-align: center;
}

.profile-cta h3 {
	font-size: 1.25rem;
	margin: 0 0 0.35rem;
}

.profile-cta p {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin: 0 0 var(--space-sm);
}

/* ==========================================================================
   Blog / content layouts
   ========================================================================== */
.site-main {
	padding: var(--space-xl) 0 5rem;
}

.site-main--front {
	padding: 0;
}

.content-area {
	display: grid;
	gap: var(--space-xl);
}

@media (min-width: 900px) {
	.content-area.has-sidebar {
		grid-template-columns: 1fr 280px;
		align-items: start;
	}
}

.posts-grid {
	display: grid;
	gap: var(--space-md);
}

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

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.post-card:hover {
	border-color: var(--border-strong);
}

.post-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 1.25rem;
}

.post-card__meta {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.post-card__title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.post-card__title a {
	color: var(--text);
}

.post-card__title a:hover {
	color: var(--blue);
}

.post-card__excerpt {
	font-size: 0.9375rem;
	color: var(--text-secondary);
}

.read-more {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--blue);
}

.featured-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
	border-color: var(--border-strong);
}

.featured-card__link {
	display: block;
	color: var(--text);
}

.featured-card__image {
	position: relative;
	overflow: hidden;
}

.featured-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.featured-card__image--placeholder {
	background: var(--bg);
	min-height: 180px;
}

.featured-card__overlay {
	display: none;
}

.featured-card__body {
	padding: 1.25rem;
}

.featured-card__category {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--blue);
}

.featured-card__title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	margin: 0.35rem 0 0.5rem;
}

.featured-card__excerpt {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

.featured-card__meta {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.compact-card__link {
	display: flex;
	gap: var(--space-sm);
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--border);
	color: var(--text);
}

.compact-card__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.compact-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.compact-card__title {
	font-family: var(--font-serif);
	font-size: 1rem;
	margin: 0 0 0.25rem;
}

.compact-card__date {
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.category-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.15rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color var(--transition), background var(--transition);
}

.category-card:hover {
	border-color: var(--border-strong);
	background: var(--bg);
}

.category-card__icon {
	font-size: 1.25rem;
}

.category-card__name {
	font-weight: 600;
	flex: 1;
}

.category-card__count {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.category-card__arrow {
	color: var(--blue);
	font-weight: 600;
}

.entry-header {
	margin-bottom: var(--space-lg);
}

.entry-title {
	font-size: clamp(2.125rem, 4.5vw, 2.375rem);
	margin: 0 0 0.5rem;
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.entry-thumbnail {
	margin-bottom: var(--space-lg);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.page-links {
	margin-top: var(--space-lg);
	font-size: 0.875rem;
}

.post-tags {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

/* ==========================================================================
   Newsletter & About pages
   ========================================================================== */
.newsletter-page,
.about-page {
	padding-bottom: var(--space-xl);
}

.newsletter-page__note {
	margin-top: var(--space-lg);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 0.9375rem;
}

.about-content ul {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
}

.about-content li {
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

/* ==========================================================================
   Widgets & sidebar
   ========================================================================== */
.widget-area {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.widget-title {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-secondary);
	margin: 0 0 0.85rem;
}

/* ==========================================================================
   Pagination & navigation
   ========================================================================== */
.pagination,
.posts-navigation,
.post-navigation {
	margin-top: var(--space-xl);
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination .page-numbers,
.posts-navigation a,
.post-navigation a {
	padding: 0.5rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--text-secondary);
	background: var(--surface);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.posts-navigation a:hover,
.post-navigation a:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
	margin-top: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border);
}

.comments-title {
	font-size: 1.25rem;
	margin-bottom: var(--space-md);
}

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

.comment-list .comment {
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--border);
}

.no-comments {
	font-size: 0.9375rem;
	color: var(--text-muted);
	font-style: italic;
}

/* ==========================================================================
   404 & empty states
   ========================================================================== */
.error-404,
.no-results {
	text-align: center;
	padding: 5rem 0;
}

.error-404 .page-title,
.no-results .page-title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	color: var(--blue);
	margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--charcoal);
	color: var(--ivory);
}

.site-footer__main {
	padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__grid {
	display: grid;
	gap: var(--space-xl);
}

/* Hub footer: brand + newsletter on top, link columns below (desktop breathing room) */
.site-footer__grid--hub {
	grid-template-columns: 1fr;
	gap: 2rem;
}

.footer-nav-hub {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.site-footer__grid:not(.site-footer__grid--hub) {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__grid--hub {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.footer-nav-hub {
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 2.5rem;
	}
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
	}

	.site-footer__grid--ia {
		grid-template-columns: 1.15fr 1fr 1fr 1fr 1.25fr;
	}

	.site-footer__grid--hub {
		grid-template-columns: minmax(14rem, 1.35fr) minmax(16rem, 1.25fr);
		column-gap: 3rem;
		row-gap: 2.5rem;
	}

	.footer-col--brand {
		max-width: 22rem;
	}

	.footer-nav-hub {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 2.5rem;
		row-gap: 2rem;
		margin-top: 0.25rem;
		padding-top: 2rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.footer-mission {
		max-width: 20rem;
	}
}

@media (min-width: 1100px) {
	.footer-nav-hub {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: 1.75rem;
	}
}

@media (min-width: 1280px) {
	.site-footer__grid--hub {
		column-gap: 4rem;
	}

	.footer-nav-hub {
		column-gap: 2.25rem;
	}
}

/* Mid-width desktop: keep 8-item primary nav from feeling cramped */
@media (min-width: 901px) and (max-width: 1199px) {
	.site-nav__menu {
		gap: 0;
	}

	.site-nav__menu a {
		font-size: 0.9375rem;
		padding: 0.45rem 0.45rem;
	}

	.header-search__input {
		width: min(11rem, 26vw);
	}

	.header-cta {
		padding: 0.55rem 0.85rem;
		font-size: 0.875rem;
	}
}

.hub-directory {
	list-style: none;
	margin: 0 0 var(--space-xl);
	padding: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 700px) {
	.hub-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.hub-directory__item {
	padding: 1rem 0;
	border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.hub-directory__item a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.hub-directory__item a:hover .hub-directory__name {
	color: var(--blue);
}

.hub-directory__count {
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 0.9375rem;
}

.hub-directory__desc {
	margin: 0.4rem 0 0;
	color: var(--text-secondary);
	font-size: 0.9375rem;
}

.explore-strip {
	margin: var(--space-xl) 0 var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.explore-strip__label {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.explore-strip__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.explore-strip__list a {
	font-size: 0.9375rem;
	font-weight: 500;
}

.sitemap-section {
	margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Compare matrix
   ========================================================================== */
.compare-matrix {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	margin: 0 0 var(--space-md);
}

.compare-matrix__head,
.compare-matrix__row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.85fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
	gap: 1rem 1.5rem;
	padding: 1rem 1.25rem;
	align-items: start;
}

.compare-matrix__head {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

.compare-matrix__head a {
	color: var(--text);
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.9375rem;
	font-weight: 600;
}

.compare-matrix__row {
	border-bottom: 1px solid var(--border);
}

.compare-matrix__row:last-child {
	border-bottom: none;
}

.compare-matrix__attr {
	font-weight: 700;
	color: var(--text);
	font-size: 0.9375rem;
}

.compare-matrix__cell {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--text);
	overflow-wrap: anywhere;
	word-break: break-word;
	min-width: 0;
}

@media (max-width: 767px) {
	.compare-matrix {
		border: none;
		background: transparent;
		overflow: visible;
	}

	.compare-matrix__head {
		display: none;
	}

	.compare-matrix__row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.65rem;
		padding: 1rem 1.125rem;
		margin-bottom: 0.75rem;
		border: 1px solid var(--border);
		border-radius: var(--radius);
		background: var(--surface);
	}

	.compare-matrix__attr {
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--text-secondary);
	}

	.compare-matrix__cell::before {
		content: attr(data-label);
		display: block;
		font-size: 0.75rem;
		font-weight: 600;
		color: var(--text-muted);
		margin-bottom: 0.2rem;
	}
}

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

.glossary-list li {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.glossary-list p {
	margin: 0.35rem 0 0;
	color: var(--text-secondary);
}

.glossary-alpha {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.85rem;
	margin: 0 0 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.glossary-alpha a {
	text-decoration: none;
	font-weight: 600;
	color: var(--text-primary, inherit);
}

.footer-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--ivory);
	text-decoration: none;
	margin-bottom: 0.85rem;
}

.footer-wordmark__img {
	display: block;
	height: 32px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	object-position: left center;
	/* Black wordmark on dark footer → render as light mark */
	filter: brightness(0) invert(1);
}

.footer-wordmark:hover {
	color: #fff;
}

.footer-wordmark__brel {
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-weight: 700;
}

.footer-wordmark__digital {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.footer-mission {
	font-size: 0.9375rem;
	line-height: 1.6;
	max-width: 280px;
	margin: 0;
	color: var(--ivory);
	opacity: 0.85;
}

.footer-heading {
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ivory);
	margin: 0 0 1rem;
	opacity: 0.7;
}

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

.footer-links li {
	margin-bottom: 0.65rem;
}

.footer-links a {
	color: var(--ivory);
	font-size: 0.9375rem;
	line-height: 1.45;
	opacity: 0.8;
	transition: opacity var(--transition), color var(--transition);
}

.footer-links a:hover {
	opacity: 1;
	color: #fff;
}

.footer-brief-text {
	font-size: 0.875rem;
	line-height: 1.55;
	margin-bottom: 0.85rem;
	color: var(--ivory);
	opacity: 0.85;
}

.site-footer .newsletter-form input[type="email"] {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--ivory);
}

.site-footer .newsletter-form input[type="email"]::placeholder {
	color: rgba(232, 230, 225, 0.5);
}

.site-footer .newsletter-form input[type="email"]:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 2px rgba(22, 75, 143, 0.4);
}

.site-footer .btn {
	width: 100%;
}

.site-footer .form-privacy {
	color: var(--footer-muted);
}

.site-footer .form-privacy a {
	color: var(--ivory);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.site-footer__legal {
	margin-top: var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links--legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.footer-links--legal li {
	margin-bottom: 0;
}

.site-footer__bottom {
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copyright {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(232, 230, 225, 0.6);
}

.footer-dataset {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: var(--footer-muted);
	letter-spacing: 0.02em;
}

.footer-copyright a {
	color: var(--ivory);
	opacity: 0.8;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	display: block;
	height: auto;
	width: auto;
	z-index: 100000;
	padding: 0.5rem 1rem;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.skip-link:focus {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
}

/* ==========================================================================
   Readability — mobile minimums
   ========================================================================== */
@media (max-width: 767px) {
	body {
		font-size: 1.0625rem;
	}

	.btn {
		min-height: 50px;
	}
}

/* Footer microcopy — smaller text permitted here only */
.site-footer .footer-wordmark__digital {
	color: rgba(232, 230, 225, 0.72);
}

.site-footer .footer-heading,
.site-footer .footer-links--legal a,
.site-footer .footer-copyright {
	font-size: 0.8125rem;
}

/* ==========================================================================
   SEO & E-E-A-T components
   ========================================================================== */
.sponsored-disclosure {
	margin: 0 0 var(--space-md);
	padding: var(--space-sm) var(--space-md);
	background: rgba(184, 135, 43, 0.08);
	border-left: 3px solid var(--gold);
	font-size: 0.9375rem;
}

.sponsored-disclosure p {
	margin: 0;
}

.editorial-disclosure {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0.5rem 0 0;
}

.article-meta--reviewed {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0.25rem 0 0;
}

.toc {
	margin: var(--space-md) 0;
	padding: var(--space-md);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.toc__heading {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.toc__list {
	margin: 0;
	padding-left: 1.25rem;
}

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

.toc__list a:hover {
	text-decoration: underline;
}

.sources-block {
	margin: var(--space-lg) 0;
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border);
}

.sources-block__intro {
	font-size: 0.9375rem;
	color: var(--text-secondary);
}

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

.sources-list li {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9375rem;
}

.sources-list__type,
.sources-list__note {
	display: block;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.author-box__inner {
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
}

.author-box__heading {
	font-size: 1.125rem;
	margin: 0 0 var(--space-sm);
}

.author-box__name {
	margin: 0 0 0.25rem;
	font-family: var(--font-serif);
	font-size: 1.0625rem;
}

.author-box__role {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.author-box__bio {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	color: var(--text-secondary);
}

.author-box__updated {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.related-module {
	margin: var(--space-lg) 0;
	padding: var(--space-md);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.related-module__title {
	font-size: 1.125rem;
	margin: 0 0 var(--space-sm);
}

.related-module__group {
	margin-top: var(--space-sm);
}

.related-module__group h3 {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin: 0 0 0.35rem;
}

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

.related-module li {
	padding: 0.25rem 0;
}

.correction-link {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: var(--space-sm) 0 var(--space-lg);
}

.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea {
	display: block;
	width: 100%;
	margin-bottom: var(--space-sm);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
}

.contact-form__heading {
	margin: var(--space-lg) 0 var(--space-sm);
	font-size: 1.25rem;
}

.contact-form--compact {
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--border);
}

.profile-enquiry {
	margin: var(--space-xl) 0 var(--space-lg);
}

.contact-flash {
	padding: 0.75rem 1rem;
	margin: 0 0 var(--space-md);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.contact-flash--success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.contact-flash--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.form-note {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.author-profile__header {
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
	margin-bottom: var(--space-md);
}

.author-profile__role {
	color: var(--text-muted);
	margin: 0.25rem 0;
}

.author-work-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.author-work-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
}

.author-work-list__type {
	display: inline-block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin-right: 0.5rem;
}

.error-404__links ul {
	list-style: none;
	margin: var(--space-md) 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.error-404__links a {
	color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: var(--focus-outline);
	outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: none;
	border-color: var(--blue);
	box-shadow: var(--focus-ring);
}

/* Editorial UX — reading progress (lightweight) */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 200;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.reading-progress.is-active {
	opacity: 1;
}

.reading-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--blue);
}

.toc--sticky {
	/* Deprecated: sticky TOC overlapped article text. Kept inert for old caches. */
	position: static;
	top: auto;
}

.entity-nav {
	margin: var(--space-lg) 0;
	padding-top: var(--space-md);
	border-top: 1px solid var(--border);
}

.recently-updated {
	margin: var(--space-lg) 0;
}

.recently-updated time {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Search autocomplete — layout shell; item styles in product-ui.css */
.brel-ac {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 120;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lift);
	max-height: min(22rem, 70vh);
	overflow-y: auto;
	padding: var(--space-2xs);
}

