/* ==========================================================================
   Nuclr Commander — shared site styles
   Palette + type sampled from the app splash: deep navy + gold, JetBrains Mono.
   Self-contained: the only external asset is the locally-served JetBrains Mono
   font (same origin) — no CDNs, no third-party requests, no storage.
   ========================================================================== */

@font-face {
	font-family: "JetBrains Mono";
	src: url("/fonts/JetBrainsMono-Bold-6df2271d622fe6db9e5a71e1e522feca.woff2") format("woff2"), url("/fonts/JetBrainsMono-Bold-8658ffe39dbfa1c12436789a50212180.ttf") format("truetype");
	font-weight: 100 900;   /* only the Bold master ships; map every weight to it */
	font-style: normal;
	font-display: swap;
}

:root {
	/* Navy — sampled from splash.png (corners -> center glow) */
	--navy-950: #00071f;
	--navy-900: #00123b;
	--navy-850: #001a4d;
	--navy-800: #002c73;   /* brand navy (app icon background) */
	--navy-700: #0b3a86;
	--navy-glow: #0a2a63;

	/* Gold / amber — the atom + wordmark */
	--gold: #f5c518;
	--gold-bright: #ffd633;
	--amber: #e8a200;
	--lemon: #fffa06;      /* tiny orbit-dot accents */

	--bg: var(--navy-950);
	--bg-elevated: #061633;
	--bg-panel: #0a1f45;
	--border: #163a70;
	--border-strong: #235196;

	--text: #eaf1ff;
	--text-muted: #a6bbe4;
	--text-dim: #6a80ac;

	--radius: 14px;
	--radius-sm: 8px;
	--maxw: 1140px;

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(120% 90% at 50% -10%, var(--navy-glow) 0%, transparent 55%),
		radial-gradient(90% 70% at 12% 8%, rgba(11, 58, 134, 0.55), transparent 45%),
		radial-gradient(70% 60% at 92% 4%, rgba(245, 197, 24, 0.06), transparent 40%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 {
	font-family: var(--font-mono);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0;
}

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}
.mono { font-family: var(--font-mono); }

/* Skip link for keyboard users --------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--gold);
	color: var(--navy-900);
	padding: 10px 16px;
	border-radius: 0 0 var(--radius-sm) 0;
	font-weight: 700;
	z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Header / nav ======================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(10px);
	background: rgba(0, 7, 31, 0.72);
	border-bottom: 1px solid var(--border);
}
.nav {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 60px;
}
/* Full width and dressed like the landing page's top bar, so nothing jumps between pages. */
.site-header .nav.container { max-width: none; padding: 0 clamp(16px, 4vw, 48px); }
.site-header .nav { height: 59px; }
.site-header .brand { color: var(--text); font-size: 1rem; }
.site-header .brand .brand-sub { color: inherit; }
.site-header .nav-links .btn { font-family: var(--font-sans); border-radius: 4px; }
.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1.02rem;
	letter-spacing: -0.01em;
	color: var(--gold);
}
.brand:hover { color: var(--gold); }
.brand svg { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.brand .brand-sub { color: var(--text-muted); }

.nav-links {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}
.nav-links a { color: var(--text-muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
/* .nav-links a outranks .btn-primary, which left the CTA grey text on gold. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--navy-950); }

/* The language menu (fragments/header :: languageMenu), in the shared navbar and the
   landing page's top bar alike: the current language, opening a list of the others. */
.lang-menu { position: relative; font-size: 0.94rem; }
.lang-menu summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	list-style: none;
	color: var(--text-muted);
	font-weight: 500;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "\25BE"; font-size: 0.75em; opacity: 0.8; }
.lang-menu summary:hover, .lang-menu[open] summary { color: #fff; }
.lang-menu ul {
	position: absolute;
	z-index: 70;
	top: calc(100% + 10px);
	right: 0;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--bg-elevated);
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang-menu li a {
	display: block;
	padding: 7px 12px;
	border-radius: 6px;
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
}
.lang-menu li a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lang-menu li a[aria-current="page"] { color: var(--gold); }
@media (max-width: 560px) {
	.lang-menu summary span { display: none; }
}

/* ===== Buttons ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 0.94rem;
	letter-spacing: -0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--amber) 100%);
	color: var(--navy-950);
	box-shadow: 0 0 24px rgba(245, 197, 24, 0.28);
}
.btn-primary:hover { color: var(--navy-950); box-shadow: 0 0 36px rgba(245, 197, 24, 0.5); }
.btn-ghost {
	background: transparent;
	color: var(--gold);
	border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(245, 197, 24, 0.08); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* ===== Section scaffolding ================================================ */
section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--text-muted); font-size: 1.06rem; margin: 14px 0 0; }

/* ===== Hero =============================================================== */
.hero { padding: 78px 0 66px; position: relative; overflow: hidden; }
.hero-decor {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 56px;
	align-items: center;
}
.hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 0.76rem;
	color: var(--gold);
	border: 1px solid var(--border-strong);
	background: rgba(245, 197, 24, 0.06);
	padding: 6px 13px;
	border-radius: 4px;
	margin-bottom: 22px;
}
.hero h1 {
	font-size: clamp(2.2rem, 5.2vw, 3.4rem);
	letter-spacing: -0.03em;
	margin-bottom: 20px;
}
.hero h1 .grad {
	background: linear-gradient(100deg, var(--gold-bright) 10%, var(--amber) 92%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--gold);
}
.hero-sub {
	font-family: var(--font-sans);
	font-size: 1.16rem;
	color: var(--text-muted);
	max-width: 42ch;
	margin: 0 0 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
a.hero-pill { text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
a.hero-pill:hover { border-color: var(--gold); background: rgba(245, 197, 24, 0.12); }
.hero h1 .hero-h1-more {
	display: block;
	margin-top: 10px;
	font-size: 0.62em;
	letter-spacing: -0.02em;
	color: var(--text-muted);
}

/* ===== Hero screenshot carousel ========================================== */
.shots { position: relative; }
/* The frame keeps a fixed 3:2 box whatever arrives in it. Screenshots are taken
   at whatever size the window happened to be, and a hero that resized itself as
   it advanced -- or grew once the first image finally loaded -- is worse than a
   little letterboxing on an odd one. */
.shots-viewport {
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: #020c22;
	box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(245, 197, 24, 0.06), 0 0 60px -20px rgba(11, 58, 134, 0.9);
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
/* One row of full-width slides, moved by transform. */
.shots-track {
	display: flex;
	height: 100%;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.shot { flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; }
.shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shot-zoom { display: block; height: 100%; cursor: zoom-in; }
.shot-zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* Wraps rather than overflows: the dot row grows with every screenshot added,
   and a phone is the first place that runs out of room. */
.shots-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
}
.shots-arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: rgba(11, 58, 134, 0.25);
	color: var(--text-muted);
	font-family: var(--font-sans);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.shots-arrow:hover { color: var(--gold); border-color: var(--gold); background: rgba(245, 197, 24, 0.12); }
.shots-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; }
.shots-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--border-strong);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.shots-dots button:hover { background: var(--text-dim); }
.shots-dots button.is-current { background: var(--gold); transform: scale(1.35); }
.shots-arrow:focus-visible,
.shots-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.shots-track { transition: none; }
	.shots-dots button { transition: none; }
}

/* ===== Full-screen screenshot (native <dialog>) ========================== */
.lightbox {
	max-width: 96vw;
	max-height: 96vh;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-muted);
	overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 7, 31, 0.98); backdrop-filter: blur(6px); }
.lightbox img,
.lightbox video {
	display: block;
	max-width: 96vw;
	max-height: 82vh;
	margin: 0 auto;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: #020c22;
}
.lightbox [hidden] { display: none; }
.lightbox-caption {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 12px auto 0;
	max-width: 70ch;
	font-family: var(--font-sans);
	font-size: 0.86rem;
	text-align: center;
}
.lightbox-count { color: var(--text-dim); font-family: var(--font-mono); }
/* Fixed rather than pinned to the image: inside the top layer that is the
   viewport corner, so it stays reachable whatever shape the screenshot is. */
.lightbox-close {
	position: fixed;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: rgba(2, 12, 34, 0.9);
	color: var(--text-muted);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lightbox-close:hover { color: var(--gold); border-color: var(--gold); background: rgba(245, 197, 24, 0.14); }
.lightbox-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== Feature grid ======================================================= */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	counter-reset: feature;
}
.feature {
	position: relative;
	grid-column: span 3;
	min-height: 236px;
	overflow: hidden;
	isolation: isolate;
	border: 1px solid rgba(35, 81, 150, 0.72);
	background:
		radial-gradient(circle at 100% 0, rgba(245, 197, 24, 0.1), transparent 34%),
		linear-gradient(145deg, rgba(10, 31, 69, 0.96), rgba(3, 14, 39, 0.98));
	border-radius: 18px;
	padding: 28px 26px;
	counter-increment: feature;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.feature:nth-child(1),
.feature:nth-child(4) { grid-column: span 6; }
.feature::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, transparent 0 49.5%, rgba(166, 187, 228, 0.05) 50%, transparent 50.5%),
		linear-gradient(0deg, transparent 0 49.5%, rgba(166, 187, 228, 0.05) 50%, transparent 50.5%);
	background-size: 34px 34px;
	mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.55), transparent 62%);
	opacity: 0.45;
}
.feature::after {
	content: "0" counter(feature);
	position: absolute;
	top: 25px;
	right: 26px;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	color: var(--text-dim);
}
.feature:hover {
	transform: translateY(-5px);
	border-color: rgba(245, 197, 24, 0.8);
	background:
		radial-gradient(circle at 100% 0, rgba(245, 197, 24, 0.17), transparent 38%),
		linear-gradient(145deg, rgba(13, 43, 93, 0.98), rgba(3, 14, 39, 0.98));
	box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.95), 0 0 28px -18px rgba(245, 197, 24, 0.8);
}
.feature .icon {
	position: relative;
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(0, 44, 115, 0.95), rgba(11, 58, 134, 0.42));
	border: 1px solid rgba(166, 187, 228, 0.24);
	color: var(--gold);
	margin-bottom: 22px;
	font-size: 1.2rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px -16px rgba(0, 0, 0, 0.9);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover .icon { transform: rotate(-4deg) scale(1.05); border-color: rgba(245, 197, 24, 0.65); }
.feature h3 { max-width: 26ch; font-size: 1.1rem; margin-bottom: 9px; color: var(--text); }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.feature .roadmap-tag,
.ai-card .roadmap-tag,
.platform .roadmap-tag {
	display: inline-block;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold);
	border: 1px solid rgba(245, 197, 24, 0.4);
	border-radius: 4px;
	padding: 3px 10px;
}

/* ===== Quick-view plugin grid =============================================
   Same card as .feature, tightened up: there are twelve of these rather than
   six, so the padding and type come down a step and the hover keeps the border
   change without the lift. */
.plugin-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.plugin {
	border: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
	border-radius: var(--radius);
	padding: 20px 20px 18px;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.plugin:hover {
	border-color: var(--gold);
	box-shadow: 0 14px 32px -24px rgba(245, 197, 24, 0.45);
}
.plugin h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
/* The card title is the link to the plugin's repository. Undecorated until
   hover so twelve cards do not read as a wall of blue. */
.plugin-link { color: inherit; text-decoration: none; }
.plugin-link:hover, .plugin-link:focus-visible { color: var(--gold); text-decoration: underline; }
.plugin:hover .plugin-link { color: var(--gold); }
.plugin p { color: var(--text-muted); margin: 0 0 14px; font-size: 0.92rem; }

/* Format chips. Pushed to the bottom of the card so the rows of chips line up
   across a grid row even when the descriptions differ in length. */
.plugin-formats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}
.plugin-formats span {
	font-family: var(--font-mono);
	font-size: 0.64rem;
	letter-spacing: 0.06em;
	color: var(--text-dim);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 2px 9px;
	white-space: nowrap;
}
.plugin-note {
	margin: 22px auto 0;
	max-width: 76ch;
	text-align: center;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-dim);
}

/* ===== AI Projects section ================================================
   The one section the page is currently selling, so it sits straight under the
   hero with a faint gold wash; the cards are the .feature card, one step
   quieter, in an even three-column grid. */
.ai-projects {
	background: radial-gradient(70% 60% at 50% 0, rgba(245, 197, 24, 0.07), transparent 70%);
	border-top: 1px solid var(--border);
}
.ai-pipeline {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
}
.ai-pipeline li {
	color: var(--gold);
	border: 1px solid var(--border-strong);
	background: var(--bg-elevated);
	border-radius: 4px;
	padding: 5px 13px;
}
/* The arrow sits in the gap between two chips, not inside either of them. */
.ai-pipeline li + li { position: relative; margin-left: 22px; }
.ai-pipeline li + li::before {
	content: "→";
	position: absolute;
	left: -24px;
	color: var(--text-dim);
}
.ai-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.ai-card {
	border: 1px solid rgba(35, 81, 150, 0.72);
	background:
		radial-gradient(circle at 100% 0, rgba(245, 197, 24, 0.08), transparent 34%),
		linear-gradient(145deg, rgba(10, 31, 69, 0.96), rgba(3, 14, 39, 0.98));
	border-radius: 18px;
	padding: 24px 24px 22px;
	transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.ai-card:hover {
	border-color: rgba(245, 197, 24, 0.8);
	box-shadow: 0 0 28px -18px rgba(245, 197, 24, 0.8);
}
.ai-card .icon {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(0, 44, 115, 0.95), rgba(11, 58, 134, 0.42));
	border: 1px solid rgba(166, 187, 228, 0.24);
	color: var(--gold);
	margin-bottom: 16px;
	font-size: 1.1rem;
}
.ai-card h3 { font-size: 1.04rem; margin-bottom: 8px; color: var(--text); }
.ai-card p { color: var(--text-muted); margin: 0; font-size: 0.94rem; }
.ai-keys {
	margin-top: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	padding: 18px 22px;
}
.ai-keys-title {
	margin: 0 0 12px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
}
.ai-keys ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 28px;
}
.ai-keys li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.94rem; }
.ai-keys-combo { flex: none; min-width: 7.5em; }

/* Featured plugin card: same card, with the gold border the section above uses. */
.plugin-chip-featured { color: var(--gold) !important; border-color: var(--gold) !important; }

/* ===== Landing-page plugin tabs ===========================================
   A scrolling list of plugins on the left and the selected one's details on
   the right. The screenshot frame is the carousel's 3:2 box, so switching
   between plugins with and without a screenshot does not move the text.
   `contain: size` keeps the list's own length out of the row height: the panel
   sets the height, and the list stretches to it and scrolls. */
.plugin-tabs {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.plugin-tablist {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-self: stretch;
	contain: size;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
}
.plugin-tab {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	color: var(--text-muted);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.plugin-tab:hover { color: var(--text); background: rgba(166, 187, 228, 0.06); }
.plugin-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.plugin-tab.is-current {
	color: var(--gold);
	background: rgba(245, 197, 24, 0.08);
	border-color: rgba(245, 197, 24, 0.45);
}
.plugin-tab-name { font-weight: 600; font-size: 0.95rem; }
.plugin-tab-kind {
	flex: none;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.06em;
	color: var(--text-dim);
}
.plugin-tab.is-current .plugin-tab-kind { color: var(--amber); }

.plugin-panel {
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
	overflow: hidden;
}
.plugin-panel:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plugin-shot {
	display: block;
	aspect-ratio: 3 / 2;
	background: #020b1f;
	border-bottom: 1px solid var(--border);
}
.plugin-shot img,
.plugin-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* A 16:9 recording letterboxes inside the 3:2 frame on the frame's own colour. */
.plugin-video video { background: #020b1f; }
.plugin-shot-empty {
	display: grid;
	place-items: center;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-dim);
	background:
		linear-gradient(90deg, transparent 0 49.5%, rgba(166, 187, 228, 0.05) 50%, transparent 50.5%),
		linear-gradient(0deg, transparent 0 49.5%, rgba(166, 187, 228, 0.05) 50%, transparent 50.5%),
		#020b1f;
	background-size: 34px 34px, 34px 34px, auto;
}
.plugin-panel-body { padding: 22px 24px 24px; }
.plugin-panel-body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--text); }
.plugin-panel-body .plugin-formats { margin: 0 0 14px; }
.plugin-panel-body p { color: var(--text-muted); margin: 0 0 18px; }
.plugin-panel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.plugin-panel-links .btn { gap: 8px; }
.plugin-panel-more { color: var(--gold); font-size: 0.92rem; text-decoration: none; }
.plugin-panel-more:hover, .plugin-panel-more:focus-visible { text-decoration: underline; }

/* ===== Keyboard-driven section ============================================ */
.lineage {
	background:
		radial-gradient(circle at 85% 15%, rgba(245, 197, 24, 0.08), transparent 45%),
		linear-gradient(180deg, rgba(0, 44, 115, 0.5), rgba(0, 44, 115, 0.12));
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.lineage-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	align-items: center;
}
.lineage h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 18px; }
.lineage p { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 14px; }
.lineage p strong { color: var(--gold); }
.keymap {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	padding: 22px;
	font-family: var(--font-mono);
	font-size: 0.9rem;
}
.keymap-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--border);
}
.keymap-row:last-child { border-bottom: none; }
.keymap-row .desc { color: var(--text-muted); }
kbd {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--gold);
	background: #041229;
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 6px;
	padding: 3px 9px;
	white-space: nowrap;
}

/* ===== Download / platforms =============================================== */
.platform-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.platform {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	padding: 28px 24px;
	text-align: center;
	transition: border-color 0.2s ease;
}
.platform:hover { border-color: var(--border-strong); }
.platform .glyph { font-size: 1.9rem; margin-bottom: 10px; }
.platform h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.platform p { color: var(--text-dim); font-size: 0.82rem; margin: 0; font-family: var(--font-mono); }
.platform-note {
	margin: 20px auto 0;
	max-width: 76ch;
	text-align: center;
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--text-dim);
}
.platform-note a { color: var(--gold); }
.platform-note code {
	font-family: var(--font-mono);
	font-size: 0.94em;
	color: var(--text-muted);
}

/* Download buttons inside a platform card: one column, each button followed by
   the version and size of the build it actually resolves to. */
.dl-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}
.dl-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
}
.dl-item-inline { flex-direction: row; width: auto; gap: 10px; }
.dl-actions .btn { width: 100%; max-width: 240px; }
.dl-ext { font-weight: 400; opacity: 0.8; }
.dl-meta {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--text-dim);
	letter-spacing: 0.02em;
}
/* The jar, the checksums and the release list — not per-platform. */
.dl-secondary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 18px;
	margin-top: 24px;
}
.dl-plain {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--gold);
	border-bottom: 1px dashed rgba(245, 197, 24, 0.4);
}
.dl-plain:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* ===== Download page (/download) ========================================== */
.dl-head { padding: 64px 0 28px; }
.dl-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 16px; }
.dl-lede {
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 68ch;
	margin: 0 0 12px;
}
.dl-lede code, .dl-version code { font-family: var(--font-mono); color: var(--text); }
.dl-version { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); margin: 0; }
.dl-version strong { color: var(--gold); }

.dl-body { padding: 28px 0 56px; }

/* Platform switcher: shown by the page script, which also sets data-os on
   .dl-body to the one platform card left visible ("all" keeps every card). */
.dl-switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 22px;
}
.dl-switch[hidden], .dl-mobile[hidden] { display: none; }
.dl-switch-label {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
}
.dl-switch-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
.dl-switch-tabs button {
	font: inherit;
	font-size: 0.9rem;
	color: var(--text-muted);
	background: transparent;
	border: 0;
	border-left: 1px solid var(--border);
	padding: 8px 16px;
	cursor: pointer;
}
.dl-switch-tabs button:first-child { border-left: 0; }
.dl-switch-tabs button:hover { color: var(--text); background: var(--bg-elevated); }
.dl-switch-tabs button[aria-pressed="true"] { color: #041229; background: var(--gold); font-weight: 600; }
.dl-switch-tabs button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.dl-mobile { color: var(--text-muted); line-height: 1.6; margin: 0 0 22px; }
.dl-mobile p { margin: 0 0 14px; }
.dl-mobile .dl-meta { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.dl-remote[hidden] { display: none; }
.dl-remote { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.dl-remote .play-badge { margin-top: 0; }
/* A phone has no room for four tabs in a row: two by two instead. */
@media (max-width: 520px) {
	.dl-switch-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.dl-switch-tabs button:nth-child(odd) { border-left: 0; }
	.dl-switch-tabs button:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.dl-body[data-os="windows"] .dl-platform:not(#windows),
.dl-body[data-os="macos"] .dl-platform:not(#macos),
.dl-body[data-os="linux"] .dl-platform:not(#linux) { display: none; }
.dl-platform {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	padding: 26px 26px 22px;
	margin-bottom: 20px;
	scroll-margin-top: 90px;
}
.dl-platform-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--border);
}
.dl-platform-head .glyph { font-size: 1.5rem; }
.dl-platform-head h2 { font-size: 1.35rem; margin: 0; }
.dl-arch {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-dim);
}
.dl-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.dl-buttons .dl-item { width: auto; align-items: flex-start; }
.dl-pending { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.dl-steps { margin-top: 20px; }
.dl-steps h3 {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 18px 0 8px;
}
.dl-steps h3:first-child { margin-top: 0; }
.dl-steps ol { margin: 0; padding-left: 1.25rem; }
.dl-steps li { color: var(--text-muted); line-height: 1.65; margin-bottom: 5px; }
.dl-steps code, .dl-list code, .dl-detail p code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	color: var(--text);
	background: #041229;
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 1px 5px;
}
.dl-hint { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; margin: 12px 0 0; }

.dl-detail {
	padding: 56px 0 72px;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(0, 44, 115, 0.28), transparent 70%);
}
.dl-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
/* Let the checksum commands scroll inside their box instead of widening the page. */
.dl-detail-grid > div { min-width: 0; }
.dl-detail h2 { font-size: 1.25rem; margin: 0 0 14px; }
.dl-detail h2 + h2, .dl-detail p + h2 { margin-top: 28px; }
.dl-detail p { color: var(--text-muted); line-height: 1.7; margin: 0 0 12px; }
.dl-list { margin: 0; padding-left: 1.2rem; }
.dl-list li { color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
.dl-code {
	background: #041229;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	overflow-x: auto;
	margin: 0 0 12px;
}
.dl-code code {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	line-height: 1.8;
	color: var(--text-muted);
	/* Wrapped rather than scrolled, so the whole command is visible and copyable. */
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.dl-code-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-dim);
	margin: 14px 0 6px;
}
.dl-detail .platform-note { text-align: left; margin-left: 0; }

/* ===== Articles =========================================================== */
.article-catalogue { min-height: 58vh; }
.article-catalogue h1 { margin-bottom: 14px; }
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 42px;
}
.article-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.15s ease, border-color 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.article-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #041229; }
.article-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.article-card h2 { font-size: 1.2rem; line-height: 1.35; margin: 10px 0 12px; }
.article-card h2 a { color: var(--text); }
.article-card h2 a:hover { color: var(--gold); }
.article-card-body > p:not(.article-meta) { color: var(--text-muted); line-height: 1.65; margin: 0 0 20px; }
.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 9px;
	font-family: var(--font-mono);
	font-size: 0.76rem;
	color: var(--text-dim);
	margin: 0;
}
.article-read { margin-top: auto; color: var(--gold); font-family: var(--font-mono); font-size: 0.84rem; }
.article-empty { margin-top: 40px; padding: 32px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.article-empty h2 { font-size: 1.2rem; margin-bottom: 8px; }
.article-empty p { color: var(--text-muted); margin: 0; }

.article-page { padding-bottom: 80px; }
.article-hero { padding: 76px 0 40px; background: radial-gradient(circle at 50% 0, rgba(0, 76, 173, 0.2), transparent 68%); }
.article-container { max-width: 820px; }
.article-hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.035em; margin: 14px 0 20px; }
.article-deck { max-width: 68ch; color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.24rem); line-height: 1.65; margin-bottom: 22px; }
.article-featured-image { margin: 20px 0 44px; }
.article-featured-image img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius); }
.article-content { color: var(--text-muted); font-size: 1.05rem; line-height: 1.82; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--text); scroll-margin-top: 90px; }
.article-content h2 { font-size: 1.7rem; line-height: 1.25; margin: 2.6em 0 0.7em; padding-top: 0.6em; border-top: 1px solid var(--border); }
.article-content h3 { font-size: 1.28rem; margin: 2em 0 0.6em; }
.article-content h4 { font-size: 1.05rem; margin: 1.8em 0 0.5em; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote, .article-content pre { margin: 0 0 1.3em; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin-bottom: 0.45em; }
.article-content strong { color: var(--text); }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { border-left: 3px solid var(--gold); padding: 2px 0 2px 22px; color: var(--text); }
.article-content code { font-family: var(--font-mono); font-size: 0.88em; color: var(--text); background: #041229; border-radius: 4px; padding: 0.14em 0.34em; }
.article-content pre { overflow-x: auto; padding: 18px 20px; background: #041229; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.article-content pre code { padding: 0; background: none; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.article-content th, .article-content td { padding: 10px 12px; text-align: left; border: 1px solid var(--border); }
.article-back { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); }
.article-html-editor { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.6; tab-size: 2; }
.article-agent { max-width: 720px; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.8rem; }

/* ===== Footer ============================================================= */
.site-footer {
	border-top: 1px solid var(--border);
	background: #00040f;
	padding: 56px 0 40px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(4, 1fr);
	gap: 36px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin: 14px 0 0; max-width: 32ch; }
.footer-contact {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}
.footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 0.86rem;
}
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { flex: none; }
.footer-col h4 {
	font-family: var(--font-mono);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gold);
	margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	justify-content: space-between;
	align-items: center;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 0.85rem;
	font-family: var(--font-mono);
}

/* ===== Admin ============================================================== */
.admin-nav {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 28px 0 0;
}
.admin-nav-card {
	display: block;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
	border-radius: var(--radius);
	padding: 20px 22px;
	transition: border-color 0.2s ease, transform 0.15s ease;
}
.admin-nav-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.admin-nav-title { display: block; font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.admin-nav-desc { display: block; color: var(--text-muted); font-size: 0.9rem; }

.admin-form { margin: 24px 0 12px; }
.admin-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	margin-bottom: 16px;
}
.admin-field { display: flex; flex-direction: column; min-width: 0; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-optional { color: var(--text-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.admin-table-wrap { overflow-x: auto; margin-top: 26px; }
.admin-table-wrap .admin-table { margin-top: 0; }
.admin-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 8px;
}
.admin-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-input {
	width: 100%;
	min-width: 0;
	font-family: var(--font-mono);
	font-size: 0.92rem;
	color: var(--text);
	background: #041229;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: 11px 14px;
}
.admin-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.25); }

.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.admin-table th, .admin-table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 0.92rem;
}
.admin-table thead th {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	background: var(--bg-elevated);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table code { color: var(--gold); font-family: var(--font-mono); }
.admin-muted { color: var(--text-dim); font-size: 0.86rem; }
.admin-actions-col { width: 1%; white-space: nowrap; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-actions form { margin: 0; }
.btn-danger { color: #ff9a90; border-color: #5c2b2b; }
.btn-danger:hover { color: #fff; border-color: #ff5f57; background: rgba(255, 95, 87, 0.12); }

.alert {
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	margin: 20px 0;
	font-size: 0.94rem;
	border: 1px solid var(--border-strong);
}
.alert-success { color: #b6f0c2; background: rgba(40, 200, 64, 0.1); border-color: rgba(40, 200, 64, 0.4); }
.alert-error { color: #ffc2bd; background: rgba(255, 95, 87, 0.1); border-color: rgba(255, 95, 87, 0.45); }

/* ===== Login ============================================================== */
.login-card {
	max-width: 420px;
	margin: 24px auto;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));
	border-radius: var(--radius);
	padding: 32px 30px;
}
.login-card h1 { font-size: 1.6rem; margin-bottom: 20px; }
.login-card .admin-form { margin: 0; }

/* ===== Error page ========================================================= */
.error-page { padding: 32px 0; }
.error-code {
	font-family: var(--font-mono);
	font-size: clamp(3.5rem, 12vw, 6rem);
	line-height: 1;
	background: linear-gradient(100deg, var(--gold-bright) 10%, var(--amber) 92%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--gold);
	margin-bottom: 8px;
}
.error-title { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--text); margin-bottom: 14px; }
.error-page .hero-cta { margin-top: 24px; }

/* ===== Responsive ========================================================= */
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-sub { max-width: none; }
	.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature,
	.feature:nth-child(1),
	.feature:nth-child(4) { grid-column: span 1; }
	.plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Stacked: the tabs become one scrolling row above the panel. */
	.plugin-tabs { grid-template-columns: minmax(0, 1fr); }
	.plugin-tablist {
		flex-direction: row;
		contain: none;
		overflow-x: auto;
		overflow-y: hidden;
	}
	.plugin-tab { flex: none; }
	.plugin-tab-kind { display: none; }
	.ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lineage-grid { grid-template-columns: 1fr; gap: 32px; }
	.dl-detail-grid { grid-template-columns: 1fr; gap: 36px; }
	.article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	section { padding: 60px 0; }
	.hero { padding: 48px 0; }
	/* A phone keeps the way around and the download; the brand shrinks to its mark. */
	.nav { gap: 14px; }
	.brand > span { display: none; }
	.nav-links { gap: 16px; }
	.nav-links .nav-wide { display: none; }
	.footer-col li { margin-bottom: 0; }
	.footer-col a { display: inline-block; padding: 10px 0; }
	.footer-contact a { padding: 10px 0; }
	.feature-grid { grid-template-columns: 1fr; }
	.feature,
	.feature:nth-child(1),
	.feature:nth-child(4) { grid-column: span 1; }
	.plugin-grid { grid-template-columns: 1fr; }
	.ai-grid,
	.ai-keys ul { grid-template-columns: 1fr; }
	.ai-keys li { align-items: flex-start; }
	.article-grid { grid-template-columns: 1fr; }
	.platform-row { grid-template-columns: 1fr; }
	.dl-detail-grid { grid-template-columns: 1fr; gap: 32px; }
	.dl-buttons { flex-direction: column; align-items: stretch; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.container { padding: 0 18px; }
	.hero-cta .btn { flex: 1 1 auto; }
}

/* Legal pages (privacy notice, website terms) — shared by everything in templates/legal */
.legal-section { padding: 2.5rem 0 4.5rem; }
.legal { max-width: 820px; }
.legal h1 { font-size: 2rem; margin: 0.35rem 0 0.5rem; }
.legal h2 {
	font-size: 1.25rem;
	margin: 2.5rem 0 0.85rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
}
.legal h3 { font-size: 1rem; margin: 1.75rem 0 0.6rem; color: var(--gold); }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; }
.legal p { margin-bottom: 0.9rem; }
.legal ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--text); }
.legal code { font-family: var(--font-mono); font-size: 0.88em; color: var(--text); }
.legal abbr { text-decoration: none; border-bottom: 1px dotted var(--text-dim); }
.legal-dates { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
.legal .admin-table-wrap { margin: 1rem 0 1.4rem; }
.legal .admin-table { margin-top: 0; }
.legal .admin-table td { color: var(--text-muted); vertical-align: top; }

/* ===== Landing page v2 ====================================================
   Centred hero over a framed intro video, a capability ticker, a gallery
   section for the screenshot carousel and fade-in-on-scroll. Everything here
   is landing-page only; the shared pieces above are untouched. */
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 10px; }
.grad {
	background: linear-gradient(100deg, var(--gold-bright) 10%, var(--amber) 92%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--gold);
}

.hero-v2 { padding: 96px 0 40px; }
.hero-aurora {
	position: absolute;
	inset: -20% -10% auto;
	height: 720px;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(40% 50% at 30% 40%, rgba(47, 107, 208, 0.45), transparent 70%),
		radial-gradient(35% 45% at 72% 35%, rgba(245, 197, 24, 0.18), transparent 70%),
		radial-gradient(30% 40% at 50% 70%, rgba(11, 58, 134, 0.55), transparent 70%);
	filter: blur(40px);
	animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
	100% { transform: translate3d(-3%, 2%, 0) scale(1); }
}
.hero-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hero-v2 .hero-pill { gap: 10px; padding: 5px 14px 5px 5px; font-size: 0.8rem; }
.hero-pill-new {
	font-weight: 700;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--navy-950);
	background: linear-gradient(135deg, var(--gold-bright), var(--amber));
	border-radius: 4px;
	padding: 3px 9px;
}
.hero-v2 h1 {
	font-size: clamp(2.5rem, 7vw, 5rem);
	letter-spacing: -0.045em;
	line-height: 1.02;
	max-width: 16ch;
	margin-bottom: 24px;
}
.hero-v2 h1 .grad { display: block; filter: drop-shadow(0 0 32px rgba(245, 197, 24, 0.28)); }
.hero-v2 .hero-sub { max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin-bottom: 34px; }
.hero-v2 .hero-cta { justify-content: center; }

/* One line of facts under the hero buttons. */
.hero-trust {
	margin: 22px 0 0;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}

/* The features page: a head with jump links, then one group per section. */
.features-head { padding: 56px 0 8px; }
.features-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.35rem 0 0.6rem; }
.features-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.features-jump a {
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 6px 14px;
	font-size: 0.9rem;
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.features-jump a:hover { border-color: var(--gold); }
.features-group { padding: 56px 0; scroll-margin-top: 72px; }
.features-group + .features-group { border-top: 1px solid var(--border); }

/* The closing call to action: one button, centred, to the download page. */
.cta-end { padding: 24px 0 96px; text-align: center; }

/* The three pillars under the hero: three columns, no boxes, each a heading,
   a line of promise and three proof points. One column below 900px. */
.pillars-section { padding-top: 64px; }
.pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
}
.pillar h3 { font-size: 1.4rem; margin: 18px 0 10px; color: var(--text); }
.pillar > p { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.6; color: #c9d7f2; }
.pillar .feature-icon {
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(0, 44, 115, 0.95), rgba(11, 58, 134, 0.42));
	border: 1px solid rgba(166, 187, 228, 0.24);
	color: var(--gold);
	font-size: 1.2rem;
}
.pillar-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pillar-proof li { position: relative; padding-left: 26px; font-size: 0.98rem; line-height: 1.5; color: var(--text-muted); }
.pillar-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.pillars .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars .reveal:nth-child(3) { transition-delay: 0.16s; }
.pillars-more { margin: 48px 0 0; text-align: center; font-size: 1.02rem; }
@media (max-width: 900px) {
	.pillars { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }
}

/* The "no AI keys" band between the hero and the pillars: one gold-edged card,
   an icon beside the copy, so the promise is seen before anything else. The
   icon goes above the copy below 760px. */
.nokeys-section { padding-top: 56px; }
.nokeys {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 36px;
	border-radius: var(--radius);
	background: linear-gradient(145deg, rgba(10, 31, 69, 0.92), rgba(6, 22, 51, 0.7));
	border: 1px solid rgba(245, 197, 24, 0.45);
	box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.08), 0 18px 48px rgba(0, 0, 0, 0.35);
}
.nokeys-icon {
	flex: none;
	width: 64px; height: 64px;
	display: grid; place-items: center;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(245, 197, 24, 0.22), rgba(232, 162, 0, 0.08));
	border: 1px solid rgba(245, 197, 24, 0.4);
	font-size: 1.8rem;
}
.nokeys-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; }
.nokeys-copy h2 .grad { display: inline; }
.nokeys-copy > p { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.6; color: #c9d7f2; }
.nokeys-proof { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 28px; }
@media (max-width: 760px) {
	.nokeys { flex-direction: column; gap: 18px; padding: 26px 22px; }
	.nokeys-proof { grid-template-columns: 1fr; }
}

/* The feature list under the hero: two columns of icon, title and a line or
   two, no boxes, set large enough to read at a glance. One column on phones. */
.feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 64px;
}
.feature-list li {
	display: grid;
	grid-template-columns: 48px 1fr;
	column-gap: 18px;
	align-items: start;
}
.feature-list .feature-icon {
	grid-row: span 2;
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(0, 44, 115, 0.95), rgba(11, 58, 134, 0.42));
	border: 1px solid rgba(166, 187, 228, 0.24);
	color: var(--gold);
	font-size: 1.2rem;
}
.feature-list h3 { font-size: 1.25rem; margin: 2px 0 8px; color: var(--text); }
.feature-list p {
	margin: 0;
	max-width: 52ch;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #c9d7f2;
}
.feature-list .reveal:nth-child(even) { transition-delay: 0.08s; }
@media (max-width: 760px) {
	.feature-list { grid-template-columns: 1fr; gap: 32px; }
}

/* The intro video in a window frame, tilted back slightly and straightened as
   it fades in. The glow behind it is a blurred copy of the brand gradient. */
.hero-video {
	position: relative;
	z-index: 1;
	max-width: 1040px;
	margin: 64px auto 0;
	border-radius: 18px;
	padding: 1px;
	background: linear-gradient(140deg, rgba(245, 197, 24, 0.7), rgba(35, 81, 150, 0.6) 35%, rgba(35, 81, 150, 0.3) 70%, rgba(245, 197, 24, 0.5));
	box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), 0 0 120px -30px rgba(47, 107, 208, 0.8);
}
.hero-video::before {
	content: "";
	position: absolute;
	inset: 8% 6% -6%;
	z-index: -1;
	background: linear-gradient(90deg, rgba(47, 107, 208, 0.7), rgba(245, 197, 24, 0.45));
	filter: blur(70px);
	opacity: 0.55;
}
.hero-video-chrome {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px;
	background: #03102a;
	border-radius: 17px 17px 0 0;
	border-bottom: 1px solid var(--border);
}
.hero-video-chrome span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hero-video-chrome span:nth-child(2) { background: #febc2e; }
.hero-video-chrome span:nth-child(3) { background: #28c840; }
.hero-video-chrome em {
	flex: 1;
	text-align: center;
	margin-right: 47px;
	font-style: normal;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-dim);
}
.hero-video-frame { position: relative; background: #020b1f; border-radius: 0 0 17px 17px; overflow: hidden; }
.hero-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #020b1f; }
.hero-video-sound {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid rgba(245, 197, 24, 0.55);
	border-radius: 4px;
	background: rgba(0, 7, 31, 0.72);
	backdrop-filter: blur(8px);
	color: var(--gold);
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 0.82rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.hero-video-sound:hover { background: rgba(245, 197, 24, 0.16); transform: translateY(-1px); box-shadow: 0 0 24px rgba(245, 197, 24, 0.35); }
.hero-video-sound:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero-video-sound[hidden] { display: none; }
.js .hero-video.reveal { transform: perspective(1400px) rotateX(10deg) translateY(40px) scale(0.96); }
.js .hero-video.reveal.is-in { transform: none; }

/* The teaser: once the script has taken the controls away, the whole frame is
   the way into the full-screen film. */
.hero-video.is-teaser .hero-video-frame { cursor: pointer; }
.hero-video.is-teaser .hero-video-frame:hover video { filter: brightness(1.08); }

/* The film, full screen: a touch taller than a screenshot gets, there is no caption. */
.lightbox-video video { width: min(96vw, calc(88vh * 16 / 9)); max-height: 88vh; aspect-ratio: 16 / 9; }

/* Copy beside the video on a wide screen. Below the breakpoint the hero stays
   stacked and centred, the video under the copy. */
@media (min-width: 1100px) {
	.hero-split {
		display: grid;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: 56px;
		align-items: center;
	}
	.hero-split .hero-copy { align-items: flex-start; text-align: left; }
	.hero-split .hero-copy h1 { font-size: clamp(2.4rem, 3.4vw, 3.3rem); max-width: none; }
	.hero-split .hero-sub { max-width: 44ch; }
	.hero-split .hero-cta { justify-content: flex-start; }
	.hero-split .hero-video { margin: 0; max-width: none; }
	.js .hero-split .hero-video.reveal { transform: perspective(1400px) rotateY(-8deg) translateX(30px) scale(0.96); }
	.js .hero-split .hero-video.reveal.is-in { transform: none; }
}

/* Capability ticker: one long row, scrolled by half its width so the second
   copy lands exactly where the first began. */
.ticker {
	overflow: hidden;
	padding: 18px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: rgba(3, 16, 42, 0.6);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
	display: flex;
	width: max-content;
	animation: ticker 40s linear infinite;
}
.ticker span {
	flex: none;
	padding: 0 26px;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--text-muted);
	white-space: nowrap;
}
.ticker span::after { content: "◆"; margin-left: 52px; font-size: 0.55rem; color: var(--gold); vertical-align: middle; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 .grad, .lineage h2 .grad { display: inline; }

.tour-visual { max-width: 980px; margin: 0 auto; }

.get { background: radial-gradient(60% 60% at 50% 0, rgba(245, 197, 24, 0.08), transparent 70%); border-top: 1px solid var(--border); }
.get .platform { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease; }
.get .platform:hover { transform: translateY(-4px); border-color: rgba(245, 197, 24, 0.6); box-shadow: 0 0 32px -16px rgba(245, 197, 24, 0.7); }

/* Fade up once on first sight. Only with scripting on (the html.js class), so
   nothing is ever left invisible. */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2), .ai-grid .reveal:nth-child(2), .platform-row .reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .reveal:nth-child(3), .ai-grid .reveal:nth-child(3), .platform-row .reveal:nth-child(3) { transition-delay: 0.16s; }
.ai-grid .reveal:nth-child(5) { transition-delay: 0.08s; }
.ai-grid .reveal:nth-child(6) { transition-delay: 0.16s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.08s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.24s; }
/* The feature card's own hover lift must win over the settled reveal state. */
.js .feature.reveal.is-in:hover { transform: translateY(-5px); }

@media (max-width: 640px) {
	.hero-v2 { padding: 56px 0 24px; }
	.hero-video { margin-top: 40px; }
	.hero-video-chrome em { display: none; }
	.hero-video-sound { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 0.76rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

/* ===== Plugin marketplace =================================================
   The catalogue reuses the landing page's .plugin card so a plugin looks the
   same wherever it is shown; everything below is the listing chrome around it
   and the per-plugin detail page. */

/* Visible to a screen reader, not on screen. Used for the labels on the search
   controls, which are identified by their placeholder and position visually. */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.plugin-catalogue { padding: 56px 0 80px; }
.plugin-catalogue h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.35rem 0 0.6rem; }
/* The plugin showcase leads the catalogue's front page; the grid follows it. */
.plugin-catalogue .plugin-tabs { margin-top: 36px; }
.plugin-catalogue-all { margin: 64px 0 20px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

.plugin-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 28px 0 10px;
}
.plugin-search-input {
	flex: 1 1 320px;
	min-width: 0;
	padding: 11px 14px;
	color: var(--text);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
}
.plugin-search-input::placeholder { color: var(--text-dim); }
.plugin-search-input:focus-visible,
.plugin-search-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.plugin-search-select {
	padding: 11px 14px;
	color: var(--text);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.9rem;
}
.plugin-search-clear { font-size: 0.86rem; color: var(--text-dim); }
.plugin-search-clear:hover { color: var(--gold); }

.plugin-result-count {
	margin: 0 0 22px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-dim);
}
.plugin-result-count strong { color: var(--text); }

/* Pushed below the format chips, which are themselves pushed to the card
   bottom, so the version line is the last thing in every card. */
.plugin-meta {
	margin: 12px 0 0 !important;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-dim);
}
.plugin-chip-community { color: var(--gold); border-color: var(--gold) !important; }
.plugin-chip-advisory { color: #ffb4a2; border-color: #a4462f !important; }

.plugin-empty { padding: 48px 0; text-align: center; }
.plugin-empty h2 { font-size: 1.3rem; margin-bottom: 10px; }
.plugin-empty p { color: var(--text-muted); }

.plugin-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
	font-family: var(--font-mono);
	font-size: 0.84rem;
}
.plugin-pagination-position { color: var(--text-dim); }

/* ----- Detail page ------------------------------------------------------- */
.plugin-page { padding-bottom: 80px; }
.plugin-container { max-width: 860px; }
.plugin-hero { padding: 48px 0 8px; }
.plugin-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0.3rem 0 0.6rem; }
.plugin-deck { color: var(--text-muted); font-size: 1.08rem; line-height: 1.65; margin: 0 0 18px; }
.plugin-facts {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--text-dim);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
}
.plugin-facts strong { color: var(--text); }
.plugin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plugin-unavailable { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
.plugin-install { margin: 18px 0 0; font-size: 0.86rem; color: var(--text-dim); }
.plugin-install kbd {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1px 6px;
}

.plugin-section { margin-top: 52px; }
.plugin-section > h2 {
	font-size: 1.35rem;
	margin: 0 0 6px;
	padding-top: 1.1rem;
	border-top: 1px solid var(--border);
}
.plugin-section-sub { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 20px; }

.plugin-advisory {
	margin-top: 32px;
	padding: 18px 20px;
	border: 1px solid #a4462f;
	border-left-width: 3px;
	border-radius: var(--radius-sm);
	background: rgba(164, 70, 47, 0.12);
}
.plugin-advisory h2 { font-size: 1rem; margin: 0 0 8px; color: #ffb4a2; border: 0; padding: 0; }
.plugin-advisory p { margin: 0 0 6px; color: var(--text-muted); font-size: 0.9rem; }
.plugin-advisory p:last-child { margin-bottom: 0; }

.plugin-components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plugin-component {
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	border-radius: var(--radius-sm);
	padding: 18px;
}
.plugin-component h3 { font-size: 0.98rem; margin: 0 0 6px; }
.plugin-component p { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 12px; line-height: 1.6; }
.plugin-component-id code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.plugin-component .plugin-formats { margin-top: 0; }

/* The README is third-party prose reusing the article typography. Its own H1 is
   demoted visually: the page already has one, and two would misread the page. */
.plugin-readme { font-size: 1rem; }
.plugin-readme h1 { font-size: 1.28rem; margin: 2em 0 0.6em; border-top: 0; padding-top: 0; }
.plugin-readme > :first-child { margin-top: 0; }
.plugin-readme img { max-width: 100%; height: auto; }

.plugin-table-wrap { overflow-x: auto; }
.plugin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.plugin-table th, .plugin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.plugin-table th { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); font-weight: 400; }
.plugin-table td { color: var(--text-muted); }
.plugin-table td:first-child { font-family: var(--font-mono); color: var(--text); }

.plugin-details { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; font-size: 0.9rem; }
.plugin-details dt { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }
.plugin-details dd { margin: 0; color: var(--text-muted); }
.plugin-details code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }
.plugin-digest { overflow-wrap: anywhere; font-size: 0.74rem !important; }

.plugin-back { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); }

@media (max-width: 640px) {
	.plugin-components { grid-template-columns: 1fr; }
	.plugin-details { grid-template-columns: 1fr; gap: 4px 0; }
	.plugin-details dd { margin-bottom: 12px; }
	.plugin-search-input { flex-basis: 100%; }
}


/* ===== Release history ================================================== */
/* One column of releases, newest first. The version is the anchor a reader
   cites, so it is the visually dominant element of each entry and carries a
   self-link; the editorial title sits under it as the subordinate line. */
.release-history .hero-sub { margin-bottom: 44px; }

.release-list { list-style: none; margin: 0; padding: 0; }
.release-entry {
	padding: 30px 0 34px;
	border-top: 1px solid var(--border);
	/* Anchored navigation lands below the sticky header rather than under it. */
	scroll-margin-top: 90px;
}
.release-entry:first-child { border-top: 0; padding-top: 0; }

.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.release-version { font-family: var(--font-mono); font-size: 1.5rem; margin: 0; }
.release-version a { color: var(--gold); }
.release-badge {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	border-radius: 4px;
	padding: 3px 9px;
	vertical-align: middle;
}
/* A plugin's entry leads with its name, so the feed reads "AI Projects v1.4.0". */
.release-product { font-family: var(--font-sans); font-weight: 600; color: var(--text); }
.release-badge-plugin {
	color: var(--text-muted);
	background: transparent;
	border: 1px solid var(--border-strong);
}
.release-meta { margin: 0; margin-left: auto; color: var(--text-dim); font-size: 0.86rem; }

.release-title { font-size: 1.16rem; margin: 14px 0 0; color: var(--text); }
.release-summary { margin: 8px 0 0; color: var(--text-muted); line-height: 1.7; }

.release-title a { color: inherit; text-decoration: none; }
.release-title a:hover { color: var(--gold); text-decoration: underline; }

.release-page h1.release-version { font-size: 2.2rem; color: var(--gold); }
.release-page .release-meta { margin: 6px 0 0; }
.release-page .release-title { font-size: 1.5rem; }
.release-gallery { display: grid; gap: 18px; margin-top: 26px; }
.release-shot {
	display: block;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
}
.release-shot img,
.release-shot video { display: block; width: 100%; height: auto; }
.release-shot-video,
.release-image-video { position: relative; }
.release-image video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A play badge, so a clip reads as a video rather than a still screenshot. */
.release-play {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: rgba(2, 12, 34, 0.82);
	pointer-events: none;
}
.release-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent var(--gold);
}
.release-image .release-play { right: 6px; bottom: 6px; width: 26px; height: 26px; }
.release-image .release-play::before { border-width: 5px 0 5px 8px; }
.release-page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.release-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.release-image {
	display: block;
	width: 168px;
	max-width: 100%;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
}
.release-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.release-image-default { width: 96px; aspect-ratio: 1; border: 0; }
.release-image-default img { object-fit: contain; }

/* Note bodies reuse the article typography, but a changelog is a dense list of
   short items rather than an essay: the headings inside one are section labels
   (Added, Fixed), not page-level headings, so they lose the rule above them. */
.release-body { margin-top: 18px; font-size: 0.98rem; line-height: 1.72; }
.release-body h2, .release-body h3, .release-body h4 {
	font-size: 0.78rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--text-dim);
	border-top: 0;
	padding-top: 0;
	margin: 1.7em 0 0.6em;
}
.release-body > :first-child { margin-top: 0; }
.release-body img { max-width: 100%; height: auto; }

@media (max-width: 640px) {
	.release-meta { margin-left: 0; width: 100%; }
	.release-version { font-size: 1.3rem; }
}

/* ===== Documentation (/docs) ============================================== */
.docs-head { padding: 64px 0 18px; }
.docs-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 16px; }
.docs-lede { max-width: 68ch; color: var(--text-muted); font-size: 1.06rem; line-height: 1.7; margin: 0 0 12px; }
.docs-lede strong { color: var(--text); }
.docs-meta { max-width: 68ch; color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; margin: 0; }

.docs-body { padding: 24px 0 72px; }
/* Contents beside the reference at desk width, above it on a phone. The column is
   narrow on purpose: it is a map of the page, not a second navigation bar. */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }

.docs-toc { position: sticky; top: 84px; }
.docs-toc-title {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin: 0 0 12px;
}
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-toc li { margin: 0; }
.docs-toc a {
	display: block;
	padding: 7px 0 7px 14px;
	margin-left: -1px;
	border-left: 1px solid transparent;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}
.docs-toc a:hover { color: var(--gold); border-left-color: var(--gold); }

.docs-content { min-width: 0; max-width: 78ch; }
/* Anchored sections land below the sticky header rather than under it. */
/* No top padding: the site-wide section rule's 84px would drop the first section below the contents. */
.docs-section { scroll-margin-top: 90px; padding: 0 0 8px; }
.docs-section + .docs-section { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--border); }
.docs-section h2 { font-size: 1.55rem; margin: 0 0 14px; }
.docs-section h3 { font-size: 1.02rem; margin: 32px 0 12px; color: var(--text); }
.docs-section p { color: var(--text-muted); line-height: 1.72; margin: 0 0 14px; }
.docs-section code {
	font-family: var(--font-mono);
	font-size: 0.86em;
	color: var(--text);
	background: #041229;
	border-radius: 4px;
	padding: 0.14em 0.34em;
}
.docs-list { margin: 0 0 14px; padding-left: 1.2rem; }
.docs-list li { color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.docs-list strong, .docs-section p strong { color: var(--text); }

/* A wide row of keys must scroll inside its own box; the page never does. */
.docs-table {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	margin: 0 0 18px;
}
.docs-table table { width: 100%; border-collapse: collapse; }
.docs-table th, .docs-table td {
	text-align: left;
	padding: 11px 16px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.docs-table tbody tr:last-child th, .docs-table tbody tr:last-child td { border-bottom: none; }
.docs-table th {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
}
.docs-table td { color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }
.docs-table td:first-child { color: var(--text); }
.docs-table kbd { white-space: nowrap; }
/* The second-choice chord, under the keys it stands in for. */
.docs-alt { display: block; margin-top: 6px; color: var(--text-dim); font-size: 0.8rem; }
.docs-none { color: var(--text-dim); }

.docs-callout {
	border: 1px solid var(--border-strong);
	border-left: 3px solid var(--gold);
	border-radius: var(--radius);
	background: var(--bg-panel);
	padding: 20px 22px;
	margin: 0 0 20px;
}
.docs-callout p:last-child { margin-bottom: 0; }
.docs-callout-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.docs-callout-keys kbd { font-size: 0.86rem; padding: 5px 11px; }
.docs-callout-mac { color: var(--text-dim); font-size: 0.82rem; }

.docs-note { color: var(--text-dim) !important; font-size: 0.9rem; }
.docs-foot {
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 0.92rem;
	line-height: 1.7;
}

@media (max-width: 900px) {
	.docs-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.docs-toc { position: static; }
	.docs-toc ul { display: flex; flex-wrap: wrap; gap: 4px 0; border-left: 0; }
	.docs-toc a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; margin: 0 6px 0 0; font-size: 0.84rem; }
	.docs-toc a:hover { border-color: var(--gold); }
}

/* The keymap's last row is a link on to /docs, not a shortcut. */
.keymap-more { justify-content: flex-end; padding-top: 14px; }
.keymap-more a { font-size: 0.86rem; }

/* ===== Documentation: section switcher, code, plugin guide ================ */
/* Two pages is not enough for a sidebar, and one link would not read as a
   section; a row of tabs under the title says where you are and what else
   there is. */
.docs-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.docs-switch a {
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text-muted);
	font-size: 0.86rem;
}
.docs-switch a:hover { color: var(--gold); border-color: var(--gold); }
.docs-switch a[aria-current="page"] {
	color: var(--gold);
	border-color: var(--border-strong);
	background: rgba(245, 197, 24, 0.08);
}

.docs-code {
	overflow-x: auto;
	margin: 0 0 18px;
	padding: 16px 18px;
	background: #041229;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.84rem;
	line-height: 1.65;
}
.docs-code code { font-family: var(--font-mono); color: var(--text); background: none; padding: 0; }

/* One card per plugin interface: they are alternatives, so they read better
   stacked and boxed than as three more headings in the flow. */
.docs-kinds { display: grid; gap: 16px; margin: 0 0 18px; }
.docs-kind {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elevated);
	padding: 20px 22px;
}
.docs-kind h3 { margin: 0 0 6px; font-size: 0.98rem; }
.docs-kind h3 code { background: none; padding: 0; color: var(--gold); font-size: 1em; }
.docs-kind-what { color: var(--text) !important; margin: 0 0 12px !important; }
.docs-kind .docs-list { margin-bottom: 0; }
.docs-kind .docs-list li { font-size: 0.94rem; margin-bottom: 8px; }
.docs-kind-note { color: var(--text-dim); font-weight: 400; font-size: 0.82rem; margin-left: 8px; }

.docs-steps { margin: 0 0 16px; padding-left: 1.3rem; }
.docs-steps li { color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }

/* Repository rows: the address leads, because that is what a reader is here to
   copy, and what it demonstrates sits under it as a full line rather than
   competing with it for the same one. */
.docs-repos { list-style: none; margin: 0 0 20px; padding: 0; }
.docs-repos li { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.docs-repos li:last-child { border-bottom: none; }
.docs-repo-name { display: inline-block; font-family: var(--font-mono); font-size: 0.88rem; }
.docs-repo-desc {
	display: block;
	margin-top: 5px;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}
.docs-repo-desc code, .docs-repo-desc kbd { font-size: 0.84em; }

.docs-foot + .docs-foot-tight { margin-top: 18px; padding-top: 0; border-top: 0; }

/* ===== Finish ==============================================================
   One look for the whole site: the landing page's Night Owl navy, bold sans
   headings, and flat panels with hard edges, the way the app draws its own.
   No glows, no glass, no gradient text: the screenshots carry the colour.
   Everything below is scoped to body:not(.home), so the landing page keeps
   its own styles; the footer is the one shared piece. */
:root {
	--bg: #011627;
	--bg-elevated: #05203a;
	--bg-panel: #072641;
	--border: rgba(157, 176, 200, 0.15);
	--border-strong: rgba(157, 176, 200, 0.28);
	--gold: #ffcc33;
	--gold-bright: #ffdb66;
	--amber: #f5a623;
	--violet: #9683e2;
	--text: #e9eff8;
	--text-muted: #a3b6cf;
	--text-dim: #6f86a3;
}

body:not(.home) {
	background-color: var(--bg);
	background-image: none;
	overflow-x: clip;
}

/* ----- Type: the landing page's bold sans, mono kept for code and labels --- */
body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3 { font-family: var(--font-sans); letter-spacing: -0.02em; }
body:not(.home) h1, body:not(.home) h2 { font-weight: 800; }
body:not(.home) h3 { font-weight: 700; letter-spacing: -0.01em; }
body:not(.home) main > section:first-child h1 {
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	line-height: 1.06;
	margin: 18px 0 14px;
	color: #fff;
}
body:not(.home) .section-head h2,
body:not(.home) .features-group h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; }
/* Once a gradient word; now the heading reads as one line. */
.grad {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: inherit;
	filter: none;
}
body:not(.home) .release-version,
body:not(.home) .error-code { font-family: var(--font-mono); }

/* The eyebrow: a plain mono label, as the app labels its panels. */
body:not(.home) .eyebrow {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gold);
	font-family: var(--font-mono);
	font-size: 0.76rem;
	letter-spacing: 0.08em;
}

/* ----- Buttons: square-ish and solid ------------------------------------- */
.btn {
	font-family: var(--font-sans);
	font-weight: 700;
	border-radius: 6px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
	background: var(--gold);
	color: #1a1300 !important;
	border-color: transparent;
	box-shadow: none;
}
.btn-primary:hover { background: var(--gold-bright); }
.btn-ghost {
	background: transparent;
	border: 1px solid var(--border-strong);
	color: var(--text) !important;
}
.btn-ghost:hover { border-color: var(--text-muted); }
.btn .dl-ext { opacity: 0.7; font-family: var(--font-mono); font-weight: 600; }
.site-header .nav-links .btn { border-radius: 6px; }

/* ----- Panels ------------------------------------------------------------ */
body:not(.home) .feature-list li,
body:not(.home) .plugin,
body:not(.home) .dl-platform,
body:not(.home) .fb-card,
body:not(.home) .plugin-tabs,
body:not(.home) .docs-table,
body:not(.home) .dl-detail-grid > div {
	position: relative;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: none;
}
body:not(.home) .feature-list li,
body:not(.home) .plugin { transition: border-color 0.15s ease; }
body:not(.home) .feature-list li:hover,
body:not(.home) .plugin:hover { border-color: var(--border-strong); }

/* ----- Features page ------------------------------------------------------ */
body:not(.home) .feature-list { gap: 14px; }
body:not(.home) .feature-list li { padding: 22px 22px 20px; grid-template-rows: auto 1fr; }
body:not(.home) .feature-list .feature-icon,
.spot-copy .feature-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	font-size: 1.05rem;
	color: var(--gold);
	background: var(--bg-panel);
	border: 1px solid var(--border-strong);
	box-shadow: none;
}
body:not(.home) .feature-list h3 { font-size: 1.12rem; }
body:not(.home) .features-group { padding: 80px 0; position: relative; }
body:not(.home) .features-group + .features-group { border-top: 1px solid var(--border); }

/* The spotlight: one row per AI feature, the copy on one side and a crop of
   the app on the other, swapping sides from row to row. One column below 900px,
   the picture under its copy. */
.spot {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: center;
}
.spot + .spot { margin-top: 96px; }
/* The section head is the first child, so the odd children are the even rows. */
.spot:nth-child(odd) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spot:nth-child(odd) .spot-copy { order: 2; }
.spot-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 18px 0 12px; color: var(--text); }
.spot-copy p { margin: 0; max-width: 46ch; font-size: 1.1rem; line-height: 1.65; color: #c9d7f2; }
/* Google's own "Get it on Google Play" artwork, one per site language, cropped to the
   badge and kept unaltered. Used on the home, features and download pages. */
.play-badge { display: inline-block; margin-top: 22px; border-radius: 8px; line-height: 0; }
.play-badge img { display: block; width: auto; height: 52px; }
.play-badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.spot-shot, .spot-phone, .spot-shot picture, .spot-phone picture { display: block; }
/* Each picture opens full size in the lightbox (the script in features.html). */
.spot-shot, .spot-phone { cursor: zoom-in; border-radius: 6px; }
.spot-shot:focus-visible, .spot-phone:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.spot-shot img, .spot-phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--border-strong);
	box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
}
.spot-shot:hover img, .spot-phone:hover img { border-color: var(--text-muted); }
/* The pairing dialog with the phone beside it, a little lower. */
.spot-pair { display: flex; align-items: flex-start; gap: 5%; }
.spot-pair .spot-shot { flex: 0 0 66%; }
.spot-phone { flex: 0 0 29%; margin-top: 12%; }
.spot-phone img { border-radius: 16px; border: 3px solid #1d2b44; }
@media (max-width: 900px) {
	.spot, .spot:nth-child(odd) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.spot:nth-child(odd) .spot-copy { order: 0; }
	.spot + .spot { margin-top: 64px; }
}

/* ----- Download page ------------------------------------------------------ */
body:not(.home) .dl-platform { padding: 30px; }
body:not(.home) .dl-platform-head .glyph {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 6px;
	background: var(--bg-panel);
	border: 1px solid var(--border-strong);
}
body:not(.home) .dl-platform-head h2 { font-size: 1.6rem; }
body:not(.home) .dl-switch-tabs {
	border-radius: 6px;
	padding: 3px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	gap: 3px;
}
body:not(.home) .dl-switch-tabs button { border: 0 !important; border-radius: 4px; padding: 8px 16px; transition: background-color 0.15s ease, color 0.15s ease; }
body:not(.home) .dl-switch-tabs button[aria-pressed="true"] { background: var(--gold); box-shadow: none; }
body:not(.home) .dl-steps h3 { font-family: var(--font-mono); color: var(--gold); }
body:not(.home) .dl-steps ol { counter-reset: step; list-style: none; padding-left: 0; }
body:not(.home) .dl-steps ol > li { counter-increment: step; position: relative; padding-left: 28px; margin-bottom: 10px; }
body:not(.home) .dl-steps ol > li::before {
	content: counter(step) ".";
	position: absolute;
	left: 0;
	top: 0;
	font: 700 0.9rem var(--font-mono);
	color: var(--gold);
}
body:not(.home) .dl-detail { border-top: 0; }
body:not(.home) .dl-detail-grid > div { padding: 28px; }
body:not(.home) .dl-code { background: rgba(0, 10, 22, 0.6); border-color: var(--border); border-radius: 6px; }

/* ----- Plugins page ------------------------------------------------------- */
body:not(.home) .plugin { padding: 22px; }
body:not(.home) .plugin h3 { font-size: 1.05rem; }
body:not(.home) .plugin-tabs { overflow: hidden; }
body:not(.home) .plugin-search-input,
body:not(.home) .plugin-search-select { border-radius: 6px; background: var(--bg-elevated); border-color: var(--border-strong); }

/* ----- Release history: a plain timeline ---------------------------------- */
body:not(.home) .release-list { position: relative; padding-left: 30px; margin-top: 56px; }
body:not(.home) .release-list::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 10px;
	bottom: 0;
	width: 1px;
	background: var(--border-strong);
}
body:not(.home) .release-entry { position: relative; border-top: 0; padding: 0 0 56px; }
body:not(.home) .release-entry::before {
	content: "";
	position: absolute;
	left: -30px;
	top: 10px;
	width: 11px;
	height: 11px;
	background: var(--bg);
	border: 1px solid var(--text-muted);
}
body:not(.home) .release-entry:first-child::before { background: var(--gold); border-color: var(--gold); }
body:not(.home) .release-version { font-size: 1.7rem; }
body:not(.home) .release-title { font-size: 1.35rem; }
/* The placeholder tile says nothing a release needs to say. */
body:not(.home) .release-image-default { display: none; }

/* ----- Keys ---------------------------------------------------------------- */
kbd {
	color: var(--text);
	background: var(--bg-panel);
	border: 1px solid rgba(157, 176, 200, 0.3);
	border-bottom-width: 2px;
	border-radius: 4px;
	box-shadow: none;
}
body:not(.home) .docs-table { overflow: hidden; }

/* ----- Header and footer -------------------------------------------------- */
.site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--border); }
.site-footer { background: #000f1c; border-top: 1px solid var(--border); }
