/* JMP Christmas layer v2 (mock-up). Everything is scoped to body.xmas, so removing the class (or the <link>) switches it off. */
body.xmas{--xm-pink:#EC008C;--xm-wash:#fff5fa}

/* 1. Fairy-light and bauble garland along the top of the header */
body.xmas .xm-garland{position:absolute;left:0;right:0;top:0;height:38px;z-index:3;pointer-events:none;background:url(/assets/xmas/garland.svg) repeat-x 0 0/320px 38px;filter:drop-shadow(0 4px 6px rgba(191,0,114,.18))}
body.xmas .xm-garland::before,body.xmas .xm-garland::after{content:"";position:absolute;inset:0;background:repeat-x 0 0/320px 38px;opacity:0;animation:xmTwinkle 3.2s ease-in-out infinite}
body.xmas .xm-garland::before{background-image:url(/assets/xmas/glow-a.svg)}
body.xmas .xm-garland::after{background-image:url(/assets/xmas/glow-b.svg);animation-delay:1.6s}
@keyframes xmTwinkle{0%,100%{opacity:.15}50%{opacity:1}}
@media(max-width:700px){body.xmas .xm-garland,body.xmas .xm-garland::before,body.xmas .xm-garland::after{height:29px;background-size:240px 29px}}

/* 2. Santa hat on the header logo (brand pink).
   The hat is an <img> inside .logo, so it was also matched by
   header.site.stuck .logo img { height: 74px/64px } (specificity 0,3,2),
   which beat body.xmas .logo .xm-hat { height: auto } (0,3,1). On scroll the
   hat was stretched to the full logo height and looked like it had fallen off.
   These selectors beat the shrink rule, and the hat lives in .xm-logo-box so it
   is positioned and scaled against the logo image itself. */
body.xmas .logo{position:relative;margin-top:10px}
body.xmas .logo .xm-logo-box{position:relative;display:block;width:max-content;line-height:0}
body.xmas header.site .logo img.xm-hat,
body.xmas header.site.stuck .logo img.xm-hat,
body.xmas header.site .logo .xm-logo-box img.xm-hat,
body.xmas header.site.stuck .logo .xm-logo-box img.xm-hat{
  position:absolute;left:41%;top:-12%;width:26%;height:auto;max-height:none;
  transform:rotate(14deg);transform-origin:50% 90%;pointer-events:none;z-index:2;
  filter:drop-shadow(0 2px 3px rgba(191,0,114,.3));
  transition:none;
}


/* 3. Glow typography: small pink JUST MOVE PROPERTY above bold white
   MERRY CHRISTMAS (Montserrat ExtraBold/Black) with a neon hot-pink glow/outline.
   Replaces the Mountains of Christmas headline. */
body.xmas .xm-greet{margin:.15rem 0 .75rem;max-width:none}
body.xmas .xm-greet-jmp,body.xmas .xm-greet-mc{
  display:block;font-family:Montserrat,Helvetica,sans-serif;text-transform:uppercase;
  text-wrap:nowrap;font-style:normal
}
body.xmas .xm-greet-jmp{
  font-weight:800;font-size:clamp(.72rem,1.55vw,1.05rem);letter-spacing:.16em;
  color:#EC008C;line-height:1.2;margin:0 0 .28em;
  text-shadow:0 0 8px rgba(236,0,140,.45)
}
body.xmas .xm-greet-mc{
  font-weight:900;font-size:clamp(1.62rem,4.6vw,3.15rem);letter-spacing:-.03em;
  line-height:.95;color:#fff;
  -webkit-text-stroke:0.07em #EC008C;
  paint-order:stroke fill;
  text-shadow:
    0 0 4px #EC008C,
    0 0 10px #EC008C,
    0 0 20px rgba(236,0,140,.85),
    0 0 36px rgba(236,0,140,.55),
    0 0 54px rgba(236,0,140,.3);
}
@media(max-width:700px){
  body.xmas .xm-greet-jmp{font-size:clamp(.68rem,3.3vw,.82rem);letter-spacing:.14em}
  body.xmas .xm-greet-mc{font-size:clamp(1.55rem,8vw,2.05rem);letter-spacing:-.04em}
}
body.xmas .hero h1{margin-top:.15rem}

/* 4. Greeting video takes the Bethnal Green station / stairs hero slot.
      The film is 9:16, so the card becomes a portrait frame (not the usual 16:9 crop).
      Width is close to the existing card; height follows 9:16 so the full greeting is visible. */
body.xmas .hero-video-card{position:relative;width:min(100%,340px);justify-self:end;align-self:start;margin:0}
body.xmas .hero-video-card video,
body.xmas .hero-video-card .xm-greet-vid{display:block;width:100%;height:auto;aspect-ratio:9/16;max-height:min(70svh,640px);object-fit:cover;object-position:center center;border-radius:var(--r);background:#1c081a;box-shadow:0 40px 70px -34px rgba(191,0,114,.55)}
body.xmas .xm-sound{position:absolute;left:.7rem;right:auto;bottom:.7rem;z-index:2;display:inline-flex;align-items:center;gap:.35rem;margin:0;border:0;border-radius:999px;padding:.42rem .7rem .42rem .6rem;background:rgba(255,255,255,.94);color:#EC008C;font:800 .72rem/1 Helvetica,Arial,sans-serif;letter-spacing:.02em;cursor:pointer;box-shadow:0 8px 18px -10px rgba(28,8,26,.55);-webkit-tap-highlight-color:transparent}
body.xmas .xm-sound svg{flex:none;display:block}
body.xmas .xm-sound[aria-pressed="true"]{background:#EC008C;color:#fff}
body.xmas .xm-sound:focus-visible{outline:3px solid #1c081a;outline-offset:3px}
@media(max-width:980px){
  /* Width follows 9:16 so we never crop the film; cap height at ~58svh. */
  body.xmas .hero-video-card{display:block;justify-self:start;width:min(100%,280px,calc(58svh * 9 / 16));margin:.35rem auto .2rem}
  body.xmas .hero-video-card video,body.xmas .hero-video-card .xm-greet-vid{max-height:none}
  body.xmas .xm-sound{left:.7rem;bottom:.7rem} /* left side, clear of the WhatsApp FAB */
}
@media(prefers-reduced-motion:reduce){
  body.xmas .xm-garland::before,body.xmas .xm-garland::after{animation:none;opacity:.55}
}

/* 5. Quick-link tiles: holly, snowflake and a snow cap on the pink tile */
body.xmas .quick .q{position:relative;overflow:visible}
body.xmas .quick .q::before{content:"";position:absolute;right:14px;top:10px;width:30px;height:20px;background:url(/assets/xmas/holly.svg) no-repeat center/contain;pointer-events:none}
body.xmas .quick .q::after{content:"";position:absolute;right:48px;top:14px;width:13px;height:13px;background:url(/assets/xmas/snowflake.svg) no-repeat center/contain;opacity:.55;pointer-events:none}
body.xmas .quick .q.mq::before{filter:drop-shadow(0 0 0 #fff)}
body.xmas .quick .q.mq::after{filter:brightness(0) invert(1);opacity:.7}
body.xmas .quick .q.mq{overflow:visible}
@media(max-width:560px){body.xmas .quick .q::before{right:10px;top:8px;width:26px;height:18px}body.xmas .quick .q::after{right:40px;top:11px;width:11px;height:11px}}

/* 6. Snow (canvas is injected by christmas.js; never takes clicks) */
.xm-snow{position:fixed;inset:0;width:100%;height:100%;z-index:85;pointer-events:none}
.xm-snowbtn{border:0;background:none;padding:0;margin:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
@media(prefers-reduced-motion:reduce){.xm-snow,.xm-snowbtn{display:none}}
