[data-bs-theme="dark"] {
    --bg: #111318;
    --surface: #1a1d26;
    --border: #262c42;
    --accent: #4ade80;
    --text: #e2e8f0;
    --text-s: #8892a4;
    --text-d: #404860;
    --orange: #fb923c;
    --blue: #60a5fa;
    --red: #f87171;
    --term-bg: #0c0e14;
}

[data-bs-theme="light"] {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --border: #dde3f0;
    --accent: #2563eb;
    --text: #111827;
    --text-s: #4b5563;
    --text-d: #9ca3af;
    --orange: #ea580c;
    --blue: #1d4ed8;
    --red: #dc2626;
    --term-bg: #0c0e14;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* NAV */
.gl-nav {
    height: 50px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 20px;
    flex-shrink: 0;
}

.gl-logo {
    font-weight: 700;
    font-size: 15px;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gl-logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.gl-nav-links {
    display: flex;
    gap: 2px;
}

.gl-nav-link {
    padding: 4px 11px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-s);
    text-decoration: none;
    border-radius: 6px;
    transition: all .15s;
}

.gl-nav-link:hover {
    background: var(--bg);
    color: var(--text);
}

.gl-nav-link.active {
    color: var(--accent);
}

.gl-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gl-theme-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-s);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
}

.gl-theme-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.gl-cta {
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 6px;
    text-decoration: none;
}

.gl-cta:hover {
    opacity: .85;
    color: #000;
}

@media (max-width: 768px) {
    .gl-nav-links {
        display: none;
    }
}

/* LAYOUT */
.gl-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

/* LEFT */
.gl-left {
    width: 220px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gl-left {
        display: none;
    }
}

.gl-left-top {
    padding: 10px 11px 8px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.pnl-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-d);
    margin-bottom: 6px;
}

.gl-proj-sel {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 24px 5px 8px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color .15s;
}

.gl-proj-sel:focus {
    border-color: var(--accent);
}

.gl-branch-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-d);
}

.gl-branch-name {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.gl-tree {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0;
}

.gl-tree::-webkit-scrollbar {
    width: 3px;
}

.gl-tree::-webkit-scrollbar-thumb {
    background: var(--border);
}

.ti {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--text-s);
    cursor: pointer;
    user-select: none;
    transition: background .1s;
}

.ti:hover {
    background: var(--bg);
}

.ti.folder {
    color: var(--blue);
}

.ti.i1 {
    padding-left: 20px;
}

.ti.i2 {
    padding-left: 32px;
}
.ti.i3 { padding-left: 46px; }
.ti.i4 { padding-left: 58px; }
.t-chev {
    font-size: 9px;
    opacity: .45;
    transition: transform .15s;
    width: 10px;
    flex-shrink: 0;
}

.t-chev.open {
    transform: rotate(90deg);
}

.t-bdg {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.tb-m {
    background: rgba(251, 146, 60, .2);
    color: var(--orange)
}

.tb-s {
    background: rgba(74, 222, 128, .2);
    color: var(--accent)
}

.tb-u {
    background: rgba(96, 165, 250, .2);
    color: var(--blue)
}

.tb-d {
    background: rgba(248, 113, 113, .2);
    color: var(--red)
}

.ts-m {
    color: var(--orange) !important
}

.ts-s {
    color: var(--accent) !important
}

.ts-u {
    color: var(--blue) !important
}

.ts-d {
    color: var(--red) !important;
    text-decoration: line-through;
    opacity: .6
}

/* CENTER */
.gl-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gl-term {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.8;
    background: var(--term-bg);
    color: #dde4f0;
}

.gl-term::-webkit-scrollbar {
    width: 4px;
}

.gl-term::-webkit-scrollbar-thumb {
    background: #222740;
}

.ob {
    margin-bottom: 2px;
}

@keyframes fi {
    from {
        opacity: 0;
        transform: translateY(3px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.ob {
    animation: fi .15s ease;
}

.op {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-top: 12px;
    margin-bottom: 1px;
    font-size: 12px;
}

.pu {
    color: #4ade80
}

.pa {
    color: #1e2438
}

.ph {
    color: #60a5fa
}

.ps {
    color: #1e2438
}

.pp {
    color: #c084fc
}

.pg {
    color: #fb923c
}

.pc {
    color: #f1f5f9
}

.ol {
    padding-left: 2px;
}

.ok {
    color: #86efac
}

.oe {
    color: #fca5a5
}

.oi {
    color: #93c5fd
}

.ow {
    color: #fde68a
}

.od {
    color: #3a4060
}

.oo {
    color: #fdba74
}

.gl-input {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.ip-pfx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

#cmdInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    caret-color: var(--accent);
}

#cmdInput::placeholder {
    color: var(--text-d);
}

.gl-run {
    background: var(--accent);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    transition: opacity .15s;
    flex-shrink: 0;
}

.gl-run:hover {
    opacity: .85;
}

/* RIGHT SIDEBAR */
.gl-right {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .gl-right {
        display: none;
    }
}

.sb-sec {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sb-sec-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-d);
    margin-bottom: 8px;
}

.cmd-item {
    border-radius: 6px;
    padding: 6px 8px;
    transition: background .1s;
    margin-bottom: 1px;
}

.cmd-item:hover {
    background: var(--bg);
}

.cmd-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.cmd-replay {
    background: none;
    border: none;
    color: var(--text-d);
    cursor: pointer;
    font-size: 11px;
    margin-left: auto;
    padding: 0;
    transition: color .1s;
    flex-shrink: 0;
}

.cmd-replay:hover {
    color: var(--accent);
}

.cmd-more {
    font-size: 10.5px;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}

.cmd-more:hover {
    text-decoration: underline;
}

.cmd-more i {
    font-size: 9px;
}

.sb-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
}

.sb-scroll::-webkit-scrollbar {
    width: 3px;
}

.sb-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
}

.wt-file {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-s);
}

.wt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wd-m {
    background: var(--orange)
}

.wd-s {
    background: var(--accent)
}

.wd-u {
    background: var(--blue)
}

.wd-d {
    background: var(--red)
}

.wt-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    flex-shrink: 0;
}

.wt-m {
    background: rgba(251, 146, 60, .2);
    color: var(--orange)
}

.wt-s {
    background: rgba(74, 222, 128, .2);
    color: var(--accent)
}

.wt-u {
    background: rgba(96, 165, 250, .2);
    color: var(--blue)
}

.wt-d {
    background: rgba(248, 113, 113, .2);
    color: var(--red)
}

.empty-note {
    font-size: 11.5px;
    color: var(--text-d);
    text-align: center;
    padding: 16px 0;
}

/* STATUSBAR */
.gl-sb {
    height: 22px;
    background: var(--accent);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 14px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.sbi {
    font-size: 10px;
    font-weight: 600;
    color: #000;
    opacity: .7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sbi.pr {
    opacity: 1;
}

.sbi-r {
    margin-left: auto;
    display: flex;
    gap: 14px;
}

@media (max-width: 576px) {
    .sb-hide {
        display: none !important;
    }
}

#resetProjectBtn {
    background: none;
    border: none;
    color: var(--text-d);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 13px;
    transition: color .15s;
}

#resetProjectBtn:hover {
    color: var(--red);
}


/* DİL DEĞİŞTİRİCİ */
.gl-lang {
    position: relative;
}

.gl-lang-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-s);
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all .15s;
}

.gl-lang-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.gl-lang-chev {
    font-size: 9px;
    transition: transform .15s;
}

.gl-lang.open .gl-lang-chev {
    transform: rotate(180deg);
}

.gl-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    min-width: 130px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.gl-lang.open .gl-lang-menu {
    display: block;
}

.gl-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--text-s);
    text-decoration: none;
    transition: background .1s;
}

.gl-lang-item:hover {
    background: var(--bg);
    color: var(--text);
}

.gl-lang-item.active {
    color: var(--accent);
    font-weight: 600;
}

.gl-lang-flag {
    font-size: 14px;
    line-height: 1;
}


/* ══════════════════════════════════════════════
   BLOG — GENEL
   ══════════════════════════════════════════════ */
html:has(.blog-layout),
html:has(.detail-layout) {
    overflow: auto;
    height: auto;
}

body:has(.blog-layout),
body:has(.detail-layout) {
    overflow: visible;
    height: auto;
    min-height: 100vh;
    padding-bottom: 22px;
}

body:has(.blog-layout) .gl-sb,
body:has(.detail-layout) .gl-sb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.blog-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 2px 7px;
    border-radius: 4px;
}

.cat-basics    { background: rgba(74,222,128,.15);  color: var(--accent); }
.cat-branching { background: rgba(96,165,250,.15);  color: var(--blue);   }
.cat-undoing   { background: rgba(248,113,113,.15); color: var(--red);    }
.cat-remote    { background: rgba(251,146,60,.15);  color: var(--orange); }
.cat-advanced  { background: rgba(192,132,252,.15); color: #c084fc;       }
.cat-simulator { background: rgba(250,204,21,.15); color: #facc15; }
.cat-general   { background: rgba(148,163,184,.15); color: #94a3b8; }

.blog-soon {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(64,72,96,.4);
    color: var(--text-d);
}

/* CTA Banner — hem index hem detail'de kullanılır */
.blog-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    border-left: 3px solid var(--accent);
}

.blog-cta-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
}

.blog-cta-icon {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.blog-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.blog-cta-desc {
    font-size: 12.5px;
    color: var(--text-s);
    line-height: 1.5;
}

.blog-cta-btn {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity .15s;
}

.blog-cta-btn:hover {
    opacity: .85;
    color: #000;
}

@media (max-width: 640px) {
    .blog-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-cta-btn { margin-left: 0; }
}


/* ══════════════════════════════════════════════
   BLOG INDEX
   ══════════════════════════════════════════════ */

.blog-layout {
    flex: 1;
    min-height: 0;
}

.blog-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 48px 24px 40px;
}

.blog-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--accent);
    margin-bottom: 14px;
}

.blog-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.25;
}

.blog-hero-desc {
    font-size: 15px;
    color: var(--text-s);
    margin: 0;
    line-height: 1.6;
}

.blog-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 64px;
    display: flex;
    flex-direction: row-reverse;
    gap: 32px;
    align-items: flex-start;
}

/* Sol sidebar */
.blog-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-sidebar-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.blog-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-d);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-cat-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-s);
    text-decoration: none;
    transition: all .15s;
}

.blog-cat-link:hover {
    background: var(--bg);
    color: var(--text);
}

.blog-cat-link.active {
    background: var(--bg);
    color: var(--accent);
    font-weight: 600;
}

.blog-cat-link-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-cat-link-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Post grid */
.blog-main { flex: 1; min-width: 0; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

/* Post kartı */
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    text-decoration: none;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.blog-card--soon {
    opacity: .55;
}

.blog-card--soon:hover {
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--term-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.blog-card-img-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
    opacity: .9;
    z-index: 1;
}

.blog-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(255,255,255,.02) 28px,
            rgba(255,255,255,.02) 29px
    );
}

.blog-card-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}

.blog-card[data-cat="basics"]    .blog-card-img::after { background: var(--accent); }
.blog-card[data-cat="branching"] .blog-card-img::after { background: var(--blue);   }
.blog-card[data-cat="undoing"]   .blog-card-img::after { background: var(--red);    }
.blog-card[data-cat="remote"]    .blog-card-img::after { background: var(--orange); }
.blog-card[data-cat="advanced"]  .blog-card-img::after { background: #c084fc;       }

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.blog-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.blog-card-summary {
    font-size: 12px;
    color: var(--text-s);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.blog-card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
}

.blog-card-link:hover { gap: 7px; }

.blog-card-link--disabled {
    color: var(--text-d);
    cursor: default;
}

.blog-card-try {
    font-size: 11px;
    color: var(--text-d);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    transition: color .15s;
}

.blog-card-try:hover { color: var(--text-s); }

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-body {
        flex-direction: column;
        padding: 24px 16px 48px;
    }
    .blog-sidebar {
        width: 100%;
        position: static;
    }
    .blog-cat-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .blog-cat-link {
        padding: 5px 12px;
        border-radius: 20px;
        border: 1px solid var(--border);
        font-size: 12px;
    }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .blog-hero { padding: 32px 16px 28px; }
    .blog-hero-title { font-size: 22px; }
}


/* ══════════════════════════════════════════════
   BLOG DETAIL
   ══════════════════════════════════════════════ */

.detail-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 64px;
    width: 100%;
    align-items: flex-start;
}

.detail-main {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-d);
    margin-bottom: 24px;
}

.detail-breadcrumb a {
    color: var(--text-s);
    text-decoration: none;
    transition: color .15s;
}

.detail-breadcrumb a:hover { color: var(--accent); }
.detail-breadcrumb i { font-size: 9px; }

.detail-header { margin-bottom: 32px; }
.detail-header-top { margin-bottom: 12px; }

.detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.3;
}

.detail-lead {
    font-size: 15px;
    color: var(--text-s);
    margin: 0;
    line-height: 1.6;
}

/* Coming soon */
.detail-soon {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.detail-soon i        { font-size: 28px; color: var(--text-d); }
.detail-soon strong   { font-size: 15px; color: var(--text);   }
.detail-soon p        { font-size: 13px; color: var(--text-s); margin: 0; }

/* Makale */
.detail-article {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-s);
}

.detail-article section { margin-bottom: 36px; }

.detail-article h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.detail-article p { margin: 0 0 12px; }

.detail-article code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--accent);
}

/* Kod bloğu */
.detail-code {
    background: var(--term-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0;
}

.detail-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-d);
}

.detail-copy-btn {
    background: none;
    border: none;
    color: var(--text-d);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .15s;
}

.detail-copy-btn:hover { color: var(--accent); }

.detail-code-body {
    margin: 0;
    padding: 14px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.8;
    color: #dde4f0;
    overflow-x: auto;
    white-space: pre;
}
.detail-code-body code {
    background: transparent !important;
    border: none !important;
    color: #dde4f0 !important;
    padding: 0 !important;
}

.code-prompt {
    color: var(--accent);
    margin-right: 8px;
    user-select: none;
}

/* Inline try banner */
.detail-try-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(74,222,128,.07);
    border: 1px solid rgba(74,222,128,.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-s);
    margin-top: 8px;
    flex-wrap: wrap;
}

.detail-try-banner i      { color: var(--accent); flex-shrink: 0; }
.detail-try-banner strong {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

.detail-try-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}

.detail-try-link:hover { opacity: .8; }

/* Uyarı kutusu */
.detail-warning {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(251,146,60,.07);
    border: 1px solid rgba(251,146,60,.2);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-s);
    line-height: 1.6;
}

.detail-warning i  { color: var(--orange); font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.detail-warning p  { margin: 0; }

/* Sağ sidebar */
.detail-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 74px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    align-self: flex-start;
}

.detail-sidebar::-webkit-scrollbar { width: 3px; }
.detail-sidebar::-webkit-scrollbar-thumb { background: var(--border); }

.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.sidebar-box--accent { border-left: 3px solid var(--accent); }

.sidebar-box-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-d);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-box-desc {
    font-size: 12px;
    color: var(--text-s);
    line-height: 1.6;
    margin: 0 0 12px;
}

.sidebar-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-toc a {
    font-size: 12.5px;
    color: var(--text-s);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 5px;
    transition: all .15s;
}

.sidebar-toc a:hover {
    background: var(--bg);
    color: var(--accent);
}

.sidebar-sim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity .15s;
}

.sidebar-sim-btn:hover { opacity: .85; color: #000; }

.sidebar-ad {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    color: var(--text-d);
    font-size: 11px;
}

.sidebar-related {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-related-item {
    display: flex;
    flex-direction: column;
    padding: 7px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .1s;
    gap: 2px;
}

.sidebar-related-item:hover { background: var(--bg); }

.sidebar-related-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
}

.sidebar-related-title {
    font-size: 12px;
    color: var(--text-s);
    line-height: 1.4;
}

/* Responsive — Detail */
@media (max-width: 900px) {
    .detail-layout {
        flex-direction: column;
        padding: 24px 16px 48px;
    }
    .detail-main   { padding-right: 0; }
    .detail-sidebar { width: 100%; position: static; }
}

@media (max-width: 600px) {
    .detail-title { font-size: 20px; }
}

/* Serbest makale içeriği */
.article-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-s);
}

.article-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.article-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 8px;
}

.article-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 18px 0 6px;
}

.article-body h5 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-s);
    margin: 14px 0 4px;
}
.article-body h6 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-d);
    margin: 12px 0 4px;
}

.article-body p {
    margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(74,222,128,.3);
    transition: border-color .15s;
}

.article-body a:hover {
    border-color: var(--accent);
}

.article-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--accent);
}

.article-body blockquote {
    margin: 20px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 6px 6px 0;
    color: var(--text-s);
    font-style: italic;
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}







/* ══════════════════════════════════════════════
   CHEATSHEET
   ══════════════════════════════════════════════ */

body:has(.cs-layout) {
    overflow: auto;
    padding-bottom: 22px;
}

body:has(.cs-layout) .gl-sb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.cs-layout {
    flex: 1;
    min-height: 0;
}

/* Hero */
.cs-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 36px 24px 28px;
}

.cs-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cs-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-title i { color: var(--accent); }

.cs-desc {
    font-size: 14px;
    color: var(--text-s);
    margin: 0;
}

.cs-actions {
    display: flex;
    gap: 8px;
}

.cs-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-s);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.cs-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Body */
.cs-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* Grid — 2 sütun */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Grup */
.cs-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.cs-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}

.cs-group-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Item */
.cs-items { padding: 6px 0; }

.cs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: background .1s;
    cursor: default;
    position: relative;
}

.cs-item.has-popup {
    cursor: pointer;
}

.cs-item:hover {
    background: var(--bg);
}

.cs-item + .cs-item {
    border-top: 1px solid rgba(255,255,255,.03);
}

.cs-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    min-width: 180px;
    flex-shrink: 0;
}

.cs-desc-text {
    font-size: 12px;
    color: var(--text-s);
    flex: 1;
}

.cs-info-icon {
    font-size: 11px;
    color: var(--text-d);
    flex-shrink: 0;
    transition: color .15s;
}

.cs-item:hover .cs-info-icon {
    color: var(--accent);
}

/* Simülatör CTA */
.cs-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(74,222,128,.07);
    border: 1px solid rgba(74,222,128,.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-s);
}

.cs-cta i { color: var(--accent); }

.cs-cta a {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.cs-cta a:hover { opacity: .8; }

/* Popup */
.cs-popup {
    display: none;
    position: absolute;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    z-index: 9999;
    box-shadow: 0 12px 36px rgba(0,0,0,.3);
    pointer-events: auto;
}

.cs-popup-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cs-popup-detail {
    font-size: 12.5px;
    color: var(--text-s);
    line-height: 1.7;
    margin-bottom: 10px;
}

.cs-popup-detail code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--accent);
}

.cs-popup-example {
    display: none;
    background: var(--term-bg);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.cs-popup-example pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #86efac;
    line-height: 1.7;
    white-space: pre-wrap;
}

.cs-popup-tip {
    display: none;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--orange);
    background: rgba(251,146,60,.08);
    border: 1px solid rgba(251,146,60,.2);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.cs-popup-tip i { flex-shrink: 0; margin-top: 2px; }

.cs-popup-tip code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: rgba(251,146,60,.1);
    padding: 1px 4px;
    border-radius: 3px;
}

.cs-popup-try {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    transition: opacity .15s;
}

.cs-popup-try:hover { opacity: .8; color: var(--accent); }

/* Print */
@media print {
    .gl-nav, .gl-sb, .cs-hero .cs-actions, .cs-cta, .cs-popup { display: none !important; }
    body { background: #fff !important; color: #000 !important; padding: 0 !important; }
    .cs-body { padding: 16px !important; }
    .cs-group { border: 1px solid #ddd !important; break-inside: avoid; }
    .cs-cmd { color: #000 !important; }
    .cs-desc-text { color: #444 !important; }
    .cs-group-title { color: #000 !important; border-bottom: 1px solid #ddd !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .cs-grid { grid-template-columns: 1fr; }
    .cs-cmd  { min-width: 140px; font-size: 11px; }
    .cs-popup { width: 260px; }
}







/* ══════════════════════════════════════════════
   DOCS
   ══════════════════════════════════════════════ */

body:has(.dc-layout) {
    overflow: auto;
    padding-bottom: 22px;
}

body:has(.dc-layout) .gl-sb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.dc-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 32px 24px 64px;
    gap: 32px;
    align-items: flex-start;
}

/* Sol sidebar */
.dc-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sb-about {
    font-size: 13px;
    color: var(--text-s);
    line-height: 1.6;
    margin: 0;
    padding: 0 12px 8px;
}
.sb-feature-list {
    list-style: none;
    margin: 0;
    padding: 0 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-feature-list li {
    font-size: 11px;
    color: var(--text-s);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.sb-feature-list li i {
    color: var(--accent);
    font-size: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Arama */
.dc-search-wrap {
    position: relative;
    flex-shrink: 0;
}

.dc-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-d);
    pointer-events: none;
}

.dc-search {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 10px 7px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}

.dc-search:focus {
    border-color: var(--accent);
}

.dc-search::placeholder { color: var(--text-d); }

/* Nav */
.dc-nav {
    flex: 1;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 0;
}

.dc-nav::-webkit-scrollbar { width: 3px; }
.dc-nav::-webkit-scrollbar-thumb { background: var(--border); }

.dc-nav-group { margin-bottom: 4px; }

.dc-nav-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-d);
    padding: 8px 14px 4px;
}

.dc-nav-item {
    display: block;
    padding: 6px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-s);
    text-decoration: none;
    transition: all .1s;
}

.dc-nav-item:hover {
    background: var(--bg);
    color: var(--text);
}

.dc-nav-item.active {
    background: var(--bg);
    color: var(--accent);
    font-weight: 600;
    border-left: 2px solid var(--accent);
}

/* Ana içerik */
.dc-main {
    flex: 1;
    min-width: 0;
}

/* Header */
.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.dc-cmd-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.dc-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-s);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    font-family: 'Inter', sans-serif;
}

.dc-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dc-action-btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.dc-action-btn--accent:hover {
    opacity: .85;
    color: #000;
}

/* Section */
.dc-section {
    margin-bottom: 32px;
}

.dc-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-d);
    margin: 0 0 12px;
}

.dc-text {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-s);
    margin: 0;
}

.dc-text code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--accent);
}

/* Syntax */
.dc-syntax {
    background: var(--term-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-syntax-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-syntax-prompt {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    user-select: none;
    flex-shrink: 0;
}

.dc-syntax-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #dde4f0;
}

/* Parametreler */
.dc-params {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.dc-param {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 16px;
    transition: background .1s;
}

.dc-param:hover { background: var(--bg); }

.dc-param + .dc-param {
    border-top: 1px solid var(--border);
}

.dc-param-flag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    min-width: 160px;
    flex-shrink: 0;
}

.dc-param-desc {
    font-size: 13px;
    color: var(--text-s);
    line-height: 1.6;
}

.dc-param-desc code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1px 4px;
    border-radius: 3px;
    color: var(--accent);
}

/* Not */
.dc-note {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(96,165,250,.07);
    border: 1px solid rgba(96,165,250,.2);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-s);
    line-height: 1.6;
}

.dc-note i {
    color: var(--blue);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dc-note p  { margin: 0; }

.dc-note code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(96,165,250,.1);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--blue);
}

/* CTA */
.dc-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.dc-cta > i {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.dc-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.dc-cta-desc {
    font-size: 12.5px;
    color: var(--text-s);
}

/* Responsive */
@media (max-width: 768px) {
    .dc-layout {
        flex-direction: column;
        padding: 20px 16px 48px;
    }

    .dc-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .dc-nav {
        max-height: 200px;
    }

    .dc-param-flag { min-width: 120px; }
}


/* ── DOCS INDEX */
body:has(.dc-index-layout) {
    overflow: auto;
    padding-bottom: 22px;
}

body:has(.dc-index-layout) .gl-sb {
    position: fixed;
    bottom: 0; left: 0; right: 0;
}

.dc-index-layout { flex: 1; min-height: 0; }

.dc-index-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 48px 24px 40px;
}

.dc-index-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.dc-index-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--accent);
    margin-bottom: 14px;
}

.dc-index-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.25;
}

.dc-index-desc {
    font-size: 15px;
    color: var(--text-s);
    margin: 0 0 24px;
    line-height: 1.6;
}

.dc-index-search-wrap {
    position: relative;
    max-width: 420px;
}

.dc-index-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-d);
    pointer-events: none;
}

.dc-index-search {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px 10px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}

.dc-index-search:focus { border-color: var(--accent); }
.dc-index-search::placeholder { color: var(--text-d); }

.dc-index-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.dc-index-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 14px;
}

.dc-index-group-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dc-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dc-index-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .15s, transform .15s;
}

.dc-index-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dc-index-card-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.dc-index-card-desc {
    font-size: 12px;
    color: var(--text-s);
    line-height: 1.5;
    flex: 1;
}

.dc-index-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-d);
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.dc-index-card:hover .dc-index-card-footer {
    color: var(--accent);
}

@media (max-width: 600px) {
    .dc-index-hero { padding: 32px 16px 28px; }
    .dc-index-title { font-size: 22px; }
    .dc-index-body { padding: 24px 16px 48px; }
}