html, body {
    overflow-x: hidden;
    overflow-y: auto;
}
.docs-page {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--vh, 1vh) * 100);
    background: #f3f4f6;
}
.docs-hero {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 56px 64px 48px;
}
@media (max-width: 768px) {
    .docs-hero {
        padding: 40px 24px 36px;
    }
}
.docs-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}
.docs-hero-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 16px;
}
.docs-hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    max-width: 640px;
    margin: 0;
}
.docs-tabs-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 64px;
    display: flex;
    gap: 0;
}
@media (max-width: 768px) {
    .docs-tabs-bar {
        padding: 0 24px;
    }
}

/* ensure tab buttons don't overflow on narrow viewports */
@media (max-width: 640px) {
    .docs-tabs-bar {
        flex-wrap: wrap;
        /* allow wrapping so tabs stack if needed */
    }
    .docs-tab-btn {
        margin-right: 16px;
        padding: 10px 0;
        font-size: 0.85rem;
        white-space: normal;
    }
}
.docs-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-right: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.docs-tab-btn:hover {
    color: #0f172a;
}
.docs-tab-btn.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
    font-weight: 600;
}
.docs-tab-btn svg {
    flex-shrink: 0;
}
.docs-body {
    flex: 1;
    display: flex;
    gap: 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
.docs-sidenav {
    width: 240px;
    flex-shrink: 0;
    padding: 32px 0 32px 64px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}
@media (max-width: 1024px) {
    .docs-sidenav {
        display: none;
    }
}
.sidenav-group {
    margin-bottom: 24px;
}
.sidenav-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
    padding: 0 8px;
}
.sidenav-link {
    display: block;
    padding: 5px 8px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
    line-height: 1.4;
}
.sidenav-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.sidenav-link.active {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 500;
}
.sidenav-link-sub {
    padding-left: 20px;
    font-size: 0.82rem;
    color: #64748b;
}
.docs-content {
    flex: 1;
    min-width: 0;
    padding: 40px 64px 80px 40px;
}
@media (max-width: 1024px) {
    .docs-content {
        padding: 40px 24px 80px;
    }
}
.docs-panel {
    display: none;
}
.docs-panel.active {
    display: block;
}
.docs-section {
    margin-bottom: 56px;
    scroll-margin-top: 80px;
}
.docs-section:first-child {
    margin-top: 0;
}
.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.subsection {
    margin-bottom: 36px;
    scroll-margin-top: 80px;
}
.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px;
}
.body-text {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 14px;
}
.body-text:last-child {
    margin-bottom: 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.feat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.feat-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px;
}
.feat-card-desc {
    font-size: 0.83rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}
.step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.step-body {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #374151;
}
.step-body strong {
    color: #0f172a;
}
.kbd {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #0f172a;
    line-height: 1.6;
    white-space: nowrap;
}
.callout {
    display: flex;
    gap: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 16px 0;
}
.callout.tip {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.callout.warn {
    background: #fffbeb;
    border-color: #fde68a;
}
.callout-icon {
    flex-shrink: 0;
    margin-top: 1px;
}
.callout-text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #374151;
}
.callout-text strong {
    color: #0f172a;
}
.docs-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.docs-table th {
    background: #f8fafc;
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}
.docs-table td {
    padding: 10px 16px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.docs-table tr:last-child td {
    border-bottom: none;
}
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}
.mode-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}
.mode-badge-dot.blue {
    background: #3b82f6;
}
.mode-badge-dot.orange {
    background: #f59e0b;
}
.coming-soon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    gap: 16px;
}
.coming-soon-icon {
    width: 56px;
    height: 56px;
    background: #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coming-soon-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.coming-soon-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #64748b;
    max-width: 420px;
    margin: 0;
}
.home-footer {
    padding: 20px 64px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
@media (max-width: 768px) {
    .home-footer {
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
    }
}
.footer-brand {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
}
.footer-note {
    font-size: 0.8rem;
    color: #475569;
}
