/**
 * Hero top navigation — loaded last to keep layout identical on every page.
 */

body.atlas-mobile-first .hero-top-nav {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

body.atlas-mobile-first .hero-top-nav__inner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.atlas-mobile-first .hero-top-nav__list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

body.atlas-mobile-first .hero-top-nav__item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
}

body.atlas-mobile-first .hero-top-nav__item:last-child {
    border-right: none;
}

body.atlas-mobile-first .hero-top-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 52px;
    padding: 8px 4px;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}

body.atlas-mobile-first .hero-top-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: currentColor;
    line-height: 0;
}

body.atlas-mobile-first .hero-top-nav__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    max-width: none;
    flex-shrink: 0;
}

body.atlas-mobile-first .hero-top-nav__label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.atlas-mobile-first .hero-top-nav__item.is-active .hero-top-nav__link {
    color: #16a34a;
}

body.atlas-mobile-first .hero-top-nav__link:hover,
body.atlas-mobile-first .hero-top-nav__link:focus-visible {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.06);
}

body.atlas-mobile-first .hero-top-nav__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #22c55e;
    opacity: 0;
    transform: scaleX(0.72);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.atlas-mobile-first .hero-top-nav__item.is-active .hero-top-nav__link::after,
body.atlas-mobile-first .hero-top-nav__link:hover::after,
body.atlas-mobile-first .hero-top-nav__link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

body.light-mode.atlas-mobile-first .hero-top-nav,
body.atlas-mobile-first.dark-mode .hero-top-nav {
    background: #ffffff;
}

body.single-apps .hero-top-nav,
body.single-apps .hero-top-nav__inner,
body.single-apps .hero-top-nav__list,
body.single-apps .hero-top-nav__item,
body.single-apps .hero-top-nav__link {
    max-width: none;
}
