body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #0B1220;
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] {
  font-family: "Noto Sans SC", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .tracking-tight,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] .tracking-tight,
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 {
  letter-spacing: 0;
}

html[lang="ru"] body,
html[lang="ru"] {
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[lang="he"] body,
html[lang="he"] {
  font-family: "Noto Sans Hebrew", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[lang="ja"] body,
html[lang="ja"] {
  font-family: "Noto Sans JP", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[lang="hi"] body,
html[lang="hi"] {
  font-family: "Noto Sans Devanagari", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[dir="rtl"] table.min-w-full,
html[dir="rtl"] table.w-full,
html[dir="rtl"] .text-left {
  text-align: right;
}

html[dir="rtl"] .pl-5 {
  padding-left: 0;
  padding-right: 1.25rem;
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 1.4rem;
}

html[dir="rtl"] nav[aria-label="Primary"] > a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .nav-drop-menu {
  left: auto;
  right: 0;
}

.lang-switch {
  position: relative;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  color: #0b1220;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lang-switch-btn .fa-globe {
  color: #ff201b;
  font-size: 0.8rem;
}

.lang-switch-btn .fa-chevron-down {
  font-size: 0.62rem;
  opacity: 0.55;
  transition: transform 0.18s ease;
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  border-color: #cbd5e1;
}

.lang-switch.is-open .fa-chevron-down {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
  z-index: 50;
}

.lang-switch-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.65rem;
  color: #0b1220;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch-menu a:hover {
  background: #f8fafc;
}

.lang-switch-menu a[aria-current="true"] {
  background: #0b1220;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.5rem 0.75rem;
}

#site-header {
  transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
}

.hero-mesh {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 88% 8%, rgba(255, 32, 27, 0.12), transparent 52%),
    radial-gradient(50% 40% at 8% 90%, rgba(255, 32, 27, 0.05), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f6f7fb 100%);
}

.hero-mesh::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  right: -6rem;
  top: -8rem;
  border-radius: 9999px;
  background: rgba(255, 32, 27, 0.08);
  filter: blur(10px);
  animation: blob-drift 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-mesh > * {
  position: relative;
  z-index: 1;
}

.shot-frame {
  background: #eef1f6;
  box-shadow: 0 22px 50px -24px rgba(15, 23, 42, 0.38);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-mesh .shot-frame {
  animation: float-shot 6.5s ease-in-out infinite;
}

.shot-tab {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shot-tab:hover {
  transform: translateY(-1px);
}

.shot-tab.is-active {
  background: #0B1220;
  color: #fff;
  border-color: #0B1220;
}

#shot-stage {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#shot-stage.shot-swap {
  opacity: 0;
  transform: scale(0.985);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 13rem;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

#mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.24s ease;
}

#mobile-nav.nav-open {
  max-height: 32rem;
  opacity: 1;
}

nav[aria-label="Primary"] > a {
  position: relative;
  transition: color 0.2s ease;
}

nav[aria-label="Primary"] > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: #FF201B;
  transition: width 0.2s ease;
}

nav[aria-label="Primary"] > a:hover::after,
nav[aria-label="Primary"] > a.nav-current::after {
  width: 100%;
}

header a[href="index.html"] span.bg-wps,
header a[href="index.html"] .grid {
  transition: transform 0.25s ease;
}

header a[href="index.html"]:hover span.bg-wps,
header a[href="index.html"]:hover .grid {
  transform: rotate(-8deg) scale(1.06);
}

.nav-current {
  color: #FF201B;
}

[data-accordion] {
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF201B;
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(255, 32, 27, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

[data-acc-icon] {
  transition: transform 0.2s ease;
}

table {
  border-collapse: collapse;
}

.prose-page h2 {
  scroll-margin-top: 5.5rem;
}

.crumb a {
  transition: color 0.2s ease;
}

.crumb a:hover {
  color: #FF201B;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}

.reveal.is-in {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

main a.rounded-2xl,
main article.rounded-2xl,
main li.rounded-2xl {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

main a.rounded-2xl:hover,
main article.rounded-2xl:hover,
main li.rounded-2xl:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.28);
}

a.rounded-full,
header a.rounded-full,
.bg-wps.rounded-full,
a.rounded-lg.bg-wps {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

a.rounded-full:hover,
header a.rounded-full:hover,
a.rounded-lg.bg-wps:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(255, 32, 27, 0.65);
}

a.rounded-full:active,
header a.rounded-full:active {
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top.visible:hover {
  transform: translateY(-3px);
}

[data-accordion] {
  transition: background 0.2s ease;
}

[data-accordion]:hover {
  background: #f8fafc;
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:hover {
  background: #f8fafc;
}

.bg-wps a.rounded-full {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-shot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes blob-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh::after,
  .hero-mesh .shot-frame,
  .reveal.is-in {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #mobile-nav,
  .nav-drop-menu,
  #shot-stage,
  main a.rounded-2xl,
  main article.rounded-2xl,
  main li.rounded-2xl,
  a.rounded-full {
    transition: none !important;
  }
}
