
/* XINYASHI MOBILE COMPACT V4 */
@media (max-width:620px){
  :root{
    --xmh-shell-h:52px !important;
  }

  body.xmh-shell-ready{
    padding-top:52px !important;
  }

  .xmh-fixed-shell{
    height:52px !important;
    min-height:52px !important;
    padding:0 10px !important;
    grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) !important;
  }

  .xmh-fixed-brand{
    gap:6px !important;
    text-decoration:none !important;
  }

  .xmh-fixed-brand img{
    width:30px !important;
    height:30px !important;
    flex:0 0 30px !important;
  }

  .xmh-fixed-brand span{
    max-width:78px !important;
    font-size:12px !important;
    line-height:1 !important;
  }

  .xmh-fixed-menu{
    width:36px !important;
    height:36px !important;
    border-radius:10px !important;
    font-size:20px !important;
  }

  .xmh-fixed-right{
    gap:5px !important;
  }

  .xmh-fixed-theme,
  .xmh-fixed-lang{
    width:34px !important;
    height:34px !important;
    border-radius:9px !important;
  }

  .xmh-fixed-theme{
    font-size:16px !important;
  }

  .xmh-fixed-lang img{
    width:24px !important;
    height:16px !important;
    border-radius:3px !important;
  }

  .xmh3-lang-pop{
    top:56px !important;
    right:8px !important;
  }

  /* Compact inner-page headers */
  .page-hero,
  .page-hero.page-hero-compact,
  .inner-hero,
  .page-banner{
    min-height:0 !important;
    padding:18px 0 16px !important;
  }

  .page-hero .container,
  .page-hero-inner{
    padding-top:0 !important;
    padding-bottom:0 !important;
  }

  .page-hero .eyebrow,
  .inner-hero .eyebrow,
  .page-banner .eyebrow{
    font-size:9px !important;
    line-height:1.2 !important;
    margin-bottom:5px !important;
    letter-spacing:.12em !important;
  }

  .page-hero h1,
  .inner-hero h1,
  .page-banner h1{
    font-size:24px !important;
    line-height:1.1 !important;
    margin:0 !important;
    letter-spacing:-.02em !important;
  }

  /* Hide long explanation under title on mobile */
  .page-hero p,
  .page-hero .lead,
  .page-hero .subtitle,
  .page-hero .description,
  .inner-hero p,
  .page-banner p{
    display:none !important;
  }

  /* Reduce first content gap after page hero */
  .page-hero + .section,
  .page-hero + main .section:first-child,
  .inner-hero + .section,
  .page-banner + .section{
    padding-top:22px !important;
  }

  /* Compact common section heading on mobile */
  .section-head{
    margin-bottom:12px !important;
  }

  .section-head h2{
    font-size:22px !important;
    line-height:1.12 !important;
  }
}

@media (max-width:380px){
  .xmh-fixed-brand span{
    display:none !important;
  }
}
