/* Topic-only additions; never loaded by the homepage. */
.topic-page .topic-material-sheet {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
}

.topic-page .topic-material-sheet summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.topic-page .topic-material-sheet figure {
  margin: 20px 0 16px;
}

.topic-page .topic-material-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.topic-page .topic-material-sheet figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
  text-wrap: pretty;
}

.topic-page .topic-material-sheet > a {
  display: inline-block;
  min-height: 44px;
  align-content: center;
  color: var(--sapphire);
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-page .topic-prep-grid > .topic-panel {
  margin-top: 0;
}

.topic-page .topic-section > .container > .topic-source {
  max-width: 64em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}

.topic-page .topic-source a {
  color: var(--sapphire);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .topic-page main {
    letter-spacing: 0;
    line-break: strict;
    overflow-wrap: break-word;
  }

  .topic-page .topic-hero {
    padding: 88px 0 36px;
  }

  .topic-page .topic-hero-grid {
    gap: 28px;
  }

  .topic-page .topic-hero-grid > div:first-child {
    text-align: center;
  }

  .topic-page main :is(h1, h2, h3) {
    text-align: center;
    text-wrap: balance;
    word-break: normal;
    letter-spacing: 0;
  }

  .topic-page .topic-hero h1 {
    margin: 0 auto 20px;
    max-width: 14em;
    font-size: 28px;
    line-height: 1.35;
  }

  .topic-page .topic-title-phrase {
    white-space: nowrap;
  }

  .topic-page .topic-lead {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    text-wrap: balance;
  }

  .topic-page .topic-section {
    padding: 36px 0;
  }

  .topic-page .section-header {
    margin-bottom: 24px;
  }

  .topic-page .section-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .topic-page :is(.topic-side-card, .topic-panel, .topic-faq-item) {
    padding: 22px 20px;
    min-height: 0;
  }

  .topic-page :is(.topic-side-card, .topic-panel) h2 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .topic-page :is(.topic-panel, .topic-faq-item) h3 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .topic-page .topic-panel p + h3 {
    margin-top: 24px;
  }

  .topic-page :is(.topic-panel, .topic-faq-item) p,
  .topic-page .topic-section > .container > p {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    text-wrap: pretty;
  }

  .topic-page .topic-section > .container > p + p {
    margin-top: 16px;
  }

  .topic-page .topic-section > .container > .topic-source {
    font-size: 15px;
    text-align: left;
    text-wrap: pretty;
  }

  .topic-page :is(.topic-checks, .topic-side-list) li {
    font-size: 15px;
    line-height: 1.8;
    text-wrap: balance;
  }

  .topic-page .topic-checks + p {
    margin-top: 16px;
  }

  .topic-page :is(.topic-faq, .topic-content-grid) {
    gap: 16px;
  }

  .topic-page .topic-faq-item + .topic-faq-item {
    margin-top: 0;
  }

  .topic-page .topic-related {
    justify-content: center;
  }

  .topic-page .topic-related a {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .topic-page .footer-bottom {
    align-items: center;
    text-align: center;
    text-wrap: balance;
  }

  .topic-page .footer-icp {
    justify-content: center;
  }
}
