/* Seasonal decoration only; no changes to the site's brand or seat colours. */
.header-section .header-wrapper > .logo.ts-halloween-logo {
    width: 226px;
    align-items: center;
    gap: 8px;
}

.header-section .logo.ts-halloween-logo > a:not(.ts-halloween-link) {
    display: inline-flex;
    align-items: center;
    flex: 1;
    width: auto;
    min-width: 0;
}

.header-section .logo.ts-halloween-logo > a:not(.ts-halloween-link) > img {
    width: 170px;
    min-width: 0;
}

.header-section .logo.ts-halloween-logo > .ts-halloween-link {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
}

.ts-halloween-link:focus-visible { outline: 3px solid #31d7a9; outline-offset: 3px; }
.ts-halloween-link:hover { background: rgb(255 173 72 / 12%); }

@media (prefers-reduced-motion: no-preference) {
    .ts-halloween-link::before,
    .ts-halloween-link::after {
        content: "";
        position: absolute;
        inset: 6px;
        z-index: -1;
        border: 2px solid #ffad48;
        border-radius: 50%;
        box-shadow: 0 0 10px rgb(255 143 36 / 25%);
        pointer-events: none;
        opacity: 0;
        animation: ts-halloween-ping 3.2s ease-out infinite;
    }

    .ts-halloween-link::after { animation-delay: 1.6s; }
}

@keyframes ts-halloween-ping {
    0% { transform: scale(.7); opacity: 0; }
    15% { opacity: .6; }
    75%, 100% { transform: scale(1.65); opacity: 0; }
}

@media (min-width: 992px) {
    .header-section .header-wrapper > .logo.hide_mobile.ts-halloween-logo { display: flex !important; }
}

.ts-halloween-pumpkin {
    display: inline-flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    pointer-events: none;
    user-select: none;
}

.header-section .ts-halloween-pumpkin > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    transform: scale(1.3333);
    filter: drop-shadow(0 1px 5px rgb(255 143 36 / 24%));
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-section .header-wrapper > .logo.ts-halloween-logo { width: 196px; }
    .header-section .logo.ts-halloween-logo > a:not(.ts-halloween-link) > img { width: 140px; }
}

@media (max-width: 991px) {
    .header-section .header-wrapper > .logo.show_mobile.ts-halloween-logo {
        display: flex !important;
        flex-basis: 148px;
        width: 148px;
        gap: 4px;
    }

    .header-section .logo.show_mobile.ts-halloween-logo > a:not(.ts-halloween-link) > img { width: 108px; }
    .ts-halloween-pumpkin { flex-basis: 46px; width: 46px; height: 46px; }
}
