/* FAQ / docs page styling. Standalone layout - does not share the chat app's
   sidebar/main grid. Reuses tokens from style.css (Observatory Theme). */

/* Override the global body rules from style.css that lock the chat app to
   the viewport. Docs pages need to scroll. */
body.docs-body {
    height: auto;
    overflow: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 100%;
}

.docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.docs-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.docs-logo {
    height: 56px;
    width: auto;
    display: block;
}

.docs-nav {
    display: flex;
    gap: 28px;
}

.docs-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.docs-nav a:hover {
    color: var(--text-primary);
}

.docs-nav a[aria-current="page"] {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.docs-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 24px 64px;
}

.docs-main h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.docs-main section {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.docs-main section:last-child {
    border-bottom: 0;
}

.docs-main h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

.docs-main p {
    margin: 0 0 12px;
    color: var(--text-primary);
    line-height: 1.65;
}

.docs-main p:last-child {
    margin-bottom: 0;
}

.docs-main ul {
    margin: 0 0 12px;
    padding-left: 24px;
    color: var(--text-primary);
    line-height: 1.65;
}

.docs-main ul li {
    margin-bottom: 6px;
}

.docs-main strong {
    color: var(--text-primary);
    font-weight: 600;
}

.docs-main a {
    color: var(--accent);
    text-decoration: none;
}

.docs-main a:hover {
    text-decoration: underline;
}

.docs-main code {
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.88em;
    border: 1px solid var(--border-subtle);
}

.docs-main blockquote.acknowledgment-text {
    background: var(--bg-input);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
    user-select: all;
}

.docs-main blockquote.acknowledgment-text p {
    margin: 0;
}

.docs-footer {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 24px 36px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.docs-footer p {
    margin: 0;
}

.docs-footer .partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.docs-footer .partner-logos:hover {
    opacity: 0.95;
}

.docs-footer .partner-logos img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.docs-footer .partner-logos img[src$="logo-jpl.png"] {
    height: 28px;
}

.docs-footer .partner-logos img[src$="logo-nexsci.png"] {
    height: 64px;
    max-width: 200px;
}

@media (max-width: 600px) {
    .docs-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .docs-main h1 {
        font-size: 1.7rem;
    }

    .docs-main h2 {
        font-size: 1.1rem;
    }
}
