/* pb-gallery2.css: the Gallery on the AURA Kit (D-CBO-331, the gallery builder's file). The Kit's tabs as headings over its groups, the group head,
   the frame the Kit draws its Cards in, the stand-in the ⋮ panel opens beside, and a Kit Card dropped on the canvas. Tokens and even sizes only (D-CBO-330). */

/* the groups, under the Kit's tab names; the open group as the Kit marks it */
.pbg-navslot { position: sticky; top: 16px; align-self: start; min-width: 0; }
.pbg-nav { position: static; }
.pbg-nav .pbg-navh { margin: 16px 0 4px; padding: 0 8px; font: 500 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pbg-nav .pbg-team + .pbg-navh, .pbg-nav .pbg-navh:first-child { margin-top: 8px; }
.pbg-nav .pb-gfrow.on { background: var(--accent-soft); color: var(--on-accent-soft); }
.pbg-nav .pb-gfrow.on small { color: var(--on-accent-soft); }
.pbg-nav .pb-gfrow.pbg-none { color: var(--ink-4); }
.pbg-nav .pbg-tpl .pbg-go { margin-left: auto; color: var(--ink-3); }

/* the group head: its name, what it holds, Open all and Close all; search hits as chips by group */
.pbg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 8px; }
.pbg-head h2 { margin: 0; font: 400 var(--fs-2xl)/32px var(--font-serif); color: var(--ink); }
.pbg-head p { margin: 4px 0 0; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.pbg-acts { display: flex; flex: none; gap: 8px; }
.pbg-hits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 16px; }
.pbg-found { margin-right: 8px; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.pbg-hits .pb-mchip { text-decoration: none; }
.pbg-hits .pb-mchip small { font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pbg-hits .pb-mchip.on { border-color: var(--v-600); background: var(--accent-soft); color: var(--on-accent-soft); }
.pbg-saved { margin: 16px 0 24px; }
.pbg-saved.pbg-new .pb-gtile { outline: 2px solid var(--v-600); outline-offset: 8px; }

/* the Kit's frame: as wide as the column, as tall as its Cards; 8 px over each edge so the Cards' shadows are not cut */
.pbg-stage { position: relative; min-height: 240px; margin-top: 8px; }
.pbg-stage[hidden] { display: none; }
.pbg-frame { display: block; width: calc(100% + 16px); height: 480px; margin: -8px; border: 0; background: transparent; }
.pbg-loading { position: relative; }
.pbg-loading > .pbg-frame { visibility: hidden; }
.pbg-loading::before { content: "Opening the AURA Kit"; position: absolute; left: 0; top: 16px; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.pbg-failed::before { content: "The AURA Kit did not open. Reload the page."; position: absolute; left: 0; top: 16px; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.pbg-proxy { position: absolute; z-index: 2; border-radius: var(--r-card); pointer-events: none; }
.pbg-proxyanchor { position: absolute; }

/* a type's panel: the Card large, drawn by the Kit */
.pbg-panel .pbg-big { position: relative; min-height: 160px; }
.pbg-panel .pbg-big .pbg-frame { height: 320px; }
.pbg-panel .pb-gfacts dd b { font-weight: 500; }

/* the sheet over the canvas */
.pbg-sheet .pbg-navslot { top: 0; }
.pbg-sheet .pb-gtools { margin-bottom: 8px; }
.pbg-sheet .pbg-hits { margin-top: 0; }

/* a Kit Card on the canvas: the Kit's own Card fills the canvas Card */
.pb-card.pbg-kitcard { background: transparent; box-shadow: none; }
.pb-card.pbg-kitcard > .pb-cb { padding: 0; overflow: hidden; }
.pbg-kitslot { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pbg-kitslot > .pbg-frame { width: calc(100% + 16px); transform-origin: 8px 8px; }
.pbg-kitslot.pbg-live { overflow: auto; }

@media (max-width: 767px) {
  .pbg-navslot { position: static; }
  .pbg-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .pbg-nav .pbg-navh { display: none; }
  .pbg-nav .pb-gfrow { flex: none; }
  .pbg-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
}
