/* JustHost Black Friday · approved one-line RU / EN / ZH artwork · 2026-11-18 */
.jhbf {
  --jhbf-strip-height: 46px;
  --jhbf-art-width: 77.046%;
  --jhbf-art-top: 0px;
  --jhbf-arrow-size: 38px;
  --jhbf-speed: 1.8s;
  --jhbf-art-ratio: 2105 / 423;
  position: relative;
  display: block;
  width: 100%;
  height: var(--jhbf-strip-height);
  overflow: visible;
  isolation: isolate;
  box-sizing: border-box;
}
.jhbf[data-locale="en"] { --jhbf-art-ratio: 2113 / 495; }
.jhbf[data-locale="zh"] { --jhbf-art-ratio: 2172 / 536; }
.jhbf .jhbf__band {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #26310c 29%, #11170b 41%, #11170b 61%, #26310c 73%, transparent);
}
.jhbf .jhbf__rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 100%);
}
.jhbf .jhbf__rail--right { left: auto; right: 0; transform: scaleX(-1); }
.jhbf .jhbf__rail::before {
  content: "";
  position: absolute;
  inset: 0 -2em 0 -2em;
  font-size: var(--jhbf-arrow-size);
  background: url("./assets/chevron.svg") repeat-x left center / 1em 1em;
  animation: jhbf-inward var(--jhbf-speed) linear infinite;
}
@keyframes jhbf-inward { from { transform: translateX(0); } to { transform: translateX(1em); } }
.jhbf .jhbf__art,
.jhbf .jhbf__shadow {
  position: absolute;
  top: var(--jhbf-art-top);
  left: 50%;
  width: var(--jhbf-art-width);
  height: var(--jhbf-art-height, auto);
  max-width: calc(100% - 16px);
  aspect-ratio: var(--jhbf-art-ratio);
  transform: translateX(-50%);
  box-sizing: border-box;
}
.jhbf .jhbf__art {
  display: block;
  z-index: 2;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  filter: none;
  -webkit-tap-highlight-color: transparent;
}
.jhbf picture { display: block; width: 100%; height: 100%; }
.jhbf img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
}
/* Fit the generated Chinese artwork's transparent vertical margins in CSS. */
.jhbf[data-locale="zh"] img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.jhbf .jhbf__art img { transition: filter .5s ease; }
.jhbf .jhbf__art:hover img,
.jhbf .jhbf__art:focus-visible img { filter: brightness(1.12) contrast(1.04); }
.jhbf .jhbf__art:focus-visible { outline: 2px solid #43849b; outline-offset: 6px; }
.jhbf .jhbf__shadow-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.jhbf .jhbf__shadow {
  filter: brightness(0) blur(2.5px);
  opacity: .78;
  transform: translate(-50%, 4.6px);
}
.jhbf[data-paused="true"] .jhbf__rail::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .jhbf .jhbf__rail::before { animation: none; }
  .jhbf .jhbf__art img { transition: none; }
}

/* Only pages rendering the campaign opt into this header layout. */
.page-header.jhbf-header {
  --header-info-offset: 40px;
}
.jhbf-header .jhbf-header-host > .container {
  display: grid;
  grid-template-columns: max-content minmax(160px, 360px) max-content;
  column-gap: 16px;
  justify-content: space-between;
  align-items: start;
  direction: ltr;
  width: calc(100% - 40px);
  max-width: 1280px;
  padding: 0;
}
.jhbf-header-host .header__info_l {
  grid-column: 1;
  grid-row: 1;
}
.jhbf-header-host .header__info_r {
  grid-column: 3;
  grid-row: 1;
  margin-right: 0;
}
.jhbf-header-host .jhbf {
  --jhbf-strip-height: 40px;
  --jhbf-art-height: calc(240px * 423 / 2105);
  --jhbf-art-width: calc(var(--jhbf-art-height) * var(--jhbf-art-ratio));
  grid-column: 2;
  grid-row: 1;
  direction: ltr;
}
.jhbf-header .header__logo-cont {
  margin-top: calc(var(--header-info-offset) + var(--blog-feed-offset, 0px));
}
@media (max-width: 1100px) {
  .page-header.jhbf-header { --header-info-offset: 104px; }
  .jhbf-header .jhbf-header-host { height: var(--header-info-offset); }
  .jhbf-header .jhbf-header-host > .container {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .jhbf-header-host .jhbf {
    --jhbf-strip-height: 64px;
    --jhbf-art-height: calc(276px * 423 / 2105);
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, calc(100% - 24px));
  }
}
@media (max-width: 767px) {
  /* The existing mobile menu is fixed and does not reserve header space. */
  .page-header.jhbf-header { padding-top: 64px; }
  .jhbf-header.page-header_has-blog-feed .header__blog-feed { margin-top: 40px; }
}
