/* Shared comparison controls for the preserved designs and current v3. */
.header .design-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid #211f2633;
  border-radius: 999px;
}

.design-switcher-label {
  padding: 0 9px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.design-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.design-switcher a[aria-current="page"] {
  background: #2537d9;
  color: #fff;
}

@media (hover: hover) {
  .design-switcher a:not([aria-current="page"]):hover {
    background: #211f260d;
  }
}

.design-switcher a:focus-visible {
  outline: 2px solid #2537d9;
  outline-offset: 5px;
}

@media (max-width: 1200px) {
  [data-design-version] .header { gap: 20px; }
  .header .header-cta { display: none; }
  .header .desktop-nav { margin-left: auto; }
  .design-switcher-label { display: none; }
}

@media (max-width: 760px) {
  [data-design-version] .header { gap: 8px; }
  .header .design-switcher { margin-left: auto; }
  .header .menu-toggle { flex-shrink: 0; }
}

@media (max-width: 380px) {
  [data-design-version] .header { padding-inline: 16px; }
  [data-design-version] .header .brand-lockup { width: 132px; }
}

@media (max-width: 350px) {
  [data-design-version] .header .brand-lockup { width: 116px; }
}

/* Three comfortable touch targets get their own row on a narrow phone. */
@media (max-width: 760px) {
  [data-design-version] .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 70px 50px;
    height: 130px;
    gap: 0 12px;
    padding: 0 20px 10px;
  }
  .header .brand { grid-column: 1; grid-row: 1; }
  [data-design-version] .header .brand-lockup { width: 145px; }
  .header .language-control { grid-column: 2; grid-row: 1; margin-left: 0; }
  .header .menu-toggle { grid-column: 3; grid-row: 1; margin-right: -10px; }
  .header .design-switcher { grid-column: 1 / -1; grid-row: 2; justify-self: end; margin-left: 0; }
  .header .design-switcher-label { display: inline; }
  .header .mobile-nav { top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .design-switcher a { transition: none; }
}
/* Five versions remain usable on phones without narrowing tap targets. */
@media(max-width:760px){.header .design-switcher-label{display:none}.header .design-switcher{justify-self:center;max-width:100%}.header .design-switcher a{min-width:44px;padding-inline:3px}}
