/* Monjaz Identity Loader — Phase 199.
   One visual chain only; viewport UI shell LAST and authoritative. */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');
@import url('monjaz-home3.css?v=223');
@import url('monjaz-product-system.css?v=161');
@import url('monjaz-product-detail.css?v=161');
@import url('monjaz-store-copy.css?v=161');
@import url('monjaz-portals-polish.css?v=163');
@import url('monjaz-portals-scope.css?v=161');
@import url('monjaz-leadership-polish.css?v=161');
@import url('monjaz-library-polish.css?v=163');
@import url('monjaz-dashboard-polish.css?v=161');
@import url('monjaz-qiyas-polish.css?v=161');
@import url('monjaz-account-brand.css?v=162');
@import url('monjaz-phase81.css?v=161');
@import url('monjaz-home4.css?v=203');
@import url('./monjaz-theme-identity.css?v=222');

/* monjaz-redesign.css already owns the ordered v176 → v180 visual chain. */
@import url('./monjaz-postpurchase-polish.css?v=161');
@import url('./monjaz-redesign.css?v=202');
@import url('./monjaz-header-brand-v186.css?v=20261102-clean1');
@import url('./monjaz-product-hygiene-v187.css?v=187');
@import url('./monjaz-payment-ui-v192.css?v=192');
@import url('./monjaz-mobile-stability-v193.css?v=202');
@import url('./monjaz-palette-stability-v194.css?v=194');
@import url('./monjaz-store-controls-v197.css?v=199');
@import url('./monjaz-mobile-readability-v204.css?v=204');

/* Authoritative viewport contract must remain last. */
@import url('./monjaz-shell.css?v=207');
@import url('./monjaz-brand-refinement.css?v=245');

@import url('./monjaz-footer-cinematic.css?v=14');
@import url('./monjaz-ui-qa-fixes.css?v=3');

/* Store, account forms and mobile navigation share the same action colours. */
body .ma-box:has(.lg-tabs), body.lgp-body .lgp-card {
  background: #fcfdf9 !important;
  border: 1px solid #cbdccf !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 55px -25px #123d3280 !important;
}
body .ma-box .lg-tabs { background: #e9f1eb !important; padding: 4px; border-radius: 13px; }
body .ma-box .lg-tabs button { color: #315447 !important; min-height: 44px; }
body .ma-box .lg-tabs button[aria-selected="true"], body .ma-box .lg-btn.pri, html body.shop .mj-store-gateway .mjg-intro .sh-bar button.btn.pri {
  background: linear-gradient(130deg,#103d30,#226548) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  border: 1px solid #1a503c !important;
  border-radius: 10px !important;
}
body .ma-box .lg-in { background: white !important; color: #163d30 !important; border: 1px solid #9eb8a9 !important; border-radius: 10px; }
body .ma-box .lg-in:focus-visible, body .ma-box button:focus-visible { outline: 3px solid #37785b !important; outline-offset: 2px; }
body .ma-box .lg-l, body .ma-box .lg-top h2 { color: #173e30 !important; }
body .ma-box .lg-link { color: #1d6447 !important; }
@media(max-width:920px){
  html body nav#mbar#mbar#mbar.mbar { background: #fbfdf9 !important; border-color: #c5d8ca !important; box-shadow: 0 8px 27px #123a3029 !important; }
  html body nav#mbar#mbar#mbar.mbar > a { color: #385648 !important; }
  html body nav#mbar#mbar#mbar.mbar > a.on { background: #e4efe5 !important; border-radius: 14px !important; color: #15442f !important; }
  html body nav#mbar#mbar#mbar.mbar > a.mb-fab .mb-c { background: linear-gradient(140deg,#164937,#246648) !important; color: #fff7e3 !important; box-shadow: 0 4px 12px #17402e40 !important; }
}

/* Teacher services and the search opened by the mobile dock. */
body.mj-public-portal:has(.svc-hero[data-art="teacher"]) #main .svc.live {
  background: #fbfdf9 !important;
  border: 1px solid #cdded2 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 27px -22px #143e2c80 !important;
}
body.mj-public-portal:has(.svc-hero[data-art="teacher"]) #main .svc h3 { color: #193f31 !important; line-height: 1.5; }
body.mj-public-portal:has(.svc-hero[data-art="teacher"]) #main .svc .btn.pri {
  background: linear-gradient(125deg,#123d2e,#236448) !important;
  color: #fff !important; border-radius: 11px !important; min-height: 44px;
}
body.mj-public-portal:has(.svc-hero[data-art="teacher"]) #main .svc .btn:focus-visible,
body .mjs-box :is(button,a,input):focus-visible { outline: 3px solid #397b59 !important; outline-offset: 2px; }
body .mjs-box { background: #fbfdf9 !important; border: 1px solid #c8dacd !important; border-radius: 20px !important; box-shadow: 0 20px 60px #0b342b38 !important; }
body .mjs-box .mjs-in { background: #eef5ef !important; color: #193f31 !important; }
body .mjs-box .mjs-in input { color: #193f31 !important; }
body .mjs-box .mjs-h { color: #315b46 !important; }
body .mjs-box .mjs-it:hover, body .mjs-box .mjs-it:focus-visible { background: #dfede1 !important; color: #143d2e !important; }
@media(max-width:920px){
 html body nav#mbar#mbar#mbar.mbar > a.mb-fab.mb-search { background: linear-gradient(135deg,#103e30,#276747) !important; }
 html body nav#mbar#mbar#mbar.mbar > a.mb-fab.mb-search .mb-c { background: transparent !important; box-shadow: none !important; color: #fff9e9 !important; }
}
