/* Chapter navigation: uses the existing Archilogon palette. */
.chapter-quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: .95rem;
}
.chapter-quick-links a,
.chapter-navigation a {
  color: var(--fg, #FFFBDB);
  text-decoration: none;
}
.chapter-quick-links a { border-bottom: 1px dashed rgba(255,255,255,.3); }
.chapter-quick-links a:hover,
.chapter-navigation a:hover { color: var(--accent, #FFD700); }
.chapter-quick-links a:focus-visible,
.chapter-navigation a:focus-visible {
  outline: 2px solid var(--accent, #FFD700);
  outline-offset: 5px;
}
.chapter-navigation {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.chapter-navigation__sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.chapter-navigation__card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chapter-navigation__card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 560px);
  justify-self: center;
}
.chapter-navigation__label {
  color: var(--muted, #BBB);
  font-size: .85rem;
}
.chapter-navigation__heading {
  margin: 22px 0 10px;
  color: var(--accent, #FFD700);
  font-size: 1rem;
  font-weight: 600;
}
.chapter-navigation__related {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}
.chapter-navigation__related li { margin-bottom: 8px; }
@media (max-width: 540px) {
  .chapter-navigation__sequence { grid-template-columns: 1fr; }
}
