/* ═══════════════════════════════════════════════════════
   Basis.Site — Global Styles
   ═══════════════════════════════════════════════════════ */

:root {
    --tblr-font-sans-serif: 'Inter', sans-serif;
    --tblr-primary: #0099FF;
    --tblr-primary-rgb: 0, 153, 255;
    --basis-blue:   #0099FF;
    --basis-green:  #66CC33;
    --basis-orange: #FF6633;
    --basis-yellow: #FFCC00;
    --topbar-height: 60px;
    --sidebar-width: 280px;
    /* Tabler variables not defined in tabler.min.css */
    --tblr-bg-surface: #fff;
    --tblr-bg-surface-secondary: #eef3f6;
    --tblr-card-bg: #fff;
}

[data-bs-theme="dark"] {
    --tblr-bg-surface: #182433;
    --tblr-bg-surface-secondary: #0e1722;
    --tblr-card-bg: #182433;
}

html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* ── Navbar (marketing) ─────────────────────────────── */

.navbar-basis {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tblr-border-color);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
}

[data-bs-theme="dark"] .navbar-basis { background: rgba(24,28,36,0.95); }

body { padding-top: 64px; }

.navbar-brand-logo { height: 36px; }

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 7px;
    border: 1.5px solid var(--tblr-border-color);
    background: transparent;
    cursor: pointer;
    color: var(--tblr-body-color);
    transition: all .15s;
}
.lang-dropdown-btn:hover { border-color: var(--basis-blue); color: var(--basis-blue); }

/* Mobile navbar — fix transparent collapse */
@media (max-width: 991.98px) {
    .navbar-basis {
        background: #fff !important;
    }
    [data-bs-theme="dark"] .navbar-basis {
        background: #181c24 !important;
    }
    .navbar-basis .navbar-collapse.show,
    .navbar-basis .navbar-collapse.collapsing {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff !important;
        border-top: 1px solid var(--tblr-border-color);
        border-bottom: 1px solid var(--tblr-border-color);
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        padding: 8px 16px 16px;
        z-index: 1049;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    [data-bs-theme="dark"] .navbar-basis .navbar-collapse.show,
    [data-bs-theme="dark"] .navbar-basis .navbar-collapse.collapsing {
        background: #181c24 !important;
    }
    .navbar-basis .navbar-collapse .nav-link {
        padding: 10px 8px !important;
        color: var(--tblr-body-color) !important;
        border-bottom: 1px solid var(--tblr-border-color);
    }
    .navbar-basis .navbar-collapse .nav-item:last-child .nav-link { border-bottom: none; }
    .navbar-basis .navbar-collapse .ms-2,
    .navbar-basis .navbar-collapse .ms-1 { margin: 4px 0 !important; }
}

/* ── Hero ────────────────────────────────────────────── */

.hero-section {
    padding: 96px 0 80px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 40%, #f8fffe 100%);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0d1117 0%, #0d1e30 40%, #0a1a10 100%);
    color: #e2e8f0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,153,255,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,153,255,.1);
    color: var(--basis-blue);
    border: 1px solid rgba(0,153,255,.25);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: .8125rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--tblr-body-color);
}

.hero-title .accent-blue { color: var(--basis-blue); }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--tblr-muted);
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.btn-basis-primary {
    background: var(--basis-blue);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex; align-items: center;
}
.btn-basis-primary:hover { background: #007acc; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,153,255,.35); }

.btn-basis-outline {
    background: transparent;
    color: var(--tblr-body-color) !important;
    border: 1.5px solid var(--tblr-border-color);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex; align-items: center;
}
.btn-basis-outline:hover { border-color: var(--basis-blue); color: var(--basis-blue) !important; }

.edition-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    font-size: .8125rem; font-weight: 600;
}
.edition-pill.desktop { background: rgba(102,204,51,.12); color: #45a020; border: 1px solid rgba(102,204,51,.3); }
.edition-pill.server  { background: rgba(0,153,255,.12);  color: #007acc; border: 1px solid rgba(0,153,255,.3); }
.edition-pill.cloud   { background: rgba(255,102,51,.12); color: #cc4400; border: 1px solid rgba(255,102,51,.3); }

/* ── Screenshot section ── */

.screenshot-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* Screenshot tab nav */
.screenshot-tabs .nav-link {
    border-radius: 20px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--tblr-secondary);
    border: 1px solid var(--tblr-border-color);
    background: var(--tblr-card-bg);
    transition: background .15s, border-color .15s, color .15s;
}
.screenshot-tabs .nav-link.active {
    background: var(--basis-blue);
    border-color: var(--basis-blue);
    color: #fff;
}
.screenshot-tabs .nav-link:not(.active):hover {
    border-color: var(--basis-blue);
    color: var(--basis-blue);
    background: var(--tblr-card-bg);
}

/* Carousel prev/next — hidden until hover */
.screenshot-frame .carousel-control-prev,
.screenshot-frame .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity .2s;
}
.screenshot-frame:hover .carousel-control-prev,
.screenshot-frame:hover .carousel-control-next {
    opacity: 1;
}

/* Carousel indicators — pill dots at bottom of image */
.screenshot-frame .shot-indicators {
    bottom: 10px;
    margin-bottom: 0;
}
.screenshot-frame .shot-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border-top: 0;
    border-bottom: 0;
    background: rgba(255,255,255,.55);
    transition: width .2s, border-radius .2s, background .2s;
}
.screenshot-frame .shot-indicators .active {
    width: 22px;
    border-radius: 4px;
    background: #fff;
    opacity: 1;
}

/* ── Stats bar ── */

.stats-bar {
    background: var(--tblr-card-bg);
    border-top: 1px solid var(--tblr-border-color);
    border-bottom: 1px solid var(--tblr-border-color);
    padding: 28px 0;
}
[data-bs-theme="dark"] .stats-bar { background: #1a1f2e; }
.stat-item  { text-align: center; padding: 0 24px; }
.stat-num   { font-size: 1.875rem; font-weight: 800; color: var(--basis-blue); line-height: 1; }
.stat-label { font-size: .8125rem; color: var(--tblr-muted); margin-top: 4px; }

/* ── Section labels ── */

.section-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--basis-blue);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
}

/* ── Feature cards ── */

.feature-icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.feature-icon-box.blue   { background: rgba(0,153,255,.12);  color: var(--basis-blue); }
.feature-icon-box.green  { background: rgba(102,204,51,.12); color: #45a020; }
.feature-icon-box.orange { background: rgba(255,102,51,.12); color: #cc4400; }
.feature-icon-box.yellow { background: rgba(255,204,0,.15);  color: #a07000; }

.feature-card {
    border: 1px solid var(--tblr-border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all .25s;
    height: 100%;
    background: var(--tblr-card-bg);
}
.feature-card:hover { border-color: var(--basis-blue); box-shadow: 0 4px 24px rgba(0,153,255,.1); transform: translateY(-2px); }

/* ── Pricing cards ── */

.pricing-section { background: var(--tblr-card-bg); }

.pricing-card {
    border: 2px solid var(--tblr-border-color);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    position: relative;
    transition: all .25s;
    background: var(--tblr-card-bg);
}
.pricing-card.popular { border-color: var(--basis-blue); box-shadow: 0 8px 40px rgba(0,153,255,.15); }
.pricing-card:hover   { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.popular-badge {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--basis-blue);
    color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.price-amount {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.03em;
}

/* Discount styles */
.discount-banner {
    background: linear-gradient(90deg, #0060b0, #0099ff);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: .9rem;
}
.price-original {
    font-size: 1rem;
    font-weight: 500;
    color: var(--tblr-muted);
    text-decoration: line-through;
    margin-right: 6px;
}
.discount-badge {
    display: inline-block;
    background: #d13438;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    vertical-align: middle;
}

.edition-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 1rem; }
.check-list li .ti { flex-shrink: 0; margin-top: 2px; }
.check-list li.yes .ti { color: var(--basis-green); }
.check-list li.no  .ti { color: var(--tblr-muted); }
.check-list li.no       { color: var(--tblr-muted); }

/* ── Comparison table ── */

.comparison-table th { font-size: .75rem !important; text-align: center; }
.comparison-table td { font-size: .875rem; }
.comparison-table .check-yes { color: var(--basis-green); font-size: 1.1rem; }
.comparison-table .check-no  { color: var(--tblr-muted); font-size: 1rem; }
.comparison-table .section-row td {
    font-weight: 700;
    background: var(--tblr-bg-surface-secondary);
    font-size: .75rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--tblr-muted);
}
@media (max-width: 575.98px) {
    .comparison-table th,
    .comparison-table td { padding: 6px 5px; }
    .comparison-table td { font-size: .8rem; }
    .comparison-table .section-row td { font-size: .68rem; }
}

/* ── FAQ ── */

.faq-item {
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--tblr-card-bg);
}
.faq-item .accordion-button { font-weight: 600; font-size: .9375rem; background: transparent; box-shadow: none; }
.faq-item .accordion-button:not(.collapsed) { color: var(--basis-blue); }

/* ── CTA Section ── */

.cta-section {
    background: linear-gradient(135deg, var(--basis-blue) 0%, #0066cc 100%);
    color: #fff;
    padding: 80px 0;
}

/* ── Footer ── */

.footer-basis {
    border-top: 1px solid var(--tblr-border-color);
    padding: 48px 0 32px;
}

/* ── Scroll fade animation ── */

.scroll-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.scroll-fade.visible { opacity: 1; transform: none; }

/* ── Back to top ── */

.back-to-top {
    position: fixed;
    bottom: 28px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--basis-blue);
    color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,153,255,.35);
    opacity: 0; transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    z-index: 1040; pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover   { background: #007acc; transform: translateY(-2px); }

/* ── Anchor scroll offset ── */
[id] { scroll-margin-top: 72px; }

/* ═══════════════════════════════════════════════════════
   DOCS — App-like layout
   ═══════════════════════════════════════════════════════ */

/* Full-height docs layout */
body.docs-page { padding-top: 0; overflow: hidden; height: 100%; }
html.docs-page  { overflow: hidden; height: 100%; }

/* Docs topbar */
.docs-topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--tblr-border-color);
    z-index: 1050;
}
[data-bs-theme="dark"] .docs-topbar { background: #1a2332; border-bottom-color: rgba(255,255,255,.08); }

.docs-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 16px;
}
@media (max-width: 768px) {
    .docs-topbar-inner { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 12px; }
}

.docs-topbar-logo { height: 36px; flex-shrink: 0; }

.docs-topbar-search {
    flex: 1; max-width: 480px;
    display: flex; align-items: center;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
    font-size: .875rem;
    color: var(--tblr-muted);
    cursor: pointer;
    height: 36px;
    transition: border-color .15s;
    margin: 0 auto;
}
[data-bs-theme="dark"] .docs-topbar-search { color: var(--tblr-muted); }
@media (max-width: 768px) { .docs-topbar-search { display: none; } }
.docs-topbar-search:hover { border-color: var(--basis-blue); }

.docs-version-badge {
    background: rgba(0,153,255,.1);
    color: var(--basis-blue);
    border: 1px solid rgba(0,153,255,.25);
    border-radius: 100px;
    padding: 2px 10px;
    font-size: .75rem; font-weight: 600;
}
@media (max-width: 768px) { .docs-version-badge { display: none; } }

/* Docs layout: sidebar + main */
.docs-layout {
    display: flex;
    height: calc(100vh - var(--topbar-height));
    margin-top: var(--topbar-height);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* Docs sidebar */
.docs-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid var(--tblr-border-color);
    padding: 16px 0 48px;
    background: #f8fafc;
    scrollbar-width: none;
}
[data-bs-theme="dark"] .docs-sidebar { background: #1a2332; }
.docs-sidebar::-webkit-scrollbar { display: none; }

.sidebar-group { margin-top: 8px; }

.sidebar-group-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px 6px;
}

.sidebar-group-icon {
    width: 26px; height: 26px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
}
.sidebar-group-icon.blue   { background: rgba(0,153,255,.15);   color: #007acc; }
.sidebar-group-icon.green  { background: rgba(102,204,51,.15);  color: #3a8a1a; }
.sidebar-group-icon.orange { background: rgba(255,102,51,.14);  color: #cc4400; }
.sidebar-group-icon.yellow { background: rgba(255,204,0,.18);   color: #7a5c00; }
.sidebar-group-icon.purple { background: rgba(138,97,222,.14);  color: #6c3fc5; }
.sidebar-group-icon.gray   { background: rgba(128,128,128,.13); color: #555; }

[data-bs-theme="dark"] .sidebar-group-icon.blue   { color: #3db8ff; }
[data-bs-theme="dark"] .sidebar-group-icon.green  { color: #7dcc4a; }
[data-bs-theme="dark"] .sidebar-group-icon.orange { color: #ff8060; }
[data-bs-theme="dark"] .sidebar-group-icon.yellow { color: #e6b800; }
[data-bs-theme="dark"] .sidebar-group-icon.purple { color: #b08aff; }
[data-bs-theme="dark"] .sidebar-group-icon.gray   { color: #9aa0aa; }

.sidebar-group-label {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--tblr-muted);
}

.sidebar-group-divider {
    height: 1px;
    background: var(--tblr-border-color);
    margin: 2px 16px 4px;
}

.sidebar-items { padding: 0 8px 6px; }

.sidebar-link {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 6px 12px;
    font-size: .845rem;
    color: var(--tblr-body-color);
    text-decoration: none;
    border-radius: 7px;
    transition: background .15s, color .15s;
    border: none; background: transparent;
    width: 100%; text-align: left;
    margin-bottom: 1px; cursor: pointer;
}
.sidebar-link:hover { color: var(--tblr-body-color); background: rgba(0,0,0,.05); text-decoration: none; }
[data-bs-theme="dark"] .sidebar-link:hover { background: rgba(255,255,255,.07); }
.sidebar-link.active { color: var(--basis-blue); background: rgba(0,153,255,.1); font-weight: 600; }
[data-bs-theme="dark"] .sidebar-link.active { background: rgba(0,153,255,.15); }
.sidebar-link .ti { font-size: .9rem; flex-shrink: 0; opacity: .75; }
.sidebar-link.active .ti { opacity: 1; }

.badge-new {
    margin-left: auto;
    background: var(--basis-green);
    color: #fff;
    font-size: .6rem; padding: 2px 6px;
    border-radius: 100px; font-weight: 700;
}

/* Docs main content */
.docs-main {
    flex: 1; min-width: 0;
    display: flex;
    overflow-y: auto;
    height: 100%;
    background: #fff;
    scrollbar-width: none;
}
[data-bs-theme="dark"] .docs-main { background: #0f1824; }
.docs-main::-webkit-scrollbar { display: none; }

.docs-content {
    flex: 1;
    max-width: 800px;
    padding: 48px 40px 80px;
    min-width: 0;
}

/* TOC (right panel) */
.docs-toc {
    width: 220px; flex-shrink: 0;
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
    max-height: calc(100vh - var(--topbar-height) - 48px);
    overflow-y: auto;
    padding: 0 24px;
    align-self: flex-start;
}
.toc-label {
    font-size: .6875rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--tblr-muted); margin-bottom: 10px;
}
.toc-link {
    display: block; font-size: .8125rem;
    color: var(--tblr-muted); text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all .15s;
}
.toc-link:hover, .toc-link.active { color: var(--basis-blue); border-left-color: var(--basis-blue); }

/* Breadcrumb */
.doc-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: .8125rem; color: var(--tblr-muted);
    margin-bottom: 12px; flex-wrap: wrap;
}
.doc-breadcrumb a { color: var(--tblr-muted); text-decoration: none; transition: color .15s; }
.doc-breadcrumb a:hover { color: var(--basis-blue); }
.doc-breadcrumb .bc-current { color: var(--tblr-body-color); font-weight: 500; }

/* Doc content typography */
.doc-header {
    border-bottom: 1px solid var(--tblr-border-color);
    padding-bottom: 24px; margin-bottom: 32px;
}
.doc-title   { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.doc-subtitle { color: var(--tblr-muted); margin-top: 8px; font-size: 1rem; line-height: 1.6; }

h2.doc-h2 {
    font-size: 1.375rem; font-weight: 700;
    margin: 40px 0 16px; letter-spacing: -.02em; padding-top: 8px;
}
h3.doc-h3 { font-size: 1.0625rem; font-weight: 600; margin: 28px 0 12px; }

.doc-p { line-height: 1.75; color: var(--tblr-body-color); margin-bottom: 16px; }

.doc-code {
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px; padding: 20px 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .8375rem; line-height: 1.65;
    overflow-x: auto; margin: 16px 0;
    position: relative;
}
.doc-code-inline {
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 4px; padding: 1px 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .85em;
}
.copy-btn {
    position: absolute; top: 10px; right: 10px;
    display: flex; align-items: center; gap: 4px;
    font-size: .72rem; padding: 3px 10px;
    border-radius: 5px;
    background: var(--tblr-bg-surface-secondary);
    color: var(--tblr-muted);
    border: 1px solid var(--tblr-border-color);
    cursor: pointer; opacity: 0; transition: opacity .2s, background .15s;
}
.doc-code:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: var(--basis-blue); color: #fff; border-color: var(--basis-blue); }
.copy-btn.copied { background: var(--basis-green); color: #fff; border-color: var(--basis-green); }

/* Doc callouts */
.doc-callout {
    border-radius: 10px; padding: 16px 20px;
    margin: 20px 0; display: flex; gap: 12px;
    font-size: .9rem; line-height: 1.6;
}
.doc-callout.info { background: rgba(0,153,255,.08);  border: 1px solid rgba(0,153,255,.2); }
.doc-callout.tip  { background: rgba(102,204,51,.08); border: 1px solid rgba(102,204,51,.25); }
.doc-callout.warn { background: rgba(255,204,0,.1);   border: 1px solid rgba(255,204,0,.3); }
.doc-callout i { flex-shrink: 0; font-size: 1.25rem; margin-top: 1px; }
.doc-callout.info i { color: var(--basis-blue); }
.doc-callout.tip  i { color: #45a020; }
.doc-callout.warn i { color: #a07000; }

/* Step list */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.step-list li {
    display: flex; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--tblr-border-color);
}
.step-list li:last-child { border-bottom: none; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--basis-blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .8125rem; font-weight: 700;
    flex-shrink: 0; margin-top: 2px;
}

/* Edition tabs */
.edition-tab-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.edition-tab {
    padding: 6px 16px; border-radius: 8px;
    font-size: .8125rem; font-weight: 600;
    border: 1.5px solid var(--tblr-border-color);
    background: transparent; cursor: pointer;
    color: var(--tblr-body-color); transition: all .15s;
}
.edition-tab.active-desktop { background: rgba(102,204,51,.12); color: #45a020; border-color: rgba(102,204,51,.4); }
.edition-tab.active-server  { background: rgba(0,153,255,.12);  color: #0077cc; border-color: rgba(0,153,255,.4); }
.edition-tab.active-cloud   { background: rgba(255,102,51,.12); color: #cc4400; border-color: rgba(255,102,51,.4); }
.edition-content { display: none; }
.edition-content.active { display: block; }

/* Module grid */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.module-card {
    border: 1px solid var(--tblr-border-color); border-radius: 12px; padding: 18px;
    cursor: pointer; transition: all .2s; text-decoration: none;
    color: var(--tblr-body-color); display: flex; flex-direction: column; gap: 8px;
    background: var(--tblr-card-bg);
}
.module-card:hover { border-color: var(--basis-blue); box-shadow: 0 4px 16px rgba(0,153,255,.1); transform: translateY(-2px); }
.module-card .module-icon { font-size: 1.5rem; }
.module-card .module-name { font-weight: 600; font-size: .9rem; }
.module-card .module-desc { font-size: .8rem; color: var(--tblr-muted); line-height: 1.4; }

/* Doc nav prev/next */
.doc-nav-footer {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid var(--tblr-border-color);
}
.doc-nav-btn {
    border: 1.5px solid var(--tblr-border-color); border-radius: 10px; padding: 12px 20px;
    text-decoration: none; color: var(--tblr-body-color);
    transition: all .15s; max-width: 260px; font-size: .875rem;
    cursor: pointer; background: none;
}
.doc-nav-btn:hover { border-color: var(--basis-blue); color: var(--basis-blue); }
.doc-nav-btn .nav-dir { font-size: .7rem; color: var(--tblr-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .06em; }

/* Mobile sidebar */
.sidebar-toggle {
    display: none; padding: 6px; border-radius: 6px;
    border: 1px solid var(--tblr-border-color);
    background: transparent; cursor: pointer; color: var(--tblr-body-color);
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1029; }
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .docs-sidebar {
        position: fixed; top: var(--topbar-height); left: 0; bottom: 0; height: auto;
        transform: translateX(-100%); transition: transform .25s;
        z-index: 1030; box-shadow: 4px 0 24px rgba(0,0,0,.15);
        background: var(--tblr-card-bg) !important;
    }
    .docs-sidebar.open { transform: none; }
    .docs-content { padding: 32px 20px 60px; }
    .docs-toc { display: none; }
}

/* ── API method badges ── */
.api-method { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; }
.method-get  { background: rgba(102,204,51,.15); color: #3a8a1a; }
.method-post { background: rgba(0,153,255,.15);  color: #0077cc; }
.method-put  { background: rgba(255,204,0,.2);   color: #7a5c00; }
.method-del  { background: rgba(255,102,51,.12); color: #cc4400; }

/* ── Changelog ── */
.changelog-entry { border-left: 3px solid var(--tblr-border-color); padding: 0 0 32px 24px; position: relative; margin-left: 8px; }
.changelog-entry::before { content: ''; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--basis-blue); border: 3px solid var(--tblr-card-bg); }
.changelog-version { font-size: 1.125rem; font-weight: 700; color: var(--basis-blue); margin-bottom: 4px; }
.changelog-date    { font-size: .8rem; color: var(--tblr-muted); margin-bottom: 12px; }
.changelog-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-right: 6px; margin-bottom: 6px; }
.tag-new  { background: rgba(102,204,51,.15); color: #3a8a1a; }
.tag-fix  { background: rgba(255,102,51,.12); color: #cc4400; }
.tag-impr { background: rgba(0,153,255,.12);  color: #0077cc; }

/* ── Search modal ── */
.search-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-modal-backdrop.open { display: flex; }
.search-modal { background: var(--tblr-card-bg); border: 1px solid var(--tblr-border-color); border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 24px 64px rgba(0,0,0,.25); overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--tblr-border-color); }
.search-input-wrap i { color: var(--tblr-muted); font-size: 1.1rem; flex-shrink: 0; }
.search-input { flex: 1; border: none; background: transparent; font-size: 1rem; outline: none; color: var(--tblr-body-color); font-family: 'Inter', sans-serif; }
.search-input::placeholder { color: var(--tblr-muted); }
.search-kbd { font-size: .7rem; color: var(--tblr-muted); border: 1px solid var(--tblr-border-color); border-radius: 4px; padding: 2px 6px; font-family: 'JetBrains Mono', monospace; }
.search-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.search-result-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background .12s; background: transparent; color: var(--tblr-body-color); }
.search-result-item:hover, .search-result-item.focused { background: rgba(0,153,255,.08); }
.search-result-title { font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--tblr-body-color); }
.search-result-group, .search-result-excerpt { color: var(--tblr-muted); }
.search-result-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; margin-top: 2px; }
.search-result-group   { font-size: .75rem; margin-top: 2px; }
.search-result-excerpt { font-size: .8rem; margin-top: 3px; line-height: 1.4; }
.search-highlight { color: var(--basis-blue); font-weight: 700; background: rgba(0,153,255,.1); border-radius: 2px; padding: 0 2px; }
.search-empty { text-align: center; padding: 32px 16px; color: var(--tblr-muted); font-size: .9rem; }
.search-footer { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--tblr-border-color); font-size: .72rem; color: var(--tblr-muted); }
.search-footer .sk { display: inline-flex; align-items: center; gap: 4px; }
.search-footer kbd { background: var(--tblr-bg-surface-secondary); border: 1px solid var(--tblr-border-color); border-radius: 4px; padding: 1px 5px; font-size: .7rem; }

/* ── Shared lang dropdown ── */
.lang-btn { display: flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 7px; border: 1.5px solid var(--tblr-border-color); background: transparent; cursor: pointer; color: var(--tblr-body-color); transition: all .15s; }
.lang-btn:hover { border-color: var(--basis-blue); color: var(--basis-blue); }

/* ═══════════════════════════════════════════════════════
   DOC BODY — scoped styles for Markdig HTML output
   ═══════════════════════════════════════════════════════ */

.doc-body { line-height: 1.75; }

/* Headings */
.doc-body h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 8px; border-bottom: 1px solid var(--tblr-border-color); padding-bottom: 20px; margin-bottom: 28px; }
.doc-body h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; margin: 40px 0 14px; padding-top: 8px; }
.doc-body h3 { font-size: 1.0625rem; font-weight: 600; margin: 28px 0 10px; }
.doc-body h4 { font-size: .9375rem; font-weight: 600; margin: 20px 0 8px; }

/* Paragraph & inline */
.doc-body p  { margin-bottom: 16px; color: var(--tblr-body-color); }
.doc-body a  { color: var(--basis-blue); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body strong { font-weight: 700; }
.doc-body em { font-style: italic; }

/* Code */
.doc-body code {
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 4px; padding: 1px 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .85em;
}
.doc-body pre {
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px; padding: 20px 24px;
    overflow-x: auto; margin: 16px 0;
}
.doc-body pre code {
    background: none; border: none; padding: 0;
    font-size: .8375rem; line-height: 1.65;
}

/* Lists */
.doc-body ul, .doc-body ol { margin: 0 0 16px 0; padding-left: 24px; }
.doc-body li { margin-bottom: 6px; }
.doc-body li > ul, .doc-body li > ol { margin-top: 6px; margin-bottom: 0; }

/* Tables */
.doc-body table {
    width: 100%; border-collapse: collapse;
    margin: 20px 0; font-size: .875rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px; overflow: hidden;
}
.doc-body thead { background: var(--tblr-bg-surface-secondary); }
.doc-body th { padding: 10px 14px; font-weight: 600; text-align: left; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-muted); border-bottom: 1px solid var(--tblr-border-color); }
.doc-body td { padding: 10px 14px; border-bottom: 1px solid var(--tblr-border-color); vertical-align: top; }
.doc-body tbody tr:last-child td { border-bottom: none; }
.doc-body tbody tr:hover { background: rgba(0,0,0,.02); }
[data-bs-theme="dark"] .doc-body tbody tr:hover { background: rgba(255,255,255,.03); }

/* Blockquotes → info callout */
.doc-body blockquote {
    margin: 20px 0;
    padding: 14px 18px 14px 48px;
    background: rgba(0,153,255,.07);
    border: 1px solid rgba(0,153,255,.2);
    border-radius: 10px; position: relative;
    font-size: .9rem; line-height: 1.6;
}
.doc-body blockquote::before {
    content: '\ea77';
    font-family: 'tabler-icons';
    position: absolute; left: 14px; top: 14px;
    color: var(--basis-blue); font-size: 1.1rem;
}
.doc-body blockquote p { margin: 0; color: var(--tblr-body-color); }

/* Custom containers (:::info, :::warning, :::tip) */
.doc-body .info, .doc-body .note {
    padding: 14px 18px; margin: 20px 0;
    background: rgba(0,153,255,.07); border: 1px solid rgba(0,153,255,.2);
    border-radius: 10px; font-size: .9rem; line-height: 1.6;
}
.doc-body .warning, .doc-body .warn {
    padding: 14px 18px; margin: 20px 0;
    background: rgba(255,204,0,.1); border: 1px solid rgba(255,204,0,.3);
    border-radius: 10px; font-size: .9rem; line-height: 1.6;
}
.doc-body .tip, .doc-body .success {
    padding: 14px 18px; margin: 20px 0;
    background: rgba(102,204,51,.08); border: 1px solid rgba(102,204,51,.25);
    border-radius: 10px; font-size: .9rem; line-height: 1.6;
}
.doc-body .danger, .doc-body .error {
    padding: 14px 18px; margin: 20px 0;
    background: rgba(255,102,51,.08); border: 1px solid rgba(255,102,51,.25);
    border-radius: 10px; font-size: .9rem; line-height: 1.6;
}
.doc-body .info p, .doc-body .note p,
.doc-body .warning p, .doc-body .warn p,
.doc-body .tip p, .doc-body .success p,
.doc-body .danger p, .doc-body .error p { margin: 0; }

/* Horizontal rule */
.doc-body hr { border: none; border-top: 1px solid var(--tblr-border-color); margin: 32px 0; }

/* Images */
.doc-body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--tblr-border-color); margin: 16px 0; }

/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Mobile responsive
   ═══════════════════════════════════════════════════════ */

/* Tablet (576 – 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section  { padding: 72px 0 52px; }
    .pricing-card  { padding: 24px; }
    .cta-section   { padding: 60px 0; }
}

/* Mobile (< 576px) */
@media (max-width: 575.98px) {
    /* Bootstrap xs containers only give 12px per side — bump to 20px */
    .hero-section > .container,
    .stats-bar > .container,
    .cta-section > .container,
    section > .container,
    .footer-basis > .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hero */
    .hero-section  { padding: 48px 0 36px; }
    .hero-badge    { font-size: .75rem; padding: 4px 12px; }
    .hero-subtitle { font-size: .9375rem; }
    .hero-cta-group { margin-top: 20px; gap: 8px; }
    .hero-cta-group .btn-basis-primary,
    .hero-cta-group .btn-basis-outline { padding: 10px 18px; font-size: .9rem; }
    .edition-pill  { font-size: .75rem; padding: 5px 10px; }

    /* Screenshot tabs — horizontal scroll instead of wrap */
    .screenshot-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .screenshot-tabs::-webkit-scrollbar { display: none; }
    .screenshot-tabs .nav-link { white-space: nowrap; font-size: .8rem; padding: 5px 12px; }

    /* Stats bar */
    .stat-item { padding: 0 8px; }
    .stat-num  { font-size: 1.5rem; }

    /* Section spacing */
    .py-6 { padding-top: 40px !important; padding-bottom: 40px !important; }
    .section-title { font-size: 1.375rem; }

    /* Feature cards */
    .feature-card { padding: 16px; }

    /* Pricing cards */
    .pricing-card  { padding: 20px 18px; }
    .price-amount  { font-size: 1.625rem; }
    .edition-icon  { width: 44px; height: 44px; margin-bottom: 14px; }

    /* CTA */
    .cta-section { padding: 48px 0; }
    .cta-section .display-5 { font-size: 1.5rem; }

    /* Footer */
    .footer-basis { padding: 32px 0 20px; }
}
