body {
    background-image: url("~/images/hero-geometric-bg3.png");
    background-size: cover;
    background-position: top; 
}
.docs_bis {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.7;
    background: #ffffff;
}
.docs{
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 1px 40px 40px 40px;
}

.docs h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* ── Two-column layout: sticky sidebar + main content ───────────────── */
.docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding: 1px 40px 40px 40px;
}

.docs-layout .docs {
    margin: 0;
    padding: 32px 0 0 0;
}

.docs-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-top: 32px;
}

.version-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 1.75rem;
}

.version-picker-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa3ad;
    font-weight: 700;
}

/* Trigger button — looks like the closed control */
.version-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #1a2b3c;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    padding: 0 0.9rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.version-select:hover {
    border-color: #b9c2cc;
}

.version-select:focus-visible,
.version-picker.open .version-select {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.version-select-chevron {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #0066cc;
    transition: transform 0.18s ease;
}

.version-picker.open .version-select-chevron {
    transform: rotate(180deg);
}

/* Custom dropdown list — same visual language as the trigger */
.version-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
}

.version-options[hidden] {
    display: none;
}

.version-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #344150;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.version-option:hover,
.version-option:focus-visible {
    outline: none;
    background: #f1f6fc;
    color: #0066cc;
}

.version-option.selected {
    color: #0066cc;
    font-weight: 600;
}

.version-option-check {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #0066cc;
    opacity: 0;
}

.version-option.selected .version-option-check {
    opacity: 1;
}

/* "You are viewing an older version" banner */
.version-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 0.9rem 1.2rem;
    margin: 0 0 1.5rem 0;
}

.version-notice[hidden] {
    display: none;
}

.version-notice .version-notice-text {
    color: #856404;
}

.version-notice .version-notice-reset {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.version-notice .version-notice-reset:hover {
    text-decoration: underline;
}

/* Only the active version's TOC + content is shown; the rest carry [hidden].
   An explicit rule is needed because main.css sets `nav { display: flex }`,
   which would otherwise override the browser default for hidden <nav> TOCs. */
.doc-version-block[hidden] {
    display: none;
}

/* scroll-margin keeps headings clear of the fixed header on anchor jumps;
   spacing between sections comes from margin-top (not the first one). */
.doc-section {
    scroll-margin-top: 90px;
    margin-top: 2.75rem;
}

.doc-section:first-of-type {
    margin-top: 0;
}

/* The leading heading sits flush at the section top so the first section
   lines up with the sidebar and banners. */
.doc-section > h2:first-child {
    margin-top: 0;
}

.docs .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.docs h2 {
    font-size: 1.8rem;
    margin-top: 1.3rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.docs h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #3c3c3c;
}

.docs p {
    margin-bottom: 1.2rem;
    color: #444;
}

/* Standalone command block (matches the Release notes page) */
.code-block {
    position: relative;
    margin: 1.2rem 0 1.5rem 0;
}

.info-code {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.8rem 3rem 0.8rem 1rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.88rem;
    font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
    line-height: 1.5;
}

.info-code code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
    color: #1a1a1a;
    background: #f5f5f5;
    border-color: #d5d5d5;
}

.copy-btn .check-icon {
    display: none;
}

.copy-btn.copied {
    color: #1e7d3a;
    border-color: #b6e0c2;
    background: #e6f7ec;
}

.copy-btn.copied .copy-icon {
    display: none;
}

.copy-btn.copied .check-icon {
    display: block;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.param-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    color: #2c2c2c;
}

.param-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.param-table td:first-child,
.param-table th:first-child {
    width: 1%;
    white-space: nowrap;
}

.param-table tr:hover {
    background: #f8f9fa;
}

.param-table code {
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

.info-box {
    margin: 1.5rem 0;
}

.info-box strong {
    color: #0066cc;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box strong {
    color: #856404;
}

.node0 { color: #0066cc; font-weight: 600; display: inline-block;  }
.node1 { color: #28a745; font-weight: 600; display: inline-block;  }
.node2 { color: #dc3545; font-weight: 600; display: inline-block;  }

code .node0 { color: #0066cc; }
code .node1 { color: #28a745; }
code .node2 { color: #dc3545; }

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 600;
    margin-right: 0.5rem;
}
        
.parameter {
    width: 300px;
}

.description {
    width: auto;
}

.example {
    width: 330px;
}

/* Table of contents (sidebar) */
.toc {
    background: transparent;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.toc h3 {
    margin: 0 0 0.8rem 1.1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.toc li {
    margin: 0;
}

.toc a {
    display: block;
    padding: 0.4rem 0 0.4rem 1.1rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: #555;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover {
    color: #0066cc;
    text-decoration: none;
}

.toc a.active {
    color: #0066cc;
    font-weight: 600;
    border-left-color: #0066cc;
}

/* ── Responsive: collapse the sidebar above the content on narrow screens ── */
@media (max-width: 900px) {
    .docs-layout {
        display: block;
        padding: 1px 24px 40px 24px;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-top: 24px;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .version-picker {
        max-width: 260px;
    }

    .toc {
        border-left: none;
    }

    .toc h3 {
        margin-left: 0;
    }

    .toc ol {
        column-count: 2;
        column-gap: 2rem;
    }

    .toc a {
        padding-left: 0;
        border-left: none;
    }

    .toc a.active {
        border-left: none;
    }
}

/* Steps */
.steps {
    margin: 1.5rem 0;
}

.step {
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.step img,
.info-box img,
.warning-box img,
.docs p img {
    display: inline-block;
    vertical-align: middle;
}

/* Screenshot placeholders */
figure.screenshot-placeholder {
    margin: 1.5rem 0 1.8rem 0;
    padding: 0;
}

.screenshot-area {
    background: #f0f4f8;
    border: 2px dashed #b0bec5;
    border-radius: 6px;
    color: #90a4ae;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When a real screenshot is placed, the placeholder style is dropped */
figure.screenshot-placeholder img {
    display: block;
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

figure.screenshot-placeholder figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #888;
    text-align: center;
    font-style: italic;
}


