/* The style demo on the homepage (owner, 2026-11-27: "It needs to fit ... The selection boxes need to be small enough
   and compact so it doesn't eat up a load of space"). Scoped to .pbd-home; the site's own tokens (pb_tokens.css).
   The clip takes its height from the screen (the section's label and headline above it, the site's bar on top), so
   the clip and its caption show whole on a 768 px tall laptop; the boxes are one tight grid per kind
   (the names on hover and under the clip). */
.pbd-home { --clip-h: clamp(340px, calc(100svh - 330px), 620px); display: flex; gap: 28px; align-items: flex-start;
  justify-content: center; margin-top: 22px; }
.pbd-home .pbd-stage { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.pbd-home .pbd-media { position: relative; height: var(--clip-h); width: auto; background: #000; overflow: hidden;
  border: 1px solid var(--pb-border); border-radius: 10px; }
.pbd-home .pbd-media video, .pbd-home .pbd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.pbd-home .pbd-media [hidden] { display: none; }
.pbd-home .pbd-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pbd-home .pbd-light-s { mix-blend-mode: screen; }
.pbd-home .pbd-light-a { mix-blend-mode: plus-lighter; }
.pbd-home .pbd-play { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 600 11px/1 var(--pb-font-body);
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; color: #fff; background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer; }
.pbd-home .pbd-caption { margin-top: 9px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-text-2); text-align: center; }

.pbd-home .pbd-picker { flex: 0 1 432px; min-width: 0; max-height: calc(var(--clip-h) + 56px); overflow-y: auto; }
.pbd-home .pbd-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--pb-font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 7px; }
.pbd-home .pbd-picker-head + div { margin-bottom: 18px; }
.pbd-home .pbd-row { font: 500 11px/1 var(--pb-font-body); letter-spacing: .04em; text-transform: none; color: var(--pb-text-2); }
.pbd-home .pbd-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pbd-home .pbd-row[data-dim="true"] { opacity: .4; }
.pbd-home .pbd-row input[type=color] { width: 22px; height: 18px; padding: 0; border: 1px solid var(--pb-border-active); background: none; cursor: pointer; }
/* one tight grid per kind: the groups' tiles flow together */
.pbd-home #pbdemo-fills, .pbd-home #pbdemo-borders { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 4px; }
.pbd-home .pbd-group, .pbd-home .pbd-grid { display: contents; }
.pbd-home .pbd-group h3 { display: none; }
.pbd-home .pbd-tile { width: 36px; height: 36px; padding: 0; margin: 0; background: var(--pb-card); border: 1px solid var(--pb-border);
  border-radius: 6px; overflow: hidden; cursor: pointer; display: block; }
.pbd-home .pbd-tile canvas { width: 100%; height: 100%; display: block; }
.pbd-home .pbd-tile-name { display: none; }
.pbd-home .pbd-tile:hover { border-color: var(--pb-border-active); }
.pbd-home .pbd-tile[aria-pressed="true"] { border-color: var(--pb-selected); box-shadow: 0 0 0 2px var(--pb-selected); }

@media (max-width: 760px) {
  .pbd-home { --clip-h: min(56svh, 500px); flex-direction: column; align-items: center; gap: 16px; }
  .pbd-home .pbd-picker { flex: none; width: 100%; max-height: none; overflow: visible; }
  .pbd-home #pbdemo-fills, .pbd-home #pbdemo-borders { grid-template-columns: repeat(auto-fill, 34px); justify-content: center; }
  .pbd-home .pbd-tile { width: 34px; height: 34px; }
}

/* Round 8 (owner, 2026-11-27): section 02, the V3 pair. The plain clip on the left and the silhouette render on the
   right, the same size, side by side at every width (a phone too). Their height is the Styles clip's (--clip-h, so the
   section fits the screen as Styles does); where two of that height do not fit side by side, both get narrower together. */
/* (round 9, owner 2026-11-27: the lead text above the pair pushes it down about 120 px, more than the room the Styles
   height leaves here, so the pair is 30 px shorter than the Styles clip: label, headline, text and both clips show
   whole on a 1440x900 and a 1366x768 screen) */
.pbv-pair { --clip-h: clamp(340px, calc(100svh - 360px), 620px); --pair-gap: 16px; display: flex; justify-content: center;
  gap: var(--pair-gap); margin-top: 22px; }
.pbv-pair video { flex: 0 0 auto; display: block; width: min(calc(var(--clip-h) * 9 / 16), calc((100% - var(--pair-gap)) / 2));
  height: auto; aspect-ratio: 9 / 16; object-fit: fill; background: #000; border: 1px solid var(--pb-border); border-radius: 10px; }
@media (max-width: 760px) {
  .pbv-pair { --clip-h: min(56svh, 500px); --pair-gap: 10px; }
}
