/* The panel behind the three lines (btg-menu.php): black like the footer,
   from the right. GP Premium's off-canvas styles are overridden where they
   set width, colours and the menu's list styles. */

/* GP Premium sizes the panel (and its slide) from this variable, set on
   :root in its inline CSS, which loads after this file: html:root wins */
html:root {
    --gp-slideout-width: 440px;
}

.slideout-navigation.main-navigation {
    max-width: 100vw;
    background: #0f0f0f !important;
    color: #fff;
}

.slideout-navigation .inside-navigation {
    display: block !important;
    height: 100%;
    padding: 0 !important;
}

/* GP's own close button on the overlay: ours is in the panel */
.slideout-overlay .slideout-exit {
    display: none !important;
}

.slideout-overlay {
    background-color: rgba(15, 15, 15, 0.55) !important;
}

.btg-menu {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    min-height: 100%;
    padding: 22px 32px 32px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btg-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.btg-menu li {
    margin: 0;
    float: none !important;
    width: auto !important;
}

.btg-menu a {
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none;
    text-transform: none;
    line-height: inherit !important;
    padding: 0 !important;
}

.btg-menu a:hover,
.btg-menu a:focus-visible {
    color: #fff !important;
}

.btg-menu :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Top: logo and close */
.btg-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.btg-menu__logo {
    display: block;
    width: 200px;
    color: #fff !important;
}

.btg-logo--menu {
    width: 100%;
}

.slideout-navigation .btg-menu button.btg-menu__close,
.slideout-navigation .btg-menu button.btg-menu__close:hover,
.slideout-navigation .btg-menu button.btg-menu__close:focus {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.slideout-navigation .btg-menu button.btg-menu__close:hover {
    border-color: #fff;
}

/* Sections: large, with a line each */
.btg-menu__sections {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.btg-menu__sections li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.btg-menu__sections a {
    display: flex !important;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.85rem 0 !important;
}

.btg-menu__label {
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 2rem;
    line-height: 1.05;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.btg-menu__line {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.btg-menu__sections a:hover .btg-menu__label,
.btg-menu__sections a:focus-visible .btg-menu__label {
    transform: translateX(6px);
}

.btg-menu__sections a[aria-current="page"] .btg-menu__label {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

/* Next event */
.btg-menu__next a {
    display: flex !important;
    flex-direction: column;
    padding: 1rem 1.1rem !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.btg-menu__next a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btg-menu__kicker {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.btg-menu__event {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
}

.btg-menu__when {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Secondary links and account */
.btg-menu__more,
.btg-menu__account {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
}

.btg-menu__account a {
    color: #fff !important;
}

.btg-menu__count {
    display: inline-grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    margin-left: 0.3rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #fff;
    color: #0f0f0f;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Search */
.btg-menu__search {
    display: flex;
    gap: 0.5rem;
}

.btg-menu__search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
}

.btg-menu__search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.btg-menu__search input[type="search"]:focus {
    border-color: #fff;
    outline: none;
}

.btg-menu .btg-menu__search button,
.btg-menu .btg-menu__search button:hover,
.btg-menu .btg-menu__search button:focus {
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #0f0f0f;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Visit, pinned to the bottom when there is room */
.btg-menu__visit {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.btg-menu__visit p {
    margin: 0 0 0.6rem;
}

.btg-menu__visit ul {
    display: flex;
    gap: 1.1rem;
}

@media (max-width: 640px) {
    html:root {
        --gp-slideout-width: 100vw;
    }

    .btg-menu {
        padding: 16px 20px 28px;
        gap: 1.4rem;
    }

    .btg-menu__logo {
        width: 170px;
    }

    .btg-menu__label {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btg-menu__label {
        transition: none;
    }
}

/* GP's mobile rules hide every list in a .main-navigation; these lists
   belong to the panel */
.slideout-navigation .btg-menu .btg-menu__sections,
.slideout-navigation .btg-menu .btg-menu__next {
    display: block !important;
}

.slideout-navigation .btg-menu .btg-menu__more,
.slideout-navigation .btg-menu .btg-menu__account,
.slideout-navigation .btg-menu .btg-menu__visit ul {
    display: flex !important;
}

/* GP draws its own icon on .slideout-exit */
.slideout-navigation .btg-menu button.btg-menu__close::before,
.slideout-navigation .btg-menu button.btg-menu__close::after,
.slideout-navigation .btg-menu button.btg-menu__close .gp-icon {
    display: none !important;
}

/* Taller than the window: the panel scrolls */
.slideout-navigation.main-navigation {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.btg-menu__sections a[aria-current="page"] .btg-menu__label {
    text-underline-offset: 0.12em;
}

.btg-menu__sections a {
    gap: 0.3rem;
}
