/* Always-visible public-site language picker. */
.site-actions .site-locale-switch.ff-locale-picker {
  position: relative;
  z-index: 80;
  display: inline-flex !important;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ff-locale-trigger {
  display: inline-flex;
  min-width: 86px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #303238;
  border-radius: 4px;
  background: #111216;
  color: #f2f5f8;
  font-family: "Friday Golos Text", "Golos Text", "Noto Sans Devanagari", Arial, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.ff-locale-trigger:hover,
.ff-locale-picker.is-open .ff-locale-trigger {
  border-color: #4a4d55;
  background: #18191d;
}

.ff-locale-trigger:focus-visible {
  outline: 2px solid #ef3124;
  outline-offset: 2px;
}

.ff-locale-trigger:active {
  background: #1d1e22;
}

.ff-locale-trigger-globe {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #98a6b8;
}

.ff-locale-trigger-title {
  display: none;
  color: #aeb8c6;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.ff-locale-current {
  min-width: 20px;
  color: #f4f6f8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  font-variant-numeric: tabular-nums;
}

.ff-locale-trigger-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: #8794a6;
  transition: transform 140ms ease;
}

.ff-locale-picker.is-open .ff-locale-trigger-chevron {
  transform: rotate(180deg);
}

.ff-locale-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 192px;
  gap: 0;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #303238;
  border-radius: 4px;
  background: #111216;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transform-origin: top right;
  animation: ff-locale-menu-enter 110ms ease-out both;
}

.ff-locale-menu[hidden] {
  display: none !important;
}

.ff-locale-picker .ff-locale-option.site-locale-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0;
  background: transparent !important;
  color: #d7d9de !important;
  font-family: "Friday Golos Text", "Golos Text", "Noto Sans Devanagari", Arial, sans-serif;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.ff-locale-option:hover,
.ff-locale-option:focus-visible {
  background: #18191d !important;
  color: #ffffff !important;
}

.ff-locale-option:focus-visible {
  outline: 2px solid #ef3124;
  outline-offset: -2px;
}

.ff-locale-option:hover {
  outline: none;
}

.site-actions .ff-locale-picker .ff-locale-option.is-active {
  background: rgba(239, 49, 36, 0.09) !important;
  color: #ffffff !important;
  box-shadow: inset 2px 0 0 #ef3124 !important;
}

.ff-locale-picker .ff-locale-option:last-child {
  border-bottom: 0 !important;
}

.ff-locale-option-code {
  color: #8f949d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ff-locale-option-name {
  overflow: hidden;
  color: #d7d9de;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-locale-option::after {
  content: "";
  color: #ef3124;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.ff-locale-option.is-active::after {
  content: "\2713";
}

.ff-locale-option.is-active .ff-locale-option-code {
  color: #ef655b;
}

.ff-locale-option.is-active .ff-locale-option-name {
  color: #ffffff;
}

@keyframes ff-locale-menu-enter {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 919px) {
  .site-header-inner {
    gap: 7px;
  }

  .site-actions {
    gap: 6px;
  }

  .ff-locale-trigger {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    gap: 0;
    padding: 0;
    border-radius: 4px;
  }

  .ff-locale-trigger-globe {
    display: none;
  }

  .ff-locale-current {
    min-width: 0;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }

  .ff-locale-trigger-title,
  .ff-locale-trigger-chevron {
    display: none;
  }

  .ff-locale-menu {
    top: calc(100% + 6px);
    width: min(192px, calc(100vw - 20px));
  }
}

@media (max-width: 380px) {
  .site-actions .site-button-header-primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-locale-trigger,
  .ff-locale-trigger-chevron {
    transition: none;
  }

  .ff-locale-menu {
    animation: none;
  }
}

/* v20260910-header-cta06: strict header action. */
body .site-actions .site-button-header-primary {
  min-width: 98px !important;
  min-height: 42px !important;
  padding: 0 20px !important;
  border: 1px solid #ef3124 !important;
  border-radius: 4px !important;
  background: #ef3124 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  transform: none !important;
}

body .site-actions .site-button-header-primary:hover {
  border-color: #d92b20 !important;
  background: #d92b20 !important;
  box-shadow: none !important;
  transform: none !important;
}

body .site-actions .site-button-header-primary:focus-visible {
  outline: 2px solid rgba(239, 49, 36, 0.42) !important;
  outline-offset: 3px !important;
}

@media (max-width: 919px) {
  body .site-actions .site-button-header-primary {
    min-width: 78px !important;
    min-height: 38px !important;
    padding-inline: 13px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
  }
}

/* v20260910-header-actions07: one strict geometry for header controls. */
body .site-actions {
  gap: 8px !important;
}

body .site-actions .ff-locale-trigger {
  min-width: 86px !important;
  min-height: 42px !important;
  padding: 0 11px !important;
  border: 1px solid #303238 !important;
  border-radius: 4px !important;
  background: #111216 !important;
  box-shadow: none !important;
  transform: none !important;
}

body .site-actions .ff-locale-trigger:hover,
body .site-actions .ff-locale-trigger:hover {
  border-color: #4a4d55 !important;
  background: #18191d !important;
}

body .site-actions .ff-locale-picker.is-open .ff-locale-trigger {
  border-color: #66332f !important;
  background: #171416 !important;
}

body .site-actions .site-header-login {
  min-width: 76px !important;
  min-height: 42px !important;
  justify-content: center !important;
  padding: 0 17px !important;
  border: 1px solid #393b41 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #d7d8dc !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
}

body .site-actions .site-header-login:hover {
  border-color: #555860 !important;
  background: #17181c !important;
  color: #ffffff !important;
}

body .site-actions .site-menu-toggle {
  border-color: #303238 !important;
  border-radius: 4px !important;
  background: #111216 !important;
  box-shadow: none !important;
}

body .site-actions .site-menu-toggle:hover {
  border-color: #4a4d55 !important;
  background: #18191d !important;
}

.ff-locale-menu {
  border-radius: 4px !important;
}

@media (max-width: 919px) {
  body .site-actions {
    gap: 7px !important;
  }

  body .site-actions .ff-locale-trigger,
  body .site-actions .site-menu-toggle {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 4px !important;
  }
}

/* v20260910-header-actions08: remove the unused mobile navigation trigger. */
body .site-menu-toggle,
body .site-mobile-panel {
  display: none !important;
}

@media (max-width: 380px) {
  body .site-actions .site-button-header-primary {
    display: inline-flex !important;
    min-width: 70px !important;
    padding-inline: 10px !important;
    font-size: 11.5px !important;
  }
}

/* v20260910-header-actions09: compensate transparent left canvas in the logo PNG. */
body .site-header .site-brand {
  overflow: visible !important;
}

body .site-header .site-brand-logo {
  transform: translateX(-16%) !important;
}

body .site-actions .site-header-login {
  gap: 7px !important;
}

body .site-actions .site-header-login::before {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5H6.75A1.75 1.75 0 0 0 5 5.25v9.5a1.75 1.75 0 0 0 1.75 1.75H11'/%3E%3Cpath d='M9 10h7m-2.5-2.5L16 10l-2.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5H6.75A1.75 1.75 0 0 0 5 5.25v9.5a1.75 1.75 0 0 0 1.75 1.75H11'/%3E%3Cpath d='M9 10h7m-2.5-2.5L16 10l-2.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* v20260910-header-actions10: show the login glyph on the red mobile CTA. */
@media (max-width: 919px) {
  body .site-actions .site-button-header-primary {
    gap: 6px !important;
  }

  body .site-actions .site-button-header-primary::before {
    content: "" !important;
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5H6.75A1.75 1.75 0 0 0 5 5.25v9.5a1.75 1.75 0 0 0 1.75 1.75H11'/%3E%3Cpath d='M9 10h7m-2.5-2.5L16 10l-2.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5H6.75A1.75 1.75 0 0 0 5 5.25v9.5a1.75 1.75 0 0 0 1.75 1.75H11'/%3E%3Cpath d='M9 10h7m-2.5-2.5L16 10l-2.5 2.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
  }
}
