/* WeType public adaptive shell 1.5.26.11; deliberately scoped to public header/footer. */
.wt-shell-header-holder,.wt-shell-footer{--wt-ink:#182942;--wt-muted:#607187;--wt-blue:#2767d8;--wt-border:#e5eaf2;--wt-surface:#fff;--wt-soft:#f4f7fc;box-sizing:border-box;font-family:inherit;color:var(--wt-ink)}
.wt-shell-header-holder *, .wt-shell-footer *, .wt-shell-header-holder *:before,.wt-shell-footer *:before{box-sizing:border-box}
html[data-wt-public-theme="dark"] .wt-shell-header-holder,html[data-wt-public-theme="dark"] .wt-shell-footer{--wt-ink:#edf3ff;--wt-muted:#b4c1d4;--wt-blue:#8eb5ff;--wt-border:#344357;--wt-surface:#182335;--wt-soft:#202e43;color-scheme:dark}
.wt-shell-header-holder{position:relative;z-index:1050;direction:rtl;background:var(--wt-surface);border-bottom:1px solid var(--wt-border)}
.wt-shell-header{display:block;background:var(--wt-surface);color:var(--wt-ink)}
.wt-shell-header__inner{max-width:1480px;padding:0 24px;min-height:76px;margin:auto;display:flex;align-items:center;gap:15px;direction:rtl}
.wt-shell-brand{display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:0}
.wt-shell-brand__link{display:inline-flex;align-items:center;text-decoration:none!important;color:var(--wt-ink)!important;line-height:1.2}
.wt-shell-brand__image{width:auto;max-width:140px;height:auto;max-height:54px;object-fit:contain;display:block}
.wt-shell-brand__text{font-weight:800;font-size:22px}
.wt-shell-brand__tagline{font-size:11px;color:var(--wt-muted);max-width:160px;line-height:1.6}
.wt-shell-primary{flex:1;min-width:0}
.wt-shell-primary__list,.wt-shell-primary__list ul,.wt-shell-mobile-nav__list,.wt-shell-mobile-nav__list ul,.wt-shell-footer__menu{list-style:none!important;margin:0!important;padding:0!important}
.wt-shell-primary__list{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:nowrap}
.wt-shell-primary__list li{position:relative;padding:0!important;margin:0!important}
.wt-shell-primary__list a{display:block;text-decoration:none!important;color:var(--wt-ink)!important;font-size:12.5px;font-weight:600;padding:12px 9px;border-radius:11px;line-height:1.5}
.wt-shell-primary__list a:hover,.wt-shell-primary__list .current-menu-item>a{background:var(--wt-soft);color:var(--wt-blue)!important}
.wt-shell-primary__list .sub-menu{position:absolute;right:0;top:100%;min-width:180px;background:var(--wt-surface);padding:6px!important;border:1px solid var(--wt-border);box-shadow:0 12px 32px rgba(22,47,79,.12);border-radius:14px;display:none;z-index:4}
.wt-shell-primary__list li:hover>.sub-menu,.wt-shell-primary__list li:focus-within>.sub-menu{display:block}
.wt-shell-actions{display:flex;align-items:center;gap:9px;margin-right:auto;flex-shrink:0}
.wt-shell-header-holder button,.wt-shell-header-holder summary{font-family:inherit;cursor:pointer}
.wt-shell-icon,.wt-shell-account__trigger{min-width:44px;min-height:44px;border:1px solid var(--wt-border);background:var(--wt-surface);color:var(--wt-ink);border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 11px;transition:background .15s ease,border-color .15s ease;line-height:1.4}
.wt-shell-icon:hover,.wt-shell-account__trigger:hover{background:var(--wt-soft)}
.wt-shell-icon__symbol{font-size:23px;line-height:1}
.wt-shell-signin{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;min-height:44px;border-radius:12px;background:#2767d8;color:white!important;text-decoration:none!important;font-size:13px;font-weight:700;white-space:nowrap}
.wt-shell-signin:hover{background:#1b51af;color:white!important}
.wt-shell-popover{position:relative}
.wt-shell-popover>summary{list-style:none!important;user-select:none}
.wt-shell-popover>summary::-webkit-details-marker{display:none}
.wt-shell-avatar{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:10px;background:var(--wt-soft);font-size:14px;font-weight:800;color:var(--wt-blue)}
.wt-shell-account__name{font-size:12px;max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wt-shell-chevron{color:var(--wt-muted);font-size:18px}
.wt-shell-popover__panel{position:absolute;top:calc(100% + 9px);left:0;min-width:225px;background:var(--wt-surface);border:1px solid var(--wt-border);border-radius:16px;box-shadow:0 20px 45px rgba(21,39,66,.15);padding:9px;z-index:10;color:var(--wt-ink)}
.wt-shell-popover__panel a{display:block;text-decoration:none!important;font-size:13px;font-weight:600;padding:11px 12px;border-radius:9px;color:var(--wt-ink)!important}
.wt-shell-popover__panel a:hover{background:var(--wt-soft);color:var(--wt-blue)!important}
.wt-shell-popover__eyebrow{display:block;padding:8px 12px;font-size:11px;color:var(--wt-muted)}
.wt-shell-popover__logout{border-top:1px solid var(--wt-border);margin-top:5px}
.wt-shell-mobile-nav{display:none}
.wt-shell-header-holder :is(a,button,summary):focus-visible,.wt-shell-footer a:focus-visible{outline:3px solid #2767d8!important;outline-offset:3px}
.wt-shell-footer.content-info{background:var(--wt-surface)!important;color:var(--wt-ink);border-top:1px solid var(--wt-border);margin-top:52px;padding:0;line-height:1.8}
.wt-shell-footer__inner{max-width:1480px;padding:0 24px;margin:auto}
.wt-shell-footer__top{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(155px,1fr) minmax(180px,1fr);gap:42px;padding:48px 0 35px}
.wt-shell-footer__about{max-width:320px}
.wt-shell-footer__brand{display:inline-flex;align-items:center;text-decoration:none!important;color:var(--wt-ink)!important;font-size:22px}
.wt-shell-footer__brand img{display:block;max-height:62px;max-width:155px;width:auto;object-fit:contain}
.wt-shell-footer__tagline{font-size:13px;color:var(--wt-muted);line-height:2;margin:12px 0 0}
.wt-shell-footer__heading{font-size:14px!important;line-height:1.6;margin:0 0 13px!important;color:var(--wt-ink)!important;font-weight:700}
.wt-shell-footer__menu li{margin:0 0 5px!important;padding:0!important}
.wt-shell-footer__menu a{font-size:13px;text-decoration:none!important;color:var(--wt-muted)!important}
.wt-shell-footer__menu a:hover{color:var(--wt-blue)!important}
.wt-shell-footer__social-list{display:flex;flex-wrap:wrap;gap:10px;list-style:none!important;padding:0!important;margin:0!important}
.wt-shell-footer__social-list li{margin:0!important;padding:0!important}
.wt-shell-footer__social-list img{max-height:24px;width:auto}
.wt-shell-footer__widgets.sidebar-footer{margin:0;padding:20px 0;border-top:1px solid var(--wt-border);color:var(--wt-muted)}
.wt-shell-footer__bottom{border-top:1px solid var(--wt-border);padding:19px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.wt-shell-footer__copyright.copyright{padding:0;margin:0;border:0;text-align:right;font-size:12px;color:var(--wt-muted)}
.wt-shell-footer__copyright a,.wt-shell-footer__toplink{font-size:12px;color:var(--wt-muted)!important;text-decoration:none!important}
.wt-shell-footer__toplink:hover{color:var(--wt-blue)!important}
@media(max-width:1360px){.wt-shell-header__inner{gap:12px}.wt-shell-brand__tagline{display:none}.wt-shell-primary__list a{padding:10px 8px}}
@media(max-width:1160px){.wt-shell-header__inner{min-height:68px;padding:0 16px;gap:12px}.wt-shell-primary{display:none}.wt-shell-mobile-nav{display:block}.wt-shell-mobile-nav__trigger{font-size:21px}.wt-shell-mobile-nav .wt-shell-popover__panel{left:0;min-width:min(290px,calc(100vw - 32px));max-height:70vh;overflow:auto}.wt-shell-mobile-nav__list a{display:block;padding:10px 12px;color:var(--wt-ink)!important;text-decoration:none!important;font-size:14px}.wt-shell-mobile-nav__list .sub-menu{padding-right:16px!important}.wt-shell-mobile-nav__list li{margin:0;padding:0}.wt-shell-footer__top{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}}
@media(max-width:520px){.wt-shell-header__inner{padding:0 12px}.wt-shell-brand__image{max-width:91px;max-height:44px}.wt-shell-brand__text{font-size:18px}.wt-shell-account__name,.wt-shell-chevron{display:none}.wt-shell-account__trigger{padding:5px;min-width:44px}.wt-shell-actions{gap:5px}.wt-shell-signin{font-size:12px;padding:8px 10px}.wt-shell-footer__inner{padding:0 16px}.wt-shell-footer__top{grid-template-columns:1fr;gap:24px;padding:34px 0 24px}.wt-shell-footer__bottom{align-items:start;flex-direction:column;gap:12px}}
@media(prefers-reduced-motion:reduce){.wt-shell-header-holder *,.wt-shell-footer *{transition:none!important;animation:none!important}}
@media(max-width:380px){.wt-shell-brand__image{max-width:68px}.wt-shell-brand__text{font-size:15px}.wt-shell-signin{font-size:11px;padding:7px 8px}.wt-shell-header__inner{padding:0 8px}.wt-shell-actions{gap:4px}}

/* v1.5.26.11: shared global palette; custom Elementor sections must use global theme tokens, not hardcoded white. */
:root {--wt-page-bg:#ffffff;--wt-page-text:#182942;--wt-page-muted:#607187;--wt-page-surface:#ffffff;--wt-page-soft:#f4f7fc;--wt-page-line:#e5eaf2;--wt-page-accent:#2767d8;--wt-page-on-accent:#fff;color-scheme:light}
html[data-wt-public-theme="dark"] {--wt-page-bg:#111b2a;--wt-page-text:#edf3ff;--wt-page-muted:#b4c1d4;--wt-page-surface:#182335;--wt-page-soft:#202e43;--wt-page-line:#344357;--wt-page-accent:#8eb5ff;--wt-page-on-accent:#0f1b2d;color-scheme:dark}
html[data-wt-public-theme] body{background-color:var(--wt-page-bg);color:var(--wt-page-text)}
html[data-wt-public-theme="dark"] body :is(.main,.wrap.container){color:var(--wt-page-text)}
/* Compatibility layer for Elementor when widget colours are inherited, not explicitly overridden. */
html[data-wt-public-theme] .elementor{--e-global-color-primary:var(--wt-page-accent);--e-global-color-secondary:var(--wt-page-text);--e-global-color-text:var(--wt-page-text);--e-global-color-accent:var(--wt-page-accent)}
html[data-wt-public-theme="dark"] .elementor :is(.elementor-widget-heading .elementor-heading-title,.elementor-widget-text-editor){color:inherit}
/* Preserve inline Elementor backgrounds, gradients, images and custom design choices. */
.wt-shell-header__inner{width:100%;justify-content:space-between}
.wt-shell-primary__list{white-space:nowrap}
.wt-shell-primary__list>li>a{white-space:nowrap}
.wt-shell-primary__list .sub-menu{white-space:normal;min-width:240px;overflow:visible}
.wt-shell-primary__list .sub-menu li>a{display:flex;align-items:center;gap:10px;padding:12px}
.wt-shell-primary__list .sub-menu li>a::before{content:'';display:block;flex:none;width:32px;height:32px;border-radius:10px;background:var(--wt-soft) center/18px 18px no-repeat}
/* Course icons: masks follow theme colour and remain distinct. */
.wt-shell-primary__list .sub-menu li[class*="wt-course-"]>a::before,
.wt-shell-mobile-nav__list li[class*="wt-course-"]>a::before{background:var(--wt-soft);width:34px;height:34px;border-radius:10px;content:'⌨';display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--wt-blue);font-size:17px}
.wt-shell-primary__list .sub-menu li.wt-course-fa>a::before,.wt-shell-mobile-nav__list li.wt-course-fa>a::before{content:'فا';font-size:12px;font-weight:800}
.wt-shell-primary__list .sub-menu li.wt-course-en>a::before,.wt-shell-mobile-nav__list li.wt-course-en>a::before{content:'EN';font-size:11px;font-weight:800}
.wt-shell-primary__list .sub-menu li.wt-course-numbers>a::before,.wt-shell-mobile-nav__list li.wt-course-numbers>a::before{content:'۱۲۳';font-size:11px;font-weight:800}
.wt-shell-primary__list .sub-menu li:not([class*="wt-course-"])>a::before{display:none}
.wt-shell-mobile-nav__list li[class*="wt-course-"]>a{display:flex;align-items:center;gap:9px}
.wt-shell-popover__panel a:has(.wt-shell-menu-svg){display:flex;align-items:center;gap:11px}
.wt-shell-menu-svg{flex:none;color:var(--wt-blue)}
.wt-shell-popover__panel .wt-shell-popover__logout .wt-shell-menu-svg{color:var(--wt-muted)}
/* Widgets: normal text surfaces follow dark theme while official/legal badges preserve their own image colours. */
.wt-shell-footer__widgets.sidebar-footer :is(.wrap__col,.widget,.widget_text,.widget_custom_html,.textwidget){background-color:transparent;color:var(--wt-muted);border-color:var(--wt-border)}
.wt-shell-footer__widgets.sidebar-footer :is(.widget,.widget_text,.widget_custom_html){background:var(--wt-soft)!important;border:1px solid var(--wt-border);border-radius:15px;padding:17px;min-width:0;box-shadow:none!important}
.wt-shell-footer__widgets.sidebar-footer :is(h1,h2,h3,h4,h5,h6,.widget-title){color:var(--wt-ink)!important}
.wt-shell-footer__widgets.sidebar-footer :is(p,li,span){color:var(--wt-muted)}
.wt-shell-footer__widgets.sidebar-footer a{color:var(--wt-blue)!important}
.wt-shell-footer__widgets.sidebar-footer img{filter:none!important;max-width:100%;height:auto}
.wt-shell-footer__widgets.sidebar-footer :is(iframe,object){max-width:100%}
.wt-shell-footer__widgets.sidebar-footer :is(.enamad,.samandehi,.trust-badge){background:var(--wt-surface)}
/* Accessibility and responsive geometry */
.wt-shell-header-holder :is(a,button,summary):focus-visible,.wt-shell-footer a:focus-visible{outline:3px solid var(--wt-blue)!important;outline-offset:3px}
@media(max-width:1160px){.wt-shell-primary{display:none}.wt-shell-mobile-nav{display:block}.wt-shell-header__inner{min-height:68px}.wt-shell-mobile-nav .wt-shell-popover__panel{left:0;min-width:min(320px,calc(100vw - 24px));max-height:75dvh;overflow-y:auto}}
@media(max-width:600px){.wt-shell-header__inner{padding:0 12px}.wt-shell-footer__widgets.sidebar-footer .wrap{display:block}}

.wt-shell-primary__list .sub-menu li.wt-course-fa>a::before,.wt-shell-mobile-nav__list li.wt-course-fa>a::before{content:"";background:var(--wt-soft) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232767d8%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208h16M4%2012h16M4%2016h10M16%2016l2%202%203-4%22%2F%3E%3C%2Fsvg%3E") center/19px 19px no-repeat}

.wt-shell-primary__list .sub-menu li.wt-course-en>a::before,.wt-shell-mobile-nav__list li.wt-course-en>a::before{content:"";background:var(--wt-soft) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232767d8%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%225%22%20width%3D%2219%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M6%209h3m3%200h3m3%200h2M6%2012h2m3%200h2m3%200h3M6%2015h12%22%2F%3E%3C%2Fsvg%3E") center/19px 19px no-repeat}

.wt-shell-primary__list .sub-menu li.wt-course-numbers>a::before,.wt-shell-mobile-nav__list li.wt-course-numbers>a::before{content:"";background:var(--wt-soft) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232767d8%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207h8M8%2011h2m4%200h2M8%2015h2m4%200h2%22%2F%3E%3C%2Fsvg%3E") center/19px 19px no-repeat}

/* Separate expand control maintains real link navigation and keyboard access. */
.wt-shell-primary__list li.menu-item-has-children{display:flex;align-items:center;position:relative}
.wt-shell-submenu-toggle{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--wt-muted);background:none;border:0;border-radius:8px;font:inherit;font-size:17px;min-width:27px;min-height:35px;padding:0}
.wt-shell-submenu-toggle:hover{background:var(--wt-soft)}
.wt-shell-primary__list li.wt-shell-menu-open>.sub-menu{display:block}
.wt-shell-mobile-nav__list li.menu-item-has-children{display:flex;flex-wrap:wrap;align-items:center}
.wt-shell-mobile-nav__list li.menu-item-has-children>a{flex:1}
.wt-shell-mobile-nav__list li.menu-item-has-children>.sub-menu{flex-basis:100%;display:none}
.wt-shell-mobile-nav__list li.wt-shell-menu-open>.sub-menu{display:block}
.wt-shell-mobile-nav__list .wt-shell-submenu-toggle{min-width:44px;min-height:44px}
.wt-shell-header-holder .wt-shell-submenu-toggle:focus-visible{outline:3px solid var(--wt-blue);outline-offset:2px}

/* === WeType Adaptive Shell 1.5.26.12 === */
:root{--wt-shell-max:1480px;--wt-shell-safe:clamp(12px,2.2vw,30px)}
.wt-shell-header-holder{position:sticky!important;top:0;z-index:1050;isolation:isolate;box-shadow:0 2px 16px rgba(15,37,70,.035)}
body.admin-bar .wt-shell-header-holder{top:32px}
.wt-shell-header__inner{max-width:var(--wt-shell-max);padding-inline:var(--wt-shell-safe)}
.wt-shell-primary__list>li>a{font-size:14.5px;letter-spacing:0;line-height:1.55}
.wt-shell-primary__list{gap:0}
.wt-shell-primary__list>li>a{padding-inline:8px}
.wt-shell-popover__panel a .wt-shell-menu-svg{display:inline-block;width:19px;height:19px;flex-shrink:0;color:var(--wt-blue)}
.wt-shell-popover__panel a:has(svg){display:flex!important;gap:10px;align-items:center;justify-content:flex-start}
.wt-shell-account__name{font-size:13px}
.wt-shell-lesson-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1;margin-inline:15px}
.wt-shell-lesson-title>a{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid var(--wt-border);border-radius:12px;color:var(--wt-blue)}
.wt-shell-lesson-title span{display:flex;flex-direction:column;gap:0;min-width:0}
.wt-shell-lesson-title small{color:var(--wt-muted);font-size:11px}
.wt-shell-lesson-title strong{color:var(--wt-ink);font-size:clamp(12px,1.2vw,15px);font-weight:750;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
[data-wt-shell="lesson"] .wt-shell-brand__tagline{display:none}
[data-wt-shell="lesson"] .wt-shell-header__inner{min-height:66px}
/* old footer grid is not allowed to compete with the new adaptive grid */
.wt-shell-footer__widget-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px;align-items:start;width:100%;padding:10px 0}
.wt-shell-footer__widget-grid>*{min-width:0!important;width:100%!important;max-width:100%!important;float:none!important;margin:0!important}
.wt-shell-footer__widgets.sidebar-footer .wt-shell-footer__widget-grid :is(.widget,.widget_text,.widget_custom_html){margin:0!important;background:var(--wt-soft)!important}
.wt-shell-footer__widgets.sidebar-footer .wt-shell-footer__widget-grid :is(.textwidget,.widget-content){background:transparent!important;padding:0!important;border:0!important}
.wt-shell-footer__widgets.sidebar-footer .wt-shell-footer__widget-grid img{object-fit:contain}
.wt-shell-footer--lesson{margin-top:22px!important}
.wt-shell-footer--lesson .wt-shell-footer__bottom{border-top:0}
/* All reports and dashboards consume current global palette; never recolour external badge images. */
html[data-wt-public-theme="dark"] .wt-hub .wt-a468-path,html[data-wt-public-theme="dark"] .wt-hub .wt-a466-metric{border-color:var(--wt-page-line);background:var(--wt-page-surface);color:var(--wt-page-text)}
html[data-wt-public-theme="dark"] .wt-hub :is(.wt-r-unified-chart,.wt-a466-panel,.wt-a468-panel){color:var(--wt-page-text)}
/* Exercise is a focus workspace, public navigation must not obscure typing UI. */
body.exercise-open .wt-shell-header-holder,body.exercise-open .wt-shell-footer{display:none!important}
body.exercise-open .exercise-backdrop{background:var(--wt-page-bg,#fff)!important}
body.exercise-open .exercise-modal{color:var(--wt-page-text);padding-top:45px}
body.exercise-open .exercise-close{display:grid!important;place-items:center!important;top:12px!important;left:clamp(12px,2.8vw,38px)!important;min-width:42px!important;min-height:42px!important;background:var(--wt-page-surface)!important;color:var(--wt-page-text)!important;border:1px solid var(--wt-page-line)!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(10,25,45,.09)!important}
.wt-shell-exercise-rail{position:relative;display:flex;align-items:center;gap:14px;min-height:50px;padding:12px clamp(18px,5vw,68px);margin:0 0 8px;background:var(--wt-page-surface);color:var(--wt-page-text);border-bottom:1px solid var(--wt-page-line);direction:rtl}
.wt-shell-exercise-rail strong{font-weight:750;font-size:15px}
.wt-shell-exercise-rail span{font-size:12px;color:var(--wt-page-muted)}
@media(max-width:700px){.wt-shell-lesson-title{margin-inline:5px;gap:6px}.wt-shell-lesson-title strong{max-width:25vw}.wt-shell-brand__image{max-width:80px}.wt-shell-exercise-rail{padding-inline:16px}.wt-shell-exercise-rail span{display:none}}
@media(max-width:480px){[data-wt-shell="lesson"] .wt-shell-brand{display:none}.wt-shell-lesson-title strong{max-width:38vw}.wt-shell-header__inner{gap:7px}}
@media(max-width:782px){body.admin-bar .wt-shell-header-holder{top:46px}}
@media(prefers-reduced-motion:reduce){.wt-shell-header-holder *{animation:none!important;scroll-behavior:auto!important}}
/* Keep the legacy typing engine contrast-safe until its complete dark palette is audited. */
body.exercise-open .exercise-backdrop{background:#f6f9fd!important}
body.exercise-open .exercise-modal{color:#172a42}
body.exercise-open .exercise-close{background:#fff!important;color:#172a42!important;border-color:#dfe7f0!important}
body.exercise-open .wt-shell-exercise-rail{background:#fff;color:#172a42;border-color:#dfe7f0}
body.exercise-open .wt-shell-exercise-rail span{color:#607187}
/* Account wrapper follows the same safe maximum as the public navigation. */
body.page-account .document>.container.content{width:min(100% - 32px,var(--wt-shell-max));max-width:var(--wt-shell-max);margin-inline:auto}
body.page-account .document>.container.content>.wrap{min-width:0}
body.page-account .document>.container.content .main{min-width:0}
@media(max-width:600px){body.page-account .document>.container.content{width:calc(100% - 20px)}}

/* WeType adaptive refinement 1.5.26.13 — tokens, context, course menus and focus UI. */
.wt-shell-header-holder{--wt-hairline:rgba(39,103,216,.12);box-shadow:0 10px 32px rgba(26,55,100,.07)!important}
.wt-shell-header{background:linear-gradient(125deg,var(--wt-surface),var(--wt-surface) 76%,var(--wt-soft))!important}
.wt-shell-header::before{content:"";display:block;height:2px;background:linear-gradient(90deg,transparent,var(--wt-page-accent),transparent);opacity:.62}
.wt-shell-brand__tagline{font-size:13px!important;max-width:205px!important;line-height:1.7!important;font-weight:550}
[data-wt-shell="lesson"] .wt-shell-brand__tagline{display:none}
.wt-shell-primary__list{gap:7px!important}
.wt-shell-primary__list>li>a{padding-inline:12px!important;transition:background-color .18s,color .18s,transform .18s}
.wt-shell-primary__list>li>a:hover{transform:translateY(-1px)}
.wt-shell-primary__list>li.current-menu-item>a{box-shadow:inset 0 -2px var(--wt-blue)}
.wt-shell-primary__list .sub-menu{border-radius:18px;box-shadow:0 22px 55px rgba(20,40,75,.15);padding:9px!important}
.wt-shell-submenu-toggle{min-width:32px!important;min-height:40px!important;margin-inline-start:3px;border:1px solid transparent!important;border-radius:10px!important;transition:transform .2s,background-color .2s!important}
.wt-shell-submenu-toggle svg{width:16px;height:16px;stroke:currentColor;transition:transform .22s}
.wt-shell-menu-open>.wt-shell-submenu-toggle svg{transform:rotate(180deg)}
.wt-shell-submenu-toggle:hover{background:var(--wt-soft)!important;border-color:var(--wt-border)!important}
.wt-shell-course-back{display:inline-flex!important;align-items:center;gap:8px;width:auto!important;height:42px!important;white-space:nowrap;flex-shrink:0;padding:0 13px;border-radius:12px!important;text-decoration:none!important;font-size:13px;font-weight:700;background:var(--wt-soft);transition:background .18s,transform .18s}
.wt-shell-course-back:hover{transform:translateX(2px);background:var(--wt-border)}
.wt-shell-course-back .wt-shell-menu-svg{width:19px;height:19px}
.wt-shell-lesson-title__copy{min-width:0}
.wt-shell-lesson-title__copy small{font-size:12px}
.wt-shell-lesson-title__copy strong{font-size:clamp(13px,1.3vw,16px)}
.wt-shell-footer__top{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr) minmax(185px,auto);gap:clamp(20px,3vw,42px);align-items:center;padding:35px 0 30px}
.wt-shell-footer__about{max-width:280px}
.wt-shell-footer__links{min-width:0}
.wt-shell-footer__menu{display:flex;gap:6px 19px;flex-wrap:wrap;align-items:center;justify-content:flex-start}
.wt-shell-footer__menu li{margin:0!important}
.wt-shell-footer__menu li a{display:inline-flex;min-height:34px;align-items:center;padding:4px 2px;font-size:13px!important;font-weight:600;transition:color .2s}
.wt-shell-footer__heading{font-size:13px!important;margin-bottom:9px!important}
.wt-shell-footer__social{min-width:0;align-self:center}
.wt-shell-footer__widgets.sidebar-footer{border-top:1px solid var(--wt-border)}
/* Friendly theme-scoped lesson UI; assessment calculations and DOM remain unchanged. */
html[data-wt-public-theme] body.single-lesson :is(.wt-a467-lesson-card,.wt-a469-chart,.wt-a467-stat,.wt-a467-dialog,.lesson-exercises .exercise-container button.button.wt-a467-exercise-button){background:var(--wt-page-surface)!important;color:var(--wt-page-text)!important;border-color:var(--wt-page-line)!important;box-shadow:0 10px 30px rgba(20,48,90,.045)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-lesson-card :is(.wt-a467-lesson-head p,.wt-a467-note,.wt-a467-percent span,.wt-a467-stars-row>span:first-child){color:var(--wt-page-muted)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-lesson-icon{background:var(--wt-page-soft);color:var(--wt-page-accent)}
html[data-wt-public-theme] body.single-lesson .wt-a467-progress{background:var(--wt-page-soft)}
html[data-wt-public-theme] body.single-lesson .wt-a467-progress>div{background:var(--wt-page-accent)}
html[data-wt-public-theme] body.single-lesson .wt-a467-percent strong{color:var(--wt-page-accent)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-insight-link{background:var(--wt-page-soft)!important;border-color:var(--wt-page-line)!important;color:var(--wt-page-accent)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-insight-link:hover{filter:brightness(.96)}
html[data-wt-public-theme] body.single-lesson .wt-a467-stars:not(.is-earned) span{color:var(--wt-page-muted);opacity:.48}
html[data-wt-public-theme] body.single-lesson .lesson-exercises .exercise-container button.button.wt-a467-exercise-button:hover{border-color:var(--wt-page-accent)!important;transform:translateY(-2px)}
html[data-wt-public-theme] body.single-lesson .lesson-exercises .exercise-container button.button.wt-a467-exercise-button :is(.wt-a467-exercise-title,.wt-a467-exercise-status,.wt-a467-exercise-description){color:inherit}
html[data-wt-public-theme] body.single-lesson .wt-a467-modal :is(.wt-a467-dialog,.wt-a469-chart,.wt-a467-stat){background:var(--wt-page-surface)!important;color:var(--wt-page-text)!important;border-color:var(--wt-page-line)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-modal :is(.wt-a469-chart h4,.wt-a467-stat strong){color:var(--wt-page-text)!important}
html[data-wt-public-theme] body.single-lesson .wt-a469-chart-detail{background:var(--wt-page-soft);color:var(--wt-page-text);border-color:var(--wt-page-line)}
html[data-wt-public-theme] body.single-lesson .wt-a469-chart-detail strong{color:var(--wt-page-accent)}
html[data-wt-public-theme] body.single-lesson :is(.entry-content,.lesson-exercises,.lesson-navigation){color:var(--wt-page-text)}
html[data-wt-public-theme="dark"] body.single-lesson .entry-content :is(h1,h2,h3,h4,h5,h6,p){color:var(--wt-page-text)}
/* One-month heat map should be a compact 7-column calendar, not full dashboard width. */
.wt-hub .wt-a3-month{width:min(100%,338px)!important;max-width:338px;margin:16px auto 12px!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px!important;justify-content:center;align-content:start}
.wt-hub .wt-a3-month .wt-a3-cell{width:100%;height:auto;aspect-ratio:1!important;border-radius:7px}
.wt-hub .wt-a3-month .wt-a3-small{font-size:11px}
/* Explicit letter/number badges replace old embedded SVG keyboard icons. */
.wt-shell-primary__list .sub-menu li.wt-course-fa>a::before,.wt-shell-mobile-nav__list li.wt-course-fa>a::before{content:'فــــا'!important;background:var(--wt-soft)!important;font-size:12px!important;font-weight:800;letter-spacing:-.6px}
.wt-shell-primary__list .sub-menu li.wt-course-en>a::before,.wt-shell-mobile-nav__list li.wt-course-en>a::before{content:'EN'!important;background:var(--wt-soft)!important;font-size:12px!important;font-weight:800;letter-spacing:.2px}
.wt-shell-primary__list .sub-menu li.wt-course-numbers>a::before,.wt-shell-mobile-nav__list li.wt-course-numbers>a::before{content:'123'!important;background:var(--wt-soft)!important;font-size:11px!important;font-weight:800;direction:ltr}
/* Focus workspace controls. The original keyboard is never removed to hide it. */
body.exercise-open .exercise-modal{padding-top:0!important;background:transparent!important;color:var(--wt-page-text)!important}
body.exercise-open .exercise-backdrop{background:var(--wt-page-bg)!important}
body.exercise-open .exercise-close{z-index:10000105!important;top:13px!important;left:clamp(12px,2vw,30px)!important;background:var(--wt-page-surface)!important;color:var(--wt-page-text)!important;border-color:var(--wt-page-line)!important}
body.exercise-open .wt-shell-exercise-rail{padding:10px clamp(14px,3vw,52px)!important;padding-left:clamp(68px,7vw,115px)!important;min-height:66px;gap:10px;align-items:center;background:var(--wt-page-surface)!important;border-color:var(--wt-page-line)!important;color:var(--wt-page-text)!important}
.wt-shell-exercise-rail__title{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.wt-shell-exercise-rail__title strong{color:var(--wt-page-text)!important;font-size:15px}
.wt-shell-exercise-rail__title span{font-size:11px;color:var(--wt-page-muted)!important}
.wt-shell-exercise-rail__tools{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.wt-shell-exercise-tool{height:39px;min-width:39px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;border-radius:12px;border:1px solid var(--wt-page-line);background:var(--wt-page-soft);color:var(--wt-page-text);cursor:pointer;font:inherit;line-height:1.1}
.wt-shell-exercise-tool svg{height:18px;width:18px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.85}
.wt-shell-exercise-tool:hover{color:var(--wt-page-accent);border-color:var(--wt-page-accent)}
.wt-shell-exercise-tool:focus-visible,.wt-shell-kbd-dock:focus-visible{outline:3px solid var(--wt-page-accent);outline-offset:3px}
.wt-shell-exercise-popover{position:relative}
.wt-shell-exercise-popover summary{list-style:none}
.wt-shell-exercise-popover summary::-webkit-details-marker{display:none}
.wt-shell-exercise-popover__panel{position:absolute;left:0;top:calc(100% + 8px);z-index:20;min-width:225px;max-width:min(330px,calc(100vw - 30px));padding:12px;border-radius:14px;border:1px solid var(--wt-page-line);box-shadow:0 16px 44px rgba(10,28,60,.18);background:var(--wt-page-surface);color:var(--wt-page-text);font-size:12px}
.wt-shell-exercise-popover__panel a{display:flex;align-items:center;min-height:35px;padding:6px 7px;border-radius:8px;color:var(--wt-page-text)!important;text-decoration:none!important}
.wt-shell-exercise-popover__panel a:hover{background:var(--wt-page-soft)}
.wt-shell-exercise-popover__panel .wt-shell-popover__eyebrow{padding:6px;color:var(--wt-page-muted)}
body.exercise-open .exercise-container :is(h2,h3,h4,h5,h6){color:var(--wt-page-text)!important}
body.exercise-open .exercise-statusbar{color:var(--wt-page-muted)}
html[data-wt-public-theme="dark"] body.exercise-open .exercise-keyboard .key-container:not(.key-warning){background:#24344b!important;border-color:#405571!important;color:#edf3ff!important}
html[data-wt-public-theme="dark"] body.exercise-open .exercise-keyboard .key-container:not(.key-warning) small{color:#c2d1e6!important}
html[data-wt-public-theme="dark"] body.exercise-open .exercise-keyboard .key-knob{color:var(--wt-page-accent)}
html[data-wt-public-theme="dark"] body.exercise-open .exercise-keyboard .key-highlight{border-color:var(--wt-page-accent)}
html[data-wt-public-theme="dark"] body.exercise-open .exercise-container .totype{color:#fff!important}
body.exercise-open .exercise-keyboard{transition:transform 300ms cubic-bezier(.2,.75,.2,1)!important}
body.exercise-open.wt-ex-keyboard-hidden .exercise-keyboard.in{transform:translateX(-50%) translateY(calc(100% + 50px)) scale(var(--wt-keyboard-scale,1))!important;pointer-events:none}
.wt-shell-kbd-dock{position:fixed;left:50%;bottom:calc(var(--wt-kb-height,245px) + 6px);transform:translateX(-50%);z-index:10000106;display:flex;align-items:center;gap:8px;border:1px solid var(--wt-page-line);border-radius:13px 13px 0 0;background:var(--wt-page-surface);color:var(--wt-page-text);box-shadow:0 -6px 22px rgba(15,36,70,.1);padding:7px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:37px;white-space:nowrap;transition:bottom 300ms cubic-bezier(.2,.75,.2,1),background .2s,color .2s}
.wt-shell-kbd-dock svg{height:17px;width:17px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
body.wt-ex-keyboard-hidden .wt-shell-kbd-dock{bottom:0;border-radius:13px 13px 0 0}
.wt-shell-kbd-dock:hover{color:var(--wt-page-accent)}
@media(max-width:1280px){.wt-shell-primary__list{gap:2px!important}.wt-shell-primary__list>li>a{padding-inline:9px!important}}
@media(max-width:1160px){.wt-shell-brand__tagline{max-width:170px}.wt-shell-footer__top{grid-template-columns:190px minmax(0,1fr);gap:22px}.wt-shell-footer__social{grid-column:1/-1}.wt-shell-footer__menu{gap:5px 13px}}
@media(max-width:760px){.wt-shell-footer__top{grid-template-columns:1fr;gap:19px}.wt-shell-footer__menu{gap:4px 15px}.wt-shell-brand__tagline{display:none}.wt-shell-lesson-title{margin-inline:0}.wt-shell-course-back{padding:0 9px;font-size:12px}.wt-shell-exercise-rail__title span{display:none!important}.wt-shell-exercise-rail__tools{gap:4px}.wt-shell-exercise-tool{padding:6px;min-width:36px}.wt-shell-kbd-dock{font-size:11px}}
@media(max-width:450px){.wt-shell-course-back span{display:none}.wt-shell-course-back{width:42px!important;padding:0}.wt-shell-lesson-title__copy strong{max-width:28vw}.wt-shell-exercise-rail__title strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){body.exercise-open .exercise-keyboard,.wt-shell-kbd-dock,.wt-shell-primary__list>li>a,.wt-shell-submenu-toggle svg{transition:none!important}}

/* 1.5.26.13 finishing: exercise text, legends and accessible sticky controls. */
html[data-wt-public-theme] body.single-lesson .lesson-exercises .wt-a467-exercise-button :is(.wt-a467-title,.wt-a467-state,.wt-a467-grade-description){color:var(--wt-page-text)!important}
html[data-wt-public-theme] body.single-lesson .lesson-exercises .wt-a467-exercise-button .wt-a467-keyboard-icon{color:var(--wt-page-accent)!important}
html[data-wt-public-theme] body.single-lesson .lesson-exercises .wt-a467-exercise-button .wt-a467-exercise-stars{color:#daa526!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-modal :is(.wt-a467-chart,.wt-a467-dialog>header){border-color:var(--wt-page-line)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-modal :is(.wt-a467-stat small,.wt-a467-disclaimer,.wt-a467-chart-note){color:var(--wt-page-muted)!important}
html[data-wt-public-theme] body.single-lesson .wt-a467-modal .wt-a467-close{background:var(--wt-page-soft)!important;color:var(--wt-page-text)!important}
html[data-wt-public-theme] body.single-lesson .wt-a469-chart svg text{fill:var(--wt-page-muted)!important}
body.exercise-open .wt-shell-exercise-rail{position:sticky!important;top:0;z-index:12}
@media(max-width:390px){body.exercise-open .wt-shell-exercise-rail{padding-right:10px!important;padding-left:60px!important}.wt-shell-exercise-popover__panel{min-width:180px}}


/* WeType 1.5.26.14 — limited DEMO regression repair; no typing engine changes. */
/* The page content uses the public shell's responsive gutters, not legacy 300/520/720px steps. */
html body .document > .container.content {
  box-sizing:border-box;
  width:calc(100% - var(--wt-shell-safe,24px) - var(--wt-shell-safe,24px))!important;
  max-width:calc(var(--wt-shell-max,1480px) - var(--wt-shell-safe,24px) - var(--wt-shell-safe,24px))!important;
  padding-inline:0!important;
  margin-inline:auto!important;
}
html body .document > .container.content > .wrap{min-width:0;width:100%;}
html body .document > .container.content .main{min-width:0;}
html body .document > .container.content .main :is(img,iframe,video,svg){max-width:100%;}
/* The long-form reading column can stay comfortable while cards/keyboard use the wider shell. */
html body.single-lesson .entry-content > p{max-width:95ch;}
/* A calm blue focus treatment, with the current accent token instead of legacy teal glow. */
html[data-wt-public-theme] body.single-lesson .wt-a467-insight-link{
  border:1px solid var(--wt-page-line)!important;
  background:var(--wt-page-soft)!important;
  color:var(--wt-page-accent)!important;
  box-shadow:none!important;
  outline:0 solid transparent!important;
  transition:background-color .17s,border-color .17s,box-shadow .17s!important;
}
html[data-wt-public-theme] body.single-lesson .wt-a467-insight-link:hover {
  background:var(--wt-page-surface)!important;
  border-color:var(--wt-page-accent)!important;
  filter:none!important;
  box-shadow:0 1px 6px rgba(25,55,95,.09)!important;
}
html[data-wt-public-theme] body.single-lesson .wt-a467-insight-link:focus-visible {
  outline:2px solid var(--wt-page-accent)!important;
  outline-offset:2px!important;
  box-shadow:none!important;
}
/* A single submenu state, shared by hover, keyboard and the chevron button. */
.wt-shell-primary__list li.menu-item-has-children>.sub-menu{display:none!important}
.wt-shell-primary__list li.menu-item-has-children.wt-shell-menu-open>.sub-menu{display:block!important}
.wt-shell-primary__list li.menu-item-has-children{gap:0;border-radius:12px}
.wt-shell-primary__list li.menu-item-has-children>a{padding-inline-end:5px!important;border-radius:11px 4px 4px 11px}
.wt-shell-primary__list li.menu-item-has-children>.wt-shell-submenu-toggle{
  margin-inline-start:0!important;margin-inline-end:3px!important;
  width:34px;min-width:34px!important;height:36px;min-height:36px!important;
  padding:0!important;border:0!important;
  border-radius:9px!important;background:transparent!important;color:var(--wt-muted);
}
.wt-shell-primary__list li.menu-item-has-children:hover>.wt-shell-submenu-toggle,
.wt-shell-primary__list li.wt-shell-menu-open>.wt-shell-submenu-toggle{color:var(--wt-blue);background:var(--wt-soft)!important}
.wt-shell-primary__list li.menu-item-has-children>.wt-shell-submenu-toggle svg{width:16px;height:16px}
/* Lesson's static educational keyboard is NOT the active exercise modal keyboard.
   The inherited rule painting all entry-content paragraphs light caused illegible white keys. */
html[data-wt-public-theme="dark"] body.single-lesson .entry-content .keyboard:not(.exercise-keyboard) .key-container:not(.key-warning){
  background:#26374f!important;border-color:#4a607e!important;color:#f1f5fd!important;
}
html[data-wt-public-theme="dark"] body.single-lesson .entry-content .keyboard:not(.exercise-keyboard) .key-container:not(.key-warning) :is(p,span,small){
  color:#f1f5fd!important;text-shadow:none!important;
}
html[data-wt-public-theme="dark"] body.single-lesson .entry-content .keyboard:not(.exercise-keyboard) .key-container.key-warning :is(p,span,small){color:#fff!important}
@media(max-width:1160px){
  .wt-shell-primary__list li.menu-item-has-children>a{padding-inline-end:10px!important}
}
@media(prefers-reduced-motion:reduce){html[data-wt-public-theme] body.single-lesson .wt-a467-insight-link{transition:none!important}}

/* WeType 1.5.26.15: same hover surface for parent nav label + submenu chevron. */
@media(min-width:1161px){
 .wt-shell-primary__list > li.menu-item-has-children{
   display:inline-flex;align-items:center;gap:0!important;
   border-radius:12px;transition:background-color .16s ease;
 }
 .wt-shell-primary__list > li.menu-item-has-children:hover,
 .wt-shell-primary__list > li.menu-item-has-children:focus-within,
 .wt-shell-primary__list > li.menu-item-has-children.wt-shell-menu-open{background:var(--wt-soft)!important}
 .wt-shell-primary__list > li.menu-item-has-children > a,
 .wt-shell-primary__list > li.menu-item-has-children > .wt-shell-submenu-toggle{
   background:transparent!important;box-shadow:none!important;border:0!important;
   transition:color .16s ease,transform .16s ease!important;
 }
 .wt-shell-primary__list > li.menu-item-has-children > a:hover,
 .wt-shell-primary__list > li.menu-item-has-children > a:focus-visible,
 .wt-shell-primary__list > li.menu-item-has-children > .wt-shell-submenu-toggle:hover,
 .wt-shell-primary__list > li.menu-item-has-children > .wt-shell-submenu-toggle:focus-visible{background:transparent!important;box-shadow:none!important}
 .wt-shell-primary__list > li.menu-item-has-children > a{border-radius:12px 0 0 12px!important;padding-inline-end:2px!important}
 .wt-shell-primary__list > li.menu-item-has-children > .wt-shell-submenu-toggle{
   margin:0!important;min-width:27px!important;width:27px!important;
   min-height:40px!important;height:40px!important;border-radius:0 12px 12px 0!important;
   color:var(--wt-muted)!important
 }
 .wt-shell-primary__list > li.menu-item-has-children:hover > .wt-shell-submenu-toggle,
 .wt-shell-primary__list > li.menu-item-has-children.wt-shell-menu-open > .wt-shell-submenu-toggle{color:var(--wt-blue)!important}
}
/* Legacy lesson yellow instructional notes must retain dark ink in both themes.
   Avoid global overrides: preserve accessible light-background yellow notes and keyboard keycaps. */
html[data-wt-public-theme] body.single-lesson .entry-content :is(
 .bg-warning,.alert-warning,.has-pale-yellow-background-color,
 [style*="background-color: yellow"],[style*="background: yellow"],
 [style*="background-color:#ffff"],[style*="background-color: #ffff"],
 [style*="background:#ffff"],[style*="background: #ffff"],
 [style*="background-color: rgb(255, 255"],[style*="background-color:rgb(255,255"],
 [style*="background: rgb(255, 255"],[style*="background:rgb(255,255"]
 ){color:#252e36!important}
html[data-wt-public-theme] body.single-lesson .entry-content :is(
 .bg-warning,.alert-warning,.has-pale-yellow-background-color,
 [style*="background-color: yellow"],[style*="background: yellow"],
 [style*="background-color:#ffff"],[style*="background-color: #ffff"],
 [style*="background:#ffff"],[style*="background: #ffff"],
 [style*="background-color: rgb(255, 255"],[style*="background-color:rgb(255,255"],
 [style*="background: rgb(255, 255"],[style*="background:rgb(255,255"]
 ) :is(p,span,em,strong,b,i,small,li){color:#252e36!important;text-shadow:none!important}

/* 1.5.26.16: scoped compatibility for bright legacy instructional notices.
   Their yellow background stays light by design; dark text ensures high contrast. */
html[data-wt-public-theme] body.single-lesson .entry-content .wt-shell-light-notice,
html[data-wt-public-theme] body.single-lesson .entry-content .wt-shell-light-notice :is(p,span,em,strong,b,i,small,li,a),
html[data-wt-public-theme="dark"] body.single-lesson .entry-content .wt-shell-light-notice :is(h1,h2,h3,h4,h5,h6,p){color:#24303b!important;text-shadow:none!important}
html[data-wt-public-theme] body.single-lesson .entry-content .wt-shell-light-notice a{text-decoration:underline}
/* A menu label and its icon have separate grid cells but comfortable inline spacing. */
.wt-shell-exercise-popover__panel a{display:flex!important;align-items:center!important;gap:12px!important;column-gap:12px!important;justify-content:flex-start!important}
.wt-shell-exercise-popover__panel a > svg,.wt-shell-exercise-popover__panel a > i{flex:0 0 auto;margin:0!important}
.wt-shell-exercise-popover__panel a > span{flex:1;min-width:0}


/* WeType 1.5.26.18 — Approved compact, information-first exercise layout.
   The lesson sidebar is ~210-260px: controls must not share a row with a long title. */
body.single-lesson .document > .container.content{max-width:1080px!important;width:calc(100% - 48px)!important;margin-inline:auto!important;box-sizing:border-box}
body.single-lesson .document > .container.content .main{min-width:0!important;max-width:none!important}
body.single-lesson .main,body.single-lesson main.main{max-width:none!important}
body.single-lesson .entry-content > :is(p,ul,ol,blockquote){max-width:74ch;margin-inline:auto}
body.single-lesson .entry-content > :is(h2,h3,h4,h5,h6){max-width:74ch;margin-inline:auto}
/* Preserve full-width educational keyboards and image/diagram layouts. */
body.single-lesson .lesson-exercises .exercise-container .wt-a617-exercise-card{
 box-sizing:border-box;display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:12px!important;padding:15px!important;min-width:0!important;width:100%!important;
 background:var(--wt-page-surface,#fff)!important;color:var(--wt-page-text,#233647)!important;
 border:1px solid var(--wt-page-line,#dae4ee)!important;border-radius:14px!important;
 box-shadow:0 4px 16px rgba(25,49,73,.035)!important;direction:rtl;text-align:right;
}
body.single-lesson .lesson-exercises .wt-a617-exercise-info{display:block!important;min-width:0!important;width:100%!important;flex:none!important}
body.single-lesson .lesson-exercises .wt-a617-exercise-details{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;width:100%!important;align-items:flex-start!important}
body.single-lesson .lesson-exercises .wt-a617-exercise-name{display:block!important;width:100%!important;font-size:14px!important;font-weight:750!important;line-height:1.65!important;color:var(--wt-page-text,#233647)!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
body.single-lesson .lesson-exercises .wt-a617-exercise-status{font-size:11.5px!important;line-height:1.7!important;color:var(--wt-page-muted,#657688)!important;overflow-wrap:normal!important;word-break:normal!important}
body.single-lesson .lesson-exercises .wt-a617-stars{display:inline-flex!important;flex-direction:row!important;gap:3px!important;direction:ltr!important;white-space:nowrap!important;font-size:17px!important;line-height:1.3!important}
body.single-lesson .lesson-exercises .wt-a617-stars .is-filled{color:#d99d25!important}
body.single-lesson .lesson-exercises .wt-a617-stars .is-empty{color:var(--wt-page-muted,#8c9cae)!important;opacity:.42}
body.single-lesson .lesson-exercises .wt-a617-exercise-actions{display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:7px!important;width:100%!important;min-width:0!important;flex:none!important}
body.single-lesson .lesson-exercises .exercise-container button.button.wt-a617-start,
html[data-wt-public-theme] body.single-lesson .lesson-exercises .exercise-container button.button.wt-a617-start{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0!important;height:auto!important;min-height:40px!important;
 padding:8px 12px!important;margin:0!important;box-sizing:border-box!important;
 background:var(--wt-page-accent,#2767d8)!important;color:#fff!important;
 border:1px solid transparent!important;border-radius:9px!important;
 text-align:center!important;line-height:1.5!important;font-size:13px!important;font-weight:750!important;
 box-shadow:none!important;transform:none!important;white-space:nowrap!important;cursor:pointer!important;
}
body.single-lesson .lesson-exercises .exercise-container button.button.wt-a617-start:hover{filter:brightness(.94)!important}
body.single-lesson .lesson-exercises .exercise-container button.button.wt-a617-start:focus-visible{outline:3px solid var(--wt-page-accent,#2767d8)!important;outline-offset:2px!important}
body.single-lesson .lesson-exercises .wt-a617-exercise-actions .wt-a467-insight-link{
 display:inline-flex!important;justify-content:center!important;align-items:center!important;
 min-height:32px!important;width:100%!important;margin:0!important;padding:4px 8px!important;
 background:transparent!important;border:1px solid transparent!important;color:var(--wt-page-accent,#2767d8)!important;
 font-size:11px!important;font-weight:650!important;box-shadow:none!important;text-decoration:none!important;
}
body.single-lesson .lesson-exercises .wt-a617-exercise-actions .wt-a467-insight-link:hover{background:var(--wt-page-soft,#eef3ff)!important;border-color:var(--wt-page-line,#dde6f3)!important}
body.single-lesson .lesson-exercises .wt-a617-guest-notice{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;margin:8px 0 14px;background:var(--wt-page-soft,#edf3ff);border:1px solid var(--wt-page-line,#dae4ee);border-radius:12px;font-size:11px;line-height:1.75}
body.single-lesson .lesson-exercises .wt-a617-guest-notice span{color:var(--wt-page-muted,#68798b)}
body.single-lesson .lesson-exercises .wt-a617-guest-notice a{font-weight:750;color:var(--wt-page-accent,#2767d8);text-decoration:none}
/* Lesson assessment card: same bounded sidebar width and visual hierarchy. */
html[data-wt-public-theme] body.single-lesson .wt-a618-lesson-summary{padding:14px!important;margin:0 0 19px!important;max-width:100%!important;border-radius:14px!important;box-sizing:border-box!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-lesson-head{display:flex;align-items:center;gap:9px!important;margin:0 0 13px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-lesson-head strong{font-size:14px!important;line-height:1.5!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-lesson-head p{font-size:11px!important;line-height:1.5!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-lesson-icon{flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:8px!important;font-size:15px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-percent{font-size:11px!important;gap:5px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-percent strong{font-size:15px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-progress{height:6px!important;margin:7px 0 13px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-stars-row{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:11px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a467-stars{font-size:17px!important;gap:3px!important;white-space:nowrap!important}
body.single-lesson .wt-a618-lesson-summary .wt-a618-lesson-caption{color:var(--wt-page-muted,#657688)!important;font-size:10.5px!important;line-height:1.7!important;margin:6px 0 10px!important}
body.single-lesson .wt-a618-lesson-summary .wt-a618-lesson-report{width:100%!important;min-height:34px!important;font-size:11px!important;box-sizing:border-box!important}
@media(min-width:1200px){body.single-lesson .document > .container.content{max-width:1020px!important}}
@media(max-width:800px){body.single-lesson .document > .container.content{width:calc(100% - 36px)!important}}
@media(max-width:560px){body.single-lesson .document > .container.content{width:calc(100% - 32px)!important}}


/* WeType 1.5.26.19 — lesson-only design contract: focused reading + compact assessment. */
body.single-lesson .document > .container.content{width:calc(100% - 40px)!important;max-width:1000px!important}
@media(min-width:1200px){body.single-lesson .document > .container.content{max-width:980px!important}}
@media(max-width:800px){body.single-lesson .document > .container.content{width:calc(100% - 36px)!important}}
@media(max-width:560px){body.single-lesson .document > .container.content{width:calc(100% - 32px)!important}}
body.single-lesson .entry-content > :is(p,ul,ol,blockquote){max-width:68ch!important}
body.single-lesson .entry-content > :is(h2,h3,h4,h5,h6){max-width:68ch!important}
/* Sidebar is one quarter of the existing layout. Never force a two-column card inside it. */
body.single-lesson .lesson-exercises .exercise-container .wt-a619-exercise-card{
  padding:12px 12px 10px!important;gap:10px!important;border-radius:13px!important;
  box-shadow:0 2px 12px rgba(20,43,73,.04)!important;
  transition:border-color .16s,box-shadow .16s!important;
}
body.single-lesson .lesson-exercises .wt-a619-exercise-card:hover{
  border-color:var(--wt-page-accent,#2767d8)!important;
  box-shadow:0 3px 15px rgba(20,43,73,.065)!important;
}
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a617-exercise-details{gap:3px!important}
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a617-exercise-name{
  font-size:13px!important;line-height:1.55!important;font-weight:750!important;
  overflow-wrap:break-word!important;white-space:normal!important;
}
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a617-exercise-status{
  font-size:11px!important;line-height:1.45!important;
}
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a617-stars{
  font-size:16px!important;gap:2px!important;margin-top:1px!important;
}
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a617-exercise-actions{gap:4px!important}
body.single-lesson .lesson-exercises .wt-a619-exercise-card button.button.wt-a617-start{
  min-height:36px!important;border-radius:8px!important;font-size:12px!important;
}
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a467-insight-link{
  min-height:28px!important;font-size:11px!important;padding:3px 6px!important;
  color:var(--wt-page-accent,#2767d8)!important;
}
/* Information card: label + actual progress + stars + separate weekly report. */
html[data-wt-public-theme] body.single-lesson .wt-a619-lesson-summary{
  padding:13px!important;border-radius:13px!important;margin:0 0 17px!important;
  box-shadow:0 2px 12px rgba(20,43,73,.04)!important;
}
body.single-lesson .wt-a619-lesson-summary .wt-a619-lesson-head{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;gap:6px!important;margin:0 0 13px!important;
}
body.single-lesson .wt-a619-lesson-heading{display:flex;flex-direction:column;gap:3px;min-width:0}
body.single-lesson .wt-a619-lesson-heading strong{
  font-size:13px!important;line-height:1.4!important;color:var(--wt-page-text,#233647)!important;
}
body.single-lesson .wt-a619-status{
  font-size:11px!important;line-height:1.4!important;color:var(--wt-page-muted,#68798b)!important;
}
body.single-lesson .wt-a619-lesson-summary .wt-a467-lesson-icon{
  width:29px!important;height:29px!important;flex:0 0 29px!important;border-radius:8px!important;
  display:grid!important;place-items:center!important;
}
body.single-lesson .wt-a619-progress-info{
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  font-size:11px;line-height:1.4;color:var(--wt-page-muted,#68798b);
}
body.single-lesson .wt-a619-progress-info strong{font-size:12px;color:var(--wt-page-accent,#2767d8)}
body.single-lesson .wt-a619-lesson-summary .wt-a619-progress{height:7px!important;margin:7px 0 13px!important}
body.single-lesson .wt-a619-lesson-summary .wt-a619-stars-row{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;flex-wrap:wrap!important;gap:4px 6px!important;
  font-size:11px!important;font-weight:600!important;
}
body.single-lesson .wt-a619-lesson-summary .wt-a619-stars-row .wt-a467-stars{font-size:15px!important;gap:1px!important}
body.single-lesson .wt-a619-lesson-summary .wt-a619-lesson-hint{
  margin:6px 0 10px!important;font-size:10.5px!important;line-height:1.6!important;
  color:var(--wt-page-muted,#68798b)!important;
}
body.single-lesson .wt-a619-lesson-summary .wt-a619-lesson-report{
  display:flex!important;min-height:34px!important;font-size:11px!important;
  color:var(--wt-page-accent,#2767d8)!important;
}
@media(prefers-reduced-motion:reduce){body.single-lesson .lesson-exercises .wt-a619-exercise-card{transition:none!important}}

/* Discreet exercise-state chip: readable but secondary to Start. */
body.single-lesson .lesson-exercises .wt-a619-exercise-card .wt-a617-exercise-status{
  display:inline-flex!important;align-self:flex-start!important;width:auto!important;
  max-width:100%!important;padding:2px 7px!important;border-radius:7px!important;
  background:var(--wt-page-soft,#f2f6fb)!important;
  color:var(--wt-page-muted,#657688)!important;
}

/* 1.5.26.32: dock uses same viewport center as keyboard and picker. */
body.exercise-open .wt-shell-kbd-dock {left:var(--wt-keyboard-center,50%)}

/* 1.5.26.33: controls are visually proportional to the fitted keyboard.
   Their bottom edge follows its ACTUAL transformed top (not its raw height). */
body.exercise-open .wt-shell-kbd-dock {
  left: var(--wt-kb-ui-center,50%)!important;
  bottom: calc(var(--wt-kb-edge-bottom,245px) + 4px)!important;
  transform: translateX(-50%) scale(var(--wt-kb-ui-scale,1))!important;
  transform-origin: center bottom!important;
  transition: background-color .2s, color .2s!important;
}
body.exercise-open.wt-ex-keyboard-hidden .wt-shell-kbd-dock {
  bottom: var(--wt-kb-edge-bottom,0px)!important;
}

/* WeType .44: profile visibility only for instructional static keyboards. */
body.wt-hide-educational-keyboard .keyboard.static{display:none!important}
/* WeType V45 theme entitlement dialog; no changes to legacy exercise controls. */
.wt-theme-save-status[hidden]{display:none!important}
.wt-theme-save-status{position:fixed;inset:auto 1rem 1rem auto;z-index:100010;max-width:min(24rem,calc(100vw - 2rem));padding:.75rem 1rem;border:1px solid var(--wt-border,#aab3c5);border-radius:.7rem;background:var(--wt-surface,#fff);color:var(--wt-ink,#182942);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.wt-theme-access-overlay{position:fixed;inset:0;z-index:100020;background:rgba(8,17,34,.68);display:flex;align-items:center;justify-content:center;padding:1rem}
.wt-theme-access-dialog{direction:rtl;background:var(--wt-surface,#fff);color:var(--wt-ink,#182942);max-width:28rem;width:100%;padding:1.5rem;border-radius:1rem;box-shadow:0 16px 40px rgba(0,0,0,.3)}
.wt-theme-access-dialog h3{margin:0 0 .75rem;font-size:1.2rem}
.wt-theme-access-dialog p{line-height:1.8}
.wt-theme-access-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.wt-theme-access-actions a,.wt-theme-access-actions button{border-radius:.65rem;padding:.55rem .9rem;font:inherit;cursor:pointer}
.wt-theme-access-actions a{background:var(--wt-brand,#2866c9);color:#fff;text-decoration:none}
.wt-theme-access-actions button{border:1px solid currentColor;background:transparent;color:inherit}

/* Independent course icon comes from the approved course registry and media library. */
.wt-shell-primary__list .sub-menu li.wt78-menu-course-icon-present>a::before,
.wt-shell-mobile-nav__list li.wt78-menu-course-icon-present>a::before{display:none!important;content:none!important}
.wt78-menu-course-icon{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:var(--wt-soft);vertical-align:middle}
.wt78-menu-course-icon img{display:block;width:23px;height:23px;object-fit:contain}
.wt-shell-primary__list .sub-menu li.wt78-menu-course-icon-present>a,
.wt-shell-mobile-nav__list li.wt78-menu-course-icon-present>a{display:flex;align-items:center;gap:9px}

/* V78 touch-safe submenus: single deliberate tap, stable touch targets. */
.wt-shell-mobile-nav__list li.menu-item-has-children>.sub-menu{display:none!important;position:static!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.wt-shell-mobile-nav__list li.wt-shell-menu-open>.sub-menu{display:block!important}
.wt-shell-mobile-nav__list .sub-menu li>a{min-height:46px;box-sizing:border-box;touch-action:manipulation}
.wt-shell-mobile-nav__list .wt-shell-submenu-toggle{touch-action:manipulation;flex:0 0 44px}
.wt-shell-mobile-nav__list li.menu-item-has-children{align-content:start}
