/* PrintsHubh — Language Switcher (segmented control) */

.ph-lang-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  align-items: center;
}

.ph-lang-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  letter-spacing: 0.01em;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.ph-lang-switch__btn:hover:not(.is-active) {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.04);
}

.ph-lang-switch__btn.is-active,
.ph-lang-switch__btn[aria-pressed="true"] {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow:
    0 1px 2px 0 rgba(15, 23, 42, 0.08),
    0 1px 3px 0 rgba(15, 23, 42, 0.06);
}

.ph-lang-switch__btn:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
}

/* Mobile — compact */
@media (max-width: 640px) {
  .ph-lang-switch__btn {
    font-size: 0.75rem;
    padding: 0.3125rem 0.625rem;
    min-height: 28px;
  }
}

/* When sitting alongside nav-cta — proper spacing */
.nav-inner .ph-lang-switch { margin-right: 0.5rem; }

/* RTL safety (future) */
[dir="rtl"] .ph-lang-switch { direction: ltr; }
