/* Yexus Love Stage 8: clean, accessible three-row mobile navigation.
   Mobile only. All existing language/login/menu functionality is unchanged. */
@media (max-width: 920px) {
  html body .jl-unified-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto !important;
    align-items: center !important;
    justify-items: stretch !important;
    column-gap: 0 !important;
    row-gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 13px 15px 12px !important;
    overflow: visible !important;
    position: relative !important;
  }
  html body .jl-unified-header .jl-unified-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    justify-self: center !important;
    align-self: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 67px !important;
    min-height: 67px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 1 !important;
  }
  html body .jl-unified-header .jl-unified-brand img {
    display: block;
    width: auto !important;
    max-width: 105px !important;
    height: auto !important;
    max-height: 65px !important;
    object-fit: contain !important;
    position: static !important;
    transform: none !important;
  }
  /* Respect the existing language-specific logo visibility rule. */
  html[lang="hmn"] body .jl-unified-header .jl-logo-en,
  html[lang="hm"] body .jl-unified-header .jl-logo-en {display:none !important;}
  html[lang="hmn"] body .jl-unified-header .jl-logo-hm,
  html[lang="hm"] body .jl-unified-header .jl-logo-hm {display:block !important;}
  html:not([lang="hmn"]):not([lang="hm"]) body .jl-unified-header .jl-logo-hm {display:none !important;}
  html body .jl-unified-header .jl-unified-langs {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    white-space: normal !important;
  }
  html body .jl-unified-header .jl-unified-langs button,
  html body .jl-unified-header .jl-unified-langs a[data-yexus-login-fixed] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    border-radius: 11px !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    white-space: nowrap !important;
  }
  html body .jl-unified-header .jl-unified-mobile-toggle {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    height: 43px !important;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 9px 16px !important;
    position: static !important;
    transform: none !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
    cursor: pointer !important;
  }
  html body .jl-unified-header .jl-unified-nav {
    grid-column: 1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  html body .jl-unified-header:not(.jl-menu-open) .jl-unified-nav {
    display: none !important;
  }
  html body .jl-unified-header.jl-menu-open .jl-unified-nav {
    display: flex !important;
  }
}
@media (max-width: 350px) {
  html body .jl-unified-header {padding-inline: 9px !important;}
  html body .jl-unified-header .jl-unified-langs {gap: 4px !important;}
  html body .jl-unified-header .jl-unified-langs button,
  html body .jl-unified-header .jl-unified-langs a[data-yexus-login-fixed] {
    padding-inline: 7px !important;
    font-size: 11px !important;
  }
}


/* 2026-11-18 master restoration: secondary site header variants. */
@media(max-width:920px){
 html body .jl-profile-sticky,html body .px-global-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:8px!important;padding:12px 14px!important;min-height:0!important;height:auto!important;align-items:center!important;justify-items:stretch!important;overflow:visible!important}
 html body .jl-profile-sticky .jl-profile-brand,html body .px-global-header .px-brand{grid-row:1!important;grid-column:1!important;justify-self:center!important;width:110px!important;height:65px!important;min-width:0!important;max-width:110px!important;display:flex!important;align-items:center!important;justify-content:center!important}
 html body .jl-profile-sticky .jl-profile-brand img,html body .px-global-header .px-brand img{max-width:105px!important;max-height:65px!important;width:auto!important;height:auto!important;object-fit:contain!important}
 html body .jl-profile-sticky .jl-profile-languages,html body .px-global-header .px-lang-choice{grid-row:2!important;grid-column:1!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:center!important;justify-self:stretch!important;width:100%!important;margin:0!important;position:static!important;transform:none!important}
 html body .jl-profile-sticky .jl-profile-languages button,html body .jl-profile-sticky .jl-profile-languages a,html body .px-global-header .px-lang-choice button,html body .px-global-header .px-lang-choice a{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;height:38px!important;padding:7px 10px!important;font-size:12px!important;border-radius:11px!important;position:static!important;margin:0!important;white-space:nowrap!important}
 html body .jl-profile-sticky .jl-profile-mobile-menu,html body .px-global-header .px-menu-toggle{grid-row:3!important;grid-column:1!important;justify-self:stretch!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:43px!important;margin:0!important;position:static!important;transform:none!important}
 html body .jl-profile-sticky nav#jl-profile-top-nav,html body .px-global-header nav#px-global-menu{grid-row:4!important;grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;position:static!important}
}
@media(max-width:390px){html body .jl-unified-header .jl-unified-langs button,html body .jl-unified-header .jl-unified-langs a[data-yexus-login-fixed],html body .jl-profile-sticky .jl-profile-languages button,html body .jl-profile-sticky .jl-profile-languages a{font-size:11px!important;padding-inline:7px!important}}
@media(max-width:920px){html body .jl-unified-header,html body .jl-profile-sticky,html body .px-global-header{max-width:100vw!important}}
/* Only the header is styled; no hidden account, CRM, or payment controls touched. */
