/* Reserve the wordmark's Inter width before its font is available. */
:root :is(.site-header, .admin-header) .brand,
:root [data-ampe-page="/status"] .topbar .brand {
    min-inline-size: 7.75rem;
}

@font-face {
    font-family: "AMPE Service Interface";
    src: url("/assets/ui/login-interface-58f63095c3d188d7.woff2") format("woff2");
    font-weight: 100 900;
    font-display: optional;
}

/* Keep the navigation aligned with the same link widths in Inter and Arial. */
:root .site-header .site-nav__links > li:nth-child(1) { --nav-link-width: 5.15625rem; }
:root .site-header .site-nav__links > li:nth-child(2) { --nav-link-width: 6.34375rem; }
:root .site-header .site-nav__links > li:nth-child(3) { --nav-link-width: 7rem; }
:root .site-header .site-nav__links > li:nth-child(4) { --nav-link-width: 6.875rem; }
:root .site-header .site-nav__links > li:nth-child(5) { --nav-link-width: 7.78125rem; }
:root .site-header .site-nav__links > li:nth-child(6) { --nav-link-width: 5.1875rem; }
:root .site-header .site-nav__links > li:nth-child(7) { --nav-link-width: 8.84375rem; }

:root .site-header .site-nav__links > li > a {
    min-inline-size: var(--nav-link-width, auto);
    justify-content: center;
}

/* Both service headers use the same footprint for the return action. */
:root :is(.site-header__inner .site-link, .topbar .topbar-home) {
    box-sizing: border-box;
    inline-size: 10.25rem;
    flex: 0 0 auto;
    justify-content: center;
    padding-inline: .25rem;
    white-space: nowrap;
    font-family: "AMPE Service Interface", Arial, sans-serif;
}

:root [data-ampe-page="/map"] .community {
    font-family: "AMPE Service Interface", Arial, sans-serif;
}

:root [data-ampe-page="/map"] .community nav a {
    justify-content: center;
    white-space: nowrap;
}

:root [data-ampe-page="/map"] .community nav a:nth-child(1) { min-inline-size: 8.75rem; }
:root [data-ampe-page="/map"] .community nav a:nth-child(2) { min-inline-size: 6.5rem; }
:root [data-ampe-page="/map"] .community nav a:nth-child(3) { min-inline-size: 6rem; }

@media (max-width: 360px) {
    :root [data-ampe-page="/map"] .new-player {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    :root :is(.site-header__inner .site-link, .topbar .topbar-home) {
        inline-size: 9.0625rem;
    }
}

@media (max-width: 360px) {
    :root [data-ampe-page="/map"] .site-header__inner,
    :root [data-ampe-page="/status"] .topbar .shell {
        column-gap: 4px;
    }
}
