/* ── A theme's hub (task 278, Pages/_ThemeHub; Figma 220:124036 / 220:124966): only where its blocks stand – the head, the
   tiles, the sections, the facets, the cards, the categories and «Zobacz też» are components (ui-hero, ui-hub-*, SetCard,
   ui-stat, ui-table, ui-phone-row, ui-disclosure, ui-navlist). The page is Figma's 1 200 px column, 40 px between sections. ── */
/* One column whatever its rows hold: a phone row's name never wraps (nowrap), and a grid's auto column would grow to it. */
.hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-bottom: var(--space-8);
}

.hub-all {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  scroll-margin-top: calc(var(--layout-header, 56px) + var(--space-4));
}

.hub-all__title {
  margin: 0;
  text-wrap: balance;
  color: var(--text);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.35;
}

.hub-all__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--space-6);
}

.hub-all__more {
  justify-self: center;
}

.hub-categories {
  margin-top: calc(-1 * var(--space-4));
}

@media (max-width: 900px) {
  /* Figma 220:124966: 20 px between sections, 16 under the band. */
  .hub {
    gap: var(--space-5);
  }

  .hub > .ui-hero--series {
    margin-bottom: calc(var(--space-4) - var(--space-5));
  }

  .hub-all__title {
    font-size: var(--text-lg);
  }

  .hub-all__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-3);
  }

  .hub-all__more {
    justify-self: stretch;
  }

  /* Figma 220:124966: the phone's two cards a row 12 px apart (the catalogue's grid is 8). */
  .hub-all > #catalog-grid {
    gap: var(--space-3);
  }
}
