/**
 * AI Regulation Platform — Custom Styles
 * Beyond what theme.json can express.
 */

/* ============================================
   CSS Custom Properties (Light Mode Defaults)
   ============================================ */

:root {
	--aireg-bg: #FAFAF8;
	--aireg-bg-surface: #F5F5F3;
	--aireg-bg-elevated: #FFFFFF;
	--aireg-text: #0A0E1A;
	--aireg-text-secondary: #6B7280;
	--aireg-border: #E5E5E3;
	--aireg-teal: #0D4F4F;
	--aireg-teal-glow: #1A8A8A;
	--aireg-brand-teal: #0D4F4F;
	--aireg-brand-teal-glow: #1A8A8A;
	--aireg-amber: #D4A039;
	--aireg-sage: #4A7C6F;
	--aireg-critical: #B85C38;
	--aireg-teal-light: #E8F4F4;
	--aireg-amber-light: #FDF6E8;
	--aireg-sage-light: #EDF5F2;
	--aireg-critical-light: #FDF0EB;

	/* Parchment material (warm law) */
	--aireg-parchment: #F5F0E8;
	--aireg-parchment-deep: #EDE7DB;
	--aireg-parchment-ink: #2C2417;
	--aireg-parchment-secondary: #7A6E5A;
	--aireg-parchment-border: #D9D0C3;
	--aireg-warm-glow: 0 2px 8px rgba(44, 36, 23, 0.08);
	--aireg-warm-glow-hover: 0 4px 16px rgba(44, 36, 23, 0.12);

	/* Teal glow shadow — the visual signature */
	--aireg-glow: 0 0 0 1px rgba(13, 79, 79, 0.15), 0 8px 24px -4px rgba(13, 79, 79, 0.12);
	--aireg-glow-sm: 0 0 0 1px rgba(13, 79, 79, 0.1), 0 4px 12px -2px rgba(13, 79, 79, 0.08);
	--aireg-glow-lg: 0 0 0 1px rgba(13, 79, 79, 0.15), 0 16px 40px -8px rgba(13, 79, 79, 0.18);

	/* Overlays — flip for dark/light */
	--aireg-overlay-faint: rgba(0, 0, 0, 0.03);
	--aireg-overlay-subtle: rgba(0, 0, 0, 0.06);
	--aireg-overlay-light: rgba(0, 0, 0, 0.1);

	/* Grid pattern */
	--aireg-grid-color: rgba(26, 138, 138, 0.06);
	--aireg-grid-size: 60px;

	/* Grid hover glow (set by JS mousemove) */
	--aireg-mouse-x: 50%;
	--aireg-mouse-y: 50%;
	--aireg-grid-glow-opacity: 0;
}

/* ============================================
   Dark Mode Custom Properties
   ============================================ */

[data-theme="dark"] {
	--aireg-bg: #0A0E1A;
	--aireg-bg-surface: #121627;
	--aireg-bg-elevated: #1C2035;
	--aireg-text: #E8E6E3;
	--aireg-text-secondary: #9CA3AF;
	--aireg-border: #232840;
	--aireg-teal: #1A8A8A;
	--aireg-teal-glow: #1A8A8A;
	--aireg-brand-teal: #1A8A8A;
	--aireg-brand-teal-glow: #1A8A8A;
	--aireg-amber: #E8C16A;
	--aireg-sage: #6BAF9E;
	--aireg-critical: #D4785A;
	--aireg-teal-light: #0D2E2E;
	--aireg-amber-light: #2E2510;
	--aireg-sage-light: #0D2E24;
	--aireg-critical-light: #2E1810;

	/* Parchment material — stays warm regardless of theme */
	--aireg-parchment: #F5F0E8;
	--aireg-parchment-deep: #EDE7DB;
	--aireg-parchment-ink: #2C2417;
	--aireg-parchment-secondary: #7A6E5A;
	--aireg-parchment-border: #D9D0C3;
	--aireg-warm-glow: 0 2px 8px rgba(44, 36, 23, 0.08);
	--aireg-warm-glow-hover: 0 4px 16px rgba(44, 36, 23, 0.12);

	--aireg-glow: 0 0 0 1px rgba(26, 138, 138, 0.25), 0 8px 24px -4px rgba(26, 138, 138, 0.2);
	--aireg-glow-sm: 0 0 0 1px rgba(26, 138, 138, 0.2), 0 4px 12px -2px rgba(26, 138, 138, 0.15);
	--aireg-glow-lg: 0 0 0 1px rgba(26, 138, 138, 0.3), 0 16px 40px -8px rgba(26, 138, 138, 0.25);

	--aireg-grid-color: rgba(26, 138, 138, 0.08);

	/* Overlays — white on dark */
	--aireg-overlay-faint: var(--aireg-overlay-faint);
	--aireg-overlay-subtle: var(--aireg-overlay-subtle);
	--aireg-overlay-light: var(--aireg-overlay-light);
}

/* ============================================
   Jurisdiction World Themes
   ============================================ */

body:not([data-jurisdiction]),
body[data-jurisdiction="all"] {
	--jurisdiction-accent: #1A8A8A;
	--jurisdiction-accent-rgb: 26, 138, 138;
	--jurisdiction-glow: #1A8A8A;
	--jurisdiction-secondary: #0D4F4F;
}

body[data-jurisdiction="eu"] {
	--jurisdiction-accent: #1A3A8A;
	--jurisdiction-accent-rgb: 26, 58, 138;
	--jurisdiction-glow: #3B6FD4;
	--jurisdiction-secondary: #D4A039;
	--aireg-teal: #1A3A8A;
	--aireg-teal-glow: #3B6FD4;
	--aireg-teal-light: #0D1E3E;
	--aireg-glow: 0 0 0 1px rgba(26,58,138,0.25), 0 8px 24px -4px rgba(26,58,138,0.2);
	--aireg-glow-sm: 0 0 0 1px rgba(26,58,138,0.2), 0 4px 12px -2px rgba(26,58,138,0.15);
	--aireg-glow-lg: 0 0 0 1px rgba(26,58,138,0.3), 0 16px 40px -8px rgba(26,58,138,0.25);
	--aireg-grid-color: rgba(26,58,138,0.08);
}

body[data-jurisdiction="us"] {
	--jurisdiction-accent: #D4A039;
	--jurisdiction-accent-rgb: 212, 160, 57;
	--jurisdiction-glow: #E8C16A;
	--jurisdiction-secondary: #B8860B;
	--aireg-teal: #D4A039;
	--aireg-teal-glow: #E8C16A;
	--aireg-teal-light: #2E2510;
	--aireg-glow: 0 0 0 1px rgba(212,160,57,0.25), 0 8px 24px -4px rgba(212,160,57,0.2);
	--aireg-glow-sm: 0 0 0 1px rgba(212,160,57,0.2), 0 4px 12px -2px rgba(212,160,57,0.15);
	--aireg-glow-lg: 0 0 0 1px rgba(212,160,57,0.3), 0 16px 40px -8px rgba(212,160,57,0.25);
	--aireg-grid-color: rgba(212,160,57,0.08);
}

body[data-jurisdiction="uk"] {
	--jurisdiction-accent: #6B21A8;
	--jurisdiction-accent-rgb: 107, 33, 168;
	--jurisdiction-glow: #9333EA;
	--jurisdiction-secondary: #C0C0C0;
	--aireg-teal: #6B21A8;
	--aireg-teal-glow: #9333EA;
	--aireg-teal-light: #1E0D3E;
	--aireg-glow: 0 0 0 1px rgba(107,33,168,0.25), 0 8px 24px -4px rgba(107,33,168,0.2);
	--aireg-glow-sm: 0 0 0 1px rgba(107,33,168,0.2), 0 4px 12px -2px rgba(107,33,168,0.15);
	--aireg-glow-lg: 0 0 0 1px rgba(107,33,168,0.3), 0 16px 40px -8px rgba(107,33,168,0.25);
	--aireg-grid-color: rgba(107,33,168,0.08);
}

body[data-jurisdiction="cn"] {
	--jurisdiction-accent: #B91C1C;
	--jurisdiction-accent-rgb: 185, 28, 28;
	--jurisdiction-glow: #DC2626;
	--jurisdiction-secondary: #D4A039;
	--aireg-teal: #B91C1C;
	--aireg-teal-glow: #DC2626;
	--aireg-teal-light: #2E100D;
	--aireg-glow: 0 0 0 1px rgba(185,28,28,0.25), 0 8px 24px -4px rgba(185,28,28,0.2);
	--aireg-glow-sm: 0 0 0 1px rgba(185,28,28,0.2), 0 4px 12px -2px rgba(185,28,28,0.15);
	--aireg-glow-lg: 0 0 0 1px rgba(185,28,28,0.3), 0 16px 40px -8px rgba(185,28,28,0.25);
	--aireg-grid-color: rgba(185,28,28,0.08);
}

body[data-jurisdiction="kr"] {
	--jurisdiction-accent: #0891B2;
	--jurisdiction-accent-rgb: 8, 145, 178;
	--jurisdiction-glow: #22D3EE;
	--jurisdiction-secondary: #E0F2FE;
	--aireg-teal: #0891B2;
	--aireg-teal-glow: #22D3EE;
	--aireg-teal-light: #0D2E35;
	--aireg-glow: 0 0 0 1px rgba(8,145,178,0.25), 0 8px 24px -4px rgba(8,145,178,0.2);
	--aireg-glow-sm: 0 0 0 1px rgba(8,145,178,0.2), 0 4px 12px -2px rgba(8,145,178,0.15);
	--aireg-glow-lg: 0 0 0 1px rgba(8,145,178,0.3), 0 16px 40px -8px rgba(8,145,178,0.25);
	--aireg-grid-color: rgba(8,145,178,0.08);
}

/* ============================================
   Jurisdiction Page Backgrounds — Themed tints + shapes
   ============================================ */

/* Jurisdiction hero atmosphere tints — scoped to hero only, not body */
body[data-jurisdiction="eu"] .aireg-hero-atmosphere {
	background:
		radial-gradient(ellipse at 10% 20%, rgba(26,58,138,0.14) 0%, transparent 50%),
		radial-gradient(ellipse at 90% 80%, rgba(26,58,138,0.08) 0%, transparent 50%) !important;
}
body[data-jurisdiction="us"] .aireg-hero-atmosphere {
	background:
		radial-gradient(ellipse at 85% 15%, rgba(212,160,57,0.12) 0%, transparent 50%),
		radial-gradient(ellipse at 15% 85%, rgba(212,160,57,0.06) 0%, transparent 50%) !important;
}
body[data-jurisdiction="uk"] .aireg-hero-atmosphere {
	background:
		radial-gradient(ellipse at 50% 30%, rgba(107,33,168,0.12) 0%, transparent 50%),
		radial-gradient(ellipse at 20% 70%, rgba(107,33,168,0.06) 0%, transparent 50%) !important;
}
body[data-jurisdiction="cn"] .aireg-hero-atmosphere {
	background:
		radial-gradient(ellipse at 50% 50%, rgba(185,28,28,0.10) 0%, transparent 50%) !important;
}
body[data-jurisdiction="kr"] .aireg-hero-atmosphere {
	background:
		radial-gradient(ellipse at 30% 40%, rgba(8,145,178,0.12) 0%, transparent 50%),
		radial-gradient(ellipse at 70% 60%, rgba(8,145,178,0.06) 0%, transparent 50%) !important;
}

/* Dark mode color overrides for WP elements */
[data-theme="dark"] body,
[data-theme="dark"] {
	background-color: var(--aireg-bg);
	color: var(--aireg-text);
}

[data-theme="dark"] .wp-block-group,
[data-theme="dark"] .aireg-article-card,
[data-theme="dark"] .aireg-template-card {
	border-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-header {
	background: rgba(10, 14, 26, 0.92);
	border-bottom-color: var(--aireg-border);
}

[data-theme="dark"] .wp-block-navigation a,
[data-theme="dark"] .wp-block-site-title a {
	color: var(--aireg-text);
}

[data-theme="dark"] .wp-block-post-title a {
	color: var(--aireg-text);
}

[data-theme="dark"] .wp-block-post-title a:hover {
	color: var(--aireg-teal);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
	color: var(--aireg-text);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th {
	color: var(--aireg-text);
}

[data-theme="dark"] a {
	color: var(--aireg-teal);
}

[data-theme="dark"] a:hover {
	color: var(--aireg-text);
}

[data-theme="dark"] .has-slate-color {
	color: var(--aireg-text-secondary) !important;
}

[data-theme="dark"] .has-surface-background-color {
	background-color: var(--aireg-bg-surface) !important;
}

[data-theme="dark"] .wp-block-search__input {
	background: var(--aireg-bg-surface);
	color: var(--aireg-text);
	border-color: var(--aireg-border);
}

[data-theme="dark"] .wp-block-quote {
	background: var(--aireg-bg-surface);
}

[data-theme="dark"] .wp-block-code {
	background: var(--aireg-bg-surface);
	color: var(--aireg-text);
}

[data-theme="dark"] .wp-block-separator {
	background-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-jurisdiction-table thead th {
	background: var(--aireg-bg-surface);
}

[data-theme="dark"] .aireg-jurisdiction-table td {
	border-bottom-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-jurisdiction-table table {
	border-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-newsletter-form input[type="email"] {
	background: var(--aireg-bg-surface);
	color: var(--aireg-text);
	border-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-jurisdiction-pills a {
	background: var(--aireg-bg-surface);
	color: var(--aireg-text);
	border-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-callout-deadline {
	background: var(--aireg-amber-light);
}

[data-theme="dark"] .aireg-callout-warning {
	background: var(--aireg-critical-light);
}

[data-theme="dark"] .aireg-callout-insight {
	background: var(--aireg-teal-light);
}

[data-theme="dark"] .aireg-callout-tip {
	background: var(--aireg-sage-light);
}

[data-theme="dark"] .wp-block-button__link {
	background: var(--aireg-teal);
	color: var(--aireg-text);
}

[data-theme="dark"] .wp-block-button__link:hover {
	background: var(--aireg-text);
	color: var(--aireg-bg);
}

/* Dark mode transition — 300ms smooth */
body,
.wp-block-group,
.aireg-article-card,
.aireg-template-card,
.aireg-header,
.aireg-footer,
.wp-block-quote,
.wp-block-code,
.wp-block-search__input,
.wp-block-separator,
.aireg-newsletter-form input[type="email"],
.aireg-jurisdiction-pills a,
.aireg-jurisdiction-table thead th,
.aireg-jurisdiction-table td,
.aireg-jurisdiction-table table,
.aireg-callout-deadline,
.aireg-callout-warning,
.aireg-callout-insight,
.aireg-callout-tip {
	transition:
		background-color 300ms ease,
		color 300ms ease,
		border-color 300ms ease;
}

/* ============================================
   Dark Mode Toggle Button
   ============================================ */

.aireg-theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--full);
	background: transparent;
	color: var(--aireg-text-secondary);
	cursor: pointer;
	transition: all 150ms ease;
	flex-shrink: 0;
}

.aireg-theme-toggle:hover {
	border-color: var(--aireg-brand-teal);
	color: var(--aireg-brand-teal);
	box-shadow: var(--aireg-glow-sm);
}

.aireg-theme-toggle:focus-visible {
	border-color: var(--aireg-brand-teal);
	color: var(--aireg-brand-teal);
	box-shadow: var(--aireg-glow-sm);
	outline: 2px solid var(--aireg-brand-teal);
	outline-offset: 2px;
}

.aireg-theme-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aireg-theme-toggle .aireg-icon-sun { display: none; }
.aireg-theme-toggle .aireg-icon-moon { display: block; }

[data-theme="dark"] .aireg-theme-toggle .aireg-icon-sun { display: block; }
[data-theme="dark"] .aireg-theme-toggle .aireg-icon-moon { display: none; }

/* ============================================
   Regulatory Grid Background Pattern (Global)
   ============================================ */

.aireg-grid-bg {
	position: relative;
}

.aireg-grid-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--aireg-grid-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--aireg-grid-color) 1px, transparent 1px);
	background-size: var(--aireg-grid-size) var(--aireg-grid-size);
	pointer-events: none;
	z-index: 0;
	animation: aireg-grid-draw 800ms ease-out both;
}

/* Grid hover glow — radial gradient follows cursor */
.aireg-grid-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		300px circle at var(--aireg-mouse-x) var(--aireg-mouse-y),
		rgba(var(--jurisdiction-accent-rgb), 0.08),
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
	opacity: var(--aireg-grid-glow-opacity);
	transition: opacity 300ms ease;
}

@keyframes aireg-grid-draw {
	from {
		opacity: 0;
		background-size: 0px 0px;
	}
	50% {
		opacity: 0.5;
		background-size: 30px 30px;
	}
	to {
		opacity: 1;
		background-size: var(--aireg-grid-size) var(--aireg-grid-size);
	}
}

/* Hero section — grid-bg base z-index handled in hero section below */

/* ============================================
   Reading Progress Bar
   ============================================ */

.aireg-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background:
		linear-gradient(90deg, var(--aireg-teal), var(--aireg-teal-glow), var(--aireg-teal));
	background-size: 200% 100%;
	animation: aireg-progress-shimmer 3s ease-in-out infinite;
	z-index: 200;
	transition: width 50ms linear;
	pointer-events: none;
}

/* ============================================
   Jurisdiction Selector Bar
   ============================================ */

.aireg-jurisdiction-bar {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--aireg-border);
	background: var(--aireg-bg);
	transition: background-color 300ms ease, border-color 300ms ease;
}

.aireg-jurisdiction-bar-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.aireg-jurisdiction-bar-inner::-webkit-scrollbar {
	display: none;
}

.aireg-jurisdiction-bar-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aireg-text-secondary);
	white-space: nowrap;
	margin-right: 4px;
}

.aireg-jurisdiction-btn {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: transparent;
	color: var(--aireg-text-secondary);
	cursor: pointer;
	transition: all 150ms ease;
	white-space: nowrap;
}

.aireg-jurisdiction-btn:hover {
	border-color: var(--jurisdiction-accent);
	color: var(--jurisdiction-accent);
}

.aireg-jurisdiction-btn:focus-visible {
	border-color: var(--aireg-teal);
	color: var(--aireg-teal);
	outline: 2px solid var(--aireg-teal);
	outline-offset: 2px;
}

.aireg-jurisdiction-btn.is-active {
	background: var(--jurisdiction-accent);
	border-color: var(--jurisdiction-accent);
	color: var(--aireg-bg);
	box-shadow: var(--aireg-glow-sm);
	transition: background 600ms ease, border-color 600ms ease, color 150ms ease;
}

[data-theme="dark"] .aireg-jurisdiction-btn.is-active {
	color: var(--aireg-text);
}

/* Card filtering animation */
.aireg-article-card[data-jurisdiction] {
	transition:
		opacity 300ms ease,
		transform 300ms ease,
		border-color 300ms ease,
		box-shadow 300ms ease;
}

.aireg-article-card.is-filtered-out {
	opacity: 0;
	transform: scale(0.95);
	pointer-events: none;
	position: absolute;
	visibility: hidden;
}

/* Jurisdiction highlight on single articles */
.aireg-jurisdiction-btn.is-dimmed {
	opacity: 0.35;
}

/* ============================================
   Article Card Interactions — Teal Glow
   ============================================ */

/* Base card styles — see "Article Cards" section below for full treatment */

/* Card hover merged — all hover properties in glassmorphism section below (line ~3275) */

.aireg-article-card:hover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: var(--aireg-teal);
	border-radius: var(--wp--custom--border-radius--md) 0 0 var(--wp--custom--border-radius--md);
	animation: aireg-border-draw 300ms ease-out;
}

@keyframes aireg-border-draw {
	from { height: 0; }
	to { height: 100%; }
}

/* ============================================
   Link Hover: Underline draws left-to-right
   ============================================ */

.wp-block-post-content a:not(.wp-block-button__link) {
	text-decoration: none;
	background-image: linear-gradient(var(--aireg-teal), var(--aireg-teal));
	background-size: 0% 1px;
	background-position: left bottom;
	background-repeat: no-repeat;
	transition: background-size var(--wp--custom--transition--base);
}

.wp-block-post-content a:not(.wp-block-button__link):hover {
	background-size: 100% 1px;
}

/* ============================================
   Jurisdiction Pills
   ============================================ */

.aireg-jurisdiction-pills .wp-block-post-terms__separator {
	display: none;
}

.aireg-jurisdiction-pills a,
.aireg-jurisdiction-pills .wp-block-post-terms a {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--full);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--aireg-bg-surface);
	color: var(--aireg-text);
	transition: all var(--wp--custom--transition--fast);
}

.aireg-jurisdiction-pills a:hover {
	border-color: var(--aireg-teal);
	color: var(--aireg-teal);
	box-shadow: var(--aireg-glow-sm);
}

/* ============================================
   Comparison Table Enhancements
   ============================================ */

.aireg-jurisdiction-table table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--md);
	overflow: hidden;
	width: 100%;
}

.aireg-jurisdiction-table thead {
	position: sticky;
	top: 0;
	z-index: 10;
}

.aireg-jurisdiction-table thead th {
	background: var(--aireg-bg-surface);
	backdrop-filter: blur(8px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 12px 16px;
	border-bottom: 2px solid var(--aireg-border);
	transition: background-color 300ms ease;
}

.aireg-jurisdiction-table td {
	padding: 12px 16px;
	vertical-align: top;
	border-bottom: 1px solid var(--aireg-border);
	transition:
		background-color var(--wp--custom--transition--fast),
		box-shadow var(--wp--custom--transition--fast);
}

/* Teal glow hover for rows */
.aireg-jurisdiction-table tr.is-row-hover td {
	background-color: var(--aireg-teal-light);
	box-shadow: inset 0 0 0 1px rgba(var(--jurisdiction-accent-rgb), 0.06);
}

/* Teal glow hover for columns */
.aireg-jurisdiction-table td.is-col-hover,
.aireg-jurisdiction-table th.is-col-hover {
	background-color: var(--aireg-teal-light);
}

/* Expandable rows */
.aireg-table-expand-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: none;
	background: none;
	color: var(--aireg-teal);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	transition: color 150ms ease;
}

.aireg-table-expand-btn:hover {
	color: var(--aireg-text);
}

.aireg-table-expand-btn svg {
	width: 14px;
	height: 14px;
	transition: transform 200ms ease;
}

.aireg-table-expand-btn[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.aireg-table-detail {
	max-height: 0;
	overflow: hidden;
	transition: max-height 400ms ease-out;
}

.aireg-table-detail.is-expanded {
	max-height: 200px;
}

.aireg-table-detail-inner {
	padding: 8px 0 4px;
	font-size: 0.85rem;
	color: var(--aireg-text-secondary);
	line-height: 1.5;
}

/* Export button */
.aireg-table-export {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--full);
	background: transparent;
	color: var(--aireg-text-secondary);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 150ms ease;
}

.aireg-table-export:hover {
	border-color: var(--aireg-teal);
	color: var(--aireg-teal);
	box-shadow: var(--aireg-glow-sm);
}

.aireg-table-export svg {
	width: 14px;
	height: 14px;
}

[data-theme="dark"] .aireg-table-export {
	border-color: var(--aireg-border);
	color: var(--aireg-text-secondary);
}

[data-theme="dark"] .aireg-table-export:hover {
	border-color: var(--aireg-teal);
	color: var(--aireg-teal);
}

.aireg-table-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

/* ============================================
   Newsletter Form
   ============================================ */

.aireg-newsletter-form {
	display: flex;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}

.aireg-newsletter-form input[type="email"] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--aireg-border);
	border-right: none;
	border-radius: var(--wp--custom--border-radius--md) 0 0 var(--wp--custom--border-radius--md);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	background: var(--aireg-bg);
	color: var(--aireg-text);
}

.aireg-newsletter-form input[type="email"]:focus {
	outline: 2px solid var(--aireg-teal);
	outline-offset: -2px;
}

.aireg-newsletter-form button {
	padding: 12px 24px;
	background: var(--aireg-teal);
	color: var(--aireg-bg);
	border: none;
	border-radius: 0 var(--wp--custom--border-radius--md) var(--wp--custom--border-radius--md) 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
}

/* Newsletter scroll-depth trigger */
.aireg-newsletter-scroll-cta {
	position: fixed;
	bottom: -200px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 150;
	background: var(--aireg-bg-elevated);
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--lg);
	padding: 20px 28px;
	box-shadow: var(--aireg-glow-lg);
	max-width: 460px;
	width: calc(100% - 32px);
	transition: bottom 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aireg-newsletter-scroll-cta.is-visible {
	bottom: 24px;
}

.aireg-newsletter-scroll-cta-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	color: var(--aireg-text-secondary);
	cursor: pointer;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wp--custom--border-radius--full);
	transition: color 150ms ease;
}

.aireg-newsletter-scroll-cta-close:hover {
	color: var(--aireg-text);
}

.aireg-newsletter-scroll-cta h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.aireg-newsletter-scroll-cta p {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: var(--aireg-text-secondary);
}

/* ============================================
   Template Download Card — Teal Glow
   ============================================ */

.aireg-template-card {
	transition:
		border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base);
}

.aireg-template-card:hover {
	border-color: var(--aireg-teal);
	box-shadow: var(--aireg-glow);
	transform: translateY(-2px);
}

/* File type badge */
.aireg-file-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--wp--custom--border-radius--full);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.aireg-file-badge--pdf { background: var(--aireg-critical-light); color: var(--aireg-critical); }
.aireg-file-badge--xlsx { background: var(--aireg-sage-light); color: var(--aireg-sage); }
.aireg-file-badge--docx { background: var(--aireg-teal-light); color: var(--aireg-teal); }

/* ============================================
   Callout Boxes
   ============================================ */

.aireg-callout-deadline {
	border-left: 3px solid var(--aireg-amber);
	background: var(--aireg-amber-light);
}

.aireg-callout-warning {
	border-left: 3px solid var(--aireg-critical);
	background: var(--aireg-critical-light);
}

.aireg-callout-insight {
	border-left: 3px solid var(--aireg-teal);
	background: var(--aireg-teal-light);
}

.aireg-callout-tip {
	border-left: 3px solid var(--aireg-sage);
	background: var(--aireg-sage-light);
}

.aireg-callout-deadline,
.aireg-callout-warning,
.aireg-callout-insight,
.aireg-callout-tip {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: 0 var(--wp--custom--border-radius--sm) var(--wp--custom--border-radius--sm) 0;
	margin: var(--wp--preset--spacing--40) 0;
}

/* ============================================
   Disclaimer Block
   ============================================ */

.aireg-disclaimer {
	position: relative;
}

/* ============================================
   Overline Category Labels
   ============================================ */

.aireg-overline a {
	text-decoration: none;
}

/* ============================================
   Scroll Animation — Assembly Entrance
   ============================================ */

/* Default: content rises from below */
.aireg-animate-in {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.aireg-animate-in.is-visible {
	opacity: 1;
	transform: translate(0, 0);
}

/* Directional entrance: headings from left */
.aireg-animate-in--left {
	opacity: 0;
	transform: translateX(-16px);
	transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.aireg-animate-in--left.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* Directional entrance: pills/tags from right */
.aireg-animate-in--right {
	opacity: 0;
	transform: translateX(16px);
	transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.aireg-animate-in--right.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* Directional entrance: scale up (for cards) */
.aireg-animate-in--scale {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.aireg-animate-in--scale.is-visible {
	opacity: 1;
	transform: scale(1);
}

/* Staggered children */
.aireg-stagger > * {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.aireg-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.aireg-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.aireg-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.aireg-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.aireg-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.aireg-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }

.aireg-stagger.is-visible > * {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================
   View Transitions API (Progressive)
   ============================================ */

@view-transition {
	navigation: auto;
}

::view-transition-old(root) {
	animation: aireg-vt-fade-out 200ms ease-out;
}

::view-transition-new(root) {
	animation: aireg-vt-fade-in 300ms ease-in;
}

@keyframes aireg-vt-fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes aireg-vt-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Card → article title morph */
.aireg-article-card .wp-block-post-title,
.aireg-article-card h3.wp-block-heading,
.aireg-article-card h4.wp-block-heading {
	view-transition-name: article-title;
}

.aireg-article-header .wp-block-post-title {
	view-transition-name: article-title;
}

/* ============================================
   Deadline Countdown
   ============================================ */

.aireg-countdown {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.aireg-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 70px;
}

.aireg-countdown-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--aireg-amber);
	animation: aireg-countdown-pulse 2s ease-in-out infinite;
}

.aireg-countdown-label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aireg-text-secondary);
	margin-top: 4px;
}

@keyframes aireg-countdown-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.02); }
}

/* Countdown wrapper */
.aireg-deadline-countdown {
	text-align: center;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--md);
	background: var(--aireg-bg-surface);
	border-left: 3px solid var(--aireg-amber);
}

.aireg-deadline-countdown h3 {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.aireg-deadline-countdown .aireg-countdown-note {
	margin-top: var(--wp--preset--spacing--30);
	font-size: 0.85rem;
	color: var(--aireg-text-secondary);
}

/* ============================================
   Header — sticky + backdrop blur
   ============================================ */

.aireg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 250, 248, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* ============================================
   TOC Scroll Spy — Active Section
   ============================================ */

.aireg-toc a.is-active {
	color: var(--aireg-teal) !important;
	font-weight: 600;
}

/* ============================================
   Reading Time (populated via JS)
   ============================================ */

.aireg-reading-time::before {
	content: "";
}

/* Breakpoints: Mobile 600px | Tablet 768px | Desktop 1024px */

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
	.aireg-newsletter-form {
		flex-direction: column;
	}

	.aireg-newsletter-form input[type="email"] {
		border-right: 1px solid var(--aireg-border);
		border-radius: var(--wp--custom--border-radius--md) var(--wp--custom--border-radius--md) 0 0;
	}

	.aireg-newsletter-form button {
		border-radius: 0 0 var(--wp--custom--border-radius--md) var(--wp--custom--border-radius--md);
	}

	.aireg-header-search {
		display: none;
	}

	/* Comparison table → card view on mobile */
	.aireg-jurisdiction-table table,
	.aireg-jurisdiction-table thead,
	.aireg-jurisdiction-table tbody,
	.aireg-jurisdiction-table th,
	.aireg-jurisdiction-table td,
	.aireg-jurisdiction-table tr {
		display: block;
	}

	.aireg-jurisdiction-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.aireg-jurisdiction-table tr {
		margin-bottom: 16px;
		border: 1px solid var(--aireg-border);
		border-radius: var(--wp--custom--border-radius--md);
		overflow: hidden;
	}

	.aireg-jurisdiction-table td {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 8px;
		padding: 10px 16px;
		border-bottom: 1px solid var(--aireg-border);
	}

	.aireg-jurisdiction-table td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: var(--aireg-text-secondary);
		flex-shrink: 0;
		min-width: 80px;
		max-width: 80px;
		white-space: normal;
	}

	.aireg-jurisdiction-table td:last-child {
		border-bottom: none;
	}

	/* Countdown responsive */
	.aireg-countdown-number {
		font-size: 2rem;
	}
}

@media (max-width: 600px) {
	.aireg-persona-nav .wp-block-buttons {
		flex-direction: column;
		align-items: center;
	}

	.aireg-jurisdiction-bar-inner {
		padding: 8px 16px;
	}

	/* Gradient fade indicator for jurisdiction bar overflow */
	.aireg-jurisdiction-bar::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 40px;
		background: linear-gradient(to right, transparent, var(--aireg-bg));
		pointer-events: none;
		z-index: 1;
	}
}

/* ============================================
   Hero — Full-Bleed Constellation
   ============================================ */

/* Full-viewport immersive layout */
.aireg-hero {
	position: relative;
	overflow: hidden;
	background: var(--aireg-bg);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Atmosphere layer — animated radial gradients */
.aireg-hero-atmosphere {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 15% 30%, rgba(var(--jurisdiction-accent-rgb),0.12) 0%, transparent 50%),
		radial-gradient(ellipse at 85% 25%, rgba(var(--jurisdiction-accent-rgb),0.08) 0%, transparent 40%),
		radial-gradient(ellipse at 15% 75%, rgba(var(--jurisdiction-accent-rgb),0.06) 0%, transparent 45%),
		radial-gradient(ellipse at 85% 80%, rgba(var(--jurisdiction-accent-rgb),0.08) 0%, transparent 40%),
		radial-gradient(ellipse at 50% 50%, rgba(var(--jurisdiction-accent-rgb),0.04) 0%, transparent 60%);
	transition: background 600ms ease;
	animation: aireg-atmosphere-breathe 10s ease-in-out infinite alternate;
	z-index: 0;
}

@keyframes aireg-atmosphere-breathe {
	0% { opacity: 0.7; }
	100% { opacity: 1; }
}

/* Full-bleed constellation SVG */
.aireg-hero-constellation {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.aireg-constellation-node {
	pointer-events: auto;
	cursor: pointer;
	transform-box: fill-box;
	transform-origin: center;
}

/* Connection lines — hidden by default, visible only in dark mode */
.aireg-constellation-line {
	stroke: var(--jurisdiction-accent);
	stroke-width: 0.5;
	opacity: 0;
	stroke-dasharray: 1800;
	stroke-dashoffset: 1800;
	animation: aireg-line-draw 1.5s ease-out forwards;
	transition: opacity 300ms ease;
}

[data-theme="dark"] .aireg-constellation-line {
	opacity: 0.12;
	stroke-width: 0.5;
}

.aireg-constellation-line--cross {
	opacity: 0;
	stroke-width: 0.5;
	stroke-dasharray: 6 4, 1800;
}

[data-theme="dark"] .aireg-constellation-line--cross {
	opacity: 0.06;
}

@keyframes aireg-line-draw {
	to { stroke-dashoffset: 0; }
}

/* Node labels */
.aireg-node-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	fill: var(--aireg-text);
	text-anchor: middle;
	dominant-baseline: central;
	transition: fill 300ms ease;
}

/* Node stats below each node */
.aireg-node-stat {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	fill: rgba(var(--jurisdiction-accent-rgb),0.6);
	text-anchor: middle;
	transition: fill 300ms ease, font-size 300ms ease;
}

/* Node core — shared */
.aireg-node-core {
	transition: fill 300ms ease, filter 300ms ease;
}

/* ---- EU Node: Concentric Regulatory Layers ---- */

.aireg-node--eu .aireg-node-ring-outer {
	stroke: var(--jurisdiction-accent); stroke-width: 1; fill: rgba(var(--jurisdiction-accent-rgb), 0.02);
	stroke-dasharray: 3 2; stroke-opacity: 0.4;
	animation: aireg-eu-rotate-cw 120s linear infinite;
	transform-box: fill-box; transform-origin: center;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}
.aireg-node--eu .aireg-node-ring-mid {
	stroke: var(--jurisdiction-accent); stroke-width: 1; fill: none;
	stroke-dasharray: 2 3; stroke-opacity: 0.6;
	animation: aireg-eu-rotate-ccw 200s linear infinite;
	transform-box: fill-box; transform-origin: center;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}
.aireg-node--eu .aireg-node-ring-inner {
	stroke: var(--jurisdiction-accent); stroke-width: 1; fill: none;
	stroke-opacity: 0.8;
	animation: aireg-eu-rotate-cw 80s linear infinite;
	transform-box: fill-box; transform-origin: center;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}
.aireg-node--eu .aireg-node-pip {
	fill: var(--jurisdiction-accent); opacity: 0.5;
	animation: aireg-eu-pip-pulse 4s ease-in-out infinite;
}
.aireg-node--eu .aireg-node-pip:nth-child(5) { animation-delay: 0s; }
.aireg-node--eu .aireg-node-pip:nth-child(6) { animation-delay: 1s; }
.aireg-node--eu .aireg-node-pip:nth-child(7) { animation-delay: 2s; }
.aireg-node--eu .aireg-node-pip:nth-child(8) { animation-delay: 3s; }

.aireg-node--eu .aireg-node-countdown-arc {
	stroke: var(--jurisdiction-accent); stroke-width: 2; fill: none;
	stroke-linecap: round; opacity: 0.5;
	transition: opacity 300ms ease;
}

@keyframes aireg-eu-rotate-cw { to { transform: rotate(360deg); } }
@keyframes aireg-eu-rotate-ccw { to { transform: rotate(-360deg); } }
@keyframes aireg-eu-pip-pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 1; }
}

/* EU hover: speed up rings, show labels */
.aireg-node--eu.is-hovered .aireg-node-ring-outer { animation-duration: 40s; stroke-opacity: 0.7; }
.aireg-node--eu.is-hovered .aireg-node-ring-mid { animation-duration: 66s; stroke-opacity: 0.85; }
.aireg-node--eu.is-hovered .aireg-node-ring-inner { animation-duration: 26s; stroke-opacity: 1; }
.aireg-node--eu.is-hovered .aireg-node-countdown-arc { opacity: 0.9; }

/* ---- US Node: Scattered Agency Cluster ---- */

.aireg-node-boundary-us {
	stroke: var(--jurisdiction-accent); stroke-width: 0.5; fill: rgba(var(--jurisdiction-accent-rgb), 0.02);
	stroke-dasharray: 2 4; stroke-opacity: 0.12;
	animation: aireg-us-boundary-pulse 5s ease-in-out infinite;
	transition: stroke 600ms ease, stroke-dasharray 300ms ease, stroke-opacity 300ms ease;
}
.aireg-node-satellite {
	fill: var(--jurisdiction-accent); opacity: 0.6;
	transition: opacity 300ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-box: fill-box; transform-origin: center;
}
/* Satellites are circles 3-7 in the US group (after boundary + core) */
.aireg-node--us .aireg-node-satellite:nth-of-type(3) { animation: aireg-us-drift-1 5s ease-in-out infinite alternate; }
.aireg-node--us .aireg-node-satellite:nth-of-type(4) { animation: aireg-us-drift-2 4s ease-in-out infinite alternate; }
.aireg-node--us .aireg-node-satellite:nth-of-type(5) { animation: aireg-us-drift-3 7s ease-in-out infinite alternate; }
.aireg-node--us .aireg-node-satellite:nth-of-type(6) { animation: aireg-us-drift-4 3s ease-in-out infinite alternate; }
.aireg-node--us .aireg-node-satellite:nth-of-type(7) { animation: aireg-us-drift-5 6s ease-in-out infinite alternate; }

.aireg-node-spoke {
	stroke: var(--jurisdiction-accent); stroke-width: 0.5; stroke-opacity: 0.15;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}

@keyframes aireg-us-boundary-pulse {
	0%, 100% { stroke-opacity: 0.08; }
	50% { stroke-opacity: 0.2; }
}
@keyframes aireg-us-drift-1 { from { transform: translate(0,0); } to { transform: translate(3px,-2px); } }
@keyframes aireg-us-drift-2 { from { transform: translate(0,0); } to { transform: translate(-2px,4px); } }
@keyframes aireg-us-drift-3 { from { transform: translate(0,0); } to { transform: translate(4px,3px); } }
@keyframes aireg-us-drift-4 { from { transform: translate(0,0); } to { transform: translate(-3px,-5px); } }
@keyframes aireg-us-drift-5 { from { transform: translate(0,0); } to { transform: translate(2px,-3px); } }

/* US hover: satellites spread, boundary solidifies */
.aireg-node--us.is-hovered .aireg-node-boundary-us {
	stroke-dasharray: none; stroke-opacity: 0.4; stroke-width: 1;
}
.aireg-node--us.is-hovered .aireg-node-spoke { stroke-opacity: 0.35; }

/* ---- CN Node: Octagonal Grid ---- */

.aireg-node-frame-cn {
	stroke: var(--jurisdiction-accent); stroke-width: 1; fill: rgba(var(--jurisdiction-accent-rgb), 0.03);
	stroke-opacity: 0.5;
	animation: aireg-cn-frame-step 2s steps(1) infinite;
	transition: stroke 600ms ease, stroke-width 300ms ease, stroke-opacity 300ms ease;
}
.aireg-node-grid-line {
	stroke: var(--jurisdiction-accent); stroke-width: 0.5;
	stroke-opacity: 0.15;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}
.aireg-node-scan {
	stroke: var(--jurisdiction-accent); stroke-width: 1.5;
	stroke-opacity: 0.6;
	animation: aireg-cn-scan 4s linear infinite;
	transform-box: fill-box; transform-origin: center;
}
.aireg-node-stat-sub {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 8px;
	fill: rgba(var(--jurisdiction-accent-rgb),0.4);
	text-anchor: middle;
}

@keyframes aireg-cn-frame-step {
	0%, 49% { stroke-opacity: 0.5; }
	50%, 100% { stroke-opacity: 0.8; }
}
@keyframes aireg-cn-scan {
	0% { transform: translateY(0); opacity: 0.6; }
	90% { transform: translateY(80px); opacity: 0.6; }
	95% { opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

/* CN hover: scan fast, grid illuminates, frame thickens */
.aireg-node--cn.is-hovered .aireg-node-scan { animation-duration: 1.3s; }
.aireg-node--cn.is-hovered .aireg-node-frame-cn { stroke-width: 2; stroke-opacity: 1; }
.aireg-node--cn.is-hovered .aireg-node-grid-line { stroke-opacity: 0.5; transition: stroke-opacity 50ms ease; }
.aireg-node--cn.is-hovered .aireg-node-grid-line:nth-child(2) { transition-delay: 0ms; }
.aireg-node--cn.is-hovered .aireg-node-grid-line:nth-child(3) { transition-delay: 50ms; }
.aireg-node--cn.is-hovered .aireg-node-grid-line:nth-child(4) { transition-delay: 100ms; }
.aireg-node--cn.is-hovered .aireg-node-grid-line:nth-child(5) { transition-delay: 150ms; }
.aireg-node--cn.is-hovered .aireg-node-grid-line:nth-child(6) { transition-delay: 200ms; }
.aireg-node--cn.is-hovered .aireg-node-grid-line:nth-child(7) { transition-delay: 250ms; }

/* ---- UK Node: Breathing Superellipse ---- */

.aireg-node-frame-uk-outer {
	stroke: var(--jurisdiction-accent); stroke-width: 1; fill: rgba(var(--jurisdiction-accent-rgb), 0.02);
	stroke-opacity: 0.5;
	animation: aireg-uk-breathe-outer 6s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}
.aireg-node-frame-uk-inner {
	stroke: var(--jurisdiction-accent); stroke-width: 0.5; fill: rgba(var(--jurisdiction-accent-rgb), 0.03);
	stroke-opacity: 0.35;
	animation: aireg-uk-breathe-inner 8s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
	transition: stroke 600ms ease, stroke-opacity 300ms ease;
}
.aireg-node-principle {
	fill: var(--jurisdiction-accent); opacity: 0.5;
	transform-box: fill-box; transform-origin: center;
}
.aireg-node--uk .aireg-node-principle:nth-of-type(1) { animation: aireg-uk-wobble 5s ease-in-out infinite; }
.aireg-node--uk .aireg-node-principle:nth-of-type(2) { animation: aireg-uk-wobble 7s ease-in-out infinite; }
.aireg-node--uk .aireg-node-principle:nth-of-type(3) { animation: aireg-uk-wobble 9s ease-in-out infinite; }
.aireg-node--uk .aireg-node-principle:nth-of-type(4) { animation: aireg-uk-wobble 6s ease-in-out infinite; }
.aireg-node--uk .aireg-node-principle:nth-of-type(5) { animation: aireg-uk-wobble 8s ease-in-out infinite; }

.aireg-node-stage {
	stroke: var(--jurisdiction-accent); stroke-width: 0.5; fill: none;
	opacity: 0.3;
}
.aireg-stage--done {
	fill: var(--jurisdiction-accent); opacity: 0.7;
}
.aireg-stage--current {
	fill: var(--jurisdiction-accent); opacity: 0.9;
	animation: aireg-uk-stage-pulse 2s ease-in-out infinite;
}

@keyframes aireg-uk-breathe-outer {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.03); }
}
@keyframes aireg-uk-breathe-inner {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(0.97); }
}
@keyframes aireg-uk-wobble {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(1px, -1px); }
	50% { transform: translate(-1px, 1px); }
	75% { transform: translate(1px, 1px); }
}
@keyframes aireg-uk-stage-pulse {
	0%, 100% { opacity: 0.9; }
	50% { opacity: 0.4; }
}

/* UK hover: pause breathing to prevent shake, widen frames */
.aireg-node--uk.is-hovered .aireg-node-frame-uk-outer {
	animation-play-state: paused; transform: scale(1.06); stroke-opacity: 0.8;
}
.aireg-node--uk.is-hovered .aireg-node-frame-uk-inner {
	animation-play-state: paused; transform: scale(0.92); stroke-opacity: 0.6;
}
.aireg-node--uk.is-hovered .aireg-node-principle {
	animation-play-state: paused;
}

/* ---- Shared: Hover-reveal labels ---- */

.aireg-node-pip-label,
.aireg-node-agency-label,
.aireg-node-principle-label {
	opacity: 0;
	transition: opacity 200ms ease;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 7px;
	fill: var(--jurisdiction-accent);
}
.aireg-constellation-node.is-hovered .aireg-node-pip-label,
.aireg-constellation-node.is-hovered .aireg-node-agency-label,
.aireg-constellation-node.is-hovered .aireg-node-principle-label {
	opacity: 1;
}

/* ---- KR Node: Split Hexagon ---- */

.aireg-node-frame-kr {
	stroke: var(--jurisdiction-accent); stroke-width: 1; fill: rgba(var(--jurisdiction-accent-rgb), 0.03);
	stroke-opacity: 0.5;
	animation: aireg-kr-oscillate 5s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
	transition: stroke 600ms ease, stroke-width 300ms ease, stroke-opacity 300ms ease;
}
.aireg-node-divide-kr {
	stroke: var(--jurisdiction-accent); stroke-width: 0.5;
	stroke-opacity: 0.3;
	transition: stroke 600ms ease;
}
.aireg-node-pip-kr {
	fill: var(--jurisdiction-accent); opacity: 0.5;
}
.aireg-pip-kr--left {
	animation: aireg-kr-pip-left 3s ease-in-out infinite;
}
.aireg-pip-kr--right {
	animation: aireg-kr-pip-right 3s ease-in-out infinite;
}
.aireg-node-kr-label {
	opacity: 0; transition: opacity 200ms ease;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 7px; fill: var(--jurisdiction-accent);
}
.aireg-constellation-node.is-hovered .aireg-node-kr-label { opacity: 1; }

@keyframes aireg-kr-oscillate {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(3deg); }
	75% { transform: rotate(-3deg); }
}
@keyframes aireg-kr-pip-left {
	0%, 100% { opacity: 0.8; }
	50% { opacity: 0.3; }
}
@keyframes aireg-kr-pip-right {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 0.8; }
}

/* KR hover: pause oscillation to prevent shake */
.aireg-node--kr.is-hovered .aireg-node-frame-kr {
	animation-play-state: paused; transform: none; stroke-opacity: 0.9; stroke-width: 1.5;
}
.aireg-node--kr.is-hovered .aireg-node-divide-kr { stroke-opacity: 0.6; }
.aireg-node--kr.is-hovered .aireg-node-pip-kr { animation-play-state: paused; }

/* KR in shared active/hover selectors */
.aireg-constellation-node.is-hovered .aireg-node-frame-kr,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-frame-kr {
	filter: drop-shadow(0 0 8px rgba(var(--jurisdiction-accent-rgb),0.4));
}

/* ---- Constellation Transition States ---- */

.aireg-traveling-dots {
	transition: opacity 400ms ease;
}
.aireg-traveling-dots.is-hidden {
	opacity: 0;
}
.aireg-constellation-center {
	transition: opacity 300ms ease;
}
.aireg-constellation-center.is-hidden {
	opacity: 0;
}
.aireg-constellation-line.is-transitioning {
	opacity: 0 !important;
}

/* Center crosshair stats */
.aireg-center-stat-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 400;
	fill: var(--jurisdiction-accent);
	text-anchor: middle;
	transition: fill 600ms ease;
}

.aireg-center-stat-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	fill: rgba(var(--jurisdiction-accent-rgb),0.5);
	text-anchor: middle;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: fill 600ms ease;
}

/* Ambient particles drift */
.aireg-particle {
	animation: aireg-particle-drift 20s ease-in-out infinite alternate;
}

@keyframes aireg-particle-drift {
	0% { transform: translate(0, 0); }
	25% { transform: translate(15px, -10px); }
	50% { transform: translate(-10px, 20px); }
	75% { transform: translate(20px, 5px); }
	100% { transform: translate(-5px, -15px); }
}

/* Node hover states (JS adds .is-hovered) — Gold core + Teal glow + Pop */
.aireg-constellation-node.is-hovered {
	scale: 1.15;
}

.aireg-constellation-node.is-hovered .aireg-node-core {
	fill: #D4A039;
	filter: drop-shadow(0 0 6px rgba(212,160,57,0.7))
	        drop-shadow(0 0 12px rgba(212,160,57,0.3));
}

/* Hover: shapes fill with jurisdiction color + glow */
.aireg-node--eu.is-hovered .aireg-node-ring-outer {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.06); stroke-opacity: 0.9; stroke-width: 1.5;
}
.aireg-node--eu.is-hovered .aireg-node-ring-mid {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.08); stroke-opacity: 1;
}
.aireg-node--eu.is-hovered .aireg-node-ring-inner {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.12); stroke-opacity: 1;
}

.aireg-node--us.is-hovered .aireg-node-boundary-us {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.06);
}
.aireg-node--us.is-hovered .aireg-node-satellite {
	opacity: 1; r: 4;
}

.aireg-node--cn.is-hovered .aireg-node-frame-cn {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.08);
}

.aireg-node--uk.is-hovered .aireg-node-frame-uk-outer {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.06);
}
.aireg-node--uk.is-hovered .aireg-node-frame-uk-inner {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.1);
}

.aireg-node--kr.is-hovered .aireg-node-frame-kr {
	fill: rgba(var(--jurisdiction-accent-rgb), 0.08);
}

/* Shared hover glow on all shape frames */
.aireg-constellation-node.is-hovered .aireg-node-ring-outer,
.aireg-constellation-node.is-hovered .aireg-node-ring-mid,
.aireg-constellation-node.is-hovered .aireg-node-ring-inner,
.aireg-constellation-node.is-hovered .aireg-node-frame-cn,
.aireg-constellation-node.is-hovered .aireg-node-boundary-us,
.aireg-constellation-node.is-hovered .aireg-node-frame-uk-outer,
.aireg-constellation-node.is-hovered .aireg-node-frame-uk-inner,
.aireg-constellation-node.is-hovered .aireg-node-frame-kr {
	filter: drop-shadow(0 0 12px rgba(var(--jurisdiction-accent-rgb),0.5))
	        drop-shadow(0 0 24px rgba(var(--jurisdiction-accent-rgb),0.2));
}

.aireg-constellation-node.is-hovered .aireg-node-stat {
	fill: var(--aireg-teal-glow);
}

.aireg-constellation-node.is-hovered .aireg-node-label {
	fill: #fff;
}

/* Active jurisdiction node — glows in jurisdiction color */
.aireg-constellation-node.is-active-jurisdiction .aireg-node-core {
	fill: var(--jurisdiction-accent);
	filter: drop-shadow(0 0 8px rgba(var(--jurisdiction-accent-rgb),0.6))
	        drop-shadow(0 0 18px rgba(var(--jurisdiction-accent-rgb),0.25));
}

.aireg-constellation-node.is-active-jurisdiction .aireg-node-ring,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-ring-outer,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-ring-mid,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-ring-inner,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-frame-cn,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-boundary-us,
.aireg-constellation-node.is-active-jurisdiction .aireg-node-frame-uk-outer {
	stroke: var(--jurisdiction-accent);
	stroke-width: 2;
	filter: drop-shadow(0 0 10px rgba(var(--jurisdiction-accent-rgb),0.35));
}

.aireg-constellation-node.is-active-jurisdiction .aireg-node-label {
	fill: #fff;
}

.aireg-constellation-node.is-active-jurisdiction .aireg-node-stat {
	fill: var(--jurisdiction-glow);
}

/* Non-active nodes dim when a specific jurisdiction is selected */
.aireg-constellation-node.is-dimmed-jurisdiction {
	opacity: 0.3;
}

/* Text content overlay — centered on top */
.aireg-hero-content {
	position: relative;
	z-index: 2;
	max-width: 640px;
	text-align: center;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40);
}

/* Hero overline with animated dash */
.aireg-hero-overline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--jurisdiction-accent);
	margin: 0 0 var(--wp--preset--spacing--30);
	transition: color 600ms ease;
}

.aireg-overline-dash {
	display: inline-block;
	width: 24px;
	height: 2px;
	background: var(--jurisdiction-accent);
	transition: background 600ms ease;
	animation: aireg-dash-draw 600ms ease-out both;
}

@keyframes aireg-dash-draw {
	from { width: 0; }
	to { width: 24px; }
}

.aireg-hero-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--aireg-text);
}

.aireg-hero-title .aireg-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(12px);
	animation: aireg-word-reveal 400ms ease-out forwards;
}

.aireg-hero-title .aireg-word:last-child {
	color: var(--aireg-teal-glow);
}

@keyframes aireg-word-reveal {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.aireg-hero-subtitle {
	font-size: 1.1rem;
	color: var(--aireg-text-secondary);
	line-height: 1.7;
	max-width: 520px;
	margin: 0 auto var(--wp--preset--spacing--40);
}

/* Hero search form */
.aireg-hero-search-form {
	display: flex;
	max-width: 100%;
	border-radius: var(--wp--custom--border-radius--md);
	overflow: hidden;
	border: 1px solid var(--aireg-border);
}

.aireg-hero-search-form input {
	flex: 1;
	padding: 14px 16px;
	background: var(--aireg-bg-surface);
	border: none;
	color: var(--aireg-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}

.aireg-hero-search-form input::placeholder {
	color: var(--aireg-text-secondary);
}

.aireg-hero-search-form input:focus {
	outline: 2px solid var(--aireg-teal);
	outline-offset: 2px;
	background: var(--aireg-bg-elevated);
}

.aireg-hero-search-form button {
	padding: 14px 20px;
	background: var(--aireg-teal);
	border: none;
	color: var(--aireg-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: background 200ms ease;
}

.aireg-hero-search-form button:hover {
	background: var(--aireg-teal-glow);
}

/* Hero popular link pills */
.aireg-hero-popular {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: var(--wp--preset--spacing--40);
}

.aireg-hero-popular-label {
	font-size: 0.875rem;
	color: var(--aireg-text-secondary);
}

.aireg-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border: 1px solid rgba(var(--jurisdiction-accent-rgb), 0.3);
	border-radius: var(--wp--custom--border-radius--full);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--aireg-teal-glow);
	text-decoration: none;
	transition: all 200ms ease;
}

.aireg-hero-pill:hover {
	border-color: var(--aireg-teal-glow);
	background: rgba(var(--jurisdiction-accent-rgb), 0.1);
	color: var(--aireg-text);
	transform: translateX(2px);
}

.aireg-hero-pill svg {
	transition: transform 200ms ease;
}

.aireg-hero-pill:hover svg {
	transform: translateX(3px);
}

/* Latest Analysis section — contrast from dark surroundings */
.aireg-latest-section {
	background: var(--aireg-bg-surface);
}

[data-theme="dark"] .aireg-latest-section {
	background: var(--aireg-bg-elevated);
}

/* ---- Hero Responsive ---- */

@media (max-width: 768px) {
	.aireg-hero {
		min-height: auto;
	}
	.aireg-hero-constellation {
		opacity: 0.15;
	}
	.aireg-node-stat,
	.aireg-node-stat-sub,
	.aireg-node-label,
	.aireg-node-pip-label,
	.aireg-node-agency-label,
	.aireg-node-principle-label,
	.aireg-node-kr-label,
	.aireg-node-stage {
		display: none;
	}
	.aireg-hero-content {
		padding: 80px 20px 60px;
	}
	.aireg-hero-overline {
		font-size: 0.7rem;
	}
}

@media (max-width: 480px) {
	.aireg-hero-constellation {
		opacity: 0.08;
	}
	.aireg-hero-title {
		font-size: 2rem;
	}
	.aireg-hero-popular {
		gap: 6px;
	}
}

/* ============================================
   Header — Logo Mark & Nav Polish
   ============================================ */

.aireg-logo-mark {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

/* Nav link animated underlines */
.wp-block-navigation-item__content {
	position: relative;
	text-decoration: none;
}

.wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--aireg-teal);
	transition: width 250ms ease;
}

.wp-block-navigation-item__content:hover::after {
	width: 100%;
}

/* Theme toggle animation */
.aireg-theme-toggle svg {
	transition: transform 300ms ease;
}

.aireg-theme-toggle:active svg {
	transform: rotate(180deg);
}

/* Jurisdiction bar active glow */
.aireg-jurisdiction-btn.is-active {
	animation: aireg-btn-glow 2s ease-in-out infinite;
}

@keyframes aireg-btn-glow {
	0%, 100% { box-shadow: var(--aireg-glow-sm); }
	50% { box-shadow: var(--aireg-glow); }
}

/* ============================================
   Article Cards — Featured First + Sequence
   ============================================ */

.aireg-article-card .wp-block-post-terms:first-child a::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	margin-right: 4px;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

/* Featured first card — spans 2 columns, dark treatment */
.wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card {
	grid-column: span 2;
	background: var(--aireg-bg-surface);
	border-top-width: 3px;
	border-top-color: var(--aireg-teal);
}

.wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Card hover child stagger */
.aireg-article-card .wp-block-post-terms {
	transition: color 200ms ease;
}

.aireg-article-card:hover .wp-block-post-terms a {
	color: var(--aireg-teal);
}

.aireg-article-card .wp-block-post-title {
	transition: transform 200ms ease 50ms;
}

.aireg-article-card:hover .wp-block-post-title {
	transform: translateY(-2px);
}

.aireg-article-card .wp-block-post-excerpt {
	transition: opacity 200ms ease 100ms;
}

.aireg-article-card:hover .wp-block-post-excerpt {
	opacity: 0.85;
}

/* Card styling + hover */
.aireg-article-card {
	position: relative;
	border-top: 3px solid var(--aireg-border);
	cursor: pointer;
	transition:
		border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base),
		background-color var(--wp--custom--transition--base),
		opacity 300ms ease;
}

/* Card hover border — merged into glassmorphism section below */

/* ============================================
   404 Page — Disconnected Node
   ============================================ */

/* Broken Constellation */
/* Force dark editorial look on 404 regardless of site theme */
.aireg-404 {
	background: #0A0E1A !important;
	color: #E8E6E3;
	--aireg-bg: #0A0E1A;
	--aireg-bg-surface: #121627;
	--aireg-bg-elevated: #1C2035;
	--aireg-text: #E8E6E3;
	--aireg-text-secondary: #9CA3AF;
	--aireg-border: #232840;
	--aireg-teal: #1A8A8A;
	--aireg-teal-glow: #1A8A8A;
	--aireg-amber: #E8C16A;
	--aireg-overlay-faint: rgba(255, 255, 255, 0.03);
	--aireg-overlay-subtle: rgba(255, 255, 255, 0.06);
	--aireg-overlay-light: rgba(255, 255, 255, 0.1);
	--aireg-grid-color: rgba(26, 138, 138, 0.08);
}

.aireg-404-constellation-wrap {
	max-width: 500px;
	margin: 0 auto var(--wp--preset--spacing--40);
}

.aireg-404-constellation {
	width: 100%;
}

/* Node labels (EU, US, UK) */
.aireg-constellation-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	fill: #1A8A8A;
}

/* Severed lines — dashed, fading */
.aireg-404-line--severed {
	stroke: var(--aireg-teal-glow);
	stroke-width: 1;
	stroke-dasharray: 4 6;
	opacity: 0.15;
	animation: aireg-404-fade-line 3s ease-in-out infinite;
}

@keyframes aireg-404-fade-line {
	0%, 100% { opacity: 0.15; }
	50% { opacity: 0.05; }
}

/* Disconnected node — drifts slowly */
.aireg-404-node--disconnected {
	animation: aireg-404-drift 12s ease-in-out infinite alternate;
	cursor: pointer;
}

@keyframes aireg-404-drift {
	0% { transform: translate(0, 0); }
	33% { transform: translate(5px, -8px); }
	66% { transform: translate(-3px, 6px); }
	100% { transform: translate(8px, -4px); }
}

.aireg-404-node-ring {
	animation: aireg-404-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes aireg-404-ring-pulse {
	0%, 100% { stroke-opacity: 0.6; r: 22; }
	50% { stroke-opacity: 0.2; r: 26; }
}

.aireg-404-node-core-lost {
	animation: aireg-404-core-pulse 1.5s ease-in-out infinite;
}

@keyframes aireg-404-core-pulse {
	0%, 100% { r: 5; opacity: 1; }
	50% { r: 7; opacity: 0.6; }
}

.aireg-404-node-label-you {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	fill: var(--aireg-amber);
}

.aireg-404-reconnecting {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 8px;
	fill: var(--aireg-amber);
	opacity: 0.7;
	animation: aireg-404-reconnect-blink 2s ease-in-out infinite;
}

@keyframes aireg-404-reconnect-blink {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 0.9; }
}

/* Reconnection lines (hidden by default) */
.aireg-404-line--reconnect {
	stroke: var(--aireg-teal-glow);
	stroke-width: 1;
	stroke-dasharray: 200;
	stroke-dashoffset: 200;
	opacity: 0;
	transition: stroke-dashoffset 800ms ease-out, opacity 400ms ease;
}

/* Easter egg: reconnected state */
.aireg-404-constellation.is-reconnected .aireg-404-node--disconnected {
	animation: none;
	transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
	transform: translate(-60px, 0);
}

.aireg-404-constellation.is-reconnected .aireg-404-node-ring {
	animation: none;
	stroke: var(--aireg-teal-glow);
	stroke-dasharray: none;
	fill: rgba(var(--jurisdiction-accent-rgb), 0.08);
	transition: all 600ms ease;
}

.aireg-404-constellation.is-reconnected .aireg-404-node-core-lost {
	animation: none;
	fill: var(--aireg-teal-glow);
	transition: fill 400ms ease;
}

.aireg-404-constellation.is-reconnected .aireg-404-node-label-you {
	fill: var(--aireg-teal-glow);
	transition: fill 400ms ease;
}

.aireg-404-constellation.is-reconnected .aireg-404-reconnecting {
	animation: none;
	opacity: 0;
}

.aireg-404-constellation.is-reconnected .aireg-404-line--severed {
	opacity: 0;
	transition: opacity 300ms ease;
}

.aireg-404-constellation.is-reconnected .aireg-404-line--reconnect {
	opacity: 1;
	stroke-dashoffset: 0;
}

.aireg-404-constellation.is-reconnected .aireg-404-particle {
	opacity: 0 !important;
	transition: opacity 500ms ease;
}

/* Grid-Number 404 Matrix */
.aireg-404-matrix {
	display: flex;
	justify-content: center;
	gap: clamp(16px, 4vw, 32px);
	margin: 0 auto var(--wp--preset--spacing--40);
}

.aireg-404-digit {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 3px;
}

.aireg-404-digit i {
	width: clamp(6px, 1.5vw, 10px);
	height: clamp(6px, 1.5vw, 10px);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.04);
	display: block;
	transition: background 200ms ease, opacity 200ms ease;
}

.aireg-404-digit i.on {
	background: #1A8A8A;
	box-shadow: 0 0 6px rgba(26, 138, 138, 0.4);
}

.aireg-404-digit i.on.is-flickering {
	opacity: 0.15;
	background: var(--aireg-amber);
	box-shadow: none;
}

/* Terminal Message */
.aireg-404-terminal {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--50);
}

.aireg-404-terminal-line {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	color: #1A8A8A;
	margin: 0 0 var(--wp--preset--spacing--30);
	min-height: 1.2em;
}

.aireg-404-terminal-line .aireg-404-cursor {
	border-right: 2px solid #1A8A8A;
	padding-right: 2px;
	animation: aireg-404-blink 800ms step-end infinite;
}

@keyframes aireg-404-blink {
	0%, 100% { border-color: #1A8A8A; }
	50% { border-color: transparent; }
}

.aireg-404-terminal-body {
	font-size: 1.15rem;
	color: #9CA3AF;
	margin: 0 0 var(--wp--preset--spacing--20);
	line-height: 1.6;
	opacity: 0;
	transition: opacity 600ms ease;
}

.aireg-404-terminal-body.is-visible {
	opacity: 1;
}

.aireg-404-terminal-stat {
	font-size: 0.95rem;
	color: #1A8A8A;
	margin: 0;
	opacity: 0;
	transition: opacity 600ms ease 200ms;
}

.aireg-404-terminal-stat.is-visible {
	opacity: 1;
}

/* Search Bar */
.aireg-404-search {
	display: flex;
	max-width: 480px;
	margin: 0 auto var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--border-radius--md);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.aireg-404-search input {
	flex: 1;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.06);
	border: none;
	color: #E8E6E3;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}

.aireg-404-search input::placeholder {
	color: #9CA3AF;
}

.aireg-404-search input:focus {
	outline: 2px solid #1A8A8A;
	outline-offset: 2px;
	background: rgba(255, 255, 255, 0.1);
}

.aireg-404-search button {
	padding: 14px 20px;
	background: #1A8A8A;
	border: none;
	color: #E8E6E3;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: background 200ms ease;
}

.aireg-404-search button:hover {
	background: var(--aireg-teal-glow);
}

/* Suggestion Pills */
.aireg-404-suggestions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--60);
}

.aireg-404-suggest-label {
	font-size: 0.8rem;
	color: #9CA3AF;
}

.aireg-404-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--wp--custom--border-radius--full);
	font-size: 0.8rem;
	font-weight: 500;
	color: #9CA3AF;
	text-decoration: none;
	transition: all 200ms ease;
}

.aireg-404-pill:hover {
	border-color: #1A8A8A;
	color: #E8E6E3;
	background: rgba(26, 138, 138, 0.12);
	transform: translateY(-1px);
}

.aireg-404-pill .aireg-ticker-dot {
	width: 5px;
	height: 5px;
}

/* Reconnected success message */
.aireg-404-reconnected-msg {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--40);
}

.aireg-404-reconnected-msg p {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
	color: #1A8A8A;
	animation: aireg-404-success-fade 600ms ease both;
}

.aireg-404-reconnected-link {
	color: #fff !important;
}

@keyframes aireg-404-success-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.aireg-404-reconnected-msg[hidden] {
	display: none;
}

/* Recent articles on 404 */
.aireg-404-recent {
	margin-top: var(--wp--preset--spacing--50);
}

.aireg-404-recent-item a {
	color: #E8E6E3;
	text-decoration: none;
	transition: color 200ms ease;
}

.aireg-404-recent-item a:hover {
	color: #1A8A8A;
}

/* Suggestions glow when reconnected */
.aireg-404.is-reconnected .aireg-404-pill {
	border-color: rgba(var(--jurisdiction-accent-rgb), 0.3);
	animation: aireg-404-pill-glow 1s ease both;
}

.aireg-404.is-reconnected .aireg-404-pill:nth-child(2) { animation-delay: 100ms; }
.aireg-404.is-reconnected .aireg-404-pill:nth-child(3) { animation-delay: 200ms; }
.aireg-404.is-reconnected .aireg-404-pill:nth-child(4) { animation-delay: 300ms; }
.aireg-404.is-reconnected .aireg-404-pill:nth-child(5) { animation-delay: 400ms; }

@keyframes aireg-404-pill-glow {
	0% { box-shadow: none; }
	50% { box-shadow: var(--aireg-glow-sm); }
	100% { box-shadow: none; }
}

/* Drag hint text */
.aireg-404-drag-hint {
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	color: var(--aireg-amber);
	opacity: 0.6;
	margin-top: 4px;
	transition: opacity 300ms ease;
}

.aireg-404-drag-hint.is-hidden {
	opacity: 0;
}

/* Draggable node cursor */
.aireg-404-node--disconnected {
	cursor: grab;
}

.aireg-404-constellation.is-node-dragging .aireg-404-node--disconnected {
	cursor: grabbing;
	animation: none !important;
}

/* Snap zone glow when dragging near */
.aireg-404-node--connected.is-snap-near circle:first-child {
	stroke: var(--aireg-teal-glow);
	stroke-width: 2;
	filter: drop-shadow(0 0 8px var(--aireg-teal-glow));
	transition: all 200ms ease;
}

/* URL Diagnosis terminal lines */
.aireg-404-diagnosis {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--20);
	opacity: 0;
	transition: opacity 400ms ease;
}

.aireg-404-diagnosis.is-visible {
	opacity: 1;
}

.aireg-404-diag-line {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: #9CA3AF;
	margin: 4px 0;
	opacity: 0;
	animation: aireg-404-diag-reveal 400ms ease-out forwards;
}

.aireg-404-diag-path {
	color: #E8C16A;
}

.aireg-404-diag-found strong {
	color: #1A8A8A;
}

.aireg-404-diag-found a {
	color: #1A8A8A;
	text-decoration: none;
	border-bottom: 1px dotted #1A8A8A;
}

.aireg-404-diag-found a:hover {
	border-bottom-style: solid;
}

@keyframes aireg-404-diag-reveal {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Random Article Button */
.aireg-404-random-wrap {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--30);
}

.aireg-404-random-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	background: transparent;
	border: 1px solid #1A8A8A;
	border-radius: var(--wp--custom--border-radius--full);
	color: #1A8A8A;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: all 200ms ease;
}

.aireg-404-random-btn:hover {
	background: #1A8A8A;
	color: #fff;
	box-shadow: 0 0 16px rgba(26, 138, 138, 0.3);
	transform: translateY(-1px);
}

.aireg-404-random-btn:disabled {
	opacity: 0.5;
	cursor: wait;
	transform: none;
}

.aireg-404-random-btn svg {
	flex-shrink: 0;
}

/* Reconnected link styling */
.aireg-404-reconnected-link {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 20px;
	background: var(--aireg-teal);
	color: #fff;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-radius: var(--wp--custom--border-radius--full);
	transition: all 200ms ease;
	animation: aireg-404-success-fade 600ms ease 200ms both;
}

.aireg-404-reconnected-link:hover {
	background: var(--aireg-teal-glow);
	box-shadow: var(--aireg-glow-sm);
}

@media (max-width: 600px) {
	.aireg-404-suggestions { flex-direction: column; align-items: center; }
	.aireg-404-constellation-wrap { max-width: 320px; }
}

/* ============================================
   Footer — Dark Editorial Signoff
   ============================================ */

.aireg-footer--dark {
	position: relative;
	background: var(--aireg-bg);
}

.aireg-footer-description {
	color: var(--aireg-text-secondary);
}

.aireg-footer-gradient-border {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--aireg-teal-glow), transparent);
}

.aireg-footer-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: var(--wp--preset--spacing--20);
}

.aireg-footer-site-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--aireg-text);
}

.aireg-footer-social-proof {
	font-size: 0.85rem;
	color: var(--aireg-teal-glow);
	margin-top: var(--wp--preset--spacing--30);
}

.aireg-footer-social-proof .aireg-hero-stat-number {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	font-weight: 600;
	display: inline;
}

.aireg-footer-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aireg-text);
	margin: 0 0 var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--20);
	position: relative;
}

.aireg-footer-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--aireg-teal-glow);
}

/* Footer link hover dots */
.aireg-footer-links a {
	text-decoration: none;
	color: var(--aireg-text-secondary);
	transition: all 200ms ease;
	position: relative;
	padding-left: 0;
}

.aireg-footer-links a::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--aireg-teal-glow);
	opacity: 0;
	transition: opacity 200ms ease, left 200ms ease;
}

.aireg-footer-links a:hover {
	color: var(--aireg-text);
	padding-left: 12px;
}

.aireg-footer-links a:hover::before {
	opacity: 1;
	left: 0;
}

.aireg-footer-bottom {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--aireg-overlay-subtle);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.aireg-footer-legal {
	font-size: 0.8rem;
	color: var(--aireg-text-secondary);
	margin: 0;
}

/* ============================================
   Newsletter — Dark with Grid + Value Props
   ============================================ */

.aireg-newsletter-accent {
	width: 40px;
	height: 2px;
	background: var(--aireg-teal-glow);
	margin: 0 auto var(--wp--preset--spacing--30);
}

.aireg-newsletter-value-props {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: var(--wp--preset--spacing--30);
	flex-wrap: wrap;
}

.aireg-newsletter-prop {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--aireg-teal-glow);
}

.aireg-newsletter-prop svg {
	stroke: var(--aireg-teal-glow);
	flex-shrink: 0;
}

/* Dark newsletter form variant */
.aireg-newsletter-form--dark input[type="email"] {
	background: var(--aireg-overlay-subtle);
	border-color: var(--aireg-overlay-light);
	color: var(--aireg-text);
}

.aireg-newsletter-form--dark input[type="email"]::placeholder {
	color: var(--aireg-text-secondary);
}

.aireg-newsletter-form--dark input[type="email"]:focus {
	border-color: var(--aireg-teal-glow);
	box-shadow: 0 0 0 3px rgba(var(--jurisdiction-accent-rgb), 0.2);
}

.aireg-newsletter-form--dark button {
	background: var(--aireg-teal);
	color: var(--aireg-text);
}

.aireg-newsletter-form--dark button:hover {
	background: var(--aireg-teal-glow);
	transform: scale(1.02);
	box-shadow: var(--aireg-glow-sm);
}

.aireg-newsletter-proof {
	text-align: center;
	font-size: 0.8rem;
	color: var(--aireg-text-secondary);
	margin-top: var(--wp--preset--spacing--30);
}

.aireg-newsletter-proof .aireg-hero-stat-number {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8rem;
	font-weight: 600;
	display: inline;
	color: var(--aireg-text-secondary);
}

.aireg-newsletter-form button {
	transition:
		background-color var(--wp--custom--transition--fast),
		color var(--wp--custom--transition--fast),
		transform var(--wp--custom--transition--fast),
		box-shadow var(--wp--custom--transition--fast);
}

/* ============================================
   Persona Nav — Icons & Enhanced Pills
   ============================================ */

.aireg-persona-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
}

.aireg-persona-label {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	color: var(--aireg-text-secondary);
}

.aireg-persona-sublabel {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--aireg-text-secondary);
	opacity: 0.6;
	margin-top: -8px;
}

.aireg-persona-pills {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	flex-wrap: wrap;
	justify-content: center;
}

.aireg-persona-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 20px;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--aireg-text);
	background: var(--aireg-bg);
	transition: all 200ms ease;
}

.aireg-persona-icon {
	font-size: 0.9em;
	line-height: 1;
}

.aireg-persona-pill-btn:hover {
	border-color: var(--aireg-teal);
	color: var(--aireg-teal);
	background: var(--aireg-teal-light);
	transform: translateY(-2px);
	box-shadow: var(--aireg-glow-sm);
}

[data-theme="dark"] .aireg-persona-pill-btn {
	background: var(--aireg-bg-surface);
	color: var(--aireg-text);
	border-color: var(--aireg-border);
}

[data-theme="dark"] .aireg-persona-pill-btn:hover {
	background: var(--aireg-teal-light);
	color: var(--aireg-teal);
	border-color: var(--aireg-teal);
}

/* Persona section — subtle warmth glow */
.aireg-persona-nav {
	position: relative;
}

.aireg-persona-nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	height: 200px;
	background: radial-gradient(ellipse, rgba(var(--jurisdiction-accent-rgb), 0.06) 0%, transparent 70%);
	pointer-events: none;
}

/* ============================================
   Parchment Material — Warm Law Sections
   ============================================ */

/* Base parchment section — re-scopes custom properties for warm material */
.aireg-parchment-section {
	--aireg-bg: var(--aireg-parchment);
	--aireg-bg-surface: var(--aireg-parchment-deep);
	--aireg-bg-elevated: #FFFFFF;
	--aireg-text: var(--aireg-parchment-ink);
	--aireg-text-secondary: var(--aireg-parchment-secondary);
	--aireg-border: var(--aireg-parchment-border);
	--aireg-glow: var(--aireg-warm-glow);
	--aireg-glow-sm: var(--aireg-warm-glow);
	--aireg-glow-lg: var(--aireg-warm-glow-hover);

	background: var(--aireg-parchment) !important;
	color: var(--aireg-parchment-ink);
	position: relative;
}

/* Warm vignette — edges darken at reading depth (scroll-driven) */
.aireg-parchment-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 40%, rgba(44, 36, 23, 0.03) 100%);
	opacity: 0;
	z-index: 0;
	pointer-events: none;
}

/* Paper grain texture — SVG noise at 0.03 opacity */
.aireg-parchment-grain {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.03;
	pointer-events: none;
	z-index: 0;
}

/* Grain breathing — ambient light shift across paper */
@keyframes aireg-grain-breathe {
	0%, 100% { opacity: 0.025; }
	50% { opacity: 0.04; }
}

.aireg-parchment-grain {
	animation: aireg-grain-breathe 8s ease-in-out infinite;
}

.aireg-parchment-section > * {
	position: relative;
	z-index: 1;
}

/* --- Dark-mode: parchment goes dark --- */

[data-theme="dark"] .aireg-parchment-section {
	--aireg-parchment: #1C2035;
	--aireg-parchment-deep: #121627;
	--aireg-parchment-ink: #E8E6E3;
	--aireg-parchment-secondary: #9CA3AF;
	--aireg-parchment-border: #232840;
	background: var(--aireg-parchment) !important;
	color: var(--aireg-parchment-ink);
}

[data-theme="dark"] .aireg-parchment-section .aireg-persona-pill-btn {
	background: var(--aireg-parchment-deep);
	color: var(--aireg-parchment-ink);
	border-color: var(--aireg-parchment-border);
}

[data-theme="dark"] .aireg-parchment-section .aireg-persona-pill-btn:hover {
	background: #E8F4F4;
	color: var(--aireg-teal);
	border-color: var(--aireg-teal);
}

[data-theme="dark"] .aireg-parchment-section .aireg-article-card {
	background: rgba(255, 255, 255, 0.7);
	color: var(--aireg-parchment-ink);
	border-color: var(--aireg-parchment-border);
}

[data-theme="dark"] .aireg-parchment-section .aireg-article-card:hover {
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--aireg-warm-glow-hover);
}

[data-theme="dark"] .aireg-parchment-section .aireg-heatmap-cell--low {
	background: var(--aireg-parchment-border);
	opacity: 0.5;
}

/* Persona border-bottom between parchment sections */
.aireg-parchment-section.aireg-persona-nav {
	border-bottom-color: var(--aireg-parchment-border) !important;
}

/* Latest section border-top on parchment — warm instead of teal */
.aireg-latest-section.aireg-parchment-section {
	border-image: linear-gradient(90deg, transparent 20%, var(--aireg-parchment-border) 50%, transparent 80%) 1;
}

/* Parchment section entrance — paper unfurl */
.aireg-parchment-enter {
	opacity: 0;
	transform: scale(0.985);
	transition:
		opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 900ms ease-out 200ms;
	box-shadow: none;
}

.aireg-parchment-enter.is-visible {
	opacity: 1;
	transform: scale(1);
	box-shadow: 0 0 60px 20px rgba(245, 240, 232, 0.15);
}

/* --- Material world transitions — depth shadows --- */

/* Dark sections cast shadow DOWN onto parchment below */
.aireg-velocity-strip {
	position: relative;
	z-index: 2;
	background: var(--aireg-bg);
}

/* Newsletter casts shadow UP onto parchment above */
.aireg-cta-newsletter {
	position: relative;
	z-index: 2;
	background: var(--aireg-bg);
	box-shadow: 0 -8px 24px -6px rgba(10, 14, 26, 0.08);
}

/* --- Typography shift on parchment — editorial serif authority --- */

.aireg-parchment-section h2,
.aireg-parchment-section h3 {
	font-style: italic;
}

.aireg-parchment-section p,
.aireg-parchment-section li {
	font-size: 1.0625rem;
}

/* --- Jurisdiction parchment tinting --- */

body[data-jurisdiction="eu"] .aireg-parchment-section { --aireg-parchment: #F0EEF5; }
body[data-jurisdiction="us"] .aireg-parchment-section { --aireg-parchment: #F5F0E0; }
body[data-jurisdiction="uk"] .aireg-parchment-section { --aireg-parchment: #F2EFF5; }
body[data-jurisdiction="cn"] .aireg-parchment-section { --aireg-parchment: #F5EFEC; }
body[data-jurisdiction="kr"] .aireg-parchment-section { --aireg-parchment: #EFF4F5; }

/* (Reduced motion for parchment handled in main reduced-motion block) */

/* ============================================
   Global Polish
   ============================================ */

/* Text selection */
::selection {
	background: rgba(var(--jurisdiction-accent-rgb), 0.15);
	color: inherit;
}

/* Focus rings */
:focus-visible {
	outline: 2px solid var(--aireg-teal);
	outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--aireg-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--aireg-border);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--aireg-teal);
}

/* Back to top button */
.aireg-back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--aireg-teal);
	color: var(--aireg-bg);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(12px);
	transition: all 300ms ease;
	z-index: 100;
	box-shadow: var(--aireg-glow-sm);
}

.aireg-back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.aireg-back-to-top:hover {
	box-shadow: var(--aireg-glow);
	transform: translateY(-2px);
}

.aireg-back-to-top svg {
	width: 18px;
	height: 18px;
}

/* Reading Progress Shimmer keyframes (properties merged into main definition above) */
@keyframes aireg-progress-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ============================================
   Print Styles
   ============================================ */

/* ================================================================
   PRINT STYLESHEET — Lawyer-grade article output
   ================================================================ */

@media print {
	/* ---- Reset to white paper ---- */
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	body,
	[data-theme="dark"] body,
	.aireg-404 {
		background: #fff !important;
		color: #000 !important;
		font-size: 11pt;
		line-height: 1.55;
	}

	/* ---- Page margins ---- */
	@page {
		margin: 2cm 2.5cm;
		size: A4;
	}

	@page :first {
		margin-top: 1.5cm;
	}

	/* ---- Typography for print ---- */
	.wp-block-post-content,
	.wp-block-post-content p,
	.wp-block-post-content li {
		font-family: 'Georgia', 'Times New Roman', serif !important;
		font-size: 11pt !important;
		line-height: 1.55 !important;
	}

	h1, h2, h3, h4, h5, h6 {
		font-family: 'Helvetica Neue', 'Arial', sans-serif !important;
		color: #000 !important;
		page-break-after: avoid;
		break-after: avoid;
	}

	h1 { font-size: 18pt !important; margin-bottom: 6pt !important; }
	h2 { font-size: 14pt !important; margin-top: 18pt !important; border-bottom: 0.5pt solid #ccc !important; padding-bottom: 4pt !important; }
	h3 { font-size: 12pt !important; margin-top: 14pt !important; }

	/* ---- Show URLs after links ---- */
	.wp-block-post-content a[href]::after {
		content: " [" attr(href) "]";
		font-family: 'Courier New', monospace;
		font-size: 8pt;
		color: #666 !important;
		word-break: break-all;
	}

	/* Don't show URL for anchor links or javascript */
	.wp-block-post-content a[href^="#"]::after,
	.wp-block-post-content a[href^="javascript"]::after {
		content: "";
	}

	/* ---- Hide interactive/nav elements ---- */
	.aireg-header,
	.aireg-footer,
	.aireg-footer--dark,
	.aireg-jurisdiction-bar,
	.aireg-theme-toggle,
	.aireg-newsletter-scroll-cta,
	.aireg-reading-progress,
	.aireg-table-actions,
	.aireg-ticker-wrap,
	.aireg-heatmap-section,
	.aireg-radar-strip,
	.aireg-single-sidebar,
	.aireg-smart-related,
	.aireg-back-to-top,
	.aireg-breadcrumbs,
	.aireg-print-bar,
	.aireg-jurisdiction-bar-inline,
	.aireg-glossary-tooltip,
	.aireg-hero,
	.aireg-persona-nav,
	.aireg-constellation,
	.aireg-graph-svg-wrap,
	.aireg-graph-tooltip,
	.aireg-graph-hint,
	.aireg-knowledge-graph,
	.aireg-takeaway-card,
	.aireg-newsletter-form,
	.aireg-404-search,
	.aireg-404-suggestions,
	.aireg-404-random-wrap,
	.wp-block-navigation,
	.wp-block-search {
		display: none !important;
	}

	/* ---- Layout: full-width single column ---- */
	.aireg-single-layout {
		display: block !important;
		grid-template-columns: 1fr !important;
	}

	.aireg-single-content {
		max-width: 100% !important;
	}

	main {
		padding: 0 !important;
		max-width: 100% !important;
	}

	/* ---- Print header (only visible in print) ---- */
	.aireg-print-header {
		display: block !important;
		border-bottom: 1pt solid #000;
		padding-bottom: 8pt;
		margin-bottom: 16pt;
	}

	.aireg-print-header-brand {
		font-family: 'Helvetica Neue', 'Arial', sans-serif;
		font-size: 10pt;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		margin-bottom: 2pt;
	}

	.aireg-print-header-meta {
		font-family: 'Courier New', monospace;
		font-size: 8pt;
		color: #666 !important;
	}

	.aireg-print-header-url {
		font-family: 'Courier New', monospace;
		font-size: 7.5pt;
		color: #999 !important;
		margin-top: 2pt;
		word-break: break-all;
	}

	/* ---- Article meta (jurisdiction pills become plain text) ---- */
	.aireg-article-meta {
		border-bottom: 0.5pt solid #ddd !important;
		padding-bottom: 8pt !important;
		margin-bottom: 12pt !important;
	}

	.aireg-jurisdiction-pills a {
		border: 0.5pt solid #999 !important;
		padding: 1pt 4pt !important;
		border-radius: 2pt !important;
		font-size: 8pt !important;
	}

	.aireg-jurisdiction-pills a::after {
		content: "" !important; /* Don't show URL for pills */
	}

	.aireg-freshness-badge {
		font-size: 8pt !important;
	}

	/* ---- Page break controls ---- */
	p, li, dt, dd {
		orphans: 3;
		widows: 3;
	}

	h2, h3, h4 {
		page-break-after: avoid;
		break-after: avoid;
	}

	figure, img, svg,
	table, blockquote, pre,
	.aireg-article-card,
	.aireg-jurisdiction-table td,
	.aireg-jurisdiction-table th,
	.aireg-callout-deadline,
	.aireg-callout-warning,
	.aireg-callout-insight,
	.aireg-callout-tip,
	.wp-block-table {
		page-break-inside: avoid;
		break-inside: avoid;
	}

	/* ---- Tables ---- */
	table {
		border-collapse: collapse !important;
		width: 100% !important;
		font-size: 9pt !important;
	}

	th, td {
		border: 0.5pt solid #ccc !important;
		padding: 4pt 6pt !important;
		text-align: left !important;
	}

	th {
		font-weight: 700 !important;
		background: #f0f0f0 !important;
	}

	/* ---- Callout boxes ---- */
	.aireg-callout-deadline,
	.aireg-callout-warning,
	.aireg-callout-insight,
	.aireg-callout-tip {
		border: 0.5pt solid #999 !important;
		border-left: 3pt solid #333 !important;
		padding: 8pt 10pt !important;
		margin: 10pt 0 !important;
		font-size: 10pt !important;
	}

	/* ---- Disclaimer ---- */
	.aireg-disclaimer {
		border-top: 0.5pt solid #ccc !important;
		padding-top: 8pt !important;
		margin-top: 16pt !important;
		font-size: 8pt !important;
		color: #999 !important;
	}

	/* ---- Images ---- */
	img {
		max-width: 100% !important;
		height: auto !important;
	}

	/* ---- Code blocks ---- */
	pre, code {
		font-family: 'Courier New', monospace !important;
		font-size: 9pt !important;
		border: 0.5pt solid #ddd !important;
		padding: 2pt 4pt !important;
	}

	pre {
		padding: 8pt !important;
		white-space: pre-wrap !important;
		word-wrap: break-word !important;
	}

	/* ---- Blockquotes ---- */
	blockquote {
		border-left: 2pt solid #999 !important;
		padding-left: 10pt !important;
		margin-left: 0 !important;
		font-style: italic !important;
	}

	/* ---- Glossary terms (remove dotted underline, show as normal text) ---- */
	.aireg-glossary-term {
		border-bottom: none !important;
		cursor: auto !important;
	}

	/* ---- Overline category ---- */
	.aireg-overline a {
		font-size: 8pt !important;
		text-transform: uppercase !important;
		letter-spacing: 0.08em !important;
	}

	.aireg-overline a::after {
		content: "" !important;
	}
}

/* ============================================
   Bloomberg Regulation Ticker
   ============================================ */

.aireg-ticker-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--aireg-bg);
}

.aireg-ticker-border-top,
.aireg-ticker-border-bottom {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--jurisdiction-accent), transparent);
	opacity: 0.4;
	transition: background 600ms ease;
}

.aireg-ticker {
	overflow: hidden;
	white-space: nowrap;
	padding: 10px 0;
}

.aireg-ticker:hover .aireg-ticker-track {
	animation-play-state: paused;
}

.aireg-ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 0;
	animation: aireg-ticker-scroll 40s linear infinite;
	/* Duplicate content for seamless loop — JS handles this */
}

@keyframes aireg-ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.aireg-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--aireg-text-secondary);
}

.aireg-ticker-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.aireg-ticker-dot--amber {
	background: var(--aireg-amber);
	box-shadow: 0 0 6px rgba(212, 160, 57, 0.5);
}

.aireg-ticker-dot--teal {
	background: var(--aireg-brand-teal-glow);
	box-shadow: 0 0 6px rgba(26, 138, 138, 0.5);
}

.aireg-ticker-dot--sage {
	background: var(--aireg-sage);
	box-shadow: 0 0 6px rgba(74, 124, 111, 0.5);
}

.aireg-ticker-jurisdiction {
	font-weight: 600;
	color: var(--aireg-text);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.aireg-ticker-text {
	color: var(--aireg-text-secondary);
}

.aireg-ticker-countdown {
	font-weight: 600;
	color: var(--aireg-amber);
}

.aireg-ticker-check {
	color: var(--aireg-sage);
	font-weight: 600;
}

.aireg-ticker-sep {
	color: var(--aireg-overlay-light);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	padding: 0 4px;
}

/* ============================================
   Regulation Risk Heatmap
   ============================================ */

.aireg-heatmap-section {
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40);
	background: var(--aireg-bg);
}

.aireg-heatmap-container {
	max-width: 700px;
	margin: 0 auto;
}

.aireg-heatmap-header {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--40);
}

.aireg-heatmap-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 400;
	margin: 0 0 8px;
	color: var(--aireg-text);
}

.aireg-heatmap-subtitle {
	font-size: 0.95rem;
	color: var(--aireg-text-secondary);
	margin: 0;
}

.aireg-heatmap-grid {
	display: grid;
	grid-template-columns: 48px repeat(5, 1fr);
	gap: 4px;
}

.aireg-heatmap-corner {
	/* empty top-left cell */
}

.aireg-heatmap-col-header {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--aireg-text-secondary);
	text-align: center;
	padding-bottom: 8px;
}

.aireg-heatmap-row-header {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--aireg-text);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
}

.aireg-heatmap-cell {
	aspect-ratio: 1;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: transform 150ms ease, box-shadow 150ms ease;
	min-height: 36px;
}

.aireg-heatmap-cell:hover {
	transform: scale(1.15);
	z-index: 2;
}

.aireg-heatmap-cell--high {
	background: var(--aireg-teal);
	animation: aireg-heatmap-pulse 3s ease-in-out infinite;
}

.aireg-heatmap-cell--med {
	background: var(--aireg-amber);
	opacity: 0.7;
}

.aireg-heatmap-cell--low {
	background: var(--aireg-border);
	opacity: 0.5;
}

[data-theme="dark"] .aireg-heatmap-cell--low {
	background: var(--aireg-overlay-subtle);
}

@keyframes aireg-heatmap-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.75; }
}

/* Heatmap tooltip */
.aireg-heatmap-cell::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--aireg-bg);
	color: var(--aireg-text);
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-family: var(--wp--preset--font-family--body);
	line-height: 1.4;
	white-space: normal;
	width: max-content;
	max-width: 240px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.aireg-heatmap-cell:hover::after {
	opacity: 1;
}

/* Heatmap row highlight on constellation click */
.aireg-heatmap-row-header.is-highlighted,
.aireg-heatmap-cell.is-highlighted {
	outline: 2px solid var(--aireg-teal-glow);
	outline-offset: 1px;
}

.aireg-heatmap-legend {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: var(--wp--preset--spacing--30);
}

.aireg-heatmap-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--aireg-text-secondary);
}

.aireg-heatmap-legend-swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

.aireg-heatmap-legend-swatch--high { background: var(--aireg-teal); }
.aireg-heatmap-legend-swatch--med { background: var(--aireg-amber); opacity: 0.7; }
.aireg-heatmap-legend-swatch--low { background: var(--aireg-border); opacity: 0.5; }

@media (max-width: 600px) {
	.aireg-heatmap-col-header { font-size: 0.55rem; }
	.aireg-heatmap-cell { min-height: 28px; }
	.aireg-heatmap-cell::after { display: none; }
}

/* ============================================
   Magazine Article Grid
   ============================================ */

.aireg-content-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

@media (max-width: 768px) {
	.aireg-content-with-sidebar {
		grid-template-columns: 1fr;
	}
}

/* Override WP grid to use magazine layout */
.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: var(--wp--preset--spacing--30);
}

/* Featured first card spans 2 columns and 2 rows */
.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card {
	background: var(--aireg-bg);
	border-color: var(--aireg-overlay-subtle);
	border-left: 3px solid var(--aireg-teal);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-title a {
	color: var(--aireg-text);
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-title a:hover {
	color: var(--aireg-teal-glow);
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-excerpt {
	color: var(--aireg-text-secondary);
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-terms a {
	color: var(--aireg-teal-glow);
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card .wp-block-post-date {
	color: var(--aireg-text-secondary) !important;
}

/* Card meta row */
.aireg-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

/* Urgency stripe at card bottom */
.aireg-article-card::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 0 0 var(--wp--custom--border-radius--md) var(--wp--custom--border-radius--md);
}

/* Category badge colors */
.aireg-card-category a[href*="explainer"] {
	color: var(--aireg-teal) !important;
}

.aireg-card-category a[href*="news"] {
	color: var(--aireg-amber) !important;
}

.aireg-card-category a[href*="how-to"] {
	color: var(--aireg-sage) !important;
}

.aireg-card-category a[href*="comparison"] {
	color: var(--aireg-critical) !important;
}

@media (max-width: 768px) {
	.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
	.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child {
		grid-column: 1;
		grid-row: auto;
	}
}

/* ============================================
   Quick Compare Widget (Sidebar)
   ============================================ */

.aireg-sidebar-compare {
	position: sticky;
	top: 80px;
}

@media (max-width: 768px) {
	.aireg-sidebar-compare {
		position: static !important;
	}
}

.aireg-compare-widget {
	background: var(--aireg-bg);
	border-radius: var(--wp--custom--border-radius--md);
	border-left: 3px solid var(--aireg-teal);
	padding: var(--wp--preset--spacing--40);
	color: var(--aireg-text);
}

.aireg-compare-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--aireg-text);
}

.aireg-compare-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: var(--wp--preset--spacing--30);
}

.aireg-compare-tab {
	padding: 6px 16px;
	border: 1px solid var(--aireg-overlay-light);
	border-radius: var(--wp--custom--border-radius--full);
	background: transparent;
	color: var(--aireg-text-secondary);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: all 200ms ease;
}

.aireg-compare-tab:hover {
	border-color: var(--aireg-teal-glow);
	color: var(--aireg-text);
}

.aireg-compare-tab.is-active {
	background: var(--aireg-teal);
	border-color: var(--aireg-teal);
	color: var(--aireg-text);
}

.aireg-compare-panel {
	display: none;
}

.aireg-compare-panel.is-active {
	display: block;
	animation: aireg-compare-fade 300ms ease;
}

@keyframes aireg-compare-fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.aireg-compare-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid var(--aireg-overlay-subtle);
}

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

.aireg-compare-label {
	font-size: 0.8rem;
	color: var(--aireg-text-secondary);
}

.aireg-compare-value {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--aireg-text);
	text-align: right;
}

.aireg-compare-link {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	font-size: 0.85rem;
	color: var(--aireg-teal-glow);
	text-decoration: none;
	transition: color 200ms ease;
}

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

/* ============================================
   Persona Nav — Interactive Selector
   ============================================ */

.aireg-persona-pill-btn.is-selected {
	background: var(--aireg-teal);
	border-color: var(--aireg-teal);
	color: #FAFAF8;
	box-shadow: var(--aireg-glow-sm);
}

[data-theme="dark"] .aireg-persona-pill-btn.is-selected {
	color: var(--aireg-text);
}

.aireg-persona-recommendations {
	max-height: 0;
	overflow: hidden;
	transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aireg-persona-recommendations.is-open {
	max-height: 200px;
}

.aireg-persona-recs-inner {
	padding-top: var(--wp--preset--spacing--30);
}

.aireg-persona-recs-inner[hidden] {
	display: none;
}

.aireg-persona-recs-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--aireg-text-secondary);
	margin-bottom: var(--wp--preset--spacing--20);
	letter-spacing: 0.02em;
}

.aireg-persona-recs-cards {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.aireg-persona-rec-card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--md);
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--aireg-text);
	text-decoration: none;
	transition: all 200ms ease;
	background: var(--aireg-bg);
}

.aireg-persona-rec-card:hover {
	border-color: var(--aireg-teal);
	box-shadow: var(--aireg-glow-sm);
	transform: translateY(-2px);
}

.aireg-persona-rec-badge {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: var(--wp--custom--border-radius--sm);
	flex-shrink: 0;
}

.aireg-persona-rec-badge--explainer {
	background: var(--aireg-teal-light);
	color: var(--aireg-teal);
}

.aireg-persona-rec-badge--howto {
	background: var(--aireg-sage-light);
	color: var(--aireg-sage);
}

.aireg-persona-rec-badge--comparison {
	background: var(--aireg-critical-light);
	color: var(--aireg-critical);
}

.aireg-persona-rec-badge--news {
	background: var(--aireg-amber-light);
	color: var(--aireg-amber);
}

@media (max-width: 600px) {
	.aireg-persona-recs-cards {
		flex-direction: column;
	}
}

/* ============================================
   Newsletter — Two-Column with Preview
   ============================================ */

.aireg-newsletter-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.aireg-newsletter-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 400;
	color: var(--aireg-text);
	margin: 0 0 8px;
}

.aireg-newsletter-tagline {
	font-size: 1rem;
	color: var(--aireg-text-secondary);
	margin: 0 0 var(--wp--preset--spacing--40);
}

.aireg-newsletter-preview {
	border-top: 1px solid var(--aireg-overlay-subtle);
	padding-top: var(--wp--preset--spacing--30);
}

.aireg-newsletter-preview-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--aireg-teal-glow);
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
}

.aireg-newsletter-preview-list {
	list-style: none;
	counter-reset: nl-counter;
	margin: 0;
	padding: 0;
}

.aireg-newsletter-preview-list li {
	counter-increment: nl-counter;
	padding: 6px 0;
	font-size: 0.875rem;
	color: var(--aireg-text-secondary);
	line-height: 1.5;
	display: flex;
	gap: 10px;
}

.aireg-newsletter-preview-list li::before {
	content: counter(nl-counter);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	color: var(--aireg-teal-glow);
	min-width: 16px;
	flex-shrink: 0;
}

.aireg-newsletter-right {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.aireg-newsletter-form--stacked {
	flex-direction: column;
	max-width: 100%;
}

.aireg-newsletter-form--stacked input[type="email"] {
	border-right: 1px solid var(--aireg-overlay-light) !important;
	border-radius: var(--wp--custom--border-radius--md) !important;
	margin-bottom: 8px;
}

.aireg-newsletter-form--stacked button {
	border-radius: var(--wp--custom--border-radius--md) !important;
	width: 100%;
}

.aireg-newsletter-value-props--vertical {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 0;
}

@media (max-width: 768px) {
	.aireg-newsletter-two-col {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
	}
}

/* ============================================
   Footer — Regulation Radar Strip
   ============================================ */

.aireg-radar-strip {
	padding: var(--wp--preset--spacing--40) 0;
	border-bottom: 1px solid var(--aireg-overlay-subtle);
	margin-bottom: var(--wp--preset--spacing--40);
}

.aireg-radar-header {
	margin-bottom: var(--wp--preset--spacing--30);
}

.aireg-radar-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--aireg-teal-glow);
}

.aireg-radar-items {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	flex-wrap: wrap;
}

.aireg-radar-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	color: var(--aireg-text-secondary);
}

.aireg-radar-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.aireg-radar-dot--amber {
	background: var(--aireg-amber);
	box-shadow: 0 0 6px rgba(212, 160, 57, 0.4);
}

.aireg-radar-dot--sage {
	background: var(--aireg-sage);
	box-shadow: 0 0 6px rgba(74, 124, 111, 0.4);
}

.aireg-radar-dot--teal {
	background: var(--aireg-brand-teal-glow);
	box-shadow: 0 0 6px rgba(26, 138, 138, 0.4);
}

.aireg-radar-countdown {
	font-weight: 600;
	color: var(--aireg-amber);
}

@media (max-width: 768px) {
	.aireg-radar-items {
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}
}

/* ============================================
   Staggered Section Reveals & Animations
   ============================================ */

/* Heatmap cells fill in sequentially */
.aireg-heatmap-cell {
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 300ms ease, transform 300ms ease, box-shadow 150ms ease;
}

.aireg-heatmap-section.is-visible .aireg-heatmap-cell {
	opacity: 1;
	transform: scale(1);
}

/* Generate staggered delays for 20 cells (4 rows x 5 cols) */
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(1) { transition-delay: 0ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(2) { transition-delay: 40ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(3) { transition-delay: 80ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(4) { transition-delay: 120ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(5) { transition-delay: 160ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(6) { transition-delay: 200ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(7) { transition-delay: 240ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(8) { transition-delay: 280ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(9) { transition-delay: 320ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(10) { transition-delay: 360ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(11) { transition-delay: 400ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(12) { transition-delay: 440ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(13) { transition-delay: 480ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(14) { transition-delay: 520ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(15) { transition-delay: 560ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(16) { transition-delay: 600ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(17) { transition-delay: 640ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(18) { transition-delay: 680ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(19) { transition-delay: 720ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-cell:nth-of-type(20) { transition-delay: 760ms; }

/* Restore pulsing only after visible */
.aireg-heatmap-section.is-visible .aireg-heatmap-cell--high {
	animation: aireg-heatmap-pulse 3s ease-in-out infinite;
}

.aireg-heatmap-cell--high {
	animation: none;
}

/* Smooth scroll for anchor links */
html {
	scroll-behavior: smooth;
}

/* ============================================
   Glassmorphism Article Cards
   ============================================ */

/* Gradient orbs behind the article grid */
.aireg-latest-section {
	position: relative;
	overflow: hidden;
}

.aireg-latest-section::before,
.aireg-latest-section::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.aireg-latest-section::before {
	width: 500px;
	height: 500px;
	top: -10%;
	right: -5%;
	background: radial-gradient(circle, rgba(var(--jurisdiction-accent-rgb), 0.06), transparent 70%);
}

.aireg-latest-section::after {
	width: 400px;
	height: 400px;
	bottom: -10%;
	left: -5%;
	background: radial-gradient(circle, rgba(212, 160, 57, 0.04), transparent 70%);
}

.aireg-latest-section > * {
	position: relative;
	z-index: 1;
}

/* Frosted glass on cards */
.aireg-article-card {
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	background: rgba(255, 255, 255, 0.6);
	transition:
		border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base),
		transform var(--wp--custom--transition--base),
		background-color var(--wp--custom--transition--base),
		backdrop-filter var(--wp--custom--transition--base),
		opacity 300ms ease;
}

.aireg-article-card:hover {
	box-shadow: var(--aireg-glow);
	transform: translateY(-4px);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(var(--jurisdiction-accent-rgb), 0.2);
	border-top-color: var(--aireg-teal);
}

[data-theme="dark"] .aireg-article-card {
	background: rgba(28, 32, 53, 0.6);
}

[data-theme="dark"] .aireg-article-card:hover {
	background: rgba(28, 32, 53, 0.85);
	border-color: rgba(var(--jurisdiction-accent-rgb), 0.3);
}

/* Featured first card overrides glassmorphism — stays opaque dark */
.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.aireg-magazine-grid-wrap .wp-block-post-template.is-layout-grid > li:first-child .aireg-article-card:hover {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* ============================================
   Article Card Urgency Edge (left border by category)
   ============================================ */

.aireg-article-card:has(.aireg-card-category a[href*="explainer"]) {
	border-left: 3px solid var(--aireg-teal);
}

.aireg-article-card:has(.aireg-card-category a[href*="news"]) {
	border-left: 3px solid var(--aireg-amber);
}

.aireg-article-card:has(.aireg-card-category a[href*="how-to"]) {
	border-left: 3px solid var(--aireg-sage);
}

.aireg-article-card:has(.aireg-card-category a[href*="comparison"]) {
	border-left: 3px solid var(--aireg-critical);
}

/* ============================================
   Regulation Velocity Counters
   ============================================ */

.aireg-velocity-strip {
	background: var(--aireg-bg);
	padding: clamp(40px, 6vw, 72px) 0;
	position: relative;
}

.aireg-velocity-strip::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--jurisdiction-accent), transparent);
	transition: background 600ms ease;
}

.aireg-velocity-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--40);
}

.aireg-velocity-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 clamp(16px, 3vw, 40px);
	position: relative;
}

.aireg-velocity-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.2rem, 4vw, 3.5rem);
	font-weight: 300;
	line-height: 1;
	color: var(--aireg-text);
}

.aireg-velocity-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	color: var(--aireg-text-secondary);
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Colored underline per stat */
.aireg-velocity-stat::after {
	content: "";
	position: absolute;
	bottom: -16px;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 2px;
	border-radius: 1px;
}

.aireg-velocity-stat:nth-child(1)::after { background: var(--jurisdiction-accent); }
.aireg-velocity-stat:nth-child(2)::after { background: var(--aireg-amber); }
.aireg-velocity-stat:nth-child(3)::after { background: var(--aireg-critical); }
.aireg-velocity-stat:nth-child(4)::after { background: var(--jurisdiction-accent); }

@media (max-width: 600px) {
	.aireg-velocity-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 0;
	}
	.aireg-velocity-stat::after { display: none; }
}

/* ============================================
   Heatmap Row/Column Highlighting
   ============================================ */

.aireg-heatmap-cell.is-dimmed {
	opacity: 0.15 !important;
	transform: scale(1) !important;
}

.aireg-heatmap-row-header.is-dimmed {
	opacity: 0.3;
}

.aireg-heatmap-row-header.is-row-highlighted {
	color: var(--aireg-teal-glow);
	font-weight: 700;
}

.aireg-heatmap-col-header.is-col-highlighted {
	color: var(--aireg-teal-glow);
	font-weight: 700;
}

.aireg-heatmap-cell.is-row-active {
	outline: 1px solid rgba(var(--jurisdiction-accent-rgb), 0.3);
	outline-offset: 1px;
}

/* Jurisdiction auto-highlight (persistent while jurisdiction selected) */
.aireg-heatmap-row-header.is-jurisdiction-highlighted {
	color: var(--aireg-teal-glow);
	font-weight: 700;
}

.aireg-heatmap-cell.is-jurisdiction-highlighted {
	outline: 2px solid var(--aireg-teal-glow);
	outline-offset: -1px;
}

/* ============================================
   Threat Level Ambient Glow
   ============================================ */

.aireg-threat-glow {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 201;
	pointer-events: none;
	transition: background 1s ease, box-shadow 1s ease;
}

.aireg-threat-glow--teal {
	background: var(--aireg-teal-glow);
	box-shadow: 0 0 20px 5px rgba(var(--jurisdiction-accent-rgb), 0.15);
}

.aireg-threat-glow--amber {
	background: var(--aireg-amber);
	box-shadow: 0 0 30px 8px rgba(212, 160, 57, 0.2);
}

.aireg-threat-glow--urgent {
	background: var(--aireg-amber);
	box-shadow: 0 0 40px 10px rgba(212, 160, 57, 0.3);
	animation: aireg-threat-pulse 2s ease-in-out infinite;
}

@keyframes aireg-threat-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 40px 10px rgba(212, 160, 57, 0.3); }
	50% { opacity: 0.6; box-shadow: 0 0 20px 5px rgba(212, 160, 57, 0.15); }
}

/* ============================================
   Constellation Mouse Parallax
   ============================================ */

.aireg-constellation-node {
	transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            scale 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity 600ms ease;
}

/* ============================================
   Newsletter Typing Animation
   ============================================ */

.aireg-newsletter-typer-wrap {
	margin-top: var(--wp--preset--spacing--20);
	min-height: 1.4em;
}

.aireg-newsletter-typer {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85rem;
	color: var(--aireg-teal-glow);
	border-right: 2px solid var(--aireg-teal-glow);
	padding-right: 2px;
	animation: aireg-blink-cursor 800ms step-end infinite;
}

@keyframes aireg-blink-cursor {
	0%, 100% { border-color: var(--aireg-teal-glow); }
	50% { border-color: transparent; }
}

/* ============================================
   Reading Time Battery Bars
   ============================================ */

.aireg-reading-bars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-left: 8px;
}

.aireg-reading-bar {
	width: 8px;
	height: 4px;
	border-radius: 1px;
	background: var(--aireg-border);
	transition: background 200ms ease;
}

/* Short: 1 bar filled */
.aireg-reading-bars[data-level="short"] .aireg-reading-bar:nth-child(1) {
	background: var(--aireg-teal);
}

/* Medium: 2 bars filled */
.aireg-reading-bars[data-level="medium"] .aireg-reading-bar:nth-child(1),
.aireg-reading-bars[data-level="medium"] .aireg-reading-bar:nth-child(2) {
	background: var(--aireg-amber);
}

/* Long: 3 bars filled */
.aireg-reading-bars[data-level="long"] .aireg-reading-bar:nth-child(1),
.aireg-reading-bars[data-level="long"] .aireg-reading-bar:nth-child(2),
.aireg-reading-bars[data-level="long"] .aireg-reading-bar:nth-child(3) {
	background: var(--aireg-critical);
}

/* ============================================
   Scroll Animation System — Section Entrances
   ============================================ */

/* --- 1. Hero Load Sequence (delayed cascade) --- */

.aireg-hero-subtitle {
	opacity: 0;
	transform: translateY(8px);
	animation: aireg-word-reveal 500ms ease-out 400ms forwards;
}

.aireg-hero-search-form {
	opacity: 0;
	animation: aireg-search-assemble 500ms ease-out 600ms forwards;
}

@keyframes aireg-search-assemble {
	from { opacity: 0; transform: scaleX(0.9); }
	to { opacity: 1; transform: scaleX(1); }
}

.aireg-hero-popular {
	opacity: 0;
	animation: aireg-word-reveal 400ms ease-out 800ms forwards;
}

.aireg-hero-pill:nth-child(2) { animation-delay: 860ms; }
.aireg-hero-pill:nth-child(3) { animation-delay: 920ms; }
.aireg-hero-pill:nth-child(4) { animation-delay: 980ms; }

/* --- 2. Ticker Entrance — border draw + track reveal --- */

.aireg-ticker-border-top,
.aireg-ticker-border-bottom {
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 600ms ease-out;
}

.aireg-ticker-wrap.is-visible .aireg-ticker-border-top,
.aireg-ticker-wrap.is-visible .aireg-ticker-border-bottom {
	transform: scaleX(1);
}

.aireg-ticker-wrap .aireg-ticker-track {
	opacity: 0;
	transition: opacity 400ms ease-out 300ms;
}

.aireg-ticker-wrap.is-visible .aireg-ticker-track {
	opacity: 1;
}

/* Ticker dot urgency pulse */
.aireg-ticker-dot--amber {
	animation: aireg-dot-pulse-amber 2s ease-in-out infinite;
}

@keyframes aireg-dot-pulse-amber {
	0%, 100% { box-shadow: 0 0 6px rgba(212, 160, 57, 0.5); }
	50% { box-shadow: 0 0 10px rgba(212, 160, 57, 0.8); }
}

/* --- 3. Velocity Counters — stagger entrance --- */

.aireg-velocity-stat {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.aireg-velocity-strip.is-visible .aireg-velocity-stat { opacity: 1; transform: translateY(0); }
.aireg-velocity-strip.is-visible .aireg-velocity-stat:nth-child(1) { transition-delay: 0ms; }
.aireg-velocity-strip.is-visible .aireg-velocity-stat:nth-child(2) { transition-delay: 80ms; }
.aireg-velocity-strip.is-visible .aireg-velocity-stat:nth-child(3) { transition-delay: 160ms; }
.aireg-velocity-strip.is-visible .aireg-velocity-stat:nth-child(4) { transition-delay: 240ms; }

/* --- 4. Persona Nav Entrance --- */

/* Persona section — warm glow on arrival */
.aireg-persona-nav.aireg-parchment-section {
	box-shadow: none;
	transition: box-shadow 900ms ease-out 100ms;
}

.aireg-persona-nav.aireg-parchment-section.is-visible {
	box-shadow: inset 0 0 80px 20px rgba(245, 240, 232, 0.08);
}

.aireg-persona-label {
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.aireg-persona-sublabel {
	opacity: 0;
	transition: opacity 450ms ease-out 150ms;
}

.aireg-persona-nav.is-visible .aireg-persona-label {
	opacity: 1;
	transform: translateY(0);
}

.aireg-persona-nav.is-visible .aireg-persona-sublabel {
	opacity: 0.6;
}

.aireg-persona-pill-btn {
	opacity: 0;
	transform: translateY(4px);
}

.aireg-persona-nav.is-visible .aireg-persona-pill-btn {
	animation: aireg-word-reveal 300ms ease-out forwards;
}

.aireg-persona-nav.is-visible .aireg-persona-pill-btn:nth-child(1) { animation-delay: 200ms; }
.aireg-persona-nav.is-visible .aireg-persona-pill-btn:nth-child(2) { animation-delay: 260ms; }
.aireg-persona-nav.is-visible .aireg-persona-pill-btn:nth-child(3) { animation-delay: 320ms; }
.aireg-persona-nav.is-visible .aireg-persona-pill-btn:nth-child(4) { animation-delay: 380ms; }
.aireg-persona-nav.is-visible .aireg-persona-pill-btn:nth-child(5) { animation-delay: 440ms; }

/* Persona recommendation panel — smooth grid height */
.aireg-persona-recommendations {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 400ms cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.aireg-persona-recommendations.is-open {
	grid-template-rows: 1fr;
}

.aireg-persona-recommendations > * {
	overflow: hidden;
}

/* Rec cards stagger when panel opens */
.aireg-persona-recommendations.is-open .aireg-persona-rec-card {
	opacity: 0;
	transform: translateY(8px);
	animation: aireg-word-reveal 300ms ease-out forwards;
}

.aireg-persona-recommendations.is-open .aireg-persona-rec-card:nth-child(1) { animation-delay: 100ms; }
.aireg-persona-recommendations.is-open .aireg-persona-rec-card:nth-child(2) { animation-delay: 160ms; }
.aireg-persona-recommendations.is-open .aireg-persona-rec-card:nth-child(3) { animation-delay: 220ms; }

/* --- 5. Heatmap Entrance Enhancements --- */

.aireg-heatmap-header {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.aireg-heatmap-section.is-visible .aireg-heatmap-header {
	opacity: 1;
	transform: translateY(0);
}

.aireg-heatmap-row-header {
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.aireg-heatmap-section.is-visible .aireg-heatmap-row-header { opacity: 1; transform: translateX(0); }
.aireg-heatmap-section.is-visible .aireg-heatmap-row-header:nth-of-type(1) { transition-delay: 200ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-row-header:nth-of-type(2) { transition-delay: 400ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-row-header:nth-of-type(3) { transition-delay: 600ms; }
.aireg-heatmap-section.is-visible .aireg-heatmap-row-header:nth-of-type(4) { transition-delay: 800ms; }

.aireg-heatmap-col-header {
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 300ms ease-out 100ms, transform 300ms ease-out 100ms;
}

.aireg-heatmap-section.is-visible .aireg-heatmap-col-header {
	opacity: 1;
	transform: translateY(0);
}

.aireg-heatmap-legend {
	opacity: 0;
	transition: opacity 400ms ease-out 900ms;
}

.aireg-heatmap-section.is-visible .aireg-heatmap-legend {
	opacity: 1;
}

/* --- 6. Compare Sidebar Entrance --- */

.aireg-sidebar-compare {
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 500ms ease-out 400ms, transform 500ms ease-out 400ms;
}

.aireg-latest-section.is-visible .aireg-sidebar-compare {
	opacity: 1;
	transform: translateX(0);
}

/* --- 7. Newsletter CTA Choreography --- */

.aireg-newsletter-accent {
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 500ms ease-out;
}

.aireg-cta-newsletter.is-visible .aireg-newsletter-accent {
	transform: scaleX(1);
}

.aireg-newsletter-heading {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 450ms ease-out 200ms, transform 450ms ease-out 200ms;
}

.aireg-cta-newsletter.is-visible .aireg-newsletter-heading {
	opacity: 1;
	transform: translateY(0);
}

.aireg-newsletter-tagline {
	opacity: 0;
	transition: opacity 400ms ease-out 350ms;
}

.aireg-cta-newsletter.is-visible .aireg-newsletter-tagline {
	opacity: 1;
}

.aireg-newsletter-preview-list li {
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.aireg-cta-newsletter.is-visible .aireg-newsletter-preview-list li { opacity: 1; transform: translateX(0); }
.aireg-cta-newsletter.is-visible .aireg-newsletter-preview-list li:nth-child(1) { transition-delay: 400ms; }
.aireg-cta-newsletter.is-visible .aireg-newsletter-preview-list li:nth-child(2) { transition-delay: 460ms; }
.aireg-cta-newsletter.is-visible .aireg-newsletter-preview-list li:nth-child(3) { transition-delay: 520ms; }

.aireg-newsletter-right {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 500ms ease-out 300ms, transform 500ms ease-out 300ms;
}

.aireg-cta-newsletter.is-visible .aireg-newsletter-right {
	opacity: 1;
	transform: translateY(0);
}

/* --- 8. Footer Entrance --- */

.aireg-radar-item {
	opacity: 0;
	transform: translateX(-12px);
	transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.aireg-footer.is-visible .aireg-radar-item { opacity: 1; transform: translateX(0); }
.aireg-footer.is-visible .aireg-radar-item:nth-child(1) { transition-delay: 0ms; }
.aireg-footer.is-visible .aireg-radar-item:nth-child(2) { transition-delay: 100ms; }
.aireg-footer.is-visible .aireg-radar-item:nth-child(3) { transition-delay: 200ms; }
.aireg-footer.is-visible .aireg-radar-item:nth-child(4) { transition-delay: 300ms; }

.aireg-footer-gradient-border {
	opacity: 0;
	transition: opacity 600ms ease-out 400ms;
}

.aireg-footer.is-visible .aireg-footer-gradient-border {
	opacity: 1;
}

.aireg-footer .wp-block-columns {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 500ms ease-out 500ms, transform 500ms ease-out 500ms;
}

.aireg-footer.is-visible .wp-block-columns {
	opacity: 1;
	transform: translateY(0);
}

/* --- Section Connector Lines --- */

.aireg-latest-section {
	border-top: 1px solid transparent;
	border-image: linear-gradient(90deg, transparent 20%, var(--aireg-teal) 50%, transparent 80%) 1;
}

/* ============================================
   Scroll-Driven CSS (Progressive Enhancement)
   ============================================ */

@supports (animation-timeline: view()) {
	/* Hero content parallax on scroll-out */
	.aireg-hero-content {
		animation: aireg-hero-scroll-out linear;
		animation-timeline: view();
		animation-range: exit 0% exit 50%;
	}

	@keyframes aireg-hero-scroll-out {
		to {
			opacity: 0;
			transform: translateY(-40px);
		}
	}

	/* Velocity stats — scroll-tied entrance */
	.aireg-velocity-stat {
		animation: aireg-scroll-enter linear;
		animation-timeline: view();
		animation-range: entry 0% entry 100%;
	}

	@keyframes aireg-scroll-enter {
		from { opacity: 0; transform: translateY(20px); }
		to { opacity: 1; transform: translateY(0); }
	}

	/* Newsletter accent line */
	.aireg-newsletter-accent {
		animation: aireg-scroll-scale-x linear;
		animation-timeline: view();
		animation-range: entry 10% entry 60%;
	}

	@keyframes aireg-scroll-scale-x {
		from { transform: scaleX(0); }
		to { transform: scaleX(1); }
	}

	/* Footer radar items */
	.aireg-radar-item {
		animation: aireg-scroll-enter-left linear;
		animation-timeline: view();
		animation-range: entry 0% entry 70%;
	}

	@keyframes aireg-scroll-enter-left {
		from { opacity: 0; transform: translateX(-12px); }
		to { opacity: 1; transform: translateX(0); }
	}

	/* --- Parchment scroll-driven animations --- */

	/* Paper unfurl — scroll-driven entrance */
	@keyframes aireg-parchment-unfurl {
		from { opacity: 0; transform: scale(0.985); }
		to { opacity: 1; transform: scale(1); }
	}

	.aireg-parchment-enter {
		animation: aireg-parchment-unfurl linear;
		animation-timeline: view();
		animation-range: entry 0% entry 40%;
	}

	/* Grain parallax — paper surface depth */
	@keyframes aireg-grain-parallax {
		from { transform: translateY(-8px); }
		to { transform: translateY(8px); }
	}

	.aireg-parchment-grain {
		animation: aireg-grain-breathe 8s ease-in-out infinite,
		           aireg-grain-parallax linear;
		animation-timeline: auto, view();
		animation-range: normal, entry 0% exit 100%;
	}

	/* Warm vignette focus — edges darken at reading depth */
	@keyframes aireg-vignette-focus {
		0% { opacity: 0; }
		40% { opacity: 1; }
		60% { opacity: 1; }
		100% { opacity: 0; }
	}

	.aireg-parchment-section::before {
		animation: aireg-vignette-focus linear;
		animation-timeline: view();
		animation-range: entry 0% exit 100%;
	}
}

/* ============================================
   Reduced Motion — Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	/* Kill all continuous animations */
	.aireg-ticker-track,
	.aireg-hero-atmosphere,
	.aireg-node-core,
	.aireg-node-ring,
	.aireg-node-ring-outer,
	.aireg-node-ring-mid,
	.aireg-node-ring-inner,
	.aireg-node--eu .aireg-node-pip,
	.aireg-node-boundary-us,
	.aireg-node-satellite,
	.aireg-node-frame-cn,
	.aireg-node-scan,
	.aireg-node-frame-uk-outer,
	.aireg-node-frame-uk-inner,
	.aireg-node-principle,
	.aireg-stage--current,
	.aireg-node-frame-kr,
	.aireg-pip-kr--left,
	.aireg-pip-kr--right,
	.aireg-particle,
	.aireg-heatmap-cell--high,
	.aireg-threat-glow,
	.aireg-threat-glow--urgent,
	.aireg-threat-glow--amber,
	.aireg-threat-glow--teal,
	.aireg-ticker-dot--amber,
	.aireg-404-node--disconnected,
	.aireg-404-node-ring,
	.aireg-404-node-core-lost,
	.aireg-parchment-grain {
		animation: none !important;
	}

	.aireg-parchment-grain {
		opacity: 0.03 !important;
	}

	/* Make entrance animations instant */
	.aireg-animate-in,
	.aireg-animate-in--left,
	.aireg-animate-in--right,
	.aireg-animate-in--scale,
	.aireg-stagger > *,
	.aireg-heatmap-cell,
	.aireg-hero-title .aireg-word,
	.aireg-constellation-line,
	.aireg-hero-subtitle,
	.aireg-hero-search-form,
	.aireg-hero-popular,
	.aireg-hero-pill,
	.aireg-velocity-stat,
	.aireg-constellation-node,
	.aireg-constellation-node.is-active-jurisdiction,
	.aireg-constellation-node.is-dimmed-jurisdiction,
	.aireg-hero-atmosphere,
	.aireg-persona-label,
	.aireg-persona-sublabel,
	.aireg-persona-pill-btn,
	.aireg-heatmap-header,
	.aireg-heatmap-row-header,
	.aireg-heatmap-col-header,
	.aireg-heatmap-legend,
	.aireg-sidebar-compare,
	.aireg-newsletter-accent,
	.aireg-newsletter-heading,
	.aireg-newsletter-tagline,
	.aireg-newsletter-preview-list li,
	.aireg-newsletter-right,
	.aireg-radar-item,
	.aireg-footer-gradient-border,
	.aireg-footer .wp-block-columns,
	.aireg-ticker-border-top,
	.aireg-ticker-border-bottom,
	.aireg-ticker-wrap .aireg-ticker-track,
	.aireg-parchment-enter {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}

	.aireg-parchment-section::before {
		display: none !important;
	}

	/* Keep hover feedback but instant */
	.aireg-article-card,
	.aireg-persona-pill-btn,
	.aireg-heatmap-cell,
	.aireg-compare-tab,
	.aireg-hero-pill {
		transition-duration: 0.01ms !important;
	}

	/* Ticker: show static */
	.aireg-ticker-track {
		transform: none !important;
	}

	/* View transitions: no movement */
	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.01ms !important;
	}
}

/* ============================================
   Mobile Animation Simplification
   ============================================ */

@media (max-width: 768px) {
	/* Reduce stagger — only first 3 get delays */
	.aireg-stagger.is-visible > *:nth-child(n+4) {
		transition-delay: 0ms !important;
	}

	/* No parallax on mobile */
	[data-parallax] {
		transform: none !important;
	}

	/* Simplify card hover */
	.aireg-article-card:hover {
		transform: none;
	}

	/* Reduce heatmap stagger */
	.aireg-heatmap-section.is-visible .aireg-heatmap-cell {
		transition-delay: 0ms !important;
		transition-duration: 200ms !important;
	}

	/* Simplify parchment animations on mobile */
	.aireg-parchment-enter {
		transform: none;
		transition-property: opacity;
		transition-duration: 400ms;
	}

	.aireg-parchment-section::before {
		display: none;
	}

	/* Disable scroll-driven CSS on mobile */
	@supports (animation-timeline: view()) {
		.aireg-hero-content,
		.aireg-velocity-stat,
		.aireg-newsletter-accent,
		.aireg-radar-item,
		.aireg-parchment-enter,
		.aireg-parchment-grain,
		.aireg-parchment-section::before {
			animation-timeline: auto !important;
			animation: none !important;
		}

		/* Keep grain breathing on mobile — cheap, adds life */
		.aireg-parchment-grain {
			animation: aireg-grain-breathe 8s ease-in-out infinite !important;
		}
	}
}

/* ============================================
   Screen Reader Text (Visually Hidden)
   ============================================ */

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

/* ================================================================
   SINGLE POST — Content + Sidebar layout
   ================================================================ */

.aireg-single-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

.aireg-single-content {
	min-width: 0; /* prevent overflow */
	max-width: 720px;
}

.aireg-single-sidebar {
	position: relative;
}

.aireg-single-sidebar-inner {
	position: sticky;
	top: 80px;
}

.aireg-sidebar-heading {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aireg-text-secondary);
	margin: 0 0 var(--wp--preset--spacing--20);
}

.aireg-sidebar-toc-section {
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--aireg-border);
}

/* Print button (screen only) */
.aireg-print-bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: var(--wp--preset--spacing--20);
}

.aireg-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	background: transparent;
	border: 1px solid var(--aireg-border);
	border-radius: var(--wp--custom--border-radius--full);
	color: var(--aireg-text-secondary);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: all 150ms ease;
}

.aireg-print-btn:hover {
	border-color: var(--aireg-teal);
	color: var(--aireg-teal);
}

.aireg-print-btn svg {
	flex-shrink: 0;
}

/* Print header (hidden on screen) */
.aireg-print-header {
	display: none;
}

@media (max-width: 900px) {
	.aireg-single-layout {
		grid-template-columns: 1fr;
	}
	.aireg-single-sidebar-inner {
		position: static;
	}
	.aireg-single-sidebar {
		border-top: 1px solid var(--aireg-border);
		padding-top: var(--wp--preset--spacing--40);
	}
}

/* ================================================================
   KNOWLEDGE GRAPH — Obsidian-style connected articles
   ================================================================ */

.aireg-knowledge-graph {
	text-align: center;
}

.aireg-graph-svg-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
}

.aireg-graph-svg-wrap svg {
	width: 100%;
	height: 100%;
}

/* SVG canvas */
.aireg-graph-svg-wrap svg {
	width: 100%;
	height: 100%;
	cursor: grab;
}
.aireg-graph-svg-wrap svg:active {
	cursor: grabbing;
}

/* Center pulse ring */
.aireg-graph-center-pulse {
	animation: aireg-graph-pulse 3s ease-in-out infinite;
}
@keyframes aireg-graph-pulse {
	0%, 100% { r: 20; opacity: 0.4; }
	50% { r: 26; opacity: 0; }
}

/* Link lines */
.aireg-graph-link {
	transition: stroke-opacity 200ms ease, stroke-width 200ms ease;
}

/* Center label */
.aireg-graph-center-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	fill: var(--aireg-text-secondary);
	letter-spacing: 0.05em;
	pointer-events: none;
}

/* Node jurisdiction label */
.aireg-graph-node-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.08em;
	pointer-events: none;
}

/* Node group transition for dimming */
.aireg-graph-svg-wrap g {
	transition: opacity 250ms ease;
}

/* Tooltip */
.aireg-graph-tooltip {
	position: absolute;
	background: var(--aireg-bg-elevated);
	border: 1px solid var(--aireg-border);
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 0.75rem;
	color: var(--aireg-text);
	pointer-events: none;
	opacity: 0;
	transition: opacity 150ms ease;
	white-space: nowrap;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	z-index: 10;
	box-shadow: var(--aireg-glow-sm);
}
.aireg-graph-tooltip.is-visible {
	opacity: 1;
}

.aireg-graph-hint {
	font-size: 0.65rem;
	color: var(--aireg-text-secondary);
	margin-top: 6px;
	text-align: center;
	opacity: 0.6;
}

/* Dark mode */
[data-theme="dark"] .aireg-graph-center-label {
	fill: var(--aireg-text-secondary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.aireg-graph-center-pulse { animation: none; }
	.aireg-graph-svg-wrap g { transition: none; }
}

/* Mobile */
@media (max-width: 600px) {
	.aireg-graph-svg-wrap { aspect-ratio: 1; }
}

/* ================================================================
   FEATURE: Freshness Badge
   ================================================================ */

.aireg-freshness-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-family: var(--wp--preset--font-family--mono);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.aireg-freshness-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.aireg-freshness--fresh .aireg-freshness-dot {
	background: #22C55E;
	box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.aireg-freshness--aging .aireg-freshness-dot {
	background: var(--aireg-amber);
	box-shadow: 0 0 6px rgba(212, 160, 57, 0.4);
}

.aireg-freshness--stale .aireg-freshness-dot {
	background: var(--aireg-critical);
	box-shadow: 0 0 6px rgba(184, 92, 56, 0.4);
}

.aireg-freshness--fresh { color: #22C55E; }
.aireg-freshness--aging { color: var(--aireg-amber); }
.aireg-freshness--stale { color: var(--aireg-critical); }

/* ================================================================
   FEATURE: Minutes Remaining Counter
   ================================================================ */

.aireg-minutes-remaining {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--aireg-text-secondary);
	padding: 8px 0;
	transition: opacity 300ms ease;
}

/* ================================================================
   FEATURE: TOC Section Progress Bars
   ================================================================ */

.aireg-toc-item {
	position: relative;
}

.aireg-toc-progress {
	height: 2px;
	width: 0;
	background: var(--aireg-teal);
	border-radius: 1px;
	margin-top: 3px;
	transition: width 100ms ease-out;
	opacity: 0.6;
}

.aireg-toc-item.is-completed .aireg-toc-progress {
	background: var(--aireg-sage);
	opacity: 0.4;
}

.aireg-toc-item.is-completed .aireg-toc-link::after {
	content: ' \2713';
	color: var(--aireg-sage);
	font-size: 0.7em;
}

/* ================================================================
   FEATURE: Glossary Tooltips
   ================================================================ */

.aireg-glossary-term {
	border-bottom: 1px dotted var(--aireg-teal);
	cursor: help;
	transition: border-color 150ms ease;
}

.aireg-glossary-term:hover,
.aireg-glossary-term:focus {
	border-bottom-color: var(--aireg-teal-glow);
}

.aireg-glossary-term:focus-visible {
	outline: 2px solid var(--aireg-teal);
	outline-offset: 2px;
}

.aireg-glossary-tooltip {
	position: absolute;
	z-index: 9999;
	background: var(--aireg-bg-elevated);
	border: 1px solid var(--aireg-border);
	border-radius: 8px;
	padding: 12px 16px;
	box-shadow: var(--aireg-glow);
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease;
	max-width: 280px;
}

.aireg-glossary-tooltip.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.aireg-glossary-tooltip-title {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.85rem;
	color: var(--aireg-text);
	margin-bottom: 4px;
}

.aireg-glossary-tooltip-excerpt {
	font-size: 0.78rem;
	color: var(--aireg-text-secondary);
	line-height: 1.5;
	margin: 0 0 6px;
}

.aireg-glossary-tooltip-link {
	font-size: 0.72rem;
	font-family: var(--wp--preset--font-family--mono);
	color: var(--aireg-teal);
	text-decoration: none;
	letter-spacing: 0.02em;
}

.aireg-glossary-tooltip-link:hover {
	text-decoration: underline;
}

/* ================================================================
   FEATURE: Jurisdiction Bar (inline)
   ================================================================ */

.aireg-jurisdiction-bar-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 10px 16px;
	background: var(--aireg-bg-surface);
	border: 1px solid var(--aireg-border);
	border-radius: 8px;
	margin-bottom: var(--wp--preset--spacing--30);
}

.aireg-jurisdiction-bar-inline:empty {
	display: none;
}

.aireg-jbar-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--aireg-text-secondary);
}

.aireg-jbar-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 20px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--pill-color, var(--aireg-teal));
	background: transparent;
	border: 1px solid var(--pill-color, var(--aireg-teal));
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.aireg-jbar-pill:hover {
	background: var(--pill-color, var(--aireg-teal));
	color: #fff;
	box-shadow: 0 0 8px color-mix(in srgb, var(--pill-color, var(--aireg-teal)) 40%, transparent);
}

/* Section highlight when jurisdiction pill is hovered */
.aireg-jurisdiction-highlight {
	position: relative;
}

.aireg-jurisdiction-highlight::before {
	content: '';
	position: absolute;
	left: -16px;
	top: -4px;
	bottom: -4px;
	width: 3px;
	background: var(--aireg-teal);
	border-radius: 2px;
	animation: aireg-highlight-pulse 600ms ease;
}

@keyframes aireg-highlight-pulse {
	0% { opacity: 0; transform: scaleY(0); }
	100% { opacity: 1; transform: scaleY(1); }
}

/* ================================================================
   FEATURE: Takeaway Card (sidebar)
   ================================================================ */

.aireg-takeaway-card {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--aireg-border);
}

.aireg-takeaway-text {
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--aireg-text);
	transition: opacity 150ms ease;
	margin: 0;
	padding: 10px 12px;
	background: var(--aireg-teal-light);
	border-radius: 6px;
	border-left: 3px solid var(--aireg-teal);
}

/* Hide the inline [takeaway] blocks — they're source data for the card */
.aireg-takeaway-block {
	display: none !important;
}

/* ================================================================
   FEATURE: Smart Related Articles
   ================================================================ */

.aireg-smart-related {
	margin-bottom: var(--wp--preset--spacing--50);
}

.aireg-smart-related:empty {
	display: none;
}

.aireg-smart-related-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--aireg-text);
	margin: 0 0 var(--wp--preset--spacing--30);
}

.aireg-smart-related-group-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aireg-text-secondary);
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--20);
}

.aireg-smart-related-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.aireg-smart-related-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border: 1px solid var(--aireg-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--aireg-text);
	transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.aireg-smart-related-card:hover {
	border-color: var(--aireg-teal);
	box-shadow: var(--aireg-glow-sm);
	transform: translateY(-2px);
}

.aireg-smart-related-card-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
}

.aireg-smart-related-pills {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.aireg-smart-related-pill {
	display: inline-block;
	padding: 2px 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--pill-color, var(--aireg-teal));
	border: 1px solid var(--pill-color, var(--aireg-teal));
	border-radius: 10px;
}

/* ================================================================
   RESPONSIVE: New features on mobile
   ================================================================ */

@media (max-width: 900px) {
	.aireg-smart-related-grid {
		grid-template-columns: 1fr;
	}

	.aireg-jurisdiction-bar-inline {
		margin-left: 0;
		margin-right: 0;
	}
}

/* ================================================================
   REDUCED MOTION: New features
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
	.aireg-toc-progress {
		transition: none;
	}

	.aireg-takeaway-text {
		transition: none;
	}

	.aireg-glossary-tooltip {
		transition: none;
	}

	.aireg-smart-related-card {
		transition: none;
	}

	.aireg-jurisdiction-highlight::before {
		animation: none;
	}

	.aireg-minutes-remaining {
		transition: none;
	}
}

/* ================================================================
   ACCESSIBILITY: Skip-to-Content Link
   ================================================================ */

.aireg-skip-link {
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--aireg-teal);
	color: #fff;
	padding: 8px 24px;
	border-radius: 0 0 6px 6px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	z-index: 99999;
	transition: top 150ms ease;
}

.aireg-skip-link:focus {
	top: 0;
	outline: 2px solid var(--aireg-teal-glow);
	outline-offset: 2px;
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */

.aireg-breadcrumbs {
	margin-bottom: var(--wp--preset--spacing--30);
}

.aireg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	color: var(--aireg-text-secondary);
}

.aireg-breadcrumbs li:not(:last-child)::after {
	content: '\203A';
	margin: 0 8px;
	opacity: 0.5;
}

.aireg-breadcrumbs a {
	color: var(--aireg-text-secondary);
	text-decoration: none;
	transition: color 150ms ease;
}

.aireg-breadcrumbs a:hover {
	color: var(--aireg-teal);
}

.aireg-breadcrumbs [aria-current="page"] {
	color: var(--aireg-text);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 300px;
	display: inline-block;
	vertical-align: bottom;
}

/* ================================================================
   PERFORMANCE: CSS Containment
   ================================================================ */

.aireg-ticker-wrap {
	contain: layout paint;
}

.aireg-heatmap-section {
	contain: layout paint;
}

.aireg-knowledge-graph {
	contain: layout;
}

.aireg-graph-svg-wrap {
	contain: paint;
}

/* ================================================================
   GLOSSARY ARCHIVE
   ================================================================ */

.aireg-glossary-entry {
	transition: background 150ms ease;
}

.aireg-glossary-entry:hover {
	background: var(--aireg-overlay-faint);
}

/* ================================================================
   CONSTELLATION PHYSICS — Enhanced Particles & Effects
   ================================================================ */

.aireg-physics-particles circle {
	transition: opacity 200ms ease;
	will-change: cx, cy, opacity;
}

.aireg-orbit-particles circle {
	will-change: cx, cy;
}

.aireg-pulse-ring {
	will-change: r, opacity;
	pointer-events: none;
}

/* Upgrade: connection lines respond to physics */
.aireg-constellation-line {
	will-change: stroke-opacity, stroke-width;
}

/* Drag cursors */
.aireg-constellation-node {
	cursor: grab;
}

.aireg-hero-constellation.is-dragging {
	cursor: grabbing;
}

.aireg-hero-constellation.is-dragging .aireg-constellation-node {
	cursor: grabbing;
}

/* Node hover: scale up core slightly */
.aireg-constellation-node:hover .aireg-node-core {
	r: 8;
	transition: r 200ms ease;
}

/* Orbit particles fade when node is dimmed */
.aireg-constellation-node.is-dimmed-jurisdiction ~ .aireg-orbit-particles circle {
	opacity: 0.1 !important;
}

@media (prefers-reduced-motion: reduce) {
	.aireg-physics-particles,
	.aireg-orbit-particles,
	.aireg-pulse-ring {
		display: none;
	}
}

@media (max-width: 768px) {
	.aireg-physics-particles circle {
		display: none; /* too many for mobile */
	}
	.aireg-orbit-particles circle {
		display: none;
	}
}
