/* Общая навигация между резидентами; раньше эти правила были в site.css. */
.resident-profile .hp-residents-nav.hp-residents-nav--top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  padding-block: 16px 28px;
  border-top: 0;
  border-bottom: 0;
}
.resident-profile .hp-residents-nav.hp-residents-nav--top > a { min-width: 0; overflow-wrap: anywhere; }
.resident-profile .hp-residents-nav--top > a[rel="prev"] { justify-self: start; }
.resident-profile .hp-residents-nav--top > a[rel="next"] { justify-self: end; text-align: right; }
.resident-profile .hp-residents-nav--top > .hp-residents-nav__all {
  justify-self: center;
  color: var(--hp-muted);
  text-align: center;
  white-space: nowrap;
}
.resident-profile .hp-residents-nav a[rel]:hover { text-decoration: none; }
.resident-profile .hp-residents-nav a[rel]:hover > .hp-residents-nav__label { text-decoration: underline; }
@media (max-width: 600px) {
  .resident-profile .hp-residents-nav.hp-residents-nav--top { gap: 4px; }
  .resident-profile .hp-residents-nav.hp-residents-nav--top > a { gap: 4px; font-size: 12px; }
  .resident-profile .hp-residents-nav--top > .hp-residents-nav__all { font-size: 12px; }
}
