/* Christmas home page (hand-built; see pages/home/content.html).
   The home page as it was, plus a festive block (div.xh) above the challenge
   cards and the challenge cards in one sideways-scrolling row (div.xc). */
@font-face{font-family:"Caveat";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(/_static/wp-content/uploads/elementor/google-fonts/fonts/caveat-wnz6hac5bafyb2q7zjyy.woff2) format("woff2")}

div.xh{
  --night:#0a1730; --night2:#143160; --aurora:#63e6a8; --berry:#c8102e; --berry-d:#a10c24; --gold:#fdc900;
  display:block;clear:both;float:none;width:auto;max-width:none;margin:0;padding:0;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.55;color:#fff;
  overflow-x:clip;
}
div.xh *,div.xh *::before,div.xh *::after{box-sizing:border-box}
div.xh p{margin:0;color:inherit;font-size:inherit;line-height:inherit}
div.xh ul{margin:0;padding:0;list-style:none}
div.xh li{margin:0}
div.xh img{max-width:100%;height:auto;display:block}
div.xh .xh-wrap{max-width:1164px;margin:0 auto;padding:0 22px;position:relative}

/* ---------- the block ---------- */
div.xh .xh-hero{position:relative;isolation:isolate;overflow:hidden;text-align:center;padding:34px 0 46px;
  background:
    radial-gradient(ellipse 70% 55% at 18% -8%,rgba(99,230,168,.34),transparent 62%),
    radial-gradient(ellipse 60% 50% at 88% -4%,rgba(120,150,255,.30),transparent 64%),
    linear-gradient(180deg,var(--night) 0%,var(--night2) 62%,#0d2143 100%)}
div.xh .xh-hand{font-family:"Caveat","Segoe Script",cursive;font-weight:700;font-size:34px;line-height:1;color:var(--aurora);transform:rotate(-2deg);margin-bottom:8px}
div.xh h2{margin:0 0 16px;font-family:"Francois One","Arial Narrow",sans-serif;font-weight:400;font-size:58px;line-height:1.12;letter-spacing:0;text-transform:none;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
div.xh .xh-ring{position:relative;display:inline-block;margin-right:.2em;padding:0 .12em;color:var(--gold);white-space:nowrap}
div.xh .xh-ring svg{position:absolute;left:50%;top:52%;width:calc(100% + 26px);height:calc(100% + 20px);transform:translate(-50%,-50%);overflow:visible;fill:none;stroke:var(--gold);stroke-width:8;stroke-linecap:round}
div.xh .xh-lead{max-width:40em;margin:0 auto 30px;font-size:19px;color:#e6eefb}

/* ---------- the four challenges ---------- */
div.xh .xh-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;text-align:left}
div.xh .xh-cards li{display:flex}
div.xh .xh-cards a{display:flex;flex-direction:column;width:100%;border-radius:12px;overflow:hidden;background:#fff;color:#111;text-decoration:none;
  box-shadow:0 14px 34px rgba(0,0,0,.42);transition:transform .15s,box-shadow .15s}
div.xh .xh-cards a:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.5);color:#111}
div.xh .xh-cards a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
div.xh .xh-cards img{width:100%;aspect-ratio:1/1;object-fit:cover}
div.xh .xh-cards__t{display:block;padding:14px 16px 2px;font-family:"Francois One","Arial Narrow",sans-serif;font-size:21px;line-height:1.15;color:#212934;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
div.xh .xh-cards__d{display:block;padding:0 16px 12px;font-size:14.5px;line-height:1.4;color:#444}
div.xh .xh-cards__go{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding:0 16px 16px}
div.xh .xh-price{font-family:"Francois One","Arial Narrow",sans-serif;font-size:24px;line-height:1;color:#212934}
div.xh .xh-btn{display:inline-block;padding:11px 20px;border-radius:6px;background:var(--berry);color:#fff;font-family:"Francois One","Arial Narrow",sans-serif;font-size:19px;line-height:1.1;white-space:nowrap;
  box-shadow:0 6px 14px rgba(200,16,46,.3);transition:background .15s}
div.xh .xh-cards a:hover .xh-btn{background:var(--berry-d)}

div.xh .xh-notes{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 26px;margin-top:28px;font-size:15.5px;color:#dbe6f6}
div.xh .xh-notes li{position:relative;padding-left:22px}
div.xh .xh-notes li::before{content:"";position:absolute;left:0;top:.36em;width:13px;height:7px;border-left:2.5px solid var(--aurora);border-bottom:2.5px solid var(--aurora);transform:rotate(-45deg)}

/* snowfall: two layers of dots drifting down (off when the visitor prefers less motion) */
div.xh .xh-snow,div.xh .xh-snow::after,
.elementor-168974 .elementor-element.elementor-element-63647b22::after{position:absolute;inset:0;pointer-events:none;content:"";
  background-image:
    radial-gradient(circle at 24px 34px,#fff 0 1.6px,transparent 2.2px),
    radial-gradient(circle at 132px 88px,rgba(255,255,255,.9) 0 2.2px,transparent 2.8px),
    radial-gradient(circle at 212px 162px,#fff 0 1.4px,transparent 2px),
    radial-gradient(circle at 70px 214px,rgba(255,255,255,.85) 0 1.2px,transparent 1.8px),
    radial-gradient(circle at 276px 46px,rgba(255,255,255,.9) 0 1.9px,transparent 2.5px)}
div.xh .xh-snow{z-index:-1;background-size:310px 264px;animation:xh-fall 16s linear infinite;opacity:.75}
div.xh .xh-snow::after{background-size:430px 372px;animation:xh-fall-far 27s linear infinite;opacity:.55}
/* the same light snow over the home page's own top banner, so the two read as one */
.elementor-168974 .elementor-element.elementor-element-63647b22::after{z-index:1;background-size:310px 264px;animation:xh-fall 16s linear infinite;opacity:.6}
@keyframes xh-fall{to{background-position:0 264px}}
@keyframes xh-fall-far{from{background-position:60px 0}to{background-position:-26px 372px}}
@media (prefers-reduced-motion:reduce){
  div.xh .xh-snow,div.xh .xh-snow::after,.elementor-168974 .elementor-element.elementor-element-63647b22::after{animation:none}
  div.xh .xh-cards a,div.xh .xh-btn{transition:none}
}

/* ---------- smaller screens ---------- */
@media (max-width:1240px){
  div.xh h2{font-size:46px}
  div.xh .xh-cards{gap:14px}
  div.xh .xh-cards__t{font-size:18px;padding:11px 12px 2px;white-space:normal}
  div.xh .xh-cards__d{font-size:13.5px;padding:0 12px 10px}
  div.xh .xh-cards__go{padding:0 12px 12px;gap:6px}
  div.xh .xh-price{font-size:20px}
  div.xh .xh-btn{font-size:16px;padding:9px 13px}
}
@media (max-width:700px){
  div.xh .xh-wrap{padding:0 14px}
  div.xh .xh-hero{padding:30px 0 36px}
  div.xh .xh-hand{font-size:28px}
  div.xh h2{font-size:34px;line-height:1.28;margin-bottom:14px}
  div.xh .xh-ring svg{width:calc(100% + 16px);height:calc(100% + 14px);stroke-width:7}
  div.xh .xh-lead{font-size:16.5px;margin-bottom:22px}
  div.xh .xh-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  div.xh .xh-cards__t{font-size:17px;white-space:normal}
  div.xh .xh-ring{margin-right:.1em}
  div.xh .xh-notes{gap:6px 18px;margin-top:22px;font-size:14.5px}
}
@media (max-width:359px){
  div.xh .xh-cards__go{flex-direction:column;align-items:stretch}
  div.xh .xh-btn{text-align:center}
}

/* the sideways-scrolling row of challenge cards is styled by parts/challenge-scroll.css (shared with the corporate page) */

/* "Over 30 Virtual Challenges to suit everyone!": the same font and size as the page's other titles */
.elementor-168974 .elementor-element.elementor-element-154e8e96 .elementor-headline{font-family:"Francois One","Arial Narrow",sans-serif;font-weight:400;font-size:45px;line-height:1.2}
@media (max-width:767px){
  .elementor-168974 .elementor-element.elementor-element-154e8e96 .elementor-headline{font-size:32px;line-height:1.2}
}

/* The sideways-scrolling row of challenge cards (div.xc). Shared by the home page and the
   corporate page: listed under "css_parts" in their page.json. The block itself is
   parts/challenge-scroll.html, made from the home page by tools/make_challenge_scroll.py. */
/* ---------- the challenge cards in one row that scrolls sideways ----------
   The original rows of three sit inside div.xc .xc-track. The Elementor
   wrappers, the rows and their inner containers stop being boxes
   (display:contents), so every card lines up in one flex row; the cards
   themselves are not changed. Three cards and two gaps fill the page's
   1140px content width. */
div.xc{position:relative;clear:both;margin:36px 0 40px;--xc-side:max(12px,calc((100% - 1140px)/2))}
div.xc .xc-track{display:flex;align-items:stretch;gap:18px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;scroll-padding-inline:var(--xc-side);padding:4px var(--xc-side) 6px;
  -webkit-overflow-scrolling:touch;overflow-anchor:none;scrollbar-width:none}
/* the row loops round, so a scrollbar would only jump about: hidden */
div.xc .xc-track::-webkit-scrollbar{display:none}
div.xc .xc-track:focus-visible{outline:3px solid #ff5300;outline-offset:-3px}
div.xc .xc-track > .elementor,
div.xc .xc-track > .elementor > section.elementor-top-section,
div.xc .xc-track > .elementor > section.elementor-top-section > .elementor-container{display:contents}
/* A row's own extras (an invisible background layer, edge shapes) are placed against the whole
   strip once the row stops being a box: they would lie on top of every card and swallow taps,
   swipes and clicks. Only the row's cards are kept. */
div.xc .xc-track > .elementor > section.elementor-top-section > :not(.elementor-container){display:none}
div.xc .xc-track > .elementor > section.elementor-top-section > .elementor-container > .elementor-column{
  flex:0 0 368px;width:368px;max-width:84vw;min-height:0;scroll-snap-align:start}
/* Sleepy Hollow card: purple where the copied card is orange */
div.xc .xc-track .xc-sleepy .elementor-element.elementor-widget-image img{border-color:#a259ff}
div.xc .xc-track .xc-sleepy .elementor-element .elementor-heading-title{color:#b57bff}
div.xc .xc-track .xc-sleepy .elementor-element .elementor-icon-list-icon i{color:#a259ff}
div.xc .xc-track .xc-sleepy .elementor-element .elementor-icon-list-icon svg{fill:#a259ff}
div.xc .xc-track .xc-sleepy .elementor-element .elementor-button{background-color:#8f3ff0;color:#fff;fill:#fff}
div.xc .xc-track .xc-sleepy .xc-flag{background:#8f3ff0}
/* the small line above the title on the Sleepy Hollow and 2026 cards */
div.xc .xc-flag{display:table;margin:0 auto 8px;padding:4px 12px;border-radius:999px;background:#ff5300;color:#fff;
  font-family:"Francois One","Arial Narrow",sans-serif;font-size:14px;line-height:1.3;letter-spacing:.04em;text-transform:uppercase}

div.xc .xc-nav{position:absolute;z-index:3;top:calc(50% - 46px);width:54px;height:54px;padding:0;border:0;border-radius:50%;
  background:#ff5300;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,.35);transition:opacity .15s,transform .15s,background .15s}
div.xc .xc-nav svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
div.xc .xc-nav--prev{left:max(8px,calc((100% - 1140px)/2 - 30px))}
div.xc .xc-nav--next{right:max(8px,calc((100% - 1140px)/2 - 30px))}
div.xc .xc-nav:hover{background:#e04800;transform:scale(1.06)}
div.xc .xc-nav:focus-visible{outline:3px solid #212934;outline-offset:3px}
div.xc .xc-hint{margin:10px 0 0;padding:0 16px;text-align:center;font-family:"Inter",system-ui,sans-serif;font-size:15px;line-height:1.4;color:#5a6272}
div.xc .xc-hint__touch{display:none}
@media (hover:none),(max-width:767px){
  div.xc .xc-hint__touch{display:inline}
  div.xc .xc-hint__mouse{display:none}
}
@media (max-width:767px){
  div.xc .xc-track{gap:12px}
  /* phones: swipe; the buttons would sit on top of the card text */
  div.xc .xc-nav{display:none}
}
@media (prefers-reduced-motion:reduce){div.xc .xc-nav{transition:none}}
