/* Thanksgiving 2026 homepage banner (Home.html only).
   Campaign window: Nov 23 - Dec 1, 2026 PT. After the campaign, delete this file,
   v5/js/tg-banner-2026.js, v5/images/thanksgiving-2026/ and the tg-banner block in Home.html.
   Markup ships with [hidden]; the inline gate in the markup unhides it during parsing,
   before first paint, so nothing below it shifts. */
.tg-banner {
  --tg-ink: #3B0F2E;
  --tg-sub: #5A3B4C;
  --tg-eyebrow: #8A4A2A;
  --tg-rule: #D9A55A;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #FCF6EE 0%, #FAEEDF 100%);
  border-bottom: 3px solid var(--tg-rule);
}
.tg-banner[hidden] { display: none; }

/* Same container as the homepage's [data-shell], so the text lines up with the hero headline. */
.tg-banner__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(1340px, 93vw);
  margin: 0 auto;
  padding: 22px 0;
  min-height: 116px;
  display: flex;
  align-items: center;
}
.tg-banner__text { max-width: calc(100% - 300px); }
.tg-banner .tg-banner__eyebrow {
  margin: 0 0 9px;
  font: 700 12px/1 Inter, Arial, sans-serif;
  letter-spacing: 3px;
  color: var(--tg-eyebrow);
}
.tg-banner .tg-banner__title {
  margin: 0 0 7px;
  font: 600 32px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.4px;
  color: var(--tg-ink);
  text-wrap: balance;
}
.tg-banner .tg-banner__sub {
  margin: 0;
  font: 400 16px/1.4 Inter, Arial, sans-serif;
  color: var(--tg-sub);
  text-wrap: balance;
}

/* Fixed width + cover: if the text wraps and the strip grows taller, the art crops
   instead of widening into the text. */
.tg-banner__art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  height: 100%;
  width: 410px;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.tg-banner__leaves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.tg-banner__close {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.tg-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(--tg-ink);
  font: 400 18px/28px Arial, sans-serif;
  text-align: center;
}
.tg-banner__close:hover span { background: #fff; }
/* One ring, on the visible circle (replaces the page's global :focus-visible outline). */
.tg-banner__close:focus-visible { outline: none; }
.tg-banner__close:focus-visible span { outline: 2px solid var(--tg-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 the strip by the 7px the nav covers so the content
   and the leaves start at its visible top edge. */
@media (min-width: 768px) {
  .tg-banner { padding-top: 7px; }
  .tg-banner__leaves { top: 7px; }
}
/* Below 768px the nav is 65px, leaving a 3px page-colour gap above the strip: close it. */
@media (max-width: 767px) {
  .tg-banner { margin-top: -3px; }
}

/* Tablet: keep the headline on one line and the art from taking over the strip. */
@media (min-width: 701px) and (max-width: 1023px) {
  .tg-banner__text { max-width: calc(100% - 240px); }
  .tg-banner .tg-banner__title { font-size: 26px; }
  .tg-banner__art { width: 300px; }
}

@media (max-width: 700px) {
  .tg-banner__inner { padding: 16px 0; min-height: 0; }
  .tg-banner__text { max-width: calc(100% - 110px); }
  .tg-banner .tg-banner__title { font-size: 22px; }
  .tg-banner .tg-banner__sub { font-size: 14px; }
  .tg-banner__art {
    width: 160px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  }
}
@media (max-width: 520px) {
  .tg-banner__inner { width: min(1340px, 100vw - 2.2rem); }
}
@media (max-width: 480px) {
  .tg-banner__text { max-width: calc(100% - 92px); }
  .tg-banner .tg-banner__eyebrow { font-size: 11px; letter-spacing: 2.5px; }
  .tg-banner .tg-banner__title { font-size: 19px; }
  .tg-banner .tg-banner__sub { font-size: 13px; }
}
@media print {
  .tg-banner { display: none; }
}
