.topbar nav.mobile-navigation > a:not(.button) {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 5px;
    color: #5f6d85;
    font-weight: 650;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.topbar nav.mobile-navigation > a:not(.button)::after {
    position: absolute;
    right: 5px;
    bottom: 2px;
    left: 5px;
    height: 2px;
    content: "";
    border-radius: 2px;
    background: #0f766e;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.topbar nav.mobile-navigation > a:not(.button):hover,
.topbar nav.mobile-navigation > a:not(.button).is-active {
    color: #0b4d4b;
}

.topbar nav.mobile-navigation > a:not(.button):hover::after,
.topbar nav.mobile-navigation > a:not(.button).is-active::after {
    transform: scaleX(1);
}

.topbar nav.mobile-navigation > a:not(.button):active {
    transform: translateY(1px);
}

.topbar nav.mobile-navigation > a:focus-visible {
    outline: 3px solid rgba(15, 118, 110, .28);
    outline-offset: 4px;
}

.topbar nav.mobile-navigation > .button-dark {
    min-height: 48px;
    padding-right: 20px;
    padding-left: 20px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.topbar nav.mobile-navigation > .button-dark:hover {
    background: #0f766e;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .24);
    transform: translateY(-2px);
}

.topbar nav.mobile-navigation > .button-dark:active {
    transform: translateY(0);
}

@media (max-width: 720px) {
    .topbar nav.mobile-navigation > a:not(.button) {
        min-height: 46px;
        padding: 0 14px;
        border-radius: 6px;
    }

    .topbar nav.mobile-navigation > a:not(.button)::after {
        top: 9px;
        right: auto;
        bottom: 9px;
        left: 4px;
        width: 3px;
        height: auto;
        transform: scaleY(0);
    }

    .topbar nav.mobile-navigation > a:not(.button):hover,
    .topbar nav.mobile-navigation > a:not(.button).is-active {
        background: #edf7f6;
    }

    .topbar nav.mobile-navigation > a:not(.button):hover::after,
    .topbar nav.mobile-navigation > a:not(.button).is-active::after {
        transform: scaleY(1);
    }

    .topbar nav.mobile-navigation > .button-dark {
        margin: 8px 0 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topbar nav.mobile-navigation > a,
    .topbar nav.mobile-navigation > a::after {
        transition: none;
    }
}
