/* templates/pages/hub.html and pages/hub_list.html — hub board: sections and the card
   grid. Cards: partials/hub-cards.css; rows: partials/hub-list.css. */

.page.page--hub {
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

/* Language-pair hubs use the same two-column tracks as the intermediate breakpoint. */
@media (min-width: 861px) {
  .topic-grid--pair {
    grid-template-columns: 1fr 1fr;
  }
}

.topic-wide {
  grid-column: 1 / 3;
  grid-row: 1;
}

.topic-section + .topic-section {
  margin-top: var(--layout-section-gap);
}

.topic-section__heading {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.topic-section__blurb {
  max-width: 36rem;
  margin: -0.35rem 0 1rem;
  color: var(--color-text-muted);
  font-size: var(--type-support-size);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topic-wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
}
