/* =============================================================================
 *  Nibiru — Cosmos site theme  (v4.0.0)
 *
 *  Source of truth: /design-system/tokens.css (loaded first via customCss).
 *  This file consumes those tokens, layers Starlight overrides, and ships
 *  the splash-page component primitives (.section, .mc-frame, .craft, …).
 *
 *  v4 is dark-first: body lives in space, headlines glow magenta-amber.
 *  Light "paper" surfaces are available inside .section.alt blocks for
 *  documentation-heavy reading.
 * ===========================================================================*/

/* === Legacy aliases — derived from canonical tokens === */
:root {
	--iris:          var(--nibiru-iris);
	--iris-deep:     var(--nibiru-iris-deep);
	--iris-soft:     var(--nibiru-iris-soft);
	--skyfall:       var(--nibiru-skyfall);
	--skyfall-deep:  var(--nibiru-skyfall-deep);
	--skyfall-soft:  var(--nibiru-skyfall-soft);

	--paper:         var(--nibiru-paper);
	--paper-2:       var(--nibiru-paper-2);
	--mist:          var(--nibiru-mist);
	--bg-2:          var(--nibiru-bg-2);
	--lavender:      var(--nibiru-lavender);
	--lavender-deep: var(--nibiru-lavender-deep);
	--line:          var(--nibiru-line);
	--line-2:        var(--nibiru-line-strong);

	--ink:           var(--nibiru-ink);
	--ink-deep:      var(--nibiru-ink-deep);
	--ink-soft:      var(--nibiru-ink-2);
	--ink-faint:     var(--nibiru-ink-faint);

	--aurum:         var(--nibiru-aurum);
	--aurum-soft:    var(--nibiru-aurum-soft);
	--rose:          var(--nibiru-rose);
	--moss:          var(--nibiru-moss);

	/* === Starlight overrides — DARK-FIRST === */
	--sl-color-accent-low:   #1c0f3a;
	--sl-color-accent:       var(--nibiru-nebula-mag);
	--sl-color-accent-high:  var(--nibiru-iris-soft);

	--sl-color-white:        var(--nibiru-star);
	--sl-color-gray-1:       #ece6f3;
	--sl-color-gray-2:       #c5bfd1;
	--sl-color-gray-3:       #9c92ad;
	--sl-color-gray-4:       var(--nibiru-muted);
	--sl-color-gray-5:       #443d5e;
	--sl-color-gray-6:       #2c2548;
	--sl-color-gray-7:       var(--nibiru-night);
	--sl-color-black:        var(--nibiru-void);

	--sl-color-bg:           var(--nibiru-space);
	--sl-color-bg-nav:       rgba(6, 3, 15, 0.72);
	--sl-color-bg-sidebar:   rgba(10, 4, 20, 0.7);
	--sl-color-bg-inline-code: rgba(184, 107, 255, 0.14);

	--sl-color-text:         var(--nibiru-star);
	--sl-color-text-accent:  var(--nibiru-nebula-mag);
	--sl-color-text-invert:  var(--nibiru-ink);

	--sl-color-hairline:        var(--nibiru-line);
	--sl-color-hairline-light:  var(--nibiru-line-strong);
	--sl-color-hairline-shade:  rgba(244, 238, 219, 0.04);

	--sl-shadow-sm: var(--nibiru-shadow-sm);
	--sl-shadow-md: var(--nibiru-shadow-md);
	--sl-shadow-lg: var(--nibiru-shadow-lg);

	/*
	 * Content column width — scales with viewport so 4K screens don't feel
	 * empty. Mockup spec is --content-max: 760px (45rem); we widen it to a
	 * clamp(45rem, 56vw, 75rem) so:
	 *   1440 px viewport →  56vw ≈ 806 px (close to spec)
	 *   1920 px viewport →  56vw ≈ 1075 px
	 *   3840 px viewport →  clamps at 75rem = 1200 px
	 */
	--sl-content-width: clamp(45rem, 56vw, 75rem);
	/* Sidebar width matches mockup --sidebar-w: 280px. */
	--sl-sidebar-width: 280px;

	--sl-text-h1: 2rem;
	--sl-text-h2: 1.5rem;
	--sl-text-h3: 1.18rem;
	--sl-text-h4: 1rem;

	--sl-nav-height: 5rem;
}

@media (max-width: 50rem) {
	:root { --sl-nav-height: 4.4rem; }
}

/* The light theme toggle is now the inverse — same butter paper and ink, kept
 * available for users who really want it. The default site is dark space. */
:root[data-theme='light'] {
	--sl-color-accent-low:   var(--nibiru-paper-2);
	--sl-color-accent:       var(--nibiru-iris-deep);
	--sl-color-accent-high:  var(--nibiru-iris);

	--sl-color-white:        var(--nibiru-ink);
	--sl-color-gray-1:       #2c2438;
	--sl-color-gray-2:       var(--nibiru-ink-2);
	--sl-color-gray-3:       #6a6178;
	--sl-color-gray-4:       var(--nibiru-ink-faint);
	--sl-color-gray-5:       #c5bfd1;
	--sl-color-gray-6:       var(--nibiru-paper-2);
	--sl-color-gray-7:       var(--nibiru-paper);
	--sl-color-black:        var(--nibiru-paper);

	--sl-color-bg:           var(--nibiru-paper);
	--sl-color-bg-nav:       rgba(244, 238, 219, 0.85);
	--sl-color-bg-sidebar:   rgba(244, 238, 219, 0.85);
	--sl-color-bg-inline-code: rgba(184, 107, 255, 0.10);

	--sl-color-text:         var(--nibiru-ink);
	--sl-color-text-accent:  var(--nibiru-iris-deep);
	--sl-color-text-invert:  var(--nibiru-paper);

	--sl-color-hairline:        var(--nibiru-line-light);
	--sl-color-hairline-light:  var(--nibiru-line-2);
	--sl-color-hairline-shade:  rgba(20, 4, 30, 0.04);
}

/* === Document level === */

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--sl-nav-height, 5rem);
	overflow-x: clip;
}

body {
	background-color: var(--nibiru-space);
	background-image:
		radial-gradient(ellipse 70% 50% at 0% 0%,   rgba(184, 107, 255, 0.10), transparent 60%),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(91, 141, 255, 0.07),  transparent 60%);
	background-attachment: fixed;
	color: var(--nibiru-star);
	font-family: var(--font-text);
	font-size: 16px;
	line-height: 1.55;
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:root[data-theme='light'] body {
	background-color: var(--nibiru-paper);
	background-image:
		radial-gradient(circle at 1px 1px, rgba(20, 4, 30, 0.02) 1px, transparent 0);
	background-size: 4px 4px;
	color: var(--nibiru-ink);
}

::selection { background: rgba(184, 107, 255, 0.4); color: var(--nibiru-star); }

a { color: inherit; text-decoration: none; }

/* === Markdown content (docs articles) — DARK by default, LIGHT under .alt === */

.sl-markdown-content {
	font-size: 1rem;
	line-height: 1.65;
	letter-spacing: var(--nibiru-tracking-body);
}

.sl-markdown-content > * + * {
	margin-top: 1.1rem;
}

.sl-markdown-content h1,
.sl-markdown-content h2,
.sl-markdown-content h3,
.sl-markdown-content h4 {
	font-family: var(--font-display);
	color: var(--sl-color-text);
	letter-spacing: var(--nibiru-tracking-heading);
	line-height: 1.10;
	font-weight: 500;
}

.sl-markdown-content h1 {
	font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem);
	margin-top: 0;
	margin-bottom: 0.4em;
	letter-spacing: var(--nibiru-tracking-display);
	font-weight: 400;
}

.sl-markdown-content h2 {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
	margin-top: 3rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--sl-color-hairline);
}

.sl-markdown-content h3 {
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
	margin-top: 2.2rem;
	color: var(--nibiru-iris-soft);
}

.sl-markdown-content h4 {
	font-size: 0.78rem;
	font-weight: 600;
	margin-top: 1.6rem;
	text-transform: uppercase;
	letter-spacing: var(--nibiru-tracking-label);
	color: var(--nibiru-muted);
	font-family: var(--font-mono);
}

.sl-markdown-content p,
.sl-markdown-content li {
	color: rgba(244, 238, 219, 0.85);
	font-weight: 400;
}

:root[data-theme='light'] .sl-markdown-content p,
:root[data-theme='light'] .sl-markdown-content li { color: var(--nibiru-ink); }

.sl-markdown-content strong {
	font-weight: 600;
	color: var(--nibiru-star);
}

:root[data-theme='light'] .sl-markdown-content strong { color: var(--nibiru-ink-deep); }

.sl-markdown-content > h1 + p {
	font-size: 1.10rem;
	line-height: 1.6;
	color: rgba(244, 238, 219, 0.72);
	max-width: 56ch;
}

:root[data-theme='light'] .sl-markdown-content > h1 + p { color: var(--nibiru-ink-2); }

/* === Links === */
.sl-markdown-content a:not([class]) {
	color: var(--nibiru-iris-soft);
	border-bottom: 1px solid rgba(184, 107, 255, 0.4);
	padding-bottom: 1px;
	transition: color 200ms, border-color 200ms;
}
.sl-markdown-content a:not([class]):hover {
	color: var(--nibiru-star);
	border-bottom-color: var(--nibiru-nebula-mag);
}

:root[data-theme='light'] .sl-markdown-content a:not([class]) {
	color: var(--nibiru-iris-deep);
	border-bottom-color: rgba(138, 63, 208, 0.4);
}

/* === Inline code === */
.sl-markdown-content :not(pre) > code {
	font-family: var(--font-mono);
	font-size: 0.86em;
	background: rgba(184, 107, 255, 0.14);
	color: var(--nibiru-iris-soft);
	padding: 0.05em 0.4em;
	border-radius: var(--nibiru-radius-sm);
	border: 1px solid rgba(184, 107, 255, 0.20);
	letter-spacing: var(--nibiru-tracking-mono);
}

:root[data-theme='light'] .sl-markdown-content :not(pre) > code {
	background: rgba(184, 107, 255, 0.10);
	color: var(--nibiru-iris-deep);
}

/* === Code blocks === */
.expressive-code {
	margin: 1.5rem 0;
}
.expressive-code .frame {
	border: 1px solid var(--sl-color-hairline-light);
	border-radius: var(--nibiru-radius-xl);
	background: var(--nibiru-code-bg) !important;
	box-shadow: var(--nibiru-shadow-md);
	overflow: hidden;
}
.expressive-code .frame .header {
	background: transparent;
	border-bottom: 1px solid var(--nibiru-code-line);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: var(--nibiru-tracking-label);
	text-transform: uppercase;
	color: var(--nibiru-code-mute);
}
.expressive-code pre   { background: transparent; padding: 1rem 1.1rem !important; }
.expressive-code code  { font-family: var(--font-mono); font-size: 0.85em; }

/* === Asides / callouts === */
.starlight-aside {
	background: rgba(184, 107, 255, 0.06);
	border: 1px solid var(--sl-color-hairline);
	border-left: 3px solid var(--nibiru-nebula-mag);
	padding: 1rem 1.2rem 1rem 1.4rem;
	border-radius: 0 var(--nibiru-radius-md) var(--nibiru-radius-md) 0;
	margin: 1.6rem 0;
	box-shadow: none;
}
.starlight-aside--note     { border-left-color: var(--nibiru-nebula-mag); }
.starlight-aside--tip      { border-left-color: var(--nibiru-nebula-amber); background: rgba(255, 181, 116, 0.06); }
.starlight-aside--caution  { border-left-color: var(--nibiru-nebula-amber); background: rgba(255, 181, 116, 0.06); }
.starlight-aside--danger   { border-left-color: var(--nibiru-rose); background: rgba(255, 138, 157, 0.06); }
.starlight-aside__title {
	font-family: var(--font-mono);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--nibiru-tracking-label);
	font-size: 0.70rem;
	color: var(--nibiru-muted);
	margin-bottom: 0.45rem;
}
.starlight-aside__title svg { display: none; }

/* === Tables === */
.sl-markdown-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1.4rem 0;
	font-size: 0.92rem;
}
.sl-markdown-content thead { border-bottom: 2px solid var(--sl-color-hairline-light); }
.sl-markdown-content th {
	text-align: left;
	padding: 0.55rem 0.7rem 0.55rem 0;
	font-family: var(--font-mono);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--nibiru-tracking-label);
	font-size: 0.70rem;
	color: var(--nibiru-muted);
}
.sl-markdown-content td {
	padding: 0.55rem 0.7rem 0.55rem 0;
	border-bottom: 1px solid var(--sl-color-hairline);
	vertical-align: top;
}

/* === Blockquote === */
.sl-markdown-content blockquote {
	border-left: 3px solid var(--nibiru-nebula-mag);
	padding-left: 1.2rem;
	margin: 1.5rem 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(244, 238, 219, 0.85);
	max-width: 56ch;
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: var(--nibiru-tracking-heading);
}
:root[data-theme='light'] .sl-markdown-content blockquote { color: var(--nibiru-ink-2); }

/* === HR === */
.sl-markdown-content hr {
	border: 0;
	height: 1px;
	margin: 3rem auto 2rem;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(184, 107, 255, 0.45) 50%,
		transparent 100%
	);
	max-width: 24rem;
}

/* =============================================================================
 *  SPLASH NAV — mockup-faithful header used on splash pages (template: splash)
 *  Replaces Starlight's <Default /> header on the landing only. Other docs
 *  pages keep Starlight's chrome.
 * ===========================================================================*/

header.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 60;
	padding: 18px 0;
	transition: padding 240ms ease,
	            background-color 240ms ease,
	            backdrop-filter 240ms ease,
	            border-color 240ms ease;
}
header.nav.condensed {
	padding: 10px 0;
	background: rgba(6, 3, 15, 0.72);
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border-bottom: 1px solid var(--nibiru-line);
}
header.nav .nav-row {
	/* 3-column grid so the centre column (.nav-links) sits at the true page
	   centre — matches the MMVC progress rail, which is also page-centred. */
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: var(--nibiru-container, 1280px);
	margin: 0 auto;
	padding: 0 32px;
}
header.nav .brand {
	display: flex; align-items: center; gap: 12px;
	min-width: 0;
	text-decoration: none;
	justify-self: start;
}
header.nav .nav-cta {
	justify-self: end;
}
header.nav .brand-mark.nav-logo {
	height: 36px;
	width: auto;
	flex: none;
	display: block;
	object-fit: contain;
	transition: height 240ms ease, filter 240ms ease;
	filter: drop-shadow(0 0 12px rgba(184, 107, 255, 0.35));
}
header.nav.condensed .brand-mark.nav-logo {
	height: 28px;
}

header.nav .brand-name {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 22px;
	letter-spacing: -0.02em;
	color: var(--nibiru-star);
	line-height: 1;
}
header.nav .brand-name em { font-style: normal; font-weight: 300; }
header.nav .brand:hover .brand-mark.nav-logo {
	filter: drop-shadow(0 0 18px rgba(184, 107, 255, 0.65));
}

header.nav .nav-version {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	/* Terminal-status chip: black bg + transparent-white outline + green text */
	color: var(--nibiru-success);
	background: #000;
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--nibiru-radius-pill);
	margin-left: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
}
header.nav .nav-version .dot {
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--nibiru-success);
	box-shadow: 0 0 8px rgba(122, 214, 163, 0.7);
}
header.nav .nav-links {
	/* sits in the centre `auto` column of the 3-col nav-row grid */
	display: flex; gap: 28px; align-items: center;
	justify-content: center;
}
header.nav .nav-links a {
	font-size: 14px;
	color: rgba(244, 238, 219, 0.7);
	transition: color 160ms ease;
	text-decoration: none;
}
header.nav .nav-links a:hover { color: var(--nibiru-star); }
header.nav .nav-cta {
	display: flex; gap: 10px; align-items: center;
	justify-self: end;
}
@media (max-width: 960px) {
	header.nav .nav-links { display: none; }
}

/* =============================================================================
 *  STARLIGHT HEADER — used on every non-splash page
 * ===========================================================================*/

header.header {
	background: var(--sl-color-bg-nav);
	border-bottom: 1px solid var(--sl-color-hairline);
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	transition: padding-block 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
	padding-block: 0.8rem;
}
:root[data-nav-condensed] header.header {
	padding-block: 0.4rem;
	background: rgba(6, 3, 15, 0.92);
	box-shadow: 0 4px 18px -10px rgba(0, 0, 0, 0.5);
}

/* On splash hero pages, header floats over the constellation */
:root[data-has-hero] header.header {
	background: transparent;
	border-bottom: 1px solid transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
:root[data-has-hero][data-nav-condensed] header.header {
	background: rgba(6, 3, 15, 0.72);
	border-bottom: 1px solid var(--nibiru-line);
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
}

:root[data-has-hero] .content-panel:first-of-type {
	padding-top: 0 !important;
}
:root[data-has-hero] .content-panel:first-of-type > .sl-container:first-child {
	padding-top: 0 !important;
}

.site-title,
header .site-title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: var(--nibiru-tracking-heading);
	font-size: 1.05rem;
	color: var(--nibiru-star);
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
.site-title em { font-style: normal; font-weight: 300; }

.site-title img {
	height: 2rem;
	width: auto;
	max-width: none;
	transition: height 240ms ease;
}
:root[data-nav-condensed] .site-title img { height: 1.6rem; }
@media (max-width: 50rem) {
	.site-title img { height: 1.7rem; }
}

/* === Sidebar === */
.sidebar-pane {
	background: var(--sl-color-bg-sidebar) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-right: 1px solid var(--sl-color-hairline);
}
nav.sidebar ul.top-level { padding-top: 0.5rem; }
nav.sidebar .group-label .large {
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: var(--nibiru-tracking-label);
	text-transform: uppercase;
	font-size: 0.68rem;
	color: var(--nibiru-muted);
	padding: 0.6rem 0 0.3rem;
}
nav.sidebar a {
	font-size: 0.92rem;
	letter-spacing: var(--nibiru-tracking-body);
	color: rgba(244, 238, 219, 0.7);
	border-left: 1.5px solid transparent;
	padding-left: 0.8rem;
	border-radius: 0 var(--nibiru-radius-md) var(--nibiru-radius-md) 0;
	transition: color 160ms, border-left-color 160ms, background-color 160ms;
}
:root[data-theme='light'] nav.sidebar a { color: var(--nibiru-ink-2); }

nav.sidebar a:hover {
	color: var(--nibiru-star);
	border-left-color: var(--nibiru-iris-soft);
	background: rgba(184, 107, 255, 0.08);
}
nav.sidebar a[aria-current='page'] {
	color: var(--nibiru-star);
	font-weight: 500;
	border-left-color: var(--nibiru-nebula-mag);
	background: rgba(184, 107, 255, 0.10);
}

/* === Pagination === */
.pagination-links a {
	background: var(--nibiru-night);
	border: 1px solid var(--sl-color-hairline);
	border-radius: var(--nibiru-radius-xl);
	padding: 1rem 1.1rem;
	transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.pagination-links a:hover {
	border-color: var(--nibiru-nebula-mag);
	transform: translateY(-1px);
	box-shadow: var(--nibiru-shadow-md);
}

/* =============================================================================
 *  EYEBROW (mono · with dash) — used on every section head
 * ===========================================================================*/

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: var(--nibiru-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--nibiru-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.eyebrow::before {
	content: '';
	width: 18px;
	height: 1px;
	background: var(--nibiru-line-strong);
}
.section.alt .eyebrow { color: var(--nibiru-ink-2); }
.section.alt .eyebrow::before { background: var(--nibiru-ink-2); }

/* Comment-style eyebrow ("// Live chat") used in some sections */
.eyebrow-mono {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: var(--nibiru-tracking-label);
	text-transform: uppercase;
	color: var(--nibiru-iris-soft);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.eyebrow-mono::before {
	content: '//';
	color: var(--nibiru-nebula-mag);
	font-weight: 500;
}

/* =============================================================================
 *  BUTTONS — pill-shaped, two variants (solid star / ghost outline)
 * ===========================================================================*/

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--nibiru-radius-pill);
	font-family: var(--font-text);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 160ms ease,
	            background-color 160ms ease,
	            border-color 160ms ease,
	            color 160ms ease,
	            box-shadow 240ms ease;
	text-decoration: none;
}
.btn-ghost {
	color: rgba(244, 238, 219, 0.85);
	border-color: var(--nibiru-line-strong);
	background: transparent;
}
.btn-ghost:hover {
	color: var(--nibiru-star);
	border-color: rgba(244, 238, 219, 0.5);
}
.btn-solid {
	background: var(--nibiru-star);
	color: var(--nibiru-ink);
	box-shadow: 0 0 0 1px rgba(244, 238, 219, 0.2),
	            0 18px 40px -16px rgba(184, 107, 255, 0.6);
}
.btn-solid:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(244, 238, 219, 0.3),
	            0 22px 48px -16px rgba(184, 107, 255, 0.8);
}
.btn-icon-only { width: 36px; height: 36px; padding: 0; }
.btn .ico { width: 16px; height: 16px; }

/* Legacy atelier-button names — alias so old MDX still works */
.atelier-button         { @apply: btn; }
.atelier-button {
	display: inline-flex; align-items: center; gap: 0.5rem;
	height: 2.5rem; padding: 0 1.2rem;
	font-family: var(--font-text);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: var(--nibiru-tracking-body);
	border-radius: var(--nibiru-radius-pill);
	text-decoration: none;
	white-space: nowrap;
	transition: transform 160ms var(--nibiru-ease-out),
	            box-shadow 240ms,
	            background 240ms,
	            border-color 240ms,
	            color 240ms;
	border: 1px solid transparent;
}
.atelier-button--primary {
	background: var(--nibiru-star);
	color: var(--nibiru-ink);
	box-shadow: 0 0 0 1px rgba(244, 238, 219, 0.2),
	            0 18px 40px -16px rgba(184, 107, 255, 0.6);
}
.atelier-button--primary:hover { transform: translateY(-1px); }
.atelier-button--ghost,
.atelier-button--secondary {
	background: transparent;
	color: rgba(244, 238, 219, 0.85);
	border-color: var(--nibiru-line-strong);
}
.atelier-button--ghost:hover,
.atelier-button--secondary:hover {
	color: var(--nibiru-star);
	border-color: rgba(244, 238, 219, 0.5);
}
.atelier-button .atelier-button__arrow { transition: transform 240ms var(--nibiru-ease-out); }
.atelier-button:hover .atelier-button__arrow { transform: translateX(3px); }

/* =============================================================================
 *  SECTION SHELL — used by every splash section
 * ===========================================================================*/

.section {
	position: relative;
	padding: 10rem 0;
	z-index: 1;
}
.section.alt {
	background: var(--nibiru-paper);
	color: var(--nibiru-ink);
}
.section.alt .section-sub { color: var(--nibiru-ink-2); }
.section.alt p, .section.alt li { color: var(--nibiru-ink-2); }
.section.alt strong { color: var(--nibiru-ink-deep); }

.section-head {
	max-width: 50rem;
	margin: 0 auto 5rem;
	padding: 0 32px;
}
.section-head .eyebrow { margin-bottom: 1.5rem; }

.section-title {
	font-family: var(--font-display);
	font-size: var(--nibiru-text-section);
	line-height: 1.02;
	letter-spacing: var(--nibiru-tracking-display);
	font-weight: 400;
	margin: 0;
	color: var(--nibiru-star);
	text-wrap: pretty;
}
.section-title em { font-style: normal; font-weight: 500; }
.section-title .accent {
	font-style: normal;
	font-weight: 500;
	background: var(--nibiru-gradient-accent);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.section.alt .section-title { color: var(--nibiru-ink); }
.section.alt .section-title .accent {
	background: var(--nibiru-gradient-accent-light);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.section-sub {
	margin-top: 1.75rem;
	font-size: 1.18rem;
	line-height: 1.55;
	color: rgba(244, 238, 219, 0.7);
	max-width: 56ch;
}

/* Section content container */
.section .container,
.container {
	max-width: var(--nibiru-container);
	margin: 0 auto;
	padding: 0 32px;
}

/* =============================================================================
 *  TELEMETRY STRIP — bottom-of-hero, status indicators
 * ===========================================================================*/

.tele-strip {
	display: flex;
	gap: 3rem;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nibiru-muted);
}
.tele-cell { display: flex; align-items: center; gap: 8px; }
.tele-cell strong { color: rgba(244, 238, 219, 0.85); font-weight: 500; }
.tele-cell .pulse {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nibiru-success);
	box-shadow: 0 0 8px rgba(122, 214, 163, 0.7);
	animation: tele-pulse var(--nibiru-duration-pulse) ease-in-out infinite;
}
@keyframes tele-pulse {
	0%, 100% { opacity: 0.5; transform: scale(0.85); }
	50%      { opacity: 1;   transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
	.tele-cell .pulse { animation: none; }
}

/* =============================================================================
 *  MISSION CONTROL — terminal-style chat panel
 * ===========================================================================*/

.mc-frame {
	background: var(--nibiru-void);
	border: 1px solid var(--nibiru-line-strong);
	border-radius: var(--nibiru-radius-xl);
	overflow: hidden;
	box-shadow: var(--nibiru-shadow-cosmos);
	max-width: var(--nibiru-container);
	margin: 0 auto;
}
.mc-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: 14px 22px;
	border-bottom: 1px solid var(--nibiru-line);
	background: linear-gradient(180deg, rgba(184, 107, 255, 0.05), transparent);
}
.mc-id {
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nibiru-nebula-mag);
	display: flex; align-items: center; gap: 10px;
}
.mc-id .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--nibiru-nebula-mag);
	box-shadow: 0 0 12px var(--nibiru-nebula-mag);
	animation: tele-pulse 2s ease-in-out infinite;
}
.mc-tele {
	display: flex; gap: 2rem; justify-content: center;
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nibiru-muted);
}
.mc-tele strong { color: rgba(244, 238, 219, 0.9); font-weight: 500; }
.mc-actions { display: flex; gap: 8px; color: var(--nibiru-muted); }
.mc-actions button {
	width: 28px; height: 28px; border: none; background: transparent;
	color: inherit; cursor: pointer; border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
}
.mc-actions button:hover { background: rgba(244, 238, 219, 0.06); color: var(--nibiru-star); }

.mc-body {
	padding: 36px 40px;
	min-height: 360px;
	max-height: 540px;
	overflow-y: auto;
	font-family: var(--font-mono);
	font-size: 13.5px; line-height: 1.65;
	scrollbar-width: thin;
	scrollbar-color: rgba(184, 107, 255, 0.3) transparent;
}
.mc-body::-webkit-scrollbar { width: 8px; }
.mc-body::-webkit-scrollbar-thumb { background: rgba(184, 107, 255, 0.3); border-radius: 8px; }
.mc-line { padding: 2px 0; white-space: pre-wrap; word-break: break-word; }
.mc-line.usr { color: #cdebff; }
.mc-line.usr::before { content: '> '; color: var(--nibiru-nebula-blue); }
.mc-line.sys { color: var(--nibiru-muted); }
.mc-line.trc { color: rgba(184, 107, 255, 0.78); }
.mc-line.asst-stream { color: var(--nibiru-star); }
.mc-line.asst-label { color: var(--nibiru-nebula-amber); margin-top: 12px; }
.mc-line.done { color: var(--nibiru-success); margin-top: 12px; }
.mc-cursor {
	display: inline-block; width: 8px; height: 16px; vertical-align: -2px;
	background: var(--nibiru-star); margin-left: 2px;
	animation: mc-blink 1s steps(1) infinite;
}
@keyframes mc-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.mc-cursor { animation: none; }
}
.mc-input {
	border-top: 1px solid var(--nibiru-line);
	padding: 14px 22px;
	display: flex; gap: 14px; align-items: center;
	background: rgba(244, 238, 219, 0.02);
}
.mc-input .prompt {
	color: var(--nibiru-nebula-mag);
	font-family: var(--font-mono);
	font-size: 13px;
}
.mc-input input {
	flex: 1; border: none; background: transparent; outline: none;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--nibiru-star);
}
.mc-input input::placeholder { color: var(--nibiru-muted); }
.mc-input .send {
	border: 1px solid var(--nibiru-line-strong);
	background: transparent;
	color: var(--nibiru-star);
	padding: 6px 14px;
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}
.mc-input .send:hover { background: var(--nibiru-star); color: var(--nibiru-ink); }
.mc-suggestions {
	display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px;
	max-width: var(--nibiru-container);
	padding: 0 32px;
	margin-left: auto; margin-right: auto;
}
.mc-suggestion {
	border: 1px solid var(--nibiru-line);
	border-radius: var(--nibiru-radius-pill);
	padding: 8px 16px;
	font-size: 13px;
	font-family: var(--font-text);
	color: rgba(244, 238, 219, 0.75);
	cursor: pointer;
	background: transparent;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.mc-suggestion:hover {
	border-color: var(--nibiru-nebula-mag);
	color: var(--nibiru-star);
	background: rgba(184, 107, 255, 0.08);
}

/* =============================================================================
 *  LAUNCH SEQUENCE — code on the left, system canvas on the right
 * ===========================================================================*/

.launch-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: stretch;
	max-width: var(--nibiru-container);
	margin: 0 auto;
	padding: 0 32px;
}
@media (max-width: 960px) {
	.launch-grid { grid-template-columns: 1fr; }
}
.launch-code {
	background: var(--nibiru-code-bg);
	border: 1px solid var(--nibiru-line-strong);
	border-radius: var(--nibiru-radius-xl);
	overflow: hidden;
	box-shadow: var(--nibiru-shadow-xl);
	display: flex; flex-direction: column;
}
.launch-code-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid var(--nibiru-code-line);
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--nibiru-muted);
}
.launch-code-head .file { color: var(--nibiru-nebula-mag); }
.launch-code-head .play {
	border: 1px solid var(--nibiru-line-strong);
	background: transparent;
	color: var(--nibiru-star);
	padding: 6px 14px;
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}
.launch-code-head .play:hover { background: var(--nibiru-star); color: var(--nibiru-ink); }

.launch-code-body {
	flex: 1;
	padding: 24px 28px;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.7;
	color: var(--nibiru-star);
	white-space: pre;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(184, 107, 255, 0.2) transparent;
	margin: 0;
}
.launch-code-body .caret {
	display: inline-block; width: 7px; height: 14px; vertical-align: -2px;
	background: var(--nibiru-nebula-mag); margin-left: 1px;
	box-shadow: 0 0 12px var(--nibiru-nebula-mag);
	animation: mc-blink 1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
	.launch-code-body .caret { animation: none; }
}

.launch-system {
	position: relative;
	border: 1px solid var(--nibiru-line-strong);
	border-radius: var(--nibiru-radius-xl);
	overflow: hidden;
	background: var(--nibiru-gradient-mmvc-stage);
	min-height: 460px;
}
.launch-system .legend {
	position: absolute; left: 24px; top: 24px;
	font-family: var(--font-mono);
	font-size: 0.69rem;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--nibiru-muted);
	z-index: 2;
}
.launch-system .stats {
	position: absolute; left: 24px; right: 24px; bottom: 24px;
	display: flex; justify-content: space-between; gap: 12px;
	font-family: var(--font-mono);
	font-size: 0.69rem;
	color: rgba(244, 238, 219, 0.6);
	z-index: 2;
}
.launch-system .stats strong { color: var(--nibiru-star); font-weight: 500; }

/* Token classes — used in launch code body and code-card */
.tk-k    { color: #c8a8ff; }
.tk-cls  { color: #f0d4ff; }
.tk-fn   { color: #b8d4ff; }
.tk-s    { color: #ffd9a3; }
.tk-n    { color: #b8e0c2; }
.tk-v    { color: #ffb4d8; }
.tk-attr { color: #d4baff; }
.tk-c    { color: var(--nibiru-muted); font-style: italic; }
.tk-tag  { color: #c8a8ff; font-weight: 600; }

/* =============================================================================
 *  SPACECRAFT — three download cards: Lite / Base / Pro
 * ===========================================================================*/

.craft-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: var(--nibiru-container);
	margin: 0 auto;
	padding: 0 32px;
}
@media (max-width: 960px) {
	.craft-grid { grid-template-columns: 1fr; }
}
.craft {
	position: relative;
	background: linear-gradient(180deg, var(--nibiru-night), var(--nibiru-space));
	border: 1px solid var(--nibiru-line);
	border-radius: var(--nibiru-radius-2xl);
	padding: 36px 28px 28px;
	overflow: hidden;
	transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.craft::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 80% 50% at 50% -10%, var(--ribbon, transparent), transparent 70%);
	opacity: 0.5;
	pointer-events: none;
}
.craft.lite { --ribbon: rgba(122, 214, 163, 0.35); }
.craft.base { --ribbon: rgba(184, 107, 255, 0.45); }
.craft.pro  { --ribbon: rgba(255, 181, 116, 0.45); }
.craft:hover {
	transform: translateY(-4px);
	border-color: var(--ribbon, var(--nibiru-line-strong));
	box-shadow: var(--nibiru-shadow-lg);
}
.craft .badge {
	font-family: var(--font-mono);
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nibiru-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.craft .badge::before {
	content: '';
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--ribbon, var(--nibiru-muted));
}
.craft .name {
	font-family: var(--font-display);
	font-size: 2.125rem;
	font-weight: 400;
	letter-spacing: -0.025em;
	margin: 18px 0 4px;
	color: var(--nibiru-star);
}
.craft .name em { font-style: normal; font-weight: 600; }
.craft .role {
	font-size: 0.875rem;
	color: rgba(244, 238, 219, 0.65);
	margin-bottom: 28px;
}
.craft .silhouette {
	height: 140px;
	margin: 0 -28px 24px;
	position: relative;
	display: flex; align-items: center; justify-content: center;
}
.craft .silhouette svg {
	width: 140px; height: 140px;
	filter: drop-shadow(0 0 24px var(--ribbon));
}
.craft .stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 12px;
	border-top: 1px solid var(--nibiru-line);
	padding-top: 22px;
	font-family: var(--font-mono);
	font-size: 11px;
}
.craft .stats div { display: flex; flex-direction: column; gap: 4px; }
.craft .stats .l {
	color: var(--nibiru-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 10px;
}
.craft .stats .v { color: var(--nibiru-star); font-size: 14px; }
.craft .craft-cta {
	display: flex; gap: 8px; align-items: center;
	margin-top: 24px;
	padding: 12px 0;
	border-top: 1px solid var(--nibiru-line);
	font-size: 14px;
	color: var(--nibiru-star);
}
.craft .craft-cta:hover { color: var(--ribbon); }
.craft .craft-cta .arrow { margin-left: auto; font-family: var(--font-mono); }

/* =============================================================================
 *  TO-TOP BUTTON
 * ===========================================================================*/

.to-top {
	position: fixed;
	right: 28px; bottom: 28px;
	z-index: 70;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--nibiru-line-strong);
	background: rgba(6, 3, 15, 0.7);
	backdrop-filter: blur(10px);
	color: var(--nibiru-star);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; pointer-events: none;
	transform: translateY(8px);
	transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease;
}
.to-top.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.to-top:hover {
	transform: translateY(-2px);
	border-color: var(--nibiru-nebula-mag);
}

/* =============================================================================
 *  STARLIGHT CARDS / CARD-GRID — used by docs MDX
 * ===========================================================================*/

.card-grid,
.sl-markdown-content .card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1.1rem;
	margin: 2rem 0;
	align-items: stretch;
}
.card,
.sl-markdown-content .card {
	background: var(--nibiru-night) !important;
	border: 1px solid var(--sl-color-hairline) !important;
	border-radius: var(--nibiru-radius-xl) !important;
	padding: 1.5rem 1.4rem 1.4rem !important;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 240ms var(--nibiru-ease-out),
	            border-color 240ms,
	            box-shadow 240ms;
}
:root[data-theme='light'] .card,
:root[data-theme='light'] .sl-markdown-content .card {
	background: var(--nibiru-paper) !important;
	border: 1px solid var(--nibiru-line-light) !important;
}
.card:hover {
	transform: translateY(-2px);
	border-color: var(--nibiru-nebula-mag) !important;
	box-shadow: var(--nibiru-shadow-lg) !important;
}
.card .icon {
	color: var(--nibiru-nebula-mag) !important;
	background: transparent !important;
	border: 0 !important;
	width: 1.7rem !important;
	height: 1.7rem !important;
	margin-bottom: 0.7rem !important;
}
.card .title,
.card-title {
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
	font-size: 1.05rem !important;
	letter-spacing: var(--nibiru-tracking-heading) !important;
	color: var(--nibiru-star) !important;
	margin-bottom: 0.5rem !important;
}
:root[data-theme='light'] .card .title { color: var(--nibiru-ink) !important; }
.card p {
	color: rgba(244, 238, 219, 0.75) !important;
	font-size: 0.92rem !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}
:root[data-theme='light'] .card p { color: var(--nibiru-ink-2) !important; }

/* =============================================================================
 *  CODE-CARD — kept for the v3 MDX usage; v4 splash uses launch-code instead
 * ===========================================================================*/

.code-card {
	border-radius: var(--nibiru-radius-xl);
	background: var(--nibiru-code-bg);
	border: 1px solid var(--nibiru-line-strong);
	overflow: hidden;
	box-shadow: var(--nibiru-shadow-cosmos);
	margin: 1.5rem 0;
}
.code-card__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--nibiru-code-line);
}
.code-card__tabs { display: flex; gap: 4px; }
.code-card__tab {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	padding: 6px 10px;
	border-radius: var(--nibiru-radius-sm);
	color: var(--nibiru-code-mute);
}
.code-card__tab.is-active {
	background: rgba(244, 238, 219, 0.06);
	color: var(--nibiru-code-text);
}
.code-card__meta {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--nibiru-code-mute);
	letter-spacing: var(--nibiru-tracking-mono);
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
.code-card__body {
	display: grid;
	grid-template-columns: 56px 1fr;
	font-family: var(--font-mono);
	font-size: 0.84rem;
	line-height: 1.7;
}
.code-card__gutter {
	color: #44485a;
	text-align: right;
	padding: 20px 12px 20px 0;
	user-select: none;
	border-right: 1px solid var(--nibiru-code-line);
	white-space: pre;
	margin: 0;
}
.code-card__pre {
	padding: 20px 24px;
	color: var(--nibiru-code-text);
	overflow-x: auto;
	white-space: pre;
	margin: 0;
}

/* =============================================================================
 *  ORACLE LAUNCHER — fixed bottom-right floating chat trigger
 * ===========================================================================*/

#oracle-launcher {
	position: fixed;
	bottom: 1.4rem;
	right: 1.4rem;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--nibiru-line-strong);
	background: rgba(6, 3, 15, 0.7);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.5),
	            0 0 24px -8px rgba(184, 107, 255, 0.25);
	cursor: pointer;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 220ms var(--nibiru-ease-out),
	            box-shadow 220ms,
	            border-color 220ms;
}
#oracle-launcher::before {
	content: '';
	width: 26px; height: 26px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M12 2 C 9 8, 9 16, 12 22 C 15 16, 15 8, 12 2 Z' fill='%23b86bff' opacity='0.85'/><path d='M2 12 C 8 9, 16 9, 22 12 C 16 15, 8 15, 2 12 Z' fill='%235b8dff' opacity='0.8'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	transition: transform 400ms var(--nibiru-ease-out);
}
#oracle-launcher:hover {
	transform: translateY(-2px);
	border-color: var(--nibiru-nebula-mag);
	box-shadow: 0 12px 32px -10px rgba(184, 107, 255, 0.45),
	            0 2px 4px rgba(0, 0, 0, 0.3);
}
#oracle-launcher:hover::before { transform: rotate(60deg); }

#oracle-panel {
	position: fixed;
	bottom: 5.2rem;
	right: 1.4rem;
	width: min(400px, calc(100vw - 2rem));
	height: min(580px, calc(100vh - 7rem));
	background: var(--nibiru-night);
	border: 1px solid var(--nibiru-line-strong);
	border-radius: var(--nibiru-radius-xl);
	box-shadow: var(--nibiru-shadow-xl);
	z-index: 1000;
	display: none;
	flex-direction: column;
	overflow: hidden;
}
#oracle-panel.is-open {
	display: flex;
	animation: oracle-rise 240ms var(--nibiru-ease-out);
}
@keyframes oracle-rise {
	from { opacity: 0; transform: translateY(10px) scale(0.99); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
#oracle-panel header {
	padding: 1rem 1.2rem 0.85rem;
	border-bottom: 1px solid var(--nibiru-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#oracle-panel h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: var(--nibiru-tracking-heading);
	font-size: 1rem;
	color: var(--nibiru-star);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
#oracle-panel h3::before {
	content: '';
	width: 14px; height: 14px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M12 2 C 9 8, 9 16, 12 22 C 15 16, 15 8, 12 2 Z' fill='%23b86bff'/><path d='M2 12 C 8 9, 16 9, 22 12 C 16 15, 8 15, 2 12 Z' fill='%235b8dff'/></svg>");
	background-size: contain;
}
#oracle-panel .oracle-subtitle {
	font-size: 0.7rem;
	color: var(--nibiru-muted);
	letter-spacing: 0.02em;
	margin-top: 0.15rem;
	font-family: var(--font-mono);
}
#oracle-panel .oracle-close {
	background: transparent;
	border: 0;
	color: var(--nibiru-muted);
	cursor: pointer;
	font-size: 1rem;
	padding: 0.25rem 0.5rem;
	line-height: 1;
	border-radius: var(--nibiru-radius-md);
	transition: background 150ms, color 150ms;
}
#oracle-panel .oracle-close:hover {
	background: rgba(244, 238, 219, 0.06);
	color: var(--nibiru-star);
}
#oracle-messages {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	font-size: 0.92rem;
	line-height: 1.55;
}
.oracle-msg {
	max-width: 88%;
	padding: 0.65rem 0.9rem;
	border-radius: var(--nibiru-radius-lg);
	word-wrap: break-word;
}
.oracle-msg.user {
	align-self: flex-end;
	background: var(--nibiru-star);
	color: var(--nibiru-ink);
	border-radius: var(--nibiru-radius-lg) var(--nibiru-radius-lg) var(--nibiru-radius-sm) var(--nibiru-radius-lg);
}
.oracle-msg.assistant {
	align-self: flex-start;
	background: rgba(184, 107, 255, 0.10);
	border: 1px solid var(--nibiru-line);
	color: var(--nibiru-star);
}
.oracle-msg.assistant pre {
	background: rgba(0, 0, 0, 0.35);
	border-radius: var(--nibiru-radius-md);
	padding: 0.5rem 0.7rem;
	margin: 0.5rem 0;
	overflow-x: auto;
	font-size: 0.8rem;
}
.oracle-msg.assistant code {
	font-family: var(--font-mono);
	font-size: 0.86em;
}
.oracle-msg.system {
	align-self: center;
	font-size: 0.78rem;
	color: var(--nibiru-muted);
	letter-spacing: 0.01em;
	max-width: 90%;
	text-align: center;
}
#oracle-form {
	padding: 0.8rem;
	border-top: 1px solid var(--nibiru-line);
	display: flex;
	gap: 0.5rem;
}
#oracle-form textarea {
	flex: 1;
	resize: none;
	background: rgba(244, 238, 219, 0.04);
	border: 1px solid var(--nibiru-line-strong);
	color: var(--nibiru-star);
	border-radius: var(--nibiru-radius-md);
	padding: 0.55rem 0.7rem;
	font-family: var(--font-text);
	font-size: 0.9rem;
	min-height: 2.5rem;
	max-height: 6rem;
	transition: border-color 200ms, box-shadow 200ms;
}
#oracle-form textarea:focus {
	outline: none;
	border-color: var(--nibiru-nebula-mag);
	box-shadow: 0 0 0 3px rgba(184, 107, 255, 0.20);
}
#oracle-form button {
	padding: 0 1rem;
	border: 0;
	border-radius: var(--nibiru-radius-md);
	background: var(--nibiru-star);
	color: var(--nibiru-ink);
	font-family: var(--font-text);
	font-weight: 500;
	cursor: pointer;
	font-size: 0.85rem;
	letter-spacing: var(--nibiru-tracking-body);
	transition: transform 150ms, opacity 150ms;
}
#oracle-form button:hover { transform: translateY(-1px); }
#oracle-form button[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.oracle-cite {
	display: inline-block;
	font-size: 0.72rem;
	background: rgba(184, 107, 255, 0.14);
	border: 1px solid rgba(184, 107, 255, 0.28);
	color: var(--nibiru-iris-soft);
	padding: 0.05rem 0.4rem;
	border-radius: var(--nibiru-radius-sm);
	margin: 0 0.15rem 0.15rem 0;
	text-decoration: none;
	transition: background 150ms;
}
.oracle-cite:hover { background: rgba(184, 107, 255, 0.22); }

/* =============================================================================
 *  HOMEPAGE — splash padding overrides (Starlight wraps in .sl-container)
 * ===========================================================================*/

[data-has-hero] .sl-container {
	max-width: none !important;
	padding: 0 !important;
}
[data-has-hero] .sl-markdown-content {
	max-width: none;
}

/* Section bands break out of the content width */
.section {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}
