/* =========================================================================
   Docs / Guides / Use Cases - layouts and components
   ========================================================================= */

/* ---- Docs page: sidebar + main ---- */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 110px 32px 120px;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(90, 145, 245, 0.3) transparent;
}
.sidebar-section {
    margin-bottom: 28px;
}
.sidebar-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #6e8ab4;
    margin-bottom: 12px;
}
.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.docs-sidebar li {
    margin: 0 0 2px;
}
.docs-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 6px;
    color: #d6e1f5;
    font-size: 14px;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.docs-sidebar a:hover {
    color: #ffffff;
    background: rgba(90, 145, 245, 0.07);
}
.docs-sidebar a.is-active {
    color: #ffffff;
    border-left-color: var(--primary-light);
    background: rgba(90, 145, 245, 0.1);
    font-weight: 600;
}
.docs-sidebar a.muted {
    color: #6e8ab4;
}
.badge-soon {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    font-size: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
}

.docs-main {
    min-width: 0;
    max-width: 820px;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #6e8ab4;
    margin-bottom: 22px;
}
.breadcrumbs a {
    color: #6e8ab4;
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--primary-light); }
.crumb-sep { color: rgba(110, 138, 180, 0.5); }

.docs-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    line-height: 1.1;
}
.docs-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #e6edf7;
    margin: 0 0 32px;
}
.docs-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    padding-top: 12px;
    border-top: 1px solid rgba(230, 237, 247, 0.07);
}
.docs-main p {
    color: #e6edf7;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 18px;
}
.docs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.docs-list li {
    color: #e6edf7;
    font-size: 16px;
    line-height: 1.7;
    padding: 10px 0 10px 22px;
    position: relative;
    border-bottom: 1px solid rgba(230, 237, 247, 0.05);
}
.docs-list li:last-child { border-bottom: none; }
.docs-list li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--primary-light);
    font-size: 10px;
}
.docs-list strong {
    color: #ffffff;
    font-weight: 700;
}

.docs-callout {
    border-left: 3px solid var(--primary-light);
    background: rgba(90, 145, 245, 0.08);
    padding: 14px 18px;
    border-radius: 4px;
    color: #d6e1f5;
    font-size: 15px;
    margin: 0 0 32px;
}
.docs-callout strong { color: #ffffff; }
.docs-callout a {
    color: var(--primary-light);
    font-weight: 600;
    border-bottom: 1px solid rgba(90, 145, 245, 0.5);
    text-decoration: none;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 32px;
    font-size: 14px;
    border: 1px solid rgba(230, 237, 247, 0.09);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.4);
}
.docs-table thead {
    background: rgba(90, 145, 245, 0.08);
}
.docs-table th {
    text-align: left;
    padding: 12px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c9d8ff;
    font-weight: 600;
}
.docs-table td {
    padding: 12px 16px;
    color: #d6e1f5;
    border-top: 1px solid rgba(230, 237, 247, 0.06);
    vertical-align: top;
}
.docs-table tbody tr:hover { background: rgba(90, 145, 245, 0.04); }

.status-pill {
    display: inline-block;
    padding: 3px 9px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 3px;
    border: 1px solid;
}
.status-pill.ok {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.4);
    background: rgba(110, 231, 183, 0.08);
}
.status-pill.beta {
    color: #5a91f5;
    border-color: rgba(90, 145, 245, 0.4);
    background: rgba(90, 145, 245, 0.08);
}
.status-pill.preview {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}

.docs-note {
    font-size: 14px;
    color: #9fb2d1;
    font-style: italic;
}
.docs-note a {
    color: var(--primary-light);
    font-style: normal;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(90, 145, 245, 0.4);
}

.docs-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(230, 237, 247, 0.08);
}
.docs-next-card {
    display: block;
    padding: 22px 24px;
    border: 1px solid rgba(90, 145, 245, 0.25);
    border-radius: 10px;
    background: rgba(14, 28, 58, 0.5);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.docs-next-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.next-kicker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #6e8ab4;
    margin-bottom: 8px;
}
.next-title {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}
.next-sub {
    color: #c9d8ff;
    font-size: 14px;
}

/* ---- Page hero used by guides + use-cases landings ---- */
.page-hero {
    padding: 140px 0 60px;
    text-align: left;
}
.page-hero .container {
    max-width: 980px;
    margin: 0 auto;
}
.page-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 8px 0 18px;
    line-height: 1.08;
}
.page-hero p {
    font-size: 19px;
    line-height: 1.65;
    color: #e6edf7;
    max-width: 700px;
    margin: 0;
}

/* ---- Guides catalog ---- */
.catalog-block {
    padding: 40px 0 120px;
}
.catalog-block .container {
    max-width: 1200px;
}
.catalog-group {
    margin-bottom: 72px;
}
.catalog-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 8px;
    font-weight: 700;
}
.catalog-sub {
    color: #9fb2d1;
    font-size: 15px;
    margin: 0 0 26px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.catalog-card {
    padding: 24px 26px;
    border: 1px solid rgba(90, 145, 245, 0.22);
    border-radius: 12px;
    background: rgba(10, 20, 40, 0.55);
    transition: border-color 0.22s ease, transform 0.22s ease;
}
.catalog-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}
.catalog-card.catalog-card-soon {
    background: rgba(10, 20, 40, 0.35);
}
.catalog-status {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #fbbf24;
    margin-bottom: 12px;
}
.catalog-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.3;
}
.catalog-card p {
    color: #c9d8ff;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

.catalog-cta,
.usecase-cta {
    margin-top: 60px;
    padding: 48px 40px;
    border: 1px solid rgba(90, 145, 245, 0.3);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(53, 117, 242, 0.10), rgba(10, 20, 40, 0.55));
    text-align: center;
}
.catalog-cta h3,
.usecase-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 12px;
}
.catalog-cta p,
.usecase-cta p {
    color: #d6e1f5;
    font-size: 16px;
    margin: 0 0 24px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.usecase-cta .section-kicker {
    display: block;
    margin-bottom: 14px;
}

/* ---- Use cases ---- */
.usecase-block {
    padding: 40px 0 120px;
}
.usecase-block .container {
    max-width: 980px;
}
.usecase-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 96px;
    padding-top: 32px;
    border-top: 1px solid rgba(230, 237, 247, 0.07);
}
.usecase-card:first-child {
    border-top: none;
    padding-top: 0;
}
.usecase-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px var(--primary-light);
    color: transparent;
    position: sticky;
    top: 40px;
}
.usecase-content { min-width: 0; }
.usecase-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
}
.usecase-tagline {
    font-size: 19px;
    font-weight: 500;
    color: var(--primary-light);
    line-height: 1.4;
    margin: 0 0 22px;
}
.usecase-body {
    font-size: 16px;
    line-height: 1.75;
    color: #e6edf7;
    margin: 0 0 16px;
}
.usecase-body strong { color: #ffffff; font-weight: 700; }

@media (max-width: 980px) {
    .docs-layout {
        grid-template-columns: 1fr;
        padding: 90px 24px 80px;
    }
    .docs-sidebar {
        position: static;
        max-height: none;
    }
    .docs-h1 { font-size: 36px; }
    .docs-next { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 42px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .usecase-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .usecase-mark {
        font-size: 56px;
        position: static;
    }
    .usecase-h2 { font-size: 26px; }
}

/* Deeper docs content: sub-headings, inline code, command blocks */
.docs-h3 {
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
    margin: 30px 0 10px;
}
.docs-main code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86em;
    background: rgba(90, 145, 245, 0.12);
    border: 1px solid rgba(90, 145, 245, 0.18);
    border-radius: 5px;
    padding: 1px 6px;
    color: #c9d8ff;
}
.docs-main pre {
    background: #0d1526;
    border: 1px solid rgba(230, 237, 247, 0.10);
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    margin: 14px 0 22px;
}
.docs-main pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #d6e1f5;
}
.docs-live-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
}

/* Guide cards are links now */
a.catalog-card { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
a.catalog-card:hover { border-color: rgba(90, 145, 245, 0.55); transform: translateY(-2px); }
a.catalog-card h3 { color: #ffffff; }

/* Generated doc pages carry the app docs' plain markup; style it here. */
.docs-main h2 { font-size: 26px; font-weight: 700; color: #ffffff; margin: 40px 0 14px; letter-spacing: -0.01em; }
.docs-main h3 { font-size: 19px; font-weight: 600; color: #ffffff; margin: 30px 0 10px; }
.docs-main h4 { font-size: 16px; font-weight: 600; color: #dbe6ff; margin: 22px 0 8px; }
.docs-main ul, .docs-main ol { margin: 12px 0 18px 22px; color: #b9c7e4; font-size: 15.5px; line-height: 1.75; }
.docs-main li { margin-bottom: 8px; }
.docs-main li strong, .docs-main p strong { color: #e6edf7; }
.docs-main table { width: 100%; border-collapse: collapse; margin: 16px 0 26px; font-size: 14.5px; }
.docs-main table th { text-align: left; color: #ffffff; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid rgba(230, 237, 247, 0.25); }
.docs-main table td { color: #b9c7e4; padding: 10px 12px; border-bottom: 1px solid rgba(230, 237, 247, 0.08); vertical-align: top; }
.docs-main a { color: #79c0ff; text-decoration: none; }
.docs-main a:hover { text-decoration: underline; }
