/* =============================================
   Raj Market — Documentation Styles
   ============================================= */

:root {
    --primary: #fb8600;
    --primary-dark: #e07500;
    --primary-light: rgba(251, 134, 0, 0.09);
    --dark: #0f0f0f;
    --bg: #ffffff;
    --bg-off: #f8f9fb;
    --border: #e8e8e8;
    --text: #1a1a1a;
    --muted: #6b7280;
    --transition: all 0.25s ease;
    --sidebar-w: 252px;
    --mobile-topbar-h: 52px;
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}
.primary { color: var(--primary); }

/* ─── Container ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 1.5px solid transparent;
    line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--dark); border-color: #ccc; background: var(--bg-off); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* ==============================================
   LAYOUT
   ============================================== */

.docs-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────── */
.docs-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--bg-off);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 3px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Sidebar logo */
.sidebar-logo-wrap {
    padding: 20px 16px 10px;
    flex-shrink: 0;
}
.sidebar-logo img { height: 26px; width: auto; }

/* Sidebar Search */
.sidebar-search-area {
    padding: 6px 16px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-search-wrap { position: relative; }
.sidebar-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s;
}
.sidebar-search-input:focus { outline: none; border-color: var(--primary); }
.sidebar-search-input::placeholder { color: var(--muted); }
.sidebar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.75rem;
    pointer-events: none;
}
.sidebar-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 260px;
    overflow-y: auto;
    z-index: 60;
    display: none;
}
.sidebar-search-results.open { display: block; }
.search-result-item {
    display: block;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    color: var(--text);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-off); }
.search-result-item strong { display: block; font-size: 0.83rem; font-weight: 600; color: var(--dark); margin-bottom: 1px; }
.search-result-item span { font-size: 0.76rem; color: var(--muted); }
.search-no-results { padding: 14px; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* Sidebar Nav */
.sidebar-nav-area { padding: 14px 12px; flex: 1; overflow-y: auto; }
.sidebar-group { margin-bottom: 20px; }
.sidebar-group-label {
    padding: 0 8px;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9ca3af;
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.858rem;
    font-weight: 500;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
    margin-bottom: 1px;
}
.sidebar-nav-link i { font-size: 0.78rem; width: 14px; text-align: center; flex-shrink: 0; }
.sidebar-nav-link:hover { background: rgba(0,0,0,0.04); color: var(--dark); }
.sidebar-nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Sidebar Actions */
.sidebar-actions-area {
    padding: 14px 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--muted);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-align: left;
}
.sidebar-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.sidebar-action-btn i { font-size: 0.78rem; }

/* Go Back button */
.sidebar-go-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s;
    margin-top: 2px;
}
.sidebar-go-back-btn:hover { background: var(--primary-dark); color: #fff; }
.sidebar-go-back-btn i { font-size: 0.78rem; }

/* ─── Content Area ───────────────────────────── */
.docs-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ─── Mobile Topbar (hidden on desktop) ─────── */
.docs-mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--mobile-topbar-h);
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}
.docs-mobile-logo img { height: 24px; width: auto; }
.docs-menu-toggle-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
}
.docs-menu-toggle-btn:hover,
.docs-menu-toggle-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.docs-menu-toggle-btn i { font-size: 0.8rem; }

/* ─── Mobile Nav Dropdown ────────────────────── */
.docs-mobile-nav-dropdown {
    display: none;
    background: #fff;
    border-bottom: 2px solid var(--border);
    padding: 14px 20px 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    flex-shrink: 0;
}
.docs-mobile-nav-dropdown.open { display: block; }

.mobile-nav-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    margin-bottom: 14px;
}
.mobile-nav-group-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 7px;
}
.mobile-nav-group-links { display: flex; flex-direction: column; gap: 1px; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 0.845rem;
    font-weight: 500;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
}
.mobile-nav-link i { font-size: 0.75rem; width: 14px; text-align: center; flex-shrink: 0; }
.mobile-nav-link:hover { background: var(--bg-off); color: var(--dark); }
.mobile-nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.mobile-nav-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Article Row ────────────────────────────── */
.docs-row {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

/* ─── Main Content ───────────────────────────── */
.docs-main-content {
    flex: 1;
    min-width: 0;
}

/* ─── Right-side "On This Page" TOC (desktop) ── */
.docs-page-toc {
    width: 216px;
    flex-shrink: 0;
    position: sticky;
    top: 28px;
    align-self: flex-start;
    padding: 28px 20px 28px 18px;
    border-left: 1px solid var(--border);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    scrollbar-width: none;
}
.docs-page-toc::-webkit-scrollbar { display: none; }
.docs-page-toc-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 12px;
    font-family: 'Syne', sans-serif;
}
#docsPageTocList { display: flex; flex-direction: column; gap: 2px; }
#docsPageTocList a {
    font-size: 0.815rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
    line-height: 1.4;
    transition: color 0.15s;
}
#docsPageTocList a::before {
    content: "#";
    font-size: 0.67rem;
    opacity: 0.35;
    margin-top: 2px;
    flex-shrink: 0;
}
#docsPageTocList a:hover { color: var(--dark); }
#docsPageTocList a.active { color: var(--primary); font-weight: 600; }
#docsPageTocList a.active::before { opacity: 1; }

/* ==============================================
   ARTICLE & DOC CONTENT STYLES
   ============================================== */

.docs-article {
    padding: 44px 44px 96px;
    max-width: 780px;
}

/* Article Header */
.docs-article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.docs-article-header h1 { font-size: 1.8rem; margin-bottom: 9px; }
.docs-lead { color: var(--muted); font-size: 0.97rem; max-width: 560px; }

/* Inline TOC (shown on mobile & tablet, hidden on wide desktop) */
.docs-toc {
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 32px;
}
.docs-toc h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin-bottom: 10px;
}
.docs-toc ul { display: flex; flex-direction: column; gap: 5px; }
.docs-toc a {
    font-size: 0.858rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.15s;
}
.docs-toc a::before { content: "→"; font-size: 0.7rem; opacity: 0.5; }
.docs-toc a:hover { color: var(--primary); }

/* Section */
.docs-section { margin-bottom: 42px; }
.docs-section h2 {
    font-size: 1.2rem;
    margin-bottom: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 28px;
}
.docs-section h3 {
    font-size: 0.975rem;
    margin-top: 20px;
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}
.docs-section p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.docs-section p:last-child { margin-bottom: 0; }
.docs-section p strong { color: var(--text); font-weight: 600; }

/* Steps */
.docs-steps {
    counter-reset: step-counter;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 13px 0;
}
.docs-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 37px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    min-height: 29px;
}
.docs-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 25px;
    height: 25px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    flex-shrink: unset;
}

/* Bullet list */
.docs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 11px 0;
}
.docs-list li {
    position: relative;
    padding-left: 16px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}
.docs-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Callout boxes */
.docs-callout {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin: 13px 0;
    border: 1px solid;
    line-height: 1.55;
}
.docs-callout i { flex-shrink: 0; margin-top: 2px; font-size: 0.875rem; }
.docs-callout p { margin: 0; color: inherit; font-size: inherit; }
.docs-callout-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.docs-callout-info i { color: #3b82f6; }
.docs-callout-tip { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.docs-callout-tip i { color: #22c55e; }
.docs-callout-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.docs-callout-warning i { color: #f59e0b; }

/* Tables */
.docs-table-wrap { overflow-x: auto; margin: 13px 0; border-radius: 8px; border: 1px solid var(--border); }
.docs-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.docs-table th {
    background: var(--bg-off);
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
}
.docs-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td:first-child { color: var(--text); font-weight: 500; }
.docs-table .icon-check { color: #22c55e; }
.docs-table .icon-cross { color: #ef4444; }

/* Plan badges */
.plan-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; vertical-align: middle; margin-left: 4px; }
.plan-free { background: #f3f4f6; color: #6b7280; }
.plan-plus { background: #eff6ff; color: #1d4ed8; }
.plan-pro { background: #fdf4ff; color: #7e22ce; }

/* ==============================================
   INDEX PAGE STYLES
   ============================================== */

.docs-index-hero {
    padding: 52px 48px 40px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(160deg, #fff7ed 0%, #fff 55%);
}
.docs-index-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    background: var(--primary-light);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
}
.docs-index-hero h1 { font-size: 2.1rem; margin-bottom: 10px; }
.docs-index-hero p { color: var(--muted); font-size: 0.97rem; max-width: 480px; margin-bottom: 26px; }

.docs-hero-search-wrap { position: relative; max-width: 500px; }
.docs-hero-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.93rem;
    color: var(--text);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.docs-hero-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(251,134,0,0.1); }
.docs-hero-search-input::placeholder { color: #adb5bd; }
.docs-hero-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.docs-hero-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 50;
    overflow: hidden;
    display: none;
}
.docs-hero-search-results.open { display: block; }

.docs-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 36px 48px;
}
.docs-topic-card {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    background: #fff;
    display: block;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.docs-topic-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(251,134,0,0.1);
    transform: translateY(-2px);
    color: inherit;
}
.topic-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.docs-topic-card h3 { font-size: 0.92rem; margin-bottom: 5px; }
.docs-topic-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }

.docs-help-strip {
    border-top: 1px solid var(--border);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--bg-off);
}
.docs-help-text h3 { font-size: 0.975rem; margin-bottom: 3px; }
.docs-help-text p { font-size: 0.858rem; color: var(--muted); margin: 0; }
.docs-help-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ==============================================
   BACK TO TOP
   ============================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px; height: 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(251,134,0,0.35);
    transition: transform 0.2s, background 0.2s;
    z-index: 50;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

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

/* Wide desktop: sidebar + article + right TOC */
@media (min-width: 1280px) {
    .docs-toc { display: none; }
    .docs-page-toc { display: block; }
}

/* Medium: sidebar + article only (no right TOC) */
@media (max-width: 1279px) {
    .docs-toc { display: block; }
    .docs-page-toc { display: none; }
}

/* Desktop: sidebar visible, no mobile topbar */
@media (min-width: 769px) {
    .docs-sidebar { display: flex; }
    .docs-mobile-topbar { display: none !important; }
    .docs-mobile-nav-dropdown { display: none !important; }
}

/* Mobile: hide sidebar, show topbar */
@media (max-width: 768px) {
    /* Layout */
    .docs-sidebar { display: none; }
    .docs-wrapper { display: block; }
    .docs-content-area {
        display: block;
        padding-top: var(--mobile-topbar-h);
        min-height: 100vh;
    }

    /* Fixed topbar — stays at top while scrolling */
    .docs-mobile-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 200;
    }

    /* Dropdown fixed just below the topbar */
    .docs-mobile-nav-dropdown {
        position: fixed;
        top: var(--mobile-topbar-h);
        left: 0;
        right: 0;
        z-index: 199;
        max-height: calc(100vh - var(--mobile-topbar-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .docs-mobile-nav-dropdown.open { display: block; }

    /* Main content */
    .docs-row {
        display: block;
        width: 100%;
    }

    .docs-main-content {
        width: 100%;
        overflow-x: hidden;
    }

    .docs-article {
        padding: 28px 16px 72px;
        max-width: 100%;
        overflow-x: hidden;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .docs-article-header h1 { font-size: 1.45rem; }

    /* Prevent tables / callouts / code from blowing out layout */
    .docs-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .docs-callout { flex-wrap: wrap; word-break: break-word; }
    .docs-section { overflow-wrap: break-word; }
    .docs-section h2,
    .docs-section h3 { word-break: break-word; }

    /* Index page */
    .docs-index-hero { padding: 28px 16px 24px; }
    .docs-index-hero h1 { font-size: 1.6rem; }
    .docs-topic-grid { padding: 20px 16px; grid-template-columns: 1fr 1fr; }
    .docs-help-strip { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
    .docs-help-actions { width: 100%; }
    .docs-help-actions .btn { flex: 1; justify-content: center; }

    /* Mobile nav layout */
    .mobile-nav-cols { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
    .mobile-nav-footer { flex-wrap: wrap; }
    .mobile-nav-footer .btn { flex: 1; justify-content: center; min-width: 120px; }
}

@media (max-width: 480px) {
    .docs-topic-grid { grid-template-columns: 1fr; }
    .mobile-nav-cols { grid-template-columns: 1fr; }
    .docs-article { padding: 20px 14px 60px; }
    .docs-index-hero { padding: 22px 14px 20px; }
    .docs-topic-grid { padding: 16px 14px; }
    .docs-help-strip { padding: 16px 14px; }
}

@media (max-width: 1024px) {
    .docs-article { padding: 36px 32px 80px; }
}
