/* 15.2.46 — compact, accessible AMIIN navigation on small screens.
 * Desktop and country ribbon remain unchanged. No interaction is removed:
 * Planes is reachable in the dropdown on mobile. */
#awc-heritage-root .awc-h-menu-short,
#awc-heritage-root .awc-h-register-short,
#awc-heritage-root .awc-h-plans-mobile { display:none; }
@media (max-width:900px) {
  #awc-heritage-root .awc-h-top {
    box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;gap:7px;padding:7px 10px;flex-wrap:nowrap;
  }
  #awc-heritage-root .awc-h-brand { min-width:0;gap:5px;white-space:nowrap; }
  #awc-heritage-root .awc-h-brand img { width:34px;height:34px; }
  #awc-heritage-root .awc-h-brand strong { font-size:16px;line-height:1; }
  #awc-heritage-root #awc-h-toggle {
    box-sizing:border-box;justify-self:start;min-width:0;max-width:100%;
    height:38px;min-height:38px;padding:7px 10px;font-size:12px;line-height:1;
    overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  }
  #awc-heritage-root .awc-h-actions {
    position:relative;display:flex;align-items:center;justify-content:flex-end;
    width:auto;min-width:0;gap:4px;flex-wrap:nowrap;
  }
  #awc-heritage-root .awc-h-actions > .awc-h-plans { display:none!important; }
  #awc-heritage-root .awc-h-plans-mobile { display:block; }
  #awc-heritage-root .awc-h-actions :is(.awc-h-search-toggle,.awc-h-account,.awc-h-logout) {
    box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
    height:36px;min-height:36px;min-width:36px;width:36px;padding:0;
  }
  #awc-heritage-root .awc-h-actions :is(.awc-h-account,.awc-h-logout) .awc-h-action-label { display:none; }
  #awc-heritage-root .awc-h-actions > a.awc-h-register {
    height:36px;min-height:36px;padding:6px 9px;font-size:12px;gap:3px;
  }
  /* The popover still opens; keeping it anchored to the actions prevents
     clipping and makes the search input usable at phone widths. */
  #awc-heritage-root .awc-h-search { position:static; }
  #awc-heritage-root .awc-h-search > form {
    right:0;top:calc(100% + 7px);max-width:calc(100vw - 20px);
    width:min(320px,calc(100vw - 20px));
  }
}
@media (max-width:580px) {
  #awc-heritage-root .awc-h-top { grid-template-columns:auto auto minmax(0,1fr);gap:5px;padding:6px 8px; }
  #awc-heritage-root .awc-h-brand img { width:30px;height:30px; }
  #awc-heritage-root .awc-h-brand strong { font-size:14px; }
  #awc-heritage-root #awc-h-toggle { justify-self:start;max-width:none;font-size:12px;padding:7px 8px; }
  #awc-heritage-root .awc-h-menu-full { display:none; }
  #awc-heritage-root .awc-h-menu-short { display:inline; }
  #awc-heritage-root .awc-h-register-label { display:none; }
  #awc-heritage-root .awc-h-register-short { display:inline; }
  #awc-heritage-root .awc-h-register svg { display:none; }
  #awc-heritage-root .awc-h-actions > a.awc-h-register { padding:6px 8px;font-weight:700; }
  #awc-heritage-root #awc-h-nav.open:not([hidden]) { top:100%; }
}
@media (max-width:360px) {
  #awc-heritage-root .awc-h-top { gap:4px;padding:6px; }
  #awc-heritage-root .awc-h-brand strong { display:none; }
  #awc-heritage-root .awc-h-actions { gap:3px; }
  #awc-heritage-root .awc-h-actions :is(.awc-h-search-toggle,.awc-h-account,.awc-h-logout) { width:34px;min-width:34px;height:36px; }
  #awc-heritage-root .awc-h-actions > a.awc-h-register { padding:6px 6px; }
}
