/* v77 - Illustrated Salah Academy, isolated styles. Existing site palette retained. */
.sbs77-academy{margin:0 0 34px;padding:clamp(17px,2.8vw,30px);background:linear-gradient(150deg,#f8f3fb,#fffaf0);border:1px solid #e7dbea;border-radius:24px;box-shadow:0 10px 38px rgba(30,11,50,.07);color:#261536}
.sbs77-academy *, .sbs77-academy *::before,.sbs77-academy *::after{box-sizing:border-box}
.sbs77-heading{max-width:900px;margin:0 auto 19px}
.sbs77-kicker,.sbs77-eyebrow{font-size:.77rem;letter-spacing:.11em;text-transform:uppercase;color:#6a3886;font-weight:800}
.sbs77-heading h2{font-size:clamp(1.65rem,3.3vw,2.3rem);line-height:1.16;color:#301445;margin:9px 0 12px;letter-spacing:-.025em}
.sbs77-heading p{font-size:1rem;color:#4e405e;line-height:1.6;margin:0 0 12px}
.sbs77-method-note{padding:12px 15px;background:#fff;border-left:4px solid #d0ae57;border-radius:8px;font-size:.9rem!important}
.sbs77-method-note a,.sbs77-after a,.sbs77-stage-links a{color:#452268;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.sbs77-panel{background:#fff;border:1px solid #e5d8e8;border-radius:20px;padding:clamp(13px,2.2vw,20px);box-shadow:0 8px 22px #29143f0a}
.sbs77-progress{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border-bottom:1px solid #eee3ed;padding-bottom:14px;margin-bottom:15px}
.sbs77-progress strong{color:#28133b;font-size:1.02rem}
.sbs77-progress p{font-size:.83rem;color:#6b5878;margin:5px 0 0;line-height:1.5}
.sbs77-meter{width:170px;max-width:100%;height:12px;background:#e9e0ed;border-radius:100px;overflow:hidden}
.sbs77-meter>span{display:block;background:linear-gradient(90deg,#794b98,#d2ad56);height:100%;width:0;transition:width .2s ease}
.sbs77-jump{display:flex;align-items:center;gap:12px;margin:0 0 15px}
.sbs77-jump label{font-size:.89rem;color:#352245;font-weight:750}
.sbs77-jump select{min-width:0;flex:1 1 auto;max-width:460px;background:#fff;border:1px solid #baa8c7;border-radius:12px;color:#28153c;font:inherit;font-size:.92rem;min-height:46px;padding:9px 11px}
.sbs77-stage-region{min-width:0}
.sbs77-stage{border:1px solid #e2d4e7;background:#fbf9fd;border-radius:17px;overflow:hidden;display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%);min-width:0}
.sbs77-stage[hidden],.sbs77-controls[hidden],.sbs77-jump[hidden]{display:none!important}
.sbs77-illustration{padding:15px;background:#f1e9f2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0}
.sbs77-illustration img{display:block;max-width:100%;width:100%;max-height:260px;height:auto;object-fit:contain;border-radius:12px;background:#e9e2e7}
.sbs77-image-label{color:#4c3d56;font-size:.76rem;font-weight:650;text-align:center;line-height:1.4}
.sbs77-stage-body{padding:clamp(15px,2.5vw,26px);min-width:0;align-self:center}
.sbs77-stage-body h3{font-family:inherit!important;font-size:clamp(1.28rem,2.1vw,1.65rem)!important;line-height:1.27!important;color:#2a173c!important;margin:10px 0!important}
.sbs77-stage-body p{font-size:.98rem!important;line-height:1.58!important;color:#493b56!important;margin:0 0 17px!important}
.sbs77-stage-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:.91rem}
.sbs77-stage-links a{overflow-wrap:anywhere}
.sbs77-control-row{display:flex;gap:10px;align-items:stretch;margin-top:13px;flex-wrap:wrap}
.sbs77-btn{font:inherit!important;line-height:1.25!important;font-size:.95rem!important;font-weight:750!important;cursor:pointer!important;min-height:46px;padding:11px 17px!important;border-radius:12px!important;white-space:normal;text-align:center;flex:1 1 150px;transition:background .15s ease}
.sbs77-btn-primary{background:#36194f!important;color:#fff!important;border:1px solid #36194f!important}
.sbs77-btn-secondary{background:#fff!important;color:#36194f!important;border:1px solid #c8b8d2!important}
.sbs77-btn-check{background:#fff4d3!important;color:#2e1b40!important;border:1px solid #cba959!important}
.sbs77-btn-check[aria-pressed=true]{background:#e6f1dc!important;border-color:#8dae83!important}
.sbs77-btn:disabled{opacity:.45!important;cursor:not-allowed!important}
.sbs77-controls-secondary{justify-content:space-between;align-items:center}
.sbs77-reset{background:transparent;border:0;color:#694e77;text-decoration:underline;text-underline-offset:3px;font-size:.86rem;cursor:pointer;min-height:44px;padding:7px 10px}
.sbs77-status{color:#594a62;font-size:.89rem;min-height:23px;margin:10px 0 0;line-height:1.5}
.sbs77-after{display:flex;gap:12px 19px;flex-wrap:wrap;justify-content:center;margin:18px auto 0;font-size:.91rem}
.sbs77-return-guide{padding:14px 0 5px}.sbs77-return-guide a{display:inline-flex;background:#f6e7bc;color:#281439;border:1px solid #e4c977;padding:12px 15px;border-radius:12px;font-weight:750;text-decoration:none}
.sbs77-academy :is(a,button,select):focus-visible,.sbs77-return-guide a:focus-visible{outline:3px solid #ad7b23;outline-offset:3px}
@media(max-width:760px){.sbs77-stage{grid-template-columns:1fr}.sbs77-illustration{padding:12px}.sbs77-illustration img{max-height:192px;max-width:340px}.sbs77-stage-body{padding:16px}.sbs77-stage-body h3{font-size:1.3rem!important}.sbs77-jump{align-items:stretch;flex-direction:column;gap:7px}.sbs77-jump select{max-width:100%;width:100%}.sbs77-meter{width:100%}.sbs77-progress{gap:11px}.sbs77-control-row{gap:9px}.sbs77-btn{flex:1 1 122px;padding:11px 8px!important}.sbs77-controls-secondary{flex-direction:column;align-items:stretch}.sbs77-reset{align-self:center}}
@media(prefers-reduced-motion:reduce){.sbs77-meter>span{transition:none}}
/* Mobile controls must not inherit a row flex-basis as an unintended vertical height. */
@media(max-width:760px){.sbs77-controls-secondary .sbs77-btn{flex:0 0 auto!important;width:100%;min-height:46px}.sbs77-controls-secondary .sbs77-reset{flex:0 0 auto!important;min-height:42px}}

/* The older article heading and paragraph typography must not create oversized mobile gaps. */
.article .sbs77-heading h2{font-family:inherit!important;line-height:1.18!important;font-size:clamp(1.55rem,3vw,2.15rem)!important;padding:0!important;margin:7px 0 10px!important;border:0!important;max-width:100%}
.article .sbs77-heading h2:after,.article .sbs77-heading h2:before{display:none!important}
.article .sbs77-heading p{margin:0 0 9px!important;padding:0!important;font-size:.94rem!important;line-height:1.53!important}
.article .sbs77-heading{margin-bottom:14px!important}
.sbs77-illustration img{max-height:185px}
@media(max-width:760px){.sbs77-academy{padding:13px!important;border-radius:18px}.sbs77-panel{padding:12px!important}.sbs77-illustration img{max-height:156px}.sbs77-stage-body{padding:14px!important}.sbs77-academy .sbs77-heading h2{font-size:1.5rem!important}.sbs77-image-label{font-size:.72rem}.sbs77-progress{margin-bottom:10px;padding-bottom:10px}.sbs77-after{gap:7px}.sbs77-heading .sbs77-method-note{padding:10px!important}.sbs77-stage-body p{line-height:1.48!important}}

.sbs77-stage-body h3{scroll-margin-top:105px}


/* v77 QA1: focused immersive beginner lesson; scoped to Academy only */
.sbs77-academy{max-width:100%;padding:clamp(15px,2.8vw,26px)!important;overflow:hidden;border-radius:24px!important;background:linear-gradient(150deg,#fffaf2,#f6edf7 72%,#fdf8ff)!important}
.sbs77-academy .sbs77-heading{max-width:850px;margin-bottom:18px!important}
.sbs77-academy .sbs78-kicker{display:block;color:#694281;font-size:.72rem;font-weight:850;letter-spacing:.11em;line-height:1.55}
.sbs78-kicker span{color:#b28a3b}
.article .sbs77-academy .sbs77-heading h2{font-family:Georgia,serif!important;font-size:clamp(1.65rem,3.4vw,2.25rem)!important;line-height:1.16!important;color:#2c173b!important;letter-spacing:-.018em!important;margin:8px 0 9px!important}
.article .sbs77-academy .sbs78-intro{font-size:.96rem!important;color:#584b60!important;line-height:1.48!important;margin:0 0 9px!important}
.sbs78-method{background:#fffdf8;border-left:3px solid #c9a454;padding:9px 12px;border-radius:10px;color:#493650;font-size:.86rem;margin:0 0 5px}
.sbs78-method summary{font-weight:750;cursor:pointer;list-style:none;min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sbs78-method summary::-webkit-details-marker{display:none}
.sbs78-method p{font-size:.86rem!important;line-height:1.5!important;margin:6px 0 0!important}
.sbs78-method a{color:#542474;font-weight:750}
.sbs77-panel{max-width:900px;margin-inline:auto;padding:clamp(14px,2.2vw,20px)!important;background:#fff;border-radius:20px}
.sbs77-progress{display:block;padding:0 0 14px;margin:0 0 10px}
.sbs78-progress-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.sbs78-step-count{font-size:.83rem;font-weight:850;color:#5b3478;text-transform:uppercase;letter-spacing:.07em}
.sbs78-progress-top strong{font-size:.84rem;color:#5f5265!important;font-weight:700}
.sbs77-meter{width:100%;height:8px;background:#eee8ee;border-radius:99px;margin:0}
.sbs77-meter>span{background:linear-gradient(90deg,#63347f,#cba75d);border-radius:99px}
.sbs78-privacy{color:#6c6071!important;font-size:.75rem!important;line-height:1.3!important;margin:8px 0 0!important}
.sbs77-jump{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 16px}
.sbs77-jump label{font-size:.83rem;white-space:nowrap;color:#453550}
.sbs77-jump select{width:min(380px,100%);max-width:380px;min-height:44px;background:#fff;border-radius:12px;color:#2b1b39}
.sbs77-stage{display:flex!important;flex-direction:column;gap:0;background:#fff!important;border:1px solid #e6dce6;border-radius:18px;overflow:hidden}
.sbs78-step-heading{padding:20px 22px 14px;background:linear-gradient(105deg,#f9f3fa,#fffaf2)}
.sbs78-step-heading h3{font-family:Georgia,serif!important;font-size:clamp(1.36rem,2.7vw,1.85rem)!important;color:#28143d!important;line-height:1.25!important;margin:0 0 6px!important;scroll-margin-top:120px}
.sbs78-step-label{font-size:.69rem!important;letter-spacing:.09em;color:#735d7a!important;font-weight:850;margin:0!important}
.sbs78-stage-media{padding:0 22px 8px;background:linear-gradient(#fffaf2,#fff)}
.sbs77-illustration{background:#efe6f0!important;padding:12px!important;border-radius:14px;overflow:hidden;gap:5px;min-height:0}
.sbs77-illustration img{width:100%!important;height:auto!important;max-height:none!important;max-width:760px!important;aspect-ratio:800/529;object-fit:contain!important;object-position:center;border-radius:11px;margin:0 auto;background:#eee5ec}
.sbs77-image-label{font-size:.72rem!important;line-height:1.3;color:#5d4e66}
.sbs77-stage-body{padding:15px 22px 22px!important;align-self:stretch}
.sbs77-stage-body>p:first-child{color:#514457!important;font-size:.95rem!important;line-height:1.5!important;margin:0 0 13px!important}
.sbs78-phrase{padding:16px 15px 13px;border:1px solid #e8dbee;background:linear-gradient(125deg,#faf6fc,#fffefa);border-radius:14px;max-width:100%;overflow-wrap:anywhere}
.sbs78-phrase-label{font-size:.72rem!important;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#785b85!important;margin:0 0 10px!important}
.sbs78-arabic{font-family:'Noto Naskh Arabic','Amiri',serif;font-size:clamp(1.75rem,4vw,2.35rem)!important;line-height:1.95!important;text-align:center;color:#2d1649!important;margin:0 0 7px!important;overflow-wrap:anywhere}
.sbs78-roman{font-size:1rem!important;line-height:1.5!important;text-align:center;font-weight:740;color:#42265c!important;margin:0 0 7px!important}
.sbs78-meaning{font-size:.91rem!important;line-height:1.55!important;text-align:center;color:#65546c!important;margin:0!important}
.sbs78-phrase-note{margin:8px 0 4px!important;font-size:.78rem!important;line-height:1.5;color:#665870!important}
.sbs78-word-details{background:#faf7fb;border:1px solid #e5d6e9;border-radius:13px;overflow:hidden;margin:10px 0 5px}
.sbs78-word-details summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer;list-style:none;font-size:.87rem;font-weight:800;min-height:48px;padding:11px 13px;color:#41235a}
.sbs78-word-details summary::-webkit-details-marker{display:none}
.sbs78-word-details[open] summary{border-bottom:1px solid #e5d6e9}
.sbs78-word-details .sbs78-phrase{border:0;border-radius:0;padding:13px;background:#fffdfc}
.sbs78-word-details .sbs78-arabic{font-size:1.5rem!important;text-align:right}
.sbs78-step-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
.sbs78-action{display:flex;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:48px;padding:10px 13px;background:#321747;border-radius:12px;color:#fff!important;font-size:.86rem;font-weight:750!important;text-decoration:none!important}
.sbs78-action-audio{background:#fcf3d8;color:#3d2851!important;border:1px solid #dcc17b}
.sbs78-action-guidance:only-child{grid-column:1 / -1;background:#f1e8f6;color:#391750!important;border:1px solid #e0cee9}
.sbs77-control-row{display:flex;gap:11px;flex-wrap:nowrap;margin-top:12px;min-height:48px}
.sbs77-controls-secondary{display:block!important}
.sbs77-controls-secondary .sbs77-btn-check{display:block;width:100%;min-height:50px;background:#fff6df!important;border-color:#dabd77!important;flex:none!important}
.sbs77-controls-secondary .sbs77-btn-check[aria-pressed=true]{background:#e4f0e1!important;color:#285435!important;border-color:#96b39c!important}
.sbs77-control-row:not(.sbs77-controls-secondary) .sbs77-btn{width:50%;flex:1 1 0!important;min-width:0;min-height:50px;padding:12px 9px!important;line-height:1.2}
.sbs78-reset-line{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:14px;color:#746778;font-size:.74rem;line-height:1.3}
.sbs78-reset-line .sbs77-reset{flex:0 0 auto;min-height:40px;color:#6c3a80}
.sbs77-status{font-size:.81rem;margin-top:8px;min-height:0}
.sbs77-after{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 0;max-width:900px}
.sbs78-related-card{display:flex;flex-direction:column;gap:5px;justify-content:center;min-height:74px;padding:13px;border:1px solid #decde3;border-radius:13px;text-decoration:none!important;background:#fff;box-shadow:0 3px 12px #28143f08;overflow-wrap:anywhere}
.sbs78-related-kicker{font-size:.65rem;font-weight:850;letter-spacing:.12em;color:#8d638d}
.sbs78-related-title{font-size:.83rem;font-weight:780;line-height:1.35;color:#3d2155}
.sbs77-academy :is(button,a,summary,select):focus-visible{outline:3px solid #9d741e!important;outline-offset:3px}
@media(min-width:880px){.sbs77-stage{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}.sbs78-step-heading{grid-column:1/-1}.sbs78-stage-media{grid-column:1;grid-row:2;padding:0 12px 20px 22px}.sbs77-stage-body{grid-column:2;grid-row:2;padding:4px 21px 20px 12px!important}.sbs77-illustration{height:100%;justify-content:center}.sbs77-illustration img{max-height:390px!important}}
@media(max-width:640px){.sbs77-academy{padding:13px!important;border-radius:18px!important}.sbs77-panel{padding:12px!important}.article .sbs77-academy .sbs77-heading h2{font-size:1.55rem!important}.sbs77-jump{flex-direction:column;align-items:stretch;gap:6px}.sbs77-jump select{width:100%;max-width:100%}.sbs78-step-heading{padding:14px 14px 11px}.sbs78-stage-media{padding:0 11px 4px}.sbs77-illustration{padding:9px!important}.sbs77-illustration img{max-height:none!important}.sbs77-stage-body{padding:13px 13px 17px!important}.sbs78-phrase{padding:13px 11px}.sbs78-arabic{font-size:1.84rem!important;line-height:1.85!important}.sbs78-step-actions{grid-template-columns:1fr}.sbs78-action-guidance:only-child{grid-column:auto}.sbs77-after{grid-template-columns:1fr;gap:8px}.sbs78-related-card{min-height:58px;padding:10px 13px}.sbs78-reset-line{justify-content:center;text-align:center}.sbs77-control-row:not(.sbs77-controls-secondary){gap:9px}.sbs77-academy .sbs77-controls-secondary .sbs77-btn-check{flex:none!important;height:auto!important;padding:12px!important;min-height:48px}}
@media(max-width:360px){.sbs77-academy{padding:10px!important}.sbs77-panel{padding:9px!important}.sbs78-step-heading{padding:13px 11px}.sbs77-stage-body{padding:10px!important}}
@media(prefers-reduced-motion:reduce){.sbs77-academy *{scroll-behavior:auto!important}}

/* QA1 visual correction from actual Chromium screenshot: content typography and image priority */
.article .sbs77-academy .sbs78-phrase .sbs78-arabic{font-family:'Noto Naskh Arabic','Amiri',serif!important;font-size:clamp(1.95rem,4.4vw,2.55rem)!important;line-height:1.95!important;letter-spacing:0!important;color:#301443!important}
.article .sbs77-academy .sbs78-phrase .sbs78-roman{font-size:1.04rem!important;line-height:1.6!important;font-weight:740!important}
.article .sbs77-academy .sbs78-phrase .sbs78-meaning{font-size:.95rem!important;line-height:1.6!important}
@media(max-width:640px){
 .sbs77-academy .sbs77-panel{padding:8px!important;background:transparent;border:0;box-shadow:none}
 .sbs77-academy .sbs78-stage-media{padding:0 8px 6px}
 .sbs77-academy .sbs77-illustration{padding:6px!important;border-radius:10px}
 .sbs77-academy .sbs78-step-heading{padding:14px 12px 11px}
 .sbs77-academy .sbs77-stage-body{padding:13px 12px 17px!important}
 .sbs77-academy .sbs77-after{padding-bottom:50px}
 .article .sbs77-academy .sbs78-phrase .sbs78-arabic{font-size:2.06rem!important}
 .sbs77-academy .sbs77-illustration img{max-height:none!important}
}
