    :root, [data-theme="dark"] {
      --bg: #0d0e11;
      --surface: #15171c;
      --card: #1c1f27;
      --accent: #e8c96a;
      --accent2: #5be5c5;
      --text: #f0eeea;
      --muted: #7a7e8a;
      --border: rgba(255,255,255,0.07);
    }
    [data-theme="light"] {
      --bg: #f0ede8;
      --surface: #e8e4de;
      --card: #ffffff;
      --accent: #c9a030;
      --accent2: #2aab8e;
      --text: #1a1a1a;
      --muted: #888888;
      --border: rgba(0,0,0,0.08);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      line-height: 1.8;
    }

    body::before {
      content: '';
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none; z-index: 0;
    }

    /* ── NAV ── */
    nav {
      position: sticky; top: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.2rem 2.5rem;
      background: rgba(13,14,17,.9);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }
    .logo { text-decoration: none; display: flex; align-items: center; }
    .logo-img { height: 40px; width: auto; display: block; }
    .nav-right { display: flex; align-items: center; gap: 1.5rem; }
    .nav-link {
      text-decoration: none; color: var(--muted);
      font-size: .88rem; font-weight: 500;
      transition: color .2s;
    }
    .nav-link:hover { color: var(--text); }
    .nav-btn {
      background: var(--accent); color: #0d0e11;
      padding: .5rem 1.2rem; border-radius: 6px;
      font-size: .88rem; font-weight: 600;
      text-decoration: none; transition: opacity .2s;
    }
    .nav-btn:hover { opacity: .85; }
    .nav-theme-btn {
      width: 36px; height: 36px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; border: none; background: rgba(255,255,255,.06);
      font-size: 1rem; flex-shrink: 0; transition: transform .3s; color: var(--text);
    }
    [data-theme="light"] .nav-theme-btn { background: rgba(0,0,0,.06); }
    .nav-theme-btn:hover { transform: rotate(22deg); }

    /* ── HERO HEADER ── */
    .page-hero {
      position: relative;
      padding: 5rem 2.5rem 4rem;
      text-align: center;
      overflow: hidden;
      border-bottom: 1px solid var(--border);
    }
    .hero-glow {
      position: absolute;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(232,201,106,.1) 0%, transparent 65%);
      top: -100px; left: 50%; transform: translateX(-50%);
      pointer-events: none;
    }
    .page-hero-inner { position: relative; z-index: 1; }
    .page-badge {
      display: inline-flex; align-items: center; gap: .5rem;
      background: rgba(232,201,106,.1);
      border: 1px solid rgba(232,201,106,.2);
      border-radius: 99px; padding: .35rem 1rem;
      font-size: .75rem; color: var(--accent);
      font-weight: 500; letter-spacing: .5px;
      text-transform: uppercase; margin-bottom: 1.2rem;
    }
    .page-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.2rem, 5vw, 3.5rem);
      font-weight: 900; letter-spacing: -1.5px;
      line-height: 1.05; margin-bottom: 1rem;
    }
    .page-title em {
      font-style: normal;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .page-meta {
      color: var(--muted); font-size: .88rem; font-weight: 300;
      display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
      margin-top: .8rem;
    }
    .page-meta span { display: flex; align-items: center; gap: .4rem; }

    /* ── LAYOUT ── */
    .page-layout {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 260px 1fr; gap: 3rem;
      padding: 4rem 2.5rem;
      position: relative; z-index: 1;
    }

    /* ── TOC SIDEBAR ── */
    .toc {
      position: sticky; top: 90px;
      align-self: start;
    }
    .toc-title {
      font-size: .75rem; letter-spacing: 2px;
      text-transform: uppercase; color: var(--accent2);
      font-weight: 500; margin-bottom: 1rem;
    }
    .toc-list { list-style: none; }
    .toc-list li { margin-bottom: .1rem; }
    .toc-list a {
      text-decoration: none; color: var(--muted);
      font-size: .84rem; font-weight: 400;
      padding: .4rem .8rem; border-radius: 6px;
      display: block; transition: background .2s, color .2s;
      border-left: 2px solid transparent;
    }
    .toc-list a:hover { color: var(--text); background: rgba(255,255,255,.04); }
    .toc-list a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(232,201,106,.06); }
    .toc-divider { height: 1px; background: var(--border); margin: 1rem 0; }
    .toc-back {
      display: flex; align-items: center; gap: .5rem;
      text-decoration: none; color: var(--muted);
      font-size: .82rem; padding: .4rem .8rem;
      border-radius: 6px; transition: color .2s;
    }
    .toc-back:hover { color: var(--text); }

    /* ── CONTENT ── */
    .content { min-width: 0; }

    .intro-box {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      border-radius: 12px; padding: 1.5rem 1.8rem;
      margin-bottom: 3rem;
      font-size: .92rem; color: var(--muted);
      font-weight: 300; line-height: 1.8;
    }
    .intro-box strong { color: var(--text); font-weight: 500; }

    .section {
      margin-bottom: 3.5rem;
      scroll-margin-top: 100px;
    }
    .section-num {
      font-size: .72rem; letter-spacing: 2px;
      text-transform: uppercase; color: var(--accent);
      font-weight: 600; margin-bottom: .5rem;
    }
    .section-heading {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem; font-weight: 700;
      letter-spacing: -.3px; margin-bottom: 1rem;
      padding-bottom: .8rem;
      border-bottom: 1px solid var(--border);
    }
    .section p {
      color: var(--muted); font-size: .92rem;
      font-weight: 300; margin-bottom: 1rem;
      line-height: 1.85;
    }
    .section p:last-child { margin-bottom: 0; }
    .section p strong { color: var(--text); font-weight: 500; }

    .term-list {
      list-style: none; margin: 1rem 0;
    }
    .term-list li {
      display: flex; gap: .8rem;
      color: var(--muted); font-size: .92rem;
      font-weight: 300; line-height: 1.8;
      padding: .5rem 0;
      border-bottom: 1px solid rgba(255,255,255,.04);
    }
    .term-list li:last-child { border-bottom: none; }
    .term-list li::before {
      content: '—';
      color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: .05rem;
    }

    .highlight-box {
      background: rgba(91,229,197,.06);
      border: 1px solid rgba(91,229,197,.15);
      border-radius: 10px; padding: 1.2rem 1.5rem;
      margin: 1.2rem 0;
      font-size: .88rem; color: var(--muted);
      font-weight: 300; line-height: 1.8;
    }
    .highlight-box strong { color: var(--accent2); font-weight: 500; }

    .warning-box {
      background: rgba(255,107,107,.06);
      border: 1px solid rgba(255,107,107,.2);
      border-radius: 10px; padding: 1.2rem 1.5rem;
      margin: 1.2rem 0;
      font-size: .88rem; color: var(--muted);
      font-weight: 300; line-height: 1.8;
    }
    .warning-box strong { color: #ff6b6b; font-weight: 500; }

    /* ── FOOTER ── */
    .page-footer {
      position: relative; z-index: 1;
      border-top: 1px solid var(--border);
      padding: 2.5rem 2.5rem;
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    }
    .footer-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.1rem; color: var(--accent); }
    .footer-logo span { color: var(--text); }
    .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
    .footer-links a { text-decoration: none; color: var(--muted); font-size: .82rem; transition: color .2s; }
    .footer-links a:hover { color: var(--text); }
    .footer-copy { color: var(--muted); font-size: .78rem; }

    /* ── RESPONSIVE ── */
    @media (max-width: 860px) {
      .page-layout { grid-template-columns: 1fr; gap: 0; }
      .toc { display: none; }
      nav { padding: 1rem 1.5rem; }
      .page-hero { padding: 3.5rem 1.5rem 2.5rem; }
      .page-layout { padding: 2.5rem 1.5rem; }
    }
  
    @media (max-width: 600px) {
      .nav-link { display: none; }
      .page-title { font-size: clamp(1.8rem, 7vw, 2.8rem); letter-spacing: -1px; }
      .section-heading { font-size: 1.25rem; }
      .page-meta { flex-direction: column; gap: .6rem; font-size: .8rem; }
      .highlight-box, .warning-box { padding: .9rem 1rem; font-size: .82rem; }
      .page-footer { flex-direction: column; text-align: center; padding: 1.8rem 1.5rem; }
      .footer-links { justify-content: center; gap: 1rem; }
    }
    @media (max-width: 380px) {
      .page-layout { padding: 1.5rem 1rem; }
      .term-list li { font-size: .84rem; }
    }
