/* ============================================================================
   G Web3 Networks — inner-page skin.
   Re-skins the Bootstrap theme pages (origin, thesis, expositories, reactor,
   404, …) in the Plasma palette: deep space with a plum haze, starlight text,
   and colour only where something is lit — and only from one arc of the
   wheel, the arc a plasma discharge throws: electric blue → violet → fuchsia
   → plasma rose. Plasma rose is the signal (it catches the eye), violet
   answers the click, and the plasma arc runs along horizons.
   Also carries the "G." Orbitron wordmark in place of a logo, film grain, and
   a soft page-load fade-in. Shared by every inner page, so this single file
   restyles them all. (Also inherited by the _index.html backup — harmless.)
   ========================================================================== */

/* Brand wordmark — self-hosted Orbitron, subset to just "G." (no logo asset). */
@font-face {
    font-family: "Orbitron";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../assets/fonts/orbitron-g.woff2") format("woff2");
    unicode-range: U+2E, U+47;
}

/* Body + headings — self-hosted Inter (variable: all weights in one 48KB file).
   The theme asked for "Plus Jakarta Sans" but never loaded it, so text fell back
   to plain system sans. Self-hosted so it loads everywhere (incl. China). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../assets/fonts/inter-var.woff2") format("woff2");
}

:root {
    /* ── Plasma palette (2026-11-16) ─────────────────────────────────────────
       Measured from a plasma ball and a glowing nebula: black with a plum
       haze, and every lit hue on one arc of the wheel. Roles, not hues:
         signal   plasma rose — orientation: labels, indexes, key terms, the
                  current page, the primary call to action
         action   violet — links, hover, focus, controls
         horizon  the plasma arc — the line under every page header
         ion blue, violet, fuchsia, plasma, corona — topic categories.
       Rules name the role (--gx-signal, --gx-action …), never the hue, so a
       future re-colour is a change of value here. The --apogee-* structure
       names predate the palette (~300 page rules use them); they hold Plasma
       values. Structure tones keep their exact OKLab lightness, so every
       panel and line keeps its visual weight (hue → plum 305°). */
    --apogee-void: #040306;             /* page ground; deepest space */
    --apogee-deep-orbit: #0B0710;       /* sections, the content sheet */
    --apogee-cosmic-navy: #160F1E;      /* raised surfaces, cards, pills (plum) */
    --apogee-aerospace-navy: #271C33;   /* structural surfaces, separators */
    --apogee-orbital-steel: #3D2E4E;    /* visible borders, tracks */
    --apogee-stellar-ice: #C2BAD3;      /* labels, annotation (lavender ice) */
    --apogee-titanium: #DDD6DF;         /* emphasised secondary text */
    --apogee-star-white: #F8F3FA;       /* starlight — headings, primary text */

    /* The plasma arc, cold end to hot */
    --gx-ion: #569FFF;                  /* electric blue — categories, data */
    --gx-violet: #A785FC;               /* violet — the action colour, asides */
    --gx-violet-hi: #C0B6FF;            /* lavender — hover, lit edges */
    --gx-violet-deep: #6B55DF;          /* deep violet — gradient roots */
    --gx-fuchsia: #E950E1;              /* the discharge — categories */
    --gx-plasma: #FF457C;               /* plasma rose — the signal colour */
    --gx-corona: #FFC7DE;               /* the white-hot core — peaks, glints */

    /* Roles */
    --gx-signal: var(--gx-plasma);
    --gx-signal-hi: var(--gx-corona);
    --gx-action: var(--gx-violet);
    --gx-action-hi: var(--gx-violet-hi);

    /* Reading ramp: neutral with a faint plum bias (never a hue links could
       hide in) — body 10.3:1, meta 8.1:1, fine print 6.3:1 on the sheet. */
    --gx-text: #BDB8C5;                 /* body copy */
    --gx-text-muted: #A8A3B0;           /* nav, meta */
    --gx-text-dim: #938E9B;             /* captions, fine print */

    /* Hairlines: a plum wash, luminance-matched to the old one so every line
       and panel keeps its weight. */
    --gx-line: rgba(121, 96, 150, 0.32);
    --gx-line-soft: rgba(121, 96, 150, 0.22);

    /* The plasma arc, as the one gradient: deep violet into the white-hot core. */
    --gx-plasma-arc: linear-gradient(90deg, #6B55DF 0%, #A785FC 28%, #E950E1 54%, #FF457C 78%, #FFC7DE 100%);
    /* Plasma-lit metal for the "G." wordmark: lavender in shadow, rose-white where lit. */
    --gx-titanium-light: linear-gradient(135deg, #C2BAD3 0%, #FFFFFF 46%, #FFC7DE 100%);

    /* Semantic names older rules and page styles use */
    --color-dark: var(--apogee-void);
    --color-light: var(--apogee-star-white);
    --color-heading: var(--apogee-star-white);
    --color-body: var(--gx-text);
    --color-border: var(--gx-line);
    --gx-muted: var(--gx-text-muted);
    --gx-accent: var(--apogee-titanium);
    --gx-steel: var(--gx-action);
    --gx-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    /* Override the theme's never-loaded "Plus Jakarta Sans" with Inter. */
    --font-primary: "Inter", system-ui, -apple-system, sans-serif;
    --font-heading: "Inter", system-ui, -apple-system, sans-serif;
}

/* ── The theme's own colour variables, re-pointed at the palette ─────────────
   The theme declares its palette on [data-theme=dark], which sits on <body> —
   so a :root override alone loses to it for everything inside the body. That
   is how its orange (hsl 12 85% 58%) survived as the nav hover colour, and its
   neutral greys as the content sheet, pills and meta text. body[data-theme]
   outranks the theme's selector, so every component that reads these picks up
   the new palette. The -h/-s/-l parts feed the theme's hsla() tints. */
:root,
body[data-theme] {
    --color-primary: #A785FC;
    --color-primary-h: 257; --color-primary-s: 95%; --color-primary-l: 75%;
    --color-primary-dark: #6B55DF;
    --color-primary-dark-h: 250; --color-primary-dark-s: 68%; --color-primary-dark-l: 60%;
    --color-primary-darker: #3D2E4E;
    --color-primary-darker-h: 268; --color-primary-darker-s: 26%; --color-primary-darker-l: 24%;
    --color-primary-light: #C0B6FF;
    --color-primary-light-h: 248; --color-primary-light-s: 100%; --color-primary-light-l: 86%;
    --color-primary-lighter: #C2BAD3;
    --color-primary-lighter-h: 259; --color-primary-lighter-s: 22%; --color-primary-lighter-l: 78%;
    --color-secondary: #F8F3FA;
    --color-accent: #FF457C;
    --color-accent-h: 342; --color-accent-s: 100%; --color-accent-l: 64%;
    --color-black: #040306;
    --color-black-h: 260; --color-black-s: 33%; --color-black-l: 2%;
    --color-white: #F8F3FA;
    --color-white-h: 283; --color-white-s: 41%; --color-white-l: 97%;
    --color-bg: #0B0710;
    --color-bg-h: 267; --color-bg-s: 39%; --color-bg-l: 5%;
    --color-bg-dark: #040306;
    --color-bg-darker: #040306;
    --color-bg-light: #160F1E;
    --color-bg-lighter: #271C33;
    --color-contrast-lower: #160F1E;
    --color-contrast-lower-h: 268; --color-contrast-lower-s: 33%; --color-contrast-lower-l: 9%;
    --color-contrast-low: #271C33;
    --color-contrast-low-h: 269; --color-contrast-low-s: 29%; --color-contrast-low-l: 15%;
    --color-contrast-medium: #938E9B;
    --color-contrast-medium-h: 263; --color-contrast-medium-s: 6%; --color-contrast-medium-l: 58%;
    --color-contrast-high: #DDD6DF;
    --color-contrast-high-h: 287; --color-contrast-high-s: 12%; --color-contrast-high-l: 86%;
    --color-contrast-higher: #F8F3FA;
    --color-contrast-higher-h: 283; --color-contrast-higher-s: 41%; --color-contrast-higher-l: 97%;
    --color-success: #76C7FF;
    --color-success-h: 205; --color-success-s: 100%; --color-success-l: 73%;
    --color-warning: #FFC7DE;
    --color-warning-h: 335; --color-warning-s: 100%; --color-warning-l: 89%;
    --color-error: #FE7347;
    --color-error-h: 14; --color-error-s: 99%; --color-error-l: 64%;
}

/* ── Hide-and-reveal page load: a plasma spinner over a void veil that fades away
   for a slow, cinematic fade-from-black once everything has loaded ─────────────
   The inline critical <style> in each <head> holds body{visibility:hidden} so
   nothing paints unstyled; the .gw-loader veil (a child) overrides that to stay
   visible and show the spinner. main.js adds .is-ready on window 'load' (or a
   failsafe), which makes the body visible and fades the veil out, then removes it.
   A <noscript> fallback reveals the body and hides the veil when JS is off. */
body.is-ready { visibility: visible; }

.gw-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    visibility: visible;                 /* override body{visibility:hidden} so the spinner shows */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apogee-void);
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gw-loader__spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--apogee-aerospace-navy);
    border-top-color: var(--gx-signal);                    /* the plasma's hot edge … */
    border-right-color: rgba(167, 133, 252, 0.55);         /* … trailing into violet */
    animation: gwSpin 0.8s linear infinite;
}
@keyframes gwSpin { to { transform: rotate(360deg); } }

/* Reveal: a slow fade-from-black as the veil dissolves to the loaded page. */
body.is-ready .gw-loader { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .gw-loader { transition: none; }
    .gw-loader__spinner { animation: none; }
}

/* Force the void ground regardless of theme toggle */
body,
[data-theme="light"],
[data-theme="dark"] {
    background-color: var(--apogee-void) !important;
    color: var(--apogee-star-white);
}

/* ── Film grain (fixed overlay) ───────────────────────────────────────────────
   Corner brackets are exclusive to the index page, so there are none here.
   Same isotropic SVG noise as the homepage, kept subtle over text. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99991;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='gxGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23gxGrain)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    /* No mix-blend-mode: a plain composited layer never re-blends on scroll. */
    opacity: 0.05;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.main-header,
.main-header.header--sticky {
    background-color: rgba(4, 3, 6, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Brand: replace the logo image with the "G." Orbitron wordmark.
   The theme cross-fades the two logos with OPACITY (not display), and on
   data-theme=dark it sets .logo-dark{opacity:0}, .logo-light{opacity:1}. We carry
   the wordmark on the in-flow .logo-dark (it sizes the overflow:hidden container),
   so force it visible and hide the absolutely-positioned .logo-light overlay. */
.main-header__logo { overflow: visible !important; }   /* theme clips it; never clip the "G." */
.main-header__logo .logo-light { display: none !important; }
.main-header__logo .logo-dark  { display: block !important; opacity: 1 !important; }
.main-header__logo .logo-dark a {
    display: inline-flex;
    align-items: center;
    font-family: "Orbitron", var(--gx-mono) !important;
    font-weight: 700 !important;
    font-size: 23px !important;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--apogee-star-white);
}
.main-header__logo .logo-dark a img { display: none; }
/* The wordmark in the brand's Titanium Light — the metallic the Apogee emblem is
   cut from. Clipped to the glyphs; the solid colour above stays as the fallback. */
.main-header__logo .logo-dark a::after {
    content: "G.";
    background: var(--gx-titanium-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Header geometry: match the homepage nav position ─────────────────────────
   The theme caps the header at 1320px and centres it, so the brand sits inset.
   Make it a full-width bar with the homepage's gutters + vertical rhythm, so the
   "G." lands at the left gutter and the links at the right, at the same height. */
.main-header__layout .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.main-header__layout .main-header__inner {
    max-width: 100% !important;
    padding: 30px clamp(28px, 5vw, 64px) 26px !important;
}
/* Brand left, links right (homepage layout) — the theme centres the menu.
   Desktop only, so the mobile drawer + trigger layout is left untouched. */
@media (min-width: 1025px) {
    /* The theme gives the logo flex-basis:0 and relied on flex-grow:1 to expand it;
       with grow:0 it collapses to zero width and overflow:hidden clips the "G." away.
       flex:0 0 auto sizes it to the wordmark; overflow:visible stops the clipping. */
    .menu-center .main-header__logo { flex: 0 0 auto !important; }
    .main-header.menu-center .main-header__nav { margin-left: auto !important; margin-right: 0 !important; }
}

/* ── Navigation: same mono / size / spacing as the homepage links ─────────── */
.main-header__layout .main-header__default .navbar-nav .menu-item a,
.main-header__layout .main-header__default .navbar-nav .menu-item a span,
.navbar-nav > li > a,
.navbar-nav > li > a span {
    font-family: var(--gx-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--gx-text-muted) !important;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:hover span { color: var(--apogee-star-white) !important; }
/* Where you are is orientation, so the current section reads in plasma rose,
   lit like an annunciator in the instrument strip. Matched above the muted
   rule's (0,4,1) !important, which is why the old white current-item rule
   never showed. */
.main-header__layout .main-header__default .navbar-nav .menu-item.current-menu-item > a,
.main-header__layout .main-header__default .navbar-nav .menu-item.current-menu-item > a span,
.main-header__layout .main-header__default .navbar-nav .menu-item.current-menu-parent > a,
.main-header__layout .main-header__default .navbar-nav .menu-item.current-menu-parent > a span {
    color: var(--gx-signal) !important;
    text-shadow: 0 0 14px rgba(255, 69, 124, 0.45);
}
/* The theme's hover rolls the label up and a copy of it (::after, carrying the
   link's title) rolls in from below — in var(--color-primary). Pin that copy to
   the hover colour so it never depends on the theme variable. */
.main-header__layout .main-header__default .navbar-nav > .menu-item > a::after {
    color: var(--gx-action-hi);
}
.sub-menu li a {
    font-family: var(--gx-mono) !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--gx-text-muted) !important;
}
.sub-menu li a:hover { color: var(--apogee-star-white) !important; }

/* ── Buttons (hairline outline, lit on hover) ─────────────────────────────── */
.btn,
.btn-circle {
    border-color: rgba(180, 171, 192, 0.45);
    color: var(--apogee-star-white);
}
.btn:hover,
.btn-circle:hover {
    border-color: var(--gx-action-hi);
    color: var(--gx-action-hi);
}
.circle-fill { background-color: var(--gx-action) !important; }

/* ── Typography: Inter for body + headings, with real bold titles ──────────── */
body, p, blockquote, li,
h1, h2, h3, h4, h5, h6,
.heading-title, .title, .sub-title, .disc {
    font-family: "Inter", system-ui, -apple-system, sans-serif !important;
}
h1, h2, h3, h4, h5, h6 { color: var(--apogee-star-white); }
p { color: var(--gx-text); }
/* The theme rendered headings at normal weight; give titles real bold + tight tracking. */
h1, h2, .heading-title { font-weight: 800 !important; letter-spacing: -0.02em; }
h3, h4 { font-weight: 700 !important; letter-spacing: -0.01em; }
h5, h6 { font-weight: 600 !important; }

/* ── Links ────────────────────────────────────────────────────────────────── */
a { color: var(--apogee-star-white); }
a:hover { color: var(--gx-action-hi); }
::selection { background: rgba(167, 133, 252, 0.4); color: var(--apogee-star-white); }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
/* The listing header is a band of void above the content sheet. Its lower
   edge is drawn as a horizon rather than a hairline: a plasma filament — deep
   violet, violet, fuchsia, then plasma rose burning white-hot at one spot —
   fading out at both ends. Glows rise off it, violet over the cool end and
   rose over the hot spot. Kept to the one edge where it means something (the
   header meeting the page). */
.breadcrumb-area {
    position: relative;
    background-color: var(--apogee-void) !important;
    border-bottom: 0;
}
.breadcrumb-area::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(107, 85, 223, 0) 0%, #6B55DF 10%, #A785FC 28%, #E950E1 50%, #FF457C 70%, #FFC7DE 80%, #FF457C 88%, rgba(255, 69, 124, 0) 100%);
    box-shadow: 0 0 18px 1px rgba(255, 69, 124, 0.28);
    opacity: 0.9;
}
.breadcrumb-area::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 140px;
    pointer-events: none;
    background:
        radial-gradient(14% 7px at 80% 100%, rgba(255, 199, 222, 0.55), rgba(255, 199, 222, 0) 100%),   /* the white-hot spot */
        radial-gradient(26% 60% at 78% 100%, rgba(255, 69, 124, 0.13), rgba(255, 69, 124, 0.05) 45%, rgba(255, 69, 124, 0) 75%),
        radial-gradient(42% 100% at 28% 100%, rgba(107, 85, 223, 0.2), rgba(107, 85, 223, 0) 70%),
        radial-gradient(30% 80% at 52% 100%, rgba(233, 80, 225, 0.07), rgba(233, 80, 225, 0) 70%);
}
.breadcrumb-area > * { position: relative; z-index: 1; }
/* The theme's own rule is `.breadcrumb-area .breadcrumb-1 .sub-title` (three
   classes), so a two-class override loses on specificity — that is how its
   orange #EF5D39 once rendered live on Expositories and Reactor. Match the
   theme's specificity; the label is orientation, so it takes plasma rose —
   an accent label distinct from the white heading, lit against the night. */
.breadcrumb-area .heading-title,
.breadcrumb-area .sub-title { color: var(--apogee-star-white); }
.breadcrumb-area .breadcrumb-1 .heading-title { color: var(--apogee-star-white); }
.breadcrumb-area .breadcrumb-1 .sub-title { color: var(--gx-signal); }

/* ── Nebula sky (Expositories, Reactor) ──────────────────────────────────────
   On the two listing pages the header is a sky, not a bar: js/gx-nebula.js draws
   an animated plasma nebula on a canvas that runs from the top of the page,
   behind the nav, down to the horizon. Until it lights, and wherever WebGL is
   missing, ::before holds a still nebula in the same places. Colours and rules:
   "Nebula sky" in docs/plasma-palette.md. */
body:has(.gx-sky) .main-header,
body:has(.gx-sky) .main-header.header--sticky {
    background-color: transparent !important;   /* the sky runs on behind the nav */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* The nav's own scrim (::before) and frosted glass (::after) are lifted while the
   page sits at the top (gx-nebula.js sets .gx-nav-clear), so the links float on
   the sky; both return as soon as the page scrolls. */
body:has(.gx-sky) .main-header__layout::before { transition: opacity 250ms ease; }
.main-header.gx-nav-clear .main-header__layout::before { opacity: 0 !important; }
.main-header.gx-nav-clear .main-header__layout::after {
    backdrop-filter: none !important;           /* the theme's .show-bg[data-blur] rule outranks a plain one */
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent;
}
.breadcrumb-area.gx-sky::before {
    top: calc(-1 * var(--main-header-height-md, 80px));
    height: auto;
    /* Dim rose over the void composites to maroon, so the still nebula glows in
       fuchsia and violet and keeps rose to the horizon's hot spot. */
    background:
        radial-gradient(1.5px 1.5px at 6% 22%, rgba(248, 243, 250, 0.8), rgba(248, 243, 250, 0) 100%),   /* stars */
        radial-gradient(1px 1px at 19% 64%, rgba(248, 243, 250, 0.6), rgba(248, 243, 250, 0) 100%),
        radial-gradient(1.5px 1.5px at 41% 18%, rgba(192, 182, 255, 0.7), rgba(192, 182, 255, 0) 100%),
        radial-gradient(1px 1px at 47% 78%, rgba(248, 243, 250, 0.5), rgba(248, 243, 250, 0) 100%),
        radial-gradient(1.5px 1.5px at 63% 30%, rgba(248, 243, 250, 0.7), rgba(248, 243, 250, 0) 100%),
        radial-gradient(1px 1px at 71% 86%, rgba(255, 199, 222, 0.6), rgba(255, 199, 222, 0) 100%),
        radial-gradient(1.5px 1.5px at 88% 40%, rgba(248, 243, 250, 0.8), rgba(248, 243, 250, 0) 100%),
        radial-gradient(1px 1px at 95% 72%, rgba(192, 182, 255, 0.6), rgba(192, 182, 255, 0) 100%),
        radial-gradient(14% 7px at 80% 100%, rgba(255, 199, 222, 0.55), rgba(255, 199, 222, 0) 100%),   /* the white-hot spot */
        radial-gradient(18% 34% at 80% 68%, rgba(233, 80, 225, 0.2), rgba(233, 80, 225, 0) 70%),        /* the core */
        radial-gradient(30% 60% at 78% 74%, rgba(255, 69, 124, 0.1), rgba(255, 69, 124, 0) 75%),
        radial-gradient(36% 70% at 60% 55%, rgba(167, 133, 252, 0.1), rgba(167, 133, 252, 0) 70%),
        radial-gradient(44% 90% at 30% 80%, rgba(107, 85, 223, 0.14), rgba(107, 85, 223, 0) 70%),
        radial-gradient(30% 60% at 8% 40%, rgba(68, 141, 236, 0.06), rgba(68, 141, 236, 0) 70%);
}
.gx-sky .gx-nebula {
    position: absolute;
    left: 0;
    top: calc(-1 * var(--main-header-height-md, 80px));
    z-index: 0;
    display: block;
    width: 100%;
    height: calc(100% + var(--main-header-height-md, 80px));
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.gx-sky .gx-nebula.is-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .gx-sky .gx-nebula { transition: none; }
}

/* ── Blog / post cards ────────────────────────────────────────────────────── */
.post-meta-cont h3 { color: var(--apogee-star-white); }
.post-meta-cont h3:hover,
.post-meta-cont h3 a:hover { color: var(--gx-action-hi); }
.post-meta__author,
.post-meta__date,
.ms-p--ttr { color: var(--gx-text-dim); }
.post-categories li a { color: var(--apogee-titanium) !important; cursor: default; }
/* Category pills are non-clickable cues, not links — drop the hover affordance. */
.ms-single-post .ms-sp--header .post-category__list .post-categories li:hover {
    background: var(--color-contrast-lower);
}

/* ── Category pills: one plasma hue per topic family ─────────────────────────
   Each pill carries data-tag; the hue says which family the topic belongs to,
   the same everywhere on the site, and every family sits on the plasma arc:
     proof systems  — ion blue   (ZKP, Sumcheck, zkVM)
     cryptography   — violet     (Cryptography, Lattices, Signatures, Post-Quantum)
     culture        — fuchsia    (AI, Decompilation, Games)
     economy, news  — plasma     (Tokenization, Economics, Release)
     tooling        — corona     (Utility, Infrastructure)
   Tinted label on a 10% wash with a 30% inner ring. Listing cards paint the
   pill on the <a>, article headers on the <li>; both theme rules are matched
   at higher specificity, hover included (pills are cues, not links). */
.post-categories li[data-tag="zkp"],
.post-categories li[data-tag="sumcheck"],
.post-categories li[data-tag="zkvm"]           { --tag: 86 159 255; }
.post-categories li[data-tag="cryptography"],
.post-categories li[data-tag="lattices"],
.post-categories li[data-tag="signatures"],
.post-categories li[data-tag="post-quantum"]   { --tag: 167 133 252; }
.post-categories li[data-tag="ai"],
.post-categories li[data-tag="decompilation"],
.post-categories li[data-tag="games"]          { --tag: 233 80 225; }
.post-categories li[data-tag="tokenization"],
.post-categories li[data-tag="economics"],
.post-categories li[data-tag="release"]        { --tag: 255 69 124; }
.post-categories li[data-tag="utility"],
.post-categories li[data-tag="infrastructure"] { --tag: 255 199 222; }

.ms-posts--card .grid-item .post-meta-cont .post-category li[data-tag] a,
.ms-posts--card .grid-item .post-meta-cont .post-category li[data-tag] a:hover,
.ms-single-post .ms-sp--header .post-category__list .post-categories li[data-tag],
.ms-single-post .ms-sp--header .post-category__list .post-categories li[data-tag]:hover {
    background: rgb(var(--tag) / 0.1);
    box-shadow: inset 0 0 0 1px rgb(var(--tag) / 0.3);
}
.post-categories li[data-tag] a { color: rgb(var(--tag)) !important; }

/* ── Smooth image load-in (heroes + card thumbnails) ──────────────────────────
   Heavy header/thumbnail images popped in abruptly once decoded. Show a plum
   placeholder colour in the media frame while loading, then fade the image in.
   main.js hides each loading image and adds .is-loaded once decoded; cached
   images and no-JS show immediately (the !important beats the inline opacity:0). */
.ms-single-post--img .media-wrapper,
.ms-posts--card .media-wrapper {
    background-color: var(--apogee-cosmic-navy);
}
/* The cover frame must carry the rounding itself: the theme rounds only the
   <img> (24pt), so the square placeholder above showed at every corner. Clip
   the image to the frame instead, so one antialiased edge draws the curve. */
.ms-single-post--img .media-wrapper {
    border-radius: 24pt;
    overflow: hidden;
}
.ms-single-post--img .media-wrapper img {
    border-radius: 0;
}
.ms-single-post--img .media-wrapper img,
.ms-posts--card .media-wrapper img {
    transition: opacity 0.6s ease;
}
.ms-single-post--img .media-wrapper img.is-loaded,
.ms-posts--card .media-wrapper img.is-loaded {
    opacity: 1 !important;
}

/* ── About / list / portfolio backgrounds ─────────────────────────────────── */
.ms-about--area,
.about-inner,
.ms-portfolio--wrap,
.project-list-wrap { background-color: var(--apogee-deep-orbit); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.ms-footer,
footer {
    background-color: var(--apogee-void) !important;
    border-top: 1px solid var(--gx-line-soft);
    color: var(--gx-text-dim);
}
/* The theme hardcodes its copyright grey (#959595) four classes deep. */
.ms-footer .container .copyright-area p { color: var(--gx-text-dim); }
.ms-footer .container .copyright-area p a { color: var(--gx-text-muted); }
.ms-footer .container .copyright-area p a:hover { color: var(--gx-action-hi); }

/* ── Theme components with hardcoded greys (Origin's principles grid) ────────
   .team-rules-area ships its label (#797979), card rules (#7E7E7E66) and copy
   (#797979) as literals rather than variables, so they are restated here at
   the theme's own specificity. */
.team-rules-area .team-rules-area-inner .top .heading-title { color: var(--gx-text-dim); }
.team-rules-area .team-rules-area-inner .border-line { border-color: var(--apogee-orbital-steel); }
.team-rules-area .team-rules-area-inner .middle .inner .content p,
.team-rules-area .team-rules-area-inner .middle .inner .content p.desc { color: var(--gx-text); }

/* ── _index.html backup slider (swiper / canvas) ──────────────────────────── */
.video-slide .slider-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 15%, rgba(4, 3, 6, 0.96) 100%);
}
.swiper-wrapper,
.swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
[data-swiper-parallax] {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
#dot-mesh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    background: var(--apogee-void);
}
.swiper-slide .slider-inner { position: relative; overflow: hidden; }
.swiper-slide .swiper-content { position: relative; z-index: 2; }
.swiper-button-next,
.swiper-button-prev { color: var(--apogee-star-white) !important; }
.swiper-button-next:hover,
.swiper-button-prev:hover { color: var(--gx-action-hi) !important; }
.swiper-pagination-progressbar-fill { background: var(--gx-plasma-arc) !important; }
.slide-range { color: var(--apogee-star-white); }

/* ── Error page ───────────────────────────────────────────────────────────── */
.error-page-inner { background-color: var(--apogee-void); }
.error-page-inner h1,
.error-page-inner h2 { color: var(--apogee-star-white); }
.error-page-inner p { color: var(--gx-text); }

/* ── Removed chrome: theme toggle, search, back-to-top ────────────────────── */
.ms_theme_mode { display: none; }
.main-header--widgets { display: none; }
.back-to-top { display: none !important; }

/* ── Small accent labels (tags) → titanium, not neon ──────────────────────── */
.tag,
.post-categories a,
.post-category a { color: var(--apogee-titanium); }

/* ── Menu trigger: icon only ──────────────────────────────────────────────────
   Drop the visible "Menu" label (the button's aria-label still names it) and the
   theme's little left-border divider (a leftover from when the label was there). */
.main-header__nav-trigger span { display: none !important; }
.main-header__nav-trigger { border-left: none !important; padding-left: 0 !important; }
/* Center the bars: the theme's 2px top nudge (to align with the old label) pushed
   them below centre now that it's icon-only. */
.main-header__nav-trigger-icon { margin-top: 0 !important; }
.main-header__nav-trigger-icon,
.main-header__nav-trigger-icon::before,
.main-header__nav-trigger-icon::after {
    background-color: var(--apogee-star-white);
}

/* ── Single-post header meta: space the date + label spans ─────────────────────
   The theme only inserts a separator before .post-author__name, so two plain
   <span>s (date + version) render flush ("July 7, 2026Practice Utility"). Add the
   same dot the post cards use between them. */
.ms-single-post .ms-sp--header .post-meta-date.meta-date-sp span:not(:first-child) {
    display: flex;
    align-items: center;
}
.ms-single-post .ms-sp--header .post-meta-date.meta-date-sp span:not(:first-child)::before {
    content: "";
    width: 3pt;
    height: 3pt;
    margin: 1pt 10pt 0;
    border-radius: 50%;
    background-color: rgba(168, 163, 176, 0.6);
}

/* ── Bottom breathing room for single-post pages with no prev/next nav ─────────
   The .post-navigation block's margin-bottom normally separates the article from
   the footer. Standalone pages without it (e.g. the practice utility) had their
   content sitting flush against the footer — restore the same gap when absent. */
main.ms-single-post:not(:has(.post-navigation)) {
    padding-bottom: calc(40px + var(--global--spacing-vertical, 30px));
}

/* ── Inner-page banner (Origin) ───────────────────────────────────────────────
   The theme accents `.heading-title strong span` with its own orange (#ef5d39),
   italic, over an underlined <strong> — three things this palette does not use.
   The accent word is the site's signature term, so it takes plasma rose (as the
   term does in running text), drops the italic, and swaps the underline for a
   thin plasma-arc rule so the emphasis reads as typographic, not as a link. */
.banner-area.inner .heading-title strong {
    text-decoration: none;
    border-bottom: 0;
    padding-bottom: calc(0.06em + 2px);   /* the old 2px border, now the rule's own band */
    background-image: linear-gradient(90deg, rgba(107, 85, 223, 0.85), rgba(167, 133, 252, 0.85) 28%, rgba(233, 80, 225, 0.9) 54%, rgba(255, 69, 124, 0.9) 78%, rgba(255, 199, 222, 0.85));
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
}
.banner-area.inner .heading-title strong span {
    color: var(--gx-signal);
    font-style: normal;
}
