/* =============================================================================
   Firewallet documentation
   ============================================================================= */
@import url('/public/css/landing.css');

.docs-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text, #f5f5f7);
}

.docs-shell__body {
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    gap: 0;
    flex: 1;
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

.docs-sidebar {
    padding: 2rem 1.25rem 2rem 0;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 4.25rem;
    align-self: start;
    max-height: calc(100vh - 5rem);
    overflow: auto;
}

.docs-sidebar__home {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.docs-sidebar__lead {
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.docs-sidebar__nav {
    display: grid;
    gap: 0.35rem;
}

.docs-sidebar__link {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.docs-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.docs-sidebar__link.active {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.28);
}

.docs-sidebar__link-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.docs-sidebar__link-summary {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.docs-main {
    min-width: 0;
    padding: 2rem 0 2rem 2rem;
}

.docs-index__head,
.docs-article__head {
    margin-bottom: 2rem;
}

.docs-index__eyebrow,
.docs-article__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

.docs-index__title,
.docs-article__title {
    margin: 0 0 0.65rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.docs-index__lead,
.docs-article__summary {
    margin: 0;
    max-width: 42rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.docs-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.docs-card {
    display: grid;
    gap: 0.55rem;
    padding: 1.25rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(20, 20, 26, 0.9));
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.docs-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.docs-card__title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
}

.docs-card__summary {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.docs-card__cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--orange);
}

.docs-inline-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.docs-inline-link:hover {
    text-decoration: underline;
}

.docs-prose {
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(245, 245, 247, 0.92);
}

.docs-prose > :first-child {
    margin-top: 0;
}

.docs-prose h1,
.docs-prose h2,
.docs-prose h3,
.docs-prose h4 {
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
}

.docs-prose h1 { font-size: 1.8rem; }
.docs-prose h2 {
    font-size: 1.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}
.docs-prose h3 { font-size: 1.12rem; }

.docs-prose p,
.docs-prose ul,
.docs-prose ol,
.docs-prose blockquote,
.docs-prose pre,
.docs-prose table {
    margin: 0 0 1rem;
}

.docs-prose a {
    color: var(--orange-light, #fdba74);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.docs-prose strong {
    color: var(--text);
    font-weight: 650;
}

.docs-prose ul,
.docs-prose ol {
    padding-left: 1.35rem;
}

.docs-prose li + li {
    margin-top: 0.35rem;
}

.docs-prose blockquote {
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(249, 115, 22, 0.55);
    border-radius: 0 10px 10px 0;
    background: rgba(249, 115, 22, 0.08);
    color: var(--text-muted);
}

.docs-prose code {
    font-family: var(--fw-font-mono, ui-monospace, monospace);
    font-size: 0.9em;
    padding: 0.12rem 0.38rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-prose pre {
    overflow: auto;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #0c0c10;
    border: 1px solid var(--border);
}

.docs-prose pre code {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.86rem;
    line-height: 1.6;
}

.docs-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.docs-prose th,
.docs-prose td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.docs-prose th {
    background: rgba(255, 255, 255, 0.04);
}

.docs-prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .docs-shell__body {
        grid-template-columns: 1fr;
        padding: 0 1rem 1.5rem;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 0 1rem;
    }

    .docs-main {
        padding: 1.25rem 0 0;
    }
}
