
/* =====================================================================
   Language switcher (topbar right) — added 2026-10-24
   Compact EN / 中文 toggle, matches topbar amber (#FFAA01) background.
   ===================================================================== */
.topbar .topbar-right .ry-lang-switcher {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 22px;
  gap: 4px;
}
.topbar .topbar-right .ry-lang-link {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: #002c42 !important;
  border: 1px solid rgba(0, 44, 66, 0.4);
  border-radius: 3px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.topbar .topbar-right .ry-lang-link:hover {
  border-color: #002c42;
  background: rgba(0, 44, 66, 0.08);
}
.topbar .topbar-right .ry-lang-link.is-active {
  background: #002c42;
  color: #fff !important;
  border-color: #002c42;
}
/* 中文 label: do not apply uppercase letter-spacing look */
.topbar .topbar-right .ry-lang-zh-hans {
  text-transform: none;
  letter-spacing: 0;
}

/* =====================================================================
   Language switcher — mobile (offcanvas drawer), added 2026-10-24
   White drawer background: dark teal pill buttons, full-width split.
   ===================================================================== */
.gva-offcanvas-mobile .after-offcanvas .ry-lang-switcher {
  display: flex;
  gap: 8px;
  margin: 0;
}
.gva-offcanvas-mobile .after-offcanvas .ry-lang-link {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #002c42 !important;
  border: 1px solid rgba(0, 44, 66, 0.35);
  border-radius: 4px;
  background: #fff;
  text-decoration: none !important;
  transition: all 0.25s ease;
}
.gva-offcanvas-mobile .after-offcanvas .ry-lang-link:hover {
  border-color: #002c42;
  background: rgba(0, 44, 66, 0.06);
}
.gva-offcanvas-mobile .after-offcanvas .ry-lang-link.is-active {
  background: #002c42;
  color: #fff !important;
  border-color: #002c42;
}
.gva-offcanvas-mobile .after-offcanvas .ry-lang-zh-hans {
  text-transform: none;
  letter-spacing: 0;
}

/* =====================================================================
   Accessibility: contrast fixes — added 2026-10-24
   Amber #FFAA01 as TEXT on light backgrounds -> #8A5A00 (>=4.5:1).
   Amber on dark backgrounds (footer/topbar) untouched (already >=4.5:1).
   ===================================================================== */
@media (min-width: 992px) {
  .navigation .gva_menu > li > a:hover,
  .navigation .gva_menu > li > a:active,
  .navigation .gva_menu > li > a.is-active,
  .navigation .gva_menu > li.menu-item--active-trail > a {
    color: #8A5A00;
  }
  .navigation .gva_menu > li.menu-item--active-trail > a {
    color: #8A5A00 !important;
  }
}
.post-block .post-categories a,
.post-block .post-title a:hover,
.post-block .post-title a:active,
.post-footer .item-list ul li .post-block .post-title a:hover,
.gva-quick-side .content-inner ul > li a:hover,
.gva-quick-side .content-inner ul > li a:active,
.gva-quick-side .content-inner ul > li a:focus,
.sidebar .block-menu ul li.menu-item--active-trail > a,
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus,
.nav-tabs > li > a:active {
  color: #8A5A00;
}
.gsc-heading .sub-title {
  color: #5C5F63;
}
