/* Happy Holidays 2026 homepage banner (Home.html only).
   Campaign window: Dec 1, 2026 - Jan 2, 2027 PT. After the campaign, delete this file,
   v5/js/hol-banner-2026.js, v5/images/holidays-2026/ and the hol-banner blocks in Home.html.
   Built from the premade hero (Sikka_Happy_Holidays_Hero.png): the foliage is a cropped image,
   the words are live text so they reflow and stay readable. On phones (<=640px) the whole
   premade graphic is shown instead, scaled to fit.
   Markup ships with [hidden]; the inline gate in the markup unhides it during parsing,
   before first paint, so nothing below it shifts. */
.hol-banner {
  --hol-ink: #240823;
  --hol-eyebrow: #86632F;  /* the art's gold, darkened to 5:1 contrast for small text */
  --hol-rule: #C9A45C;
  position: relative;
  overflow: hidden;
  background: #FCF3E9;
  border-bottom: 3px solid var(--hol-rule);
}
.hol-banner[hidden] { display: none; }

/* Same container as the homepage's [data-shell], so the text lines up with the hero headline. */
.hol-banner__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(1340px, 93vw);
  margin: 0 auto;
  padding: 26px 0;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.hol-banner__text { max-width: calc(100% - 380px); }
.hol-banner .hol-banner__eyebrow {
  margin: 0 0 10px;
  font: 700 13px/1 Sora, Inter, Arial, sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--hol-eyebrow);
}
.hol-banner .hol-banner__title {
  margin: 0 0 10px;
  /* Fraunces (loaded in Home.html, "Happy Holidays" glyphs only) matches the premade lettering;
     Georgia shows for a moment if it's slow, at the same height, so nothing shifts. */
  font: 500 52px/1 Fraunces, Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em;
  color: var(--hol-ink);
}
.hol-banner .hol-banner__sub {
  margin: 0 0 4px;
  font: 400 19px/1.3 Sora, Inter, Arial, sans-serif;
  color: var(--hol-ink);
  text-wrap: balance;
}
.hol-banner .hol-banner__note {
  margin: 0;
  font: 400 15px/1.4 Sora, Inter, Arial, sans-serif;
  color: var(--hol-ink);
  opacity: 0.85;
  text-wrap: balance;
}

/* Fixed width + cover: if the text wraps and the strip grows taller, the art crops
   instead of widening into the text. The left edge fades into the cream background. */
.hol-banner__art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  height: 100%;
  width: 480px;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28%);
}

/* Snowfall (v5/js/hol-banner-2026.js): above the art, behind the words, so text stays readable. */
.hol-banner__snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hol-banner__flake { position: absolute; display: block; will-change: transform, opacity; }
.hol-banner__flake svg { display: block; overflow: visible; }
.hol-banner__flake--white svg { filter: drop-shadow(0 0 1px rgba(36, 8, 35, 0.35)); }

.hol-banner__close {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hol-banner__close span {
  display: block;
  width: 28px;
  height: 28px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  color: var(--hol-ink);
  font: 400 18px/28px Arial, sans-serif;
  text-align: center;
}
.hol-banner__close:hover span { background: #fff; }
/* One ring, on the visible circle (replaces the page's global :focus-visible outline). */
.hol-banner__close:focus-visible { outline: none; }
.hol-banner__close:focus-visible span { outline: 2px solid var(--hol-ink); outline-offset: 2px; }

/* The fixed site nav is 75px tall from 768px up (65px below), but the page reserves 68px
   (v4/css/main.css body padding-top). Pad by the 7px the nav covers; below 768px close
   the 3px gap instead. */
@media (min-width: 768px) {
  .hol-banner { padding-top: 7px; }
  .hol-banner__snow { top: 7px; }
}
@media (max-width: 767px) {
  .hol-banner { margin-top: -3px; }
}

/* Small laptops / tablets */
@media (max-width: 1199px) {
  .hol-banner__text { max-width: calc(100% - 320px); }
  .hol-banner .hol-banner__title { font-size: 44px; }
  .hol-banner .hol-banner__sub { font-size: 18px; }
  .hol-banner__art { width: 400px; }
}
@media (max-width: 900px) {
  .hol-banner__inner { min-height: 160px; padding: 22px 0; }
  .hol-banner__text { max-width: calc(100% - 230px); }
  .hol-banner .hol-banner__eyebrow { font-size: 12px; letter-spacing: 3px; }
  .hol-banner .hol-banner__title { font-size: 38px; }
  .hol-banner .hol-banner__sub { font-size: 17px; }
  .hol-banner .hol-banner__note { font-size: 14px; }
  .hol-banner__art { width: 300px; }
}

/* Phones: show the complete premade graphic (holiday-hero-mobile, chosen by <picture>), scaled
   to the screen width, so nothing is cropped. The live text stays in the page for screen readers
   and search, visually hidden, since the image already shows the same words. */
@media (max-width: 640px) {
  .hol-banner__art {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2048 / 768;   /* reserves the height before the image loads: no layout shift */
    object-fit: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hol-banner__inner {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* Smaller close button tucked into the corner, over the foliage rather than the words. */
  .hol-banner__close { top: 0; right: 0; }
  .hol-banner__close span { width: 24px; height: 24px; font-size: 16px; line-height: 24px; }
}
@media print {
  .hol-banner { display: none; }
}
