/* Reading hubs only. Shared navigation and other page themes stay independent. */
.content-hub-page main {
  padding-top: 24px;
  padding-bottom: 56px;
}

.content-hub-page main .page-title {
  margin: 0;
  padding: 0 0 14px;
}

.content-hub-page main .page-title h1 {
  max-width: 900px;
  margin: 6px 0 12px;
  font-size: 36px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.content-hub-page main p {
  font-size: 16px;
  line-height: 1.7;
}

.content-hub-page main .page-title p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.content-hub-page main .hero-actions {
  gap: 8px;
  margin: 14px 0 10px;
}

.content-hub-page main .hero-actions .button {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 15px;
  line-height: 1.5;
}

.content-hub-page main .section {
  margin-top: 26px;
}

.content-hub-page main .section-heading {
  display: block;
  margin-bottom: 14px;
}

.content-hub-page main h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.content-hub-page main .section-heading p:not(.eyebrow) {
  max-width: 68ch;
  margin: 6px 0;
}

.content-hub-page main .section-heading h2,
.content-hub-page main #web-book-toc .section-heading h2 {
  margin: 6px 0 8px;
}

.content-hub-page main h3 {
  font-size: 20px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.content-hub-page main .card-grid,
.content-hub-page main .doc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-hub-page main .card,
.content-hub-page main .doc-grid > article {
  min-width: 0;
  padding: 18px;
}

.content-hub-page main .card h3,
.content-hub-page main .doc-grid h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.45;
}

.content-hub-page main .card h3 a {
  display: inline;
  margin: 0;
}

.content-hub-page main .card h3 a:hover,
.content-hub-page main .card h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-hub-page main .card p:not(.card-kicker),
.content-hub-page main .doc-grid p {
  margin: 8px 0 0;
}

.content-hub-page main .eyebrow,
.content-hub-page main .card-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}

.content-hub-page main .wiki-reading-content {
  line-height: 1.7;
}

.content-hub-page main .wiki-reading-content .section:first-child {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .content-hub-page main .card-grid,
  .content-hub-page main .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .content-hub-page main {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .content-hub-page main .page-title {
    padding-bottom: 8px;
  }

  .content-hub-page main .page-title h1 {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.35;
  }

  .content-hub-page main .page-title p:not(.eyebrow) {
    font-size: 16px;
  }

  .content-hub-page main .hero-actions {
    margin-top: 12px;
  }

  .content-hub-page main .hero-actions .button {
    padding-inline: 12px;
    font-size: 14px;
  }

  .content-hub-page main .section {
    margin-top: 22px;
  }

  .content-hub-page main h2 {
    font-size: 22px;
  }

  .content-hub-page main h3,
  .content-hub-page main .card h3,
  .content-hub-page main .doc-grid h2 {
    font-size: 20px;
  }

  .content-hub-page main .card-grid,
  .content-hub-page main .doc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .content-hub-page main .card,
  .content-hub-page main .doc-grid > article {
    padding: 16px;
  }
}
