/* KRS profile navigation: compact single-row section rail. */
.krs-profile-nav {
  box-sizing: border-box;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 12px 0 18px;
  padding: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #b7c7d8 transparent;
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  background: #f3f6fa;
  -webkit-overflow-scrolling: touch;
}

.krs-profile-nav > a {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: max-content;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #35516f;
  font: 600 14px/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.krs-profile-nav > a > svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #a77a31;
}

.krs-profile-nav > a:hover {
  border-color: #d7e1ed;
  background: #fff;
  color: #102640;
}

.krs-profile-nav > a[aria-current="location"],
.krs-profile-nav > a.active {
  border-color: #173b5b;
  background: #173b5b;
  color: #fff;
  box-shadow: 0 2px 6px rgb(16 38 64 / 14%);
}

.krs-profile-nav > a[aria-current="location"] > svg,
.krs-profile-nav > a.active > svg {
  color: #e2bd78;
}

.krs-profile-nav > a:focus-visible {
  outline: 3px solid #d5b16b;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .krs-profile-nav {
    gap: 4px;
    margin: 10px -2px 14px;
    padding: 5px;
    border-radius: 12px;
  }

  .krs-profile-nav > a {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .krs-profile-nav > a > svg {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .krs-profile-nav > a { transition: none; }
}
