/* Seasonal promo (EOY 2026): countdown-first top bar, copied from the eoy-orlando-4-3-99 prototype
   (src/styles/seasonal.css, "Component A" + "countdown-first bar"). The prototype only gives Black Friday
   this layout; for now only Black Friday runs here.
   js/season-promo.js shows it by date (or the season forced with ?showBanner=) and sets data-season on the bar. */

/* ---------- Season colours (prototype tokens) ---------- */
.stb[data-season=bf]{--s-bg:#0b0b0f;--s-on:#fff;--s-accent:#f5b300;--s-cta-bg:#f5b300;--s-cta-text:#0b0b0f;--s-rule:#f5b300}

/* ---------- Bar ---------- */
.stb[hidden]{display:none!important}
.stb{position:sticky;top:0;z-index:60;display:flex;align-items:stretch;min-height:64px;overflow:hidden;
  background:var(--s-bg,#0b0b0f);color:var(--s-on,#fff);border-bottom:1px solid color-mix(in srgb,var(--s-rule,#f5b300) 45%,transparent);
  font-family:Roboto,Arial,sans-serif;text-decoration:none}
.stb:hover,.stb:focus,.stb:visited{color:var(--s-on,#fff);text-decoration:none}
.stb:active{filter:brightness(.96)}
.stb:focus-visible{outline:3px solid transparent;outline-offset:-3px}
.stb::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none}
.stb:focus-visible::after{box-shadow:inset 0 0 0 2px var(--s-bg),inset 0 0 0 5px var(--s-on)}
.stb-inner{position:relative;z-index:1;display:flex;flex:1 1 auto;flex-wrap:nowrap;align-items:center;justify-content:center;gap:24px;min-width:0}
.stb-tiles-wrap,.stb-stack,.stb-cta{flex-shrink:0}
.stb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Countdown tiles */
.stb-tiles,.stb-tile-group{display:flex;align-items:center}
.stb-tile-colon{width:12px;color:rgba(255,255,255,.3);font-size:16px;font-weight:700;text-align:center}
.stb-tile{display:grid;justify-items:center;gap:4px;min-width:40px;border:1px solid rgba(255,255,255,.12);border-radius:4px;background:rgba(255,255,255,.06)}
.stb-tile-num{color:var(--s-accent);font-size:18px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.stb-tile-unit{color:rgba(255,255,255,.7);font-size:10px;font-weight:700;line-height:1;letter-spacing:.08em;text-transform:uppercase}

/* Wordmark over (or beside) the message */
.stb-stack{display:grid;gap:4px;flex-shrink:1;min-width:0}
.stb-word{font-family:Montserrat,"Arial Black",Arial,sans-serif;font-size:26px;font-weight:900;line-height:1;letter-spacing:-.01em;text-transform:uppercase;white-space:nowrap}
/* Montserrat's overlapping contours: paint the stroke first, fill over it with the bar colour. */
.stb-word-outline{color:var(--s-bg);-webkit-text-stroke:2.5px var(--s-accent);paint-order:stroke fill}
@supports not (-webkit-text-stroke:1px black){.stb-word-outline{color:var(--s-accent)}}
@media (forced-colors:active){.stb-word-outline{color:CanvasText;-webkit-text-stroke:0}}
.stb-word-solid{color:var(--s-on)}
.stb-stack-msg{font-size:15px;font-weight:400;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stb-copy--mobile{display:none}
.stb:hover .stb-stack-msg,.stb:focus-visible .stb-stack-msg{text-decoration:underline;text-underline-offset:3px}

/* CTA pill */
.stb-cta{border-radius:999px;background:var(--s-cta-bg);color:var(--s-cta-text);font-size:14px;font-weight:700;line-height:1;letter-spacing:.02em;text-transform:uppercase;transition:background-color .2s ease,color .2s ease}
@media (hover:hover){.stb:hover .stb-cta{background:var(--s-on);color:var(--s-bg)}}
.stb:focus-visible .stb-cta,.stb:active .stb-cta{background:var(--s-on);color:var(--s-bg)}
@media (prefers-reduced-motion:reduce){.stb-cta{transition:none}}

/* Spacing */
.stb{padding:0 0 0 16px}
.stb-inner{padding:8px 16px 8px 0}
.stb-tile{padding:4px 8px}
.stb-cta{padding:12px 24px}
@media (min-width:768px){.stb{padding-left:24px}.stb-inner{padding-right:24px}}

/* Desktop: one line, TIMER > WORDMARK > DETAILS > CTA. Below 1024 the wordmark stacks over the details. */
@media (min-width:1024px){
  .stb{min-height:56px}
  .stb-stack{display:flex;align-items:center;gap:16px}
  .stb-word{font-size:32px}
  .stb-word-outline{-webkit-text-stroke-width:3px}
}

/* Phones: one row, no seconds, no CTA pill (the whole bar is the link), short copy. */
@media (max-width:767px){
  .stb-inner{gap:16px}
  .stb-tile-group--s,.stb-cta{display:none}
  .stb-tile{min-width:32px}
  .stb-tile{padding:4px}
  .stb-tile-num{font-size:16px}
  .stb-word{font-size:20px}
  .stb-word-outline{-webkit-text-stroke-width:2px}
  .stb-stack-msg{font-size:13px}
  .stb-copy--desktop{display:none}
  .stb-copy--mobile{display:block}
}


/* ---------- Las Vegas fit ---------- */
/* Sticks under the logo bar while that one is sticky (phones), below its z-index. */
.stb-scope>.stb{top:var(--stb-top,0px);z-index:19}
