.srg-modern .srg-category-navigation a {
    font-size: 0.875rem;
    overflow-wrap: normal;
}

.srg-modern .srg-category-navigation a.srg-category-reset {
    margin-bottom: 4px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.srg-modern .srg-category-navigation .srg-category-branch {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.srg-modern .srg-category-navigation .srg-category-panel {
    grid-column: 1 / -1;
}

.srg-category-panel[hidden] {
    display: none !important;
}

.srg-modern .srg-category-navigation .srg-category-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    color: var(--srg-navy, #082c4c);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.srg-modern .srg-category-navigation .srg-category-toggle::before {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.srg-modern .srg-category-navigation .srg-category-toggle[aria-expanded="true"]::before {
    transform: rotate(225deg);
}

.srg-modern .srg-category-navigation .srg-category-toggle:hover,
.srg-modern .srg-category-navigation .srg-category-toggle[aria-expanded="true"] {
    background: #e5f4f6;
}

.srg-modern .srg-category-navigation .srg-category-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

@media (min-width: 701px) and (any-hover: hover) {
    .srg-modern .srg-directory-columns > .srg-directory-sidebar {
        padding-inline: 8px;
    }

    .srg-modern .srg-category-navigation > ul > li > a {
        padding-inline: 5px;
    }

    .srg-modern .srg-directory-sidebar:has(.srg-category-toggle[aria-expanded="true"]) {
        z-index: 3;
    }

    .srg-modern .srg-category-navigation .srg-category-panel {
        position: absolute;
        z-index: 1;
        top: var(--srg-panel-offset, 0px);
        left: 100%;
        width: 275px;
        max-height: calc(100vh - 24px);
        overflow: auto;
        box-sizing: border-box;
        padding: 6px;
        margin: 0;
        border: 1px solid #dce8ee;
        border-radius: 9px;
        background: #fff;
        box-shadow: 0 6px 22px rgba(8, 44, 76, .16);
    }

    .srg-modern .srg-category-navigation .srg-category-toggle {
        width: 26px;
        min-height: 36px;
    }

    .srg-modern .srg-category-navigation .srg-category-toggle::before,
    .srg-modern .srg-category-navigation .srg-category-toggle[aria-expanded="true"]::before {
        transform: rotate(-45deg);
    }
}

@media (min-width: 701px) and (max-width: 900px) and (any-hover: hover) {
    .srg-modern .srg-directory-columns > .srg-directory-sidebar {
        padding-inline: 4px;
    }

    .srg-modern .srg-category-navigation > ul > li > a {
        font-size: 0.8125rem;
        padding-inline: 3px;
    }

    .srg-modern .srg-category-navigation .srg-category-toggle {
        width: 22px;
    }
}
