/* ==========================================================================
   THANKSGIVING MODE — the logo and the callouts under it.
   js/modes/thanksgiving.js picks a contest pinkie per page load and sets
   --tg-pinkie / --tg-w / --tg-h; the logo is that pinkie standing where the
   smiley usually is, plus the "YAY HOORAY!" bubble on its own
   (img/yay-logo-bubble.svg: the 80x14 logo minus the smiley, whose pointer
   sits at x=17). The bubble moves right by however much wider the pinkie is
   than the 14px smiley, and down to its middle when it is taller.
   Until the script runs, the bubble shows alone (never the smiley).
   The page colours are the Thanksgiving theme's (forum.css), not this
   file's; the callouts take theme tokens so they read in any theme.
   ========================================================================== */

[data-mode-thanksgiving] #header {
    background-image: var(--tg-pinkie, none), url(/img/yay-logo-bubble.svg) !important;
    background-repeat: no-repeat !important;
    background-size: var(--tg-w, 14px) var(--tg-h, 14px), 80px 14px !important;
    background-position:
        0 0,
        calc(var(--tg-w, 14px) - 14px) calc((var(--tg-h, 14px) - 14px) / 2) !important;
    width: calc(var(--tg-w, 14px) + 73px);
    height: max(23px, var(--tg-h, 14px));
    image-rendering: pixelated;
}

#tg-harvest {
    margin: -8px 0 16px;
}
#tg-harvest .tg-caption {
    margin: 0 0 2px;
    font-size: 0.6875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-pink);
}
#tg-harvest .tg-credits {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--color-text-soft);
}

/* Phone: the header is a full-width bar with the logo 12px in, centred
   vertically; the callouts sit under the bar. */
@media screen and (max-width: 600px) {
    [data-mode-thanksgiving] #header {
        width: auto;
        height: auto;
        min-height: var(--tg-h, 14px);
        background-color: var(--color-green-bg) !important;
        background-position:
            12px center,
            calc(12px + var(--tg-w, 14px) - 14px) center !important;
    }
    #tg-harvest {
        margin: 0;
        padding: 8px 12px 10px;
        border-bottom: 1px solid var(--color-border-light);
    }
}
