/*
 * Black Friday 2026 in the Hero Hub (temporary, remove after the sale with hub-black-friday.js and the [data-bf] blocks).
 * One navy plate: a gold tilted tag, the sale price over the struck regular one, the code as a coupon, the countdown.
 */
.hub-bf[hidden] { display: none !important; }
.hub-bf {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px;
  margin: 6px 0 0; padding: 16px 14px 12px; border: 3px solid var(--cw-ink); color: var(--cw-surface); background: var(--cw-navy);
}
.hub-bf__tag {
  position: absolute; top: -13px; left: 12px; padding: 3px 9px; border: 2px solid var(--cw-ink); transform: rotate(-3deg);
  color: var(--cw-ink); background: #F2C94C; font-size: .66rem; font-weight: 800; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase;
}
.hub-bf .hub-bf__price { grid-row: span 2; display: grid; justify-items: start; margin: 0; color: var(--cw-surface); line-height: 1; }
.hub-bf .hub-bf__price b { color: #F2C94C; font-family: var(--cw-font-display) !important; font-size: 2.3rem; font-weight: 900; letter-spacing: -.02em; }
.hub-bf .hub-bf__price s { color: var(--cw-line); font-size: .9rem; font-weight: 700; }
.hub-bf .hub-bf__code { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; color: var(--cw-surface); font-size: .78rem; font-weight: 700; }
.hub-bf .hub-bf__code b {
  padding: 2px 8px; border: 2px dashed #F2C94C; color: #F2C94C; font-size: .9rem; font-weight: 900; letter-spacing: .1em;
}
.hub-bf .hub-bf__timer { margin: 0; color: var(--cw-line); font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.hub-bf .hub-bf__timer b { color: var(--cw-surface); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Home: a thin navy ticker across the top of the greeting, for members who do not own Hero Project. */
html:not(.hp-offer) .hub-bf-ticker { display: none !important; }
.hub-bf-ticker {
  /* The greeting lines its items up at the start: stretch the ticker to the greeting's width, or the whole text
     row would set its width and the page would scroll sideways. */
  position: relative; z-index: 2; display: block; align-self: stretch; min-width: 0; max-width: none; overflow: hidden;
  margin: -26px -14px 14px; padding: 7px 0;
  border-bottom: 3px solid var(--cw-ink); color: var(--cw-surface); background: var(--cw-navy); text-decoration: none;
}
.hub-bf-ticker:hover { color: var(--cw-surface); }
.hub-bf-ticker__track { display: flex; width: max-content; }
.hub-bf-ticker__run { display: flex; align-items: center; flex: none; }
.hub-bf-ticker__run > * { flex: none; }
.hub-bf-ticker__run > span { padding: 0 10px; color: var(--cw-surface); font-size: .74rem; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.hub-bf-ticker b { color: #F2C94C; font-weight: 900; }
.hub-bf-ticker s { color: var(--cw-line); font-weight: 700; }
.hub-bf-ticker i { color: #F2C94C; font-size: .7rem; font-style: normal; }
@media (min-width: 1101px) { .hub-bf-ticker { margin: -40px -40px 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .hub-bf-ticker__track { animation: hubBfTicker 26s linear infinite; }
  .hub-bf-ticker:hover .hub-bf-ticker__track { animation-play-state: paused; }
}
@keyframes hubBfTicker { to { transform: translateX(-50%); } }
