.top-nav .site-nav-shell {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    transform: translateX(-50%);
}

.top-nav .site-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(10, 10, 15, 0.68);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.top-nav .site-nav-links a,
.top-nav .site-home-link,
.top-nav .site-nav-panel a {
    color: rgba(255, 255, 255, 0.66);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.top-nav .site-nav-links a {
    padding: 8px 11px;
    border-radius: 999px;
}

.top-nav .site-nav-links a:hover,
.top-nav .site-nav-links a:focus-visible,
.top-nav .site-nav-links a[aria-current='page'] {
    color: #fff;
    background: rgba(230, 0, 126, 0.16);
}

.top-nav .site-home-link,
.top-nav .site-nav-menu-button,
.top-nav .site-nav-panel {
    display: none;
}

.top-nav .site-nav-menu-button {
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    font: 650 0.78rem/1 'Outfit', 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

.top-nav .site-nav-menu-button svg {
    width: 16px;
    height: 16px;
}

.top-nav .site-nav-panel {
    position: fixed;
    top: 66px;
    right: 16px;
    z-index: 120;
    width: min(292px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.top-nav .site-nav-panel[hidden] {
    display: none !important;
}

.top-nav .site-nav-panel nav {
    display: grid;
}

.top-nav .site-nav-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 11px;
}

.top-nav .site-nav-panel a:hover,
.top-nav .site-nav-panel a:focus-visible,
.top-nav .site-nav-panel a[aria-current='page'] {
    color: #fff;
    background: rgba(230, 0, 126, 0.14);
}

.top-nav .site-nav-panel .site-nav-panel-cta {
    margin-top: 7px;
    color: #fff;
    background: #e6007e;
}

.top-nav .site-nav-panel .site-nav-panel-cta:hover,
.top-nav .site-nav-panel .site-nav-panel-cta:focus-visible {
    background: #ff168f;
}

@media (max-width: 1020px) {
    .top-nav .site-nav-shell {
        position: static;
        gap: 4px;
        margin-left: auto;
        transform: none;
    }

    .top-nav .site-nav-links {
        display: none;
    }

    .top-nav .site-home-link,
    .top-nav .site-nav-menu-button {
        display: inline-flex;
    }

    .top-nav .site-home-link {
        min-height: 40px;
        align-items: center;
        padding: 0 9px;
        color: rgba(255, 255, 255, 0.78);
    }

    .top-nav .site-nav-panel[data-open='true'] {
        display: block;
    }
}

@media (max-width: 680px) {
    .top-nav .nav-cta {
        display: none;
    }

    .top-nav .site-nav-shell {
        margin-left: 8px;
    }

    .footer-links {
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-nav .site-nav-links a,
    .top-nav .site-home-link,
    .top-nav .site-nav-panel a {
        transition: none;
    }
}

.site-header .modern-site-menu {
    position: relative;
    display: none;
}

.site-header .modern-site-menu summary {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font: 700 0.75rem/1 'Outfit', 'Inter', system-ui, sans-serif;
    list-style: none;
    cursor: pointer;
}

.site-header .modern-site-menu summary::-webkit-details-marker {
    display: none;
}

.site-header .modern-site-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(270px, calc(100vw - 32px));
    display: grid;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.99);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.58);
}

.site-header .modern-site-menu nav a {
    min-height: 43px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.74);
    font: 650 0.8rem/1 'Outfit', 'Inter', system-ui, sans-serif;
    text-decoration: none;
}

.site-header .modern-site-menu nav a:hover,
.site-header .modern-site-menu nav a:focus-visible,
.site-header .modern-site-menu nav a[aria-current='page'] {
    color: #fff;
    background: rgba(230, 0, 126, 0.15);
}

.site-header .modern-site-menu nav .site-nav-panel-cta {
    margin-top: 6px;
    color: #fff;
    background: #d91b79;
}

@media (max-width: 860px) {
    .site-header .modern-site-menu {
        display: block;
        margin-left: auto;
    }

    .site-header .top-nav .nav-cta:not(.primary) {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header .top-nav {
        display: none;
    }
}
