/* Public responsive shell: safe at 320px, 360px, 375px, 390px, 414px.
   Keep desktop (>=992px) navigation and CTA layout unchanged.
   This file intentionally does not style the independent member dashboard shell. */
body.hq-public-page .hq-reference-header {
  width:100%!important;
  max-width:100%;
  left:0;
  right:0;
}
body.hq-public-page .hq-reference-navbar,
body.hq-public-page .hq-reference-navbar-inner {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
}
body.hq-public-page .hq-reference-mobile-menu {
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
body.hq-public-page .hq-reference-mobile-menu::-webkit-scrollbar { display:none; }
body.hq-public-page .hq-reference-mobile-menu > a { flex:0 0 auto; }
body.hq-public-page .hq-mobile-guest-account { display:none; }

/* Responsive gutters apply to the shared public header and content, never
   to the administrator or independent signed-in member workspace. */
@media(max-width:991.98px) {
  body.hq-public-page .hq-reference-navbar-inner {
    gap:10px!important;
    flex-wrap:nowrap;
    justify-content:space-between;
  }
  body.hq-public-page .hq-reference-brand {
    min-width:0;
    max-width:100%;
    flex:1 1 auto;
  }
  body.hq-public-page .hq-reference-brand > span:last-child { min-width:0; }
  body.hq-public-page .hq-reference-brand strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.hq-public-page .hq-reference-actions {
    flex:0 0 auto;
    min-width:0;
    margin-left:auto;
  }
  body.hq-public-page .hq-reference-navbar .container {
    width:100%;
    padding-left:16px!important;
    padding-right:16px!important;
  }
  body.hq-public-page .aiz-main-wrapper.hq-public-interior-offset {
    padding-top:108px!important; /* 64px brand row + approx. 40px scrollable menu */
  }
  body.hq-public-page .hq-public-interior-offset .hq-reference-page-hero {
    padding-top:28px!important;
  }
  body.hq-public-page #hamqadam-main-content {
    min-width:0;
    max-width:100%;
  }
  body.hq-public-page #hamqadam-main-content :is(.container,.container-fluid) {
    box-sizing:border-box;
    max-width:100%;
  }
  body.hq-public-page #hamqadam-main-content img,
  body.hq-public-page .hq-reference-footer img {
    max-width:100%;
  }
  body.hq-public-page #hamqadam-main-content :is(.col,.col-6,.col-8,.col-4,[class*="col-md-"],[class*="col-lg-"]) {
    min-width:0;
  }
  body.hq-public-page .hq-design-home-hero {
    padding-top:126px!important;
    padding-bottom:38px!important;
    min-height:0!important;
  }
  body.hq-public-page .hq-design-home-hero .container {
    width:100%!important;
    max-width:100%!important;
    min-width:0;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  body.hq-public-page .hq-design-home-hero .hq-design-hero-row {
    min-height:0!important;
    padding:8px 0 24px!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.hq-public-page .hq-design-hero-row > [class*="col-"] { min-width:0; }
  body.hq-public-page .hq-design-home-hero .hq-hero-copy { max-width:100%; }
  body.hq-public-page .hq-design-search {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    margin-left:0!important;
    margin-right:0!important;
  }
}
@media(max-width:575.98px) {
  /* Guest mobile header: only a single accessible account icon, instead of
     two buttons pushing the brand beyond the right edge of the viewport. */
  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 {
    display:none!important;
  }
  body.hq-public-page .hq-reference-header .hq-mobile-guest-account {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 38px;
    width:38px;
    height:38px;
    min-width:38px;
    border:1px solid #E5E5E7;
    border-radius:50%;
    background:#FBE0E9;
    color:#A45F7B!important;
    font-size:22px;
    text-decoration:none!important;
  }
  body.hq-public-page .hq-reference-header .hq-mobile-guest-account:focus-visible {
    outline:2px solid #A45F7B;
    outline-offset:2px;
  }
  body.hq-public-page .hq-reference-brand-mark {
    flex:0 0 32px;
    width:32px!important;
    height:32px!important;
  }
  body.hq-public-page .hq-reference-brand {
    gap:6px!important;
  }
  body.hq-public-page .hq-reference-brand strong {
    font-size:clamp(18px,5.8vw,23px)!important;
    line-height:1.05;
  }
  body.hq-public-page .hq-reference-brand small {
    font-size:8px;
    line-height:1.1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.hq-public-page .hq-reference-navbar .container {
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.hq-public-page .hq-reference-mobile-menu > a {
    padding:10px 12px!important;
    font-size:11px;
    white-space:nowrap;
  }
  body.hq-public-page #hamqadam-main-content > section:not(.hq-design-home-hero) > .container,
  body.hq-public-page #hamqadam-main-content > div > .container,
  body.hq-public-page #hamqadam-main-content .hq-section > .container,
  body.hq-public-page #hamqadam-main-content .hq-reference-page-hero > .container {
    width:100%;
    padding-left:16px!important;
    padding-right:16px!important;
  }
  body.hq-public-page #hamqadam-main-content :is(h1,h2,h3,p) {
    overflow-wrap:break-word;
  }
  body.hq-public-page .hq-design-home-hero {
    padding-top:125px!important;
    padding-bottom:28px!important;
  }
  body.hq-public-page .hq-design-home-hero .container {
    padding-left:16px!important;
    padding-right:16px!important;
  }
  body.hq-public-page .hq-design-hero-row > .col-lg-6 {
    padding-left:0!important;
    padding-right:0!important;
    width:100%;
    max-width:100%;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-copy h1 {
    font-size:clamp(34px,10.7vw,46px)!important;
    line-height:1.08!important;
    letter-spacing:-.45px;
    overflow-wrap:normal;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-copy p {
    max-width:100%;
    font-size:13px;
    line-height:1.65;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px!important;
    width:100%;
    max-width:100%;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-actions > .hq-hero-btn {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0!important;
    width:100%;
    max-width:100%;
    padding:10px 6px!important;
    font-size:11px!important;
    text-align:center;
    white-space:normal;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-stats {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    max-width:100%!important;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-stats > div {
    display:flex!important;
    flex-direction:column;
    justify-content:center;
    min-width:0!important;
    padding:10px 3px!important;
    text-align:center;
  }
  body.hq-public-page .hq-design-home-hero .hq-hero-stats i { margin:0 auto 5px!important; }
  body.hq-public-page .hq-design-home-hero .hq-hero-stats strong {
    white-space:normal!important;
    overflow-wrap:break-word;
    font-size:9px!important;
  }
  body.hq-public-page .hq-design-search {
    padding:14px 12px!important;
    border-radius:10px;
  }
  body.hq-public-page .hq-design-search .hq-quick-search-heading {
    display:flex;
    flex-wrap:wrap;
    gap:5px 10px;
  }
  body.hq-public-page .hq-design-search .hq-quick-search-heading strong {
    flex:1 1 100%;
    min-width:0;
    font-size:14px;
  }
  body.hq-public-page .hq-design-search .hq-live-verify {
    margin-left:0!important;
  }
  body.hq-public-page .hq-design-search form .row > [class*="col-"] {
    min-width:0;
    padding-left:5px!important;
    padding-right:5px!important;
    margin-bottom:10px;
  }
  body.hq-public-page .hq-design-search :is(.bootstrap-select,.bootstrap-select>.dropdown-toggle,.form-control) {
    max-width:100%;
    min-width:0;
  }
  body.hq-public-page .hq-design-search .hq-search-submit {
    display:block;
    width:100%;
    min-width:0!important;
    white-space:normal;
  }
  /* Full-width content padding on small public pages, not a fixed-bottom
     guest nav. Explicitly protect the last section from the physical edge. */
  body.hq-public-page #hamqadam-main-content {
    padding-bottom:16px;
  }
  body.hq-public-page #hamqadam-main-content :is(.hq-ticket-main,.hq-ticket-side-card,.hq-design-plan-card) {
    padding-left:14px;
    padding-right:14px;
  }
  body.hq-public-page .hq-reference-footer .container {
    padding-left:16px!important;
    padding-right:16px!important;
  }
}
@media(max-width:359.98px) {
  body.hq-public-page .hq-reference-navbar .container {
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body.hq-public-page .hq-reference-brand strong { font-size:18px!important; }
  body.hq-public-page .hq-reference-brand small { font-size:7px!important; }
  body.hq-public-page .hq-design-home-hero .container { padding-left:14px!important;padding-right:14px!important; }
  body.hq-public-page .hq-design-home-hero .hq-hero-copy h1 { font-size:34px!important; }
  body.hq-public-page .hq-design-search form .row > .col-4,
  body.hq-public-page .hq-design-search form .row > .col-8 {
    flex:0 0 100%;
    max-width:100%;
  }
}


/* 12 Nov: fix registration wizard/card nested widths and drop-down controls.
   All guards are scoped to public pages, so desktop forms and the member shell
   are unaffected. */
@media (max-width: 767.98px) {
 body.hq-public-page .hq-home-registration {min-width:0;max-width:100%;padding:36px 0!important}
 body.hq-public-page .hq-home-registration>.container {width:100%!important;min-width:0;max-width:100%;padding-left:16px!important;padding-right:16px!important}
 body.hq-public-page .hq-register-shell {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;min-width:0!important;max-width:100%;width:100%;box-sizing:border-box;padding:22px 14px!important;overflow:visible}
 body.hq-public-page .hq-register-intro,
 body.hq-public-page .hq-register-form-card,
 body.hq-public-page .hq-register-form-card form,
 body.hq-public-page .hq-register-form-card .registration-flow,
 body.hq-public-page .hq-register-form-card .registration-flow-step {min-width:0!important;max-width:100%!important;box-sizing:border-box}
 body.hq-public-page .hq-register-form-card {width:100%!important;margin:0!important;inset:auto!important;transform:none!important}
 body.hq-public-page .hq-register-form-card form {width:100%!important;min-width:0!important;padding:16px 12px!important;margin:0!important}
 body.hq-public-page .hq-register-form-card .registration-flow-window {max-width:100%!important;box-sizing:border-box}
 body.hq-public-page .hq-register-form-card .registration-flow-step>.row {min-width:0;max-width:100%;margin-left:-5px!important;margin-right:-5px!important}
 body.hq-public-page .hq-register-form-card .registration-flow-step>.row>[class*="col"] {min-width:0!important;max-width:100%;padding-left:5px!important;padding-right:5px!important}
 body.hq-public-page .hq-register-form-card :is(.form-control,.bootstrap-select,.bootstrap-select>.dropdown-toggle,.iti,input,select,textarea) {max-width:100%!important;min-width:0!important;box-sizing:border-box}
 body.hq-public-page .hq-register-form-card .dropdown-toggle .filter-option {max-width:100%;overflow:hidden}
 body.hq-public-page .hq-register-form-card .registration-flow-actions {display:flex!important;flex-wrap:wrap;gap:8px!important}
 body.hq-public-page .hq-register-form-card .registration-flow-actions .btn {min-width:0!important;flex:1 1 0%;margin:0!important;white-space:normal}
 /* Registration step numbers are preserved and shrink proportionally rather
    than forcing the three-circle strip wider than a 320px phone. */
 body.hq-public-page .hq-register-form-card .registration-flow-window {--step-circle-size:40px!important;padding:14px 7px!important;margin:0 0 18px!important;overflow:hidden}
 body.hq-public-page .hq-register-form-card .registration-flow-track {min-width:0}
 body.hq-public-page .hq-register-form-card .registration-flow-circle {min-width:40px!important;width:40px!important;height:40px!important;font-size:13px!important}
 body.hq-public-page .hq-register-steps {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.hq-public-page .hq-register-steps>span {min-width:0;white-space:normal;overflow-wrap:break-word}
 /* The contact form icon gets its own line, with a full-width heading/copy. */
 body.hq-public-page .hq-ref24-support .hq-ticket-heading {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;min-width:0}
 body.hq-public-page .hq-ref24-support .hq-ticket-heading>span {flex:0 0 43px!important;width:43px!important;height:43px!important;align-self:flex-start}
 body.hq-public-page .hq-ref24-support .hq-ticket-heading>div {width:100%;min-width:0;max-width:100%}
 body.hq-public-page .hq-ref24-support .hq-ticket-heading h2 {font-size:clamp(25px,7vw,30px)!important;line-height:1.12;overflow-wrap:normal}
 body.hq-public-page .hq-ref24-support .hq-ticket-heading p {line-height:1.5;overflow-wrap:break-word}
 /* The login story follows the actual login form on phones. */
 body.hq-public-page .hq-login-columns {display:flex!important;flex-direction:column!important;gap:18px!important;min-width:0}
 body.hq-public-page .hq-login-panel {order:1;width:100%;min-width:0}
 body.hq-public-page .hq-login-story {order:2;width:100%;min-width:0}
 body.hq-public-page .hq-login-register {display:grid!important;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px 12px!important}
 body.hq-public-page .hq-login-register-icon {width:36px;height:36px}
 body.hq-public-page .hq-login-register-copy {width:100%!important;min-width:0!important;max-width:100%}
 body.hq-public-page .hq-login-register-copy :is(h3,p) {white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;max-width:100%;line-height:1.45}
 body.hq-public-page .hq-login-register>a {grid-column:1/-1;justify-self:start;margin:0!important;white-space:normal;text-align:center}
 body.hq-public-page .hq-login-container {max-width:100%!important;min-width:0;padding-left:16px!important;padding-right:16px!important}
 body.hq-public-page .hq-login-story,
 body.hq-public-page .hq-login-panel {padding:24px 18px!important;border-radius:20px}
 body.hq-public-page .hq-login-story h1 {font-size:clamp(31px,8vw,39px)!important;overflow-wrap:normal;word-break:normal;line-height:1.15}
 body.hq-public-page .hq-login-story-kicker {flex-wrap:wrap}
}
@media (max-width: 359.98px) {
 body.hq-public-page .hq-home-registration>.container {padding-left:12px!important;padding-right:12px!important}
 body.hq-public-page .hq-register-shell {padding:14px 9px!important}
 body.hq-public-page .hq-register-form-card form {padding:13px 10px!important}
 body.hq-public-page .hq-register-form-card .registration-flow-window {--step-circle-size:36px!important;padding:11px 4px!important}
 body.hq-public-page .hq-register-form-card .registration-flow-circle {min-width:36px!important;width:36px!important;height:36px!important}
 body.hq-public-page .hq-login-panel,.hq-public-page .hq-login-story {padding:20px 14px!important}
}
