/* Decorative only: keeps navigation clickable and the page layout unchanged. */
.cult-christmas {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
    overflow: hidden;
}
.cult-christmas__lights {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    justify-content: space-around;
    height: 27px;
    border-top: 2px solid #214737;
}
.cult-christmas__bulb {
    --bulb: #e24b42;
    position: relative;
    flex: 0 0 9px;
    height: 15px;
    margin-top: 6px;
    border-radius: 45% 45% 50% 50%;
    background: var(--bulb);
    border: 1px solid rgb(0 0 0 / 30%);
    box-shadow: 0 0 7px var(--bulb), inset 2px 1px 2px rgb(255 255 255 / 60%);
    transform: rotate(-12deg);
}
.cult-christmas__bulb::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 7px;
    top: -7px;
    left: 1px;
    background: #214737;
    border-radius: 1px;
}
.cult-christmas__bulb:nth-child(3n + 2) { --bulb: #ffd45b; transform: rotate(10deg); }
.cult-christmas__bulb:nth-child(3n) { --bulb: #39a479; transform: rotate(-5deg); }
.cult-christmas__snow {
    position: absolute;
    left: var(--x);
    top: -12px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 1px rgb(83 104 120 / 35%);
    opacity: 0;
    animation: cult-christmas-snow var(--duration) linear var(--delay) infinite both;
}
@keyframes cult-christmas-snow {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: .4; }
    50% { transform: translate(-16px, 50vh); }
    85% { opacity: .4; }
    100% { transform: translate(12px, calc(100vh + 24px)); opacity: 0; }
}
/* Compensate for the site's existing document-wide dark-mode inversion. */
html[data-theme="dark"] .cult-christmas__lights,
html[data-theme="dark"] .cult-christmas__snow {
    filter: invert(1) hue-rotate(180deg);
}
.admin-bar .cult-christmas__lights { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .cult-christmas__lights { top: 46px; }
}
@media (max-width: 600px) {
    .cult-christmas__bulb:nth-child(n + 13),
    .cult-christmas__snow:nth-of-type(even) { display: none; }
    .cult-christmas__bulb { flex-basis: 7px; height: 12px; }
    .cult-christmas__bulb::before { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cult-christmas__snow { display: none; animation: none; }
}
@media print {
    .cult-christmas { display: none; }
}
