/*
 * Shared onward-navigation treatment.
 * Other Paths remains visually separate from records and other page content.
 */

.other-paths-heading {
  display: flex !important;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 760px;
  margin: 3rem auto 1rem !important;
  color: var(--russet, #9a5a3d) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 0.82rem !important;
  font-style: normal !important;
  font-weight: 850 !important;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.other-paths-heading::before,
.other-paths-heading::after {
  content: "";
  width: min(18vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 90, 61, 0.42));
}

.other-paths-heading::after {
  background: linear-gradient(90deg, rgba(154, 90, 61, 0.42), transparent);
}

.other-paths-section {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: none !important;
  gap: 0.55rem !important;
  max-width: 900px;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 0 3rem !important;
}

.other-paths-section > .other-paths-heading {
  max-width: none;
  margin-top: 2.5rem !important;
}

.other-paths-section > .nav-card {
  position: relative;
  display: flex !important;
  flex: 0 1 250px;
  align-items: center;
  align-content: initial;
  min-height: 44px !important;
  padding: 0.65rem 2.25rem 0.65rem 1rem !important;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.78) !important;
  border: 1px solid rgba(154, 90, 61, 0.24) !important;
  box-shadow: 0 5px 14px rgba(85, 67, 25, 0.07) !important;
  color: var(--blue-deep, #153149) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
  text-shadow: none;
}

.other-paths-section > .nav-card > span,
.other-paths-section > .nav-card > p,
.other-paths-section > .nav-card > em {
  display: none !important;
}

.other-paths-section > .nav-card > strong,
.other-paths-section > .nav-card > b {
  display: block;
  margin: 0;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit;
}

.other-paths-section > .nav-card::after {
  content: "→";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  color: var(--russet, #9a5a3d);
  font-size: 0.95rem;
  transform: translateY(-50%);
}

.other-paths-section > .nav-card:hover,
.other-paths-section > .nav-card:focus {
  border-color: rgba(154, 90, 61, 0.5) !important;
  box-shadow: 0 8px 18px rgba(85, 67, 25, 0.12) !important;
  transform: translateY(-1px);
}

ul.link-grid.other-paths-grid {
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.other-paths-list-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 3rem;
}

.other-paths-list-section > .other-paths-heading {
  max-width: none;
  margin-top: 2.5rem !important;
}

ul.link-grid.other-paths-grid li {
  flex: 0 1 250px;
}

ul.link-grid.other-paths-grid li a {
  min-height: 44px !important;
  padding: 0.65rem 2.25rem 0.65rem 1rem !important;
  background: rgba(255, 253, 247, 0.78) !important;
  border: 1px solid rgba(154, 90, 61, 0.24) !important;
  box-shadow: 0 5px 14px rgba(85, 67, 25, 0.07) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 760 !important;
  text-shadow: none !important;
}

ul.link-grid.other-paths-grid li a::before {
  display: none !important;
}

ul.link-grid.other-paths-grid li a::after {
  content: "→" !important;
  right: 0.85rem !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--russet, #9a5a3d) !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
}

@media (max-width: 560px) {
  .other-paths-section > .nav-card,
  ul.link-grid.other-paths-grid li {
    flex-basis: 100%;
  }
}
