/*
 * Розкладка САМОЇ вітрини — сторінки, на якій компоненти стоять поруч.
 * У Mini App цього файла не буде: тут лише сітки зразків і підписи.
 */

.sp-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 22px;
}

.sp-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-section > .sp-display-m {
  margin-bottom: 2px;
}

.sp-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.sp-swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-swatch__chip {
  height: 44px;
  border-radius: var(--radius-well);
  border: 1px solid var(--sp-line);
}

.sp-swatch__name {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--sp-text-muted);
  word-break: break-all;
}

.sp-group-title {
  font-family: var(--sp-font-display);
  font-weight: var(--weight-displayBold);
  font-size: 13px;
  letter-spacing: -0.3px;
  color: var(--sp-text-muted);
  margin: 14px 0 6px;
}

.sp-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
}

.sp-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--radius-well);
  background: var(--sp-surface);
  box-shadow: var(--shadow-card);
}

.sp-icon-cell__name {
  font-size: 9.5px;
  line-height: 1.2;
  text-align: center;
  color: var(--sp-text-muted);
  word-break: break-all;
}

.sp-nav-demo {
  display: flex;
  gap: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  background: var(--sp-surface);
  box-shadow: var(--shadow-card);
}

.sp-nav-demo__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--sp-text-muted);
}

.sp-ramp-picker {
  display: flex;
  gap: var(--space-chipGap);
  overflow-x: auto;
  padding-bottom: 4px;
}

.sp-ramp-picker__tile {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-tile);
  border: 2.5px solid transparent;
  background: var(--sp-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.sp-ramp-picker__tile[aria-pressed='true'] {
  border-color: var(--color-ember500);
}

.sp-fab-row {
  display: flex;
  align-items: center;
  gap: var(--space-chipGap);
}

.sp-well--field {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.sp-header--demo {
  border-radius: var(--radius-card);
}

/* Місце під шторку, щоб останній розділ не ховався за нею. */
.sp-tail {
  height: 96px;
}
