/* Mobile menu (issue #2). The theme hides #tron-main-nav at <= 1100px; this replaces it there. */

.sc-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sc-burger-col {
    display: none;
    text-align: right;
}

.sc-burger,
.sc-mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* The theme colors every <i> #222; the icons follow their button instead. */
.sc-burger i,
.sc-mobile-nav__close i {
    color: inherit;
}

.sc-burger:focus-visible,
.sc-mobile-nav__close:focus-visible,
.sc-mobile-nav a:focus-visible,
.sc-mobile-nav summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media only screen and (max-width: 1100px) {
    .sc-burger-col {
        display: block;
    }
}

.sc-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
}

.sc-mobile-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    /* Anchored left: some theme pages are wider than the screen, which pushes right: 0 off-screen. */
    left: 0;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    width: min(360px, 85vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #fff;
    background: #222;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.4);
    font-family: 'Poppins', sans-serif;
}

.sc-mobile-backdrop[hidden],
.sc-mobile-nav[hidden] {
    display: none;
}

.sc-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 20px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sc-mobile-nav__title {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.sc-mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sc-mobile-nav li {
    list-style: none;
}

.sc-mobile-nav a,
.sc-mobile-nav summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

.sc-mobile-nav__list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-mobile-nav summary {
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.sc-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.sc-mobile-nav summary::after {
    content: "+";
    font-size: 20px;
}

.sc-mobile-nav details[open] > summary::after {
    content: "\2212";
}

.sc-mobile-nav details ul {
    padding-bottom: 8px;
}

.sc-mobile-nav details a {
    min-height: 44px;
    padding-left: 36px;
    font-size: 15px;
    opacity: 0.85;
}

.sc-mobile-nav a:hover,
.sc-mobile-nav summary:hover,
.sc-mobile-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.sc-mobile-nav a[aria-current="page"] {
    font-weight: 600;
    box-shadow: inset 3px 0 0 #fff;
}

body.sc-nav-open {
    overflow: hidden;
}
