/* The homepage's Thanksgiving look. thanksgiving.js puts the class "tg" on the page through
   Thanksgiving weekend; without it none of this shows and the site has its usual look. The drawn
   leaves, pumpkin and turkey are in index.html (the tg-defs drawing set); the banner's garland is
   tg-garland.svg. The store's own colors stay where they mean something: red prices, the green and
   amber On floor and Processing tags, the green deals box and focus rings. */

.tg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tg-banner, .tg-fall, .tg-corner, .tg-foot { display: none; }

html.tg {
  --tg-gold: #ffb627;
  --tg-pumpkin: #ff8a1f;
  --tg-rust: #d9480f;
  --tg-line: linear-gradient(90deg, #8e1b2c, #e8590c 22%, #ffb627 50%, #e8590c 78%, #8e1b2c);
  --tg-night:
    radial-gradient(ellipse at 88% 125%, rgba(255, 138, 31, 0.3), transparent 58%),
    radial-gradient(ellipse at 4% -25%, rgba(201, 42, 42, 0.32), transparent 55%),
    linear-gradient(100deg, #0d0705 0%, #170b07 55%, #220c09 100%);
}

/* ---------- Header and footer: the green line turns autumn ---------- */
html.tg .top, html.tg .nav { border-image: var(--tg-line) 1; }
html.tg .top .call, html.tg .strip b, html.tg .strip a:hover { color: var(--tg-gold); }
html.tg footer { border-image: var(--tg-line) 1; }
html.tg .tg-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font: 700 14px/1.4 var(--body); color: #ffc46b; }
html.tg .tg-foot svg { flex: none; width: 30px; height: 25px; }

/* ---------- The banner, on the list and on every item's page: a garland, leaves drifting down,
   and the greeting between turkeys (and pumpkins on bigger screens) ---------- */
html.tg .tg-banner {
  display: block;
  position: relative;
  overflow: hidden;
  background:
    url("/tg-garland.svg") 0 0 / 192px 30.4px repeat-x,
    radial-gradient(ellipse at 50% 150%, rgba(255, 138, 31, 0.38), transparent 65%),
    linear-gradient(180deg, #2a130b, #150906);
  border-bottom: 1px solid #4a2414;
}
html.tg .tg-banner .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 29px; padding-bottom: 11px; }
html.tg .tg-banner p { margin: 0; text-align: center; }
html.tg .tg-banner span { display: block; font: 800 11px/1.2 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: #f3c99a; }
html.tg .tg-banner strong {
  display: block;
  margin-top: 3px;
  padding: 0 0.06em;
  font: italic 900 clamp(26px, 7.4vw, 56px)/0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--tg-gold);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html.tg .tg-banner strong {
    background: linear-gradient(90deg, #ffd43b, #ffa94d 28%, #ff7a1a 50%, #ffa94d 72%, #ffd43b) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tg-shine 8s linear infinite;
  }
}
@keyframes tg-shine { to { background-position: -200% 0; } }
/* Right-hand pictures face the words: mirrored */
html.tg .tg-banner .r { --flip: -1; }
html.tg .tg-pump { display: none; flex: none; width: 70px; height: 58px; transform: scaleX(var(--flip, 1)); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
html.tg .tg-turkey { flex: none; width: 38px; height: 32px; transform-origin: 50% 100%; animation: tg-strut 4.6s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
html.tg .tg-turkey.r { animation-delay: -2.3s; }
@keyframes tg-strut {
  0%, 62%, 100% { transform: scaleX(var(--flip, 1)); }
  70% { transform: scaleX(var(--flip, 1)) translateY(-4px) rotate(-5deg); }
  78% { transform: scaleX(var(--flip, 1)) rotate(3deg); }
  86% { transform: scaleX(var(--flip, 1)) translateY(-2px) rotate(-2deg); }
}
html.tg .tg-banner .tg-fall i { --fall: 170px; top: -24px; opacity: 0.55; }

/* ---------- The hero: warm night, leaves drifting down behind the words ---------- */
html.tg .hero { position: relative; overflow: hidden; background: var(--tg-night); }
html.tg .hero .wrap { position: relative; z-index: 1; }
/* The headline keeps the logo's red, white and lime green, with the warm night behind it */
html.tg .search { box-shadow: 0 0 0 3px rgba(255, 169, 77, 0.5); }
html.tg .search:focus-within { box-shadow: 0 0 0 3px rgba(255, 182, 39, 0.95); }
html.tg .tg-fall { display: block; position: absolute; inset: 0; pointer-events: none; }
html.tg .tg-fall i { position: absolute; top: -48px; left: var(--x); width: var(--s); height: var(--s); color: var(--c); opacity: 0.85; animation: tg-drop var(--t) linear var(--w) infinite; will-change: transform; }
html.tg .tg-fall i:nth-child(odd) { --d: -46px; }
html.tg .tg-fall svg { display: block; width: 100%; height: 100%; animation: tg-sway 3.4s ease-in-out infinite alternate; }
html.tg .tg-fall i:nth-child(3n) svg { animation-duration: 4.6s; animation-direction: alternate-reverse; }
html.tg .tg-fall i:nth-child(3n + 1) svg { animation-duration: 2.8s; }
@keyframes tg-drop { to { transform: translate3d(var(--d, 54px), var(--fall, 660px), 0); } }
@keyframes tg-sway { from { transform: translateX(-12px) rotate(-32deg); } to { transform: translateX(12px) rotate(38deg); } }

/* ---------- Reviews, Visit us and an item's page ---------- */
html.tg .reviews .kick { color: #c2410c; }
html.tg .reviews h2 span { color: var(--tg-rust); }
html.tg .review.summary { border-left-color: var(--tg-rust); }
html.tg .visit { position: relative; overflow: hidden; background: var(--tg-night); }
html.tg :is(.visit, .itempage) .wrap { position: relative; z-index: 1; }
html.tg .visit .kick, html.tg .hours-title { color: var(--tg-gold); }
html.tg .visit h2 span { color: var(--tg-pumpkin); }
html.tg .visit .btn.green { background: var(--tg-gold); color: #1a0b07; }
html.tg .btn.line:hover { color: var(--tg-gold); border-color: var(--tg-gold); }
html.tg .itempage { position: relative; overflow: hidden; }
html.tg .tg-corner { display: block; position: absolute; top: -26px; right: -30px; width: 240px; height: 210px; opacity: 0.2; pointer-events: none; }
html.tg .itempage .tg-corner { opacity: 0.13; }
html.tg .tg-corner.bl { top: auto; right: auto; bottom: -40px; left: -36px; transform: rotate(180deg); }
html.tg .tg-corner svg { position: absolute; color: var(--c); }
html.tg .tg-corner svg:nth-child(1) { right: 0; top: 14px; width: 150px; height: 150px; transform: rotate(28deg); }
html.tg .tg-corner svg:nth-child(2) { right: 118px; top: 0; width: 108px; height: 108px; transform: rotate(-22deg); }
html.tg .tg-corner svg:nth-child(3) { right: 82px; top: 104px; width: 86px; height: 86px; transform: rotate(8deg); }

/* ---------- Phones and bigger screens ---------- */
@media (max-width: 359px) {
  html.tg .tg-turkey { display: none; }
}
@media (max-width: 639px) {
  html.tg .tg-fall i:nth-child(even) { display: none; }
}
@media (min-width: 640px) {
  html.tg .nav a:hover, html.tg .nav a.on { box-shadow: inset 0 -3px 0 var(--tg-gold); }
  html.tg .tg-banner { background-size: 288px 45.6px, auto, auto; }
  html.tg .tg-banner .wrap { gap: 22px; padding-top: 43px; padding-bottom: 15px; }
  html.tg .tg-banner span { font-size: 12.5px; }
  html.tg .tg-fall i { width: calc(var(--s) * 1.45); height: calc(var(--s) * 1.45); }
  html.tg .tg-pump { display: block; }
  html.tg .tg-turkey { width: 76px; height: 64px; }
}
