/* ==========================================================================
   Wests Ashfield: Christmas mode chrome
   Loaded only while Christmas mode is active (inc/christmas.php).
   Lights + sparkle glints under the header, the hat glint on the magpie,
   the shimmering announcement bar, hero snow layer, marquee snowflakes and
   the staff preview badge. Block styles (Seasonal Feature) live in style.css.
   ========================================================================== */

:root {
	--xmas-red: #C8102E;
	--xmas-pine: #0F3D2E;
	--xmas-pine-2: #17543F;
	--xmas-gold: #E3A93B;
	--xmas-gold-soft: #F6D58E;
	--xmas-flake-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* 1. Announcement bar: pine green, gold link, a slow shimmer ------------- */
.announcement-bar.is-xmas {
	position: relative; overflow: hidden; color: rgba(255,255,255,.94);
	background:
		radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1.6px) 0 0 / 26px 26px,
		linear-gradient(90deg, #0C3527 0%, var(--xmas-pine) 50%, #0C3527 100%);
}
.announcement-bar.is-xmas::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(100deg, transparent 38%, rgba(246,213,142,.22) 50%, transparent 62%);
	transform: translateX(-100%); animation: xmas-bar-shimmer 9s ease-in-out infinite 1.5s;
}
@keyframes xmas-bar-shimmer { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.announcement-bar.is-xmas .announcement-bar__text { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: .55em; flex-wrap: wrap; }
.announcement-bar.is-xmas .announcement-bar__link { color: var(--xmas-gold-soft); margin-left: 0; }
.announcement-bar.is-xmas .announcement-bar__link:hover { color: #fff; }
.announcement-bar.is-xmas .xmas-flake-icon { width: 1em; height: 1em; flex: 0 0 auto; color: var(--xmas-gold-soft); animation: xmas-flake-spin 12s linear infinite; }
@keyframes xmas-flake-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
	.announcement-bar.is-xmas .announcement-bar__text { display: block; }
	.announcement-bar.is-xmas .announcement-bar__text .xmas-flake-icon { display: none; }
	.announcement-bar.is-xmas .announcement-bar__link { margin-left: .3em; }
}

/* 2. String lights under the header -------------------------------------- */
/* The lights hang from the bottom of the masthead but sit in the page flow
   (a zero-height rail straight after the header, built by christmas.js), so
   on scroll they slide up behind the sticky nav with the content. Nothing
   switches on or off at a scroll point, so there is nothing to flicker. */
.xmas-lights-rail { position: relative; z-index: 70; height: 0; pointer-events: none; }
.xmas-lights {
	--wire: 64px;
	/* Tall enough for the bulbs' glow (the wire is only the top 30px) and clipped on
	   every side, so the last bulb can never widen the page. Older iPhones (iOS 15)
	   ignore overflow: clip, which let the page wobble sideways. */
	position: absolute; left: 0; right: 0; top: -8px; height: 72px;
	pointer-events: none; overflow: hidden;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='30'%3E%3Cpath d='M0 3 Q32 19 64 3' fill='none' stroke='%233d5a49' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M0 2.2 Q32 18.2 64 2.2' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='.8'/%3E%3C/svg%3E") repeat-x 0 0 / var(--wire) 30px;
}
.xmas-bulb {
	position: absolute; top: 10px; width: 12px; height: 18px; margin-left: -6px;
	transform: rotate(var(--r, 0deg)); transform-origin: 50% -3px;
	border-radius: 50% 50% 46% 46% / 38% 38% 62% 62%;
	background: radial-gradient(ellipse at 34% 26%, rgba(255,255,255,.95) 0 9%, var(--c) 34%, var(--cd) 100%);
	box-shadow: 0 0 9px 2px var(--g), 0 0 2px 0 rgba(255,255,255,.6), inset 0 -2px 3px rgba(0,0,0,.18);
}
.xmas-bulb::before { /* socket cap */
	content: ""; position: absolute; left: 3px; top: -5px; width: 6px; height: 6px; border-radius: 1.5px 1.5px 1px 1px;
	background: linear-gradient(90deg, #0d1712, #355241 50%, #0d1712);
}
/* Twinkle: the bulb's hot white core and its coloured halo on one layer that
   breathes in and out. One opacity + transform animation per bulb, so phones run
   it on the graphics chip. (It was a brightness filter plus a second halo
   animation, which kept the main thread busy and made scrolling stutter.) */
.xmas-bulb i {
	position: absolute; left: 50%; top: 55%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
	background:
		radial-gradient(ellipse 5px 7px at 50% 44%, rgba(255,255,255,.95), rgba(255,255,255,0)),
		radial-gradient(circle, var(--g) 0%, transparent 68%);
	opacity: .55; transform: scale(.85);
	animation: xmas-glow var(--tw, 2.6s) ease-in-out infinite alternate; animation-delay: var(--d, 0s);
}
@keyframes xmas-glow { from { opacity: .3; transform: scale(.75); } to { opacity: 1; transform: scale(1.18); } }
.xmas-bulb.is-flare i { animation: xmas-flare .9s ease-out; }
@keyframes xmas-flare { 0% { opacity: .6; transform: scale(1); } 25% { opacity: 1; transform: scale(1.9); } 100% { opacity: .6; transform: scale(1); } }

/* sparkle glints that pop beside the bulbs */
.xmas-glint {
	position: absolute; width: var(--s, 16px); height: var(--s, 16px); margin: calc(var(--s, 16px) / -2) 0 0 calc(var(--s, 16px) / -2);
	background: radial-gradient(circle, #fff 0 22%, #FFF2C8 40%, var(--xmas-gold-soft) 70%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0 11.4 8.6 20 10 11.4 11.4 10 20 8.6 11.4 0 10 8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0 11.4 8.6 20 10 11.4 11.4 10 20 8.6 11.4 0 10 8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 0 4px rgba(255,236,180,.9));
	animation: xmas-glint 1.1s ease-out forwards;
}
@keyframes xmas-glint {
	0% { opacity: 0; transform: scale(.1) rotate(0deg); }
	35% { opacity: 1; transform: scale(1) rotate(45deg); }
	100% { opacity: 0; transform: scale(.2) rotate(110deg); }
}
@media (max-width: 1023px) { .xmas-lights { --wire: 52px; } .xmas-bulb i { width: 36px; height: 36px; margin: -18px 0 0 -18px; } .xmas-bulb { width: 9px; height: 14px; margin-left: -4.5px; } .xmas-bulb::before { left: 2px; width: 5px; height: 5px; top: -4px; } }

/* 3. The magpie's Santa hat: a glint on the pom-pom every few seconds ---- */
.wa-logo__glint { opacity: 0; transform-box: fill-box; transform-origin: center; animation: xmas-hat-glint 5.5s ease-in-out infinite 2s; }
@keyframes xmas-hat-glint {
	0%, 78%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
	86% { opacity: 1; transform: scale(1.25) rotate(45deg); }
	94% { opacity: 0; transform: scale(.3) rotate(90deg); }
}

/* 4. Hero: snow canvas sits over the photo, under the words -------------- */
.xmas-snow { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* Other pages: the same snow over the top banner's photo and shading, under its words */
.has-xmas-snow { isolation: isolate; }
.xmas-snow--banner { z-index: 0; }
/* ...and a slowly turning snowflake after the banner label, like the home hero */
.page-hero__eyebrow:not(:empty)::after,
.events-archive__eyebrow::after {
	content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-left: .45em; vertical-align: -.2em;
	background: var(--xmas-gold-soft);
	-webkit-mask: var(--xmas-flake-mask) center / contain no-repeat;
	        mask: var(--xmas-flake-mask) center / contain no-repeat;
	animation: xmas-flake-spin 14s linear infinite;
}
.events-archive__eyebrow::after { background: currentColor; }
.hero-block__slide--christmas .hero-block__media::after {
	background:
		linear-gradient(90deg, rgba(8,8,8,.74) 0%, rgba(8,8,8,.5) 38%, rgba(8,8,8,.12) 72%, rgba(8,8,8,.05) 100%),
		linear-gradient(180deg, rgba(8,8,8,.18) 0%, rgba(8,8,8,.5) 100%);
}
.hero-block__slide--christmas .hero-block__eyebrow::after {
	content: ""; width: 1.05em; height: 1.05em; background: var(--hbg-cta); margin-left: .1em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	animation: xmas-flake-spin 14s linear infinite;
}
@media (max-width: 781px) {
	/* phones show the bright red LED wall behind the words, so darken evenly */
	.hero-block__slide--christmas .hero-block__media::after { background: linear-gradient(180deg, rgba(8,8,8,.6) 0%, rgba(8,8,8,.62) 45%, rgba(8,8,8,.8) 100%); }
}

/* 5. Marquee: snowflakes between the messages ---------------------------- */
.hero-block__marquee-item::after {
	width: .9em; height: .9em; border-radius: 0; background: var(--hbg-cta);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.5 12 6l2.5-2.5M9.5 20.5 12 18l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* 6. What's On: baubles, star dust, gold flourish, festive ribbons ------- */
/* Home What's On section and the What's On page banner share the treatment. */
.whats-on.bg-dark, .events-archive__hero { position: relative; isolation: isolate; }
.events-archive__hero { overflow: hidden; }
.whats-on.bg-dark > .container, .events-archive__hero > .container { position: relative; z-index: 2; }
.whats-on.bg-dark::before, .whats-on.bg-dark::after,
.events-archive__hero::before, .events-archive__hero::after { /* twinkling star dust, two layers out of phase */
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(246,213,142,.9) 0 1px, transparent 1.6px),
		radial-gradient(circle, rgba(255,255,255,.75) 0 .8px, transparent 1.3px);
	background-size: 190px 170px, 130px 150px;
	background-position: 20px 30px, 85px 10px;
	opacity: .35; animation: xmas-dust 4.6s ease-in-out infinite alternate;
}
.whats-on.bg-dark::after, .events-archive__hero::after { background-size: 230px 210px, 160px 140px; background-position: 120px 90px, 40px 70px; animation-duration: 6.2s; animation-delay: -2.4s; }
@keyframes xmas-dust { from { opacity: .12; } to { opacity: .6; } }

.whats-on__heading::after, .events-archive__title::after { /* gold line, snowflake, gold line */
	content: ""; display: block; width: 230px; max-width: 70%; height: 18px; margin: .9rem auto 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 18'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23E3A93B' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23E3A93B'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23E3A93B' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23E3A93B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='8.4' width='97' height='1.2' fill='url(%23a)'/%3E%3Crect x='133' y='8.4' width='97' height='1.2' fill='url(%23b)'/%3E%3Cg transform='translate(115 9)' stroke='%23E3A93B' stroke-width='1.7' stroke-linecap='round' fill='none'%3E%3Cpath d='M0-8V8M-6.9-4 6.9 4M-6.9 4 6.9-4M-2.4-6.2 0-4 2.4-6.2M-2.4 6.2 0 4 2.4 6.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* hanging baubles (built by christmas.js) */
.xmas-baubles { position: absolute; inset: 0 0 auto 0; height: 340px; z-index: 1; pointer-events: none; overflow: hidden; }
.xmas-bauble {
	--len: var(--len-l);
	position: absolute; top: 0; left: var(--x); width: 0; height: calc(var(--len) + var(--size));
	transform-origin: 50% 0; animation: xmas-swing var(--sw, 5s) ease-in-out infinite; animation-delay: var(--d, 0s);
}
.xmas-bauble::before { /* thread */
	content: ""; position: absolute; left: -.5px; top: 0; width: 1px; height: var(--len);
	background: linear-gradient(180deg, rgba(227,169,59,.15), rgba(227,169,59,.85));
}
.xmas-bauble i {
	position: absolute; top: var(--len); left: calc(var(--size) / -2); width: var(--size); height: var(--size); border-radius: 50%;
	background:
		var(--band, none),
		radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 5%, var(--c1) 26%, var(--c2) 72%, var(--c3) 100%);
	box-shadow: inset -3px -5px 10px rgba(0,0,0,.35), 0 0 22px var(--glow);
}
.xmas-bauble i::before { /* cap */
	content: ""; position: absolute; top: -6px; left: 50%; width: 32%; height: 7px; transform: translateX(-50%);
	border-radius: 2px 2px 1px 1px; background: linear-gradient(90deg, #8a6a1f, #f3d58a 50%, #8a6a1f);
}
.xmas-bauble i::after { /* the odd sparkle off the glossy highlight */
	content: ""; position: absolute; left: 14%; top: 8%; width: 46%; height: 46%; opacity: 0;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0 11.4 8.6 20 10 11.4 11.4 10 20 8.6 11.4 0 10 8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0 11.4 8.6 20 10 11.4 11.4 10 20 8.6 11.4 0 10 8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 0 3px rgba(255,240,200,.9));
	animation: xmas-hat-glint var(--gl, 6s) ease-in-out infinite; animation-delay: var(--gd, 1s);
}
@keyframes xmas-swing { 0%, 100% { transform: rotate(var(--a, 3deg)); } 50% { transform: rotate(calc(var(--a, 3deg) * -1)); } }
@media (max-width: 1359px) { .xmas-bauble { --len: var(--len-m); } }
@media (max-width: 600px) {
	.xmas-bauble { --len: var(--len-s); left: var(--x-s, var(--x)); }
	.xmas-bauble i { transform: scale(.62); transform-origin: 50% 0; }
	.xmas-bauble.is-wide { display: none; }
}

/* festive events in the What's On cards */
.whats-on__card.is-festive { box-shadow: 0 0 0 1px rgba(227,169,59,.55), 0 10px 30px rgba(227,169,59,.14); }
.whats-on.bg-dark .whats-on__card.is-festive:hover { box-shadow: 0 0 0 1px rgba(227,169,59,.85), 0 16px 40px rgba(227,169,59,.22); }
/* ...and in the white event cards on the What's On page and "More What's On" */
.event-card.is-festive { box-shadow: 0 0 0 2px rgba(227,169,59,.7), 0 10px 28px rgba(227,169,59,.18); }
.event-card.is-festive:hover { box-shadow: 0 0 0 2px rgba(227,169,59,.95), 0 16px 36px rgba(227,169,59,.26); }
.event-card.is-festive .xmas-ribbon { box-shadow: 0 2px 6px rgba(120,80,10,.25), inset 0 1px 0 rgba(255,255,255,.55); }
.xmas-ribbon {
	position: relative; display: inline-flex; align-items: center; gap: .35em; margin: 0 0 .6rem;
	padding: .3rem .7rem .3rem .55rem; border-radius: 999px;
	background: linear-gradient(135deg, #FBE3A6 0%, var(--xmas-gold) 55%, #B9801F 100%); color: #3B2A05;
	font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
	box-shadow: 0 3px 10px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.55);
	overflow: hidden;
}
.xmas-ribbon svg { width: 1.05em; height: 1.05em; }
.xmas-ribbon::after { /* shine sweep */
	content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%);
	transform: translateX(-120%); animation: xmas-ribbon-shine 5s ease-in-out infinite 1.2s;
}
@keyframes xmas-ribbon-shine { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* 7. Staff preview badge ------------------------------------------------- */
.xmas-preview-badge {
	position: fixed; left: 16px; bottom: 16px; z-index: 9999; display: flex; align-items: center; gap: .5em;
	padding: .5rem .85rem; border-radius: 999px; background: rgba(15,61,46,.94); color: #fff;
	font-size: .78rem; line-height: 1.2; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none;
}
.xmas-preview-badge strong { font-weight: 700; color: var(--xmas-gold-soft); }
.xmas-preview-badge span { opacity: .82; }
.xmas-preview-badge__icon { width: 1.1em; height: 1.1em; color: var(--xmas-gold-soft); }
@media (max-width: 600px) { .xmas-preview-badge span { display: none; } }
/* Out of the way while the phone menu is open (it covered the last links). */
body:has(.site-nav.is-open) .xmas-preview-badge { display: none; }

/* Motion: calm, still version for people who ask for less ---------------- */
/* Decorations pause while they're out of sight (christmas.js adds .xmas-paused),
   so a scroll only pays for the animations you can actually see. */
.xmas-paused, .xmas-paused::before, .xmas-paused::after,
.xmas-paused *, .xmas-paused *::before, .xmas-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
	.announcement-bar.is-xmas::after, .announcement-bar.is-xmas .xmas-flake-icon,
	.xmas-bulb i, .wa-logo__glint, .hero-block__slide--christmas .hero-block__eyebrow::after,
	.whats-on.bg-dark::before, .whats-on.bg-dark::after, .xmas-bauble, .xmas-bauble i::after, .xmas-ribbon::after,
	.events-archive__hero::before, .events-archive__hero::after,
	.page-hero__eyebrow::after, .events-archive__eyebrow::after { animation: none; }
	.xmas-bulb i { opacity: .7; transform: none; }
	.whats-on.bg-dark::before, .whats-on.bg-dark::after,
	.events-archive__hero::before, .events-archive__hero::after { opacity: .35; }
}
