/* BizSeason - the greeting ribbon, the string of lights and the overlay canvas.
 *
 * ⚠ EVERY COLOUR IS A VARIABLE PRINTED IN <head> FOR THE EVENT SHOWING (--bizseason-*, light values on :root, dark
 * ones under the site's dark-mode selectors), so this file holds no colour of its own and repaints with the theme.
 *
 * --bizseason-z (default 5) is where the canvas sits: above the page's content, below a sticky header, its menus,
 * chat buttons and modals. A theme that needs it elsewhere sets the variable on :root.
 */

.bizseason-canvas {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
    z-index: var(--bizseason-z, 5);
}

.bizseason-ribbon {
    position: relative;
    z-index: calc(var(--bizseason-z, 5) + 1);
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--bizseason-ribbon-ink);
    background: linear-gradient(100deg, var(--bizseason-ribbon-bg) 0%, var(--bizseason-ribbon-bg2) 50%, var(--bizseason-ribbon-bg) 100%);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* a hairline of the second accent along the foot, fading at both ends */
.bizseason-ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--bizseason-ribbon-line) 18%, var(--bizseason-ribbon-line) 82%, transparent);
    opacity: .8;
    pointer-events: none;
}

.bizseason-ribbon .bizseason-ribbon__in {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 1440px;
    min-height: 36px;
    margin: 0 auto;
    padding: 6px 10px 7px 16px;
}

.bizseason-ribbon .bizseason-ribbon__in::before {
    content: "";
}

.bizseason-ribbon .bizseason-ribbon__text {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: center;
    letter-spacing: .005em;
}

.bizseason-ribbon .bizseason-ribbon__icon {
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-right: .45em;
    vertical-align: -3.5px;
}

.bizseason-ribbon .bizseason-ribbon__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.bizseason-ribbon .bizseason-ribbon__greet {
    color: inherit;
    font-weight: 600;
    letter-spacing: .01em;
}

.bizseason-ribbon .bizseason-ribbon__sub,
.bizseason-ribbon .bizseason-ribbon__from {
    color: inherit;
    font-weight: 400;
}

.bizseason-ribbon .bizseason-ribbon__sub::before,
.bizseason-ribbon .bizseason-ribbon__from::before {
    content: "\00b7";
    margin: 0 .45em;
}

.bizseason-ribbon .bizseason-ribbon__tools {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 6px;
}

/* the theme styles <button> its own way; these two are reset and drawn from the ribbon's ink */
.bizseason-ribbon .bizseason-ribbon__fx,
.bizseason-ribbon .bizseason-ribbon__x {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 40%, transparent);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
    text-transform: none;
    text-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease;
}

.bizseason-ribbon .bizseason-ribbon__fx {
    padding: 6px 11px;
}

/* the sparkle (crossed out while the effects are off) stands in for the words on a phone */
.bizseason-ribbon .bizseason-ribbon__fx svg {
    display: none;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bizseason-ribbon .bizseason-ribbon__slash {
    display: none;
}

.bizseason-nofx .bizseason-ribbon .bizseason-ribbon__slash {
    display: inline;
}

.bizseason-ribbon .bizseason-ribbon__x {
    width: 26px;
    height: 26px;
    padding: 0;
    border-color: transparent;
}

.bizseason-ribbon .bizseason-ribbon__x svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.bizseason-ribbon .bizseason-ribbon__fx:hover,
.bizseason-ribbon .bizseason-ribbon__x:hover {
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.bizseason-ribbon .bizseason-ribbon__fx:focus-visible,
.bizseason-ribbon .bizseason-ribbon__x:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.bizseason-ribbon [hidden] {
    display: none !important;
}

/* the string of lights hangs just below the ribbon (the script moves it to the top of the page once it is closed) */
.bizseason-lights {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    width: 100%;
    margin: 0;
    pointer-events: none;
    z-index: calc(var(--bizseason-z, 5) + 1);
}

body > .bizseason-lights {
    top: 0;
}

/* the visitor's choices (set in <head> before the page paints) and an event that ended while a cache kept the page */
.bizseason-noribbon .bizseason-ribbon,
.bizseason-nofx .bizseason-canvas,
.bizseason-nofx .bizseason-lights,
.bizseason-over .bizseason-ribbon,
.bizseason-over .bizseason-canvas,
.bizseason-over .bizseason-lights {
    display: none;
}

@media (max-width: 700px) {
    .bizseason-ribbon .bizseason-ribbon__in {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 6px 6px 7px 12px;
    }

    .bizseason-ribbon .bizseason-ribbon__in::before,
    .bizseason-ribbon .bizseason-ribbon__sub {
        display: none;
    }

    .bizseason-ribbon .bizseason-ribbon__text {
        font-size: 13px;
        text-align: left;
    }

    .bizseason-ribbon .bizseason-ribbon__fx {
        width: 28px;
        height: 28px;
        padding: 0;
    }

    .bizseason-ribbon .bizseason-ribbon__fx svg {
        display: block;
    }

    .bizseason-ribbon .bizseason-ribbon__fxt {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media print {
    .bizseason-ribbon,
    .bizseason-canvas,
    .bizseason-lights {
        display: none;
    }
}
