/* ==========================================
   OrbitCMS Theme (Vanilla CSS)
   ========================================== */

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

:root {
  /* Colors - Light Theme */
  --bg-page: #ffffff;
  --bg-sidebar: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.8);
  --text-main: #334155;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  
  --accent: #ff2e5c;        /* Orbit Pink */
  --accent-hover: #e11d48;
  --accent-light: #fff1f2;
  --accent-light-text: #e11d48;
  
  --link-blue: #0ea5e9;     /* Sky Blue */

  --border: #e2e8f0;
  --card-bg: #ffffff;
  --code-bg: #f8fafc;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-content-width: 820px;
}

[data-theme="dark"] {
  /* Colors - Dark Theme (Orbit Docs Exact Palette) */
  --bg-page: #040a16;       /* Extremely deep space blue */
  --bg-sidebar: #080e1a;    /* Dark slate blue for sidebar */
  --bg-header: rgba(4, 10, 22, 0.8);
  --text-main: #94a3b8;     /* Muted slate gray */
  --text-muted: #64748b;
  --text-heading: #ffffff;
  
  --accent: #ff2e5c;        /* Orbit Pink/Red Active accent */
  --accent-hover: #ff5a79;
  --accent-light: rgba(255, 46, 92, 0.15);
  --accent-light-text: #ff5a79;
  
  --link-blue: #38bdf8;     /* Bright Orbit Sky Blue */

  --border: #1e293b;
  --card-bg: #0f172a;
  --code-bg: #0f172a;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  padding-top: 64px; /* Clear fixed header overlap */
}

a {
  color: var(--link-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout Wrapper */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 64px; /* Space for sticky header */
}

/* Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: var(--bg-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(2rem, calc((100vw - 1220px)/2));
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-link:hover, .header-link.active {
  color: var(--text-heading);
}

/* Responsive Collapsible Sidebar */
.site-sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  height: calc(100vh - 64px);
  position: fixed;
  top: 64px;
  left: 0;
  overflow-y: auto;
  padding: 1.5rem;
  z-index: 900;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-category {
  margin-bottom: 1rem;
}

/* HTML details/summary styling for collapsible folders */
.sidebar-category details {
  width: 100%;
}

.sidebar-category summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
}

.sidebar-category summary::-webkit-details-marker {
  display: none;
}

.sidebar-category summary:hover {
  background-color: var(--border);
}

.sidebar-category summary .caret-icon {
  transition: transform 0.2s ease;
}

.sidebar-category details[open] summary .caret-icon {
  transform: rotate(90deg);
}

.sidebar-links {
  list-style: none;
  padding-left: 0.75rem;
  margin-top: 0.25rem;
  border-left: 1px solid var(--border);
  margin-left: 1.25rem;
}

.sidebar-links li {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-link:hover {
  color: var(--text-heading);
  background-color: var(--border);
  transform: translateX(4px);
}

@keyframes active-pulsate {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 92, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 46, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 92, 0); }
}

.sidebar-link.active {
  color: #ffffff !important;
  background-color: var(--accent) !important;
  font-weight: 600;
  animation: active-pulsate 2.5s infinite;
}

/* Main Layout containing reading pane and right TOC sidebar */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  justify-content: center;
}

/* When there's no TOC (homepage) */
.main-content.no-toc {
  grid-template-columns: 1fr;
}

.article-container {
  width: 100%;
  max-width: var(--max-content-width);
  animation: fade-in-up 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Typography matching Orbit Docs */
.content-body {
  font-size: 1.025rem;
  color: var(--text-main);
  line-height: 1.75;
}

.content-body h1, .content-body h2, .content-body h3, .content-body h4 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.content-body h1 {
  font-size: 2.25rem;
  margin-top: 0;
  color: var(--link-blue);
}

.content-body h2 {
  font-size: 1.6rem;
  color: var(--link-blue);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.content-body h3 {
  font-size: 1.25rem;
}

.content-body p {
  margin-bottom: 1.25rem;
}

.content-body ul, .content-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

/* Table of Contents Right Sidebar */
.toc-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.toc-links {
  list-style: none;
}

.toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-link:hover {
  color: var(--accent);
}

/* Callout Styles */
.callout {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background-color: var(--accent-light);
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}

.callout code {
  background-color: rgba(255, 46, 92, 0.1);
  color: var(--accent);
}

.callout-info {
  border-left-color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.1);
}

.callout-info code {
  background-color: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
}

.callout-warning {
  border-left-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

.callout-warning code {
  background-color: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

/* Code Blocks & Inlines */
code {
  font-family: var(--font-mono);
  background-color: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent-light-text);
  transition: background-color 0.3s ease;
}

pre {
  background-color: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  position: relative; /* required for copy button placement */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

pre code {
  padding: 0;
  background-color: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
}

/* Interactive Copy Code Button */
.copy-code-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  opacity: 0; /* hidden by default */
}

pre:hover .copy-code-btn {
  opacity: 1; /* show on code block hover */
}

.copy-code-btn:hover {
  color: #ffffff;
  border-color: #475569;
  background-color: rgba(30, 41, 59, 0.9);
}

/* Scroll Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background-color: var(--accent);
  width: 0%;
  z-index: 1002;
  transition: width-out 0.1s ease;
  box-shadow: 0 0 8px var(--accent);
}

/* Home / Radial Animation */
.radial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  margin-top: 1rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Concentric Animated Circles styling */
.radial-composer {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-ring {
  border-radius: 50%;
  position: absolute;
  border: 2px solid transparent;
}

.ring-outer {
  width: 300px;
  height: 300px;
  border: 2px dashed var(--link-blue);
  opacity: 0.45;
  animation: spin-clockwise 40s linear infinite;
}

.ring-middle {
  width: 250px;
  height: 250px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spin-counter-clockwise 15s linear infinite;
}

.ring-inner {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--text-muted);
  opacity: 0.25;
  animation: spin-clockwise 25s linear infinite;
}

.ring-center {
  width: 140px;
  height: 140px;
  background-color: var(--code-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: var(--text-heading);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 0 25px rgba(56, 189, 248, 0.15);
  z-index: 10;
  transition: all 0.3s ease;
}

.radial-composer:hover .ring-center {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 35px rgba(255, 46, 92, 0.25);
  transform: scale(1.02);
}

/* Orbit Satellite Particles */
.satellite {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.satellite-pink {
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.satellite-blue {
  background-color: var(--link-blue);
  box-shadow: 0 0 10px var(--link-blue), 0 0 20px var(--link-blue);
}

/* Animations */
@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card {
  animation: fade-in-up 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* UI Elements */
.btn-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 46, 92, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-started:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 46, 92, 0.6);
  color: #fff;
}

/* Dark mode toggle */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover svg {
  transform: rotate(360deg);
}

.theme-toggle-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

/* Hamburger button for mobile */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-heading);
  padding: 0.5rem;
}

/* Responsive Table styling */
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  display: block;
}

.content-body th, .content-body td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.content-body th {
  font-weight: 600;
  background-color: var(--bg-sidebar);
}

/* Blog layouts */
.blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 0 15px rgba(255, 46, 92, 0.1);
  border-color: var(--accent);
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-title a {
  color: var(--text-heading);
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

/* Orbit-inspired public experience */
.site-header { box-shadow:0 1px 0 rgba(148,163,184,.04); }
.site-header::after { background:linear-gradient(90deg,transparent,var(--accent),var(--link-blue),transparent); bottom:-1px; content:""; height:1px; left:20%; opacity:.5; position:absolute; right:20%; }
.brand-link { letter-spacing:-.035em; }.header-nav { gap:1.15rem; }
.home-shell { min-height:calc(100vh - 64px); overflow:hidden; padding:clamp(3rem,8vw,7rem) max(1.25rem,calc((100vw - 1220px)/2)); position:relative; }.home-shell::before { background:radial-gradient(circle at 75% 35%,rgba(14,165,233,.12),transparent 27%),radial-gradient(circle at 20% 70%,rgba(255,46,92,.10),transparent 26%); content:""; inset:0; pointer-events:none; position:absolute; }
.home-hero { align-items:center; display:grid; gap:clamp(2rem,7vw,8rem); grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr); margin:auto; max-width:1160px; min-height:500px; position:relative; }.hero-copy { position:relative; z-index:1; }.eyebrow-public { color:var(--link-blue); font-size:.72rem; font-weight:800; letter-spacing:.16em; }.hero-copy h1 { color:var(--text-heading); font-size:clamp(2.9rem,6vw,5.5rem); letter-spacing:-.065em; line-height:.98; margin:1rem 0 1.4rem; max-width:720px; }.hero-copy h1 em { color:var(--accent); font-style:normal; text-shadow:0 0 35px rgba(255,46,92,.25); }.hero-copy p { font-size:1.12rem; max-width:600px; }.hero-actions { align-items:center; display:flex; flex-wrap:wrap; gap:1.25rem; margin-top:2rem; }.primary-action { align-items:center; background:var(--accent); border-radius:7px; box-shadow:0 12px 28px rgba(255,46,92,.25); color:#fff; display:inline-flex; font-weight:700; gap:1.5rem; padding:.85rem 1.1rem  .85rem 1.2rem; }.primary-action span { font-size:1.35rem; line-height:0; transition:transform .25s ease; }.primary-action:hover { color:#fff; }.primary-action:hover span { transform:translateX(4px); }.text-action { font-weight:700; }
.hero-orbit { aspect-ratio:1; margin:auto; max-width:450px; position:relative; width:100%; }.orbit-glow { background:radial-gradient(circle,rgba(56,189,248,.22),rgba(255,46,92,.08) 34%,transparent 67%); inset:-10%; position:absolute; }.orbit-ring { border:1px solid rgba(56,189,248,.5); border-radius:50%; inset:8%; position:absolute; }.ring-a { animation:orbit-spin 25s linear infinite; border-style:dashed; }.ring-b { animation:orbit-spin-reverse 16s linear infinite; border-color:rgba(255,46,92,.72); border-left-color:transparent; border-right-color:transparent; inset:20%; }.ring-c { animation:orbit-spin 11s linear infinite; border-color:rgba(148,163,184,.45); border-bottom-color:transparent; inset:33%; }.orbit-core { align-items:center; background:var(--code-bg); border:1px solid var(--border); border-radius:50%; box-shadow:0 0 0 15px rgba(4,10,22,.2),0 0 60px rgba(56,189,248,.13); color:var(--text-heading); display:flex; flex-direction:column; font-size:1.4rem; font-weight:800; inset:36%; justify-content:center; letter-spacing:.1em; position:absolute; }.orbit-core small { color:var(--accent); font-size:.5rem; letter-spacing:.17em; margin-top:.4rem; }.orbit-dot { background:var(--accent); border-radius:50%; box-shadow:0 0 14px var(--accent); height:11px; position:absolute; width:11px; }.dot-one { animation:orbit-dot-a 6s linear infinite; }.dot-two { animation:orbit-dot-b 9s linear infinite; background:var(--link-blue); box-shadow:0 0 14px var(--link-blue); }.dot-three { animation:pulse-dot 2s ease-in-out infinite; left:50%; top:7%; }
.home-features { border-top:1px solid var(--border); display:grid; grid-template-columns:repeat(3,1fr); margin:3rem auto 0; max-width:1160px; position:relative; }.home-features a { border-right:1px solid var(--border); color:var(--text-main); padding:2rem 2rem 2rem 0; transition:background .25s ease,transform .25s ease; }.home-features a + a { padding-left:2rem; }.home-features a:last-child { border-right:0; }.home-features a:hover { color:var(--text-main); transform:translateY(-4px); }.feature-icon { color:var(--accent); font-family:var(--font-mono); font-size:.75rem; }.home-features h2 { color:var(--text-heading); font-size:1.15rem; margin:.75rem 0 .4rem; }.home-features p { font-size:.9rem; margin:0; }
.blog-shell { margin:0 auto; max-width:1100px; padding:clamp(3rem,7vw,6rem) 2rem; }.blog-hero { border-bottom:1px solid var(--border); max-width:760px; padding-bottom:2.5rem; }.blog-hero h1 { color:var(--text-heading); font-size:clamp(2.5rem,5vw,4.5rem); letter-spacing:-.06em; line-height:1; margin:.8rem 0 1rem; }.blog-hero p { font-size:1.1rem; }.category-pills { display:flex; flex-wrap:wrap; gap:.6rem; margin:1.5rem 0 2.5rem; }.category-pill { background:var(--card-bg); border:1px solid var(--border); border-radius:999px; color:var(--text-main); font-size:.85rem; font-weight:600; padding:.45rem .8rem; }.category-pill span { color:var(--text-muted); font-size:.7rem; margin-left:.45rem; }.category-pill:hover,.category-pill.active { background:var(--accent); border-color:var(--accent); color:#fff; }.category-pill.active span { color:#fff; }.blog-grid { display:grid; gap:1rem; grid-template-columns:repeat(2,minmax(0,1fr)); }.blog-card { border-radius:10px; box-shadow:none; display:flex; flex-direction:column; margin:0; min-height:260px; padding:1.7rem; }.blog-card:nth-child(3n+1) { grid-column:span 2; }.blog-card:nth-child(3n+1) .blog-title { font-size:2rem; max-width:700px; }.blog-card-meta { align-items:center; color:var(--text-muted); display:flex; font-size:.75rem; font-weight:700; gap:.75rem; justify-content:space-between; letter-spacing:.05em; text-transform:uppercase; }.blog-card-meta span { color:var(--accent); }.blog-card p { color:var(--text-main); margin:.5rem 0 1.25rem; }.article-arrow { font-weight:700; margin-top:auto; }.article-arrow span { display:inline-block; font-size:1.2rem; transition:transform .2s ease; }.article-arrow:hover span { transform:translateX(4px); }.empty-public { grid-column:1/-1; padding:5rem 1rem; text-align:center; }.empty-public h2 { color:var(--text-heading); }
.article-container > h1 { color:var(--link-blue)!important; font-size:clamp(2.4rem,5vw,3.8rem); letter-spacing:-.055em; line-height:1.08; }.article-container > h1::after { background:linear-gradient(90deg,var(--accent),transparent); content:""; display:block; height:2px; margin-top:1.2rem; width:92px; }.content-body img,.content-body video { border:1px solid var(--border); border-radius:9px; display:block; height:auto; margin:1.5rem 0; max-width:100%; }.content-body audio { display:block; margin:1.5rem 0; max-width:100%; }.content-body iframe { border:1px solid var(--border); border-radius:9px; max-width:100%; }.content-body blockquote { border-left:3px solid var(--accent); color:var(--text-main); margin:1.5rem 0; padding:.5rem 1.1rem; }.reveal { animation:fade-in-up .65s cubic-bezier(.22,.8,.25,1) both; animation-delay:var(--delay,0ms); }
@keyframes orbit-spin { to { transform:rotate(360deg); } } @keyframes orbit-spin-reverse { to { transform:rotate(-360deg); } } @keyframes orbit-dot-a { from { left:8%; top:50%; } 25% { left:50%; top:7%; } 50% { left:92%; top:50%; } 75% { left:50%; top:93%; } to { left:8%; top:50%; } } @keyframes orbit-dot-b { from { left:50%; top:20%; } 25% { left:80%; top:50%; } 50% { left:50%; top:80%; } 75% { left:20%; top:50%; } to { left:50%; top:20%; } } @keyframes pulse-dot { 50% { transform:scale(1.75); } }

/* Mobile Responsiveness */
@media (max-width: 1080px) {
  .site-sidebar {
    transform: translateX(-100%);
  }
  .site-sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 2rem;
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .home-hero { grid-template-columns:1fr; text-align:center; }.hero-copy p { margin-left:auto; margin-right:auto; }.hero-actions { justify-content:center; }.hero-orbit { max-width:340px; order:-1; }.home-features { grid-template-columns:1fr; }.home-features a,.home-features a + a { border-bottom:1px solid var(--border); border-right:0; padding:1.5rem 0; }.blog-grid { grid-template-columns:1fr; }.blog-card:nth-child(3n+1) { grid-column:auto; }.blog-card:nth-child(3n+1) .blog-title { font-size:1.5rem; }
}

@media (max-width: 576px) {
  .site-header {
    padding: 0 1rem;
  }
  .main-content {
    padding: 1.5rem 1rem;
  }
  .content-body h1 {
    font-size: 1.75rem;
  }
  .header-nav { gap:.55rem; }.header-link { font-size:.82rem; }.brand-link { font-size:1rem; }.home-shell { padding:2.5rem 1.25rem; }.hero-copy h1 { font-size:2.85rem; }.hero-orbit { max-width:260px; }.blog-shell { padding:3rem 1.1rem; }.blog-card { min-height:0; padding:1.3rem; }.blog-hero h1 { font-size:2.6rem; }
}

.header-brand-wrap{align-items:center;display:flex;gap:.75rem}.mobile-nav-toggle{display:none}.site-footer{align-items:flex-start;border-top:1px solid var(--border);color:var(--text-muted);display:flex;gap:2rem;justify-content:space-between;margin-top:3rem;padding:2.25rem max(1.25rem,calc((100vw - 1220px)/2))}.site-footer p{font-size:.85rem;margin:.65rem 0 0}.footer-links{display:flex;flex-wrap:wrap;gap:1.2rem;padding-top:.3rem}.footer-links a{font-size:.85rem;font-weight:700}@media(max-width:576px){.mobile-nav-toggle{align-items:center;background:transparent;border:0;color:var(--text-heading);display:flex;padding:.45rem}.header-nav{background:var(--bg-sidebar);border:1px solid var(--border);border-radius:8px;box-shadow:0 18px 38px rgba(0,0,0,.24);display:none;flex-direction:column;gap:.25rem;padding:.6rem;position:absolute;right:1rem;top:64px;width:min(220px,calc(100vw - 2rem))}.header-nav.open{display:flex}.header-link{border-radius:5px;padding:.55rem .65rem;width:100%}.theme-toggle-btn{align-self:flex-start}.site-footer{flex-direction:column;margin-top:1.5rem;padding:1.75rem 1.25rem}.footer-links{padding:0}}@media(prefers-reduced-motion:reduce),[data-motion="reduced"]{*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}[data-motion="off"] .hero-orbit,[data-motion="off"] .reveal{animation:none!important}

/* ==========================================
   Theme Templates - Styles overrides
   ========================================== */

/* 1. Minimal Theme Overrides */
body.theme-minimal {
  --bg-page: #ffffff;
  --bg-sidebar: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.9);
  --border: #f1f5f9;
  --card-bg: #ffffff;
  --code-bg: #f8fafc;
  --text-main: #334155;
  --text-heading: #0f172a;
  --accent: #0f172a;
  --accent-hover: #475569;
  --accent-light: #f1f5f9;
  --accent-light-text: #0f172a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="dark"] body.theme-minimal {
  --bg-page: #0a0e17;
  --bg-sidebar: #0f172a;
  --bg-header: rgba(10, 14, 23, 0.9);
  --border: #1e293b;
  --card-bg: #0a0e17;
  --code-bg: #1e293b;
  --text-main: #94a3b8;
  --text-heading: #ffffff;
  --accent: #ffffff;
  --accent-hover: #cbd5e1;
  --accent-light: #1e293b;
  --accent-light-text: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.theme-minimal .hero-orbit {
  display: none !important;
}
.theme-minimal .home-hero {
  grid-template-columns: 1fr !important;
  text-align: center !important;
  justify-content: center !important;
}
.theme-minimal .hero-copy {
  max-width: 680px;
  margin: 0 auto;
}
.theme-minimal .hero-actions {
  justify-content: center;
}

/* 2. Editorial Theme Overrides */
body.theme-editorial {
  --bg-page: #faf6f0;
  --bg-sidebar: #f5eee6;
  --bg-header: rgba(250, 246, 240, 0.9);
  --border: #e6dfd5;
  --card-bg: #faf6f0;
  --code-bg: #f5eee6;
  --text-main: #2b2b2b;
  --text-heading: #1a1a1a;
  --accent: #8b5a2b;
  --accent-hover: #5c3a1a;
  --accent-light: #f5eee6;
  --accent-light-text: #8b5a2b;
  --font-sans: 'Lora', 'Georgia', serif;
}
[data-theme="dark"] body.theme-editorial {
  --bg-page: #1a1714;
  --bg-sidebar: #12100e;
  --bg-header: rgba(26, 23, 20, 0.9);
  --border: #2e2823;
  --card-bg: #1a1714;
  --code-bg: #12100e;
  --text-main: #d3c7bc;
  --text-heading: #ffffff;
  --accent: #d2a172;
  --accent-hover: #e6b98f;
  --accent-light: #2e2823;
  --accent-light-text: #d2a172;
  --font-sans: 'Lora', 'Georgia', serif;
}
.theme-editorial h1,
.theme-editorial h2,
.theme-editorial h3,
.theme-editorial h4,
.theme-editorial .brand-link span,
.theme-editorial .sidebar-title {
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-weight: 700 !important;
}
.theme-editorial .hero-orbit {
  opacity: 0.2;
}
.theme-editorial .orbit-glow {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%) !important;
}
.theme-editorial .primary-action {
  border-radius: 0 !important;
  font-family: 'Playfair Display', serif;
}

/* 3. Forest Whisper Theme */
body.theme-forest {
  --bg-page: #f4f6f4;
  --bg-sidebar: #ebefeb;
  --bg-header: rgba(244, 246, 244, 0.9);
  --border: #d8e2d8;
  --card-bg: #f4f6f4;
  --code-bg: #ebefeb;
  --text-main: #2f3e2f;
  --text-heading: #172417;
  --accent: #2e7d32;
  --accent-hover: #1b5e20;
  --accent-light: #e8f5e9;
  --accent-light-text: #2e7d32;
  --font-sans: 'Inter', system-ui, sans-serif;
}
[data-theme="dark"] body.theme-forest {
  --bg-page: #0d120d;
  --bg-sidebar: #070a07;
  --bg-header: rgba(13, 18, 13, 0.9);
  --border: #1b261b;
  --card-bg: #0d120d;
  --code-bg: #1b261b;
  --text-main: #a2b0a2;
  --text-heading: #ffffff;
  --accent: #81c784;
  --accent-hover: #a5d6a7;
  --accent-light: #1b261b;
  --accent-light-text: #81c784;
  --font-sans: 'Inter', system-ui, sans-serif;
}
.theme-forest .hero-orbit {
  opacity: 0.15;
}
.theme-forest .orbit-glow {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%) !important;
}

/* 4. Deep Space Theme */
body.theme-space {
  --bg-page: #09090b;
  --bg-sidebar: #121214;
  --bg-header: rgba(9, 9, 11, 0.9);
  --border: #202024;
  --card-bg: #09090b;
  --code-bg: #121214;
  --text-main: #a1a1aa;
  --text-heading: #ffffff;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.15);
  --accent-light-text: #38bdf8;
  --font-sans: 'Inter', system-ui, sans-serif;
}
[data-theme="dark"] body.theme-space {
  --bg-page: #030303;
  --bg-sidebar: #0a0a0c;
  --bg-header: rgba(3, 3, 3, 0.9);
  --border: #16161a;
  --card-bg: #030303;
  --code-bg: #16161a;
  --text-main: #8a8a93;
  --text-heading: #ffffff;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --accent-light: rgba(34, 211, 238, 0.15);
  --accent-light-text: #22d3ee;
  --font-sans: 'Inter', system-ui, sans-serif;
}
.theme-space .orbit-glow {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%) !important;
}
