.header-brand { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 0 0 14px;
  margin: 0;
  list-style: none;
  border-left: 1px solid #533246;
}
.header-socials[hidden] { display: none; }
.header-socials a {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  color: #cdbfce;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: color .18s, background .18s, border-color .18s;
}
.header-socials a:hover, .header-socials a:focus-visible {
  color: #ff83b6;
  background: #ff4b9810;
  border-color: #74415a;
}
.header-socials a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header-socials svg { width: 19px; height: 19px; fill: currentColor; }
.header-socials a[data-platform=glytch] { width: 54px; }
.social-glytch-logo { display: block; width: 46px; height: 44px; object-fit: contain; }
.social-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  color: var(--text);
  background: #21151f;
  border: 1px solid #74415a;
  border-radius: 4px;
  font-size: .875rem;
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}
.header-socials a:hover .social-tooltip, .header-socials a:focus-visible .social-tooltip { visibility: visible; }

/* Open the navigation earlier so the brand and social links have breathing room. */
@media (max-width: 1180px) {
  .site-header { gap: 16px; }
  .menu-toggle { display: flex; margin-left: auto; flex-shrink: 0; }
  .site-header #navigation {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: auto;
    padding: 20px 5% 28px;
    background: #161115;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .site-header #navigation.open { display: flex; }
  .site-header #navigation > a { font-size: 1rem; padding: 14px 0; }
  .site-header #navigation > a[aria-current=page]:after { width: 25px; bottom: 8px; }
  .site-header #navigation > #header-cart { padding: 10px 12px; margin-top: 10px; }
}
@media (max-width: 600px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; height: auto; min-height: 116px; padding-block: 10px; gap: 5px 12px; }
  .header-brand { display: contents; }
  .header-brand > .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-socials { grid-column: 1 / -1; grid-row: 2; justify-self: start; border-left: 0; padding-left: 0; gap: 4px; }
  .header-socials a { width: 44px; }
  .menu-toggle { grid-column: 2; grid-row: 1; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .header-socials a { transition: none; } }
