.navbar button.docs-open-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    display: block;
    text-align: left;
}

:root {
    --docs-nav-offset: 4.25rem;
    --docs-sidebar-width: 400px;
}

/* Header stays visible and usable while the guide is open. */
body.role-docs-open > nav.navbar {
    position: relative;
    z-index: 1050;
}

.role-docs.offcanvas {
    --bs-offcanvas-width: var(--docs-sidebar-width);
    top: var(--docs-nav-offset);
    right: 0;
    left: auto;
    height: calc(100vh - var(--docs-nav-offset));
    height: calc(100dvh - var(--docs-nav-offset));
    width: var(--docs-sidebar-width);
    max-width: 100vw;
    background: #2a2e35;
    color: #e8eaed;
    border-left: 1px solid #1c2128;
    box-shadow: -10px 0 28px rgba(0, 0, 0, 0.28);
}

body.role-docs-open .offcanvas-backdrop {
    top: var(--docs-nav-offset);
}

.role-docs-head,
.role-docs-hint,
.role-docs-search,
.role-docs-toolbar {
    flex: 0 0 auto;
}

.role-docs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1.1rem 1.15rem 0.35rem;
}

.role-docs-head-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.role-docs-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #1a9b8e;
    color: #fff !important;
    border-radius: 0.4rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.role-docs-download:hover,
.role-docs-download:focus {
    background: #158277;
    color: #fff !important;
}

.role-docs-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
    color: #fff;
}

.role-docs-hint {
    margin: 0 1.15rem 0.85rem;
    color: #b7bcc4;
    font-size: 0.92rem;
}

.role-docs-hint kbd {
    background: #3a3f48;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.85em;
}

.role-docs-search {
    position: relative;
    margin: 0 1.15rem 0.85rem;
}

.role-docs-search input {
    background: #1c1f25;
    border: 1px solid #4a5160;
    color: #fff;
    border-radius: 0.45rem;
    padding-right: 2.4rem;
}

.role-docs-search input:focus {
    background: #1c1f25;
    color: #fff;
    border-color: #4A9B8E;
    box-shadow: 0 0 0 0.15rem rgba(74, 155, 142, 0.35);
}

.role-docs-search i {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3af;
}

.role-docs-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1.15rem 0.75rem;
}

.role-docs-back {
    background: transparent;
    color: #fff;
    border: 1px solid #5c6573;
    border-radius: 0.4rem;
    padding: 0.25rem 0.6rem;
}

.role-docs-back:hover {
    background: #3a3f48;
}

.role-docs-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0 1.15rem 1.5rem;
    height: auto;
}

@media (max-width: 767.98px) {
    .role-docs.offcanvas {
        --bs-offcanvas-width: 100vw;
        --docs-sidebar-width: 100vw;
        width: 100vw;
    }
}

.role-docs-role {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 0.45rem;
}

.role-docs-intro,
.role-docs [data-docs-article] p {
    color: #d5d8de;
    line-height: 1.5;
}

.role-docs-menu-label {
    margin: 1.25rem 0 0.6rem;
    font-size: 1.15rem;
    color: #fff;
}

.role-docs-group {
    background: #fff;
    color: #243038;
    border-radius: 0.7rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.role-docs-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #4A9B8E;
    color: #fff;
    font-weight: 700;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
}

.role-docs-group summary::-webkit-details-marker {
    display: none;
}

.role-docs-group summary span i {
    margin-right: 0.4rem;
}

.role-docs-group:not([open]) .role-docs-chevron {
    transform: rotate(180deg);
}

.role-docs-group ul {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.role-docs-group button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: #2B5F75;
    padding: 0.45rem 1rem 0.45rem 1.6rem;
}

.role-docs-group button:hover,
.role-docs-group button:focus {
    background: #f3f7f8;
}

.role-docs [data-docs-article] h3 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.role-docs-empty {
    color: #b7bcc4;
}

.role-docs-kicker {
    margin: 1rem 0 0.35rem;
    color: #8fd0c4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.role-docs-where {
    margin-bottom: 0.35rem;
    color: #fff;
    font-weight: 650;
}

.role-docs [data-docs-article] a,
.role-docs-steps a {
    color: #9fd9ce;
}

.role-docs [data-docs-article] a:hover,
.role-docs-steps a:hover {
    color: #fff;
}

.role-docs-steps,
.role-docs [data-docs-article] ul {
    margin: 0.2rem 0 0.6rem;
    padding-left: 1.2rem;
}

.role-docs-steps li,
.role-docs [data-docs-article] ul li {
    margin-bottom: 0.45rem;
}

.role-docs [data-docs-article] .role-docs-figure,
.role-docs-figure {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0.35rem 0 0.8rem;
    border-radius: 0.45rem;
    border: 1px solid #4a5160;
    background: #fff;
}

.role-docs-faq-q {
    margin: 0.9rem 0 0.25rem;
    color: #fff;
    font-size: 1rem;
}
