/* ============================================================
   Runaway Bay Junior Leagues Club - Christmas layer (Christmas 2026, on every page but the TV board)
   Styled on the club's own Christmas 2026 posters: the beachside timber gift wall with its numbered
   red / teal / cream doors, red ribbon banners, pine with baubles, a red brush script over heavy serif caps.
   Loaded after the page's own <style>, only where <body> has .christmas. christmas.js draws the pine,
   the baubles and the bow, runs the sleeps countdown and opens the doors.
   ============================================================ */

body.christmas{
  --x-red:#c8161d;
  --x-red-deep:#8f0f14;
  --x-teal:#2aa3a0;
  --x-teal-deep:#1d817f;
  --x-pine:#0f4a2a;
  --x-gold:#e3b54a;
  --x-gold-deep:#b98a26;
  --x-timber:#f3e6cb;
  --x-timber-edge:#e8d2a8;
}

/* ---------- hero: a red ribbon with the sleeps countdown, a pine branch with baubles from the right ---------- */
.xm-ribbon{position:relative;display:inline-block;margin:0 0 1.3rem 14px;filter:drop-shadow(0 8px 14px rgba(60,0,0,.35))}
.xm-ribbon span{position:relative;z-index:1;display:block;padding:.62em 1.5em;color:#fff;font-weight:700;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;
  background:linear-gradient(180deg,#d9282e,var(--x-red) 55%,#b0121a);box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 -2px 0 rgba(0,0,0,.15)}
.xm-ribbon::before,.xm-ribbon::after{content:"";position:absolute;z-index:0;top:7px;bottom:-7px;width:26px;background:var(--x-red-deep)}
.xm-ribbon::before{left:-14px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,10px 50%)}
.xm-ribbon::after{right:-14px;clip-path:polygon(0 0,100% 0,calc(100% - 10px) 50%,100% 100%,0 100%)}

/* baubles sway on their strings; tap one and it swings */
.xm-bauble{transform-box:view-box;animation:xmSway var(--t,3.6s) ease-in-out var(--d,0s) infinite alternate;pointer-events:auto;cursor:pointer}
.xm-bauble.ring{animation:xmRing 1.6s ease-out}
@keyframes xmSway{from{transform:rotate(-3.5deg)}to{transform:rotate(3.5deg)}}
@keyframes xmRing{0%{transform:rotate(0)}15%{transform:rotate(22deg)}35%{transform:rotate(-16deg)}55%{transform:rotate(10deg)}75%{transform:rotate(-5deg)}100%{transform:rotate(0)}}

/* ============================================================
   Christmas at the club: a timber gift wall on a Gold Coast sky and sea, like the club's own
   Santa's Secret Gift Wall poster. Each event sits behind a numbered door; open it to see the poster.
   ============================================================ */
.xm-bay{position:relative;padding:clamp(84px,9vw,124px) 0 clamp(64px,8vw,104px);overflow:hidden;
  background:
    radial-gradient(30% 42% at 86% 6%,rgba(255,248,220,.95),rgba(255,248,220,0) 70%),
    linear-gradient(180deg,#97cfe8 0%,#c7e7f3 26%,#e6f5f8 40%,#8fd3db 41.5%,#46b0c0 58%,#2b97ab 70%,#7fcdd2 79%,#efdfbd 82.5%,#e6cf9f 100%)}
.xm-bay::before{content:"";position:absolute;left:0;right:0;top:41%;height:30%;pointer-events:none;opacity:.5;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.0) 0 14px,rgba(255,255,255,.35) 14px 15px,rgba(255,255,255,0) 15px 34px)}

.xm-wall{position:relative;text-align:center;border-radius:30px;
  padding:clamp(72px,7vw,96px) clamp(18px,2.8vw,40px) clamp(34px,4vw,48px);
  border:clamp(8px,1vw,12px) solid var(--x-timber-edge);
  background:
    repeating-linear-gradient(180deg,rgba(0,0,0,0) 0 62px,rgba(146,104,52,.16) 62px 64px),
    repeating-linear-gradient(93deg,rgba(255,255,255,0) 0 90px,rgba(255,255,255,.22) 90px 92px,rgba(255,255,255,0) 92px 230px),
    linear-gradient(180deg,#fbf4e4,var(--x-timber));
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.7),inset 0 4px 14px rgba(120,80,30,.16),0 0 0 1px rgba(140,100,50,.28),0 34px 70px -34px rgba(8,50,70,.6)}

.xm-garland{position:absolute;z-index:3;left:-26px;right:-26px;top:-34px;height:150px;pointer-events:none;line-height:0}
.xm-garland svg{display:block;overflow:visible;filter:drop-shadow(0 8px 10px rgba(60,40,10,.25))}

.xm-title{display:flex;flex-direction:column;align-items:center;margin:0;line-height:1;letter-spacing:0}
.xm-script{font-family:"Yellowtail",cursive;font-weight:400;font-size:clamp(3.6rem,8.2vw,6.6rem);line-height:.9;color:var(--x-red);rotate:-4deg;padding:0 .12em;
  text-shadow:3px 0 0 #fff,-3px 0 0 #fff,0 3px 0 #fff,0 -3px 0 #fff,2px 2px 0 #fff,-2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,0 8px 14px rgba(90,20,10,.28)}
.xm-caps{font-family:"Fraunces",Georgia,serif;font-weight:800;font-size:clamp(1.5rem,3.4vw,2.6rem);letter-spacing:.07em;text-transform:uppercase;color:var(--x-pine);margin-top:.18em}

.xm-band{position:relative;display:inline-block;margin:1.3rem 0 0;filter:drop-shadow(0 8px 12px rgba(100,10,10,.28))}
.xm-band span{position:relative;z-index:1;display:block;padding:.78em 2.1em;color:#fff;font-weight:700;font-size:clamp(.74rem,1.1vw,.86rem);letter-spacing:.16em;text-transform:uppercase;
  background:linear-gradient(180deg,#d9282e,var(--x-red) 55%,#b0121a);box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 -2px 0 rgba(0,0,0,.15)}
.xm-band::before,.xm-band::after{content:"";position:absolute;z-index:0;top:9px;bottom:-9px;width:34px;background:var(--x-red-deep)}
.xm-band::before{left:-22px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,12px 50%)}
.xm-band::after{right:-22px;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 50%,100% 100%,0 100%)}
.xm-hint{margin:1.3rem 0 0;font-size:.9rem;color:#7a6446}

/* ---------- the doors ---------- */
/* five columns wide; as doors clear after their event (--n set by christmas.js) the rest stay the same size, centred */
.xm-doors{--g:clamp(12px,1.5vw,20px);list-style:none;margin:clamp(1.4rem,2.6vw,2rem) 0 0;padding:0;display:grid;
  grid-template-columns:repeat(var(--n,5),calc((100% - 4 * var(--g)) / 5));justify-content:center;gap:var(--g);text-align:left}
.xm-door{position:relative;aspect-ratio:3/4;border-radius:12px;background:#4a3018;perspective:1700px;
  box-shadow:inset 0 0 0 5px #e4cc9f,inset 0 8px 18px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.8)}
.xm-door.open{z-index:2}
.xm-inside{position:absolute;inset:5px;border-radius:8px;overflow:hidden;background:#0a2d3e}
.xm-inside img{width:100%;height:100%;object-fit:cover;object-position:top}
.xm-inside img.mid{object-position:center}
.xm-inside::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;
  background:radial-gradient(70% 60% at 18% 50%,rgba(255,220,130,.95),rgba(255,220,130,0) 70%)}
.xm-door.open .xm-inside::after{animation:xmLight 1.2s ease-out}
@keyframes xmLight{0%{opacity:.95}100%{opacity:0}}
.xm-more{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 12px;color:#fff;font-size:.8rem;font-weight:700;letter-spacing:.02em;
  background:linear-gradient(180deg,rgba(8,30,40,0),rgba(8,30,40,.88) 55%);opacity:0;transition:opacity .3s .5s}
.xm-door.open .xm-more{opacity:1}
.xm-more:hover{text-decoration:underline}

.xm-leaf{position:absolute;inset:0;margin:0;padding:0;border:0;border-radius:12px;font:inherit;text-align:left;cursor:pointer;
  transform-origin:left center;transform-style:preserve-3d;transition:transform .95s cubic-bezier(.2,.75,.25,1);
  background:linear-gradient(160deg,#dd2a2f,var(--x-red) 45%,#a9121a);color:#fff;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.16),inset 0 -5px 0 rgba(0,0,0,.18),0 10px 20px -10px rgba(60,20,0,.6)}
.xm-leaf::before{content:"";position:absolute;inset:11px;border-radius:7px;pointer-events:none;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.28),inset -2px -2px 0 rgba(0,0,0,.2),2px 2px 0 rgba(255,255,255,.12),-1px -1px 0 rgba(0,0,0,.12)}
.xm-leaf > *{backface-visibility:hidden}
.xm-door.c-teal .xm-leaf{background:linear-gradient(160deg,#3cb8b4,var(--x-teal) 45%,var(--x-teal-deep))}
.xm-door.c-cream .xm-leaf{background:linear-gradient(160deg,#fffaf0,#f6ecd8 45%,#e9dbbd);color:#2a1f14}
.xm-leaf:focus-visible{outline:3px solid var(--x-gold);outline-offset:3px}
.xm-door:not(.open) .xm-leaf:hover{transform:rotateY(-16deg)}
.xm-door.open .xm-leaf{transform:rotateY(-97deg)}
.xm-door.jiggle:not(.open) .xm-leaf{animation:xmJiggle 1s ease-in-out}
@keyframes xmJiggle{0%,100%{transform:none}25%{transform:rotateY(-20deg)}50%{transform:rotateY(-4deg)}72%{transform:rotateY(-11deg)}}

.xm-num{position:absolute;left:15%;top:9%;display:flex;align-items:center;gap:.3em;font-family:"Fraunces",Georgia,serif;font-weight:800;
  font-size:clamp(2rem,3.2vw,2.9rem);line-height:1;color:#f6d27a;text-shadow:0 2px 0 rgba(0,0,0,.28)}
.xm-num::before{content:"";width:.2em;height:.2em;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff3c4,var(--x-gold) 55%,var(--x-gold-deep))}
.xm-door.c-cream .xm-num{color:var(--x-gold-deep);text-shadow:0 1px 0 #fff}
.xm-knob{position:absolute;right:10%;top:36%;width:13px;height:13px;margin-top:-6px;border-radius:50%;
  background:radial-gradient(circle at 35% 32%,#fff6cf,var(--x-gold) 50%,var(--x-gold-deep));box-shadow:0 2px 3px rgba(0,0,0,.35)}
.xm-face{position:absolute;left:13%;right:10%;bottom:11%;display:flex;flex-direction:column;gap:.3rem}
.xm-when{font-size:.64rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.9}
.xm-name{font-family:"Fraunces",Georgia,serif;font-weight:800;font-size:clamp(.98rem,1.22vw,1.14rem);line-height:1.08;min-height:2.16em;display:flex;align-items:flex-end}
.xm-prize{align-self:flex-start;margin-top:.25rem;font-size:.72rem;font-weight:700;padding:.32em .75em;border-radius:100px;background:rgba(255,255,255,.18)}
.xm-door.c-cream .xm-prize{background:rgba(200,22,29,.1);color:var(--x-red-deep)}

.xm-cta{display:flex;justify-content:center;flex-wrap:wrap;gap:.8rem;margin-top:clamp(1.8rem,3vw,2.4rem)}
.btn.xm-green{--bg:var(--x-pine);box-shadow:0 10px 24px -12px rgba(15,74,42,.7)}

/* tablets and phones: the doors become a row you swipe along, so it never breaks into 3 + 2 */
@media(max-width:1100px){
  .xm-doors{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding:6px 4px 16px;margin-left:-4px;margin-right:-4px;
    scrollbar-width:thin;scrollbar-color:rgba(120,80,30,.4) transparent}
  .xm-door{flex:0 0 clamp(190px,27vw,230px);scroll-snap-align:start}
  .xm-door.xm-first{margin-left:auto}
  .xm-door.xm-last{margin-right:auto}
}
@media(max-width:600px){
  .xm-wall{border-radius:22px;padding-top:86px}
  .xm-door{flex-basis:62%}
  .xm-band span{letter-spacing:.12em;padding:.75em 1.4em}
}

/* ---------- membership: a gold bow on the Best value card ---------- */
.christmas .tiers{margin-top:2.6rem}
.christmas .tier.feat{position:relative}
.xm-bow{position:absolute;z-index:3;left:50%;top:0;width:78px;margin-left:-39px;transform:translateY(-74%);line-height:0;transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.xm-bow svg{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 5px 6px rgba(0,0,0,.25))}
.tier.feat:hover .xm-bow{transform:translateY(-78%) rotate(-6deg) scale(1.06)}

@media(prefers-reduced-motion:reduce){
  .xm-bauble,.xm-bauble.ring{animation:none}
  .xm-leaf{transition:none}
  .xm-door.jiggle:not(.open) .xm-leaf,.xm-door.open .xm-inside::after{animation:none}
  .xm-door:not(.open) .xm-leaf:hover{transform:none}
  .xm-more{transition:none}
}

/* ============================================================
   Round 3 (Dan: "the hero a bit more christmassy" + "more subtle christmas elements throughout the whole page").
   ============================================================ */

/* ---------- hero: warm Christmas-light glow over the video, a holly swag across the top, holly in the corner ---------- */
.christmas .hero .scrim::after{background:radial-gradient(120% 80% at 15% 90%,rgba(176,18,10,.3),transparent 60%),radial-gradient(55% 50% at 86% 22%,rgba(255,186,90,.2),transparent 70%)}
.xm-glow{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.xm-glow i{position:absolute;border-radius:50%;opacity:.3;filter:blur(1.5px);
  background:radial-gradient(circle,rgba(var(--c),.9) 0,rgba(var(--c),.35) 42%,rgba(var(--c),0) 70%);
  animation:xmBokeh var(--t,4s) ease-in-out var(--d,0s) infinite alternate}
@keyframes xmBokeh{from{opacity:.14;transform:scale(.88)}to{opacity:.55;transform:scale(1.06)}}
.christmas .week > .wrap{position:relative;z-index:2}
.christmas .week .xm-glow i{opacity:.22}

.xm-hgarland{position:absolute;z-index:3;left:-22px;right:-22px;top:110px;height:200px;pointer-events:none;line-height:0}
.xm-hgarland svg{display:block;overflow:visible;filter:drop-shadow(0 10px 14px rgba(0,0,0,.4))}
@media(max-width:600px){.xm-hgarland{top:98px}}

.xm-corner{position:absolute;z-index:1;right:-18px;bottom:-14px;width:clamp(230px,23vw,340px);pointer-events:none;line-height:0}
.xm-corner svg{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 12px 18px rgba(0,0,0,.45))}
@media(max-width:899px){.xm-corner{display:none}}

/* ---------- small touches down the page ---------- */
/* a holly sprig takes the place of the little gold line beside every section label */
body.christmas{--x-holly:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 24'%3E%3Cpath d='M20 14C15 10 11 12 7 9 8 12 5 14 2 14 5 15 6 18 5 20 9 18 12 21 15 19 15 16 18 15 20 14Z' fill='%232f8a4c'/%3E%3Cpath d='M24 14C29 10 33 12 37 9 36 12 39 14 42 14 39 15 38 18 39 20 35 18 32 21 29 19 29 16 26 15 24 14Z' fill='%23267a43'/%3E%3Ccircle cx='19' cy='13' r='3.6' fill='%23d3141c'/%3E%3Ccircle cx='25' cy='13' r='3.6' fill='%23c0101a'/%3E%3Ccircle cx='22' cy='8.5' r='3.6' fill='%23e0262c'/%3E%3C/svg%3E")}
body.christmas .eyebrow::before,body.christmas .eyebrow.center::after,body.christmas .specials-head .eyebrow::after{
  width:28px;height:16px;background:var(--x-holly) center/contain no-repeat !important}
/* the dots in the top bar and between the scrolling items become holly too */
.christmas .topbar .dot{display:inline-block;width:18px;height:11px;font-size:0;background:var(--x-holly) center/contain no-repeat}
.christmas .strip .track span::after{content:"";width:22px;height:13px;background:var(--x-holly) center/contain no-repeat}

/* holly sprigs on the corners of the welcome, bar and functions photos */
.xm-sprig{position:absolute;z-index:3;top:-30px;width:clamp(140px,14vw,200px);pointer-events:none;line-height:0}
.xm-sprig svg{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 8px 10px rgba(0,0,0,.3))}
.xm-sprig.r{right:-24px}
.xm-sprig.l{left:-24px}
.xm-host{position:relative}
.split .media .xm-sprig{top:-8px;left:-10px}
@media(max-width:600px){.xm-sprig{width:130px;top:-22px}.xm-sprig.r{right:-12px}.xm-sprig.l{left:-12px}}

/* the "Christmas parties" tag in Functions */
.christmas .chips .chip.xm-chip{display:inline-flex;align-items:center;gap:.45em;background:var(--x-red);border-color:var(--x-red);color:#fff;font-weight:600}
.christmas .chips .chip.xm-chip::before{content:"";width:20px;height:12px;background:var(--x-holly) center/contain no-repeat;filter:brightness(1.5) saturate(.7)}

/* the courtesy bus band gets a gift-wrap finish: a faint gold dot and gold ribbon edges */
.christmas .bus{background:radial-gradient(rgba(255,225,150,.14) 1.4px,transparent 1.6px) 0 0/24px 24px,linear-gradient(135deg,var(--red),var(--red-deep));
  box-shadow:inset 0 5px 0 var(--x-gold),inset 0 -5px 0 var(--x-gold)}

/* a light holly swag along the top of the footer */
.christmas footer{position:relative}
.xm-ftrim{position:absolute;z-index:2;left:0;right:0;top:-22px;height:110px;pointer-events:none;line-height:0}
.xm-ftrim svg{display:block;overflow:visible;filter:drop-shadow(0 8px 10px rgba(0,0,0,.35))}

@media(prefers-reduced-motion:reduce){
  .xm-glow i{animation:none}
}

.christmas .week{position:relative}
@media(max-width:680px){.christmas .topbar .dot.tb-hide{display:none}}

/* ============================================================
   Round 5 (Dan + the Christmas website guide he sent): a greeting at the top, holly-berry bullets,
   a soft glow on button hover, a festive footer line, and a way to pause the moving decorations.
   ============================================================ */
.christmas .topbar .xm-greet b{color:#ffd9a0}
.christmas .benefits li svg{stroke:transparent !important;background:var(--x-holly) center/contain no-repeat}
.christmas .btn:hover{box-shadow:0 0 0 4px rgba(227,181,74,.32),0 14px 28px -14px rgba(0,0,0,.45)}
.xm-foot-greet{margin-top:.9rem;font-family:"Fraunces",Georgia,serif;font-style:italic;font-size:1rem;color:#f2d38a !important}
.xm-pause{background:none;border:0;padding:0;font:inherit;font-size:.82rem;color:rgba(255,255,255,.6);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.xm-pause:hover{color:#fff}
.xm-still .xm-bauble,.xm-still .xm-glow i,.xm-still .xm-door .xm-leaf{animation:none !important}
@media(max-width:1100px){.christmas .topbar .xm-greet{display:none}}

/* ============================================================
   Site-wide (30 Nov): the inner pages' hero gets the lighter pine swag, the glows and the holly corner
   (christmas.js adds them); the hero is a little taller so the baubles hang clear of the breadcrumb.
   ============================================================ */
.christmas .page-hero{padding-top:calc(38px + 74px + clamp(104px,11vw,132px))}
.christmas .page-hero .xm-hgarland{height:170px}
.christmas .page-hero .xm-corner{width:clamp(200px,19vw,280px);right:-12px;bottom:-6px}
