/* SafarGet language switch + English (LTR) layout overrides */

.site-lang-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #cbd8d5;
  border-radius: 999px;
  background: #ffffff7a;
  direction: ltr;
}

.site-lang-option {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #37534f;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-lang-option:hover {
  background: #eaf3f0;
}

.site-lang-option.is-active {
  background: #173b40;
  color: #ffffff;
}

.site-lang-option:focus-visible {
  outline: 2px solid #3ab99c;
  outline-offset: 2px;
}

/* Sticky top bar is 78px tall (70px on small screens).
   Keep anchored sections clear of it when a nav link is clicked. */
#network,
#sources,
#features,
#comparison,
#pricing {
  scroll-margin-top: 96px;
}

@media (max-width: 600px) {
  #network,
  #sources,
  #features,
  #comparison,
  #pricing {
    scroll-margin-top: 86px;
  }
}

/* The production bundle hard-codes RTL in a few components.
   English is LTR, so reset only those directions. */
html[lang="en"] .hero-copy,
html[lang="en"] .signal-label,
html[lang="en"] .visual-switcher,
html[lang="en"] .ribbon-heading {
  direction: ltr;
}

html[lang="en"] .hero-copy {
  padding: 0 0 10px 6px;
}

html[lang="en"] .comparison-table {
  direction: ltr;
}

html[lang="en"] .comparison-table thead th:first-child,
html[lang="en"] .comparison-table tbody th {
  text-align: left;
}

@media (max-width: 390px) {
  .site-lang-switch {
    padding: 2px;
  }

  .site-lang-option {
    font-size: 9px;
    padding: 5px 7px;
  }
}
