    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #070714;
      --bg-elev: #0b0b16;
      --surface: #12121f;
      --surface-2: #1a1a2c;
      --border: rgba(255,255,255,0.07);
      --border-strong: rgba(255,255,255,0.13);
      --accent: #4f6bff;
      --accent-2: #a06bff;
      --accent-mid: #7b96ff;
      --accent-soft: rgba(79,107,255,0.13);
      --accent-soft-2: rgba(160,107,255,0.10);
      --glow: rgba(79,107,255,0.35);
      --text: #f4f6fb;
      --text-2: #c9cfdd;
      --muted: #8f96ab;
      --faint: #5b6377;
      --radius: 12px;
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      --font-head: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
      --font-mono: 'IBM Plex Mono', 'SFMono-Regular', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-body);
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      /* Faint dot grid + soft accent glows */
      background-image:
        radial-gradient(circle, rgba(143,153,187,0.05) 1px, transparent 1px),
        radial-gradient(ellipse 75% 55% at 50% -12%, rgba(79,107,255,0.16) 0%, transparent 72%),
        radial-gradient(ellipse 45% 40% at 92% 45%, rgba(160,107,255,0.07) 0%, transparent 62%),
        radial-gradient(ellipse 40% 35% at 6% 80%, rgba(79,107,255,0.06) 0%, transparent 60%);
      background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
      background-attachment: fixed;
    }

    /* Ultra-faint film grain over the whole page */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 40;
      pointer-events: none;
      opacity: 0.035;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 180px 180px;
    }

    h1, h2, h3 { font-family: var(--font-head); }

    ::selection { background: rgba(79,107,255,0.4); color: #fff; }

    /* NAV */
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(7,7,20,0.72);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      padding: 0 2rem;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.05rem;
      font-family: var(--font-head);
      color: var(--text);
    }

    .nav-brand svg { width: 28px; height: 28px; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 500;
      transition: color 0.15s;
    }
    .nav-links a:hover { color: var(--accent-mid); }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      border-radius: var(--radius);
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      transition: all 0.15s;
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      color: #fff;
      box-shadow: 0 4px 20px rgba(79,107,255,0.35);
    }
    .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 28px rgba(79,107,255,0.5); }

    .btn-outline {
      background: rgba(255,255,255,0.04);
      color: var(--text-2);
      border: 1px solid rgba(255,255,255,0.13);
    }
    .btn-outline:hover { border-color: var(--accent); color: var(--accent-mid); background: rgba(79,107,255,0.1); }

    /* HERO */
    .hero {
      padding: 5.5rem 2rem 4.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      background-image:
        radial-gradient(ellipse 70% 55% at 50% -5%, rgba(79,107,255,0.26) 0%, transparent 70%),
        radial-gradient(ellipse 45% 40% at 82% 115%, rgba(160,107,255,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 12% 100%, rgba(79,107,255,0.12) 0%, transparent 60%);
    }

    /* Diagonal light beam across the hero */
    .hero::after {
      content: '';
      position: absolute;
      top: -40%;
      left: -15%;
      width: 60%;
      height: 180%;
      transform: rotate(14deg);
      background: linear-gradient(100deg, transparent 40%, rgba(160,107,255,0.08) 50%, rgba(79,107,255,0.07) 56%, transparent 66%);
      pointer-events: none;
    }

    .hero > * { position: relative; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--accent-soft);
      border: 1px solid rgba(160,107,255,0.4);
      color: #c0b4ff;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
    }

    .hero-badge:hover {
      background: var(--accent-soft-2);
      border-color: #c084fc;
      color: #d9c9ff;
      transform: translateY(-1px);
    }

    .hero h1 {
      font-size: clamp(2.2rem, 5vw, 3.5rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 1.25rem;
      color: var(--text);
    }

    .hero h1 span {
      background: linear-gradient(90deg, #7b96ff, #c084fc);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero p {
      font-size: clamp(1rem, 2vw, 1.2rem);
      color: var(--muted);
      max-width: 600px;
      margin: 0 auto 2.5rem;
    }

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

    .hero-actions .btn { padding: 12px 24px; font-size: 1rem; }

    /* ARCHITECTURE DIAGRAM */
    .arch-section {
      padding: 4.5rem 2rem;
      max-width: 1100px;
      margin: 0 auto;
      text-align: center;
      position: relative;
    }

    .arch-section h2 {
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .arch-section p {
      color: var(--muted);
      margin-bottom: 2.5rem;
    }

    .arch-diagram {
      background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 1.5rem;
      text-align: center;
      box-shadow: 0 24px 70px rgba(0,0,0,0.4);
      position: relative;
      overflow: hidden;
    }

    /* Gradient hairline along the top edge */
    .arch-diagram::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(123,150,255,0.6), rgba(160,107,255,0.6), transparent);
    }

    .arch-diagram svg {
      width: 100%;
      height: auto;
      display: block;
    }

    /* FEATURES */
    .features-section {
      padding: 4.5rem 2rem;
      background: var(--bg-elev);
      border-top: 1px solid rgba(255,255,255,0.06);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      position: relative;
    }

    .features-inner {
      max-width: 1100px;
      margin: 0 auto;
    }

    .features-inner h2 {
      text-align: center;
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .features-inner > p {
      text-align: center;
      color: var(--muted);
      margin-bottom: 3rem;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .feature-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.5rem;
      position: relative;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    }

    .feature-card::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      border-radius: 14px 14px 0 0;
      background: linear-gradient(90deg, transparent, rgba(123,150,255,0.45), rgba(160,107,255,0.45), transparent);
    }

    .feature-card:hover {
      border-color: rgba(123,150,255,0.4);
      box-shadow: 0 12px 40px rgba(79,107,255,0.12);
      transform: translateY(-2px);
    }

    .feature-icon {
      width: 40px;
      height: 40px;
      background: var(--accent-soft);
      border: 1px solid rgba(160,107,255,0.25);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      color: var(--accent-mid);
    }

    .feature-card h3 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }

    .feature-card p {
      font-size: 0.875rem;
      color: var(--muted);
      line-height: 1.55;
    }

    /* QUICKSTART */
    .quickstart-section {
      padding: 4.5rem 2rem;
      max-width: 800px;
      margin: 0 auto;
    }

    .quickstart-section h2 {
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      text-align: center;
    }

    .quickstart-section > p {
      text-align: center;
      color: var(--muted);
      margin-bottom: 2.5rem;
    }

    .tabs {
      display: flex;
      gap: 4px;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 1rem;
    }

    .tab-btn {
      flex: 1;
      padding: 7px 12px;
      border-radius: 7px;
      border: none;
      background: transparent;
      font-size: 0.875rem;
      font-weight: 600;
      font-family: var(--font-body);
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
    }

    .tab-btn.active {
      background: var(--surface-2);
      color: var(--text);
      box-shadow: 0 2px 12px rgba(0,0,0,0.35);
      border: 1px solid rgba(123,150,255,0.3);
    }

    .tab-content { display: none; }
    .tab-content.active { display: block; }

    .code-block {
      background: #0c0c1a;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      overflow-x: auto;
      position: relative;
    }

    .code-block::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(123,150,255,0.45), rgba(160,107,255,0.45), transparent);
    }

    .code-block pre {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      line-height: 1.7;
      color: var(--text-2);
      white-space: pre;
    }

    .code-block .comment { color: var(--faint); }
    .code-block .cmd { color: #7b96ff; }
    .code-block .flag { color: #b39dff; }

    /* REPOS */
    .repos-section {
      padding: 4.5rem 2rem;
      background: var(--bg-elev);
      border-top: 1px solid rgba(255,255,255,0.06);
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .repos-inner {
      max-width: 1000px;
      margin: 0 auto;
    }

    .repos-inner h2 {
      text-align: center;
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .repos-inner > p {
      text-align: center;
      color: var(--muted);
      margin-bottom: 2.5rem;
    }

    .repos-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1rem;
    }

    .repo-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      text-decoration: none;
      color: inherit;
      position: relative;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .repo-card::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      border-radius: var(--radius) var(--radius) 0 0;
      background: linear-gradient(90deg, transparent, rgba(123,150,255,0.45), rgba(160,107,255,0.45), transparent);
    }

    .repo-card:hover {
      border-color: rgba(123,150,255,0.4);
      box-shadow: 0 10px 34px rgba(79,107,255,0.13);
      transform: translateY(-2px);
    }

    .repo-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .repo-card-header svg { color: var(--accent-mid); flex-shrink: 0; }

    .repo-card h3 {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--accent-mid);
    }

    .repo-card p {
      font-size: 0.83rem;
      color: var(--muted);
      line-height: 1.45;
    }

    .repo-lang {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }

    .lang-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    /* IMAGES */
    .images-section {
      padding: 4.5rem 2rem;
      max-width: 900px;
      margin: 0 auto;
    }

    .images-section h2 {
      text-align: center;
      font-size: 1.7rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .images-section > p {
      text-align: center;
      color: var(--muted);
      margin-bottom: 2.5rem;
    }

    .images-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.875rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .images-table th {
      text-align: left;
      padding: 10px 14px;
      background: rgba(255,255,255,0.04);
      border-bottom: 1px solid var(--border);
      font-weight: 600;
      color: var(--text-2);
    }

    .images-table td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      color: var(--text-2);
    }

    .images-table tr:last-child td { border-bottom: none; }

    .images-table tr:hover td { background: rgba(79,107,255,0.08); }

    .images-table code {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      background: rgba(255,255,255,0.06);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--text-2);
    }

    .images-table a {
      color: var(--text-2);
      text-decoration: none;
      border-bottom: 1px dashed rgba(123,150,255,0.4);
      transition: color 0.15s, border-color 0.15s;
    }
    .images-table a:hover { color: var(--accent-mid); border-bottom-color: var(--accent-mid); }

    /* FOOTER */
    footer {
      padding: 2.5rem 2rem;
      border-top: 1px solid rgba(255,255,255,0.06);
      text-align: center;
      color: var(--muted);
      font-size: 0.875rem;
    }

    footer a { color: var(--accent-mid); text-decoration: none; }
    footer a:hover { text-decoration: underline; color: #b39dff; }

    footer .footer-links {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }

    /* SECTION LABEL */
    .section-label {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: linear-gradient(90deg, #7b96ff, #b07bff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 0.5rem;
    }

    @media (max-width: 640px) {
      .site-nav { padding: 0 1rem; }
      .nav-links { display: none; }
      .hero { padding: 3rem 1rem 2.5rem; }
      .arch-diagram { padding: 1rem; }
    }

    /* DOCS */
    .docs-layout {
      display: flex;
      gap: 2.5rem;
      max-width: 1400px;
      margin: 0 auto;
      padding: 3rem 2rem 4.5rem;
      align-items: flex-start;
    }

    .docs-sidebar {
      flex: 0 0 240px;
      position: sticky;
      top: 84px;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .docs-sidebar-head { margin-bottom: 0.75rem; }

    .docs-home-link {
      font-family: var(--font-head);
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--text);
      text-decoration: none;
      display: inline-block;
    }

    .docs-nav { display: flex; flex-direction: column; gap: 0.15rem; }

    .docs-nav-link {
      display: block;
      color: var(--muted);
      font-size: 0.9rem;
      text-decoration: none;
      padding: 6px 0;
      border-radius: 8px;
      transition: color 0.15s, background 0.15s;
    }
    .docs-nav-link:hover { color: var(--accent-mid); background: rgba(79,107,255,0.08); }
    .docs-nav-link.active { color: var(--accent-mid); background: var(--accent-soft); font-weight: 600; }

    .docs-content-wrap { flex: 1; min-width: 0; }

    .docs-content {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem 2.75rem;
      max-width: 1000px;
      position: relative;
      overflow: hidden;
    }

    .docs-content::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(123,150,255,0.6), rgba(160,107,255,0.6), transparent);
    }

    .docs-content h1, .docs-content h2, .docs-content h3, .docs-content h4 {
      font-family: var(--font-head);
      color: var(--text);
      line-height: 1.3;
    }
    .docs-content h1 { font-size: 1.9rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
    .docs-content h2 { font-size: 1.35rem; margin: 2.2rem 0 0.9rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
    .docs-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
    .docs-content h3 { font-size: 1.1rem; margin: 1.8rem 0 0.7rem; }
    .docs-content h4 { font-size: 1rem; margin: 1.4rem 0 0.6rem; }

    .docs-content p { color: var(--text-2); margin-bottom: 1rem; line-height: 1.7; }
    .docs-content strong { color: var(--text); }
    .docs-content em { color: var(--text-2); }

    .docs-content a {
      color: var(--accent-mid);
      text-decoration: none;
      border-bottom: 1px dashed rgba(123,150,255,0.4);
      transition: color 0.15s, border-color 0.15s;
    }
    .docs-content a:hover { color: #b39dff; border-bottom-color: #b39dff; }

    .docs-content ul, .docs-content ol { margin: 0 0 1rem 1.4rem; color: var(--text-2); }
    .docs-content li { margin-bottom: 0.4rem; line-height: 1.65; }
    .docs-content li::marker { color: var(--accent-mid); }

    .docs-content blockquote {
      border-left: 3px solid var(--accent);
      background: var(--accent-soft);
      padding: 0.6rem 1rem;
      border-radius: 0 10px 10px 0;
      margin: 0 0 1.25rem;
      color: var(--text-2);
    }
    .docs-content blockquote p { margin-bottom: 0.3rem; }
    .docs-content blockquote p:last-child { margin-bottom: 0; }

    .docs-content code {
      font-family: var(--font-mono);
      font-size: 0.85em;
      background: rgba(255,255,255,0.07);
      padding: 2px 6px;
      border-radius: 5px;
      color: #c9b8ff;
    }

    .docs-content pre {
      background: #0c0c1a;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      overflow-x: auto;
      margin: 0 0 1.25rem;
      position: relative;
    }
    .docs-content pre::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(123,150,255,0.45), rgba(160,107,255,0.45), transparent);
    }
    .docs-content pre code {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      line-height: 1.7;
      color: var(--text-2);
      background: none;
      padding: 0;
    }

    .docs-content table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.875rem;
      margin: 0 0 1.5rem;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .docs-content th {
      text-align: left;
      padding: 10px 14px;
      background: rgba(255,255,255,0.04);
      border-bottom: 1px solid var(--border);
      font-weight: 600;
      color: var(--text-2);
    }
    .docs-content td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      color: var(--text-2);
      vertical-align: top;
    }
    .docs-content tr:last-child td { border-bottom: none; }
    .docs-content tr:hover td { background: rgba(79,107,255,0.08); }

    .docs-content hr {
      border: none;
      height: 1px;
      background: var(--border);
      margin: 2rem 0;
    }

    .docs-content img {
      max-width: 100%;
      border-radius: var(--radius);
      border: 1px solid var(--border);
    }

    /* Docs landing cards */
    .docs-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }
    .docs-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    .docs-card:hover {
      border-color: rgba(123,150,255,0.4);
      box-shadow: 0 10px 34px rgba(79,107,255,0.13);
      transform: translateY(-2px);
    }
    .docs-card h3 { font-size: 1rem; font-weight: 600; color: var(--accent-mid); margin-bottom: 0.4rem; }
    .docs-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

    .docs-card-icon {
      width: 38px;
      height: 38px;
      background: var(--accent-soft);
      border: 1px solid rgba(160,107,255,0.25);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-mid);
      margin-bottom: 0.9rem;
    }
    .docs-card-icon svg { width: 19px; height: 19px; }

    /* Docs groups + hierarchy */
    .docs-group { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 1.1rem; }

    .docs-group-label {
      display: block;
      font-family: var(--font-head);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-2);
      text-decoration: none;
      padding: 0;
      margin-bottom: 0.25rem;
      transition: color 0.15s;
    }
    a.docs-group-label:hover { color: var(--accent-mid); }
    .docs-group-label.active { color: var(--accent-mid); }

    /* Nested section ToC under the active doc in the sidebar */
    .docs-section-nav {
      border-left: 1px solid var(--border);
      margin: 0.15rem 0 0.4rem;
      padding-left: 12px;
      margin-left: 12px;
    }
    .docs-section-nav .section-nav {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
    }
    .docs-section-nav .section-nav ul { list-style: none; margin: 0.1rem 0 0.3rem 1rem; padding: 0; }
    .docs-section-nav .section-nav li { margin: 0; }
    .docs-section-nav .section-nav a {
      display: block;
      color: var(--faint);
      font-size: 0.8rem;
      text-decoration: none;
      padding: 2px 6px;
      border-radius: 6px;
      transition: color 0.15s, background 0.15s;
    }
    .docs-section-nav .section-nav a:hover { color: var(--accent-mid); background: rgba(79,107,255,0.08); }

    /* Anchored headings get a hover indicator */
    .docs-content h2 a, .docs-content h3 a, .docs-content h4 a { border-bottom: none; }
    .docs-content h2:hover a::before, .docs-content h3:hover a::before, .docs-content h4:hover a::before {
      content: '#';
      margin-left: -1.1em;
      padding-right: 0.35em;
      color: var(--accent-mid);
      opacity: 0.6;
    }

    @media (max-width: 900px) {
      .docs-layout { flex-direction: column; padding: 2rem 1rem 3rem; }
      .docs-sidebar { position: static; flex: none; width: 100%; }
      .docs-content { padding: 1.75rem 1.25rem; }
    }
