/* Atelier — mobile floor wayfinding nav */

.at-floor-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 350;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: end;
    gap: 0.15rem;
    min-height: calc(var(--at-nav-h) + var(--at-safe-bottom));
    padding: 0.35rem 0.4rem calc(0.35rem + var(--at-safe-bottom));
    background: color-mix(in srgb, var(--at-cream) 94%, #fff);
    border-top: 1px solid var(--at-line);
}

.at-floor-nav__link,
.at-floor-nav__btn {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.15rem;
    min-height: 48px;
    padding: 0.35rem 0.2rem;
    border: 0;
    background: none;
    color: var(--at-muted);
    font-family: var(--at-font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: color var(--at-transition);
}

.at-floor-nav__link::before,
.at-floor-nav__btn::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 22%;
    height: 2px;
    background: var(--at-pistachio);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--at-transition);
}

.at-floor-nav__link.is-active,
.at-floor-nav__btn.is-active {
    color: var(--at-olive);
}

.at-floor-nav__link.is-active::before,
.at-floor-nav__btn.is-active::before {
    transform: scaleX(1);
}

.at-floor-nav__link:hover,
.at-floor-nav__link:focus-visible,
.at-floor-nav__btn:hover,
.at-floor-nav__btn:focus-visible {
    color: var(--at-charcoal);
    outline: none;
}

.at-floor-nav__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 0.95rem;
}

.at-floor-nav__home {
    position: relative;
    display: grid;
    place-items: center;
    align-self: center;
    width: 52px;
    height: 52px;
    margin-inline: auto;
    margin-bottom: 0.15rem;
    color: #1f2418;
    border-radius: var(--at-r-md);
}

.at-floor-nav__home-sq {
    width: 100%;
    height: 100%;
    background: var(--at-pistachio);
    border: 1px solid var(--at-pistachio-deep);
    border-radius: var(--at-r-md);
    transition: background var(--at-transition);
}

.at-floor-nav__home::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.5px solid #1f2418;
    border-bottom: 0;
    border-inline-start: 0;
    transform: rotate(-45deg) translateY(2px);
}

.at-floor-nav__home:hover .at-floor-nav__home-sq,
.at-floor-nav__home:focus-visible .at-floor-nav__home-sq {
    background: var(--at-pistachio-deep);
}

.at-floor-nav__home:focus-visible {
    outline: 2px solid var(--at-olive);
    outline-offset: 3px;
}

.at-floor-nav__form {
    margin: 0;
    display: contents;
}

@media (min-width: 900px) {
    .at-floor-nav {
        display: none;
    }
}
