/**
 * Public-page shell: demo theme + aufbau picker styles.
 * Independent of Aufbau (COVER / PLAKAT / EDITORIAL).
 * Same look as V2 base.css – no V1 theme CSS variables required.
 */

.demo-theme-picker,
.demo-aufbau-picker {
  padding: 14px 16px 16px;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  color: inherit;
}

.demo-theme-picker + .demo-aufbau-picker {
  border-top: none;
}

.demo-theme-picker__inner,
.demo-aufbau-picker__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.demo-theme-picker__head,
.demo-aufbau-picker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 0 0 10px;
}

.demo-theme-picker__title,
.demo-aufbau-picker__title {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.demo-theme-picker__text,
.demo-aufbau-picker__text {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.68;
}

.demo-theme-picker__track,
.demo-aufbau-picker__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.demo-theme-card,
.demo-aufbau-card {
  flex: 0 0 auto;
  width: 7.6rem;
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.demo-aufbau-card {
  width: auto;
  min-width: 7.6rem;
  align-content: center;
  min-height: 2.6rem;
}

.demo-theme-card__swatch {
  display: block;
  width: 100%;
  height: 18px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.demo-theme-card__name,
.demo-aufbau-card__name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.15;
}

.demo-theme-card__active,
.demo-aufbau-card__active {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.demo-theme-card__genre {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.62rem;
  line-height: 1.25;
  opacity: 0.58;
}

.demo-theme-card:hover,
.demo-theme-card:focus-visible,
.demo-aufbau-card:hover,
.demo-aufbau-card:focus-visible {
  border-color: currentColor;
  outline: none;
}

.demo-theme-card.is-active,
.demo-aufbau-card.is-active {
  border-color: currentColor;
  border-width: 2px;
  padding: 6.5px;
  box-shadow: inset 3px 0 0 currentColor;
}

@media (min-width: 1180px) {
  .demo-theme-picker__track,
  .demo-aufbau-picker__track {
    overflow: visible;
    padding-bottom: 2px;
  }

  .demo-theme-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .demo-aufbau-card {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .demo-theme-picker,
  .demo-aufbau-picker {
    padding: 12px 12px 14px;
  }

  .demo-theme-picker__head,
  .demo-aufbau-picker__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 8px;
  }

  .demo-theme-card {
    width: 7.1rem;
    min-height: 4.4rem;
  }

  .demo-aufbau-card {
    min-width: 7.1rem;
    min-height: 2.8rem;
  }
}
