/* Monjaz brand refinement — use the mark's deep teal and turquoise everywhere. */
:root{
  --mj-brand:#176D7A!important;
  --mj-brand-2:#176D7A!important;
  --mj-brand-3:#176D7A!important;
  --mj-primary:#176D7A!important;
  --mj-primary-strong:#145A70!important;
  --mj-primary-soft:#EAF5F5!important;
  --mj-accent:#35A992!important;
  --mj-accent-soft:#E8F5F1!important;
  --mj-success:#26877D!important;
  --mj-ink:#315865!important;
  --mj-text:#355E6A!important;
  --mj-muted:#51666D!important;
  --mj-bg:#F5F8F7!important;
  --mj-bg-alt:#EEF4F3!important;
  --mj-surface:#FFFFFF!important;
  --mj-surface-raised:#FFFFFF!important;
  --mj-border:#DCE8E8!important;
  --mj-border-strong:#BDD4D5!important;
  --b1:#176D7A!important;--b2:#176D7A!important;
  --g1:#176D7A!important;--g2:#176D7A!important;
  --ink:#315865!important;--mut:#51666D!important;--line:#DCE8E8!important;
  --bg:#F5F8F7!important;--mj-soft:#EAF5F5!important;--mj-soft-blue:#EAF5F5!important;
}
html body{color:#355E6A!important;background-color:#F5F8F7!important}
html body :is(h1,h2,h3,h4,h5,h6){color:#176D7A!important}
html body :is(p,li,label,small,dt,dd,legend,summary,th,td){color:#496C77}
html body a:not(.btn):not(.button):not(.tstore-featured-slide){color:#176D7A}
html body :is(.btn.pri,.btn-primary,.button.primary,#mjCookOk,.mbar .mb-fab,.lgp .lgp-submit,.lgp button[type="submit"]){
  background:#176D7A!important;background-image:none!important;border-color:#176D7A!important;
  color:#fff!important;box-shadow:0 8px 20px rgba(23,109,122,.16)!important
}
html body :is(.btn.pri:hover,.btn-primary:hover,.button.primary:hover){background:#145A70!important;border-color:#145A70!important}
html body :is(.top .menu a:hover,.top .menu a.on,.top .menu a[aria-current="page"],.acts .login,.mbar>a.active,.mbar>a[aria-current="page"]){
  color:#176D7A!important;background-color:#EAF5F5!important
}
html body :is(input,select,textarea):focus{border-color:#35A992!important;box-shadow:0 0 0 3px rgba(53,169,146,.16)!important}
html body footer:not(.mj-cinematic-footer){
  background:#145A70!important;background-image:none!important;color:#F5FAFA!important
}
html body footer:not(.mj-cinematic-footer) a{color:#F5FAFA!important}
html body footer:not(.mj-cinematic-footer)::after{
  content:"🇸🇦   جبل طويق   •   هوية سعودية تعليمية — منجاز";
  display:flex;align-items:center;justify-content:center;
  min-height:48px;margin:14px auto 0;padding:10px 16px;
  width:min(calc(100% - 32px),1180px);border-top:1px solid rgba(255,255,255,.25);
  color:#F5FAFA!important;font:800 13px/1.6 'Almarai',Tahoma,sans-serif;text-align:center
}
html body footer:not(.mj-cinematic-footer)::before{
  content:"";display:block;width:92px;height:28px;margin:8px auto 0;
  background:#71C8B2;clip-path:polygon(0 100%,10% 76%,19% 83%,31% 51%,40% 67%,52% 32%,63% 55%,74% 18%,85% 42%,100% 0,100% 100%)
}
html body .mj-cinematic-footer{margin-top:28px!important}
html body .mj-cinematic-footer .mj-footer-registration::before{
  content:"";display:block;flex:0 0 92px;width:92px;height:30px;align-self:center;
  background:#71C8B2;clip-path:polygon(0 100%,10% 76%,19% 83%,31% 51%,40% 67%,52% 32%,63% 55%,74% 18%,85% 42%,100% 0,100% 100%)
}
html body .mj-cinematic-footer .mj-footer-registration::after{
  content:none!important;
  display:flex;flex:1 1 100%;align-items:center;justify-content:center;
  min-height:46px;margin-top:10px;padding:10px 16px;border-top:1px solid rgba(230,250,246,.4);
  border-radius:12px;background:rgba(23,109,122,.74);color:#fff!important;
  font:800 13px/1.6 'Almarai',Tahoma,sans-serif;text-align:center
}
html body .mj-cinematic-footer .mj-footer-bottom::after{content:none!important}
html body .mj-cinematic-footer{color:#F4FAF8!important}
html body .mj-cinematic-footer :is(h1,h2,h3,h4,h5,h6){color:#F4FAF8!important}
html body footer .mj-footer-meta{color:#D7EAEB!important}
html body .mj-cinematic-footer .mj-footer-registration{border-color:rgba(225,248,246,.38)!important}
@media(max-width:760px){
  html body footer:not(.mj-cinematic-footer),html body .site-footer:not(.mj-cinematic-footer){
    padding-bottom:calc(92px + env(safe-area-inset-bottom))!important
  }
  html body .mj-cinematic-footer{margin-top:22px!important;padding-bottom:calc(128px + env(safe-area-inset-bottom))!important}
  html body footer:not(.mj-cinematic-footer)::after{
    min-height:46px;font-size:12px
  }
}

/* Teacher store: one photographic hero, title inside it, product banners rotate beneath. */
html body.shop .stx-hero.is-t.stx-never{
  position:relative!important;display:block!important;isolation:isolate!important;
  width:min(calc(100% - 40px),1180px)!important;height:clamp(360px,34vw,460px)!important;min-height:0!important;
  margin:24px auto 14px!important;padding:0!important;overflow:hidden!important;
  border:1px solid rgba(36,110,125,.22)!important;border-radius:30px!important;
  background:#DCEDEE!important;box-shadow:0 20px 50px rgba(32,83,96,.14)!important
}
html body.shop .stx-hero.is-t .tstore-featured-rotator{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;
  border:0!important;border-radius:inherit!important;box-shadow:none!important;z-index:1!important
}
html body.shop .tstore-featured-slide{
  background-color:#DCEDEE!important;
  background-image:linear-gradient(270deg,rgba(19,89,108,.86) 0%,rgba(19,89,108,.55) 44%,rgba(23,109,122,.02) 76%),url('/img/store/teacher-digital-library-banner-2026.webp')!important;
  background-size:cover!important;background-position:center 54%!important
}
html body.shop .tstore-slide-shade{
  background:linear-gradient(270deg,rgba(19,89,108,.50),rgba(19,89,108,.12) 46%,transparent 72%)!important
}
html body.shop .tstore-featured-slide:is([data-tone="kg"],[data-tone="primary"],[data-tone="middle"],[data-tone="secondary"]) .tstore-slide-shade{
  background:linear-gradient(270deg,rgba(19,89,108,.50),rgba(19,89,108,.12) 46%,transparent 72%)!important
}
html body.shop .tstore-slide-copy{
  top:auto!important;right:5%!important;bottom:22px!important;left:auto!important;
  z-index:3!important;max-width:min(58%,650px)!important;padding:20px 22px!important;gap:10px!important;
  border:1px solid rgba(255,255,255,.28);border-radius:22px;
  background:rgba(16,77,93,.53);backdrop-filter:blur(8px)
}
html body.shop .tstore-slide-copy strong{color:#fff!important;font-size:clamp(22px,2.7vw,36px)!important}
html body.shop .tstore-slide-kicker,html body.shop .tstore-slide-price{color:#F4FAF8!important}
html body.shop .tstore-slide-art{
  left:4%!important;width:25%!important;height:64%!important;padding:9px!important;
  border:1px solid rgba(255,255,255,.72)!important;border-radius:20px!important;background:rgba(255,255,255,.5)!important;
  box-shadow:0 18px 34px rgba(31,80,92,.18)!important
}
html body.shop .tstore-slide-art img{object-fit:contain!important;border-radius:12px!important}
html body.shop .tstore-slide-cta{
  background:#fff!important;color:#176D7A!important;border:1px solid rgba(23,109,122,.12)!important;
  box-shadow:0 8px 20px rgba(14,64,79,.16)!important
}
html body.shop .stx-hero.is-t .stx-in{
  position:absolute!important;inset:22px 26px auto auto!important;width:auto!important;max-width:none!important;
  z-index:5!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;text-align:right!important;pointer-events:none!important
}
html body.shop .stx-hero.is-t .stx-in h1{
  display:inline-flex!important;align-items:center!important;gap:10px!important;margin:0!important;padding:12px 20px!important;
  border:1px solid rgba(255,255,255,.68)!important;border-radius:18px!important;
  background:rgba(255,255,255,.92)!important;color:#176D7A!important;
  font-size:clamp(22px,2.6vw,34px)!important;line-height:1.3!important;
  box-shadow:0 9px 25px rgba(15,79,94,.15)!important
}
html body.shop .stx-hero.is-t .stx-in h1 .stx-i{
  display:grid!important;place-items:center!important;width:34px!important;height:34px!important;
  border-radius:10px!important;background:#E4F3F0!important;color:#35A992!important;border-color:#CDE8E4!important
}
html body.shop .stx-hero.is-t .stx-in :is(.stx-sub,.stx-lead,.stx-ft){display:none!important}
html body.shop .stx-featured-controls,html body.shop .tstore-rotator-controls{z-index:6!important}
html body.shop .stx-cats button{--c:#176D7A!important}
html body.shop .stx-cats button>span{background:#EAF5F5!important;color:#176D7A!important}
html body.shop .stx-cats button:is(:hover,.active,.on){border-color:#7DBDB9!important}
@media(max-width:760px){
  html body.shop .stx-hero.is-t.stx-never{
    width:calc(100% - 16px)!important;height:clamp(330px,92vw,390px)!important;
    margin:10px auto 12px!important;border-radius:24px!important
  }
  html body.shop .stx-hero.is-t .stx-art-a.tstore-featured-rotator{border-radius:inherit!important}
  html body.shop .stx-hero.is-t .stx-in{inset:13px 12px auto auto!important}
  html body.shop .stx-hero.is-t .stx-in h1{padding:8px 12px!important;border-radius:14px!important;font-size:20px!important;gap:7px!important}
  html body.shop .stx-hero.is-t .stx-in h1 .stx-i{width:28px!important;height:28px!important}
  html body.shop .tstore-featured-slide{
    background-image:linear-gradient(270deg,rgba(19,89,108,.79) 0%,rgba(19,89,108,.48) 49%,rgba(23,109,122,.02) 78%),url('/img/store/teacher-digital-library-banner-2026.webp')!important;
    background-position:center center!important
  }
  html body.shop .tstore-slide-copy{
    right:4%!important;bottom:12px!important;max-width:61%!important;padding:12px!important;gap:7px!important;border-radius:16px!important
  }
  html body.shop .tstore-slide-copy strong{font-size:clamp(17px,4.8vw,24px)!important;line-height:1.4!important}
  html body.shop .tstore-slide-kicker{padding:5px 9px!important;font-size:10px!important}
  html body.shop .tstore-slide-price{font-size:13px!important}
  html body.shop .tstore-slide-cta{padding:8px 12px!important;font-size:12px!important}
  html body.shop .tstore-slide-art{left:3%!important;top:57%!important;width:29%!important;height:50%!important;padding:5px!important}
  html body.shop .stx-cats{margin-top:12px!important}
}
@media(prefers-reduced-motion:reduce){
  html body.shop .tstore-featured-slide{transition:none!important;transform:none!important}
}

/* One Saudi identity signature per footer, with the logo palette also applied to consent. */
html body footer:has(.mj-cinematic-footer)::after{content:none!important;display:none!important}
html body #mjCook{background:#176D7A!important;color:#F5FAFA!important}
html body #mjCook a{color:#BDE9DF!important}
html body #mjCookNo{color:#176D7A!important;border:1px solid #DCE8E8!important}

html body #mjCook p,html body #mjCook span,html body #mjCook :is(p,a){color:#F5FAFA!important}
html body #mjCook a{text-decoration:underline!important}

/* Lift the Saudi landscape so Tuwaik reads as a deliberate brand signature. */
html body .mj-cinematic-footer::before{background:linear-gradient(rgba(23,109,122,.36) 0%,rgba(23,109,122,.48) 48%,rgba(10,70,86,.72) 100%),linear-gradient(90deg,rgba(53,169,146,.16),transparent 62%)!important}
@media(max-width:760px){html body .mj-cinematic-footer::before{background:linear-gradient(rgba(23,109,122,.44) 0%,rgba(23,109,122,.58) 46%,rgba(10,70,86,.80) 100%)!important}}

/* Avoid repeating links already present in the services column. */
html body .mj-cinematic-footer .mj-footer-grid>nav.mj-footer-card:nth-of-type(2) a[href*="blog"]{display:none!important}

/* ===== النص على الخلفيات الداكنة (إصلاح تباين): القاعدة العامة أعلاه تُلوّن كل العناوين والنصوص بالتيل الغامق،
   فتختفي داخل أغلفة الأدوات والخدمات وشريط الخصوصية وزر التسجيل في الهيدر. هذه الاستثناءات تعيد النص الفاتح حيث الخلفية داكنة. ===== */
html body :is(.tool-head,.page-head,.mj-jhero,.mj-service-cinema__content,.mj-hero-dark,.hero-dark) :is(h1,h2,h3,h4,h5,h6,p,li,label,small,span,b,strong,em,dt,dd){color:#fff!important}
html body :is(.tool-head,.page-head,.mj-jhero,.mj-service-cinema__content) :is(p,small,.x-sub,.kicker,.sub){color:rgba(255,255,255,.92)!important}
html body :is(.tool-head,.page-head,.mj-jhero,.mj-service-cinema__content) a:not(.btn):not(.button){color:#fff!important}
html body .acts a.hd-up,html body a.hd-up{color:#fff!important}
html body #mjCook :is(p,span,a,b,strong){color:#fff!important}
html body #mjCook #mjCookNo{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.75)!important}
html body #mjCook #mjCookOk{background:#fff!important;color:#145A70!important;border:1px solid #fff!important;box-shadow:none!important}
html body .tool-head span.free{background:#e6f6ef!important;color:#145A70!important}
html body .tool-head span.pro{background:#fdf0bd!important;color:#5b4410!important}
/* توحيد غلاف بوابة الطالب مع لون الهوية (تيل المنصة) بدل الأخضر الغابي المنفصل */
html body main.tool > .tool-head:has(.back[href="student.html"]),html body .page-head.stu{background-color:#176D7A!important;background-image:linear-gradient(100deg,rgba(14,78,96,.94) 0%,rgba(23,109,122,.84) 48%,rgba(53,169,146,.46) 100%),var(--hero-w)!important}
html body :is(.mj-jhero,.page-head,.tool-head) a.on{color:#176D7A!important}

/* قائمة الجوال: بطاقة «لوحتي» — نص أبيض واضح على الخلفية الداكنة */
html body .dw-space{background:linear-gradient(120deg,#145A70,#176D7A 60%,#35A992)!important}
html body .dw-space :is(b,small,span,svg){color:#fff!important;opacity:1!important}
html body .dw-space small{color:rgba(255,255,255,.94)!important}

/* تابلت: أزرار الترويسة (لوحتي/السبورة) ونصوص الأقسام الداكنة */
html body header.top .acts :is(a.hd-sp,a.hd-board){color:#fff!important}
html body header.top .acts :is(a.hd-sp,a.hd-board) :is(span,svg,b){color:#fff!important;stroke:currentColor}
html body a.hd-board{background:linear-gradient(135deg,#0e6b45,#19a37a)!important}
html body a.hd-sp:not(.hd-board){background:linear-gradient(135deg,#145A70,#176D7A 60%,#35A992)!important}
html body .final :is(h2,h3,p,span,b){color:#fff!important}
html body .final .btn.pri{background:#fff!important;color:#145A70!important}
html body :is(.sp-who,.sp-hero,.sp-head) :is(h1,h2,p,small,span,b){color:#fff!important}
html body :is(.sp-who,.sp-hero,.sp-head) :is(p,small){color:rgba(255,255,255,.93)!important}

/* نافذة النقاط التسويقية (كانت بلا تنسيق فتظهر نصاً خاماً أسفل الصفحة) */
html body .pp-mask{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:16px;background:rgba(10,40,50,.55);opacity:0;pointer-events:none;transition:opacity .2s}
html body .pp-mask.on{opacity:1;pointer-events:auto}
html body .pp-box{position:relative;width:min(440px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:22px;padding:26px 22px 20px;text-align:center;box-shadow:0 24px 60px rgba(8,40,52,.35);color:#0f3d48}
html body .pp-x{position:absolute;inset-block-start:10px;inset-inline-start:10px;width:36px;height:36px;border-radius:12px;border:1px solid #d7e6e3;background:#fff;color:#145A70;display:grid;place-items:center;cursor:pointer}
html body .pp-coin{width:62px;height:62px;margin:0 auto 6px;display:grid;place-items:center}
html body .pp-eye{display:block;color:#176D7A;font-weight:800;font-size:13px}
html body .pp-box :is(h2,h3){margin:4px 0 6px;color:#145A70;font-size:21px;font-weight:900}
html body .pp-val{margin:6px 0 12px;line-height:1.9;color:#335;font-size:14.5px}
html body .pp-how{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:7px;text-align:start}
html body .pp-how li{display:flex;align-items:center;gap:10px;background:#f1f8f6;border-radius:12px;padding:8px 12px;font-size:13.5px;color:#0f3d48}
html body .pp-how b{min-width:58px;color:#176D7A;font-weight:900;text-align:center}
html body .pp-acts{display:grid;gap:8px}
html body .pp-acts .btn{display:inline-flex;justify-content:center;align-items:center;min-height:46px;border-radius:14px;font-weight:800;text-decoration:none;cursor:pointer;font-family:inherit;font-size:15px}
html body .pp-acts .btn.pri{background:#176D7A;color:#fff!important;border:0}
html body .pp-acts .btn.ghost{background:#fff;color:#145A70!important;border:1px solid #bcd7d3}
html body .pp-note{display:block;margin-top:10px;color:#58747b;font-size:12px}
html body .mj-art,html body main.tool>.tool-head>img{display:none!important}
/* زر القائمة بعد تسجيل الدخول: أيقونة + حرف الحساب + النقاط في صف واحد، لا متراكبة */
html body header.top .burger.in{display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;height:44px!important;min-width:44px!important;padding:0 8px!important;border-radius:24px!important;overflow:visible!important;white-space:nowrap!important}
html body header.top .burger.in .bg-av:not([hidden]){display:grid!important;place-items:center;width:30px!important;height:30px!important;flex:none;border-radius:50%;background:linear-gradient(135deg,#1E7290,#2A9C86);color:#fff;font-size:14px;font-weight:900;position:static!important}
html body header.top .burger.in .bg-pt:not([hidden]){display:inline-flex!important;align-items:center;gap:4px;position:static!important;margin:0!important;font-size:12.5px;font-weight:900;color:#7A5200;background:#FFF4D6;border-radius:14px;padding:3px 8px}
/* الهيدر في الجوال بعد الدخول: الزر يتّسع لمحتواه ولا يخرج عن الشاشة */
html body header.top .wrap .burger.in{width:auto!important;min-width:44px!important;max-width:calc(100vw - 150px)!important;flex:none!important;inline-size:auto!important;padding:0 8px!important;gap:6px!important;box-sizing:border-box!important}
html body header.top .wrap .burger.in .bg-ic{flex:none!important}

html body footer:not(.mj-cinematic-footer)::after,html body .mj-cinematic-footer .mj-footer-registration::after{content:none!important;display:none!important}

/* 2026-11-08: logo-gradient search and measured public UI contrast repairs.
   Screen-only: exported documents retain their own palettes. */
@media screen {
 :root { --mj-search-gradient:linear-gradient(135deg,#145A70 0%,#176D7A 48%,#238373 100%); }
 html body header.top .acts .mjs-btn,
 html body nav#mbar#mbar.mbar > a.mb-fab.mb-search {
  background:var(--mj-search-gradient)!important;
  color:#fff!important;border-color:#176D7A!important;
  box-shadow:0 6px 18px rgba(20,90,112,.22)!important;
 }
 html body .mbar a.mb-fab.mb-search::before {background:none!important}
 html body :is(.mjs-btn,.mb-search) svg {color:#fff!important;stroke:currentColor!important}
 html body :is(.mjs-btn,.mb-search):hover {filter:brightness(.94)}
 html body :is(.mjs-btn,.mb-search):focus-visible {
  outline:3px solid #145A70!important;outline-offset:3px!important;
  box-shadow:0 0 0 3px #fff!important;
 }
 html body a.skip-link {background:#145A70!important;color:#fff!important}
 html body .mjs-it small,
 html body .mjg-members p,
 html body .pm-price small,
 html body .hx-pay small,
 html body .pd-faq p {color:#49636C!important;opacity:1!important}
 html body footer .mj-legal-note {color:#E1F1ED!important;opacity:1!important}
 html body .fav-btn {color:#806116!important}
 html body .fav-btn:is(.on,.active,[aria-pressed="true"]) {background:#FFF4D6!important;color:#765300!important}
 html body .pz-tabs button,
 html body .bar .tabs button.on {background:#176D7A!important;color:#fff!important}
 html body .pz-tabs button.on {background:#145A70!important;color:#fff!important}
 html body a.hx-bd-b {background:#176D7A!important;color:#fff!important}
 html body :is(.btn.gold,.btn-gold) {background:#176D7A!important;color:#fff!important;border-color:#176D7A!important}
 html body :is(.btn.gold,.btn-gold):hover {background:#145A70!important;color:#fff!important}
 html body.mj-worksheets :is(.proof small,.control-head small,.toolbar small,.note,.paper-sub) {color:#49636C!important}
 html body.mj-worksheets a.primary {background:#145A70!important;color:#fff!important}
}

@media screen {
 html body .lgp-aud small,html body .lgp-stats small,html body .lgp-wait {color:#49636C!important;opacity:1!important}
}

@media screen {
 html body .lg-top p,html body .lg-tabs button:not(.on):not([aria-selected="true"]) {color:#49636C!important}
}

/* Mobile dock search: rounded-square frame matching the dock's corners. */
@media (max-width: 920px) {
 html body nav#mbar#mbar.mbar > a.mb-fab.mb-search {
  border-radius: 15px !important;
 }
 html body nav#mbar#mbar.mbar > a.mb-fab.mb-search img,
 html body nav#mbar#mbar.mbar > a.mb-fab.mb-search .mb-c {
  border-radius: 11px !important;
 }
}

/* Cookie notice stays above the chat launcher so its buttons are never covered. */
html body #mjCook{z-index:2147483646!important}
