:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:#14233c;background:#f5f7fb;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;padding:0 max(25px,calc((100% - 1160px)/2));background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6eaf2}.brand{display:flex;align-items:center;gap:12px}.brand b{font-size:20px;letter-spacing:-.5px}.brand small{display:block;color:#617087;font-size:11px;margin-top:3px}.mark,.icon-badge{display:grid;place-items:center;background:#e9efff;color:#315ad1;border-radius:12px;width:42px;height:42px;font-size:23px}.session{display:flex;align-items:center;gap:14px;color:#6b7890;font-size:12px}.session button{border:1px solid #dce3f0;background:#fff;border-radius:9px;padding:9px 13px;color:#253d62}main{width:min(1160px,calc(100% - 40px));margin:0 auto;flex:1}.auth-shell{min-height:calc(100vh - 140px);display:grid;grid-template-columns:1fr 440px;align-items:center;gap:60px}.auth-art{padding:20px 0}.eyebrow{color:#3b5fc4;font-size:12px;font-weight:bold;letter-spacing:.2px}.auth-art h1{font-size:clamp(32px,4vw,55px);line-height:1.5;margin:12px 0;color:#152842}.auth-art p{font-size:17px;line-height:2;max-width:520px;color:#62728c}.auth-meta{color:#375fc0;border:1px solid #dae5fc;background:#eaf1ff;border-radius:40px;display:inline-block;padding:10px 20px;margin-top:15px;font-size:12px}.panel{background:#fff;border:1px solid #e5eaf2;border-radius:17px;box-shadow:0 6px 30px #20395b06;padding:27px}.login h2{margin:20px 0 6px;font-size:25px}.muted{color:#697890}.login .muted{font-size:13px;line-height:1.9}.login label,.form label{display:flex;flex-direction:column;gap:8px;color:#30435f;font-weight:600;font-size:13px;margin:17px 0 8px}input,textarea,select{background:#fff;border:1px solid #d9e0ed;padding:12px 14px;border-radius:10px;color:#14233c;width:100%;outline-offset:2px}input:focus,textarea:focus,select:focus{outline:2px solid #bbccfb;border-color:#4870d9}.primary{width:100%;border:0;background:#315ed0;color:white;font-weight:700;padding:13px 20px;border-radius:10px;margin-top:20px}.primary:hover{background:#234cac}.primary:disabled{opacity:.55;cursor:wait}.fine{font-size:11px;line-height:1.9;color:#8190a5}.notice{border:1px solid #c5dbfc;background:#eff5ff;border-radius:10px;padding:11px 14px;color:#184e9a}.notice.error{background:#fff2f2;border-color:#facccc;color:#963638}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:42px 0 28px}.page-heading h1{margin:7px 0;font-size:28px}.page-heading p{margin:0}.badge{border:1px solid #d9e7ff;background:#eaf2ff;color:#3a62ac;border-radius:30px;padding:10px 15px;font-size:12px}.tabbar{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #dde4ee;margin-bottom:24px}.tab{white-space:nowrap;background:transparent;color:#62718a;border:none;border-bottom:3px solid transparent;padding:13px 17px;font-weight:600}.tab.active{border-color:#315ed0;color:#234bab}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{display:flex;flex-direction:column;gap:10px}.stat span{color:#68758b;font-size:13px}.stat strong{font-size:30px}.stat small{color:#8090a6}.intro{margin-top:16px;line-height:2}.intro h2{margin-top:0}.section-heading{margin-bottom:25px}.section-heading h2{margin:0 0 8px;font-size:23px}.section-heading p{margin:0;color:#67768d}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}.lesson-card{padding:20px;border:1px solid #e0e7f2;background:#fff;border-radius:14px}.lesson-card h3{margin:12px 0 7px}.lesson-card p{line-height:1.8;color:#65768a}.lesson-card button{background:#eef3ff;color:#2655b7;border:0;border-radius:8px;padding:9px 16px}.pill{background:#e7f6ec;color:#157348;padding:5px 10px;border-radius:15px;font-size:11px}.pill.draft{background:#fff3df;color:#9a680f}.lesson-detail{margin-top:20px;line-height:2;white-space:pre-wrap}.lesson-detail h2{margin-top:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form{margin-bottom:16px}.form h3{margin-top:0}.form .check{display:flex;flex-direction:row;align-items:flex-start;font-size:12px;font-weight:normal;line-height:1.7}.check input{width:18px;flex-shrink:0;margin-top:3px}.wide{max-width:860px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:right}th,td{padding:12px;border-bottom:1px solid #edf0f5;font-size:12px}th{color:#718096}footer{text-align:center;padding:22px;color:#8c99a9;font-size:11px}@media(max-width:860px){.auth-shell{grid-template-columns:1fr;gap:5px;padding:35px 0}.auth-art{padding:0}.auth-art h1{font-size:34px}.login{max-width:550px}.stat-grid{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.topbar{padding:0 20px}.page-heading{align-items:flex-start;flex-direction:column}}[hidden]{display:none!important}

/* R4 BRANDING R1 — public landing only; existing authenticated views retained. */
:root{font-family:"IBM Plex Sans Arabic","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;background:#f6f9ff;color:#14233c;scroll-behavior:smooth}
body{overflow-x:hidden}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #18b9e7;outline-offset:4px}
.skip-link{position:absolute;top:-75px;right:16px;z-index:999;padding:12px 20px;background:#fff;color:#082e6b;border-radius:12px}.skip-link:focus{top:9px}
.topbar{height:80px;position:relative;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);padding:0;border-bottom:1px solid #e5edfa}.topbar-inner{width:min(1240px,calc(100% - 48px));margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:inline-flex;align-items:center;gap:8px;min-width:0}.brand-icon{height:52px;width:52px;object-fit:contain}.brand-name{font-family:"Segoe UI",Arial,sans-serif;font-size:22px;color:#11213c;white-space:nowrap;font-weight:800;letter-spacing:-.6px}.brand-name b,.footer-brand span{color:#079de4}.header-actions{display:flex;align-items:center;gap:24px}.header-login{background:#0f2f58;color:#fff;border-radius:11px;padding:11px 19px;font-size:13px;font-weight:700;white-space:nowrap;transition:transform .2s,background .2s}.header-login:hover{background:#0860aa;transform:translateY(-2px)}.session{font-size:11px;gap:10px}.session button{font-size:12px}.is-authenticated .header-login{display:none}main{width:100%;margin:0;max-width:none}.public-site{overflow:hidden}.public-site section{scroll-margin-top:95px}.public-site .hero{min-height:685px;background:radial-gradient(ellipse at 25% 5%,#183e79 0%,transparent 42%),linear-gradient(124deg,#0b203f 0%,#0b2c58 55%,#073c72 100%);position:relative;color:#fff;isolation:isolate;display:flex;align-items:center}.hero:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.16;background-image:radial-gradient(circle at center,#e1f9ff 1px,transparent 1.4px);background-size:33px 33px;mask-image:linear-gradient(to left,black,transparent)}.hero-glow{position:absolute;border-radius:50%;pointer-events:none;filter:blur(8px);opacity:.7}.hero-glow-one{width:450px;height:450px;left:-190px;top:-190px;background:radial-gradient(circle,#028cda55,transparent 70%)}.hero-glow-two{width:530px;height:530px;right:-240px;bottom:-240px;background:radial-gradient(circle,#2fe7db34,transparent 68%)}.hero-inner{width:min(1240px,calc(100% - 48px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);align-items:center;gap:50px;padding:85px 0 104px;position:relative;z-index:1}.hero-copy{max-width:650px}.hero-eyebrow{display:inline-flex!important;align-items:center;gap:11px;color:#9ce9fa!important;border:1px solid #8fcbed35;background:#ffffff0d;padding:10px 14px;border-radius:40px;font-size:12px!important}.live-dot{display:inline-block;width:8px;height:8px;border-radius:100%;background:#35ddca;box-shadow:0 0 0 5px #30dcb725}.hero h1{font-size:clamp(37px,4.25vw,64px);line-height:1.45;letter-spacing:-1.8px;margin:24px 0 16px;color:#fff;font-weight:800}.hero h1 em{font-style:normal;background:linear-gradient(120deg,#69e4ff,#fff);background-clip:text;-webkit-background-clip:text;color:transparent}.hero-lead{color:#d1e1f1;font-size:16px;line-height:2.05;max-width:640px;margin:0}.hero-lead b{color:#fff}.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:30px}.cta{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:50px;padding:10px 23px;border-radius:12px;font-weight:800;font-size:14px;transition:transform .2s,box-shadow .2s,background .2s}.cta:hover{transform:translateY(-3px)}.cta-primary{background:linear-gradient(115deg,#0878dc,#14c5e8);color:#fff;box-shadow:0 13px 35px #00c6f033}.cta-primary:hover{box-shadow:0 17px 38px #00bde255}.cta-outline{border:1px solid #a9cde36e;color:#ecf8ff;background:#ffffff0b}.cta-outline:hover{background:#ffffff1c}.hero-footnote{color:#bacfdf;font-size:12px;line-height:2.3;margin-top:26px}.hero-check{color:#3ce4cb;font-weight:bold}.hero-separator{padding:0 7px;color:#72aaca}.hero-visual{position:relative;min-height:485px;display:flex;align-items:center;justify-content:center}.hero-visual:before{content:"";position:absolute;inset:11% 9%;border-radius:50%;background:radial-gradient(circle,#5ae3ff26,transparent 69%);filter:blur(5px)}.hero-orbit{position:absolute;inset:20% 5%;border:1px solid #70e6fc32;border-radius:50%;transform:rotate(-25deg);animation:hero-orbit 24s linear infinite}.orbit-b{inset:8% 19%;transform:rotate(40deg);border-color:#70e6fc18;animation-duration:32s;animation-direction:reverse}.hero-logo{object-fit:contain;max-width:53%;height:auto;position:relative;z-index:2;filter:drop-shadow(0 14px 25px #0004);animation:logo-float 7s ease-in-out infinite}.floating-card{display:flex;gap:10px;align-items:center;position:absolute;z-index:3;min-width:172px;padding:13px 15px;border:1px solid #d3efff3b;border-radius:15px;background:#163d69c9;backdrop-filter:blur(14px);box-shadow:0 15px 40px #061a3e60;animation:logo-float 6s ease-in-out infinite}.floating-card b{display:block;color:#fff;font-size:13px}.floating-card small{display:block;color:#bad6e9;font-size:10px;margin-top:3px}.float-icon{display:grid;place-items:center;height:38px;width:38px;border-radius:10px;background:#2493fb45;color:#7fcbff;font-size:21px;flex-shrink:0}.float-icon.soft{background:#2ac99035;color:#92ffca}.float-icon.teal{background:#00b8c638;color:#98f3f8}.float-one{top:5%;left:1%;animation-delay:-1s}.float-two{bottom:15%;right:0;animation-delay:-3s}.float-three{bottom:0;left:6%;animation-delay:-5s}.visual-caption{position:absolute;bottom:-23px;color:#b6cde1;font-size:10px}.proof-strip{background:#e9f4fd;border-bottom:1px solid #dbeaf5;display:flex;gap:30px;align-items:center;justify-content:center;min-height:70px;padding:16px 24px;color:#275078;font-size:13px;font-weight:700;flex-wrap:wrap}.proof-strip i{height:5px;width:5px;border-radius:50%;background:#48b3e7}
.landing-section{width:min(1240px,calc(100% - 48px));margin:0 auto;padding:100px 0}.section-intro{max-width:820px;margin-bottom:37px}.section-intro h2{font-size:clamp(28px,3.25vw,43px);letter-spacing:-.8px;line-height:1.55;margin:10px 0 13px;color:#142742}.section-intro p{color:#62738d;line-height:2.1;font-size:15px;margin:0}.kicker{display:inline-flex;align-items:center;gap:8px;color:#0673c4;font-weight:800;font-size:12px}.kicker:before{content:"";height:3px;width:20px;background:linear-gradient(90deg,#0c7cef,#20d0e3);border-radius:5px}.value-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.value-card{background:#fff;border:1px solid #e2eaf5;border-radius:20px;padding:27px 22px 23px;box-shadow:0 12px 36px #13437b08;transition:transform .25s,box-shadow .25s}.value-card:hover,.role-card:hover{transform:translateY(-5px);box-shadow:0 18px 36px #13437b15}.feature-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:13px;height:53px;width:53px;font-family:"Segoe UI",Arial,sans-serif;font-weight:900;font-size:19px;margin-bottom:18px}.feature-icon.blue{color:#116af4;background:#e9f1ff}.feature-icon.cyan{color:#008ba7;background:#defaff}.feature-icon.purple{color:#715ce0;background:#f0eeff}.feature-icon.mint{color:#0e9579;background:#dcf9ed}.value-card h3,.program-tile h3,.role-card h3,.journey-step h3{margin:0 0 10px;font-size:18px;color:#172a45}.value-card p,.program-tile p,.role-card p,.journey-step p{margin:0;color:#697b92;line-height:2;font-size:13px}.program-section{width:100%;background:linear-gradient(180deg,#f0f7fe,#f8fbff);padding:95px max(24px,calc((100% - 1240px)/2))}.program-layout{display:grid;grid-template-columns:.98fr 1fr;gap:19px}.program-primary{border-radius:24px;background:linear-gradient(135deg,#08335b,#0c5d9c);color:#fff;padding:35px;position:relative;overflow:hidden}.program-primary:before{content:"";position:absolute;width:320px;height:320px;border:1px solid #88dfff35;border-radius:50%;left:-120px;top:-110px}.program-top{display:flex;align-items:center;justify-content:space-between}.program-pill{border:1px solid #ffffff60;padding:7px 12px;border-radius:20px;font-size:11px;color:#d4f5ff}.sparkle{font-size:36px;color:#63d8f2}.program-primary h3{font-size:clamp(23px,2.6vw,32px);margin:30px 0 11px;line-height:1.5}.program-primary>p{color:#d5eaf7;font-size:14px;line-height:2.05}.mini-dialog{margin-top:28px;display:grid;gap:10px}.mini-dialog>div{background:#ffffff17;border:1px solid #ffffff20;border-radius:12px;padding:12px 16px;max-width:88%}.mini-dialog>div:last-child{justify-self:end;background:#dff7ff;color:#164a70}.mini-dialog span{font-size:10px;font-weight:800}.mini-dialog p{font-size:12px;margin:5px 0 0;line-height:1.8}.program-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.program-tile{background:#fff;border:1px solid #dfeaf6;border-radius:19px;padding:25px}.tile-symbol{display:grid;place-items:center;background:#eaf7ff;border-radius:12px;width:42px;height:42px;margin-bottom:20px;font-size:24px;color:#0972c7}.journey-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.journey-step{position:relative;border-top:2px solid #d4eafa;padding:26px 5px 10px}.journey-step:before{content:"";position:absolute;right:0;top:-6px;width:10px;height:10px;border:2px solid #18a9e0;background:#fff;border-radius:50%}.journey-step>span{display:grid;place-items:center;height:50px;width:50px;border-radius:14px;background:#ebf4ff;color:#116bd0;font-size:21px;font-weight:800;margin-bottom:17px}.roles-section{padding-top:65px}.roles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.role-card{border-radius:22px;border:1px solid #dfebf6;background:#fff;padding:25px;box-shadow:0 12px 30px #092a5907;transition:transform .25s,box-shadow .25s}.role-art{display:grid;place-items:center;font-size:45px;height:100px;border-radius:15px;margin-bottom:23px;color:#1768c5}.student-art{background:linear-gradient(110deg,#e0eeff,#ebf9ff)}.teacher-art{background:linear-gradient(110deg,#e5ebff,#eef3ff)}.parent-art{background:linear-gradient(110deg,#dcfcf6,#ecf9ff)}.coverage-section{width:100%;padding:72px max(24px,calc((100% - 1240px)/2));background:linear-gradient(115deg,#0c2751,#0a416b);color:#fff}.coverage-inner{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}.kicker.light{color:#b7eaff}.coverage-inner h2{font-size:clamp(28px,3.15vw,41px);line-height:1.5;margin:14px 0}.coverage-inner p{line-height:2.1;color:#d2e5f5;font-size:14px}.coverage-note{display:inline-block;border:1px solid #e4f6ff3d;background:#ffffff12;border-radius:10px;padding:9px 12px;color:#e2f5ff;font-size:11px;margin-top:12px}.grade-groups{display:grid;gap:12px}.grade-groups>div{display:flex;align-items:center;justify-content:space-between;border:1px solid #ffffff35;border-radius:14px;padding:13px 19px;background:#ffffff0d}.grade-groups b{font:800 27px "Segoe UI",Arial,sans-serif;letter-spacing:1px;color:#80e5f6;direction:ltr}.grade-groups span{font-size:13px}.transparency-section{padding-top:110px}.status-grid{display:grid;grid-template-columns:.9fr 1fr;gap:90px;align-items:start}.status-panel{background:#fff;border:1px solid #dfeaf5;border-radius:20px;padding:12px 25px;box-shadow:0 18px 44px #0b35600d}.status-row{display:flex;align-items:center;gap:15px;padding:20px 0;border-bottom:1px solid #ebf1f7}.status-row:last-child{border:none}.status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.status-dot.ready{background:#37be9b;box-shadow:0 0 0 4px #e0f8ed}.status-dot.planned{background:#edbc71;box-shadow:0 0 0 4px #fff2db}.status-row div{flex:1}.status-row b{display:block;font-size:13px}.status-row small{display:block;color:#7d8a9e;font-size:11px;margin-top:4px}.status-label{font-size:10px;white-space:nowrap;color:#168466;background:#e0f8ee;padding:5px 8px;border-radius:8px}.status-label.soon{background:#fff4e5;color:#9a681e}.faq-section{padding-top:70px}.faq-list{max-width:960px}.faq-list details{border:1px solid #e0e8f4;background:#fff;border-radius:13px;margin:10px 0;padding:0 19px}.faq-list summary{padding:19px 0;list-style:none;cursor:pointer;font-weight:700;font-size:15px;display:flex;justify-content:space-between;gap:16px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";font-size:22px;color:#0d75c9;font-weight:400}.faq-list details[open] summary:after{content:"−"}.faq-list details p{border-top:1px solid #ecf1f7;color:#687a93;font-size:13px;line-height:2;padding:13px 0 18px;margin:0}.login-section{width:100%;background:linear-gradient(130deg,#0c2446,#103e6e);padding:90px max(24px,calc((100% - 1240px)/2));display:grid;grid-template-columns:1fr 420px;gap:70px;align-items:center}.access-copy{color:#fff}.access-copy h2{font-size:clamp(28px,3.2vw,42px);line-height:1.5;margin:18px 0}.access-copy p{color:#d1e4f5;line-height:2.1;max-width:570px}.access-points{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.access-points span{font-size:11px;border-radius:40px;padding:8px 12px;background:#ffffff13;border:1px solid #ffffff2b}.login{color:#172b48;background:#fff;border-radius:19px;padding:30px;box-shadow:0 20px 65px #051c3c65}.login-icon{display:grid;place-items:center;background:#e9f7ff;border-radius:13px;height:63px;width:63px}.login-icon img{object-fit:contain}.login h2{margin:14px 0 7px}.login .fine{margin-bottom:0}.login .primary{display:flex;justify-content:center;gap:14px;align-items:center;background:linear-gradient(110deg,#0a62c2,#05a8d3);font-size:14px}.login .primary:hover{background:linear-gradient(110deg,#084aab,#058db5)}.site-footer{background:#fff;border-top:1px solid #e7ecf5;color:#7c8da1;padding:27px 0}.footer-inner{width:min(1240px,calc(100% - 48px));margin:auto;display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:space-between}.footer-brand{display:flex;align-items:center;gap:7px}.footer-brand b{font-family:"Segoe UI",Arial,sans-serif;color:#112743;font-size:17px}.footer-inner p,.footer-inner small{font-size:11px;margin:0}
/* Existing authenticated portal must use standard bounded layout. */
#dashboard{width:min(1160px,calc(100% - 40px));margin:0 auto;flex:1;min-height:calc(100vh - 160px)}
#dashboard .page-heading{margin:42px 0 28px}
/* Reveal only after JS opts in; without JS all content remains visible. */
.motion-ready [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.75,.25,1)}
.motion-ready [data-reveal].is-visible{opacity:1;transform:translateY(0)}
@keyframes logo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px)}}
@keyframes hero-orbit{from{rotate:0deg}to{rotate:360deg}}
@media(max-width:1050px){.hero-inner{gap:20px}.floating-card{min-width:140px}.value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-grid{gap:35px}.login-section{gap:35px}}
@media(max-width:820px){.hero-inner{grid-template-columns:1fr;padding:65px 0 80px;gap:32px}.hero-copy{max-width:100%}.hero-visual{min-height:410px;max-width:580px;width:100%;margin:auto}.program-layout,.coverage-inner,.status-grid,.login-section{grid-template-columns:1fr}.program-section,.coverage-section,.login-section{padding:68px 24px}.landing-section{padding:66px 0}.program-section,.coverage-section,.login-section{width:100%}.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roles-grid{grid-template-columns:1fr}.login-section{gap:28px}.login{max-width:570px;width:100%;margin:auto}.footer-inner{justify-content:center;text-align:center}}
@media(max-width:540px){.topbar{height:68px}.topbar-inner{width:calc(100% - 28px)}.brand-icon{width:43px;height:43px}.brand-name{font-size:17px}.header-actions{gap:7px}.header-login{padding:9px 10px;font-size:11px}.session>span{display:none}.hero-inner,.landing-section,.footer-inner{width:calc(100% - 34px)}.hero h1{font-size:34px;letter-spacing:-1px}.hero-lead{font-size:13px;line-height:2.05}.hero-eyebrow{font-size:10px!important}.hero-visual{min-height:340px}.hero-logo{max-width:58%}.floating-card{min-width:124px;padding:8px;gap:5px;border-radius:10px}.floating-card b{font-size:10px}.floating-card small{font-size:8px}.float-icon{width:27px;height:27px;font-size:15px}.float-one{left:-1%;top:4%}.float-two{right:-2%;bottom:13%}.float-three{left:0;bottom:0}.visual-caption{bottom:-14px}.proof-strip{gap:10px;font-size:11px}.proof-strip i{width:4px;height:4px}.section-intro h2{font-size:27px}.value-grid,.program-secondary,.journey-grid{grid-template-columns:1fr}.program-primary{padding:23px}.program-tile,.role-card,.value-card{padding:20px}.grade-groups b{font-size:20px}.status-panel{padding:7px 15px}.status-row{gap:9px}.status-row b{font-size:12px}.status-label{font-size:9px}.footer-inner p{width:100%}.footer-brand b{font-size:16px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}.hero-orbit,.hero-logo,.floating-card{animation:none!important}.motion-ready [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}.cta,.value-card,.role-card,.header-login{transition:none!important}}
/* The supplied transparent lockup has a dark navy wordmark; give it a light neutral backing on the dark hero for legibility. */
.hero-logo{background:#ffffff;box-shadow:0 20px 65px #03122935;border:1px solid #dff0ff;border-radius:24px;padding:13px}
/* R5A curriculum administration: extends, never replaces, approved R4 branding. */
.r5a-summary{display:flex;flex-wrap:wrap;gap:.4rem .8rem;margin:1rem 0}.r5a-count{margin:0;padding:.4rem .7rem;border:1px solid #d4e5f4;border-radius:7px;background:#f3f9ff;color:#19416e;font-size:.84rem}
.r5a-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:start;gap:1rem}.r5a-form{min-width:0}.r5a-document{border-block-start:1px solid #dbe8f4;padding:1rem 0;line-height:1.65}.r5a-document>*{margin-inline-end:.6rem}.r5a-document a{display:inline-block;font-weight:700;color:#086ca6}.r5a-document button{margin:.25rem;border:1px solid #a3cde5;border-radius:7px;padding:.4rem .7rem;background:#f0f8ff;color:#154367}.r5a-document button:focus-visible{outline:3px solid #35b5e7}.r5a-form input,.r5a-form select{max-width:100%}

.r5a-forms [hidden],#r5a-upload[hidden],[hidden]{display:none!important}

/* R5A.1 curriculum management: bounded authenticated console; public marketing styles untouched. */
.r51-console{--r51-ink:#16304d;--r51-muted:#687b90;--r51-border:#dce5ef;--r51-bg:#f6f9fc;--r51-accent:#087cb0;font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:var(--r51-ink);font-size:14px;line-height:1.65;max-width:1340px;margin:0 auto}
.r51-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.r51-header h2{font-size:clamp(21px,2.2vw,29px);line-height:1.5;margin:.1rem 0}.r51-header p,.r51-panel-head p{color:var(--r51-muted);font-size:13px;margin:.1rem 0}.r51-eyebrow{font-size:11px;font-weight:700;letter-spacing:.02em;color:#087cb0}.r51-release{white-space:nowrap;border:1px solid var(--r51-border);border-radius:8px;padding:.4rem .7rem;font-size:10px;color:var(--r51-muted);background:#fff}
.r51-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 1rem}.r51-metric{background:#fff;border:1px solid var(--r51-border);border-radius:12px;padding:13px 16px}.r51-metric span{display:block;color:var(--r51-muted);font-size:12px}.r51-metric strong{display:block;font-size:22px;line-height:1.4;color:var(--r51-ink);font-variant-numeric:tabular-nums}
.r51-workspace{display:grid;grid-template-columns:205px minmax(0,1fr);gap:15px;align-items:start}.r51-sidebar{display:grid;gap:5px;padding:10px;background:#fff;border:1px solid var(--r51-border);border-radius:13px}.r51-nav{border:0!important;background:transparent!important;text-align:right!important;padding:12px!important;min-height:42px;color:var(--r51-ink)!important;border-radius:9px!important;font-size:13px;line-height:1.5}.r51-nav:hover{background:#f0f7fb!important}.r51-nav.active{background:#e9f5fb!important;color:#03699a!important;font-weight:800}
.r51-content{min-width:0}.r51-panel{background:#fff;border:1px solid var(--r51-border);border-radius:13px;padding:19px;box-shadow:0 7px 28px #12345608}.r51-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.r51-panel-head h3{margin:0;font-size:18px}.r51-primary{border:1px solid #056b9e!important;background:#077aaf!important;color:white!important;border-radius:8px!important;padding:9px 15px!important;font-weight:700;white-space:nowrap;font-size:13px}.r51-primary:hover{background:#006895!important}.r51-primary:disabled{opacity:.5;cursor:not-allowed}
.r51-filters{display:grid;grid-template-columns:1.3fr .85fr 1.25fr;gap:10px;margin-bottom:14px;padding:12px;border:1px solid #e5edf4;background:#f8fbfe;border-radius:10px}.r51-filters-academic{grid-template-columns:1fr 1fr}.r51-filters label,.r51-fields label,.r51-dialog-form>label{display:grid;gap:5px;font-size:12px;font-weight:650;color:#425c75;min-width:0}.r51-filters input,.r51-filters select,.r51-fields input,.r51-fields select,.r51-dialog-form input{width:100%;min-height:39px;border:1px solid #ccdae7;background:#fff;border-radius:8px;padding:7px 10px;font-size:13px;color:#132e48;font-family:inherit}
.r51-filters input:focus-visible,.r51-filters select:focus-visible,.r51-fields input:focus-visible,.r51-fields select:focus-visible{outline:3px solid #70c6f088;outline-offset:1px}
.r51-table-scroll{overflow-x:auto;border:1px solid var(--r51-border);border-radius:10px}.r51-table{width:100%;border-collapse:collapse;font-size:12.5px;white-space:normal}.r51-table thead{background:#f2f7fb}.r51-table th,.r51-table td{text-align:right;padding:11px 10px;border-bottom:1px solid #e7edf4;vertical-align:middle}.r51-table tr:last-child td{border-bottom:0}.r51-table td strong{display:block;font-size:13px}.r51-table td small{display:block;font-size:11px;color:var(--r51-muted);overflow-wrap:anywhere}.r51-table td:last-child{min-width:145px}.r51-actions{display:flex;gap:5px;flex-wrap:wrap}.r51-actions button,.r51-actions a,.r51-pager button,.r51-dialog-actions button{font-size:12px;padding:5px 9px;border-radius:7px;background:#fff;border:1px solid #bfd2e2;color:#14547b;text-decoration:none;line-height:1.5}.r51-actions button:hover,.r51-actions a:hover{background:#ecf5fd}.r51-actions .r51-danger{color:#a43a43;border-color:#e9c6c6}.r51-actions button:disabled{opacity:.5;cursor:not-allowed}.r51-status{display:inline-flex;padding:3px 8px;border-radius:100px;font-size:11px;font-weight:700;background:#edf1f5;color:#4e6074;white-space:nowrap}.r51-status.PUBLISHED{background:#dff5eb;color:#116a49}.r51-status.DRAFT,.r51-status.AWAITING_UPLOAD{background:#fdf1db;color:#99620c}.r51-status.REVIEW_REQUIRED{background:#e7f1ff;color:#285aa0}.r51-status.REJECTED{background:#fee9e9;color:#9b3232}.r51-status.ARCHIVED{background:#edf0f3;color:#5e6670}.r51-status.active{background:#def5e9;color:#096a46}.r51-status.inactive{background:#f3e5e5;color:#9c3535}.r51-empty{padding:30px 15px!important;text-align:center;color:var(--r51-muted);font-size:13px}
.r51-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:var(--r51-muted);font-size:12px}.r51-pager div{display:flex;gap:6px}.r51-pager button:disabled{opacity:.4}.r51-review-list{display:grid;gap:9px}.r51-review-card{border:1px solid var(--r51-border);border-radius:10px;padding:13px;display:flex;gap:12px;align-items:center;justify-content:space-between}.r51-review-card p{margin:3px 0;color:var(--r51-muted);font-size:12px}.r51-subtitle{font-size:15px;margin:24px 0 8px}
.r51-dialog{width:min(580px,calc(100vw - 24px));max-height:min(86vh,860px);border:1px solid #d4e2ef;border-radius:15px;padding:0;box-shadow:0 25px 80px #091a334d;color:var(--r51-ink);font-family:"Segoe UI",Tahoma,Arial,sans-serif;direction:rtl}.r51-dialog::backdrop{background:#071a2bb8}.r51-dialog-form{padding:22px;overflow-y:auto;max-height:86vh}.r51-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:10px}.r51-dialog-head h3{margin:0;font-size:19px}.r51-close{background:transparent!important;border:0!important;font-size:26px;line-height:1;color:#3b5369;padding:4px 10px!important}.r51-fields{display:grid;gap:11px;margin:12px 0}.r51-dialog-actions{display:flex;justify-content:flex-start;align-items:center;gap:8px;margin-top:19px;padding-top:13px;border-top:1px solid var(--r51-border)}.r51-dialog-actions button{padding:8px 13px}.r51-console [hidden],.r51-dialog[hidden]{display:none!important}
@media(max-width:850px){.r51-workspace{grid-template-columns:1fr}.r51-sidebar{display:flex;overflow-x:auto;white-space:nowrap}.r51-nav{flex-shrink:0}.r51-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.r51-filters{grid-template-columns:1fr 1fr}.r51-filters label:first-child{grid-column:span 2}}
@media(max-width:580px){.r51-header{align-items:flex-start;flex-direction:column}.r51-release{display:none}.r51-panel{padding:10px}.r51-filters{grid-template-columns:1fr}.r51-filters label:first-child{grid-column:auto}.r51-panel-head{align-items:start}.r51-panel-head h3{font-size:16px}.r51-table th,.r51-table td{padding:8px 6px}.r51-table{min-width:620px}}
/* Preserve R4 dashboard elsewhere; tighten its frame only while curriculum management is active. */
#dashboard:has(#view-curriculum:not([hidden])) .page-heading{margin:17px 0 13px}
#dashboard:has(#view-curriculum:not([hidden])) .page-heading h1{font-size:22px;margin:2px 0}
#dashboard:has(#view-curriculum:not([hidden])) .tabbar{margin-bottom:15px}
/* R5B.1 – compact structured textbook editor; preserves accepted R5A.1 workspace */
.r5b1-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0;padding:12px 14px;background:#eef6ff;border-radius:12px;color:#1c4268}
.r5b1-toolbar>div{display:flex;gap:8px}.r5b1-tree{display:grid;gap:12px}.r5b1-unit{border:1px solid #d7e4ef;border-radius:14px;background:#fff;padding:14px}.r5b1-unit header,.r5b1-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.r5b1-unit header{border-bottom:1px solid #e5edf4;padding-bottom:12px}.r5b1-unit header h4{margin:0;flex:1;color:#153c62;font-size:1rem}.r5b1-unit button,.r5b1-lesson button{padding:6px 10px;font-size:.82rem}.r5b1-lesson{padding:12px 2px;border-bottom:1px solid #eef2f6}.r5b1-line{justify-content:flex-start}.r5b1-line strong{margin-inline-end:auto}.r5b1-line small{color:#587286}.r5b1-lesson ul{padding-inline-start:24px;color:#28475c}.r5b1-lesson li{margin:6px 0;line-height:1.8}.r5b1-lesson li button{margin-inline-start:7px}.r5b1-add{margin-top:9px;border:1px solid #b9cfe5;background:#f5faff;color:#164c7e;border-radius:9px}.r5b1-error{color:#a51f32}.r5b1-info{color:#245473}.r5b1-tree button{border-radius:8px;border:1px solid #c4d8e8;background:#fff;color:#164b76;cursor:pointer}.r5b1-tree button.r51-danger{color:#a02237;background:#fff5f5;border-color:#efcad1}
@media(max-width:650px){.r5b1-line strong{width:100%}.r5b1-unit{padding:10px}}

.r5b1-source{display:inline-block;padding:8px 11px;font-size:.84rem;background:#fff;border-radius:9px;text-decoration:none;color:#15507f}.r5b1-source[hidden]{display:none}
/* R5B.2 scoped textbook-processing workspace */
.r5b2-pages{display:grid;gap:14px;margin-block:16px}.r5b2-page{border:1px solid #dfe8f0;border-radius:14px;padding:16px;background:#fff;min-width:0}.r5b2-page-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}.r5b2-page-head span{font-size:.85rem;color:#385c78}.r5b2-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;direction:rtl;text-align:start;font:inherit;line-height:1.85;max-height:360px;overflow:auto;border:1px solid #edf1f5;background:#f7fafc;padding:14px;border-radius:9px}.r5b2-error{color:#a11d28}.r5b2-info{color:#235b77}.r5b2-page small{display:block;margin-block:8px;color:#466378}#r5b2-text{width:100%;min-height:240px;line-height:1.8;padding:12px;border:1px solid #cbd8e6;border-radius:9px}
/* R6B.2 scan review: contained layout; no effect on public pages. */
.r6b-page{margin:1rem 0;padding:1rem;border:1px solid #cbd5e1;border-radius:12px;background:#fff}
.r6b-columns{display:grid;grid-template-columns:minmax(210px,0.9fr) minmax(280px,1.1fr);gap:1rem;align-items:start}
.r6b-visual img{display:block;width:100%;height:auto;max-height:790px;object-fit:contain;background:#edf2f7;border:1px solid #ddd;border-radius:8px}
.r6b-source{max-height:170px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fb;padding:.65rem;border-radius:7px;font:inherit;font-size:.85rem}
.r6b-form textarea{width:100%;box-sizing:border-box;display:block;resize:vertical;margin:.4rem 0 .8rem;font:inherit;border:1px solid #cbd5e1;border-radius:7px;padding:.6rem}
.r6b-form label{display:block;font-weight:600;margin-top:.6rem}
.r6b-choices{display:flex;flex-wrap:wrap;gap:.35rem 1rem}.r6b-choices label{font-weight:400;margin:.2rem 0}
.r6b-controls{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
@media(max-width:800px){.r6b-columns{grid-template-columns:minmax(0,1fr)}}
/* R8C1 student foundation */
.student-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}.student-summary .panel{display:grid;gap:.35rem}.student-summary strong{font-size:1.35rem}.student-subjects{display:flex;flex-wrap:wrap;gap:.65rem}.student-subjects span{padding:.55rem .8rem;border:1px solid #d7dee8;border-radius:999px;background:#fff;font-weight:700}.student-space .lesson-card{min-height:150px}#student-transition-dialog{max-width:560px;width:calc(100% - 2rem);border:0;border-radius:14px;padding:1.25rem}#student-transition-dialog::backdrop{background:rgba(15,23,42,.45)}.dialog-actions{display:flex;gap:.7rem;justify-content:flex-end;margin-top:1rem}@media(max-width:720px){.student-summary{grid-template-columns:1fr}.student-summary strong{font-size:1.15rem}}

/* R8C2 school administration */
#view-people .table-wrap,#view-student-admin .table-wrap{overflow-x:auto}#view-people table,#view-student-admin table{width:100%;border-collapse:collapse}#view-people th,#view-people td,#view-student-admin th,#view-student-admin td{padding:11px;border-bottom:1px solid #e6eaf2;text-align:right;vertical-align:middle}#view-people td:last-child{display:flex;gap:6px;flex-wrap:wrap}button.danger{border-color:#e2bcbc;color:#9b3030;background:#fff}dialog{max-width:min(560px,calc(100vw - 32px));border:0;border-radius:16px;box-shadow:0 20px 70px #10204033}dialog::backdrop{background:#10204055}

/* R3D-R4C: accessible book-upload transfer indicator */
.astra-upload-meter{display:grid;gap:7px;margin:12px 0;font-size:12px;direction:rtl}
.astra-upload-meter[hidden]{display:none!important}
.astra-upload-meter progress{display:block;width:100%;height:13px;accent-color:#167a69}
.astra-upload-meter [data-upload-label]{overflow-wrap:anywhere}
