/* ============================================================
   SchemaStudio Documentation Layout
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.docs-wrapper {
    display: flex;
    max-width: 1140px;
    min-height: calc(100vh - 160px);
    margin: 76px auto 48px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.22);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    overflow-y: auto;
    background: #f8f9fa;
    border-right: 1px solid #e4e8ec;
    padding: 16px 0 32px;
}

.docs-sidebar-header {
    padding: 0 20px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #048A91;
    margin-top: 16px;
}

.docs-sidebar-header:first-child {
    margin-top: 0;
}

.docs-sidebar ul {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.docs-sidebar ul li a {
    display: block;
    padding: 7px 20px 7px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.docs-sidebar ul li a:hover {
    color: #0a3335;
    background: #edf7f8;
    border-left-color: #97d4d8;
}

.docs-sidebar ul li a.active {
    color: #0a3335;
    font-weight: 600;
    background: #e0f3f4;
    border-left-color: #048A91;
}

/* ── Main content ────────────────────────────────────────── */
.docs-content {
    flex: 1;
    min-width: 0;
    padding: 24px 48px 72px;
    max-width: 860px;
    background: #fff;
}

.docs-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 6px;
    line-height: 1.25;
}

.docs-content .docs-lead {
    font-size: 16px;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.65;
    border-bottom: 1px solid #e4e8ec;
    padding-bottom: 24px;
}

.docs-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
    margin-top: 40px;
    margin-bottom: 12px;
}

.docs-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #048A91;
    margin-top: 28px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.docs-content ul li, .docs-content ol li {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 6px;
}

.docs-content strong {
    color: #222;
    font-weight: 600;
}

/* ── Note / callout boxes ────────────────────────────────── */
.docs-note {
    background: #e0f3f4;
    border-left: 4px solid #048A91;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: #1e4f52;
    line-height: 1.65;
}

.docs-note strong {
    color: #0a3335;
}

.docs-warning {
    background: #fff8e6;
    border-left: 4px solid #f4813f;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: #7a4008;
    line-height: 1.65;
}

/* ── Code / keyboard ─────────────────────────────────────── */
.docs-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background: #f0f4f5;
    color: #0a6b72;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #d8e8ea;
}

kbd {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: 2px solid #bbb;
    border-radius: 4px;
    padding: 2px 7px;
    color: #333;
    white-space: nowrap;
}

/* ── Shortcut table ──────────────────────────────────────── */
.docs-shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px;
    font-size: 14px;
}

.docs-shortcut-table thead th {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.docs-shortcut-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.docs-shortcut-table tbody tr:last-child {
    border-bottom: none;
}

.docs-shortcut-table tbody td {
    padding: 9px 12px;
    color: #444;
    vertical-align: middle;
}

.docs-shortcut-table tbody td:first-child {
    white-space: nowrap;
}

/* Section-divider rows inside a unified shortcut table */
.docs-shortcut-table tr.shortcut-section td {
    padding: 22px 12px 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #048A91;
    border-bottom: 1px solid #e0e8ea;
    border-top: 2px solid #e8eef0;
    white-space: nowrap;
}

.docs-shortcut-table tbody tr.shortcut-section:first-child td {
    padding-top: 6px;
    border-top: none;
}

/* ── Split screenshot view ───────────────────────────────── */
.docs-split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 32px;
}

@media (max-width: 680px) {
    .docs-split-view {
        grid-template-columns: 1fr;
    }
}

/* ── Code block ──────────────────────────────────────────── */
.docs-code-block {
    background: #f4f7f8;
    border: 1px solid #dde4e6;
    border-left: 3px solid #048A91;
    border-radius: 0 6px 6px 0;
    padding: 16px 18px;
    margin: 12px 0 24px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12.5px;
    line-height: 1.65;
    color: #2a4a4c;
    white-space: pre;
}

/* ── Screenshots ─────────────────────────────────────────── */
.docs-screenshot {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #dde4e6;
    box-shadow: 0 2px 14px rgba(0,0,0,0.09);
    margin: 8px 0 6px;
}

.docs-screenshot-caption {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 28px;
}

/* ── Step list ───────────────────────────────────────────── */
.docs-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.docs-steps li {
    counter-increment: step-counter;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.docs-steps li::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #048A91;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

/* ── Feature grid ────────────────────────────────────────── */
.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0 32px;
}

.docs-feature-card {
    border: 1px solid #e0e8ea;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.docs-feature-card i {
    color: #048A91;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.docs-feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 6px;
}

.docs-feature-card p {
    font-size: 13.5px;
    color: #666;
    margin: 0;
    line-height: 1.55;
}

/* ── Page nav ────────────────────────────────────────────── */
.docs-page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid #e4e8ec;
    gap: 16px;
}

.docs-page-nav a {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border: 1px solid #e0e8ea;
    border-radius: 6px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    transition: border-color 0.15s, background 0.15s;
    max-width: 48%;
}

.docs-page-nav a:hover {
    border-color: #048A91;
    background: #edf7f8;
    color: #0a3335;
}

.docs-page-nav a span.nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #048A91;
    margin-bottom: 3px;
}

.docs-page-nav a.next-page {
    margin-left: auto;
    text-align: right;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .docs-wrapper {
        flex-direction: column;
        margin: 70px 12px 32px;
        border-radius: 8px;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e4e8ec;
        padding: 16px 0;
    }

    .docs-content {
        padding: 28px 20px 60px;
    }
}
