/* ============================================================
   Holiday banner (v1.1.0) — only loaded while a theme is showing.
   Greeting bar on top, real-photo decorations, falling items that
   sit behind the page text. Built by assets/js/holiday.js.
   ============================================================ */
@font-face{font-family:'TMH Festive';src:url('../fonts/dancing-script.woff2') format('woff2');font-weight:400 700;font-display:swap}

body.tmh-hol-on{--hol-h:46px;padding-top:var(--hol-h)}
body.tmh-hol-on .site-header{top:var(--hol-h)}

/* ---------- greeting bar ---------- */
.tmh-hol-bar{position:fixed;top:0;left:0;right:0;z-index:110;height:46px;
  display:flex;align-items:center;justify-content:center;gap:16px;padding:0 16px;
  background:var(--hol-bar,#B3122E);color:var(--hol-ink,#FFC21A);
  font-family:'TMH Festive',cursive;white-space:nowrap;overflow:hidden;box-shadow:0 1px 0 rgba(0,0,0,.18)}
.tmh-hol-bar b{font-size:27px;font-weight:700;line-height:1;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tmh-hol-bar span{font-size:23px;font-weight:500;line-height:1;opacity:.92;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tmh-hol-bar i{font-style:normal;font-size:20px;opacity:.6}

/* ---------- decorations (under the header corners + deal cards) ---------- */
.tmh-hol-top{position:absolute;left:0;right:0;top:0;height:0;z-index:99;pointer-events:none}
.tmh-hol-dec{position:absolute;display:block;height:auto;pointer-events:none;user-select:none;filter:drop-shadow(4px 8px 7px rgba(0,0,0,.32))}
.tmh-hol-dec.is-corner{filter:drop-shadow(2px 5px 6px rgba(0,0,0,.3))}
.tmh-hol-dec.is-glow{filter:drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 8px rgba(255,255,255,.45)) drop-shadow(4px 8px 7px rgba(0,0,0,.3))}
.tmh-hol-dec.is-fade{-webkit-mask:linear-gradient(to bottom,#000 62%,transparent 98%);mask:linear-gradient(to bottom,#000 62%,transparent 98%)}
.tmh-hol-thread{position:absolute;width:2px;background:linear-gradient(#e9c46a,#b8902f);pointer-events:none}
.tmh-hol-hang{transform-origin:50% 0;animation:tmhHolSwing 6s ease-in-out infinite alternate}
@keyframes tmhHolSwing{from{rotate:-2.5deg}to{rotate:2.5deg}}
.tmh-hol-top.no-hang .tmh-hol-hang,.tmh-hol-top.no-hang .tmh-hol-thread{display:none}
.tmh-hol-panel{position:absolute;left:0;right:0;top:0;height:0;z-index:4;pointer-events:none}

/* ---------- falling layer: behind the text ---------- */
.tmh-hol-host{position:relative;isolation:isolate}
.tmh-hol-fall{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
.tmh-hol-host > .container{position:relative;z-index:3}
.page-hero.tmh-hol-host h1,.page-hero.tmh-hol-host p{z-index:3}
.tmh-hol-fall .it{position:absolute;top:-100px;will-change:transform;animation:tmhHolFall linear infinite}
.tmh-hol-fall .it img{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 4px rgba(0,0,0,.28));animation:tmhHolSway ease-in-out infinite alternate}
.tmh-hol-fall .sn{position:absolute;top:-20px;border-radius:50%;will-change:transform;
  background:radial-gradient(circle,#fff 0,rgba(255,255,255,.85) 40%,rgba(255,255,255,0) 72%);animation:tmhHolFall linear infinite}
@keyframes tmhHolFall{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,var(--hol-drop,110vh),0)}}
@keyframes tmhHolSway{from{transform:translateX(-14px) rotate(-14deg)}to{transform:translateX(14px) rotate(12deg)}}

/* ---------- phones ---------- */
@media (max-width:760px){
  body.tmh-hol-on{--hol-h:38px}
  .tmh-hol-bar{height:38px;gap:0}
  .tmh-hol-bar b{font-size:20px}
  .tmh-hol-bar i,.tmh-hol-bar span{display:none}
  .tmh-hol-hang,.tmh-hol-thread{display:none}
}
@media (prefers-reduced-motion:reduce){
  .tmh-hol-fall{display:none}
  .tmh-hol-hang{animation:none}
}

/* ---------- admin preview chip (signed-in admins only) ---------- */
.tmh-hol-chip{position:fixed;left:max(14px,env(safe-area-inset-left,0px));bottom:max(14px,env(safe-area-inset-bottom,0px));z-index:120;
  display:flex;gap:10px;align-items:center;padding:9px 14px;border-radius:999px;
  background:#150829;color:#f5f2ff;font:500 13px/1.2 'Poppins',system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.35);border:1px solid rgba(255,194,26,.5)}
.tmh-hol-chip a{color:#FFC21A;font-weight:600;text-decoration:underline}
