:root{color-scheme:dark;--paper:#101010;--surface:#191919;--ink:#f3f3f0;--muted:#aaa9a5;--line:#3c3c3a;--red:#ff8178}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--red);outline-offset:5px}h1,h2,h3,p{margin:0;font-weight:400}h1,h2,h3{letter-spacing:-.04em;line-height:1.1}h1{font-size:clamp(42px,5.2vw,78px)}h2{font-size:clamp(28px,3vw,44px)}h3{font-size:26px}p{max-width:580px}button{border:0;border-radius:0;background:none;color:inherit}img{display:block;max-width:100%}.skip{position:fixed;top:-100px;z-index:100;background:#000;padding:12px}.skip:focus{top:0}.preview-bar{background:#28211f;color:#ffd0cb;padding:9px 4.5vw;display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.04em;border-bottom:1px solid #63433e}.status-dot{width:5px;height:5px;background:var(--red);border-radius:50%;flex:none}.preview-note{margin-left:auto;color:#bba9a4}header{height:108px;margin:0 4.5vw;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:42px}.wordmark{font-size:18px;letter-spacing:-.045em;font-weight:700}.studio-label{font-size:13px}.studio-label span{color:var(--muted);font-size:10px;margin-left:12px;letter-spacing:.08em}header nav{display:flex;margin-left:auto;align-items:center;gap:25px;font-size:13px}.nav-current{color:var(--red)}.quiet-button{padding:12px 0;color:var(--muted);font-size:13px;min-height:44px}.account-icon{width:24px;height:24px;display:block}.icon-button{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;color:var(--red)}main{padding:62px 4.5vw 80px;min-height:66vh}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:var(--muted);line-height:1.5}.eyebrow.accent{color:var(--red)}.muted{color:var(--muted)}.fine{font-size:12px;line-height:1.6;color:var(--muted)}.action{min-height:44px;display:inline-flex;gap:25px;align-items:center;padding:12px 0;color:var(--red);background:transparent;border:0;font-size:15px}.action:hover{text-decoration:underline;text-underline-offset:6px}.action::after{content:none}.solid{border-bottom:1px solid var(--red);justify-content:space-between;width:100%;padding:15px 0}.login-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:10vw;align-items:start}.login-intro h1{margin:30px 0 25px;max-width:620px}.login-intro>p:not(.eyebrow){color:var(--muted);max-width:410px}.login-art{height:250px;position:relative;overflow:hidden;margin-top:42px;background:#333}.login-art img{width:100%;height:100%;object-fit:cover;object-position:center 57%;filter:saturate(.6)}.login-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0006,transparent)}.art-caption{margin-top:10px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.1em;color:var(--muted);text-transform:uppercase}.login-panel{margin-top:12px;max-width:430px}.tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin-bottom:35px}.tab{font-size:14px;color:var(--muted);padding:14px 0}.tab[aria-selected=true]{color:var(--ink);border-bottom:1px solid var(--red)}.login-panel h2{font-size:28px;margin-bottom:12px}.login-panel>.fine{margin-bottom:25px}.persona{width:100%;display:flex;text-align:left;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);min-height:78px}.persona:hover{color:var(--red)}.persona-circle{border:1px solid #696761;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;font-size:13px}.persona-copy{display:flex;flex-direction:column;gap:3px}.persona-copy strong{font-size:15px;font-weight:400}.persona-copy small{font-size:12px;color:var(--muted)}.persona-arrow{margin-left:auto;color:var(--red);font-size:22px}.login-note{margin-top:26px;max-width:410px}.login-note+.fine{margin-top:14px}label{display:block;font-size:13px;margin-top:22px}input{width:100%;margin-top:8px;background:#191919;border:1px solid #5e5e5b;color:var(--ink);padding:14px 12px;border-radius:0}.form-message{min-height:22px;color:var(--red);font-size:13px;margin:12px 0}.library-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:44px}.library-heading h1{margin:20px 0}.library-heading>div>p:last-child{color:var(--muted);font-size:14px}.library-stat{font-size:12px;color:var(--muted);text-align:right}.library-stat strong{font-size:40px;color:var(--ink);display:block;font-weight:400;line-height:1.2}.section-label{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-bottom:25px}.section-label h2{font-size:22px;letter-spacing:-.02em}.section-label .fine{font-size:11px}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}.course-card{min-width:0}.course-image{position:relative;height:clamp(240px,24vw,365px);overflow:hidden;background:#222}.course-image img{width:100%;height:100%;object-fit:cover;object-position:50% 53%;transition:transform .5s}.course-card:hover img{transform:scale(1.025)}.course-badge{position:absolute;top:18px;left:18px;background:#101010e8;padding:7px 11px;font-size:11px;letter-spacing:.03em}.course-badge.owned{color:#d5e9d7}.course-badge.locked{color:#e4d9c9}.course-meta{display:flex;align-items:center;justify-content:space-between;margin:20px 0 11px;font-size:11px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.course-card h3{max-width:550px;font-size:clamp(24px,2.6vw,36px);min-height:2.2em;letter-spacing:-.03em}.arabic{font-family:Arial,Tahoma,sans-serif;letter-spacing:0;line-height:1.8;direction:rtl;text-align:left;font-size:17px;margin:12px 0 20px;color:#cecac1}.course-bottom{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:7px;min-height:62px}.progress-track{height:2px;background:#40403e;margin:13px 0 8px}.progress-fill{height:100%;background:var(--red)}.empty{padding:30px 0 45px;border-top:1px solid var(--line)}.empty h2{margin-bottom:18px}.empty p{font-size:15px;color:var(--muted);max-width:500px}.support-note{display:flex;justify-content:space-between;gap:50px;border-top:1px solid var(--line);margin-top:50px;padding-top:22px}.support-note p{font-size:12px;color:var(--muted);max-width:500px}.support-note strong{font-weight:400;color:var(--ink)}.breadcrumb{color:var(--muted);font-size:12px;margin-bottom:30px}.breadcrumb a{color:var(--red)}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:35px}.lesson-header{margin-bottom:25px}.lesson-header h1{font-size:clamp(28px,3.1vw,46px);max-width:900px;margin:12px 0 9px}.lesson-header .arabic{font-size:19px;color:var(--ink);margin:0}.video-wrap{aspect-ratio:16/9;position:relative;background:#1d1e1d;border:1px solid #4a4844;min-width:0}.video-wrap video{width:100%;height:100%;display:block;background:#1c1d1b}.video-caption{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.video-caption p{font-size:11px;color:var(--muted)}.lesson-now{margin-top:30px;display:flex;justify-content:space-between;gap:25px}.lesson-now h2{font-size:28px;direction:rtl;letter-spacing:0;text-align:left;margin-bottom:8px}.lesson-now .eyebrow{margin-bottom:10px}.lesson-actions{display:flex;align-items:center;gap:20px}.check-button{border:1px solid #5c5a55;padding:11px 16px;min-height:44px;font-size:13px}.check-button[aria-pressed=true]{color:#c1ddc6;border-color:#79947d}.lesson-description{border-top:1px solid var(--line);padding-top:22px;margin-top:30px;font-size:13px;color:var(--muted)}.lesson-description p+p{margin-top:12px}.curriculum{border-top:1px solid var(--line);padding-top:21px;min-width:0}.curriculum h2{font-size:22px;margin-bottom:9px}.curriculum>.fine{margin-bottom:25px}.lesson-list{list-style:none;margin:0;padding:0}.lesson-list li{border-top:1px solid var(--line)}.lesson-list a{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;padding:18px 0;align-items:start;min-height:76px}.lesson-list .selected a{color:var(--red)}.lesson-list a:hover{color:var(--red)}.lesson-number{font-size:11px;color:var(--muted);padding-top:5px}.lesson-name{font-size:16px;line-height:1.6;direction:rtl;text-align:left}.lesson-name small{display:block;font-size:10px;direction:ltr;color:var(--muted);margin-top:3px}.completion-mark{font-size:13px;padding-top:5px}.curriculum-note{margin-top:26px}.loading{padding:70px 0;color:var(--muted)}.error h1{font-size:42px;margin:20px 0}.error p{color:var(--muted)}footer{margin:0 4.5vw;padding:35px 0 30px;border-top:1px solid var(--line);display:flex;align-items:end;justify-content:space-between;gap:30px}.footer-brand{font-size:24px;font-weight:700;line-height:1.07;letter-spacing:-.045em}footer p{font-size:12px;color:var(--muted)}footer p+p{margin-top:7px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#ede8df;color:#181818;padding:12px 22px;font-size:13px;box-shadow:0 6px 30px #0005;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw;width:max-content;z-index:90}#toast.visible{opacity:1}dialog{max-width:480px;width:calc(100% - 40px);padding:30px;background:#181818;color:var(--ink);border:1px solid #68635c}dialog::backdrop{background:#000b}dialog h2{font-size:30px;margin:20px 0}dialog p{color:var(--muted);font-size:14px}dialog .modal-close{float:right;min-width:44px;min-height:44px;font-size:25px;margin-top:-15px;margin-right:-15px}dialog .summary{border-block:1px solid var(--line);padding:20px 0;margin:25px 0}dialog .summary strong{display:block;font-weight:400;color:var(--ink);margin-bottom:10px}dialog .summary span{font-size:12px;color:var(--muted)}@media(max-width:1000px){.lesson-layout{grid-template-columns:minmax(0,1fr) 270px;gap:25px}.studio-label span{display:none}}@media(max-width:760px){.preview-bar{padding:8px 6vw;font-size:10px}.preview-note{display:none}header{height:88px;margin:0 6vw;gap:24px}.studio-label{font-size:12px}header nav{gap:15px}header nav>a:first-child{display:none}header .quiet-button{font-size:12px}main{padding:38px 6vw 55px}.login-layout{grid-template-columns:1fr;gap:28px}.login-intro h1{margin:22px 0;font-size:clamp(44px,10.5vw,70px)}.login-intro>p:not(.eyebrow){font-size:14px;max-width:380px}.login-art{height:185px;margin-top:26px}.login-panel{max-width:none;margin-top:0}.login-panel h2{font-size:25px}.tabs{margin-bottom:25px}.login-note{max-width:none}.library-heading{margin-bottom:32px;align-items:start}.library-heading h1{font-size:43px;margin:16px 0}.library-stat{display:none}.library-heading>div>p:last-child{font-size:13px}.section-label{padding-top:20px}.section-label h2{font-size:20px}.course-grid{grid-template-columns:1fr;gap:38px}.course-image{height:auto;aspect-ratio:1.35}.course-card h3{font-size:29px;min-height:0}.course-meta{font-size:10px}.arabic{margin:9px 0 16px;font-size:17px}.course-bottom .action{font-size:14px}.support-note{flex-direction:column;gap:14px;margin-top:35px}.lesson-layout{grid-template-columns:1fr;gap:36px}.lesson-header h1{font-size:30px;margin-top:12px}.lesson-header .arabic{font-size:17px}.breadcrumb{margin-bottom:25px}.video-wrap{margin-inline:-6vw;border-inline:0}.video-caption{align-items:start}.video-caption p{font-size:10px}.lesson-now{display:block;margin-top:27px}.lesson-now h2{font-size:27px}.lesson-actions{margin-top:20px;justify-content:space-between}.lesson-description{margin-top:24px}.curriculum h2{font-size:24px}.lesson-list a{min-height:70px}.lesson-name{font-size:17px}.curriculum-note{margin-top:20px}footer{margin:0 6vw;padding-top:25px;align-items:start;flex-wrap:wrap;gap:25px}.footer-brand{font-size:22px}footer>div:nth-child(2){max-width:210px}footer>span{width:100%;font-size:10px}#toast{font-size:12px;padding:12px 16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Explicit block layout and native progress preserve the strict no-inline-style policy. */
#viewing-code-form[hidden]{display:none}
figure{margin:0}.login-art{margin-top:42px}.course-image{display:block}.explore-section{margin-top:48px}progress.progress-track{display:block;width:100%;border:0;appearance:none;color:var(--red)}progress::-webkit-progress-bar{background:#40403e}progress::-webkit-progress-value{background:var(--red)}progress::-moz-progress-bar{background:var(--red)}@media(max-width:760px){.login-art{margin-top:26px}}
.bundle-offer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid #444;margin:0 0 32px}.bundle-offer p{margin:4px 0}@media(max-width:600px){.bundle-offer{align-items:flex-start;flex-direction:column;gap:12px}}

.purchase-email-notice{margin:24px 0;padding:20px 22px;border:1px solid #ff8178;background:#211b18;color:#f3f3f0;line-height:1.7}.purchase-email-notice p{margin:0 0 10px}.purchase-email-notice p:last-child{margin-bottom:0}.course-bottom button:disabled{opacity:.55;cursor:default}.login-panel [hidden]{display:none!important}@media(max-width:600px){.purchase-email-notice{padding:16px;margin:20px 0;max-width:100%;overflow-wrap:anywhere}.purchase-email-notice p[lang=ar]{font-size:17px}.course-bottom{flex-wrap:wrap;gap:14px}}

/* Checkout uses a plain label, without the shared decorative arrow. */
#start-checkout::after{content:none}

/* Compact landing: one email notice and direct access to courses. */
.course-landing .preview-bar{display:none}.course-landing header{height:84px}.course-landing .studio-label{display:none}.course-landing header nav>a:first-child{display:inline-flex}.course-landing header nav .action::after,.course-landing .course-bottom .action::after{content:none}.course-landing main{padding-top:40px}.landing-heading{margin-bottom:22px}.landing-heading h1{font-size:clamp(38px,5vw,64px);margin:12px 0}.landing-heading>p:last-child{font-size:14px;color:var(--muted)}.email-access-warning{border-left:2px solid var(--red);padding:8px 14px;margin:24px 0 30px;font-size:13px;color:var(--muted);max-width:650px}.email-access-warning[hidden]{display:none}.course-landing .course-card h2{font-size:clamp(26px,3vw,38px);margin:0 0 20px}.purchase-policy{margin-top:32px;font-size:12px;color:var(--muted)}.purchase-policy summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}.purchase-policy p{margin-top:6px;max-width:680px}@media(max-width:760px){.course-landing header{height:72px;gap:16px}.course-landing main{padding-top:28px}.course-landing header nav .action{font-size:13px}.landing-heading h1{font-size:40px}.email-access-warning{font-size:12px;margin:20px 0 26px}.course-landing .course-card h2{font-size:29px}.course-landing .course-bottom{flex-wrap:nowrap}.course-landing .course-bottom .action{font-size:13px;gap:0}}

/* Shared homepage header and footer, applied to every portal route. */
.portal-shell{padding-top:47px;--surface-dark:#181818}.portal-shell main{padding-top:30px}.header.site-header{position:fixed;inset:0 0 auto;z-index:50;width:100%;height:47px;min-height:47px;margin:0;padding:0 max(4.5vw,env(safe-area-inset-right,0px)) 0 max(4.5vw,env(safe-area-inset-left,0px));display:flex;align-items:center;justify-content:space-between;gap:0;color:#fff;background:rgba(28,28,28,.38);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:0;border-bottom:1px solid rgba(255,255,255,.12)}.site-header .header-wordmark{display:flex;align-items:center;min-height:44px}.header.site-header a.wordmark{display:flex;align-items:center;min-height:44px;padding:0;color:inherit;font:700 18px/1.04 Arial,Helvetica,sans-serif;letter-spacing:-.045em;text-decoration:none}.site-header>nav{display:none}.header.site-header .header-actions{display:flex;align-items:center;flex:none;gap:0;margin-left:auto;height:44px}.header.site-header .account-link{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;color:#fff;line-height:1;text-decoration:none}.site-header .account-link svg{display:block;flex:none;width:22px;height:22px;fill:none;stroke:currentColor;pointer-events:none}.header.site-header .menu-button{display:inline-flex;align-items:center;justify-content:flex-end;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border:0;background:transparent;color:#fff;text-decoration:none}.site-header .menu-icon{display:flex;flex-direction:column;gap:5px;width:24px;pointer-events:none}.site-header .menu-icon>span{display:block;width:24px;height:1px;background:#fff;transform-origin:center;transition:transform .18s ease,opacity .18s ease}.site-header .menu-button[aria-expanded=true] .menu-icon>span:first-child{transform:translateY(6px) rotate(45deg)}.site-header .menu-button[aria-expanded=true] .menu-icon>span:nth-child(2){opacity:0}.site-header .menu-button[aria-expanded=true] .menu-icon>span:last-child{transform:translateY(-6px) rotate(-45deg)}.site-header a:focus-visible,.site-header button:focus-visible{outline:2px solid #fff;outline-offset:3px}.portal-shell .mobile-nav[hidden]{display:none}.portal-shell .mobile-nav{position:fixed;inset:47px 0 auto;z-index:49;display:grid;gap:20px;max-height:calc(100dvh - 47px);overflow-y:auto;overscroll-behavior-y:contain;background:#000;padding:24px max(4.5vw,env(safe-area-inset-right,0px)) calc(32px + env(safe-area-inset-bottom,0px)) max(4.5vw,env(safe-area-inset-left,0px))}.mobile-nav .nav-link{font-size:clamp(34px,4.7vw,72px);line-height:1.15;letter-spacing:-.045em;color:var(--red);width:max-content;max-width:100%}.portal-account-bar{margin:0 4.5vw;min-height:44px;padding-top:14px}.portal-account-bar:has(nav:empty){display:none}.portal-account-bar nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;font-size:13px;min-height:44px}.portal-account-bar .action::after{content:none}.portal-account-bar .quiet-button{padding:10px 0}.completion-mark{font-size:10px;line-height:1.4;max-width:58px;text-align:right}
@media(max-width:850px){.header.site-header,.portal-shell .mobile-nav{padding-left:max(6vw,env(safe-area-inset-left,0px));padding-right:max(6vw,env(safe-area-inset-right,0px))}.header.site-header a.wordmark{font-size:17px}.mobile-nav .nav-link{font-size:38px}.portal-account-bar{margin:0 6vw;padding-top:10px}.portal-account-bar nav{gap:18px}}
@media(prefers-reduced-motion:reduce){.site-header .menu-icon>span{transition:none}}
footer#contact{display:block;margin:0;border:0;--muted:#b4b4b4;--line:#444}footer#contact .footer-bottom{font-size:14px}footer#contact .footer-label{text-transform:uppercase}
/* Unpublished footer refinement: the existing stacked signature leads a compact contact layout. */
footer#contact{padding:0;background:var(--paper)}
footer#contact .footer-top{padding:24px max(4.5vw,env(safe-area-inset-right,0px)) 20px max(4.5vw,env(safe-area-inset-left,0px));margin:0;border:0}
footer#contact .footer-top p{margin:0;max-width:730px}
footer#contact .footer-bottom{display:grid;grid-template-columns:minmax(260px,1.35fr) minmax(180px,.9fr) minmax(180px,.9fr);grid-template-areas:"brand contact explore";align-items:end;gap:12px clamp(24px,4vw,64px);padding:40px max(4.5vw,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(4.5vw,env(safe-area-inset-left,0px));border:0;background:transparent}
footer#contact .footer-top+.footer-bottom{padding-top:8px}
footer#contact .footer-base{display:contents;margin:0;padding:0;border:0}
footer#contact a[href],footer#contact a[href]:visited,footer#contact a[href]:hover,footer#contact a[href]:active{color:#fff;text-decoration:none!important;text-decoration-line:none!important;border-bottom:0}
footer#contact .footer-contact a,footer#contact .footer-nav a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;padding:8px 0;font-size:14px;font-weight:400;line-height:1.35;letter-spacing:0}
footer#contact a[href] span{text-decoration:none!important;text-decoration-line:none!important}
footer#contact a[href]:focus-visible{outline:2px solid #fff;outline-offset:4px}
footer#contact .footer-signature{grid-area:brand;display:flex;flex-direction:column;align-items:flex-start;align-self:end;justify-self:start;gap:2px;padding-bottom:12px}
footer#contact .footer-copyright{display:block;font-size:11px;font-weight:400;line-height:1.4;letter-spacing:0;color:var(--muted);white-space:nowrap}
footer#contact .footer-brand{grid-area:brand;display:block;justify-self:start;align-self:start;min-width:0;max-width:none;padding:0;font-family:Arial,Helvetica,sans-serif;font-size:clamp(63px,6.3vw,91px);font-weight:700;line-height:.93;letter-spacing:-.045em}
footer#contact .footer-brand span{display:block;white-space:nowrap}
footer#contact .footer-contact{grid-area:contact;display:grid;grid-template-columns:repeat(2,max-content);align-items:start;justify-content:start;gap:0 14px}
footer#contact .footer-nav{grid-area:explore;display:flex;flex-direction:column;align-items:flex-start;gap:0}
footer#contact .footer-label{grid-column:1/-1;margin:0 0 4px;font-size:11px;line-height:1.3;letter-spacing:.13em;color:var(--muted)}
footer#contact .footer-contact .footer-phone{grid-column:1/-1;display:inline-flex;flex-direction:row;align-items:center;gap:5px;font-size:13px;white-space:nowrap;overflow-wrap:normal}
footer#contact .footer-phone span{white-space:nowrap}
footer#contact .footer-phone span:first-child{font-size:11px;color:var(--muted)}
footer#contact .footer-meta{grid-area:meta;display:flex;flex-direction:row;align-items:center;align-self:end;justify-content:flex-start;flex-wrap:wrap;gap:6px 24px;min-width:0;margin:0;text-align:left;font-size:12px;line-height:1.5;color:var(--muted)}
footer#contact .footer-meta>span{white-space:nowrap}
footer#contact .footer-meta .copyright{font-size:12px;color:var(--muted)}
@media(max-width:850px){
 footer#contact .footer-top{padding:24px max(6vw,env(safe-area-inset-right,0px)) 18px max(6vw,env(safe-area-inset-left,0px))}
 footer#contact .footer-bottom{grid-template-columns:minmax(0,1fr) minmax(142px,.95fr);grid-template-areas:"brand contact" "brand explore";gap:8px 20px;padding:32px max(6vw,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(6vw,env(safe-area-inset-left,0px))}
 footer#contact .footer-top+.footer-bottom{padding-top:6px}
 footer#contact .footer-brand{font-size:clamp(36.75px,10.5vw,54.25px)}
 footer#contact .footer-contact{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;justify-content:stretch}
 footer#contact .footer-contact .footer-phone{font-size:12.5px;gap:4px}
 footer#contact .footer-meta{align-self:start;justify-content:space-between;gap:4px 12px;padding-top:12px}
}
@media(max-width:360px){
 footer#contact .footer-bottom{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"brand brand" "contact explore";gap:16px}
 footer#contact .footer-brand{font-size:38.5px}
 footer#contact .footer-contact .footer-phone{flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
 footer#contact .footer-meta{flex-direction:column;align-items:flex-start;gap:3px;padding-top:0}
}


@media(min-width:361px) and (max-width:850px){
 footer#contact .footer-contact,footer#contact .footer-nav{transform:translateX(12px)}
}
/* Shared footer divider follows the existing content edges. */
footer#contact{position:relative}
footer#contact::before{content:"";position:absolute;top:0;left:max(4.5vw,env(safe-area-inset-left,0px));right:max(4.5vw,env(safe-area-inset-right,0px));border-top:1px solid var(--line);pointer-events:none}
@media(max-width:850px){footer#contact::before{left:max(6vw,env(safe-area-inset-left,0px));right:max(6vw,env(safe-area-inset-right,0px))}}


/* Public catalog and email access use the studio's readable UI scale. */
.course-landing #account-nav :is(.action,.quiet-button),
.public-email-access #account-nav :is(.action,.quiet-button),
.course-landing .course-bottom .action { font-size:15px; min-height:44px; }
.course-landing .course-meta,
.course-landing .email-access-warning,
.public-email-access .login-panel .fine { font-size:14px; }
.course-landing .course-meta { flex-wrap:wrap; gap:.3em .8em; }
.course-landing .course-bottom { flex-wrap:wrap; }
.course-landing .purchase-policy summary { min-height:44px; align-content:center; }

.portal-account-bar[hidden],#footer-account[hidden]{display:none!important}
#footer-account .footer-sign-out{display:block;background:none;border:0;color:inherit;font:inherit;padding:0;text-align:start;cursor:pointer}
#footer-account .footer-sign-out:hover{text-decoration:underline}

.certificate-actions{margin-top:1rem}.certificate-note{margin:1rem 0}.certificate-form{position:relative;display:grid;gap:1rem;padding:1.5rem;max-width:36rem;color:var(--ink,#f3f3f0)}#certificate-dialog{width:min(38rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:0;border:1px solid #666;background:#191919;color:#f3f3f0}#certificate-dialog::backdrop{background:#000b}.certificate-form h2,.certificate-form p{margin:0}.certificate-form h2{font-size:clamp(1.6rem,6vw,2.4rem);line-height:1.1}.certificate-form input[type=text]{box-sizing:border-box;width:100%;min-height:3rem;background:#101010;color:#f3f3f0;border:1px solid #777;padding:.7rem;font:inherit}.certificate-form input:focus-visible,.certificate-form button:focus-visible,.certificate-form a:focus-visible{outline:2px solid #ff8178;outline-offset:3px}.certificate-confirm{display:flex;gap:.7rem;align-items:flex-start}.certificate-confirm input{flex:none;min-width:1.2rem;min-height:1.2rem}.certificate-final-warning{font-size:.95rem;line-height:1.5}.certificate-close{justify-self:end;background:none;border:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;min-height:2.5rem}.certificate-locked-name{font-size:1.5rem;overflow-wrap:anywhere}#certificate-next .action{margin-top:1rem;white-space:normal}.certificate-form .action{white-space:normal;text-align:center}#course-certificate{margin-top:1.5rem}
.completion-step{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:1rem 0;border-top:1px solid #555}.completion-step .lesson-name{flex:1;min-width:7rem}.completion-step .lesson-name small{display:block;margin-top:.35rem}.completion-step .action{white-space:normal;max-width:100%;text-align:center}.completion-step .completion-name{overflow-wrap:anywhere;max-width:100%}.completion-step label.action{position:relative;overflow:hidden;cursor:pointer}.completion-step input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.completion-step input[type=file]:focus-visible{opacity:1}.completion-step small{font-size:.8rem}.review-list{list-style:none;padding:0}.review-list li{padding:1.5rem 0;border-bottom:1px solid #666;display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.review-list li h2{width:100%;overflow-wrap:anywhere}.lesson-list .locked-lesson{display:flex;align-items:center;gap:.75rem;padding:1rem;opacity:.65}.certificate-form input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:3rem;background:#101010;color:#f3f3f0;border:1px solid #777;padding:.7rem;font:inherit}@media(max-width:420px){.completion-step .action{flex-basis:100%}.completion-step .lesson-number{flex-shrink:0}.certificate-form{padding:1rem}}
#certificate-dialog .certificate-form label{margin:0}#certificate-dialog .certificate-confirm input[type=checkbox]{width:1.2rem;height:1.2rem;min-width:1.2rem;min-height:1.2rem;flex:0 0 1.2rem;margin:.15rem 0 0;padding:0}#certificate-dialog .certificate-confirm span{flex:1;min-width:0}#certificate-status:empty{display:none}
.completion-step>.lesson-name{direction:inherit;text-align:start}.lesson-list .completion-step>.action{display:inline-flex;grid-template-columns:none;align-items:center;justify-content:flex-start;gap:.5rem;min-height:44px;line-height:1.4;text-align:start}
.lesson-progress{margin:1.1rem 0 1.5rem}.lesson-progress p{margin:0 0 .6rem}.lesson-progress-track{display:block;width:100%;height:3px;overflow:hidden}.lesson-progress-background{fill:var(--line,#40403e)}.lesson-progress-fill{fill:var(--red,#ff8178);transform-box:fill-box;transform-origin:left center;animation:lesson-progress-reveal .65s cubic-bezier(.2,.65,.25,1) both}html[dir=rtl] .lesson-progress-fill{transform-origin:right center}@keyframes lesson-progress-reveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}.availability-indicator{display:inline-flex;align-items:center;flex:none}.availability-icon{display:block;flex:none}.availability-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.completion-mark{display:inline-flex;align-items:center;gap:.5rem}.lesson-list .locked-lesson{opacity:1;color:#969692}.locked-lesson>.lesson-name{flex:1;min-width:0}.locked-lesson>.lesson-name,.locked-lesson small{color:inherit}.completion-step.is-locked{color:#969692}.completion-step.is-locked>.lesson-name,.completion-step.is-locked small{color:inherit}@media(prefers-reduced-motion:reduce){.lesson-progress-fill{animation:none}}

/* Keep every lesson and completion step on the same number/title/icon grid. */
.curriculum .lesson-list a,.curriculum .lesson-list .locked-lesson,.curriculum .lesson-list .completion-step{display:grid;grid-template-columns:52px minmax(0,1fr) 18px;column-gap:12px;row-gap:8px;align-items:start;padding:18px 0;min-height:86px;border-color:var(--line,#40403e)}.curriculum .lesson-list .lesson-number{padding-top:4px;white-space:nowrap}.curriculum .lesson-list .lesson-name{min-width:0;direction:inherit;text-align:start}.curriculum .lesson-list .availability-indicator,.curriculum .lesson-list .completion-mark{margin-top:4px}.curriculum .lesson-list .completion-mark .availability-indicator{margin-top:0}.curriculum .completion-step>.action,.curriculum .completion-step>.completion-name,.curriculum .completion-step>small{grid-column:2/-1;justify-self:start}.curriculum .completion-step>.action{display:inline-flex;grid-template-columns:none;min-height:44px;line-height:1.4}.curriculum .lesson-list .is-locked .lesson-number,.curriculum .lesson-list .locked-lesson .lesson-number{color:inherit}

.optional-lecture-prep{margin-top:1.5rem;padding-block:1rem;border-block:1px solid var(--line,#40403e)}.optional-lecture-prep summary{font-size:1rem;line-height:1.5;cursor:pointer;min-height:44px;display:list-item;list-style-position:inside}.optional-lecture-prep>p{margin:.5rem 0 1.25rem;line-height:1.6}.optional-lecture-prep fieldset{min-width:0;margin:0;padding:1rem 0;border:0;border-top:1px solid var(--line,#40403e)}.optional-lecture-prep legend{padding:0;font-size:.85rem;font-weight:600;line-height:1.6}.optional-lecture-prep label{display:flex;align-items:flex-start;gap:.75rem;min-height:44px;margin:.5rem 0;padding:.35rem 0;font-size:.95rem;line-height:1.5;cursor:pointer}.optional-lecture-prep input[type=checkbox]{appearance:auto;flex:0 0 18px;width:18px;height:18px;margin:.2rem 0 0;accent-color:var(--red,#ff8178)}.optional-lecture-prep label>span{min-width:0;overflow-wrap:anywhere}.optional-lecture-prep small{display:block;color:var(--muted,#aaa9a5);font-size:.75rem;line-height:1.5}.optional-lecture-prep input:focus-visible,.optional-lecture-prep summary:focus-visible{outline:2px solid var(--red,#ff8178);outline-offset:4px}

.lesson-layout>section>.optional-lecture-prep{margin:1.5rem 0 0;color:var(--ink,#f3f3f0)}.optional-lecture-prep summary>small{display:inline;font-size:.7rem;font-weight:400;margin-inline-start:.55rem;color:var(--muted,#aaa9a5)}.optional-lecture-prep [data-prep-missing][hidden]{display:none}

/* Arabic layout is scoped; the English design and server data are unchanged. */
html[lang=ar]{font-family:Tahoma,Arial,sans-serif}
html[dir=rtl] body{font-family:Tahoma,Arial,sans-serif;line-height:1.75;text-align:start}
html[dir=rtl] :is(h1,h2,h3,.eyebrow,.mobile-nav .nav-link,.footer-label){letter-spacing:0;line-height:1.45}
html[dir=rtl] :is(h1,h2,h3){overflow-wrap:break-word}
html[dir=rtl] :is(.wordmark,.footer-brand){direction:ltr;letter-spacing:-.045em}
html[dir=rtl] .header.site-header .header-actions{margin-left:0;margin-inline-start:auto}
html[dir=rtl] .header.site-header .menu-button{justify-content:flex-end}
html[dir=rtl] .email-access-warning{border-left:0;border-inline-start:2px solid var(--red)}
html[dir=rtl] :is(.persona,.lesson-now h2,.lesson-name,.completion-mark,.footer-meta){text-align:start}
html[dir=rtl] .lesson-name small{direction:rtl}
html[dir=rtl] .preview-note,html[dir=rtl] .persona-arrow{margin-left:0;margin-inline-start:auto}
html[dir=rtl] dialog .modal-close{float:left;margin-right:0;margin-left:-15px}
html[dir=rtl] :is(input[type=email],input[type=url],input[type=tel],input[autocomplete=one-time-code],input[inputmode=numeric],video){direction:ltr}
html[dir=rtl] input[type=email]{text-align:start}
html[dir=rtl] .course-bottom{flex-wrap:wrap}
html[dir=rtl] .course-card h2{line-height:1.5}
html[dir=rtl] .course-card h3{line-height:1.5;min-height:0}
html[dir=rtl] .section-label{gap:16px;flex-wrap:wrap}
html[dir=rtl] .lesson-actions{flex-wrap:wrap}
html[dir=rtl] :is(.login-panel,.course-card,.lesson-now>div,.library-heading>div){min-width:0}
html[dir=rtl] #clerk-email-access,html[dir=rtl] #clerk-signin{direction:rtl;text-align:start}
html[dir=rtl] .cl-cardBox,html[dir=rtl] .cl-card{max-width:100%}
html[dir=rtl] .cl-otpCodeField{direction:ltr}
@media(min-width:361px) and (max-width:850px){html[dir=rtl] footer#contact .footer-contact,html[dir=rtl] footer#contact .footer-nav{transform:translateX(-12px)}}
@media(max-width:760px){html[dir=rtl] .login-intro h1{font-size:clamp(34px,8.5vw,54px)}html[dir=rtl] .landing-heading h1{font-size:36px}html[dir=rtl] .library-heading h1{font-size:36px}html[dir=rtl] .course-landing .course-bottom{flex-wrap:wrap}html[dir=rtl] .course-landing .course-card h2{font-size:26px}}

/* Line Eight homepage geometry shared by the student and owner surfaces. */
:root{--site-header-safe-top:env(safe-area-inset-top,0px);--site-header-row:90px;--site-header-height:calc(var(--site-header-row) + var(--site-header-safe-top))}
html:has(>body.portal-shell),html:has(>body.portal-owner){scroll-padding-top:calc(var(--site-header-height) + 16px)}
body.portal-shell,body.portal-owner{padding-top:var(--site-header-height)}
body>.header.site-header{box-sizing:border-box;position:fixed;inset:0 0 auto;z-index:50;width:100%;display:flex;align-items:center;justify-content:space-between;gap:0;height:var(--site-header-height);min-height:var(--site-header-height);margin:0;padding:var(--site-header-safe-top) max(4.5vw,env(safe-area-inset-right,0px)) 0 max(4.5vw,env(safe-area-inset-left,0px));color:#fff;background:rgba(28,28,28,.38);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:0;border-bottom:1px solid rgba(255,255,255,.12)}
body>.header.site-header .header-wordmark{display:flex;align-items:center;min-height:44px}
body>.header.site-header a.wordmark{display:flex;align-items:center;min-height:44px;padding:0;color:inherit;font:700 21px/1.04 Arial,Helvetica,sans-serif;letter-spacing:-.045em;text-decoration:none}
body>.header.site-header>nav{display:flex;gap:35px;padding-top:3px;margin-inline-start:auto}
body>.header.site-header>nav a{color:inherit;font:400 13px/1.4 Arial,Helvetica,sans-serif;text-decoration:none}
body>.header.site-header>nav a:hover{text-decoration:underline}
body>.header.site-header .header-actions{display:flex;align-items:center;flex:none;gap:0;margin-inline-start:auto;height:44px}
body>.header.site-header .account-link,body>.header.site-header .menu-button{display:inline-flex;align-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;color:#fff;line-height:1;text-decoration:none}
body>.header.site-header .account-link{justify-content:center}
body>.header.site-header .menu-button{justify-content:flex-end;cursor:pointer}
body>.header.site-header .account-link svg{display:block;flex:none;width:22px;height:22px;fill:none;stroke:currentColor;pointer-events:none}
body>.header.site-header .menu-icon{display:flex;flex-direction:column;gap:5px;width:24px;pointer-events:none}
body>.header.site-header .menu-icon>span{display:block;width:24px;height:1px;background:#fff;transform-origin:center;transition:transform .18s ease,opacity .18s ease}
body>.header.site-header .menu-button[aria-expanded=true] .menu-icon>span:first-child{transform:translateY(6px) rotate(45deg)}
body>.header.site-header .menu-button[aria-expanded=true] .menu-icon>span:nth-child(2){opacity:0}
body>.header.site-header .menu-button[aria-expanded=true] .menu-icon>span:last-child{transform:translateY(-6px) rotate(-45deg)}
body>.header.site-header a:focus-visible,body>.header.site-header button:focus-visible{outline:2px solid #fff;outline-offset:3px}
body>.mobile-nav[hidden]{display:none}
body>.mobile-nav{position:fixed;inset:0;z-index:49;display:grid;align-content:safe center;gap:20px;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;background:#090909f8;padding:calc(var(--site-header-height) + 32px) max(4.5vw,env(safe-area-inset-right,0px)) calc(32px + env(safe-area-inset-bottom,0px)) max(4.5vw,env(safe-area-inset-left,0px))}
body>.mobile-nav .nav-link{font:400 clamp(35px,4.8vw,70px)/1.15 Arial,Helvetica,sans-serif;letter-spacing:-.045em;color:#ff8178;text-decoration:none;width:max-content;max-width:100%}
body>.mobile-nav .nav-link:hover{text-decoration:underline}
@media(max-width:850px){:root{--site-header-row:82px}body>.header.site-header,body>.mobile-nav{padding-left:max(6vw,env(safe-area-inset-left,0px));padding-right:max(6vw,env(safe-area-inset-right,0px))}body>.header.site-header>nav{display:none}}
@media(prefers-reduced-motion:reduce){body>.header.site-header .menu-icon>span{transition:none}}
/* Keep the white homepage controls legible over the dashboard’s pale canvas. */
body.portal-owner>.header.site-header{background:rgba(28,28,28,.86)}
@media(prefers-color-scheme:light){
 body.portal-owner>.header.site-header{color:#191919;background:rgba(245,243,239,.96);border-bottom-color:#b6b0a7}
 body.portal-owner>.header.site-header :is(.account-link,.menu-button){color:inherit}
 body.portal-owner>.header.site-header .menu-icon>span{background:currentColor}
 body.portal-owner>.mobile-nav{background:#f5f3effa;color:#191919}
 body.portal-owner>.mobile-nav .nav-link{color:#b63830}
}
