.glyph-bar {
    align-items: center;
    background-color: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    color: #fff;
    display: grid;
    gap: clamp(0.3rem, 1vw, 0.75rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    left: 0;
    overflow: hidden;
    padding: 0.55rem clamp(0.4rem, 1.25vw, 1rem);
    position: fixed;
    
    top: calc(4.75rem + 10px);
    width: 100%;
    z-index: 999;
}

.glyph-navigation {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 1vw, 0.75rem);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 0.35rem;
    scrollbar-width: none;
    scroll-padding-inline: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.glyph-navigation::-webkit-scrollbar {
    display: none;
}

.glyph-navigation > .glyph-action {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    color: inherit;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: clamp(0.95rem, 1.65vw, 1.35rem);
    margin: 0;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    scroll-snap-align: start;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.glyph-navigation > .glyph-action:is(:hover, :active) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.glyph-navigation > .glyph-action:active {
    transform: translateY(1px);
}

.glyph-navigation > .toggle-button.disabled {
    background-color: #444;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #bdbdbd;
    text-shadow: none;
}

.glyph-scroll-arrow {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 1.25rem / 1 "Courier New", monospace;
    height: 2.75rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
    width: 2.75rem;
}

.glyph-scroll-arrow:is(:hover, :active):not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.42);
}

.glyph-scroll-arrow:disabled {
    cursor: default;
    opacity: 0.28;
}

.glyph-navigation:focus-visible,
.glyph-bar :is(.glyph-action, .glyph-scroll-arrow):focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .glyph-bar {
        gap: 0.35rem;
        padding-inline: 0.35rem;
        top: calc(7.5rem + 10px);
    }

    .glyph-navigation > .glyph-action {
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
        min-height: 3rem;
        padding-inline: 0.7rem;
    }

    .glyph-scroll-arrow {
        height: 3rem;
        width: 3rem;
    }
}

@media (max-width: 380px) {
    .glyph-scroll-arrow {
        height: 2.75rem;
        width: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glyph-navigation > .glyph-action,
    .glyph-scroll-arrow {
        transition: none;
    }
}
