/* Language switcher — sidebar nav layout (Lanes-style) */

.navbar-brand img {
  max-width: 180px;
  height: auto;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    max-width: 140px;
  }
}

.nav-actions {
  margin-top: 0;
}

/* Mobile: top bar, pinned to the right */
@media (max-width: 991.98px) {
  .navbar .nav--secondary {
    padding-right: 4.75rem;
  }

  .navbar .nav--secondary .lang-switch--bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    order: 5;
    z-index: 1;
  }
}

/* Desktop: sidebar column — lang pinned to bottom-left */
@media (min-width: 992px) {
  #main-navigation .offcanvas.offcanvas-start {
    display: flex;
    flex-direction: column;
  }

  #main-navigation .offcanvas-body {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto !important;
    min-height: 0;
    overflow-y: auto !important;
  }

  #main-navigation .nav-list {
    flex: 1 1 auto;
  }

  #main-navigation .nav-actions {
    flex-shrink: 0;
    padding-bottom: 1rem;
  }

  #main-navigation .sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0 30px 1.5rem;
    background-color: #fff;
    border-top: 1px solid #ececec;
  }

  #main-navigation .lang-switch--sidebar {
    justify-content: flex-start;
    padding-top: 1rem;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch__item {
  color: #414141;
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  transition: color 0.2s;
}

.lang-switch__item:hover,
.lang-switch__item.is-active {
  color: #39b5e1;
}

.lang-switch__sep {
  color: #ced4da;
  font-weight: 400;
}

html[lang="zh"] body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3 {
  font-family: inherit;
}

.footer--minimal {
  padding: 20px 0 28px;
}

.footer--minimal .copyright {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
