/* Temporary Nov. 3, 2026 election bar. Delete with wisconsin-vote-bar.js and the
   _WisconsinVoteBar partial after removing their _Layout.cshtml hooks. */
body.has-wisconsin-vote-bar {
    padding-bottom: calc(77.5px + env(safe-area-inset-bottom, 0px));
}

.wisconsin-vote-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 1050;
    display: flex;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #df001b;
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
}

.wisconsin-vote-bar[hidden],
.wisconsin-vote-bar [hidden] {
    display: none;
}

.wisconsin-vote-bar-link {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 6.5px clamp(48px, 11vw, 100px);
    color: #fff;
    text-decoration: none;
}

.wisconsin-vote-countdown {
    display: flex;
    flex: 0 0 69px;
    min-height: 64.5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    line-height: 1.1;
}

.wisconsin-vote-countdown strong {
    font-size: 32px;
    font-weight: 700;
}

.wisconsin-vote-countdown > span {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.wisconsin-vote-message > strong,
.wisconsin-vote-message > span {
    display: block;
}

.wisconsin-vote-message > strong {
    font-size: clamp(12px, 1.7vw, 18px);
    font-weight: 900;
    line-height: 1.2;
}

.wisconsin-vote-message > span {
    margin-top: 3px;
    font-size: clamp(12px, 1.35vw, 14px);
    line-height: 1.3;
}

.wisconsin-vote-close {
    position: absolute;
    inset: 0 0 env(safe-area-inset-bottom, 0px) auto;
    width: clamp(48px, 11vw, 100px);
    margin: 15px 0;
    padding: 0 10px;
    border: 0;
    border-left: 3px solid rgba(255, 255, 255, .35);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: 24px/1 Arial, sans-serif;
    cursor: pointer;
}

.wisconsin-vote-bar-link:hover,
.wisconsin-vote-close:hover {
    background: #bc0017;
    color: #fff;
    text-decoration: none;
}

.wisconsin-vote-bar-link:focus-visible,
.wisconsin-vote-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

@media (max-width: 575.98px) {
    body.has-wisconsin-vote-bar {
        padding-bottom: calc(55px + env(safe-area-inset-bottom, 0px));
    }

    .wisconsin-vote-bar-link {
        padding: 5px clamp(48px, 11vw, 100px);
        gap: 6px;
    }

    .wisconsin-vote-countdown {
        flex-basis: 36px;
        min-height: 45px;
    }

    .wisconsin-vote-countdown strong {
        font-size: 21px;
    }

    .wisconsin-vote-countdown > span {
        font-size: 9px;
    }

    .wisconsin-vote-close {
        font-size: 20px;
        margin: 10px 0;
    }
}
