/* Announcement bar (US-097). Red is the theme's own #cc0000: white on it is
   5.9:1, where the theme blue #0099ff would be 2.9:1. */
.kf-announcement {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    background-color: #cc0000;
    color: #fff;
    font-family: "Abel", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
}

/* A scheduled bar is in the HTML but stays hidden until the inline script
   sees its start day has come (a page cached before the start date). */
.kf-announcement--scheduled {
    display: none;
}

.kf-announcement-live .kf-announcement--scheduled {
    display: flex;
}

/* Closed by this visitor, or past its end date: last, so it wins. */
.kf-announcement[hidden],
.kf-announcement-hidden .kf-announcement {
    display: none;
}

.kf-announcement__link {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    padding: 10px 4px 10px 16px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.kf-announcement__link:hover,
.kf-announcement__link:focus {
    color: #fff;
}

.kf-announcement__link:hover .kf-announcement__text,
.kf-announcement__link:focus-visible .kf-announcement__text {
    text-decoration: underline;
}

.kf-announcement__link:focus-visible,
.kf-announcement__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.kf-announcement__text--long {
    display: none;
}

.kf-announcement__cta {
    padding: 3px 10px;
    border-radius: 3px;
    background-color: #fff;
    color: #cc0000;
    font-family: "flaresidheregular", sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}

.kf-announcement__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 4px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media all and (min-width: 768px) {
    .kf-announcement {
        font-size: 17px;
    }

    .kf-announcement__text--long {
        display: inline;
    }

    .kf-announcement__text--short {
        display: none;
    }
}

/* Below 768px the theme's .mobileheader is fixed at the top. announcement.js
   sets the offset so the header sits under the bar until it scrolls away. */
body .mobileheader {
    top: var(--kf-announcement-offset, 0);
}

body .sidr {
    padding-top: calc(44px + var(--kf-announcement-offset, 0px));
}
