/* Guest-only entry to the member login page, top right of the header. */
.l-header .member-login-button {
    position: absolute;
    top: 6px;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 4px;
    background: #c4161c;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.l-header .member-login-button:hover,
.l-header .member-login-button:focus-visible {
    background: #a01116;
    color: #fff;
}
.l-header .member-login-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
/*
 * Below 1200px the banner reaches the right edge. The header height follows the banner, so the button moves
 * into the right end of the red menu bar right under the header (it is empty for guests).
 */
@media (min-width: 768px) and (max-width: 1199px) {
    .l-header .member-login-button {
        top: calc(100% + 4px);
        right: 8px;
        padding: 2px 12px;
        box-shadow: none;
        border: 1px solid #fff;
    }
}
/* On phones the header height is automatic, so the button gets its own row under the banner. */
@media (max-width: 767px) {
    .l-header .member-login-button {
        position: static;
        clear: both;
        display: flex;
        width: max-content;
        margin: 4px 8px 6px auto;
        padding: 6px 10px;
        font-size: 12px;
    }
}
