/* Parts gallery (website-parts). Load after ../website/assets/site.css: uses its colour tokens, .wrap, section.s and .eyebrow. */
.pg { padding-bottom: 96px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.pg-chip {
  font: 500 14px/1 Barlow, sans-serif; color: var(--soft); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-pill); height: 34px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: color var(--motion-micro), border-color var(--motion-micro), background var(--motion-micro);
}
.pg-chip span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.pg-chip:hover { color: var(--text); border-color: #3A3A3A; }
.pg-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-chip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.pg-chip[aria-pressed="true"] span { color: var(--on-accent); }

.pg-fam { margin: 0 0 48px; }
.pg-fam[hidden] { display: none; }
.pg-fam h3 {
  font-size: 22px; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
}
.pg-fam h3 span { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.pg-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  grid-auto-rows: 188px; grid-auto-flow: row dense; gap: 12px;
}
.pg-tile {
  min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-surface);
  padding: 0 12px 12px; overflow: hidden;
  transition: border-color var(--motion-micro);
}
.pg-tile:hover { border-color: #3A3A3A; }
.pg-tile.r2 { grid-row: span 2; }
.pg-tile.r3 { grid-row: span 3; }
.pg-tile.c2 { grid-column: span 2; }
.pg-tile img { width: 100%; height: 100%; min-height: 0; object-fit: contain; margin: 0 auto; }
.pg-name { font-size: 15px; line-height: 1.25; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pg-v { font-size: 12.5px; line-height: 1.3; color: var(--soft); margin-top: -2px; }
.pg-n { font-size: 12.5px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -2px; }
.pg-note { font-size: 14px; color: var(--muted); max-width: 760px; margin: 8px 0 0; }

@media (max-width: 760px) {
  .pg { padding-bottom: 64px; }
  .pg-chips { gap: 6px; margin-bottom: 32px; }
  .pg-chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
  .pg-fam h3 { font-size: 20px; }
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pg-tile { padding: 0 10px 10px; }
  .pg-name { font-size: 14.5px; }
}
/* the button under the first groups that opens the whole gallery */
.pg-more { display: flex; margin: 32px auto 0; }
.pg-more[hidden] { display: none; }
