/* Christmas decorations (2026-11-27). Added by the "System - Regency Christmas decorations" plugin,
   whose settings are the on/off switch. Everything here hangs off html.rdc-xmas (set by christmas.js
   between the plugin's dates), so nothing shows outside them. Holly also needs html.rdc-xmas-holly. */

/* --- Fairy lights under the header ------------------------------------------------------------ */
html.rdc-xmas #t4-header{position:relative}
.rdc-xmas-lights{
  position:absolute;left:0;right:0;top:100%;height:26px;z-index:20;pointer-events:none;
  /* the wire: one dip between each pair of bulbs */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14' preserveAspectRatio='none'%3E%3Cpath d='M0 1 Q28 13 56 1' fill='none' stroke='%236b4a2e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size:var(--rdc-xmas-gap,56px) 12px;background-repeat:repeat-x;background-position:0 0;
}
.rdc-xmas-bulb{
  position:absolute;top:8px;width:9px;height:14px;margin-left:-4.5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;
  background:var(--bulb);box-shadow:0 0 6px 2px var(--glow);
  animation:rdc-xmas-twinkle 2.6s ease-in-out infinite;
}
/* the little cap where the bulb meets the wire */
.rdc-xmas-bulb::before{content:"";position:absolute;left:2px;top:-3px;width:5px;height:4px;border-radius:1px;background:#3a2a1e}
.rdc-xmas-bulb--gold {--bulb:#f3c969;--glow:rgba(243,201,105,.8)}
.rdc-xmas-bulb--red  {--bulb:#e0413a;--glow:rgba(224,65,58,.75)}
.rdc-xmas-bulb--white{--bulb:#fff8e6;--glow:rgba(255,248,230,.85)}
.rdc-xmas-bulb--green{--bulb:#3fae5a;--glow:rgba(63,174,90,.75)}
@keyframes rdc-xmas-twinkle{0%,100%{opacity:1;box-shadow:0 0 7px 2px var(--glow)}50%{opacity:.45;box-shadow:0 0 2px 0 var(--glow)}}
/* Smaller bulbs on phones */
@media (max-width:767.98px){
  .rdc-xmas-lights{height:20px}
  .rdc-xmas-bulb{top:7px;width:7px;height:11px;margin-left:-3.5px}
  .rdc-xmas-bulb::before{left:1.5px;width:4px;height:3px}
}

/* --- Holly on the logo ------------------------------------------------------------------------ */
html.rdc-xmas-holly .navbar-brand{position:relative}
html.rdc-xmas-holly .navbar-brand::after{
  content:"";position:absolute;pointer-events:none;
  top:10px;right:12px;width:34px;height:30px;transform:rotate(14deg);
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M20 18C16 16 12 17 10 14c-1.5 1-3.5 1-4.5-.5 1.2-.8 1.5-2.3.6-3.4-1.2.4-2.6 0-3.1-1.2C6 8 9.6 8.4 12.2 10.6 14.6 12.6 17 15 20 18z' fill='%232f7d3e'/%3E%3Cpath d='M20 18c4-2 8-1 10-4 1.5 1 3.5 1 4.5-.5-1.2-.8-1.5-2.3-.6-3.4 1.2.4 2.6 0 3.1-1.2C34 8 30.4 8.4 27.8 10.6 25.4 12.6 23 15 20 18z' fill='%23256b33'/%3E%3Ccircle cx='17.5' cy='20' r='3.2' fill='%23d3242b'/%3E%3Ccircle cx='22.8' cy='20.4' r='3.2' fill='%23c01f26'/%3E%3Ccircle cx='20' cy='24.6' r='3.2' fill='%23d3242b'/%3E%3Ccircle cx='16.6' cy='19' r='.9' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='21.9' cy='19.4' r='.9' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='19.1' cy='23.6' r='.9' fill='%23fff' opacity='.7'/%3E%3C/svg%3E");
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
@media (max-width:767.98px){html.rdc-xmas-holly .navbar-brand::after{width:26px;height:23px;top:6px;right:6px}}

/* --- Snow over the homepage hero -------------------------------------------------------------- */
html.rdc-xmas .acm-hero{position:relative}
.rdc-xmas-snow{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}

/* --- Less motion: lights stay on, no twinkle (the script already leaves out the snow) ----------- */
@media (prefers-reduced-motion:reduce){.rdc-xmas-bulb{animation:none}}

/* --- Printing: none of it ---------------------------------------------------------------------- */
@media print{.rdc-xmas-lights,.rdc-xmas-snow{display:none}html.rdc-xmas-holly .navbar-brand::after{display:none}}
