/* Merida — awards and seasonal hat v1.0 */
:root { --merida-awards-css-ready: 1; }
#header .merida-header-awards { display: none; }
@media (min-width: 1261px) {
    body.merida-home-header-active #header .merida-awards-slot {
        position: relative !important;
    }
    body.merida-home-header-active #header.merida-awards-ready .merida-header-awards:not([hidden]) {
        position: absolute !important;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 10;
    }
    #header .merida-header-awards a {
        display: block; flex-shrink: 0;
        margin: 0 !important; padding: 0 !important;
        line-height: 0;
    }
    #header .merida-header-awards img {
        display: block;
        width: 60px !important; height: 60px !important;
        object-fit: contain;
        transition: transform .25s ease;
        filter: drop-shadow(0 2px 3px rgba(0,0,0,.12));
    }
    #header .merida-header-awards a:hover img,
    #header .merida-header-awards a:focus-visible img { transform: scale(1.08); }
    #header .merida-header-awards a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 50%; }
    /* Only suppress the original medal when the new block is actually visible. */
    body.merida-home-header-active #header.merida-awards-ready .merida-dynamic-logo::after {
        content: none !important;
    }
    body.merida-home-header-active #header.merida-awards-ready.merida-santa-hat .merida-dynamic-logo::after {
        content: '' !important;
        position: absolute !important;
        width: 44px !important; height: 44px !important;
        max-width: none !important; max-height: none !important;
        top: 0px !important; left: 37px !important; right: auto !important;
        background: url('images/santa-hat.png') center / contain no-repeat !important;
        transform-origin: 35% 70%;
        pointer-events: none;
    }
    body.merida-home-header-active #header.merida-awards-ready.merida-santa-hat.merida-santa-hat-motion .merida-dynamic-logo::after {
        animation: meridaHatWind 5s ease-in-out infinite !important;
    }
}
@keyframes meridaHatWind {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    20% { transform: rotate(4deg); }
    30% { transform: rotate(-3deg); }
    40% { transform: rotate(2deg); }
    50%, 90% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    body.merida-home-header-active #header.merida-awards-ready.merida-santa-hat.merida-santa-hat-motion .merida-dynamic-logo::after { animation: none !important; }
    #header .merida-header-awards img { transition: none !important; }
}
