/* MERITIQA V5 — one global header, one member dropdown, no second toolbar. */
.mqgn-tools{position:relative;display:flex;align-items:center;z-index:1010;margin-right:0;}
.mqgn-trigger{appearance:none;background:#fff;border:1px solid #cddfd2;border-radius:8px;min-height:40px;padding:8px 13px;color:#164333;font-family:inherit;font-size:12px;font-weight:715;line-height:1.3;cursor:pointer;white-space:nowrap;}
.mqgn-trigger:hover,.mqgn-trigger:focus-visible{background:#eff6f0;outline:2px solid #307954;outline-offset:2px;}
.mqgn-popover{position:absolute;right:0;top:calc(100% + 10px);min-width:252px;max-width:calc(100vw - 30px);background:#fff;border:1px solid #d6e4da;border-radius:12px;box-shadow:0 12px 36px rgba(8,45,31,.12);padding:6px;display:grid;gap:0;z-index:1100;}
.mqgn-popover[hidden]{display:none!important;}
.mqgn-popover a{display:flex;align-items:center;min-height:44px;color:#153b2c!important;text-decoration:none!important;padding:10px 12px;border-radius:7px;font-family:inherit;font-size:13px;font-weight:650;line-height:1.3;}
.mqgn-popover a:hover,.mqgn-popover a:focus-visible,.mqgn-popover a[aria-current="page"]{background:#edf5ef;outline-offset:1px;}
.mqgn-mobile-links{display:none;}
@media(max-width:800px){.mqgn-tools{display:none!important;}}
@media(max-width:800px){.mqgn-mobile-links{display:grid;gap:2px;padding:8px 0 0;border-top:1px solid #dce8df;max-height:calc(100dvh - 130px);overflow-y:auto;}.mqgn-mobile-links a{display:block;min-height:44px;padding:11px 14px;color:#123e2e;text-decoration:none;font-size:13px;font-weight:700;}.mqgn-mobile-links a[aria-current="page"]{background:#edf5ef;border-radius:7px;}}
@media(prefers-reduced-motion:reduce){.mqgn-tools *{transition:none!important;}}

/* V5.1: homepage-independent mobile nav keeps a single canonical Classroom CTA. */
.m2-header .m2-nav .m2-mobile-studio {white-space:normal;}
.m2-header .mqgn-popover[hidden]{display:none!important;}
@media(max-width:950px){.m2-header .mqgn-tools {display:none!important;}}


/* MERITIQA 5.6: medium screens use the same accessible single mobile menu. */
@media(min-width:801px) and (max-width:1000px){
 .m2-header .mqgn-tools{display:none!important}
 .m2-header .mqgn-mobile-links{display:grid;gap:2px;padding:8px 0 0;border-top:1px solid #dce8df;max-height:calc(100dvh - 130px);overflow-y:auto}
 .m2-header .mqgn-mobile-links a{display:block;min-height:44px;padding:11px 14px;color:#123e2e;text-decoration:none;font-size:13px;font-weight:700}
}

/* v1.5.4: keep the complete My Tools menu usable without a viewport overflow. */
.mqgn-popover{max-height:min(72dvh,640px);overflow-y:auto;overscroll-behavior:contain;}
