/* Christmas theme v3 (src/_data/seasonal.json theme: "christmas").
   Site-wide red/green/gold chrome on every page, photo hero, tree and
   ornament emblems, falling snow, and twinkling bulb-and-wire lights
   across the header (plus a wrap around the logo and a footer strand).
   Contrast (WCAG 2.1 AA): cream #F7F0D8 on #0F3D2E 10.66:1; gold
   #E8C56B on #0F3D2E 7.31:1; #8B1E1E on cream #F7F0D8 ~8.7:1; white
   on #8B1E1E 9.12:1. Does not recolor the GTA VI section, Daily Double
   Feature, Stump Us box, or deal cards. Snow and lights use
   transform/opacity only; both are static when prefers-reduced-motion
   is reduce; pointer-events: none. No layout shift from animation.
   Hero art is PD/CC0; no credit text. */

body.theme-christmas {
  --xm-green: #0F3D2E;
  --xm-green-mid: #154734;
  --xm-green-soft: #1E5A40;
  --xm-red: #8B1E1E;
  --xm-red-deep: #6E1616;
  --xm-gold: #E8C56B;
  --xm-gold-pale: #F4E7B0;
  --xm-cream: #F7F0D8;
  --xm-bulb-red: #E23B3B;
  --xm-bulb-green: #3D9A5F;
  --xm-bulb-blue: #5B9BD5;
  --color-primary: #8B1E1E;
  --color-primary-strong: #6E1616;
  --color-primary-soft: #F8EAEA;
  background: var(--xm-cream);
}

body.theme-christmas .ddf,
body.theme-christmas .home-gta,
body.theme-christmas [data-gta-watch],
body.theme-christmas .gta-hub-card,
body.theme-christmas .home-stump,
body.theme-christmas .fbox--stump,
body.theme-christmas .adl,
body.theme-christmas .deals-page .adl {
  --color-primary: #2F5BEA;
  --color-primary-strong: #1F3FB0;
  --color-primary-soft: #EEF2FE;
}

/* ----- Header: deep green, cream/gold nav, lights instead of a rule ----- */
body.theme-christmas .site-header {
  background: var(--xm-green);
  border-bottom: 0;
  box-shadow: none;
}
body.theme-christmas .site-header .nav a,
body.theme-christmas .site-header .nav a.nav__biz,
body.theme-christmas .site-header .nav-drop > summary {
  color: var(--xm-cream);
}
body.theme-christmas .site-header .nav a:hover,
body.theme-christmas .site-header .nav a:focus-visible,
body.theme-christmas .site-header .nav a[aria-current="page"],
body.theme-christmas .site-header .nav-drop[open] > summary,
body.theme-christmas .site-header .nav-drop > summary[aria-current="page"] {
  color: var(--xm-gold);
}
body.theme-christmas .site-header .nav-drop__panel {
  background: var(--xm-cream);
  border-color: var(--xm-gold);
}
body.theme-christmas .site-header .nav-drop__panel a {
  color: var(--xm-green);
}
body.theme-christmas .site-header .nav-drop__panel a:hover,
body.theme-christmas .site-header .nav-drop__panel a[aria-current="page"] {
  background: #E8F0EA;
  color: var(--xm-red);
}
body.theme-christmas .site-header .logo__tagline {
  color: var(--xm-gold-pale);
}

/* ----- Twinkling lights (header top/bottom, footer, logo wrap) ----- */
.xm-lights {
  position: relative;
  height: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  background: var(--xm-green);
}
.xm-lights--bottom,
.xm-lights--footer { height: 18px; }
.xm-lights__wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.xm-lights__bulbs {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 100%;
  margin: 0;
  padding: 0 6px 2px;
  list-style: none;
}
.xm-bulb {
  flex: none;
  width: 8px;
  height: 11px;
  border-radius: 50% 50% 45% 45%;
  position: relative;
  box-shadow: 0 0 6px currentColor;
  animation: xm-twinkle 1.7s ease-in-out infinite;
}
.xm-bulb::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 3px;
  background: #C9A227;
  border-radius: 1px 1px 0 0;
}
.xm-bulb--red { background: var(--xm-bulb-red); color: var(--xm-bulb-red); }
.xm-bulb--gold { background: var(--xm-gold); color: var(--xm-gold); }
.xm-bulb--green { background: var(--xm-bulb-green); color: var(--xm-bulb-green); }
.xm-bulb--blue { background: var(--xm-bulb-blue); color: var(--xm-bulb-blue); }
.xm-bulb--cream { background: var(--xm-cream); color: var(--xm-cream); }
.xm-bulb--d1 { animation-delay: 0s; animation-duration: 1.5s; }
.xm-bulb--d2 { animation-delay: -.28s; animation-duration: 1.85s; }
.xm-bulb--d3 { animation-delay: -.55s; animation-duration: 1.6s; }
.xm-bulb--d4 { animation-delay: -.9s; animation-duration: 2s; }
.xm-bulb--d5 { animation-delay: -1.2s; animation-duration: 1.7s; }
.xm-bulb--d6 { animation-delay: -.15s; animation-duration: 1.95s; }

/* Logo wrap: reserved padding ring. The wire and bulbs stay in that ring
   (positioned on a border box) so they never cover the wordmark or tagline. */
body.theme-christmas .logo--xm-lights {
  position: relative;
  padding: 14px 16px 16px;
  overflow: visible;
}
body.theme-christmas .logo--xm-lights .logo__lockup,
body.theme-christmas .logo--xm-lights .logo__tagline {
  position: relative;
  z-index: 1;
}
body.theme-christmas .logo--xm-lights .logo__tagline { position: absolute; }
body.theme-christmas .xm-logo-frame {
  position: absolute;
  inset: 5px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
body.theme-christmas .xm-logo-wire {
  position: absolute;
  inset: 0;
  border: 1.6px solid #C9A227;
  border-radius: 12px;
  pointer-events: none;
}
body.theme-christmas .xm-lb { position: absolute; }
body.theme-christmas .xm-lb--t1 { top: 0; left: 12%; transform: translate(-50%,-55%); }
body.theme-christmas .xm-lb--t2 { top: 0; left: 26%; transform: translate(-50%,-55%); }
body.theme-christmas .xm-lb--t3 { top: 0; left: 40%; transform: translate(-50%,-55%); }
body.theme-christmas .xm-lb--t4 { top: 0; left: 54%; transform: translate(-50%,-55%); }
body.theme-christmas .xm-lb--t5 { top: 0; left: 68%; transform: translate(-50%,-55%); }
body.theme-christmas .xm-lb--t6 { top: 0; left: 84%; transform: translate(-50%,-55%); }
body.theme-christmas .xm-lb--r1 { top: 32%; right: 0; transform: translate(55%,-50%); }
body.theme-christmas .xm-lb--r2 { top: 68%; right: 0; transform: translate(55%,-50%); }
body.theme-christmas .xm-lb--b1 { bottom: 0; left: 12%; transform: translate(-50%,55%); }
body.theme-christmas .xm-lb--b2 { bottom: 0; left: 26%; transform: translate(-50%,55%); }
body.theme-christmas .xm-lb--b3 { bottom: 0; left: 40%; transform: translate(-50%,55%); }
body.theme-christmas .xm-lb--b4 { bottom: 0; left: 54%; transform: translate(-50%,55%); }
body.theme-christmas .xm-lb--b5 { bottom: 0; left: 68%; transform: translate(-50%,55%); }
body.theme-christmas .xm-lb--b6 { bottom: 0; left: 84%; transform: translate(-50%,55%); }
body.theme-christmas .xm-lb--l1 { top: 32%; left: 0; transform: translate(-55%,-50%); }
body.theme-christmas .xm-lb--l2 { top: 68%; left: 0; transform: translate(-55%,-50%); }

@keyframes xm-twinkle {
  0%, 100% { opacity: .45; }
  45% { opacity: 1; }
}

/* ----- Buttons & links (not in protected bands) ----- */
body.theme-christmas .btn--primary {
  background: var(--xm-red);
  color: #fff;
}
body.theme-christmas .btn--primary:hover {
  background: var(--xm-green);
  color: var(--xm-cream);
}
body.theme-christmas .prose a,
body.theme-christmas .article a:not(.btn),
body.theme-christmas .crumb a {
  color: var(--xm-red);
}
body.theme-christmas .prose a:hover,
body.theme-christmas .prose a:focus-visible,
body.theme-christmas .article a:not(.btn):hover,
body.theme-christmas .article a:not(.btn):focus-visible,
body.theme-christmas .crumb a:hover {
  color: var(--xm-green);
}

/* Section headings, article titles, rules */
body.theme-christmas .newsstrip:not(.newsstrip--gta) .newsstrip__h,
body.theme-christmas .top-stories__h,
body.theme-christmas .article .prose h2,
body.theme-christmas .article .intro h1,
body.theme-christmas .deals-page h1,
body.theme-christmas .deals-page h2:not(.adl__h),
body.theme-christmas .sh h2,
body.theme-christmas main h1 {
  color: var(--xm-green);
}
body.theme-christmas .newsstrip:not(.newsstrip--gta) .newsstrip__h,
body.theme-christmas .top-stories__h,
body.theme-christmas .article .prose h2,
body.theme-christmas .deals-page h1,
body.theme-christmas .deals-page h2:not(.adl__h) {
  border-bottom: 3px solid var(--xm-gold);
  padding-bottom: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
body.theme-christmas .newsstrip:not(.newsstrip--gta):not(.newsstrip--other):not(.newsstrip--popular):not(.home-hot) .newsstrip__h .dot {
  background: var(--xm-red);
}
body.theme-christmas .article .byline {
  border-block-color: var(--xm-gold);
}
body.theme-christmas .article-footer {
  border-top-color: var(--xm-gold);
}
body.theme-christmas .crumb {
  color: var(--xm-green);
}

/* Themed card frames — inset shadow so layout does not shift */
body.theme-christmas .ni,
body.theme-christmas .ts-lead,
body.theme-christmas .ts-item,
body.theme-christmas .sec-card:not(.dfeat__card) {
  box-shadow: 0 0 0 2px var(--xm-gold);
}
body.theme-christmas .home-gta .ni,
body.theme-christmas .ddf .sec-card,
body.theme-christmas .ddf .dfeat__card,
body.theme-christmas .adl__card {
  box-shadow: none;
}

/* Inner padding so gold frames are not flush against text and pictures (Jason, Nov 27). */
body.theme-christmas .ts-lead,
body.theme-christmas .ts-item {
  padding: 16px;
  border-radius: var(--pl-radius-img, 8px);
  background: var(--white, #fff);
}
body.theme-christmas .ts-item {
  border-bottom: 0;
  margin-bottom: 16px;
}
body.theme-christmas .ts-item:last-child {
  padding: 16px;
  margin-bottom: 0;
}
body.theme-christmas .home-flow .newsstrip .ni--art {
  padding: 14px;
}
@media (max-width: 760px) {
  body.theme-christmas .ts-lead,
  body.theme-christmas .ts-item,
  body.theme-christmas .ts-item:last-child {
    padding: 12px;
  }
  body.theme-christmas .home-flow .newsstrip .ni--art {
    padding: 12px;
  }
}

/* ----- Hero ----- */
.season-hero--christmas {
  position: relative;
  background: var(--xm-green);
  color: var(--xm-cream);
  font-family: var(--font-body);
  overflow: hidden;
}
.season-hero__art {
  position: relative;
  display: block;
  width: 100%;
  min-width: 100%;
  line-height: 0;
  overflow: hidden;
}
.season-hero--home .season-hero__art {
  aspect-ratio: 2400 / 800;
  max-height: 420px;
}
.season-hero--compact .season-hero__art {
  aspect-ratio: 2400 / 800;
  max-height: 200px;
}
.season-hero__img {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.season-hero--christmas .season-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,61,46,.28) 0%, rgba(15,61,46,.16) 40%, rgba(15,61,46,.64) 100%);
  pointer-events: none;
}
.season-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 72px 28px;
  box-sizing: border-box;
  line-height: 1.3;
  overflow: visible;
  pointer-events: none;
}
.season-hero__copy a {
  pointer-events: auto;
  color: var(--xm-gold-pale);
}
.season-hero__copy a:hover {
  color: var(--xm-gold);
}
.season-hero__kicker {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--xm-gold);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.season-hero__title {
  margin: 0;
  max-width: min(22em, 100%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--xm-cream);
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
  overflow: visible;
  overflow-wrap: break-word;
  padding-bottom: 0.12em;
}
.season-hero--compact .season-hero__title {
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  line-height: 1.3;
}
/* Tree and ornament emblems in the hero corners */
.season-hero__emblem {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  width: 92px;
  height: 110px;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.season-hero__emblem--left { left: 14px; }
.season-hero__emblem--right { right: 14px; }
.season-hero--compact .season-hero__emblem {
  width: 60px;
  height: 72px;
  bottom: 6px;
}
.season-tree, .season-baubles { width: 100%; height: 100%; display: block; }

/* Prominent pick cards */
.season-hero__picks-wrap {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--xm-green-mid) 0%, var(--xm-green) 100%);
  border-top: 3px solid var(--xm-gold);
  padding: 12px 16px 16px;
}
.season-hero__picks-label {
  margin: 0 auto 8px;
  max-width: 1200px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--xm-gold);
}
.season-hero__picks {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.season-hero--compact .season-hero__picks {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.season-pick {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--xm-cream);
  color: var(--xm-green);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--xm-gold);
}
.season-pick:hover,
.season-pick:focus-visible {
  color: var(--xm-red);
  box-shadow: 0 0 0 3px var(--xm-red);
}
.season-pick__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #1E5A40;
}
.season-hero--compact .season-pick__img {
  aspect-ratio: 16 / 7;
  max-height: 72px;
}
.season-pick__title {
  display: block;
  padding: 8px 10px 10px;
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ----- Falling snow (hero only; never capture clicks) ----- */
.season-snow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.season-flake {
  position: absolute;
  top: -12%;
  color: #fff;
  animation: season-snow-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
  will-change: transform;
  opacity: 0.9;
}
.season-flake--dot {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,.65);
}
.season-flake svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 2px rgba(255,255,255,.5)); }
.season-flake--1  { --dur: 11s; --delay: 0s;    width: 14px; height: 14px; left: 4%; }
.season-flake--2  { --dur: 16s; --delay: -3s;   width: 6px;  height: 6px;  left: 11%; }
.season-flake--3  { --dur: 13s; --delay: -6s;   width: 18px; height: 18px; left: 18%; }
.season-flake--4  { --dur: 18s; --delay: -2s;   width: 8px;  height: 8px;  left: 26%; }
.season-flake--5  { --dur: 12s; --delay: -8s;   width: 12px; height: 12px; left: 33%; }
.season-flake--6  { --dur: 17s; --delay: -5s;   width: 5px;  height: 5px;  left: 41%; }
.season-flake--7  { --dur: 14s; --delay: -1s;   width: 16px; height: 16px; left: 50%; }
.season-flake--8  { --dur: 15s; --delay: -9s;   width: 7px;  height: 7px;  left: 58%; }
.season-flake--9  { --dur: 19s; --delay: -4s;   width: 20px; height: 20px; left: 67%; }
.season-flake--10 { --dur: 12.5s; --delay: -7s; width: 9px;  height: 9px;  left: 74%; }
.season-flake--11 { --dur: 16.5s; --delay: -2.5s; width: 14px; height: 14px; left: 82%; }
.season-flake--12 { --dur: 13.5s; --delay: -10s; width: 6px;  height: 6px;  left: 89%; }
.season-flake--13 { --dur: 15.5s; --delay: -6.5s; width: 11px; height: 11px; left: 96%; }
.season-flake--14 { --dur: 20s; --delay: -11s; width: 8px;  height: 8px;  left: 8%; }
.season-flake--15 { --dur: 14.5s; --delay: -3.5s; width: 16px; height: 16px; left: 62%; }
.season-flake--16 { --dur: 17.5s; --delay: -8.5s; width: 5px;  height: 5px;  left: 45%; }

@keyframes season-snow-fall {
  0%   { transform: translate3d(0, -10%, 0); opacity: 0; }
  8%   { opacity: 0.95; }
  50%  { transform: translate3d(22px, 55vh, 0); }
  100% { transform: translate3d(-16px, 115%, 0); opacity: 0.65; }
}

/* ----- Footer: full deep-green band, cream/gold type, lights on top ----- */
body.theme-christmas .site-footer {
  background: var(--xm-green);
  color: var(--xm-cream);
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
body.theme-christmas .site-footer .wrap { color: var(--xm-cream); }
body.theme-christmas .site-footer .fgrid--4 h2,
body.theme-christmas .site-footer .fgrid h2 {
  color: var(--xm-gold);
}
body.theme-christmas .site-footer .fgrid a,
body.theme-christmas .site-footer .legal a,
body.theme-christmas .site-footer .fauthors a {
  color: var(--xm-gold-pale);
}
body.theme-christmas .site-footer .fgrid a:hover,
body.theme-christmas .site-footer .legal a:hover,
body.theme-christmas .site-footer .fauthors a:hover {
  color: var(--xm-gold);
}
body.theme-christmas .site-footer .fbrand p,
body.theme-christmas .site-footer .legal,
body.theme-christmas .site-footer .faddr,
body.theme-christmas .site-footer .ai-note-sm,
body.theme-christmas .site-footer .faff {
  color: var(--xm-cream);
}
body.theme-christmas .site-footer .legal strong {
  color: var(--xm-gold-pale);
}
body.theme-christmas .site-footer .fbottom,
body.theme-christmas .site-footer .legal {
  border-top-color: var(--xm-gold);
}
body.theme-christmas .site-footer .social a {
  color: var(--xm-cream);
  border-color: var(--xm-gold);
}
body.theme-christmas .site-footer .social a:hover {
  color: var(--xm-gold);
  border-color: var(--xm-gold);
}
.season-footer-band--christmas {
  background: var(--xm-green);
  color: var(--xm-cream);
  border-bottom: 3px solid var(--xm-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 0 0 12px;
}
.season-footer-band--christmas .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 0;
}
.season-footer-band__motif {
  width: 28px;
  height: 36px;
  flex: none;
}
.season-footer-band__motif .season-tree { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .season-flake { animation: none; top: 10%; opacity: 0.85; }
  .season-flake--1, .season-flake--5, .season-flake--9, .season-flake--13 { top: 14%; }
  .season-flake--2, .season-flake--7, .season-flake--11, .season-flake--15 { top: 48%; }
  .season-flake--3, .season-flake--4, .season-flake--6, .season-flake--8,
  .season-flake--10, .season-flake--12, .season-flake--14, .season-flake--16 { display: none; }
  body.theme-christmas .xm-bulb {
    animation: none !important;
    opacity: 1 !important;
    filter: none;
  }
}

@media (max-width: 800px) {
  .season-hero__picks,
  .season-hero--compact .season-hero__picks {
    grid-template-columns: repeat(2, 1fr);
  }
  .season-hero--home .season-hero__art { max-height: 280px; min-height: 200px; }
  .season-hero--compact .season-hero__art { max-height: 180px; min-height: 140px; }
  .season-hero__copy { padding: 14px 20px 18px; }
  .season-hero--compact .season-hero__copy { padding: 10px 16px 14px; }
  .season-hero__emblem { width: 56px; height: 68px; bottom: 4px; }
}
@media (max-width: 640px) {
  body.theme-christmas .logo--xm-lights { padding: 11px 12px 12px; }
  body.theme-christmas .xm-logo-frame { inset: 4px; }
  .xm-bulb { width: 7px; height: 9px; }
}
@media (max-width: 600px) {
  .season-hero__title { font-size: 1.35rem; line-height: 1.3; }
  .season-hero--compact .season-hero__title { font-size: 1.125rem; line-height: 1.3; }
  .season-hero__copy { padding: 12px 14px 16px; }
  .season-hero__emblem { display: none; }
  .season-hero__emblem--left { left: 2px; }
  .season-hero__emblem--right { right: 2px; }
  .season-pick__title { font-size: .8125rem; padding: 6px 8px 8px; }
}

/* Follow bar (Nov 27, 2026): filled buttons keep cream/white type. The generic
   `.article a:not(.btn)` rule would otherwise paint them --xm-red on a red fill. */
body.theme-christmas .article a.follow-bar__btn--google,
body.theme-christmas .article a.follow-bar__btn--google:hover,
body.theme-christmas .article a.follow-bar__btn--google:focus-visible,
body.theme-christmas .follow-bar a.follow-bar__btn--google,
body.theme-christmas .follow-bar a.follow-bar__btn--google:hover,
body.theme-christmas .article a.follow-bar__btn--mail,
body.theme-christmas .article a.follow-bar__btn--mail:hover,
body.theme-christmas .article a.follow-bar__btn--mail:focus-visible,
body.theme-christmas .follow-bar a.follow-bar__btn--mail,
body.theme-christmas .follow-bar a.follow-bar__btn--mail:hover,
body.theme-christmas .article a.follow-sticky__btn,
body.theme-christmas .article a.follow-sticky__btn:hover,
body.theme-christmas .article a.follow-sticky__btn:focus-visible,
body.theme-christmas .follow-sticky a.follow-sticky__btn {
  color: #fff;
}
