/* Scoped navigation presentation only. Inherits site/Legends colour; no globals. */
.ra-mac-connections {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 8px;
  color: var(--ra-fg, #f3f7f3);
  background: var(--ra-bg, #0b100d);
}
.ra-mac-connections h2 {
  margin: 0 0 .8rem;
  font: inherit;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}
.ra-mac-connections ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding: 0;
  margin: 0;
  gap: .6rem;
  list-style: none;
}
.ra-mac-connections li { min-width: 0; overflow-wrap: anywhere; }
.ra-mac-connections a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .4rem;
  max-width: 100%;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-decoration: underline;
  text-underline-offset: .2em;
  color: inherit;
}
.ra-mac-connections a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.ra-mac-connections__contexts { display: flex; flex-wrap: wrap; gap: .35rem; padding-bottom: .3rem; }
.ra-mac-connections__context { font-size: .8rem; opacity: .85; }
@media (max-width: 550px) {
  .ra-mac-connections { padding: .85rem; margin: 1rem auto; }
  .ra-mac-connections ul { grid-template-columns: 1fr; }
}
