/* ============================================================
   QUANTUM CODEX — Global Design System (Evolved Futuristic)
   Dark academic × Glassmorphism × Quantum neon aesthetics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ──────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void:        #04060d;
  --bg-deep:        #080c18;
  --bg-surface:     #0c1222;
  --bg-card:        #10172a;
  --bg-card-hover:  #141f38;
  --bg-glass:       rgba(8, 12, 24, 0.75);

  /* Accents */
  --accent-cyan:    #00d4ff;
  --accent-indigo:  #7c6bff;
  --accent-magenta: #e040fb;
  --accent-amber:   #ffb830;
  --accent-green:   #00ff9d;

  /* Semantic Colors */
  --color-success:  #00ff9d;
  --color-warning:  #ffb830;
  --color-error:    #ff4a4a;
  --color-info:     #00d4ff;

  /* Glow variants */
  --glow-cyan:      0 0 20px rgba(0, 212, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.15);
  --glow-indigo:    0 0 20px rgba(124, 107, 255, 0.4), 0 0 60px rgba(124, 107, 255, 0.15);
  --glow-magenta:   0 0 20px rgba(224, 64, 251, 0.4), 0 0 60px rgba(224, 64, 251, 0.15);
  --glow-green:     0 0 20px rgba(0, 255, 157, 0.4), 0 0 60px rgba(0, 255, 157, 0.15);
  --glow-success:   0 0 20px rgba(0, 255, 157, 0.4);
  --glow-warning:   0 0 20px rgba(255, 184, 48, 0.4);
  --glow-error:     0 0 20px rgba(255, 74, 74, 0.4);
  --glow-info:      0 0 20px rgba(0, 212, 255, 0.4);

  /* Typography */
  --font-sans:      'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono:      'Space Mono', 'Fira Code', monospace;

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #8a96b4;
  --text-muted:     #4e5872;
  --text-accent:    var(--accent-cyan);
  --text-inverse:   #04060d;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-soft:    rgba(255, 255, 255, 0.1);
  --border-accent:  rgba(0, 212, 255, 0.35);

  /* Spacing */
  --nav-height:     72px;
  --section-pad-y:  100px;
  --section-pad-x:  clamp(20px, 5vw, 100px);

  /* Transitions */
  --ease-smooth:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:       180ms;
  --dur-base:       320ms;
  --dur-slow:       600ms;

  /* Border radius */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
}

/* ──────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: rgba(0, 212, 255, 0.25); color: var(--text-primary); }

a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ──────────────────────────────────────────
   SCROLLBAR
   ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.5); }

/* ──────────────────────────────────────────
   UTILITY CLASSES
   ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ──────────────────────────────────────────
   NAVIGATION & TAB BAR
   ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding-inline: var(--section-pad-x);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--dur-base) var(--ease-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  transition: opacity var(--dur-fast) ease;
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo-icon {
  width: 34px; height: 34px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.nav-logo svg { width: 34px; height: 34px; }

/* Tab Bar Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(12, 18, 34, 0.6);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  max-width: 100%;
}

.nav-tab-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--dur-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-tab-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
  font-weight: 600;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, box-shadow var(--dur-fast) ease !important;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: var(--glow-cyan) !important;
}

/* ──────────────────────────────────────────
   TAB CONTENT PANELS
   ────────────────────────────────────────── */
.app-tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.app-tab-panel.active {
  display: block;
  opacity: 1;
}

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 20%, var(--bg-void) 85%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding-inline: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.08);
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title .brand { color: #ffffff; }
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 60%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #04060d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--dur-base) var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(12, 18, 34, 0.5);
  backdrop-filter: blur(10px);
  transition: all var(--dur-base) var(--ease-smooth);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scroll-line-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-line-anim {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ──────────────────────────────────────────
   SECTION COMMON
   ────────────────────────────────────────── */
section { padding-block: var(--section-pad-y); }

.section-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible { opacity: 1; transform: none; }

/* ──────────────────────────────────────────
   SIMULATIONS LIBRARY
   ────────────────────────────────────────── */
#simulations { background: var(--bg-deep); }

.sims-header { margin-bottom: 54px; }

.sims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.sim-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-smooth);
  text-decoration: none;
  display: block;
}

.sim-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--accent-cyan) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-base) ease;
}

.sim-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); }
.sim-card:hover::before { opacity: 1; }

.sim-card--featured { border-color: rgba(0, 212, 255, 0.2); }
.sim-card--featured::before { opacity: 0.4; }
.sim-card--featured:hover::before { opacity: 1; }

.sim-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-live {
  background: rgba(0, 255, 157, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 157, 0.25);
}

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live .badge-dot { animation: pulse-dot 1.5s ease infinite; }

.sim-card__canvas-preview {
  width: 100%;
  height: 170px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.sim-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.sim-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.sim-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-surface);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border: 1px solid var(--border-subtle);
}

.sim-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: gap var(--dur-fast) ease;
}

.sim-card:hover .sim-card__link { gap: 10px; }

/* ──────────────────────────────────────────
   ABOUT SECTION
   ────────────────────────────────────────── */
#about {
  background: var(--bg-void);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,107,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-subtitle { max-width: 460px; margin-bottom: 24px; }

.about-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-glyph {
  width: 320px; height: 320px;
  position: relative;
}

.about-glyph canvas {
  width: 100%; height: 100%;
  border-radius: 50%;
}

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 40px;
  background: var(--bg-void);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-credit span { color: var(--accent-cyan); }

/* ──────────────────────────────────────────
   NOISE TEXTURE OVERLAY
   ────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ──────────────────────────────────────────
   GLOBAL DESIGN SYSTEM COMPONENTS
   ────────────────────────────────────────── */

/* Typography */
.text-h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 0.5em; }
.text-h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.5em; }
.text-h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5em; color: var(--text-primary); }
.text-body { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); font-family: var(--font-sans); }
.text-mono { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.05em; }

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--dur-fast) var(--ease-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-void);
  border: none;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  background: #33e0ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
  color: var(--accent-cyan);
}

/* Cards */
.q-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--dur-base) var(--ease-smooth);
}

.q-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.q-card-info {
  background: rgba(0, 212, 255, 0.03);
  border-left: 3px solid var(--accent-cyan);
}

/* Layout */
.q-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.q-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

/* Animations */
.anim-fade-in { animation: fadeIn var(--dur-slow) var(--ease-smooth) forwards; opacity: 0; }
.anim-slide-up { animation: slideUp var(--dur-slow) var(--ease-smooth) forwards; opacity: 0; transform: translateY(20px); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-pad-y: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .sims-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root { --section-pad-x: 18px; }
  .hero-actions { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── KaTeX Math Preview Blocks (Explore Card Previews) ─── */
.preview-math-block {
  display: flex;
  align-items: center;
  justify-content: center;
  /* inherit the color set inline (accent-cyan / magenta / green) */
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px currentColor);
}
.preview-math-block .katex {
  color: inherit;
  font-size: 1.5em;
}
.preview-math-block .katex-display {
  margin: 0;
}

