/* S8 t26 homepage overlay (local unpublished candidate).
   Compact default catalog, view-all, streamer placement.
   Loaded last. Does not restyle unrelated pages. */

.s8v2-viewall-wrap{
  margin: 16px 0 8px;
  display: flex;
  justify-content: center;
}
.s8v2-viewall-wrap input{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.s8v2-viewall{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #12382f;
  background: #fffdf8;
  color: #12382f;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}
.s8v2-viewall:hover,
.s8v2-viewall:focus-visible{
  background: #f4fffb;
}
.s8v2-viewall-wrap input:focus-visible + .s8v2-viewall{
  outline: 2px solid #12382f;
  outline-offset: 2px;
}
.s8v2-va-less{display:none}
.s8v2-viewall-wrap:has(#f-viewall:checked) .s8v2-va-more{display:none}
.s8v2-viewall-wrap:has(#f-viewall:checked) .s8v2-va-less{display:inline}

/* Default "הכול": only the compact featured set until view-all or a typed search. */
.s8v2-disc:has(#f-all:checked):not(:has(#f-viewall:checked)):not(:has(#s8v2q:not(:placeholder-shown))) .s8v2-card:not(.s8v2-default){
  display: none;
}

/* View-all is for the all-tab compact list only. */
.s8v2-disc:has(#f-video:checked) .s8v2-viewall-wrap,
.s8v2-disc:has(#f-ai-comp:checked) .s8v2-viewall-wrap,
.s8v2-disc:has(#f-msg:checked) .s8v2-viewall-wrap,
.s8v2-disc:has(#f-priv:checked) .s8v2-viewall-wrap,
.s8v2-disc:has(#f-soc:checked) .s8v2-viewall-wrap,
.s8v2-disc:has(#s8v2q:not(:placeholder-shown)) .s8v2-viewall-wrap{
  display: none;
}

/* Streamers sit immediately after the hero, above categories and the tool
   list, so the row can appear on the second screen on common phones.
   Hide when a non-video category is selected. Filters live in #discover;
   body:has still matches. #f-ai-chat is kept for older hash links. */
body:has(#f-ai-chat:checked) #streamers.s8ds,
body:has(#f-ai-comp:checked) #streamers.s8ds,
body:has(#f-msg:checked) #streamers.s8ds,
body:has(#f-priv:checked) #streamers.s8ds,
body:has(#f-soc:checked) #streamers.s8ds{
  display: none;
}

/* When the band is not inside #discover .w it still needs the page gutter. */
main > #streamers.s8ds{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  box-sizing: border-box;
  background: transparent;
  color: #12382f;
}
@media (max-width: 700px){
  main > #streamers.s8ds{ padding: 16px 16px 24px; }
}

#s8v2-grid,
#s8v2-grid-more,
#s8v2-grid-rest{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
#s8v2-grid-more{margin-top: 14px}
#s8v2-grid-rest{margin-top: 14px}

@media (max-width: 900px){
  #s8v2-grid,
  #s8v2-grid-more,
  #s8v2-grid-rest{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px){
  #s8v2-grid,
  #s8v2-grid-more,
  #s8v2-grid-rest{
    grid-template-columns: 1fr;
  }
}

/* Discovery cards omit data-astro-cid-ntkw7qlo, so the bundled Astro
   .arc-dev pill rules never apply and labels collapse into one word
   (iOSווב, AndroidiOS, AndroidiOSווב). Match the existing featured-home
   green/cream chips and the Astro flex+gap, without requiring the cid. */
.s8v2-disc .arc-dev,
.s8v2-card .arc-dev{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
}
.s8v2-disc .arc-dev span,
.s8v2-card .arc-dev span{
  border: 1px solid #cfe8df;
  color: #3d5c55;
  background: #f4fffb;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.6;
  border-radius: 999px;
  padding: 0 8px;
  box-sizing: border-box;
}

/* Mobile first-screen hero phone was capped at clamp(200px,54vw,220px)
   in s8-home-design-1124.css, so the official still looked small on
   phones. Scale the existing asset with CSS only; do not change desktop. */
@media (max-width: 800px) {
  .s8h-page .s8h-phone {
    width: min(100%, 360px);
    pointer-events: none;
  }
}
