/* Yuexi horizontal signatures are drawn in the original Chinese and Latin lettering. */
:root { --wl-yuexi-nav: url("nav-light.svg"); }
html:is(.dark,[data-theme="dark"],[data-wanli-skin]), .wanli-login[data-appearance="page"] {
  --wl-yuexi-nav: url("nav-dark.svg");
}
/* The native day theme keeps the navigation rail dark as well. */
.wanli-studio-brand { --wl-yuexi-nav: url("nav-dark.svg"); }
.wanli-studio-brand:has(> .wanli-studio-lockup),
[class*="proxy-brand-lockup_lockup"]:has(img:is([src$="?v=0"],[src*="/wanli-brand/wanli-mark-v4.png"])) {
  display: inline-block; flex: none; height: 43px; width: 114px; max-width: 100%;
  vertical-align: middle; background: var(--wl-yuexi-nav) left center / contain no-repeat;
}
.wanli-studio-brand > .wanli-studio-lockup,
[class*="proxy-brand-lockup_lockup"]:has(img:is([src$="?v=0"],[src*="/wanli-brand/wanli-mark-v4.png"])) > span {
  visibility: hidden;
}
.brand.wl-yuexi-brand { display: inline-flex; align-items: center; flex: none; }
.brand.wl-yuexi-brand img, .wl-yuexi-caption {
  display: block; width: auto; height: 40px; max-width: 100%; object-fit: contain; filter: none;
}
.palette-caption .wl-yuexi-caption { height: 33px; }
footer .brand.wl-yuexi-brand img { height: 34px; }
@media (max-width: 720px) {
  .sidebar .brand.wl-yuexi-brand { display: none; }
}
.mast.wl-yuexi-mast {
  inset: auto auto clamp(124px,18svh,210px) var(--edge);
  width: clamp(92px,7.4vw,140px); height: auto; opacity: 1;
}
.wl-yuexi-mast img { display: block; height: auto; width: 100%; }
@media (max-width: 620px) {
  .brand.wl-yuexi-brand img { height: 34px; }
  .mast.wl-yuexi-mast { bottom: max(144px,20svh); width: clamp(71px,20vw,95px); }
}
@media (max-width: 350px) {
  header .brand.wl-yuexi-brand img { height: 29px; }
  .hero .vertical { display: none; }
}
