/* Route-aware related actions shared by all legacy sidebar pages. */

.kl-related-navigation {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #e1e7ef;
  border-radius: 15px;
  background: #fff;
}

.kl-related-navigation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.kl-related-navigation-head h2 {
  margin: 0;
  color: #2d3b52;
  font-size: .88rem;
  font-weight: 760;
}

.kl-related-navigation-head span {
  color: #7a8798;
  font-size: .72rem;
}

.kl-related-navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
}

.kl-related-action {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  background: #fff;
  color: #35435a;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.kl-related-action:hover,
.kl-related-action:focus {
  border-color: #c7d4ff;
  background: #f7f9ff;
  color: #315bc4;
  transform: translateY(-1px);
}

.kl-related-action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: #eef3ff;
  color: #466fdf;
  font-size: 1rem;
}

.kl-related-action-copy {
  min-width: 0;
}

.kl-related-action-copy strong,
.kl-related-action-copy span {
  display: block;
}

.kl-related-action-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: .77rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kl-related-action-copy span {
  margin-top: 2px;
  color: #7a8798;
  font-size: .67rem;
}

@media (max-width: 575.98px) {
  .kl-related-navigation {
    padding: 12px;
  }

  .kl-related-navigation-grid {
    grid-template-columns: 1fr;
  }
}
