/* Wanxiang V79 | One identical horizontal logo on PC and mobile.
   Artwork contains both elephant (left) and Chinese wordmark (right).
   Never use a separate mobile logo; optimize layout instead. */
.wx-brand-image{display:block;width:100%;height:auto;object-fit:contain}
/* Homepage: older header overrides are intentionally superseded here. */
header .wrap.top{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:space-between!important;min-height:96px!important;
  gap:clamp(9px,1.6vw,20px)!important;padding:7px clamp(10px,2vw,22px)!important;
}
header .logo{
  display:block!important;width:clamp(205px,26vw,318px)!important;max-width:100%!important;
  min-width:0!important;flex:0 1 auto!important;line-height:0!important;
  margin:0!important;padding:0!important;text-decoration:none!important;
}
header .logo img{width:100%!important;height:auto!important;vertical-align:middle!important}
header .nav{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:flex-end!important;margin-left:auto!important;min-width:0!important;
  width:auto!important;flex:0 1 auto!important;gap:clamp(10px,2vw,26px)!important;
}
header .header-language{display:flex!important;flex:0 0 auto!important;align-items:center!important}
/* Reading, audio, theater: identical wordmark and elephant image. */
.wx-appbar .wx-appbar-inner{min-height:88px;gap:12px}
.wx-appbar .wx-brand{
  display:block;flex:0 1 310px;max-width:min(42vw,340px);min-width:0;
  line-height:0;text-decoration:none;
}
.wx-appbar .wx-brand img{display:block;width:100%;height:auto}
.wx-appbar .wx-bar-tools{margin-left:auto;flex:0 0 auto;min-width:0}
@media(max-width:760px){
  /* Put the SAME horizontal logo on its own row; nav and language share row 2. */
  header .wrap.top{
    display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
    grid-template-rows:auto auto!important;align-items:center!important;
    min-height:0!important;gap:0 8px!important;
    padding:6px max(10px,env(safe-area-inset-left,0px)) 8px max(10px,env(safe-area-inset-right,0px))!important;
  }
  header .logo{
    grid-column:1/-1!important;grid-row:1!important;justify-self:start!important;
    width:min(100%,350px)!important;max-width:100%!important;
    flex:none!important;margin:0!important;
  }
  header .nav{
    grid-column:1!important;grid-row:2!important;display:flex!important;
    align-items:center!important;justify-content:flex-start!important;
    flex-wrap:nowrap!important;gap:clamp(10px,3.5vw,22px)!important;
    width:auto!important;margin:0!important;min-width:0!important;
  }
  header .nav a{white-space:nowrap!important}
  header .header-language{
    grid-column:2!important;grid-row:2!important;display:flex!important;
    justify-self:end!important;margin:0!important;
  }
  header .header-language select{max-width:100%!important}
  .wx-appbar .wx-appbar-inner{
    flex-wrap:wrap;min-height:0;gap:2px 10px;
    padding-top:7px;padding-bottom:8px;
  }
  .wx-appbar .wx-brand{
    flex:0 0 min(100%,340px);max-width:100%;width:min(100%,340px);
  }
  .wx-appbar .wx-bar-tools{width:100%;flex:1 1 100%;margin-left:0;justify-content:flex-start;flex-wrap:wrap}
  html{scroll-padding-top:175px}
  .wx-aside{position:static;max-height:none;overflow:visible}
}
@media(max-width:360px){
  header .wrap.top{gap:0 4px!important;padding-left:6px!important;padding-right:6px!important}
  header .logo{width:min(100%,300px)!important}
  header .nav{gap:clamp(5px,2vw,10px)!important}
  header .nav a{font-size:14px!important}
  header .header-language select{font-size:12px!important}
  .wx-appbar .wx-brand{flex-basis:min(100%,300px);width:min(100%,300px)}
}
