/* Accessible social links remain within the existing navigation. */
.header-social {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--ink, #1d1e1a);
  border-radius: 50%;
  text-decoration: none;
  transition: background 160ms ease;
}
.header-social a:hover { background: rgba(29, 30, 26, .06); }
.header-social a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.header-social svg { width: 18px; height: 18px; flex: 0 0 18px; pointer-events: none; }
.header-social span { display: none; }
.nav-utilities { display: flex; align-items: center; gap: 12px; }

@media (min-width: 781px) {
  #nav.mobile-nav-ready .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 20px;
  }
  #nav.mobile-nav-ready .brand { justify-self: start; }
  #nav.mobile-nav-ready .nav-links { justify-self: center; }
  #nav.mobile-nav-ready .nav-utilities { justify-self: end; }
  .nav-utilities:has(.mobile-language-row) .header-social {
    padding-right: 12px;
    border-right: 1px solid rgba(29, 30, 26, .12);
  }
}

@media (max-width: 780px) {
  #nav.mobile-nav-ready .nav-utilities {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  #nav.mobile-nav-ready .mobile-nav-panel:has(.header-social) .nav-links {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(29, 30, 26, .09);
  }
  #nav.mobile-nav-ready .header-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(29, 30, 26, .09);
  }
  #nav.mobile-nav-ready .header-social a {
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    min-height: 44px;
    height: auto;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .88rem;
    line-height: 1.4;
  }
  #nav.mobile-nav-ready .header-social span { display: inline; }
}

@media (hover: hover) and (pointer: fine) {
  html.custom-cursor-ready .header-social a { cursor: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header-social a { transition: none; }
}
