/* The animated store banner (2026-11-26). Each slide: text on the left, ONE hero picture inside a colour circle on the right.
   Order of the 8-second loop: the circle's outline draws itself, the picture blinks on like a neon sign, then a light beam scans across it and turns the blueprint into full colour.
   Used when a Store banner has a Title / Hero picture (Admin > Store banners). Plain picture banners still work as before. */
.bn.hero{height:auto;aspect-ratio:4/1;background:#eef3fb}
.bn.hero .bn-slide{container-type:inline-size}
.hb{position:absolute;inset:0;display:block;overflow:hidden;background:linear-gradient(110deg,#fff 0%,var(--l1) 100%);color:var(--c1);text-decoration:none}
.th-green{--c1:#0a5032;--c2:#16aa64;--l1:#d9f2e5;--b1:#16aa64;--b2:#0a5032}
.th-amber{--c1:#a84d00;--c2:#f59a0c;--l1:#fff1d6;--b1:#ffb938;--b2:#d9740a}
.th-blue{--c1:#0f2d82;--c2:#2864dc;--l1:#dce8fd;--b1:#2864dc;--b2:#0f2d82}
.th-purple{--c1:#3c1e78;--c2:#824bd7;--l1:#ece2fa;--b1:#824bd7;--b2:#3c1e78}
.th-red{--c1:#8f1d1d;--c2:#e24545;--l1:#fde7e7;--b1:#f06060;--b2:#a31f1f}
.th-steel{--c1:#1f2937;--c2:#64748b;--l1:#eceff4;--b1:#5b6677;--b2:#161d2a}
.htx{position:absolute;left:max(5.5cqw,64px);top:0;bottom:0;width:42cqw;display:flex;flex-direction:column;justify-content:center;gap:.9cqw;z-index:3}
.hlg img{height:4.6cqw;width:auto;display:block;object-fit:contain}
.bn .hb img{background:none!important;object-fit:contain}   /* the phone rule of ue-store.css gives every banner picture a navy back; these must stay see-through */
.htx h2{margin:0;font-size:2.9cqw;line-height:1.1;font-weight:800;color:var(--c1)}
.htx p{margin:0;font-size:1.5cqw;color:#3a4a6b}
.hbt{width:max-content;background:linear-gradient(135deg,var(--c1),var(--c2));color:#fff;font-weight:800;font-size:1.8cqw;padding:.8cqw 2.6cqw;border-radius:9cqw;margin-top:.3cqw;box-shadow:0 .5cqw 1.4cqw #0a226a40}
.hbl{position:absolute;right:7cqw;top:-6.5cqw;width:38cqw;height:38cqw;border-radius:50%;background:linear-gradient(135deg,var(--b1),var(--b2));z-index:1;box-shadow:0 0 0 1.4cqw #ffffff66}
.hbl:after{content:"";position:absolute;inset:0;border-radius:50%;background:repeating-linear-gradient(0deg,#ffffff12 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#ffffff12 0 1px,transparent 1px 22px)}
.hr{position:absolute;right:3cqw;top:-10.5cqw;width:46cqw;height:46cqw;z-index:1;overflow:visible}
.hr circle{fill:none;stroke:var(--c2);stroke-width:.7;opacity:.9;stroke-dasharray:1;stroke-dashoffset:0}
.hst{position:absolute;right:7cqw;top:0;bottom:0;width:38cqw;display:flex;align-items:center;justify-content:center;z-index:2}
.hw{position:relative;display:inline-block;filter:drop-shadow(0 1.1cqw 1cqw #00000055)}
.bn .hb .hw img{display:block;width:auto;height:auto;max-width:33cqw;max-height:21cqw;object-fit:contain;background:none}
.hs.dark .hbl{background:radial-gradient(circle at 50% 40%,var(--b1),var(--b2) 75%)}
.hs.wide .hw img{max-width:30cqw}
.hs.badge .hw{background:#fff;border-radius:50%;width:22cqw;height:22cqw;display:grid;place-items:center;box-shadow:0 1cqw 2.4cqw #0000004d,0 0 0 .8cqw #ffffff55;filter:none}
.bn .hb.badge .hw img,.hs.badge .hw img{max-width:18.6cqw;max-height:none}
.hw .bp{position:absolute;inset:0;width:100%;height:100%;filter:grayscale(1) brightness(.8) contrast(1.4) sepia(1) hue-rotate(180deg) saturate(3);opacity:.85;mix-blend-mode:screen}
.hs.badge .hw .bp{inset:auto;width:18.6cqw;height:auto;filter:grayscale(1) brightness(1.2) contrast(2) opacity(.55)}
.scan{position:absolute;top:-6%;bottom:-6%;left:0;width:.28cqw;background:linear-gradient(#0000,#9fd0ff,#0000);box-shadow:0 0 1.6cqw .5cqw #5ea2ff;opacity:0;pointer-events:none}
.hs.badge .scan{top:8%;bottom:8%}
/* ---- the motion: only the slide on screen animates, so it starts again each time a slide comes round ---- */
.bn-slide.on .hr circle{stroke-dashoffset:1;animation:hTrace 8s ease-in-out infinite}
.bn-slide.on .hw{opacity:0;animation:hBlink 8s linear infinite}
.bn-slide.on .hw .col{position:relative;clip-path:inset(0 100% 0 0);animation:hColor 8s ease-in-out infinite}
.bn-slide.on .scan{animation:hScan 8s ease-in-out infinite}
.bn-slide.on .hst:before{content:"";position:absolute;width:12cqw;height:12cqw;border-radius:50%;border:.4cqw solid #ffffffb0;opacity:0;animation:hRipple 8s ease-out infinite}
.bn-slide.on .htx>*{animation:hSlide .7s ease-out both}.bn-slide.on .htx h2{animation-delay:.1s}.bn-slide.on .htx p{animation-delay:.2s}.bn-slide.on .hbt{animation-delay:.3s}
.hw .col{position:relative}
@keyframes hTrace{0%{stroke-dashoffset:1}22%,92%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes hBlink{0%,22%{opacity:0}23%{opacity:1}25%{opacity:.1}27%{opacity:1}29%{opacity:.2}31%,92%{opacity:1}100%{opacity:0}}
@keyframes hColor{0%,32%{clip-path:inset(0 100% 0 0)}62%,90%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 100% 0 0)}}
@keyframes hScan{0%,32%{left:0;opacity:1}62%{left:100%;opacity:1}65%{left:100%;opacity:0}100%{left:0;opacity:0}}
@keyframes hRipple{0%,22%{transform:scale(.3);opacity:0}24%{opacity:.8}36%{transform:scale(2.6);opacity:0}100%{opacity:0}}
@keyframes hSlide{from{opacity:0;transform:translateX(-3cqw)}to{opacity:1;transform:none}}
.bn.hero .bn-dots b{background:rgba(10,34,96,.25)}.bn.hero .bn-dots b.on{background:rgba(10,34,96,.7)}
.bn.hero .bn-ar{background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(0,0,0,.18)}
@media(max-width:1100px){.bn.hero .bn-dots{left:64px;right:auto;justify-content:flex-start}}   /* dots under the text column, off the circle */
/* phone: taller banner, bigger words, smaller circle */
@container (max-width:700px){
  .hb{min-height:0}
}
@media(max-width:700px){
  /* 2026-11-27: text column ends at 55cqw, the circle starts at 56cqw and is centred on the picture (no overlap at 320-700 px) */
  .bn.hero{aspect-ratio:2.05/1;height:auto}
  .htx{left:4.5cqw;width:47cqw;gap:1.4cqw}
  .hlg img{height:6.4cqw}
  .htx h2{font-size:4.6cqw}
  .htx p{display:none}
  .hbt{font-size:3.6cqw;padding:1.3cqw 4cqw}
  /* 2026-11-27 (phone): the whole circle and its ring stay INSIDE the banner (it used to run off the right edge and look cut) */
  .hbl{right:3cqw;top:2.4cqw;width:44cqw;height:44cqw}
  .hr{right:1.15cqw;top:.55cqw;width:47.7cqw;height:47.7cqw}
  .hst{right:3cqw;width:44cqw}
  .bn .hb .hw img{max-width:31cqw;max-height:27cqw}
  .hs.wide .hw img{max-width:31cqw}
  .hs.badge .hw{width:30cqw;height:30cqw}.bn .hb.badge .hw img,.hs.badge .hw img{max-width:24cqw}.hs.badge .hw .bp{width:24cqw}
  .bn.hero .bn-dots{left:16px;right:auto;justify-content:flex-start;bottom:7px}   /* dots under the button, off the circle */
}
@media(prefers-reduced-motion:reduce){   /* no movement: show the finished picture at once */
  .bn-slide.on .hr circle,.bn-slide.on .hw,.bn-slide.on .hw .col,.bn-slide.on .htx>*{animation:none!important}
  .bn-slide.on .hr circle{stroke-dashoffset:0!important}.bn-slide.on .hw{opacity:1!important}.bn-slide.on .hw .col{clip-path:none!important}
  .scan,.hst:before{display:none!important}.hw .bp{display:none!important}
}
