/*
  Video contest 2026 slide in the homepage split hero (templates/pages/homepage/video-contest-banner.html).
  From the design handoff video-contest-home-banner (rev5), "SLIDE STYLES", kept rule for rule so a later revision
  can be diffed in, with these changes for the split hero:
    - every rule is scoped to .shp-split, so the hero's own slide rules don't win;
    - .shpcb has no position:relative (the slide is already position:absolute, which anchors the stretched link and
      the pause button);
    - .cbR__in fills the hero's slot (height:100%) instead of the handoff's aspect-ratio (390/223, 592/237);
    - the desktop slide (slot 480px and wider) scales with the slot: every size is in cqw (592px slot = the handoff's
      px, 1:1), so on a 790px slot (1600px screens) it fills the banner instead of sitting small in a corner;
    - from 801px wide the hero lays its bar (side name, pause, dots) over the slide's bottom 40px and shows its
      previous / next chevrons on hover (14px from each edge, 36px wide): the slide keeps the bottom strip clear,
      starts the text at least 56px from the left like the other slides, and is a little tighter so it still fits;
    - desktop slots under 675px wide use the short grey line ("Watch, like & comment on YouTube.") so it doesn't
      run under the photos;
    - .no-dlg hides "How it works" in a browser without <dialog> (the script sets it);
    - Bebas Neue comes from the theme (assets/fonts), not Google Fonts.
  The slide switches layout by its own width (container query at 480px), not the screen.
*/
@font-face{font-family:"Bebas Neue";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/bebas-neue-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

.shp-split .shpcb{display:block;container-type:inline-size;font-family:Poppins,Arial,sans-serif}
.shp-split .shpcb *{box-sizing:border-box}
.shp-split .cbR__link{display:block;color:inherit}
  /* mobile sizes scale with the slot width (cqw): a 320px phone gets the same layout, smaller */
.shp-split .cbR__in{display:grid;grid-template-columns:minmax(0,1fr) 30cqw;align-items:center;gap:2cqw;height:100%;padding:4.4cqw 4.6cqw;background:#000;color:#fff;overflow:hidden}
.shp-split .cbR__txt{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
  /* speech bubble: the prize is the headline */
.shp-split .cbR__bub{position:relative;margin:0 0 3.4cqw;padding:2.4cqw 3cqw 1.4cqw;border:1.5px solid #fff;border-radius:0}
.shp-split .cbR__bub::after{content:"";position:absolute;left:4cqw;bottom:-2.9cqw;border-right:3.6cqw solid transparent;border-top:2.9cqw solid #fff}
.shp-split .shpcb .cbR__h{margin:0;font-family:"Bebas Neue",Impact,sans-serif;font-weight:400;font-size:6.8cqw;line-height:.92;letter-spacing:.4px;color:#fff;text-transform:uppercase}
.shp-split .cbR__h>span{display:block;color:#FFCC00}
  /* the rest of the prize, inside the bubble: about half the headline size */
  /* "5 winners" chip: square, yellow, black text; on phones it sits on its own line under the service */
.shp-split .cbR__chip{position:absolute;z-index:1;top:0;right:3cqw;transform:translateY(-50%);padding:.4cqw 1.8cqw;background:#FFCC00;color:#111;font:600 2.9cqw/1.3 Poppins,Arial,sans-serif;white-space:nowrap}
.shp-split .cbR__h small{display:block;white-space:nowrap;margin-top:1.4cqw;font:400 3.4cqw/1.25 Poppins,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#fff}
  /* each line is a whole phrase, so it never breaks inside "Salon-Prepared service" */
.shp-split .cbR__p{margin:0;font:400 3.1cqw/1.4 Poppins,Arial,sans-serif;color:#C9C4BD}
.shp-split .cbR__p>span{display:block}
.shp-split .cbR__lg{display:none}
.shp-split .cbR__sm{display:inline}
.shp-split .cbR__p b{color:#fff;font-weight:600}
.shp-split .cbR__nw{white-space:nowrap}
.shp-split .cbR__act{display:flex;align-items:center;flex-wrap:nowrap;gap:1.6cqw;margin-top:3cqw}
.shp-split .cbR__btn{display:inline-flex;flex:none;white-space:nowrap;align-items:center;gap:1.4cqw;min-height:max(24px,9.6cqw);padding:0 2.6cqw;border-radius:0;background:#FFCC00;color:#111;font:600 3.4cqw Poppins,Arial,sans-serif;transition:background .2s}
.shp-split .cbR__btn svg{width:4.2cqw;height:4.2cqw}
  /* contest facts next to the button: "5 winners · 18 days left" (days only on the desktop slide) */
.shp-split .cbR__meta{font:400 3cqw Poppins,Arial,sans-serif;color:#C9C4BD;white-space:nowrap}
.shp-split .cbR__meta b{color:#fff;font-weight:600}
  /* end-date tag, top-right of the photos: "Ends Dec 14", then "5 days left" in the last week, "Last day!" */
.shp-split .cbR__tag{position:absolute;z-index:5;pointer-events:none;top:0;right:0;padding:.9cqw 1.8cqw;background:#2B2B2B;color:#fff;font:600 2.6cqw/1.2 Poppins,Arial,sans-serif;white-space:nowrap}
.shp-split .cbR__tag.is-soon{background:#FFCC00;color:#111}
.shp-split .cbR__tag:empty{display:none}
  /* "Watch now" is the link; its ::after stretches over the whole slide so a click anywhere opens the contest page */
.shp-split .cbR__go{text-decoration:none}
.shp-split .cbR__go::after{content:"";position:absolute;inset:0;z-index:1}
.shp-split .shpcb:hover .cbR__go{background:#FFD62E}
.shp-split .cbR__go:focus-visible{outline:none}
.shp-split .cbR__go:focus-visible::after{outline:3px solid #FFCC00;outline-offset:-3px}
  /* the six finalists in a row: one in front, the neighbours smaller at the sides. Every 3.5 s the row glides one
     step (0.7 s) and then stays still. No continuous spinning */
.shp-split .cbR__art{position:relative;height:100%;overflow:hidden}
.shp-split .cbR__flow{position:absolute;inset:0;transform:translateX(-1cqw)}
  /* a little left of centre: more room from the right edge */
.shp-split .cbR__flow img{--w:12.6cqw;position:absolute;left:50%;top:50%;width:var(--w);height:calc(var(--w)*16/9);margin:calc(var(--w)*-8/9) 0 0 calc(var(--w)/-2);object-fit:cover;border-radius:0;background:#222;box-shadow:0 0 0 1px rgba(255,255,255,.18);opacity:0;transform:translateX(0) scale(.6);transition:transform .7s cubic-bezier(.4,0,.2,1),opacity .7s,filter .7s}
.shp-split .cbR__flow img[data-pos="0"]{opacity:1;transform:none;z-index:3}
.shp-split .cbR__flow img[data-pos="-1"]{opacity:1;transform:translateX(-82%) scale(.78);filter:brightness(.55);z-index:2}
.shp-split .cbR__flow img[data-pos="1"]{opacity:1;transform:translateX(82%) scale(.78);filter:brightness(.55);z-index:2}
.shp-split .cbR__flow img[data-pos="-2"]{transform:translateX(-140%) scale(.6)}
.shp-split .cbR__flow img[data-pos="2"]{transform:translateX(140%) scale(.6)}
  /* pause control (WCAG 2.2.2): outside the link, bottom-right corner */
.shp-split .cbR__pause{position:absolute;right:4.6cqw;bottom:4.4cqw;z-index:3;display:grid;place-items:center;width:max(24px,7.2cqw);height:max(24px,7.2cqw);padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(0,0,0,.6);color:#fff;cursor:pointer}
.shp-split .cbR__pause svg{width:50%;height:50%}
.shp-split .cbR__pause .i-play,.shp-split .shpcb.is-paused .cbR__pause .i-pause{display:none}
.shp-split .shpcb.is-paused .cbR__pause .i-play{display:block}
.shp-split .cbR__pause:hover{background:rgba(0,0,0,.85)}
.shp-split .cbR__info:hover{color:#FFCC00}
  /* info button, left of the pause button */
  /* "How it works": a text button beside Watch now, above the stretched link */
.shp-split .cbR__info{position:relative;z-index:2;display:inline-flex;align-items:center;gap:1cqw;min-height:max(24px,9.6cqw);padding:0;border:0;background:none;color:#fff;font:500 3.2cqw Poppins,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.shp-split .cbR__info svg{width:4.4cqw;height:4.4cqw;flex:none}
.shp-split .cbR__info:focus-visible{outline:3px solid #FFCC00;outline-offset:2px}
  /* "How it works" dialog (SHP UI: white card, charcoal text and button). Desktop: centred popup.
     Phones (600px and below): bottom drawer that slides up */
.shp-split .cbR__dlg{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:28px 28px 24px;border:0;border-radius:8px;background:#fff;color:#3A3A3A;font-family:Poppins,Arial,sans-serif;box-shadow:0 24px 60px rgba(0,0,0,.35);overflow-y:auto}
.shp-split .cbR__dlg::backdrop{background:rgba(0,0,0,.55)}
.shp-split .cbR__grab{display:none}
.shp-split .cbR__x{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#F7F6F4;color:#2B2B2B;cursor:pointer}
.shp-split .cbR__x svg{width:20px;height:20px}
.shp-split .cbR__x:hover{background:#ECEAE6}
.shp-split .cbR__x:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}
.shp-split .cbR__ah{margin:0 48px 12px 0;font:600 20px/1.3 Poppins,Arial,sans-serif;color:#2B2B2B}
.shp-split .cbR__al{margin:0 0 20px;padding:0 0 0 20px;font:400 15px/1.5 Poppins,Arial,sans-serif;color:#3A3A3A}
.shp-split .cbR__al li{margin:0 0 8px}
.shp-split .cbR__al li::marker{color:#2B2B2B}
.shp-split .cbR__al b{color:#2B2B2B;font-weight:600}
.shp-split .cbR__dgo{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;background:#FFCC00;color:#111;font:600 16.5px Poppins,Arial,sans-serif;text-decoration:none}
.shp-split .cbR__dgo svg{width:18px;height:18px}
.shp-split .cbR__dgo:hover{background:#FFD62E}
.shp-split .cbR__dgo:focus-visible{outline:2px solid #2B2B2B;outline-offset:2px}
@media (max-width:600px){
.shp-split .cbR__dlg{width:100%;max-width:none;max-height:88dvh;margin:auto 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom));border-radius:8px 8px 0 0}
.shp-split .cbR__dlg[open]{animation:cbRup .32s cubic-bezier(.32,.72,0,1)}
.shp-split .cbR__grab{display:block;width:40px;height:4px;margin:0 auto 16px;border-radius:4px;background:#C9C9C9}
.shp-split .cbR__x{top:12px;right:12px}
.shp-split .cbR__ah{font-size:19px}

  }
@keyframes cbRup{from{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){
.shp-split .cbR__dlg[open]{animation:none}
}
.shp-split .cbR__pause:focus-visible{outline:3px solid #FFCC00;outline-offset:2px}
@container (min-width:480px){
.shp-split .cbR__in{grid-template-columns:minmax(0,1fr) 188px;gap:12px;padding:24px 28px}
.shp-split .cbR__bub{margin-bottom:14px;padding:14px 16px 6px}
.shp-split .cbR__bub::after{left:20px;bottom:-11px;border-right-width:14px;border-top-width:11px}
.shp-split .shpcb .cbR__h{font-size:31px}
.shp-split .cbR__h small{margin-top:4px;font-size:14px;line-height:1.2}
.shp-split .cbR__chip{right:14px;padding:2px 8px;font-size:12.5px;line-height:16px}
.shp-split .cbR__p{font-size:13.5px;line-height:1.35}
.shp-split .cbR__act{gap:12px;margin-top:12px}
.shp-split .cbR__btn{flex:none;gap:8px;min-height:44px;padding:0 16px;font-size:15px}
.shp-split .cbR__btn svg{width:18px;height:18px}
.shp-split .cbR__meta{font-size:13px}
.shp-split .cbR__tag{padding:4px 8px;font-size:11.5px}
.shp-split .cbR__lg{display:inline}
.shp-split .cbR__sm{display:none}
.shp-split .cbR__flow img{--w:72px}
.shp-split .cbR__flow{transform:translateX(-14px)}
.shp-split .cbR__pause{right:28px;bottom:24px;width:30px;height:30px}
.shp-split .cbR__info{gap:6px;min-height:44px;padding:0 4px;font-size:14px}
.shp-split .cbR__info svg{width:18px;height:18px}

  }
  /* reduced motion: the ring stands still and the pause button is not needed */
@media (prefers-reduced-motion:reduce){
.shp-split .cbR__flow img{transition:none}
.shp-split .cbR__pause{display:none}
.shp-split .cbR__btn{transition:none}
}


/* Added for the theme: no <dialog> support, no "How it works" (the contest page explains it) */
.shp-split .cbR.no-dlg .cbR__info{display:none}


/* ---- Added for the split hero (see the note at the top) ---- */

/* Desktop slide scales with its slot: the handoff's px divided by 5.92 (592px slot = 1:1) */
@container (min-width:480px){
  .shp-split .cbR__in{grid-template-columns:minmax(0,1fr) 31.76cqw;gap:2.03cqw;padding:4.05cqw 4.73cqw}
  .shp-split .cbR__bub{margin-bottom:2.36cqw;padding:2.36cqw 2.7cqw 1.01cqw}
  .shp-split .cbR__bub::after{left:3.38cqw;bottom:-1.86cqw;border-right-width:2.36cqw;border-top-width:1.86cqw}
  .shp-split .shpcb .cbR__h{font-size:5.24cqw}
  .shp-split .cbR__h small{margin-top:.68cqw;font-size:2.36cqw}
  .shp-split .cbR__chip{right:2.36cqw;padding:.34cqw 1.35cqw;font-size:2.11cqw;line-height:2.7cqw}
  .shp-split .cbR__p{font-size:2.28cqw}
  .shp-split .cbR__act{gap:2.03cqw;margin-top:2.03cqw}
  .shp-split .cbR__btn{gap:1.35cqw;min-height:max(24px,7.43cqw);padding:0 2.7cqw;font-size:2.53cqw}
  .shp-split .cbR__btn svg{width:3.04cqw;height:3.04cqw}
  .shp-split .cbR__meta{font-size:2.2cqw}
  .shp-split .cbR__tag{padding:.68cqw 1.35cqw;font-size:1.94cqw}
  .shp-split .cbR__flow img{--w:12.16cqw}
  .shp-split .cbR__flow{transform:translateX(-2.36cqw)}
  .shp-split .cbR__pause{right:4.73cqw;bottom:4.05cqw;width:max(24px,5.07cqw);height:max(24px,5.07cqw)}
  .shp-split .cbR__info{gap:1.01cqw;min-height:max(24px,7.43cqw);padding:0 .68cqw;font-size:2.36cqw}
  .shp-split .cbR__info svg{width:3.04cqw;height:3.04cqw}
}
/* Desktop slots under 675px: the short grey line */
@container (min-width:480px) and (max-width:674px){
  .shp-split .cbR__lg{display:none}
  .shp-split .cbR__sm{display:inline}
}

/* From 801px: clear of the hero's bar (bottom 40px) and its chevrons (left 14-50px) */
@media (min-width:801px){
  /* phone layout in a desktop slot (screens 801 to about 990px): a narrower photo column and text a size down */
  .shp-split .cbR__in{grid-template-columns:minmax(0,1fr) 24cqw;padding:3cqw 4.6cqw 44px 56px}
  .shp-split .cbR__bub{margin-bottom:2.6cqw}
  .shp-split .shpcb .cbR__h{font-size:5.6cqw}
  .shp-split .cbR__h small{font-size:3cqw}
  .shp-split .cbR__chip{font-size:2.6cqw}
  .shp-split .cbR__p{font-size:2.75cqw}
  .shp-split .cbR__act{margin-top:2cqw}
  .shp-split .cbR__btn{min-height:max(24px,8.4cqw);font-size:3cqw}
  .shp-split .cbR__btn svg{width:3.7cqw;height:3.7cqw}
  .shp-split .cbR__info{min-height:max(24px,8.4cqw);font-size:2.85cqw}
  .shp-split .cbR__info svg{width:3.9cqw;height:3.9cqw}
  .shp-split .cbR__flow img{--w:10.5cqw}
  .shp-split .cbR__pause{bottom:44px}
  @container (min-width:480px){
    .shp-split .cbR__in{grid-template-columns:minmax(0,1fr) 31.76cqw;padding:2.7cqw 4.73cqw 44px max(56px,4.73cqw)}
    .shp-split .cbR__bub{margin-bottom:2.03cqw;padding:1.69cqw 2.7cqw .84cqw}
    .shp-split .shpcb .cbR__h{font-size:4.73cqw}
    .shp-split .cbR__h small{font-size:2.36cqw}
    .shp-split .cbR__chip{font-size:2.11cqw}
    .shp-split .cbR__p{font-size:2.28cqw}
    .shp-split .cbR__act{margin-top:1.69cqw}
    .shp-split .cbR__btn{min-height:max(24px,6.76cqw);font-size:2.53cqw}
    .shp-split .cbR__btn svg{width:3.04cqw;height:3.04cqw}
    .shp-split .cbR__info{min-height:max(24px,6.76cqw);font-size:2.36cqw}
    .shp-split .cbR__info svg{width:3.04cqw;height:3.04cqw}
    .shp-split .cbR__flow img{--w:12.16cqw}
    .shp-split .cbR__pause{bottom:44px}
  }
}

/* STORE: desktop (801px+), sized like the Black Friday banner beside it, so the two slides read as one hero. Measured
   on that banner (792px slot): button 35px tall, 12.4px text, 16px side padding (min 28px / 11px / 12px, as there);
   headline about 33px; small lines about 13px; the content block centred in the space above the hero's bar. All in
   cqw of the slot (the hero's slots keep one shape, 2.5:1), so it scales with the slot like the other banner. */
@media (min-width:801px){
  @container (min-width:480px){
    .shp-split .cbR__link{height:100%}
    .shp-split .cbR__in{grid-template-columns:minmax(0,1fr) 31.76cqw;align-items:center;padding:4cqw 4.73cqw 44px max(56px,5.5cqw)}
    .shp-split .cbR__txt{align-self:center}
    .shp-split .cbR__bub{margin-bottom:2.4cqw;padding:1.5cqw 2.3cqw .9cqw}
    .shp-split .cbR__bub::after{left:2.6cqw;bottom:-1.5cqw;border-right-width:1.9cqw;border-top-width:1.5cqw}
    .shp-split .shpcb .cbR__h{font-size:max(22px,4.2cqw)}
    .shp-split .cbR__h small{margin-top:.5cqw;font-size:max(11px,1.75cqw)}
    .shp-split .cbR__chip{right:1.9cqw;padding:.25cqw 1cqw;font-size:max(10px,1.57cqw);line-height:1.35}
    .shp-split .cbR__p{font-size:max(11px,1.65cqw);line-height:1.35}
    .shp-split .cbR__act{gap:max(10px,1.6cqw);margin-top:max(12px,2.4cqw)}
    .shp-split .cbR__btn{gap:max(6px,.9cqw);min-height:0;height:max(28px,4.42cqw);padding:0 max(12px,2cqw);font-size:max(11px,1.57cqw)}
    .shp-split .cbR__btn svg{width:max(13px,1.7cqw);height:max(13px,1.7cqw)}
    .shp-split .cbR__info{gap:max(5px,.8cqw);min-height:0;height:max(28px,4.42cqw);padding:0 2px;font-size:max(11px,1.57cqw)}
    .shp-split .cbR__info svg{width:max(13px,1.8cqw);height:max(13px,1.8cqw)}
    .shp-split .cbR__tag{padding:.45cqw 1cqw;font-size:max(10px,1.57cqw)}
    .shp-split .cbR__flow img{--w:11.2cqw}
    .shp-split .cbR__pause{width:max(24px,4.42cqw);height:max(24px,4.42cqw);bottom:44px}
  }
}
