/* Shared layout for the public MCP guide and FAQ. */
* { box-sizing: border-box; }
html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #f8f9fa url("/privatecloud_cover.jpg") center / cover no-repeat fixed;
    scroll-padding-top: 155px;
}
body {
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    margin: 0 auto;
    color: #212529;
    background: transparent;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body > .navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    min-height: 56px;
    z-index: 1060;
    border-bottom: 1px solid #ddd;
}
.docs-top-bar {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 75px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    z-index: 1050;
    text-align: center;
}
.docs-top-bar h1 { margin: 0; font-size: 2rem; font-weight: 500; line-height: 1.2; }
.docs-page {
    min-width: 0;
    min-height: calc(100vh - 131px);
    margin-top: 131px;
    padding: 24px 24px 48px;
    background: aliceblue;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.docs-page .guide-hero,
.docs-page .faq-hero,
.docs-page .guide-section,
.docs-page .faq-section,
.docs-page > .card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 .5rem 1.25rem rgba(15,23,42,.06);
}
.docs-page .guide-hero,
.docs-page .faq-hero { border: 0; padding: 32px; }
.docs-page .docs-eyebrow {
    color: #0d6efd;
    text-transform: uppercase;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.docs-page .docs-title { font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 700; margin-bottom: 16px; }
.docs-page .guide-hero > p:last-child,
.docs-page .faq-hero > p:not(.docs-eyebrow) { color: #495057; font-size: 1.125rem; }
.docs-page h2 { font-size: 1.5rem; margin-bottom: 16px; }
.docs-page h3 { font-size: 1.1rem; margin-top: 24px; }
.docs-page p, .docs-page li { line-height: 1.7; }
.docs-page li + li { margin-top: 8px; }
.docs-page .guide-section, .docs-page .faq-section, .docs-page > .card { margin-top: 24px; }
.docs-page > .card { padding: 0; }
.docs-page > .card .card-body { padding: 28px; }
.docs-page [id] { scroll-margin-top: 155px; }
.docs-page .guide-toc, .docs-page .faq-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.docs-page .guide-toc a {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #0d6efd;
    text-decoration: none;
}
.docs-page .guide-toc a:hover { background: #e7f1ff; border-color: #9ec5fe; }
.docs-page a:focus-visible, .docs-page summary:focus-visible { outline: 3px solid #86b7fe; outline-offset: 3px; }
.docs-page .server-address, .docs-page pre {
    display: block;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    padding: 16px;
    border-radius: 8px;
}
.docs-page .server-address { overflow-wrap: anywhere; user-select: all; }
.docs-page pre { overflow-x: auto; }
.docs-page code { overflow-wrap: anywhere; }
.docs-page .guide-example { padding: 16px; background: aliceblue; border-left: 3px solid #0d6efd; border-radius: 4px; }
.docs-page .guide-example + .guide-example { margin-top: 12px; }
.docs-page .table th, .docs-page .table td { padding: 12px; vertical-align: top; }
.docs-page .table thead { --bs-table-bg: #f8f9fa; }
.docs-page details { padding: 18px 0; border-top: 1px solid #dee2e6; }
.docs-page details:first-of-type { border-top: 0; }
.docs-page summary { font-weight: 600; cursor: pointer; }
.docs-page details p { margin: 12px 0 0; }
.docs-page dt { margin-top: 16px; }
@media (max-width: 575.98px) {
    .docs-top-bar { padding: 10px 12px; }
    .docs-top-bar h1 { font-size: 1.5rem; }
    .docs-page { padding: 16px 12px 32px; }
    .docs-page .guide-hero, .docs-page .faq-hero,
    .docs-page .guide-section, .docs-page .faq-section,
    .docs-page > .card .card-body { padding: 20px; }
    .docs-page .table th, .docs-page .table td { padding: 10px; }
}
@media print {
    html, body { background: #fff; }
    body > .navbar, .docs-top-bar, .docs-page .guide-toc { display: none; }
    .docs-page { margin: 0; padding: 0; background: #fff; box-shadow: none; }
    .docs-page .guide-section, .docs-page .faq-section { break-inside: avoid; box-shadow: none; }
}
