/* Peplabco — folded Packaging studio controls and Products */

/* ---------- Studio: Colours and layout panel ---------- */
.studio__more { border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.studio__more > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 14px 16px; border-radius: var(--radius);
}
.studio__more > summary::-webkit-details-marker { display: none; }
.studio__more > summary:hover { background: rgba(255,255,255,.04); }
.studio__more > summary:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.studio__more-t { display: flex; flex-direction: column; gap: 4px; }
.studio__more-t strong { font-weight: 500; font-size: var(--text-sm); color: var(--white); }
.studio__more-t small { font-size: 12px; color: var(--grey-1); }
.studio__more-i { position: relative; width: 26px; height: 26px; flex: none; border: 1px solid var(--line-dark); border-radius: 50%; }
.studio__more-i::before, .studio__more-i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--white); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.studio__more-i::after { transform: translate(-50%, -50%) rotate(90deg); }
.studio__more[open] .studio__more-i::after { transform: translate(-50%, -50%) rotate(0deg); }
.studio__more-body { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-2) 16px 16px; }

/* ---------- Products: show 3, then expand ---------- */
.range__morewrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.range__more {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 var(--text-sm)/1 var(--font-body); color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; padding: 14px 22px; transition: transform .2s var(--ease), background .2s var(--ease);
}
.range__more:hover { background: var(--accent); transform: translateY(-1px); }
.range__more svg { transition: transform .25s var(--ease); }
.range__more[aria-expanded=true] svg { transform: rotate(180deg); }
.range__swipe { display: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-3); }
.range--folded .range__grid > .rcard:nth-child(n+4) { display: none; }

@media (max-width: 1080px) and (min-width: 681px) {
  .range--folded .range__grid > .rcard:nth-child(n+3) { display: none; }
}

/* Phones: one swipeable row instead of a long stack */
@media (max-width: 680px) {
  .range .range__grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--space-4);
    margin: 0 calc(-1 * var(--space-4)); padding: 4px var(--space-4) 8px; scrollbar-width: none;
  }
  .range .range__grid::-webkit-scrollbar { display: none; }
  .range .range__grid > .rcard { scroll-snap-align: start; display: flex !important; }
  .range__more { display: none; }
  .range__swipe { display: block; }
  .range__morewrap { margin-top: var(--space-3); }
}

/* Keep brand / website and programme / strength side by side on phones */
@media (max-width: 680px) and (min-width: 340px) {
  .studio .ctl--split { grid-template-columns: 1fr 1fr; }
  .studio .ctl--split input, .studio .ctl--split select { min-width: 0; width: 100%; }
}

