/* Topic navigation is shared by Home, Guides and All Pages only. */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.topic-group {
  min-width: 0;
  padding: .85rem 0 .25rem;
  border-top: 2px solid #365b72;
}
.topic-group h3 { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.35; }
.topic-group h3 a { display: inline-block; color: #d9f3fa; text-decoration: none; }
.topic-group h3 a:hover { text-decoration: underline; }
.topic-group h3 a::after { content: ' ›'; color: #8fd3e5; }
.topic-group p, .topic-section__intro {
  margin: 0 0 .6rem;
  color: #b4c8d2;
  font-size: .82rem;
  line-height: 1.5;
}
.topic-links, .topic-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-links li { min-width: 0; max-width: 100%; }
.topic-links a, .topic-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  color: #a6dfed;
  font-size: .86rem;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.topic-links a:hover, .topic-jumps a:hover { color: #f0fbff; }
.topic-start {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin: .65rem 0 1rem;
  padding: .65rem .8rem;
  border-left: 3px solid #80cddd;
  background: #11283b;
  color: #d9f3fa;
}
.topic-start a { color: #a6dfed; line-height: 1.5; }
.topic-jumps { gap: .35rem .65rem; margin: 1rem 0 1.5rem; }
.topic-jumps a { padding: .3rem .65rem; border: 1px solid #365b72; text-decoration: none; }
.topic-section { margin-top: 1.75rem; scroll-margin-top: 110px; }
.topic-section > h2 { margin-bottom: .25rem; color: #e8f5f9; font-size: 1.3rem; }
.topic-section .guide-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-section .guide-card__copy strong { font-size: .92rem; }
.topic-section .guide-card__copy small { font-size: .78rem; line-height: 1.45; }
.topic-section__details { margin-top: .8rem; }
.topic-section__details h3 { margin: 0 0 .25rem; color: #b4c8d2; font-size: .8rem; font-weight: 600; }
.directory-topic-group { margin: 1.2rem 0; }
.directory-topic-group h3 { margin-bottom: .5rem; font-size: 1rem; }
.directory-topic-group h3 a { color: #d9f3fa; }
.topic-index-footer { margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid #365b72; }
@media (max-width: 1000px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .topic-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .topic-group p { margin-bottom: .35rem; }
  .topic-grid .topic-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .8rem; }
  .topic-links a, .topic-jumps a, .topic-start a { min-height: 44px; }
  .topic-grid .topic-links a { display: flex; }
  .topic-section .guide-index { grid-template-columns: minmax(0, 1fr); }
  .topic-section .guide-card__copy small { display: block; }
  .topic-section .guide-index a { min-height: 94px; }
  .topic-section { scroll-margin-top: 95px; }
}
