/* ---------- Header: layout of brand, anchors, search slot and language group ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--hair); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; max-width: none; padding-inline: clamp(16px, 2vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; margin-right: auto; }
.site-head .brand { min-height: 0; }
.brand svg { width: 18px; height: 26px; fill: currentColor; }
.brand span { font-family: var(--f-caps); font-stretch: 125%; font-weight: 800; letter-spacing: 0.08em; font-size: 15px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  text-decoration: none; font-family: var(--f-caps); font-stretch: 125%; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }

.langs { display: flex; gap: 2px; order: 1; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: none; border: 1px solid transparent; text-decoration: none; color: var(--ink-3);
  font: 700 12px var(--f-caps); font-stretch: 125%; letter-spacing: 0.08em;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); border-color: var(--hair-strong); }

/* The brand stands at the left edge and the menu takes the middle, between the brand and the search and languages.
   menu-panel.css switches to the hamburger panel below 1280px; keep the two breakpoints equal. */
@media (min-width: 1280px) {
  .site-head .wrap { flex-wrap: nowrap; }
  .site-head.search-open .wrap { flex-wrap: wrap; }
  .nav { gap: 0; }
  .nav a { font-size: 12px; letter-spacing: 0.06em; }
  .brand { margin-right: 0; flex: none; }
  .site-head nav { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
}
@media (min-width: 1440px) {
  .site-head .wrap { gap: 16px; }
  .nav a { padding: 0 10px; }
  .langs { order: 0; }
}
/* Tighter gaps keep brand, nav, search toggle and langs on one row down to 1280px; below that menu-panel.css takes over. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .site-head .wrap { gap: 12px; }
  .nav a { padding: 0 8px; }
  .langs a { min-width: 40px; }
}
/* Without JS the menu panel stays inline below the brand (menu-panel.css); on a phone the nav gets its own row. */
@media (max-width: 620px) {
  .site-head nav { order: 4; width: 100%; overflow-x: auto; }
  .nav { margin: 0 -12px; }
  .langs a { min-width: 38px; }
}
