/* Legacy-style navigation hover and current-page indicator */
.legacy-header-nav li {
    position: relative;
}

.legacy-header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 39px;
    padding-top: 14px;
    transition: color .18s ease;
}

.legacy-header-nav a::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 34px;
    height: 16px;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(246, 183, 57, .95) 0,
            rgba(246, 183, 57, .95) 2px,
            transparent 2px,
            transparent 4.5px
        );
    transition: opacity .18s ease, transform .18s ease;
}

.legacy-header-nav a:hover,
.legacy-header-nav a.is-active,
.legacy-header-nav a[aria-current="page"] {
    color: #f6a400;
}

.legacy-header-nav a:hover::before,
.legacy-header-nav a.is-active::before,
.legacy-header-nav a[aria-current="page"]::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-1px);
}

@media (max-width: 860px) {
    .legacy-header-nav a {
        min-height: 31px;
        padding-top: 0;
    }

    .legacy-header-nav a::before {
        display: none;
    }

    .legacy-header-nav a.is-active,
    .legacy-header-nav a[aria-current="page"] {
        color: #f6a400;
        text-decoration: underline;
        text-underline-offset: .3rem;
    }
}
