/* SJR festive themes v2: decorations live in their own header, never over menu content. */
.sjr-festive-decoration{
  position:relative!important; inset:auto!important; display:block;
  width:100%; height:62px; min-height:62px; flex:0 0 62px;
  box-sizing:border-box; overflow:hidden; isolation:isolate;
  z-index:0; pointer-events:none; user-select:none;
  font-family:system-ui,sans-serif; line-height:normal;
}
.sjr-festive-decoration .sjr-festive-topline{height:6px;position:absolute;top:0;left:0;right:0}
.sjr-festive-decoration .sjr-festive-left,
.sjr-festive-decoration .sjr-festive-right,
.sjr-festive-decoration .sjr-festive-middle{
  position:absolute;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.12));
  white-space:nowrap;line-height:1.15;
}
.sjr-festive-decoration .sjr-festive-left{top:11px;left:clamp(10px,3vw,30px)}
.sjr-festive-decoration .sjr-festive-right{top:11px;right:clamp(10px,3vw,30px)}
.sjr-festive-decoration .sjr-festive-middle{top:21px;left:50%;transform:translateX(-50%)}
.sjr-festive-christmas .sjr-festive-topline{background:repeating-linear-gradient(90deg,#214d39 0 35px,#bd4742 35px 70px,#f2ca78 70px 83px)}
.sjr-festive-christmas .sjr-festive-left::before{content:'🎄';font-size:36px}
.sjr-festive-christmas .sjr-festive-right::before{content:'🎁';font-size:34px}
.sjr-festive-christmas .sjr-festive-middle::before{content:'✦ ❄ ✦';font-size:17px;color:#497967;letter-spacing:13px;text-shadow:0 2px 7px white}
.sjr-festive-cny .sjr-festive-topline{background:repeating-linear-gradient(90deg,#a32328 0 28px,#e1ae4f 28px 33px,#b92e30 33px 61px)}
.sjr-festive-cny .sjr-festive-left::before,.sjr-festive-cny .sjr-festive-right::before{content:'🏮';font-size:36px}
.sjr-festive-cny .sjr-festive-middle::before{content:'✦ 福 ✦';font-size:20px;color:#b01e22;letter-spacing:10px;text-shadow:0 2px 7px #fff7e2}
/* Atmospheric particles stay WITHIN the 62px banner instead of floating over content. */
.sjr-festive-christmas::before{content:'❄       ✧            ❄           ✦        ❄';position:absolute;top:18px;left:0;right:0;overflow:hidden;color:#6c998f;opacity:.18;font-size:14px;white-space:nowrap;text-align:center;letter-spacing:20px}
.sjr-festive-cny::before{content:'✦          ✧         ✦          ✧         ✦';position:absolute;top:18px;left:0;right:0;overflow:hidden;text-align:center;opacity:.20;color:#bf8630;font-size:12px;white-space:nowrap;letter-spacing:35px}
@media(max-width:540px){
  .sjr-festive-decoration{height:47px;min-height:47px;flex-basis:47px}
  .sjr-festive-decoration .sjr-festive-left,.sjr-festive-decoration .sjr-festive-right{top:8px}
  .sjr-festive-christmas .sjr-festive-left::before,.sjr-festive-christmas .sjr-festive-right::before,
  .sjr-festive-cny .sjr-festive-left::before,.sjr-festive-cny .sjr-festive-right::before{font-size:27px}
  .sjr-festive-decoration .sjr-festive-middle{display:none}
}
@media print{.sjr-festive-decoration{display:none!important}}

/* SJR snow side rails - Christmas only. Deliberately narrow and non-interactive. */
@media (min-width: 1280px) {
  body:has(> .sjr-festive-christmas)::before,
  body:has(> .sjr-festive-christmas)::after {
    content: "❄  ❅  ✧  ❄  ✦  ❅  ❄  ✧  ❄  ❅  ✦  ❄  ✧  ❅  ❄  ✦  ❅  ❄  ✧  ❄";
    position: fixed;
    top: -115vh;
    bottom: auto;
    width: min(64px, calc((100vw - 1120px) / 2 - 12px));
    height: 230vh;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 3.7;
    letter-spacing: 15px;
    text-align: center;
    color: rgba(111, 162, 185, .54);
    text-shadow: 0 1px 3px rgba(255,255,255,.65);
    animation: sjr-side-snowfall 19s linear infinite;
  }
  body:has(> .sjr-festive-christmas)::before { left: 7px; }
  body:has(> .sjr-festive-christmas)::after {
    right: 7px;
    animation-duration: 24s;
    animation-delay: -11s;
    font-size: 15px;
    line-height: 4.3;
    opacity: .78;
  }
}
@keyframes sjr-side-snowfall {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body:has(> .sjr-festive-christmas)::before,
  body:has(> .sjr-festive-christmas)::after { animation: none !important; top: 0; height: 100vh; }
}
@media print {
  body:has(> .sjr-festive-christmas)::before,
  body:has(> .sjr-festive-christmas)::after { display: none !important; }
}

/* SJR Christmas snow v4: denser adaptive snow in truly vacant page margins. */
body:has(> .sjr-festive-christmas)::before,
body:has(> .sjr-festive-christmas)::after { display:none!important; content:none!important; animation:none!important; }
.sjr-snow-rail { position:fixed; top:0; height:100vh; overflow:hidden; pointer-events:none; user-select:none; z-index:2; contain:layout paint; }
.sjr-snow-rail[hidden] {display:none!important;}
.sjr-snow-flake { position:absolute; top:-12vh; display:block; line-height:1; white-space:nowrap; color:rgba(107,151,181,var(--snow-opacity,.6)); font-family:Georgia,serif; font-size:var(--snow-size,15px); text-shadow:0 0 3px rgba(255,255,255,.8); transform:translate3d(0,0,0); animation:sjr-snow-fall var(--snow-duration,15s) linear infinite; animation-delay:var(--snow-delay,0s); will-change:transform; }
@keyframes sjr-snow-fall { from { transform:translate3d(0,-10vh,0) rotate(0deg); } to { transform:translate3d(var(--snow-drift,8px),125vh,0) rotate(130deg); } }
@media (prefers-reduced-motion: reduce) { .sjr-snow-flake {animation:none!important; transform:translate3d(0, var(--snow-static-y,35vh), 0); } }
@media print { .sjr-snow-rail {display:none!important;} }
