/* Common site chrome. Product-specific content stays in its own stylesheet. */
:root
{
  --site-width: 1280px;
  --site-gutter: 48px;
  --panel-radius: 6px;
  --header-height: 88px;
}
body.site-shell .wrap, .common-footer-inner
{
  width: min(var(--site-width), calc(100% - var(--site-gutter) * 2));
  margin-inline: auto;
}
.shared-header
{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 248, .97);
  border-bottom: 1px solid #dce3da;
  backdrop-filter: none;
}
.shared-header .nav-row
{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: var(--header-height);
  padding-block: 12px;
  gap: 24px;
}
.shared-header .menu-toggle
{
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #dce3da;
  border-radius: 5px;
  background: transparent;
  color: #18382e;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.shared-header [data-common-navigation]
{
  display: flex;
  align-items: center;
  gap: 20px;
}
.shared-header .nav-links
{
  display: flex;
  align-items: center;
  gap: 20px;
}
.shared-header [data-common-navigation] > a, .shared-header .nav-links > a
{
  padding: 8px 0;
  color: #58695f;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.shared-header [data-common-navigation] > a:hover, .shared-header .nav-links > a:hover
{
  color: #174c3c;
}
.lang-switch
{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(21, 56, 94, 0.08);
  box-shadow: 0 10px 26px rgba(25, 73, 130, 0.08);
}

.lang-button
{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.flag-icon
{
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.flag-us
{
  background:
    linear-gradient(
      180deg,
      #b22234 0,
      #b22234 7.69%,
      #ffffff 7.69%,
      #ffffff 15.38%,
      #b22234 15.38%,
      #b22234 23.07%,
      #ffffff 23.07%,
      #ffffff 30.76%,
      #b22234 30.76%,
      #b22234 38.45%,
      #ffffff 38.45%,
      #ffffff 46.14%,
      #b22234 46.14%,
      #b22234 53.83%,
      #ffffff 53.83%,
      #ffffff 61.52%,
      #b22234 61.52%,
      #b22234 69.21%,
      #ffffff 69.21%,
      #ffffff 76.9%,
      #b22234 76.9%,
      #b22234 84.59%,
      #ffffff 84.59%,
      #ffffff 92.28%,
      #b22234 92.28%,
      #b22234 100%
    );
}

.flag-us::before
{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #3c3b6e;
}

.flag-cn
{
  background-color: #de2910;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23de2910'/%3E%3Cpath fill='%23ffde00' d='M5.2 2.2l.7 2.1h2.2L6.3 5.6 7 7.8 5.2 6.5 3.4 7.8l.7-2.2-1.8-1.3h2.2z'/%3E%3Cpath fill='%23ffde00' d='M10.2 2.1l.3.8h.9l-.7.5.3.8-.8-.5-.7.5.2-.8-.7-.5h.9z'/%3E%3Cpath fill='%23ffde00' d='M11.8 4.3l.3.8h.9l-.7.5.3.8-.8-.5-.7.5.2-.8-.7-.5h.9z'/%3E%3Cpath fill='%23ffde00' d='M11.5 7.3l.3.8h.9l-.7.5.3.8-.8-.5-.7.5.2-.8-.7-.5h.9z'/%3E%3Cpath fill='%23ffde00' d='M9.3 9.2l.3.8h.9l-.7.5.3.8-.8-.5-.7.5.2-.8-.7-.5h.9z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.lang-button:hover
{
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.lang-button:focus-visible
{
  outline: 2px solid rgba(47, 102, 255, 0.34);
  outline-offset: 2px;
}

.lang-button.is-active
{
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 20px rgba(47, 102, 255, 0.22);
}


/* All pages use identical language button geometry and states. */
.site-shell .lang-switch
{
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  align-self: auto;
  padding: 4px;
  margin: 0;
  gap: 4px;
  border: 1px solid #dce3da;
  border-radius: 5px;
  background: rgba(255, 255, 255, .74);
  box-shadow: none;
}
.site-shell .lang-switch .lang-button
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.site-shell .lang-switch .lang-button.is-active
{
  background: #174c3c;
}
.site-shell .lang-switch .lang-button:focus-visible
{
  outline: 3px solid #b17827;
  outline-offset: 3px;
}
/* Override the legacy ID-specific radii, including their mobile variants. */
.site-shell #solutions .product-panel,
.site-shell #solutions .core-feature-card,
.site-shell #services .feature-card,
.site-shell #faq .faq-item
{
  border-radius: var(--panel-radius);
}
@media (max-width: 1150px)
{
  :root
  {
    --site-gutter: 32px;
  }
}
@media (max-width: 1050px)
{
  :root
  {
    --header-height: 80px;
  }
  .shared-header .menu-toggle
  {
    display: inline-flex;
  }
  .shared-header [data-common-navigation]
  {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 15px 20px 22px;
    border: 1px solid #dce3da;
    background: #fbfcf8;
    box-shadow: 0 15px 20px #173f3312;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .shared-header [data-common-navigation].is-open
  {
    display: flex;
  }
  .shared-header .nav-links
  {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .shared-header [data-common-navigation] .lang-switch
  {
    align-self: flex-start;
    margin-top: 8px;
  }
}
@media (max-width: 760px)
{
  :root
  {
    --site-gutter: 18px;
  }
  .shared-header .nav-row
  {
    gap: 12px;
  }
}
