.mobile-header {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--background-color);
    color: white;
    z-index: 500;
    box-shadow: var(--shadow-mobile-header);
    padding: 0 15px;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.mobile-header.visible {
    display: flex;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    background-color: var(--overlay-white-10);
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 600;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    translate: -27.5px 0; /* adjust for menu button */
}

.mobile-logo a {
    color: white;
    text-decoration: none;
}

@media (min-width: 1281px) {
    .mobile-header {
        display: none !important;
    }
}
