/* Floating Header */
header.help-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #13315c,#4669ac);
    color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 100;
    text-align: center;
}
.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    position: relative;
    padding: 15px 30px;
}
.logo-container {
    grid-column: 1 / 2;
    justify-self: start;
    padding: 2px 2px 2px 6px;
}


    header.help-page h1 {
        margin: 0;
        font-size: 1.8em;
        letter-spacing: 0.5px;
    }

    header.help-page h2 {
        margin: 2px 0 0 0;
        font-size: 1em;
        font-weight: 400;
    }

.header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
}

    .header-flex h2 {
        margin: 0;
        line-height: 1.2;
    }

    .header-flex .title-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header-flex h1 {
        font-size: 1.8em;
        font-weight: 600;
        color: #ffffff;
    }

    .header-flex h2 {
        font-size: 1em;
        font-weight: 400;
        color: #d0f0f2;
        margin-top: 4px;
    }

.api-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}
.title-container {
    grid-column: 2 / 3;
    text-align: center;
}

    .title-container h1,
    .title-container h2 {
        margin: 0;
        line-height: 1.3;
    }
.title-container h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
}

.title-container h2 {
    margin: 0;
    font-size: 0.9em;
    color: #d0f0f2;
    font-weight: 400;
}

body.help-page {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    background: #e9ecef;
    margin: 0;
    padding-top: 100px;
    color: #222;
}

.paper-container {
    background: #fff;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.api-description {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
}

footer.help-page {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin: 40px 0;
}

section.api-group {
    margin-top: 40px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

a {
    color: #0a9396;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }



.help-page h1,
.help-page .h1,
.help-page h2,
.help-page .h2,
.help-page h3,
.help-page .h3,
#body.help-page,
.help-page-table th,
.help-page-table pre,
.help-page-table p {
    font-family: Roboto, Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
}

.help-page pre.wrapped {
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    white-space: pre-wrap;
}

.help-page .warning-message-container {
    margin-top: 20px;
    padding: 0 10px;
    color: #525252;
    background: #EFDCA9;
    border: 1px solid #CCCCCC;
}

.help-page-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0px 0px 20px 0px;
    border-top: 1px solid #D4D4D4;
}

    .help-page-table th {
        text-align: left;
        font-weight: bold;
        border-bottom: 1px solid #D4D4D4;
        padding: 5px 6px 5px 6px;
    }

    .help-page-table td {
        border-bottom: 1px solid #D4D4D4;
        padding: 10px 8px 10px 8px;
        vertical-align: top;
    }

    .help-page-table pre,
    .help-page-table p {
        margin: 0px;
        padding: 0px;
        font-family: inherit;
        font-size: 100%;
    }

    .help-page-table tbody tr:hover td {
        background-color: #F3F3F3;
    }

.help-page a:hover {
    background-color: transparent;
}

.help-page .sample-header {
    border: 2px solid #D4D4D4;
    background: #00497E;
    color: #FFFFFF;
    padding: 8px 15px;
    border-bottom: none;
    display: inline-block;
    margin: 10px 0px 0px 0px;
}

.help-page .sample-content {
    display: block;
    border-width: 0;
    padding: 15px 20px;
    background: #FFFFFF;
    border: 2px solid #D4D4D4;
    margin: 0px 0px 10px 0px;
}

.help-page .api-name {
    width: 40%;
}

.help-page .api-documentation {
    width: 60%;
}

.help-page .parameter-name {
    width: 20%;
}

.help-page .parameter-documentation {
    width: 40%;
}

.help-page .parameter-type {
    width: 20%;
}

.help-page .parameter-annotations {
    width: 20%;
}

/* === API DETAIL PAGES === */
.api-detail-page {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    background: #e9ecef;
    padding: 0 0 60px;
    color: #222;
}

.api-detail-content .content-wrapper {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 60px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

    .api-detail-page .featured p a {
        color: #0a9396;
        text-decoration: none;
        font-weight: 500;
    }

        .api-detail-page .featured p a:hover {
            text-decoration: underline;
        }

    /* Hide duplicate framework header */
    .api-detail-page h1 {
        display: none;
    }

    /* API title */
    .api-detail-page .api-title {
        font-size: 1.6em;
        color: #005f73;
        margin-bottom: 10px;
        border-bottom: 2px solid #0a9396;
        padding-bottom: 5px;
    }

/* Method badges */
.method-label {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 8px;
    color: white;
    text-transform: uppercase;
}

    .method-label.get {
        background: #2a9d8f;
    }

    .method-label.post {
        background: #0077b6;
    }

    .method-label.put {
        background: #e9c46a;
        color: #333;
    }

    .method-label.delete {
        background: #e76f51;
    }

/* Parameter tables, code blocks, etc. */
.api-detail-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95em;
}

.api-detail-page th, .api-detail-page td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.api-detail-page th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.api-detail-page pre,
.api-detail-page code {
    font-family: Consolas, monospace;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    display: block;
    overflow-x: auto;
    color: #222;
}

/* ===== API Detail Page - Navigation Bar ===== */
.api-nav-bar {
    background: linear-gradient(90deg, #13315c,#4669ac);
    padding: 12px 30px;
    margin: 0 10px 0 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    .api-nav-bar .content-wrapper {
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, color 0.2s ease;
}

    .back-home-link:hover {
        color: #d9fdfb;
        transform: translateX(-3px);
    }

.back-icon {
    fill: currentColor;
    transition: transform 0.2s ease;
}

.back-home-link:hover .back-icon {
    transform: translateX(-2px);
}
