/* ==========================================
   RESET
========================================== */

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

/* ==========================================
   PAGE
========================================== */

body {
    background: #1f1f1f;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* ==========================================
   HEADER
========================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #000000;
    z-index: 1000;
}

.header-inner {
    width: 1320px;
    height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================
   F! LOGO
========================================== */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* ==========================================
   NAVIGATION
========================================== */

nav ul {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 55px;
}

nav a {
    color: #6d6d6d;
    text-decoration: none;

    font-size: 21px;
    font-weight: 400;

    transition: color 0.25s ease;
}

nav a:hover {
    color: #ffffff;
}

/* ==========================================
   MAIN
========================================== */

main {
    width: 1320px;
    margin: 0 auto;
    padding-top: 85px;
}

/* ==========================================
   THEFLOW! LOGO
   Original SVG: 180x75
   Scaled 4x = 720x300
========================================== */

.flow-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 50px;
    margin-bottom: 50px;
}

.flow-logo img {
    width: 600px;
    height: auto;
    display: block;
}

/* ==========================================
   HERO SECTION
========================================== */

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

/* ==========================================
   LEFT COLUMN
========================================== */

.left-column {
    width: 660px;
}

.left-column h1 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

.left-column p {
    font-size: 30px;
    color: #8b8b8b;
    margin-bottom: 30px;
}

/* ==========================================
   DOWNLOAD BUTTON
========================================== */

.download-btn {
    display: inline-block;

    background: #255f87;
    color: #ffffff;

    text-decoration: none;
    font-size: 30px;
    font-weight: 700;

    padding: 18px 35px;

    border-radius: 10px;

    margin-top: 30px;


    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.download-btn:hover {
    background: #3179ac;
    transform: translateY(-2px);
}

/* ==========================================
   RIGHT COLUMN
========================================== */

.right-column {
    width: 620px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.right-column img {
    width: 631px;
    height: auto;
    display: block;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1360px) {

    .header-inner,
    main {
        width: calc(100% - 40px);
    }

    .hero-content {
        gap: 40px;
    }

    .right-column {
        width: auto;
    }

    .right-column img {
        width: 100%;
        max-width: 720px;
    }

    .flow-logo img {
        width: 100%;
        max-width: 720px;
    }
}

@media (max-width: 1000px) {

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .left-column {
        width: 100%;
        max-width: 700px;
    }

    .right-column {
        justify-content: center;
    }

    .left-column h1 {
        font-size: 32px;
    }

    .left-column p {
        font-size: 18px;
    }

    nav ul {
        gap: 24px;
    }

    nav a {
        font-size: 18px;
    }

    .download-btn {
        font-size: 24px;
    }
}

@media (max-width: 640px) {

    header {
        height: 64px;
    }

    .header-inner {
        height: 64px;
    }

    .logo img {
        height: 30px;
    }

    .left-column h1 {
        font-size: 28px;
    }

    .left-column p {
        font-size: 16px;
    }

    .download-btn {
        font-size: 20px;
        padding: 14px 28px;
    }

    nav a {
        font-size: 14px;
    }

    nav ul {
        gap: 12px;
    }
}


/* ==========================================
   MAIN.HTML — PAGE STYLES
========================================== */


        :root {
            --col-w:    600px;
            --gap-c:     30px;
            --gap-outer: 30px;
        }

        /* ==========================================
           PAGE WRAPPER — fixed 1440px
        ========================================== */

        /* ==========================================
           HEADER
        ========================================== */

        header {
            height: 80px !important;
        }

        .header-inner {
            height: 80px !important;
            width: 100% !important;
            max-width: none !important;
            padding-left:  calc(50vw - var(--gap-c) - var(--col-w) - var(--gap-outer)) !important;
            padding-right: calc(50vw - var(--gap-c) - var(--col-w) - var(--gap-outer)) !important;
        }

        /* ==========================================
           MAIN
        ========================================== */

        main {
            width: 100%;
            max-width: none;
            padding-top: 0;
            overflow: hidden;
        }

        /* ==========================================
           PAGE WRAPPERS — each 1000px tall
        ========================================== */

        .page {
            height: 1000px;
            display: flex;
            flex-direction: column;
            overflow: visible;
        }

        /* sections inside a page fill the available height equally */
        .page > section,
        .page > div.flow-logo,
        .page > div.split-section {
            flex: 1;
            min-height: 0;
        }

        /* hero section fills remaining space after logo */
        .page-1 .hero-content {
            flex: 1;
            padding-bottom: 0;
        }

        /* ==========================================
           PAGE 1 — Hero
        ========================================== */

        .flow-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: -200px;
            margin-bottom: 50px;
            position: relative;
            z-index: 0;
        }

        .flow-logo img {
            width: 500px;
            max-width: 90vw;
            height: auto;
            display: block;
        }

        .hero-content {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding-bottom: 80px;
            overflow: visible;
            position: relative;
            z-index: 1;
            margin-top: -550px;
        }

        /* ==========================================
           PAGE 1 — MAGENTA BOUNDING BOXES (ref)
        ========================================== */

        /* .page-1 * { outline: 1px solid magenta; } */

        /* Page 1 — uses same .panel structure as pages 2, 3, 4 */
        .page-1 .left-column h1 {
            font-size: 40px;
            line-height: 1.2;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .page-1 .left-column p {
            font-size: 30px;
            color: #8b8b8b;
            margin-bottom: 30px;
        }

        .right-column img {
            width: var(--col-w);
            height: auto;
            display: block;
            flex-shrink: 0;
            margin-left: -75px;
            border-radius: 6px;
        }

        .right-column .panel-content {
            width: auto;
            max-width: none;
            padding: 0;
        }

        .download-btn {
            display: inline-block;
            background: #255f87;
            color: #ffffff;
            text-decoration: none;
            font-size: 30px;
            font-weight: 700;
            padding: 18px 35px;
            border-radius: 10px;
            margin-top: 30px;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .download-btn:hover {
            background: #3179ac;
            transform: translateY(-2px);
        }

        /* ==========================================
           SHARED PANEL STRUCTURE (pages 2, 3, 4)
        ========================================== */

        .section {
            display: flex;
            min-height: 0;
        }

        .panel {
            width: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
        }

        .panel-left {
            justify-content: flex-end;
            padding-top:    60px;
            padding-bottom: 60px;
            padding-left:   calc(50vw - var(--gap-c) - var(--col-w));
            padding-right:  var(--gap-c);
        }

        .panel-right {
            justify-content: flex-start;
            padding-top:    60px;
            padding-bottom: 60px;
            padding-left:   var(--gap-c);
            padding-right:  calc(50vw - var(--gap-c) - var(--col-w));
        }



        .panel-content {
            width: var(--col-w);
            max-width: 100%;
        }

        /* ==========================================
           PAGE 2 — About
        ========================================== */

        .about-hero {
            display: flex;
            align-items: center;
            min-height: 0;
            background: #121212;
        }

        .about-text {
            width: var(--col-w);
            flex-shrink: 0;
            padding-top:    60px;
            padding-bottom: 60px;
            margin-left: calc(50vw - var(--gap-c) - var(--col-w));
        }

        .about-text p {
            font-size: 28px;
            line-height: 1.45;
            color: #ffffff;
            margin-bottom: 36px;
        }

        .about-text p:last-child { margin-bottom: 0; }

        .about-col-gap {
            width: calc(var(--gap-c) * 2);
            flex-shrink: 0;
        }

        .about-logo {
            width: var(--col-w);
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            padding-top:    60px;
            padding-bottom: 60px;
        }

        .about-logo img {
            width: calc(340px / 1.5);
            height: auto;
            display: block;
            margin: 0 auto;
        }

        /* Page 2 bottom split */
        .split-section {
            position: relative;
            left: 50%;
            margin-left: -50vw;
            width: 100vw;
            display: flex;
            min-height: 0;
        }

        .split-image,
        .split-text {
            width: 50%;
            background: #2a2a2a;
        }

        .split-image {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding-left:  calc(50vw - var(--gap-c) - var(--col-w) + 8px);
            padding-right: calc(var(--gap-c) - 8px);
            padding-top:    48px;
            padding-bottom: 48px;
            overflow: hidden;
        }

        .split-image img {
            width: 100%;
            max-width: var(--col-w);
            height: auto;
            display: block;
            border-radius: 6px;
        }

        .split-text {
            display: flex;
            align-items: center;
            padding-left:  calc(var(--gap-c) + 8px);
            padding-right: calc(50vw - var(--gap-c) - var(--col-w) - 8px);
            padding-top:    48px;
            padding-bottom: 48px;
        }

        .split-text-inner { width: var(--col-w); max-width: 100%; }

        .split-text p {
            font-size: 26px;
            line-height: 1.5;
            color: #ffffff;
            margin-bottom: 40px;
        }

        .split-text p:last-child { margin-bottom: 0; }

        /* ==========================================
           PAGE 3 — Features
        ========================================== */

        .sec3-1 { background: #2a2a2a; }
        .sec3-2 { background: #121212; }

        .sec3-1 .panel-left {
            justify-content: flex-end;
            overflow: hidden;
            padding-left:  calc(50vw - 630px);
            padding-right: 0;
        }

        .sec3-1 .panel-left .panel-content {
            width: 100%;
        }

        .sec3-1 .panel-left img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 6px;
            transform: scale(0.97);
            transform-origin: left center;
        }

        .sec3-1 .panel-right {
            padding-left:  calc(var(--gap-c) + 8px);
            padding-right: calc(50vw - var(--gap-c) - var(--col-w) - 8px);
        }

        .sec3-1 .panel-right p,
        .sec3-2 .panel-left p {
            font-size: 26px;
            line-height: 1.5;
            color: #ffffff;
        }

        .sec3-2 .panel-right {
            justify-content: center;
        }

        .sec3-2 .panel-right img {
            width: calc(340px / 1.5);
            height: auto;
            display: block;
            margin: 0 auto;
        }

        /* ==========================================
           PAGE 4 — Customization + Footer
        ========================================== */

        .sec4-1 { background: #2a2a2a; flex: 1; padding-top: 75px; }

        /* text is now left, image is now right */
        .sec4-1 .panel-left {
            justify-content: flex-end;
            padding-left:  calc(50vw - var(--gap-c) - var(--col-w));
            padding-right: var(--gap-c);
            box-sizing: border-box;
        }

        .sec4-1 .panel-left .panel-content {
            width: var(--col-w);
            max-width: var(--col-w);
            overflow: hidden;
        }

        .sec4-1 .panel-right {
            justify-content: flex-start;
            overflow: hidden;
            padding-left:  calc(var(--gap-c) + 10px);
            padding-right: calc(50vw - var(--gap-c) - var(--col-w) - 10px);
            box-sizing: border-box;
        }

        .sec4-1 .panel-right .panel-content {
            width: var(--col-w);
            max-width: var(--col-w);
            padding: 0;
            margin: 0;
        }

        .sec4-1 .panel-right img {
            width: 100%;
            max-width: var(--col-w);
            height: auto;
            display: block;
            border-radius: 6px;
        }

        .sec4-1 .panel-left p,
        .sec4-1 .panel-right p {
            font-size: 26px;
            line-height: 1.5;
            color: #ffffff;
            margin-bottom: 32px;
        }

        .sec4-1 .panel-left p:last-child,
        .sec4-1 .panel-right p:last-child { margin-bottom: 0; }

        /* page4-bottom: 500px total, only bottom 250px has bg */
        .page4-bottom {
            flex: 0 0 500px;
            background: transparent;
            display: flex;
            flex-direction: column;
            overflow: visible;
        }





        /* sec4-2: Think + Download — shifted 125px down */
        .sec4-2 {
            background: transparent;
            flex: 0 0 200px;
            margin-top: 5px;
            margin-bottom: -5px;
        }

        .page4-footer {
            flex: 0 0 200px;
            background: #1a1a1a;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .sec4-2 .panel-left .panel-content {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .sec4-2 .tagline {
            font-size: 36px;
            font-weight: 400;
            color: #ffffff;
        }

        .sec4-2 .panel-right {
            justify-content: flex-start;
        }

        .sec4-2 .panel-right .panel-content {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .sec4-download-btn {
            display: inline-block;
            background: #255f87;
            color: #ffffff;
            text-decoration: none;
            font-size: 28px;
            font-weight: 700;
            padding: 16px 40px;
            border-radius: 10px;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .sec4-download-btn:hover {
            background: #3179ac;
            transform: translateY(-2px);
        }

        footer {
            background: #1a1a1a;
            text-align: center;
            padding: 40px 20px 30px;
        }

        .footer-logo {
            width: 480px;
            max-width: 80vw;
            height: auto;
            display: block;
            margin: 0 auto 24px;
            opacity: 0.2;
        }

        .footer-copy {
            font-size: 14px;
            color: #6d6d6d;
        }

        /* ==========================================
           PAGE DIVIDERS
        ========================================== */

        .page-divider { display: none; } .page-divider-x { display: none; } .page-divider-muted {
            height: 1px;
            background: #3B8BD4;
            opacity: 0.7;
            position: relative;
            z-index: 9998;
        }

        .page-divider span {
            position: absolute;
            left: 4px;
            top: 3px;
            color: #3B8BD4;
            font-family: monospace;
            font-size: 11px;
        }

        /* ==========================================
           HALF-PAGE YELLOW REF LINE (500px mark)
        ========================================== */

        .page {
            position: relative;
        }

        .page-half-line { display: none; } .page-half-line-x { display: none; } .page-half-line-muted {
            position: absolute;
            top: 500px;
            left: 0;
            width: 100%;
            height: 1px;
            background: #FFD600;
            opacity: 0.8;
            z-index: 9997;
            pointer-events: none;
        }

        .page-half-line span {
            position: absolute;
            left: 4px;
            top: 3px;
            color: #FFD600;
            font-family: monospace;
            font-size: 11px;
            opacity: 1;
        }

        /* ==========================================
           GRID REFERENCE LINES
        ========================================== */

        .grid-ref-line {
            position: fixed;
            top: 0; bottom: 0;
            width: 1px;
            pointer-events: none;
            z-index: 9999;
        }

        .gl-a    { display: none; left: 50vw;           background: rgba(255,255,255,0.35); }
        .gl-l30  { display: none; display: none; left: calc(50vw - 30px);  background: #3B8BD4; }
        .gl-l630 { display: none; display: none; left: calc(50vw - 630px); background: #ff3333; }
        .gl-l660 { display: none; display: none; left: calc(50vw - 660px); background: #3B8BD4; }
        .gl-r30  { display: none; display: none; left: calc(50vw + 30px);  background: #00cc44; }
        .gl-r630 { display: none; display: none; left: calc(50vw + 630px); background: #3B8BD4; }
        .gl-r660 { display: none; display: none; left: calc(50vw + 660px); background: #3B8BD4; }

        /* ==========================================
           RESPONSIVE
        ========================================== */

        @media (max-width: 1300px) {
            :root { --col-w: calc(50vw - 50px); --gap-c: 20px; }
        }

        @media (max-width: 900px) {
            .header-inner {
                padding-left: 20px !important;
                padding-right: 20px !important;
            }

            .hero-content, .about-hero { flex-direction: column; align-items: flex-start; padding: 20px 20px 60px; }
            .hero-offset, .col-gap, .about-col-gap { display: none; }
            .left-column, .right-column, .about-text, .about-logo { flex: none; width: 100%; max-width: 600px; margin-left: 0; }
            .section { flex-direction: column; }
            .split-section { flex-direction: column; }
            .panel, .split-image, .split-text { width: 100%; padding: 40px 20px; justify-content: flex-start; }
            .panel-content, .split-text-inner { width: 100%; max-width: 600px; }
            .left-column h1 { font-size: 28px; }
            .left-column p  { font-size: 18px; }
            .about-text p, .split-text p, .sec3-1 .panel-right p, .sec3-2 .panel-left p, .sec4-1 .panel-right p { font-size: 20px; }
            .sec4-2 .tagline { font-size: 24px; }
            .flow-logo img { width: 100%; max-width: 400px; }
        }

    

/* ══════════════════════════════════════════
   DOCUMENTATION
══════════════════════════════════════════ */


  /* ── Reset & Base ─────────────────────────────────────── */
  #doc-panel *, #doc-panel *::before, #doc-panel *::after{ box-sizing: border-box; margin: 0; padding: 0; }

  #doc-panel {
    --bg:        #1b1b1b;
    --sidebar:   #141414;
    --panel:     #232323;
    --border:    #2e2e2e;
    --accent:    #4a9eff;
    --accent2:   #2d7dd2;
    --text:      #e0e0e0;
    --muted:     #888;
    --code-bg:   #0d0d0d;
    --tag-bg:    #1e2a3a;
    --sidebar-w: 280px;
    --header-h:  56px;
  }

  #doc-panel { scroll-behavior: smooth; }

  #doc-panel {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    display: flex;
    min-height: 100vh;
  }

  /* ── Sidebar ──────────────────────────────────────────── */
  #doc-panel #sidebar{
    position: fixed;
    top: 80px; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
  }

  #doc-panel #sidebar-header{
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  #doc-panel #sidebar-header h1{
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
  }

  #doc-panel #sidebar-header p{
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
  }

  #doc-panel #sidebar-search{
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  #doc-panel #search-input{
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    padding: 7px 10px;
    outline: none;
    transition: border-color 0.2s;
  }
  #doc-panel #search-input:focus{ border-color: var(--accent); }
  #doc-panel #search-input::placeholder{ color: var(--muted); }

  #doc-panel #nav{
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 24px;
  }
  #doc-panel #nav::-webkit-scrollbar{ width: 4px; }
  #doc-panel #nav::-webkit-scrollbar-track{ background: transparent; }
  #doc-panel #nav::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 2px; }

  #doc-panel #nav a{
    display: flex;
    align-items: center;
    padding: 11px 20px;
    font-size: 15px;
    color: #aaa;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  #doc-panel #nav a:hover{ color: #fff; background: rgba(255,255,255,0.04); }
  #doc-panel #nav a.active{
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(74,158,255,0.07);
  }

  /* sub-links (h3 within sections) */
  #doc-panel #nav a.sub{
    padding: 9px 20px 9px 38px;
    font-size: 13px;
    color: #777;
  }
  #doc-panel #nav a.sub:hover{ color: #ccc; }
  #doc-panel #nav a.sub.active{ color: var(--accent); border-left-color: var(--accent); }

  /* Collapsible group */
  #doc-panel .nav-group{ }

  #doc-panel .nav-group-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
  }
  #doc-panel .nav-group-header:hover{ color: #bbb; }

  #doc-panel .nav-group-arrow{
    font-size: 26px;
    transition: transform 0.2s;
    color: var(--accent);
    opacity: 0.8;
    line-height: 1;
  }
  #doc-panel .nav-group.collapsed .nav-group-arrow{ transform: rotate(-90deg); }

  #doc-panel .nav-group-items{
    overflow: hidden;
    transition: max-height 0.25s ease;
    max-height: 1200px;
  }
  #doc-panel .nav-group.collapsed .nav-group-items{ max-height: 0; }

  /* ── Main content ─────────────────────────────────────── */
  #doc-panel #content{
    margin-left: var(--sidebar-w);
    flex: 1;
    max-width: 860px;
    padding: 60px 64px 120px;
  }

  /* ── Sections ─────────────────────────────────────────── */
  #doc-panel .section{
    padding-top: 24px;
    margin-bottom: 0;
  }

  #doc-panel .section + .section{ border-top: 1px solid var(--border); margin-top: 56px; padding-top: 56px; }

  #doc-panel h2{
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
    scroll-margin-top: 32px;
  }

  #doc-panel h3{
    font-size: 16px;
    font-weight: 600;
    color: #ddd;
    margin: 36px 0 12px;
    scroll-margin-top: 32px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
  }

  #doc-panel h4{
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 28px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
  }

  #doc-panel p{ margin-bottom: 14px; color: #ccc; }

  #doc-panel a{ color: var(--accent); text-decoration: none; }
  #doc-panel a:hover{ text-decoration: underline; }

  /* ── Lists ────────────────────────────────────────────── */
  #doc-panel ul, #doc-panel ol{
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: #ccc;
  }
  #doc-panel li{ margin-bottom: 6px; }
  #doc-panel li strong{ color: #eee; }

  /* ── Code & pre ───────────────────────────────────────── */
  #doc-panel code{
    background: var(--tag-bg);
    color: #7ec8f0;
    font-family: "SF Mono", "Fira Code", Menlo, monospace;
    font-size: 12.5px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #1e3048;
  }

  #doc-panel pre{
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.6;
  }
  #doc-panel pre code{
    background: none;
    border: none;
    padding: 0;
    color: #a8cc8c;
    font-size: 13px;
  }

  /* ── Tables ───────────────────────────────────────────── */
  #doc-panel .table-wrap{ overflow-x: auto; margin: 16px 0 24px; }

  #doc-panel table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
  }

  #doc-panel th{
    background: var(--panel);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  #doc-panel td{
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: #ccc;
    vertical-align: top;
  }
  #doc-panel tr:last-child td{ border-bottom: none; }
  #doc-panel tr:hover td{ background: rgba(255,255,255,0.02); }

  #doc-panel td code, #doc-panel th code{ font-size: 12px; }

  /* ── Key badges ───────────────────────────────────────── */
  #doc-panel .key{
    display: inline-block;
    background: var(--panel);
    border: 1px solid #444;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 7px;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 11.5px;
    color: #ddd;
    white-space: nowrap;
  }

  /* ── Callouts ─────────────────────────────────────────── */
  #doc-panel .tip{
    background: rgba(74,158,255,0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13.5px;
    color: #b8d4f0;
  }
  #doc-panel .tip strong{ color: var(--accent); }

  /* ── Node type cards ──────────────────────────────────── */
  #doc-panel .node-card{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 16px 0 24px;
  }
  #doc-panel .node-card-header{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  #doc-panel .node-badge{
    background: var(--accent2);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: "SF Mono", Menlo, monospace;
  }
  #doc-panel .node-card-title{ font-size: 16px; font-weight: 600; color: #fff; }
  #doc-panel .node-card p{ margin-bottom: 8px; font-size: 13.5px; }
  #doc-panel .node-card ul{ margin-bottom: 0; }
  #doc-panel .node-card li{ font-size: 13.5px; }

  /* ── Step list ────────────────────────────────────────── */
  #doc-panel .steps{ counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
  #doc-panel .steps li{
    counter-increment: step;
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    align-items: flex-start;
  }
  #doc-panel .steps li::before{
    content: counter(step);
    background: var(--accent2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* ── Hero ─────────────────────────────────────────────── */
  #doc-panel #hero{
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
  }
  #doc-panel #hero .subtitle{
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  #doc-panel .badges{ display: flex; gap: 8px; flex-wrap: wrap; }
  #doc-panel .badge{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #aaa;
  }

  /* ── Footer ───────────────────────────────────────────── */
  #doc-panel #footer{
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }

  /* ── Shortcut grid ────────────────────────────────────── */
  #doc-panel .shortcut-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 12px 0 24px;
  }
  #doc-panel .shortcut-item{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  #doc-panel .shortcut-item .sk{ font-size: 12px; }
  #doc-panel .shortcut-item .sd{ font-size: 12px; color: var(--muted); }

  /* ── Tips grid ────────────────────────────────────────── */
  #doc-panel .tips-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
  }
  #doc-panel .tip-card{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
  }
  #doc-panel .tip-card h4{
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 6px;
  }
  #doc-panel .tip-card p{ font-size: 13px; margin: 0; color: #999; }

  /* ── Scrollbar for content ────────────────────────────── */
  #doc-panel ::-webkit-scrollbar{ width: 6px; height: 6px; }
  #doc-panel ::-webkit-scrollbar-track{ background: transparent; }
  #doc-panel ::-webkit-scrollbar-thumb{ background: #333; border-radius: 3px; }





  /* ── Offset for fixed site header ─────────────────────── */
  #doc-panel #sidebar{ top: 0; }
  /* header removed — no offset needed */



/* ══════════════════════════════════════════
   DOCUMENTATION
══════════════════════════════════════════ */


  /* ── Reset & Base ─────────────────────────────────────── */
  body.doc-page *:not(header):not(header *), body.doc-page *:not(header):not(header *)::before, body.doc-page *:not(header):not(header *)::after{ box-sizing: border-box; margin: 0; padding: 0; }

  body.doc-page {
    --bg:        #1b1b1b;
    --sidebar:   #141414;
    --panel:     #232323;
    --border:    #2e2e2e;
    --accent:    #4a9eff;
    --accent2:   #2d7dd2;
    --text:      #e0e0e0;
    --muted:     #888;
    --code-bg:   #0d0d0d;
    --tag-bg:    #1e2a3a;
    --sidebar-w: 280px;
    --header-h:  56px;
  }

  body.doc-page { scroll-behavior: smooth; }

  body.doc-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    display: flex;
    min-height: 100vh;
  }

  /* ── Sidebar ──────────────────────────────────────────── */
  body.doc-page #sidebar{
    position: fixed;
    top: 80px; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
  }

  body.doc-page #sidebar-header{
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  body.doc-page #sidebar-header h1{
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
  }

  body.doc-page #sidebar-header p{
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
  }

  body.doc-page #sidebar-search{
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  body.doc-page #search-input{
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    padding: 7px 10px;
    outline: none;
    transition: border-color 0.2s;
  }
  body.doc-page #search-input:focus{ border-color: var(--accent); }
  body.doc-page #search-input::placeholder{ color: var(--muted); }

  body.doc-page #nav{
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 24px;
  }
  body.doc-page #nav::-webkit-scrollbar{ width: 4px; }
  body.doc-page #nav::-webkit-scrollbar-track{ background: transparent; }
  body.doc-page #nav::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 2px; }

  body.doc-page #nav a{
    display: flex;
    align-items: center;
    padding: 11px 20px;
    font-size: 15px;
    color: #aaa;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  body.doc-page #nav a:hover{ color: #fff; background: rgba(255,255,255,0.04); }
  body.doc-page #nav a.active{
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(74,158,255,0.07);
  }

  /* sub-links (h3 within sections) */
  body.doc-page #nav a.sub{
    padding: 9px 20px 9px 38px;
    font-size: 13px;
    color: #777;
  }
  body.doc-page #nav a.sub:hover{ color: #ccc; }
  body.doc-page #nav a.sub.active{ color: var(--accent); border-left-color: var(--accent); }

  /* Collapsible group */
  body.doc-page .nav-group{ }

  body.doc-page .nav-group-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
  }
  body.doc-page .nav-group-header:hover{ color: #bbb; }

  body.doc-page .nav-group-arrow{
    font-size: 26px;
    transition: transform 0.2s;
    color: var(--accent);
    opacity: 0.8;
    line-height: 1;
  }
  body.doc-page .nav-group.collapsed .nav-group-arrow{ transform: rotate(-90deg); }

  body.doc-page .nav-group-items{
    overflow: hidden;
    transition: max-height 0.25s ease;
    max-height: 1200px;
  }
  body.doc-page .nav-group.collapsed .nav-group-items{ max-height: 0; }

  /* ── Main content ─────────────────────────────────────── */
  body.doc-page #content{
    margin-left: var(--sidebar-w);
    flex: 1;
    max-width: 860px;
    padding: 140px 64px 120px;
  }

  /* ── Sections ─────────────────────────────────────────── */
  body.doc-page .section{
    padding-top: 24px;
    margin-bottom: 0;
  }

  body.doc-page .section + .section{ border-top: 1px solid var(--border); margin-top: 56px; padding-top: 56px; }

  body.doc-page h2{
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
    scroll-margin-top: 32px;
  }

  body.doc-page h3{
    font-size: 16px;
    font-weight: 600;
    color: #ddd;
    margin: 36px 0 12px;
    scroll-margin-top: 32px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
  }

  body.doc-page h4{
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 28px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
  }

  body.doc-page p{ margin-bottom: 14px; color: #ccc; }

  body.doc-page a{ color: var(--accent); text-decoration: none; }
  body.doc-page a:hover{ text-decoration: underline; }

  /* ── Lists ────────────────────────────────────────────── */
  body.doc-page ul, body.doc-page ol{
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: #ccc;
  }
  body.doc-page li{ margin-bottom: 6px; }
  body.doc-page li strong{ color: #eee; }

  /* ── Code & pre ───────────────────────────────────────── */
  body.doc-page code{
    background: var(--tag-bg);
    color: #7ec8f0;
    font-family: "SF Mono", "Fira Code", Menlo, monospace;
    font-size: 12.5px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #1e3048;
  }

  body.doc-page pre{
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.6;
  }
  body.doc-page pre code{
    background: none;
    border: none;
    padding: 0;
    color: #a8cc8c;
    font-size: 13px;
  }

  /* ── Tables ───────────────────────────────────────────── */
  body.doc-page .table-wrap{ overflow-x: auto; margin: 16px 0 24px; }

  body.doc-page table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
  }

  body.doc-page th{
    background: var(--panel);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  body.doc-page td{
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: #ccc;
    vertical-align: top;
  }
  body.doc-page tr:last-child td{ border-bottom: none; }
  body.doc-page tr:hover td{ background: rgba(255,255,255,0.02); }

  body.doc-page td code, body.doc-page th code{ font-size: 12px; }

  /* ── Key badges ───────────────────────────────────────── */
  body.doc-page .key{
    display: inline-block;
    background: var(--panel);
    border: 1px solid #444;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 7px;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 11.5px;
    color: #ddd;
    white-space: nowrap;
  }

  /* ── Callouts ─────────────────────────────────────────── */
  body.doc-page .tip{
    background: rgba(74,158,255,0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13.5px;
    color: #b8d4f0;
  }
  body.doc-page .tip strong{ color: var(--accent); }

  /* ── Node type cards ──────────────────────────────────── */
  body.doc-page .node-card{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 16px 0 24px;
  }
  body.doc-page .node-card-header{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  body.doc-page .node-badge{
    background: var(--accent2);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: "SF Mono", Menlo, monospace;
  }
  body.doc-page .node-card-title{ font-size: 16px; font-weight: 600; color: #fff; }
  body.doc-page .node-card p{ margin-bottom: 8px; font-size: 13.5px; }
  body.doc-page .node-card ul{ margin-bottom: 0; }
  body.doc-page .node-card li{ font-size: 13.5px; }

  /* ── Step list ────────────────────────────────────────── */
  body.doc-page .steps{ counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
  body.doc-page .steps li{
    counter-increment: step;
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    align-items: flex-start;
  }
  body.doc-page .steps li::before{
    content: counter(step);
    background: var(--accent2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* ── Hero ─────────────────────────────────────────────── */
  body.doc-page #hero{
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
  }
  body.doc-page #hero .subtitle{
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  body.doc-page .badges{ display: flex; gap: 8px; flex-wrap: wrap; }
  body.doc-page .badge{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #aaa;
  }

  /* ── Footer ───────────────────────────────────────────── */
  body.doc-page #footer{
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }

  /* ── Shortcut grid ────────────────────────────────────── */
  body.doc-page .shortcut-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 12px 0 24px;
  }
  body.doc-page .shortcut-item{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  body.doc-page .shortcut-item .sk{ font-size: 12px; }
  body.doc-page .shortcut-item .sd{ font-size: 12px; color: var(--muted); }

  /* ── Tips grid ────────────────────────────────────────── */
  body.doc-page .tips-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
  }
  body.doc-page .tip-card{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
  }
  body.doc-page .tip-card h4{
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 6px;
  }
  body.doc-page .tip-card p{ font-size: 13px; margin: 0; color: #999; }

  /* ── Scrollbar for content ────────────────────────────── */
  body.doc-page ::-webkit-scrollbar{ width: 6px; height: 6px; }
  body.doc-page ::-webkit-scrollbar-track{ background: transparent; }
  body.doc-page ::-webkit-scrollbar-thumb{ background: #333; border-radius: 3px; }





  /* ── Offset for fixed site header ─────────────────────── */
  body.doc-page #sidebar{ top: 80px; }
  /* header removed — no offset needed */



/* ══════════════════════════════════════════
   DOC PAGE — reset main page panel styles
══════════════════════════════════════════ */
body.doc-page .section { display: block; min-height: unset; }
body.doc-page .panel { width: unset; flex-shrink: unset; display: unset; align-items: unset; }
body.doc-page .panel-left { justify-content: unset; padding: unset; }
body.doc-page .panel-right { justify-content: unset; padding: unset; }
body.doc-page .panel-content { width: unset; max-width: unset; }
body.doc-page header nav a { color: #6d6d6d; text-decoration: none; }
body.doc-page header nav a:hover { color: #ffffff; text-decoration: none; }
body.doc-page { overflow-x: hidden; padding-top: 80px; }

/* Force doc page header to match other pages exactly */
body.doc-page header { height: 72px !important; padding: 0 !important; }
body.doc-page .header-inner { height: 72px !important; }
