/* 4.75 — xmas.css
   Removable Australian summer Christmas theme for Net2000.
   Every rule is under html.is-xmas, so dropping this file (and the xmas-*.svg
   assets) or removing the is-xmas class restores the plain site with no leftover
   decoration. xmas.js adds that class from 25 Nov 00:00 through 26 Dec 23:59:59
   Australia/Sydney, every year (XMAS_WINDOW in xmas.js), and /status/?xmas=state
   (Perl, same window) confirms it server-side.
   Linked only from the home page and /email/. No decoration on forms, password,
   setup, account, billing or status pages, and none inside the Delivery Status
   map or the Australia map art.

   Palette stays Net2000 navy, gold and logo red. Art is fine gold line work:
   eucalyptus and gum leaves, a few red berries, gold stars, a thin ribbon.
   Animations are off under prefers-reduced-motion; the art and greeting stay.
*/
html.is-xmas{
  --xmas-gold:#E0A526;
  --xmas-gold-lt:#F6D47A;
  --xmas-gold-dk:#8A6A14;
  --xmas-cream:#FFF8EA;
}
html.is-xmas header.top{
  position:sticky;
  border-bottom:0;
  box-shadow:0 1px 0 rgba(200,160,40,.22);
  padding-bottom:28px;
}
html.is-xmas header.top::before{
  content:"";
  position:absolute;
  left:0;right:0;
  bottom:16px;
  height:16px;
  background:url("xmas-garland.svg") repeat-x center / auto 16px;
  pointer-events:none;
  z-index:1;
}
html.is-xmas header.top::after{
  content:"Season's greetings from Net2000";
  position:absolute;
  left:0;right:0;
  bottom:0;
  height:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.68rem;
  font-weight:650;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--xmas-gold-dk);
  background:linear-gradient(180deg,rgba(255,248,234,0),#fff8ea 30%,#fff8ea);
  pointer-events:none;
  z-index:1;
  white-space:nowrap;
}
@media (max-width:520px){
  html.is-xmas header.top{padding-bottom:24px}
  html.is-xmas header.top::before{bottom:14px;height:13px;background-size:auto 13px}
  html.is-xmas header.top::after{
    height:14px;
    font-size:.6rem;
    letter-spacing:.06em;
  }
}


/* Home-only richer header banner (email and other pages keep the slimmer garland). */
html.is-xmas:has(#top-hero) header.top{
  padding-bottom:42px;
  box-shadow:0 10px 28px rgba(0,0,51,.08), 0 1px 0 rgba(200,160,40,.35);
}
html.is-xmas:has(#top-hero) header.top::before{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:42px;
  background:
    url("xmas-garland-rich.svg") repeat-x center 46% / auto 40px,
    linear-gradient(180deg, #fffef8 0%, #f8ecc8 58%, #e8d08a 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75), 0 8px 22px rgba(184,134,11,.16);
  pointer-events:none;
  z-index:1;
}
html.is-xmas:has(#top-hero) header.top::after{
  content:"Season's greetings from Net2000";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  height:42px;
  width:max-content;
  max-width:94%;
  padding:0 2.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#6e520e;
  text-shadow:0 0 8px rgba(246,212,122,.55), 0 0 16px rgba(224,165,38,.28), 0 1px 0 #fff;
  background:
    url("xmas-star.svg") left .45rem center / 14px 14px no-repeat,
    url("xmas-star.svg") right .45rem center / 14px 14px no-repeat,
    radial-gradient(ellipse at center, rgba(255,250,230,.96) 0 44%, rgba(255,248,224,0) 74%);
  pointer-events:none;
  z-index:2;
  white-space:nowrap;
  animation:xmas-greet-glow 5.5s ease-in-out infinite;
}
@keyframes xmas-greet-glow{
  0%,100%{text-shadow:0 0 6px rgba(246,212,122,.4), 0 0 14px rgba(224,165,38,.18), 0 1px 0 #fff}
  50%{text-shadow:0 0 12px rgba(246,212,122,.95), 0 0 24px rgba(224,165,38,.42), 0 1px 0 #fff}
}
@media (max-width:520px){
  html.is-xmas:has(#top-hero) header.top{padding-bottom:36px}
  html.is-xmas:has(#top-hero) header.top::before{height:36px;background-size:auto 34px, auto}
  html.is-xmas:has(#top-hero) header.top::after{
    height:36px;
    font-size:.6rem;
    letter-spacing:.05em;
    padding:0 1.85rem;
    background-size:11px 11px, 11px 11px, auto;
    background-position:left .3rem center, right .3rem center, center;
  }
}


/* Home and email heroes: gold sparkle drift + gum-leaf sprigs */
html.is-xmas .email-hero{
  position:relative;
}
html.is-xmas .hero::before{
  content:"";
  position:absolute;
  left:0;top:8px;
  width:min(220px,42vw);
  height:min(250px,70%);
  background:url("xmas-sprig.svg") no-repeat left bottom / contain;
  opacity:.72;
  pointer-events:none;
  z-index:0;
}
html.is-xmas .email-hero .hero-text,
html.is-xmas .email-hero .hero-card,
html.is-xmas .email-hero .hero-more{
  position:relative;
  z-index:1;
}
html.is-xmas .hero::after,
html.is-xmas .email-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    url("xmas-sparkles.svg") 0 0 / 520px 312px repeat,
    url("xmas-sparkles.svg") 160px 80px / 420px 252px repeat;
  opacity:.55;
  pointer-events:none;
  z-index:0;
  animation:xmas-drift 42s linear infinite;
  -webkit-mask-image:linear-gradient(180deg,#000 0 85%,transparent);
  mask-image:linear-gradient(180deg,#000 0 85%,transparent);
}
html.is-xmas .email-hero .wrap > .sx{
  position:relative;
  z-index:1;
}
@keyframes xmas-drift{
  from{background-position:0 0, 160px 80px}
  to{background-position:0 -312px, 160px -172px}
}
/* A smaller sprig on the right of the home hero, behind the card at desktop. */
html.is-xmas .hero .wrap::after{
  content:"";
  position:absolute;
  right:8px;top:16px;
  width:120px;height:130px;
  background:url("xmas-sprig-right.svg") no-repeat right top / contain;
  opacity:.65;
  pointer-events:none;
  z-index:0;
}
html.is-xmas .email-hero .wrap{position:relative}
@media (max-width:859px){
  html.is-xmas .hero::before{
    width:min(140px,46vw);
    height:160px;
    top:auto;bottom:0;
    opacity:.45;
  }
  /* Do not let the right sprig sit over the address form on a phone. */
  html.is-xmas .hero .wrap::after{display:none}
}

/* The home page address-check block (.hero.hero-lite) holds a form: keep it plain.
   Only the /email/ hero (.hero.email-hero) takes the sprig and sparkle layers above. */
html.is-xmas .hero:not(.email-hero)::before,
html.is-xmas .hero:not(.email-hero)::after,
html.is-xmas .hero:not(.email-hero) .wrap::after{
  content:none;
  display:none;
}

/* /email/ hero: sparkles already on .email-hero::after; no large sprigs.
   A small Santa hat sits on the arriving envelope in the Australia art.
   The map paths themselves are not edited. */
html.is-xmas .email-hero .hero-art{position:relative;z-index:1}
html.is-xmas .email-hero .hero-art::before{
  content:"";
  position:absolute;
  left:60.5%;
  top:49%;
  width:18%;
  height:18%;
  background:url("xmas-hat.svg") no-repeat center / contain;
  transform:rotate(-16deg);
  pointer-events:none;
  z-index:3;
  filter:drop-shadow(0 1px 1px rgba(0,0,51,.3));
}
html.is-xmas .email-hero::before{
  /* a very small gold sprig in the far left of the email hero, well clear of type */
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:72px;height:80px;
  background:url("xmas-sprig.svg") no-repeat left bottom / contain;
  opacity:.4;
  pointer-events:none;
  z-index:0;
}
@media (max-width:700px){
  html.is-xmas .email-hero::before{width:52px;height:58px;opacity:.32}
  html.is-xmas .email-hero .hero-art::before{width:20%;height:20%;left:59%;top:48%}
}

/* Small Santa hat on the Blinky robot (corner helper), if the FAB is present. */
html.is-xmas .aih-bot-fab{
  position:relative;
}
html.is-xmas .aih-bot-fab::after{
  content:"";
  position:absolute;
  left:54%;
  top:-7px;
  width:22px;
  height:20px;
  background:url("xmas-hat.svg") no-repeat center / contain;
  transform:translateX(-30%) rotate(16deg);
  pointer-events:none;
  z-index:2;
  filter:drop-shadow(0 1px 1px rgba(0,0,51,.25));
}


/* The real homepage hero is #top-hero.journey (not the later .hero address-check
   block). That section already uses ::before / ::after, so decoration lives in
   a dedicated .xmas-fx layer that is easy to remove with the class. */
.xmas-fx{display:none}
html.is-xmas .journey .xmas-fx{
  display:block;
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
  background:
    radial-gradient(920px 240px at 50% -12%, rgba(246,212,122,.3), transparent 64%),
    url("xmas-sparkles.svg") 0 0 / 480px 288px repeat,
    url("xmas-sparkles.svg") 140px 50px / 400px 240px repeat;
  opacity:.7;
  animation:xmas-drift 42s linear infinite;
}
html.is-xmas .journey .xmas-fx::before{
  content:"";
  position:absolute;
  left:-8px;top:150px;
  width:min(200px,34vw);
  height:min(240px,55%);
  background:url("xmas-sprig.svg") no-repeat left top / contain;
  opacity:.64;
  filter:drop-shadow(0 0 10px rgba(246,212,122,.25));
}
html.is-xmas .journey .xmas-fx::after{
  content:"";
  position:absolute;
  right:6px;top:2px;
  width:min(110px,22vw);
  height:78px;
  background:url("xmas-hero-accents.svg") no-repeat right top / contain;
  opacity:.9;
  filter:drop-shadow(0 0 8px rgba(246,212,122,.35));
}
html.is-xmas .journey .wrap{position:relative;z-index:1}
@media (max-width:899px){
  html.is-xmas .journey .xmas-fx{opacity:.6}
  html.is-xmas .journey .xmas-fx::before{left:-20px;top:200px;width:min(150px,48vw);height:190px;opacity:.5}
  /* Keep the top-right bauble cluster off the stacked headline on a phone. */
  html.is-xmas .journey .xmas-fx::after{display:none}
}


/* Tiny Santa hat on the logo (globe only, text stays clear). The wrapper span makes no box
   at all outside the season, so the logo lays out exactly as before. */
.xmas-logo-wrap{display:contents}
html.is-xmas .xmas-logo-wrap{
  position:relative;
  display:block;
  line-height:0;
  flex:none;
}
html.is-xmas .xmas-logo-wrap::after{
  content:"";
  position:absolute;
  left:58%;
  top:-8px;
  width:22px;
  height:20px;
  background:url("xmas-hat.svg") no-repeat center / contain;
  transform:rotate(16deg);
  pointer-events:none;
  z-index:3;
  filter:drop-shadow(0 1px 1px rgba(0,0,51,.28));
}
@media (max-width:520px){
  html.is-xmas .xmas-logo-wrap::after{width:16px;height:15px;top:-6px;left:56%}
}
@media (max-width:359px){
  html.is-xmas .xmas-logo-wrap::after{width:14px;height:13px;top:-5px;left:54%}
}

/* Festive line-art icons tagged at the top-right of each home menu pill — never covering the label. */
html.is-xmas:has(#top-hero) header.top,
html.is-xmas:has(#top-hero) .qnav{
  overflow:visible;
}
html.is-xmas:has(#top-hero) .top .qnav-in{
  padding-top:24px;
}
html.is-xmas:has(#top-hero) .qnav .pill{
  position:relative;
}
html.is-xmas:has(#top-hero) .qnav .pill::after{
  content:"";
  position:absolute;
  top:-14px;
  right:-5px;
  left:auto;
  width:34px;
  height:34px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  transform:rotate(14deg);
  pointer-events:none;
  z-index:2;
  filter:drop-shadow(0 1px 1px rgba(0,0,51,.2));
}
/* Last pill is already tight at the right edge; keep its tag inside the row. */
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(9)::after{
  right:1px;
}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(1)::after{background-image:url("xmas-ico-gift.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(2)::after{background-image:url("xmas-ico-stocking.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(3)::after{background-image:url("xmas-ico-reindeer.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(4)::after{background-image:url("xmas-ico-snowman.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(5)::after{background-image:url("xmas-ico-hat.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(6)::after{background-image:url("xmas-ico-bauble.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(7)::after{background-image:url("xmas-ico-sprig.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(8)::after{background-image:url("xmas-ico-bell.svg")}
html.is-xmas:has(#top-hero) .qnav .pill:nth-child(9)::after{background-image:url("xmas-ico-star.svg")}
/* On a phone the service pills already scroll; keep that row tidy. */
@media (max-width:1099px){
  html.is-xmas:has(#top-hero) .qnav .pill::after{display:none}
  html.is-xmas:has(#top-hero) .top .qnav-in{padding-top:10px}
}
@media (max-width:520px){
  html.is-xmas:has(#top-hero) .top .qnav-in{padding-top:8px}
}


/* First rolling diagram only (.pv-s.sx-why): a gold line-art Santa and
   reindeer team glides across the night sky of the card, behind the diagram
   so the icons and labels stay readable. Other slides are unchanged. */
html.is-xmas .pv-s.sx-why{
  overflow:hidden;
}
html.is-xmas .pv-s.sx-why > svg,
html.is-xmas .pv-s.sx-why > figcaption{
  position:relative;
  z-index:1;
}
html.is-xmas .pv-s.sx-why::after{
  content:"";
  position:absolute;
  top:2px;
  left:0;
  width:200px;
  height:58px;
  background:url("xmas-sleigh.svg") no-repeat left center / contain;
  pointer-events:none;
  z-index:0;
  animation:xmas-sleigh-drift 16s linear infinite;
}
@keyframes xmas-sleigh-drift{
  0%{transform:translateX(-120%)}
  100%{transform:translateX(260%)}
}
@media (max-width:899px){
  html.is-xmas .pv-s.sx-why::after{width:136px;height:40px;top:0}
}

@media (prefers-reduced-motion:reduce){
  html.is-xmas .hero::after,
  html.is-xmas .email-hero::after,
  html.is-xmas .journey .xmas-fx,
  html.is-xmas:has(#top-hero) header.top::after,
  html.is-xmas .pv-s.sx-why::after{
    animation:none !important;
  }
  html.is-xmas .hero::after,
  html.is-xmas .email-hero::after,
  html.is-xmas .journey .xmas-fx{
    opacity:.4;
  }
  html.is-xmas:has(#top-hero) header.top::after{
    text-shadow:0 0 8px rgba(246,212,122,.5), 0 1px 0 #fff;
  }
  /* Park the sleigh in the left-of-centre sky of the first diagram. */
  html.is-xmas .pv-s.sx-why::after{
    transform:translateX(28%);
  }
}

/* Small Santa hat on Blinky in the open chat panel: the header avatar and the
   intro mascot (and the voice-chat mascot, if that view is open). Same art as
   the corner button. Decorative only: never receives clicks, and sits on the
   avatar so it stays clear of the close button and the form. Message bubbles
   have no Blinky avatar, so they are not decorated. */
html.is-xmas .aih-bot-head,
html.is-xmas .aih-bot-big,
html.is-xmas .aih-bot-voice{
  position:relative;
}
html.is-xmas .aih-bot-head::after,
html.is-xmas .aih-bot-big::after,
html.is-xmas .aih-bot-voice::after{
  content:"";
  position:absolute;
  background:url("xmas-hat.svg") no-repeat center / contain;
  pointer-events:none;
  z-index:2;
  filter:drop-shadow(0 1px 1px rgba(0,0,51,.25));
  transform:translateX(-30%) rotate(16deg);
}
/* Header avatar is 46px, same idea as the 48px corner-button hat. */
html.is-xmas .aih-bot-head::after{
  left:54%;
  top:-7px;
  width:22px;
  height:20px;
}
/* Intro mascot is 112px (88px on a narrow panel). Keep the overhang inside the
   panel body's 16px padding so the hat is not clipped. */
html.is-xmas .aih-bot-big::after{
  left:56%;
  top:-10px;
  width:44px;
  height:40px;
}
@media (max-width:420px){
  html.is-xmas .aih-bot-big::after{width:36px;height:32px;top:-8px}
}
/* Voice-chat mascot (76px, or 64px on a narrow panel). */
html.is-xmas .aih-bot-voice::after{
  left:56%;
  top:-8px;
  width:32px;
  height:29px;
}
@media (max-width:420px){
  html.is-xmas .aih-bot-voice::after{width:28px;height:25px;top:-7px}
}
