/* ---------- Header: menu, search, language group ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-head nav { min-width: 0; }
.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, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }

form.search { position: relative; flex: 1 1 160px; max-width: 240px; min-width: 0; }
.search input {
  width: 100%; height: 44px; padding: 0 12px 0 44px; border-radius: 0; -webkit-appearance: none; appearance: none;
  background: var(--black-2); border: 1px solid var(--hair-strong); color: var(--ink); font: inherit; font-size: 16px;
}
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button { position: absolute; left: 0; top: 0; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: none; border: 0; color: var(--ink-2); cursor: pointer; }
.search button:hover { color: var(--ink); }
.search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

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

@media (max-width: 1240px) {
  /* Brand on the first row, menu on the second, search and languages on the third. Source order stays the visual order. */
  .site-head .wrap { gap: 0 12px; padding-top: 4px; padding-bottom: 8px; }
  .brand { flex: 1 0 100%; margin-right: 0; }
  .site-head nav { flex: 1 0 100%; overflow-x: auto; }
  .nav { margin: 0 -12px; }
  form.search { flex: 1 1 0; max-width: 420px; }
}
@media (max-width: 620px) {
  .brand { gap: 8px; }
  .brand span { font-size: 13px; letter-spacing: 0.06em; }
  .nav a { padding: 0 8px; font-size: 12px; letter-spacing: 0.04em; }
  .nav { margin: 0 -8px; gap: 0; }
  .langs a { min-width: 40px; }
}
