/* Match the custom headers' glass navigation and keep the primary CTA prominent. */
:is(.hpt-home,.hpt-product,.hpt-subpages) .site-header .hpt-header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hpt-header-actions .nav-cta { flex-shrink: 0; white-space: nowrap; }
.hpt-language-item { list-style: none !important; position: relative; flex-shrink: 0; }
.hpt-language-picker { position: relative; font-family: inherit; font-size: 12px; letter-spacing: 0; line-height: 1.5; color: #d2d2d7; }
.hpt-language-picker > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  list-style: none;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.hpt-language-picker > summary::-webkit-details-marker { display: none; }
.hpt-language-picker > summary::marker { content: ''; }
.hpt-language-picker > summary:hover,
.hpt-language-picker[open] > summary { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.08); }
.hpt-language-picker > summary:focus-visible { outline: 2px solid #2997ff; outline-offset: 3px; }
.hpt-language-picker .hpt-language-globe { display: block; width: 16px; height: 16px; flex-shrink: 0; }
.hpt-language-picker .hpt-language-chevron { display: block; width: 10px; height: 10px; flex-shrink: 0; opacity: .65; transition: transform .2s ease; }
.hpt-language-picker[open] .hpt-language-chevron { transform: rotate(180deg); }
.hpt-language-picker .hpt-language-code { display: none; }
.hpt-language-picker .hpt-language-options {
  position: absolute !important;
  top: calc(100% + 10px);
  right: 0;
  display: block !important;
  width: 176px;
  padding: 8px !important;
  margin: 0 !important;
  list-style: none !important;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(18,18,22,.94);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 10001;
}
.hpt-language-picker:not([open]) .hpt-language-options { display: none !important; }
.hpt-language-options li { margin: 0 !important; padding: 0 !important; }
.hpt-language-picker .hpt-language-options a {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 38px;
  padding: 9px 32px 9px 12px !important;
  border-radius: 8px;
  color: #d2d2d7 !important;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.hpt-language-picker .hpt-language-options a:hover,
.hpt-language-picker .hpt-language-options a:focus-visible { color: #fff !important; background: rgba(255,255,255,.08); }
.hpt-language-picker .hpt-language-options a:focus-visible { outline: 2px solid #2997ff; outline-offset: -2px; }
.hpt-language-picker .hpt-language-options a[aria-current] { color: #fff !important; background: rgba(255,255,255,.045); }
.hpt-language-picker .hpt-language-options a[aria-current]::after {
  content: '';
  position: absolute;
  right: 13px;
  width: 5px;
  height: 9px;
  border: solid #2997ff;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.hpt-classic-language {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(18,18,22,.94);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.hpt-classic-language > ul { padding: 0; margin: 0; list-style: none; }
.hpt-classic-language .hpt-language-options { top: auto; bottom: calc(100% + 10px); }
html[lang^="zh"] .hpt-home,html[lang^="ja"] .hpt-home,html[lang^="ko"] .hpt-home,
html[lang^="zh"] .hpt-product,html[lang^="ja"] .hpt-product,html[lang^="ko"] .hpt-product,
html[lang^="zh"] .hpt-subpages,html[lang^="ja"] .hpt-subpages,html[lang^="ko"] .hpt-subpages{word-break:normal;overflow-wrap:anywhere}
html[lang^="zh"] .hero h1,html[lang^="ja"] .hero h1,html[lang^="ko"] .hero h1{letter-spacing:-.03em;font-size:clamp(34px,5.2vw,64px)}
@media (max-width: 840px) {
  .hpt-header-actions .hpt-language-picker > summary { min-height: 44px; }
  .hpt-language-picker .hpt-language-options a { min-height: 44px; }
  :is(.hpt-home,.hpt-product,.hpt-subpages) .primary-nav .menu-item.is-submenu-open > .submenu { max-height: 280px; }
}
@media (max-width: 420px) {
  :is(.hpt-home,.hpt-product,.hpt-subpages) .site-header .hpt-header-actions { gap: 4px; }
  .hpt-header-actions .hpt-language-label { display: none; }
  .hpt-header-actions .hpt-language-code { display: inline; font-size: 11px; }
  .hpt-header-actions .hpt-language-picker > summary { gap: 4px; padding: 0 5px; }
}
@media (max-width: 360px) {
  :is(.hpt-home,.hpt-product,.hpt-subpages) .site-header[data-site-header] { column-gap: 6px; padding-left: 16px; padding-right: 16px; }
  .hpt-header-actions .hpt-language-code,.hpt-header-actions .hpt-language-chevron { display: none; }
  .hpt-header-actions .hpt-language-picker > summary { min-width: 36px; padding: 0 9px; }
  :is(.hpt-home,.hpt-product,.hpt-subpages) .site-header .hpt-header-actions .nav-cta { padding-left: 10px; padding-right: 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hpt-language-picker > summary,.hpt-language-picker .hpt-language-chevron,.hpt-language-picker .hpt-language-options a { transition: none; }
}
