/* =====================================================================
   DOCUMENTATION PAGE — matches the builder's visual system
   ===================================================================== */
:root {
    --d-accent: #0040e5;
    --d-accent-soft: rgba(0, 64, 229, .08);
    --d-ink: #10182e;
    --d-ink-soft: #5a647e;
    --d-ink-faint: #8b94ab;
    --d-line: #e6ebf3;
    --d-surface: #ffffff;
    --d-surface-2: #f5f8fd;
    --d-bg: #eef1f7;
    --d-radius: 16px;
    --d-shadow: 0 18px 48px -24px rgba(16, 32, 80, .4);
    --d-shadow-sm: 0 6px 18px -10px rgba(16, 32, 80, .3);
}

body {
    background: var(--d-bg);
    color: var(--d-ink);
}

.docs-hero {
    padding: 44px 0 8px;
}

.docs-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--d-accent);
    margin-bottom: 12px;
}

.docs-hero h1 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--d-ink);
    margin: 0 0 12px;
}

.docs-hero p {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--d-ink-soft);
    max-width: 68ch;
    margin: 0;
}

.docs {
    padding-bottom: 90px;
    align-items: flex-start;
}

/* ---- sidebar ---- */
.docs-sidebar {
    position: sticky;
    top: 24px;
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow-sm);
    padding: 16px;
}

.docs-sidebar .docs-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--d-ink-faint);
    padding: 6px 10px 12px;
    margin: 0;
    border-bottom: 1px solid var(--d-line);
}

.docs-sidebar .nav {
    margin-top: 10px;
    gap: 2px;
}

.docs-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--d-ink-soft) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 9px;
    transition: background .15s ease, color .15s ease;
}

.docs-sidebar .nav-link i {
    width: 18px;
    text-align: center;
    color: var(--d-ink-faint);
    transition: color .15s ease;
}

.docs-sidebar .nav-link:hover {
    background: var(--d-accent-soft);
    color: var(--d-accent) !important;
}

.docs-sidebar .nav-link:hover i {
    color: var(--d-accent);
}

/* ---- content ---- */
/* The section is both .container and .docs-card; only neutralise Bootstrap's
   nested-container max-width. The card's own padding provides the spacing —
   don't zero padding-left/right here or it wins over .docs-card and the
   content ends up flush to the card edges. */
.docs-content .container {
    max-width: none;
}

.docs-card {
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow-sm);
    padding: 26px 30px;
    margin-bottom: 18px;
}

.docs-content h1 {
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--d-ink);
}

.docs-content h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--d-ink);
    margin: 0 0 14px;
    scroll-margin-top: 80px;
}

.docs-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--d-ink);
    margin: 26px 0 10px;
}

.docs-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--d-ink);
    margin: 22px 0 10px;
}

.docs-content section {
    scroll-margin-top: 80px;
}

.docs-content p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--d-ink-soft);
}

.docs-content a {
    color: var(--d-accent);
    font-weight: 600;
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

.docs-content b {
    color: var(--d-ink);
}

.docs-content pre {
    background: #0d1220 !important;
    border: 1px solid #1c2740;
    border-radius: 12px;
    padding: 16px 18px !important;
    margin: 0 0 18px;
    overflow-x: auto;
}

.docs-content pre code {
    background: transparent !important;
    font-size: 13.5px;
}

.docs-content :not(pre) > code {
    background: var(--d-surface-2);
    border: 1px solid var(--d-line);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 13px;
    color: var(--d-accent);
}

/* ---- tables ---- */
.docs-content .table {
    border: 1px solid var(--d-line);
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 8px;
}

.docs-content .table thead th {
    background: var(--d-surface-2);
    color: var(--d-ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--d-line);
    padding: 12px 14px;
}

.docs-content .table td {
    font-size: 14px;
    color: var(--d-ink-soft);
    line-height: 1.55;
    padding: 12px 14px;
    vertical-align: top;
    border-top: 1px solid var(--d-line);
}

.docs-content .table td:first-child {
    font-weight: 700;
    color: var(--d-ink);
    white-space: nowrap;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
}

.docs-content .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: transparent;
}

.docs-content .table tbody tr:hover td {
    background: var(--d-surface-2);
}

/* option "required" pill in second column */
.docs-req {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.docs-req.yes {
    color: #b42318;
    background: #fee4e2;
}

.docs-req.no {
    color: #067647;
    background: #dcfae6;
}

.docs-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--d-accent);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.docs-support-btn:hover {
    background: #0035c4;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .docs-sidebar {
        position: static;
        margin-bottom: 18px;
    }

    .docs-card {
        padding: 20px;
    }
}
