/* Public site: compact accessible hamburger menu on phones and tablets.
 * Overrides the legacy mobile swipe row WITHOUT affecting the member dashboard
 * header or desktop navigation. Uses the approved Hamqadam color palette. */
.hq-site .hq-public-menu-toggle{display:none}
@media(max-width:991.98px){
  body.hq-public-page .hq-reference-navbar{position:relative;isolation:isolate}
  body.hq-public-page .hq-reference-navbar-inner{
    display:flex!important;align-items:center!important;
    flex-wrap:nowrap!important;gap:8px!important;
    min-height:64px!important
  }
  body.hq-public-page .hq-reference-navbar .hq-reference-brand{
    min-width:0!important;flex:1 1 auto!important;
    max-width:100%;margin-right:auto
  }
  body.hq-public-page .hq-public-menu-toggle{
    appearance:none;display:inline-flex!important;align-items:center;
    justify-content:center;flex:0 0 40px;width:40px;height:40px;
    padding:0!important;margin:0!important;
    border:1px solid #E5E5E7!important;border-radius:10px;
    background:#FBE0E9!important;color:#A45F7B!important;
    box-shadow:none!important;cursor:pointer;line-height:1;
    font-size:22px;z-index:2
  }
  body.hq-public-page .hq-public-menu-toggle:hover,
  body.hq-public-page .hq-public-menu-toggle[aria-expanded="true"]{
    background:#F4BFD1!important;color:#A45F7B!important;
    border-color:#EEA9C5!important
  }
  body.hq-public-page .hq-public-menu-toggle:focus-visible{
    outline:2px solid #A45F7B!important;outline-offset:2px
  }
  /* Hide the legacy scroll bar entirely when closed. The open menu is a
     stacked panel, not a horizontal overflow region. */
  body.hq-public-page #hq-public-mobile-navigation[hidden]{display:none!important}
  body.hq-public-page #hq-public-mobile-navigation:not([hidden]){
    position:absolute!important;top:100%!important;
    left:0!important;right:0!important;
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100vw!important;
    min-width:0!important;box-sizing:border-box!important;
    padding:12px 16px max(16px,env(safe-area-inset-bottom))!important;
    gap:3px!important;margin:0!important;
    max-height:calc(100dvh - 70px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    border-top:1px solid #E5E5E7!important;
    border-bottom:1px solid #E5E5E7!important;
    background:#FFFFFF!important;
    box-shadow:0 14px 27px rgba(21,21,21,.10)!important;
    z-index:1050!important
  }
  body.hq-public-page #hq-public-mobile-navigation>a{
    display:flex!important;align-items:center;justify-content:flex-start;
    width:100%!important;min-width:0!important;box-sizing:border-box;
    flex:none!important;margin:0!important;
    padding:12px 14px!important;border-radius:9px!important;
    background:#FFFFFF!important;color:#151515!important;
    font-size:13px!important;font-weight:650!important;
    line-height:1.35!important;text-align:left!important;
    white-space:normal!important;overflow-wrap:break-word;
    text-decoration:none!important
  }
  body.hq-public-page #hq-public-mobile-navigation>a:is(:hover,:focus-visible),
  body.hq-public-page #hq-public-mobile-navigation>a.is-active{
    background:#F7E6EE!important;color:#A45F7B!important
  }
  body.hq-public-page #hq-public-mobile-navigation>a:focus-visible,
  body.hq-public-page #hq-public-mobile-navigation .hq-public-mobile-menu-account a:focus-visible{
    outline:2px solid #A45F7B;outline-offset:1px
  }
  body.hq-public-page #hq-public-mobile-navigation .hq-public-mobile-menu-account{
    display:flex;flex-wrap:wrap;gap:8px;
    padding:12px 4px 2px;margin-top:8px;
    border-top:1px solid #E5E5E7;
  }
  body.hq-public-page #hq-public-mobile-navigation .hq-public-mobile-menu-account a{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;
    flex:1 1 130px;min-width:0;box-sizing:border-box;
    border-radius:8px;padding:11px 8px;
    background:#FBE0E9!important;color:#A45F7B!important;
    font-size:12px;font-weight:700;text-decoration:none!important
  }
  body.hq-public-page #hq-public-mobile-navigation .hq-public-mobile-menu-account a:last-child{
    background:#F4BFD1!important
  }
  body.hq-public-page .aiz-main-wrapper.hq-public-interior-offset{
    padding-top:72px!important
  }
  body.hq-public-page .hq-design-home-hero{
    padding-top:94px!important
  }
}
@media(max-width:575.98px){
  body.hq-public-page .hq-reference-navbar-inner{gap:6px!important}
  body.hq-public-page .hq-public-menu-toggle{
    flex-basis:38px;width:38px;height:38px;font-size:21px
  }
  body.hq-public-page #hq-public-mobile-navigation:not([hidden]){
    padding:9px 12px max(14px,env(safe-area-inset-bottom))!important
  }
  body.hq-public-page .hq-reference-actions{gap:5px!important}
  body.hq-public-page .hq-design-home-hero{padding-top:90px!important}
}
@media(max-width:359.98px){
  body.hq-public-page .hq-reference-navbar-inner{gap:4px!important}
  body.hq-public-page .hq-public-menu-toggle{flex-basis:34px;width:34px;height:34px}
  body.hq-public-page .hq-reference-brand{gap:4px!important}
}
@media(min-width:992px){
  .hq-site .hq-public-menu-toggle,
  .hq-site #hq-public-mobile-navigation{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  body.hq-public-page .hq-public-menu-toggle{transition:none!important}
}

/* Consistent mobile/tablet controls at 320–991px:
   logo on left, account icon just left of the rightmost hamburger.
   Legacy guest CTA visibility used to switch at 576px, which caused
   oversized buttons and hidden icons on medium/large phones. */
@media (max-width:991.98px) {
  body.hq-public-page .hq-reference-navbar-inner {
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:8px!important;
  }
  body.hq-public-page .hq-reference-navbar-inner>.hq-reference-brand {
    order:0!important;
    min-width:0!important;
    flex:1 1 0%!important;
    margin-right:0!important;
    overflow:hidden;
  }
  body.hq-public-page .hq-reference-navbar-inner>.hq-reference-actions {
    order:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 40px!important;
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
  }
  body.hq-public-page .hq-reference-navbar-inner>.hq-public-menu-toggle {
    order:2!important;
    display:inline-flex!important;
    flex:0 0 40px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    margin:0!important;
  }
  /* On all mobile breakpoints, one account control only. */
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-login-button,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-register-button,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-logout-button {
    display:none!important;
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-mobile-guest-account {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 40px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    margin:0!important;
    padding:0!important;
    background:#FBE0E9!important;
    border:1px solid #E5E5E7!important;
    border-radius:50%!important;
    color:#A45F7B!important;
    font-size:23px!important;
    text-decoration:none!important;
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 40px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    max-width:40px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #E5E5E7!important;
    border-radius:50%!important;
    background:#FBE0E9!important;
    box-shadow:none!important;
    color:#A45F7B!important;
    overflow:hidden!important;
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill .hq-nav-avatar {
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    object-fit:cover;
    margin:0!important;
    border-radius:50%!important;
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill .hq-nav-user-name,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill .la-angle-right,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill .la-tachometer-alt,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill>span {
    display:none!important;
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill .hq-admin-mobile-icon {
    display:inline-block!important;
    font-size:22px!important;
    margin:0!important;
    color:#A45F7B!important;
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill:focus-visible,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-mobile-guest-account:focus-visible {
    outline:2px solid #A45F7B!important;
    outline-offset:2px;
  }
}
@media(max-width:575.98px) {
  body.hq-public-page .hq-reference-navbar-inner {gap:6px!important}
  body.hq-public-page .hq-reference-navbar-inner>.hq-reference-actions {
    flex-basis:38px!important;width:38px!important;min-width:38px!important;max-width:38px!important
  }
  body.hq-public-page .hq-reference-navbar-inner>.hq-public-menu-toggle {
    flex-basis:38px!important;width:38px!important;min-width:38px!important;height:38px!important
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-mobile-guest-account,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill {
    flex-basis:38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important
  }
}
@media(max-width:359.98px) {
  body.hq-public-page .hq-reference-navbar-inner {gap:5px!important}
  body.hq-public-page .hq-reference-navbar-inner>.hq-reference-actions {
    flex-basis:34px!important;width:34px!important;min-width:34px!important;max-width:34px!important
  }
  body.hq-public-page .hq-reference-navbar-inner>.hq-public-menu-toggle {
    flex-basis:34px!important;width:34px!important;min-width:34px!important;height:34px!important
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-mobile-guest-account,
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill {
    flex-basis:34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important
  }
  body.hq-public-page .hq-reference-header .hq-reference-actions>.hq-dashboard-pill .hq-nav-avatar {
    width:29px!important;height:29px!important;min-width:29px!important
  }
}

@media(min-width:992px){
  .hq-reference-actions .hq-admin-mobile-icon{display:none!important}
}
