@import url('https://fonts.googleapis.com/css2?family=Stalinist+One&display=swap');

/* ── Layout ───────────────────────────────────────────────────── */

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { display: none; }
}

/* ── Theme Variables ──────────────────────────────────────────── */

:root {
  --vm-color-accent:   #7c3aed;   /* violet */
  --vm-color-glow:     rgba(124, 58, 237, 0.18);
  --vm-color-cyan:     #06b6d4;
  --vm-color-gold:     #f59e0b;
  --vm-logo-text:      #0f172a;
}

[data-md-color-scheme="slate"] {
  --vm-color-accent:   #a78bfa;
  --vm-color-glow:     rgba(167, 139, 250, 0.18);
  --vm-color-cyan:     #22d3ee;
  --vm-color-gold:     #fbbf24;
  --vm-logo-text:      #e2e8f0;
}

/* ── Typography Overrides ─────────────────────────────────────── */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.hero-space h1 {
  font-family: 'Stalinist One', sans-serif !important;
  letter-spacing: 0.04em !important;
}

/* ── Space Background ─────────────────────────────────────────── */

/* Dark mode basic body background and cleanups */
html {
  background-color: #02040a;
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: transparent !important;
}
[data-md-color-scheme="slate"] body {
  background-color: transparent !important;
}
[data-md-color-scheme="slate"] .md-container,
[data-md-color-scheme="slate"] .md-main,
[data-md-color-scheme="slate"] .md-content,
[data-md-color-scheme="slate"] .md-sidebar {
  background-color: transparent !important;
  background-image: none !important;
}

/* Light mode basic body background and cleanups */
[data-md-color-scheme="default"] html {
  background-color: #f8fafc;
}
[data-md-color-scheme="default"] {
  --md-default-bg-color: transparent !important;
}
[data-md-color-scheme="default"] body {
  background-color: transparent !important;
}
[data-md-color-scheme="default"] .md-container,
[data-md-color-scheme="default"] .md-main,
[data-md-color-scheme="default"] .md-content,
[data-md-color-scheme="default"] .md-sidebar {
  background-color: transparent !important;
  background-image: none !important;
}

/* Glassmorphic Pane of Glass for Main Content Sheet */
.md-content__inner {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 2rem !important;
  margin-top: 1rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

body:not(:has(.hero-space)) .md-content__inner {
  position: relative;
  padding: 1.4rem 1.6rem !important;
  background:
    linear-gradient(180deg, rgba(6, 10, 22, 0.88), rgba(6, 10, 22, 0.76)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 18%, transparent 82%, rgba(232, 121, 249, 0.08));
  border: 2px solid rgba(34, 211, 238, 0.54);
  border-radius: 0.5rem;
  box-shadow:
    0 0 0 2px rgba(232, 121, 249, 0.18),
    0 0 0 4px rgba(34, 211, 238, 0.08),
    0 0 22px rgba(34, 211, 238, 0.16),
    0 0 34px rgba(232, 121, 249, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

body:not(:has(.hero-space)) .md-content__inner > :first-child {
  margin-top: 0;
}

body:not(:has(.hero-space)) .md-content__inner > :last-child {
  margin-bottom: 0;
}

body:not(:has(.hero-space)) .md-content__inner > h1:first-child {
  display: inline-block;
  margin-top: 0.05rem;
  margin-bottom: 0.2rem;
  color: #f8fafc;
  -webkit-text-stroke: 1.2px rgba(34, 211, 238, 0.92);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.34),
    0 0 10px rgba(34, 211, 238, 0.48),
    0 0 18px rgba(34, 211, 238, 0.26),
    1px 1px 0 rgba(0, 0, 0, 0.82),
    -1px 1px 0 rgba(0, 0, 0, 0.82),
    1px -1px 0 rgba(0, 0, 0, 0.82),
    -1px -1px 0 rgba(0, 0, 0, 0.82);
}

[data-md-color-scheme="slate"] .md-content__inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-md-color-scheme="default"] .md-content__inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Galaxy background container */
.galaxy-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

/* Core adjustments for dark vs light scheme */
[data-md-color-scheme="slate"] .galaxy-container {
  background-color: #02040a;
  opacity: 1;
}

[data-md-color-scheme="default"] .galaxy-container {
  background-color: #f8fafc;
  opacity: 0.85;
}

/* Static background nebula wash */
.galaxy-nebula-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

[data-md-color-scheme="slate"] .galaxy-nebula-static {
  background-image:
    /* Deep space purple wash */
    radial-gradient(circle at 15% 15%, rgba(124, 58, 237, 0.28) 0%, transparent 60%),
    /* Cyber cyan wash */
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.22) 0%, transparent 60%),
    /* Soft gold wash */
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    /* Ambient dust */
    radial-gradient(circle at 50% 50%, rgba(12, 4, 35, 0.6) 0%, transparent 90%);
}

[data-md-color-scheme="default"] .galaxy-nebula-static {
  background-image:
    /* Very soft light mode washes */
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
}

/* Galaxy rotation groups */
.galaxy-group {
  position: absolute;
  /* Centered around the astronomical core offset (52%, 46%) */
  left: 52%;
  top: 46%;
  width: 240vmax;
  height: 240vmax;
  margin-left: -120vmax;
  margin-top: -120vmax;
  transform-origin: center center;
  pointer-events: none;
}

/* Outer group rotates slower */
.galaxy-outer-group {
  animation: rotate-clockwise 220s linear infinite;
}

/* Inner group rotates faster */
.galaxy-inner-group {
  animation: rotate-clockwise 140s linear infinite;
}

/* Starfields */
.starfield {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240vmax;
  height: 240vmax;
  margin-left: -120vmax;
  margin-top: -120vmax;
  transform-origin: center center;
  pointer-events: none;
  background-repeat: repeat;
}

/* Hide stars in light mode for readability */
[data-md-color-scheme="default"] .starfield {
  display: none;
}

/* Parallax Starfields rotating at different speeds */
.starfield-slow {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.5) 0.8px, transparent 0.8px),
    radial-gradient(circle at 45% 72%, rgba(255, 255, 255, 0.4) 0.6px, transparent 0.6px),
    radial-gradient(circle at 88% 35%, rgba(255, 255, 255, 0.55) 0.9px, transparent 0.9px),
    radial-gradient(circle at 62% 85%, rgba(255, 255, 255, 0.45) 0.7px, transparent 0.7px),
    radial-gradient(circle at 25% 60%, rgba(255, 255, 255, 0.35) 0.6px, transparent 0.6px),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.5) 0.8px, transparent 0.8px);
  background-size: 97px 97px;
  animation: rotate-counter-clockwise 320s linear infinite;
}

.starfield-medium {
  background-image:
    radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.7) 1.2px, transparent 1.2px),
    radial-gradient(circle at 55% 25%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 80% 65%, rgba(255, 255, 255, 0.75) 1.4px, transparent 1.4px),
    radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.65) 1.2px, transparent 1.2px);
  background-size: 149px 149px;
  animation: rotate-clockwise 210s linear infinite;
}

.starfield-fast {
  /* This one is outside the group container so it doesn't share its origin/rotation */
  position: absolute;
  left: 52%;
  top: 46%;
  width: 240vmax;
  height: 240vmax;
  margin-left: -120vmax;
  margin-top: -120vmax;
  transform-origin: center center;
  pointer-events: none;
  background-repeat: repeat;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(215, 230, 255, 0.9) 1.8px, transparent 1.8px),
    radial-gradient(circle at 70% 80%, rgba(215, 230, 255, 0.95) 2px, transparent 2px),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 40%, rgba(215, 230, 255, 0.85) 1.6px, transparent 1.6px),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px);
  background-size: 251px 251px;
  animation: rotate-clockwise 110s linear infinite;
}

/* Galactic Core */
.galaxy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vmax;
  height: 80vmax;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  pointer-events: none;
  filter: blur(8px);
  mix-blend-mode: screen;
}

[data-md-color-scheme="slate"] .galaxy-core {
  background:
    /* bright white/gold nucleus */
    radial-gradient(circle at 50% 50%,
      rgba(255, 250, 235, 0.6) 0%,
      rgba(255, 220, 150, 0.4) 15%,
      rgba(167, 139, 250, 0.25) 35%,
      transparent 70%),
    /* outer core glow */
    radial-gradient(circle at 50% 50%,
      rgba(139, 92, 246, 0.3) 0%,
      rgba(76, 29, 149, 0.15) 50%,
      transparent 80%);
  animation: core-glow-slate 12s ease-in-out infinite alternate;
}

[data-md-color-scheme="default"] .galaxy-core {
  background:
    radial-gradient(circle at 50% 50%,
      rgba(124, 58, 237, 0.06) 0%,
      rgba(6, 182, 212, 0.03) 40%,
      transparent 70%);
  animation: core-glow-default 12s ease-in-out infinite alternate;
}

@keyframes core-glow-slate {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1.15; }
}

@keyframes core-glow-default {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* Spiral Arms */
.galaxy-arm {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  filter: blur(25px);
  mix-blend-mode: screen;
  pointer-events: none;
}

[data-md-color-scheme="default"] .galaxy-arm {
  filter: blur(35px);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Arm 1: Violet/purple, sweeping top-left */
.galaxy-arm-1 {
  width: 100vmax;
  height: 35vmax;
  /* Rotate and skew to create spiral curvature */
  transform: translate(-50%, -50%) rotate(25deg) skewX(-30deg) translate(-22vmax, -8vmax);
}

[data-md-color-scheme="slate"] .galaxy-arm-1 {
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.38) 0%, rgba(124, 58, 237, 0.12) 50%, transparent 80%);
}

[data-md-color-scheme="default"] .galaxy-arm-1 {
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
}

/* Arm 2: Cyan/teal, sweeping bottom-right */
.galaxy-arm-2 {
  width: 100vmax;
  height: 35vmax;
  transform: translate(-50%, -50%) rotate(205deg) skewX(-30deg) translate(-22vmax, -8vmax);
}

[data-md-color-scheme="slate"] .galaxy-arm-2 {
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.32) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 80%);
}

[data-md-color-scheme="default"] .galaxy-arm-2 {
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.03) 0%, transparent 70%);
}

/* Arm 3: Indigo/magenta, inner sweep */
.galaxy-arm-3 {
  width: 85vmax;
  height: 28vmax;
  transform: translate(-50%, -50%) rotate(115deg) skewX(-35deg) translate(-16vmax, -4vmax);
}

[data-md-color-scheme="slate"] .galaxy-arm-3 {
  background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.28) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 80%);
}

[data-md-color-scheme="default"] .galaxy-arm-3 {
  background: radial-gradient(ellipse at center, rgba(219, 39, 119, 0.02) 0%, transparent 70%);
}

/* Arm 4: Deep blue/purple, inner sweep */
.galaxy-arm-4 {
  width: 85vmax;
  height: 28vmax;
  transform: translate(-50%, -50%) rotate(295deg) skewX(-35deg) translate(-16vmax, -4vmax);
}

[data-md-color-scheme="slate"] .galaxy-arm-4 {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.28) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 80%);
}

[data-md-color-scheme="default"] .galaxy-arm-4 {
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.02) 0%, transparent 70%);
}

/* Rotational keyframes */
@keyframes rotate-clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate-counter-clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* ── Header ───────────────────────────────────────────────────── */

.md-header {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
  isolation: isolate;
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  margin: 0.85rem auto 0;
  will-change: background-color, border-color, box-shadow, backdrop-filter, -webkit-backdrop-filter;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
}

.md-header__inner {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  min-height: 4rem !important;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: rgba(5, 8, 20, 0.06);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 26%, rgba(0, 0, 0, 0.03)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 18%, transparent 82%, rgba(232, 121, 249, 0.08));
  background-blend-mode: screen, normal;
  backdrop-filter: blur(6px) saturate(1.02);
  -webkit-backdrop-filter: blur(6px) saturate(1.02);
  border: 1.5px solid rgba(232, 121, 249, 0.42);
  box-shadow:
    0 0 2px rgba(232, 121, 249, 0.22),
    0 0 10px rgba(232, 121, 249, 0.12),
    inset 0 0 6px rgba(232, 121, 249, 0.05);
}

[data-md-color-scheme="slate"] .md-header.vm-header-scrolled {
  background-color: rgba(5, 8, 20, 0.97);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 24%, rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.22), transparent 16%, transparent 84%, rgba(232, 121, 249, 0.14)),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.2), transparent 42%);
  background-blend-mode: screen, normal, screen;
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  border-color: rgba(34, 211, 238, 0.88);
  box-shadow:
    0 0 8px rgba(34, 211, 238, 0.42),
    0 0 26px rgba(34, 211, 238, 0.24),
    0 0 46px rgba(232, 121, 249, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34);
}

[data-md-color-scheme="default"] .md-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

/* Subtle digital grid across header */
.md-header::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #22d3ee;
  border-left: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 2;
}

.md-header::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #22d3ee;
  border-bottom: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 2;
}

.md-header::before,
.md-header::after {
  transition: opacity 0.28s ease;
}

.md-header.vm-header-scrolled::before,
.md-header.vm-header-scrolled::after {
  opacity: 0;
}

/* ── Logo ─────────────────────────────────────────────────────── */

.md-header__button.md-logo {
  display: flex !important;
  align-items: center !important;
  padding: 0.2rem 0.45rem 0.2rem 0.25rem !important;
  margin-right: 0.5rem !important;
  opacity: 1 !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  transition: text-shadow 0.25s ease;
}

.md-header__button.md-logo:hover {
  box-shadow: none;
}

.vm-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vm-logo-img {
  height: 2.4rem;
  width: 2.4rem;
  flex-shrink: 0;
}

[data-md-color-scheme="slate"] .md-logo img,
[data-md-color-scheme="slate"] .vm-logo-img,
[data-md-color-scheme="slate"] .hero-logo {
  filter: invert(1);
}

.vm-logo-text {
  font-family: var(--md-font-code-family, monospace);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--vm-logo-text);
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.vm-logo-tld {
  opacity: 0.65;
}

[data-md-color-scheme="slate"] .vm-logo-text {
  color: var(--vm-logo-text);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.38);
}

/* Mobile drawer logo */
label.md-nav__title[for="__drawer"] {
  font-size: 0;
  height: 3.8rem !important;
}

/* ── Header element ordering ──────────────────────────────────── */

label.md-header__button[for="__drawer"],
.md-header__button[data-md-component="drawer"] { order: 1 !important; }
.md-header__button.md-logo                     { order: 2 !important; }
.md-header__title                              { order: 3 !important; }
[data-md-component="palette"],
label[for="__search"],
[data-md-component="search"]                  { order: 4 !important; }

.md-header__title .md-header__topic:first-child {
  display: none;
}

.md-search {
  margin-right: 1.1rem;
}

@media screen and (max-width: 76em) {
  label.md-header__button[for="__drawer"],
  .md-header__button[data-md-component="drawer"] {
    margin-right: 0.2rem !important;
  }
  .md-header__title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .md-search {
    margin-right: 0.6rem;
    padding: 0 !important;
  }
}

@media screen and (min-width: 76.001em) {
  .md-header__title {
    display: none !important;
  }
}

@media screen and (max-width: 27em) {
  .md-header__button.md-logo .vm-logo-text {
    display: none !important;
  }
}

/* ── Top Nav Tabs ─────────────────────────────────────────────── */

.md-tabs {
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  margin: -1.5px auto 0;
  min-height: 2.85rem;
  overflow: visible;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-md-color-scheme="slate"] .md-tabs {
  background: transparent;
  border: 0;
  box-shadow: none;
}

[data-md-color-scheme="default"] .md-tabs {
  background-color: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.md-tabs > .md-grid {
  min-height: 2.85rem;
  overflow: visible;
}

.md-tabs__list {
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 2.85rem;
  overflow: visible;
  padding-bottom: 0.45rem;
  padding-left: 0.9rem;
  padding-right: 0.25rem;
}

.md-tabs__item {
  height: auto;
  overflow: visible;
  margin-right: 0.15rem;
  padding-left: 0;
}

.md-tabs__item:first-child {
  margin-left: 0.35rem;
}

.md-tabs__link {
  display: flex;
  align-items: center;
  position: relative;
  height: auto;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.72;
  min-height: 2.15rem;
  margin: -1.5px 0 0 !important;
  padding: 0.5rem 1rem 0.42rem;
  border: 1.5px solid rgba(232, 121, 249, 0.42);
  border-top-color: transparent;
  border-bottom-color: rgba(232, 121, 249, 0.68);
  border-radius: 0 0 0.8rem 0.8rem;
  background:
    linear-gradient(
      120deg,
      rgba(232, 121, 249, 0.06) 0%,
      rgba(232, 121, 249, 0.06) 42%,
      rgba(255, 255, 255, 0) 50%,
      rgba(232, 121, 249, 0.06) 58%,
      rgba(232, 121, 249, 0.06) 100%
    ),
    rgba(5, 8, 20, 0.08);
  box-shadow:
    0 2px 6px rgba(232, 121, 249, 0.22),
    0 0 14px rgba(232, 121, 249, 0.16),
    inset 0 -8px 12px rgba(232, 121, 249, 0.1),
    inset 0 0 18px rgba(232, 121, 249, 0.05);
  overflow: visible;
  transform-origin: top center;
  transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease, border-radius 0.22s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.md-tabs__link:hover {
  opacity: 1;
  color: var(--vm-color-cyan) !important;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.42);
  border-color: rgba(34, 211, 238, 0.78);
  border-top-color: rgba(34, 211, 238, 0.78);
  border-radius: 999px;
  background-color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(34, 211, 238, 0.15) 0%,
    rgba(34, 211, 238, 0.15) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(34, 211, 238, 0.15) 55%,
    rgba(34, 211, 238, 0.15) 100%
  );
  background-size: 200% 100%;
  animation: vm-shimmer 0.6s ease-out forwards;
  transform: translateY(0.42rem);
  box-shadow:
    0 2px 7px rgba(34, 211, 238, 0.34),
    0 0 18px rgba(34, 211, 238, 0.26),
    0 0 8px rgba(232, 121, 249, 0.2),
    inset 0 0 12px rgba(34, 211, 238, 0.18),
    inset 0 0 22px rgba(34, 211, 238, 0.08);
}

.md-tabs__link--active,
.md-tabs__item--active .md-tabs__link {
  opacity: 1;
  color: var(--md-default-fg-color) !important;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.38);
  border-color: #4ade80;
  border-top-color: transparent;
  border-bottom-color: #86efac;
  transform: translateY(0.18rem);
  box-shadow:
    0 2px 7px rgba(74, 222, 128, 0.36),
    0 0 18px rgba(74, 222, 128, 0.26),
    0 0 8px rgba(134, 239, 172, 0.26),
    inset 0 -9px 14px rgba(74, 222, 128, 0.18),
    inset 0 0 20px rgba(74, 222, 128, 0.08);
}

.md-tabs__link::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: -0.1rem;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #4ade80, #86efac, transparent);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.42);
  transition: opacity 0.2s ease;
}

.md-tabs__link:hover::after,
.md-tabs__link--active::after,
.md-tabs__item--active .md-tabs__link::after {
  opacity: 1;
}

.md-tabs__link:hover::after {
  opacity: 0;
}

.md-tabs__item--active .md-tabs__link:hover {
  color: var(--md-default-fg-color) !important;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.38);
  border-color: #4ade80;
  border-top-color: transparent;
  border-bottom-color: #86efac;
  border-radius: 0 0 0.8rem 0.8rem;
  background:
    linear-gradient(
      120deg,
      rgba(232, 121, 249, 0.06) 0%,
      rgba(232, 121, 249, 0.06) 42%,
      rgba(255, 255, 255, 0) 50%,
      rgba(232, 121, 249, 0.06) 58%,
      rgba(232, 121, 249, 0.06) 100%
    ),
    rgba(5, 8, 20, 0.08);
  animation: none;
  transform: translateY(0.18rem);
  box-shadow:
    0 2px 7px rgba(74, 222, 128, 0.36),
    0 0 18px rgba(74, 222, 128, 0.26),
    0 0 8px rgba(134, 239, 172, 0.26),
    inset 0 -9px 14px rgba(74, 222, 128, 0.18),
    inset 0 0 20px rgba(74, 222, 128, 0.08);
}

.md-tabs__item--active .md-tabs__link:hover::after {
  opacity: 1;
}

/* ── Search ───────────────────────────────────────────────────── */

.md-search__form {
  border-radius: 0;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

[data-md-color-scheme="slate"] .md-search__form {
  background-color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(251, 146, 60, 0.08) 0%,
    rgba(251, 146, 60, 0.08) 40%,
    rgba(255, 255, 255, 0) 50%,
    rgba(251, 146, 60, 0.08) 60%,
    rgba(251, 146, 60, 0.08) 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  border: 1.5px solid rgba(251, 146, 60, 0.76);
  box-shadow:
    0 0 4px rgba(251, 146, 60, 0.46),
    0 0 14px rgba(251, 146, 60, 0.3),
    0 0 26px rgba(245, 158, 11, 0.14),
    inset 0 0 8px rgba(251, 146, 60, 0.18),
    inset 0 0 18px rgba(245, 158, 11, 0.06);
}

[data-md-color-scheme="slate"] .md-search__form:hover {
  border-color: #fbbf24;
  box-shadow:
    0 0 5px rgba(251, 191, 36, 0.58),
    0 0 18px rgba(251, 146, 60, 0.42),
    0 0 36px rgba(245, 158, 11, 0.22),
    inset 0 0 10px rgba(251, 191, 36, 0.22),
    inset 0 0 22px rgba(245, 158, 11, 0.08);
}

[data-md-color-scheme="slate"] .md-search__form:focus-within {
  border-color: #fbbf24;
  box-shadow:
    0 0 5px rgba(251, 191, 36, 0.64),
    0 0 20px rgba(251, 146, 60, 0.46),
    0 0 40px rgba(245, 158, 11, 0.24),
    inset 0 0 12px rgba(251, 191, 36, 0.26),
    inset 0 0 24px rgba(245, 158, 11, 0.1);
}

[data-md-color-scheme="slate"] .md-search__overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-md-color-scheme="slate"] [data-md-toggle="search"]:checked ~ .md-header .md-search__inner {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

[data-md-color-scheme="slate"] [data-md-toggle="search"]:checked ~ .md-header .md-search__form {
  border: 1.5px solid rgba(251, 191, 36, 0.86);
  border-bottom: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow:
    0 0 5px rgba(251, 191, 36, 0.64),
    0 0 20px rgba(251, 146, 60, 0.46),
    0 0 40px rgba(245, 158, 11, 0.24),
    inset 0 0 12px rgba(251, 191, 36, 0.18);
}

[data-md-color-scheme="slate"] .md-search__output {
  --md-typeset-a-color: #22d3ee;
  --md-accent-fg-color: #ffffff;
  margin-top: 0;
  border: 1.5px solid rgba(251, 191, 36, 0.86);
  border-top: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 191, 36, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(251, 146, 60, 0.16), rgba(120, 53, 15, 0.14)),
    rgba(5, 8, 20, 0.42);
  box-shadow:
    0 8px 18px rgba(251, 146, 60, 0.22),
    0 0 30px rgba(245, 158, 11, 0.16),
    inset 0 0 18px rgba(251, 191, 36, 0.12),
    inset 0 -10px 18px rgba(251, 146, 60, 0.1);
}

[data-md-color-scheme="slate"] .md-search-result__meta {
  border-bottom: 1px solid rgba(251, 191, 36, 0.42);
  color: #fef3c7;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.32);
}

[data-md-color-scheme="slate"] .md-search-result__item {
  color: #fff7ed;
}

[data-md-color-scheme="slate"] .md-search-result__link {
  color: #22d3ee !important;
}

[data-md-color-scheme="slate"] .md-search-result__link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

[data-md-color-scheme="slate"] .md-search-result__link .md-search-result__title,
[data-md-color-scheme="slate"] .md-search-result__article h1,
[data-md-color-scheme="slate"] .md-search-result__article h2,
[data-md-color-scheme="slate"] .md-search-result__article h3,
[data-md-color-scheme="slate"] .md-search-result__article h1 *,
[data-md-color-scheme="slate"] .md-search-result__article h2 *,
[data-md-color-scheme="slate"] .md-search-result__article h3 *,
[data-md-color-scheme="slate"] .md-search-result__article > :is(h1, h2, h3),
[data-md-color-scheme="slate"] .md-search-result__title {
  font-family: inherit !important;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0;
  line-height: 1.35;
  color: #22d3ee !important;
  text-shadow: 0 0 9px rgba(34, 211, 238, 0.42);
}

[data-md-color-scheme="slate"] .md-search-result__link:hover .md-search-result__title {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.58);
}

[data-md-color-scheme="slate"] .md-search-result__teaser {
  color: #fed7aa !important;
  text-shadow: none;
}

[data-md-color-scheme="slate"] .md-search-result__article {
  color: #fed7aa !important;
}

[data-md-color-scheme="default"] .md-search__form {
  background-color: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

[data-md-color-scheme="default"] .md-search__form:focus-within {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
}

/* ── Hero Section ─────────────────────────────────────────────── */

.hero-space {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  margin-bottom: 0;
  position: relative;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-md-color-scheme="slate"] .hero-space {
  background: transparent !important;
  border: 1.5px solid #e879f9 !important;
  box-shadow:
    0 0 4px rgba(232, 121, 249, 0.48),
    0 0 16px rgba(232, 121, 249, 0.34),
    0 0 32px rgba(232, 121, 249, 0.18) !important;
}

[data-md-color-scheme="default"] .hero-space {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Animated nebula rings */
.hero-space::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #22d3ee;
  border-left: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 2;
  animation: none;
}

.hero-space::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #22d3ee;
  border-bottom: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--vm-color-accent);
  font-family: var(--md-font-code-family, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--vm-color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--vm-color-accent);
  animation: vm-pulse 2.4s infinite;
}

@keyframes vm-pulse {
  0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.7); }
  70%  { transform: scale(1);   box-shadow: 0 0 0 7px rgba(167, 139, 250, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.hero-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.hero-space h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--vm-color-accent) 0%, var(--vm-color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 0.5px #02040a;
  filter:
    drop-shadow(1px 1px 0px rgba(167, 139, 250, 0.5))
    drop-shadow(2px 2px 0px rgba(5, 8, 20, 0.95))
    drop-shadow(8px 8px 6px rgba(0, 0, 0, 0.95));
}

[data-md-color-scheme="default"] .hero-space h1 {
  background: linear-gradient(135deg, #5b21b6 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 0.5px #0f172a;
  filter:
    drop-shadow(1px 1px 0px rgba(124, 58, 237, 0.4))
    drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.95))
    drop-shadow(8px 8px 6px rgba(15, 23, 42, 0.5));
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #000000;
  max-width: 580px;
  margin: 0.75rem auto 2rem;
  line-height: 1.6;
  text-shadow: 
    0 0 40px rgba(255, 255, 255, 0.82),
    0 0 25px rgba(255, 255, 255, 0.72),
    0 0 12px rgba(255, 255, 255, 0.62),
    0 0 60px rgba(232, 121, 249, 0.58),
    0 0 20px rgba(232, 121, 249, 0.44);
}

[data-md-color-scheme="default"] .hero-subtitle {
  color: #0f172a;
  text-shadow: 
    0 0 40px rgba(255, 255, 255, 0.82),
    0 0 25px rgba(255, 255, 255, 0.72),
    0 0 12px rgba(255, 255, 255, 0.62);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

html [data-md-color-scheme] .hero-actions .md-button {
  position: relative;
  border-radius: 0;
  border: 1.5px solid #f59e0b;
  background-color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(245, 158, 11, 0.1) 40%,
    rgba(255, 255, 255, 0) 50%,
    rgba(245, 158, 11, 0.1) 60%,
    rgba(245, 158, 11, 0.1) 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  color: #fde68a;
  text-shadow: 0 0 4px rgba(245, 158, 11, 0.42);
  font-family: var(--md-text-font-family);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.6rem;
  box-shadow: 
    0 0 14px rgba(245, 158, 11, 0.42),
    0 0 4px rgba(251, 191, 36, 0.3),
    inset 0 0 8px rgba(245, 158, 11, 0.24);
  transition: 
    border-radius 0.3s ease, 
    border-color 0.3s ease, 
    border-width 0.3s ease,
    box-shadow 0.3s ease, 
    color 0.3s ease;
}

html [data-md-color-scheme="default"] .hero-actions .md-button {
  border: 1.5px solid #a855f7;
  background-color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(168, 85, 247, 0.08) 0%,
    rgba(168, 85, 247, 0.08) 40%,
    rgba(255, 255, 255, 0) 50%,
    rgba(168, 85, 247, 0.08) 60%,
    rgba(168, 85, 247, 0.08) 100%
  );
  color: #6b21a8;
  text-shadow: none;
  box-shadow: 
    0 0 12px rgba(168, 85, 247, 0.35),
    0 0 4px rgba(168, 85, 247, 0.25),
    inset 0 0 6px rgba(168, 85, 247, 0.25);
}

html [data-md-color-scheme] .hero-actions .md-button::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: 10px; height: 10px;
  border-top: 2px solid #22d3ee;
  border-left: 2px solid #22d3ee;
  transition: all 0.3s ease;
}

html [data-md-color-scheme="default"] .hero-actions .md-button::before {
  border-top: 2px solid #06b6d4;
  border-left: 2px solid #06b6d4;
}

html [data-md-color-scheme] .hero-actions .md-button::after {
  content: "";
  position: absolute;
  bottom: -4px; right: -4px;
  width: 10px; height: 10px;
  border-bottom: 2px solid #22d3ee;
  border-right: 2px solid #22d3ee;
  transition: all 0.3s ease;
}

html [data-md-color-scheme="default"] .hero-actions .md-button::after {
  border-bottom: 2px solid #06b6d4;
  border-right: 2px solid #06b6d4;
}

html [data-md-color-scheme] .hero-actions .md-button:hover {
  transform: translateY(-1px);
  border-radius: 10px;
  border: 2px solid #22d3ee;
  color: #ffffff;
  background-color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(34, 211, 238, 0.15) 0%,
    rgba(34, 211, 238, 0.15) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(34, 211, 238, 0.15) 55%,
    rgba(34, 211, 238, 0.15) 100%
  );
  animation: vm-shimmer 0.6s ease-out forwards;
  box-shadow: 
    0 0 24px rgba(34, 211, 238, 0.8),
    0 0 8px rgba(34, 211, 238, 0.5),
    inset 0 0 12px rgba(34, 211, 238, 0.4);
}

html [data-md-color-scheme="default"] .hero-actions .md-button:hover {
  border: 2px solid #06b6d4;
  background-color: transparent;
  background-image: linear-gradient(
    120deg,
    rgba(6, 182, 212, 0.15) 0%,
    rgba(6, 182, 212, 0.15) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(6, 182, 212, 0.15) 55%,
    rgba(6, 182, 212, 0.15) 100%
  );
  box-shadow: 
    0 0 20px rgba(6, 182, 212, 0.7),
    0 0 6px rgba(6, 182, 212, 0.4),
    inset 0 0 10px rgba(6, 182, 212, 0.3);
}

@keyframes vm-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

html [data-md-color-scheme] .hero-actions .md-button:hover::before {
  top: 0; left: 0;
  opacity: 0;
}

html [data-md-color-scheme] .hero-actions .md-button:hover::after {
  bottom: 0; right: 0;
  opacity: 0;
}

@media screen and (max-width: 36.25em) {
  .hero-header {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .hero-space h1 {
    font-size: 2.2rem !important;
  }
}

/* ── Grid Cards ───────────────────────────────────────────────── */

.md-typeset .grid.cards > ul > li {
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
  border-top: 3px solid var(--md-default-fg-color--lighter);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease,
              opacity 0.25s ease,
              border-top-color 0.25s ease;
}

.md-typeset .grid.cards > ul > li h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18), 0 0 20px var(--vm-color-glow);
}

.md-typeset .grid.cards > ul:has(li:hover) > li:not(:hover) {
  opacity: 0.6;
  filter: brightness(0.9);
  box-shadow: none;
}

/* ── Code Blocks ──────────────────────────────────────────────── */

.md-typeset .highlight,
.md-typeset pre:not(.highlight pre) {
  position: relative;
  border-radius: 10px !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

[data-md-color-scheme="default"] .md-typeset .highlight,
[data-md-color-scheme="default"] .md-typeset pre:not(.highlight pre) {
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07) !important;
}

.md-typeset .highlight:hover,
.md-typeset pre:not(.highlight pre):hover {
  border-color: rgba(167, 139, 250, 0.4) !important;
}

.md-typeset .highlight::before,
.md-typeset pre:not(.highlight pre)::before {
  content: "";
  display: block;
  height: 28px;
  background-color: rgba(10, 14, 30, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background-image:
    radial-gradient(circle, #ff5f56 5px, transparent 5.5px),
    radial-gradient(circle, #ffbd2e 5px, transparent 5.5px),
    radial-gradient(circle, #27c93f 5px, transparent 5.5px);
  background-size: 14px 14px, 14px 14px, 14px 14px;
  background-position: 12px 7px, 30px 7px, 48px 7px;
  background-repeat: no-repeat;
}

.md-typeset pre {
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

.md-typeset .highlight pre > code,
.md-typeset pre:not(.highlight pre) > code {
  font-family: var(--md-font-code-family) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  padding: 0.85rem 1.15rem !important;
  display: block;
  overflow-x: auto;
}

/* ── Tables ───────────────────────────────────────────────────── */

.md-typeset table:not([class]) {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--md-default-fg-color--lighter);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-code-bg-color);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Tags ─────────────────────────────────────────────────────── */

.md-typeset .md-tag {
  border-radius: 12px;
  padding: 0.2em 0.65em;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: var(--vm-color-accent);
  font-weight: 500;
  transition: all 0.2s ease;
}

.md-typeset .md-tag:hover {
  background: rgba(124, 58, 237, 0.22);
  transform: translateY(-1px);
}

/* ── Admonitions ──────────────────────────────────────────────── */

.md-typeset .admonition {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ── Footer ───────────────────────────────────────────────────── */

.md-footer {
  position: relative;
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  margin: 0.8rem auto 0.6rem;
  overflow: visible;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-md-color-scheme="slate"] .md-footer {
  background-color: transparent;
  border: 1.5px solid #e879f9;
  box-shadow:
    0 0 4px rgba(232, 121, 249, 0.48),
    0 0 16px rgba(232, 121, 249, 0.34),
    0 0 32px rgba(232, 121, 249, 0.18),
    inset 0 0 8px rgba(232, 121, 249, 0.12);
}

[data-md-color-scheme="default"] .md-footer {
  background-color: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.md-footer-meta {
  background-color: transparent !important;
  overflow: visible;
  padding: 0.85rem 1.2rem;
}

.md-footer-meta__inner,
.md-copyright {
  overflow: visible;
}

.md-footer .md-copyright__highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: #ffffff !important;
  text-shadow: none;
  transition: color 0.25s ease;
}

.md-footer .md-copyright__highlight::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  right: -2.4rem;
  bottom: -0.3rem;
  left: -2.4rem;
  z-index: -1;
  border-radius: 999px;
  background: transparent;
  filter: blur(12px);
  pointer-events: none;
  transform: scaleX(1);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.md-footer .md-copyright__highlight:hover {
  color: #000000 !important;
}

.md-footer .md-copyright__highlight:hover::before {
  opacity: 0;
  transform: scaleX(0.18);
}

.md-footer .md-copyright__highlight::after {
  content: "";
  position: absolute;
  top: -0.3rem;
  right: -2.4rem;
  bottom: -0.3rem;
  left: -2.4rem;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.78) 14%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.78) 86%, transparent 100%);
  filter: blur(12px);
  pointer-events: none;
  transform: scaleX(0.18);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.md-footer .md-copyright__highlight:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.md-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #22d3ee;
  border-left: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 2;
}

.md-footer::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #22d3ee;
  border-bottom: 2px solid #22d3ee;
  pointer-events: none;
  z-index: 2;
}

.md-footer__link {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

[data-md-color-scheme="slate"] .md-footer__link:hover {
  background-color: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

[data-md-color-scheme="default"] .md-footer__link:hover {
  background-color: rgba(124, 58, 237, 0.06);
  transform: translateY(-2px);
}

.vm-footer-nav-inline a {
  color: #22d3ee !important;
  filter:
    drop-shadow(0 0 6px rgba(34, 211, 238, 0.9))
    drop-shadow(0 0 14px rgba(34, 211, 238, 0.58))
    drop-shadow(0 0 24px rgba(34, 211, 238, 0.3));
  transition: color 0.2s ease, filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.92;
}

.vm-footer-nav-inline a svg,
.vm-footer-nav-inline a svg * {
  fill: currentColor !important;
  color: inherit !important;
}

.vm-footer-nav-inline a:hover {
  color: #ffffff !important;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(34, 211, 238, 0.9))
    drop-shadow(0 0 28px rgba(34, 211, 238, 0.56));
  opacity: 1;
  transform: translateY(-1px);
}

.vm-footer-nav-inline a:hover svg,
.vm-footer-nav-inline a:hover svg * {
  fill: #ffffff !important;
}

/* ── Page Title ───────────────────────────────────────────────── */

.vm-history-title {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(34, 211, 238, 0.9) !important;
  paint-order: stroke fill;
  text-shadow:
    4px 5px 0px rgba(0, 0, 0, 1),
    6px 7px 0px rgba(0, 0, 0, 0.85),
    8px 10px 8px rgba(0, 0, 0, 0.8) !important;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(167, 139, 250, 0.8) 47%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(34, 211, 238, 0.8) 53%,
    transparent 60%,
    transparent 100%
  ) !important;
  background-size: 300% 100% !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: vm-title-shimmer 9s linear infinite;
}

@keyframes vm-title-shimmer {
  0%   { background-position: 100% 0; }
  33%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

/* ── Content Panel ────────────────────────────────────────────── */

.vm-panel {
  position: relative;
  padding: 1.4rem 1.6rem;
  background:
    linear-gradient(180deg, rgba(6, 10, 22, 0.88), rgba(6, 10, 22, 0.76)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 18%, transparent 82%, rgba(232, 121, 249, 0.08));
  border: 2px solid rgba(34, 211, 238, 0.54);
  border-radius: 0.75rem;
  box-shadow:
    0 0 0 2px rgba(232, 121, 249, 0.18),
    0 0 0 4px rgba(34, 211, 238, 0.08),
    0 0 22px rgba(34, 211, 238, 0.16),
    0 0 34px rgba(232, 121, 249, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

.vm-panel > :first-child { margin-top: 0; }
.vm-panel > :last-child  { margin-bottom: 0; }

/* ── Inline Code ──────────────────────────────────────────────── */

.md-typeset code {
  border-radius: 4px;
  padding: 0.15em 0.35em;
}

/* ── Focus / Accessibility ────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--vm-color-accent) !important;
  outline-offset: 3px !important;
}

[data-md-color-scheme="slate"] :focus-visible {
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}
