/* «امتحان نوفمبر تفاعلي» — uses request.css variables */
@font-face{font-family:Cairo;font-style:normal;font-weight:400 800;font-display:swap;src:url(/_next/static/media/350b852752f8489d-s.p.woff2) format("woff2");unicode-range:u+06??,u+0750-077f,u+0870-0891,u+0897-08e1,u+08e3-08ff,u+200c-200e,u+2010-2011,u+204f,u+2e41,u+fb50-fdff,u+fe70-fe74,u+fe76-fefc}
@font-face{font-family:Cairo;font-style:normal;font-weight:400 800;font-display:swap;src:url(/_next/static/media/5ec84f17416dda4d-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}
@font-face{font-family:Cairo;font-style:normal;font-weight:400 800;font-display:swap;src:url(/_next/static/media/01f0c602c274ea55-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}
:root{--yellow:#F5B700;--yellow-soft:#FFF6D6;--red:#C62828;--red-soft:#FDECEA}
.ex-body{-webkit-tap-highlight-color:transparent}
.ex-body .wrap{padding-bottom:calc(2.5rem + env(safe-area-inset-bottom))}
.ex-hero{background:linear-gradient(135deg,var(--blue),var(--navy));color:#fff;border-radius:1.25rem;padding:1.1rem 1.2rem;margin-bottom:1rem;text-align:center}
.ex-hero h2{margin:0;font-size:1.4rem;font-weight:800}
.ex-hero p{margin:.25rem 0 0;color:#FFE58A;font-weight:700;font-size:.95rem}
.ex-card{background:#fff;border-radius:1.25rem;padding:1.15rem;box-shadow:0 1px 4px rgba(16,24,40,.06);margin-bottom:1rem}
.ex-card h3{margin:0 0 .3rem;font-size:1.1rem;font-weight:800;color:var(--navy)}
.ex-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.2rem}
.ex-chip{flex:1 1 auto;min-width:5.5rem;min-height:2.9rem;border-radius:.9rem;border:2px solid #d5dbe6;background:#fff;font:inherit;font-weight:800;color:var(--text);cursor:pointer;padding:.3rem .7rem}
.ex-chip[aria-pressed="true"]{border-color:var(--blue);background:#F3F7FE;color:var(--blue)}
.ex-err{color:var(--red);font-size:.85rem;font-weight:700;margin:.4rem 0 0}
.ex-profile{display:flex;align-items:center;gap:.6rem;justify-content:space-between;background:var(--yellow-soft);border:1.5px solid #F2D27A;border-radius:1rem;padding:.7rem .9rem;margin-bottom:1rem}
.ex-profile b{color:var(--navy)}
.ex-profile small{display:block;color:var(--muted);font-size:.82rem}
.ex-link{background:none;border:0;color:var(--blue);font:inherit;font-weight:800;cursor:pointer;padding:.3rem;text-decoration:underline}
.ex-list{display:grid;gap:.65rem}
.ex-subj{display:flex;align-items:center;justify-content:space-between;gap:.6rem;width:100%;min-height:4rem;border-radius:18px;background:#E8F5E9;border:1.5px solid #66BB6A;color:#1B5E20;font:inherit;font-size:1.1rem;font-weight:800;padding:.6rem 1rem;cursor:pointer;text-align:right}
.ex-subj small{display:block;font-size:.8rem;color:#4b6b50;font-weight:700}
.ex-subj.soon{background:#f4f6f9;border-color:#dfe4ec;color:#8a94a3;cursor:default}
.ex-badge{flex-shrink:0;border-radius:999px;padding:.15rem .7rem;font-size:.78rem;font-weight:800;background:var(--green);color:#fff}
.ex-subj.soon .ex-badge{background:#c9d0db}
.ex-badge.ok{background:var(--yellow);color:#4a3600}
.ex-month{display:inline-block;background:var(--yellow);color:#4a3600;border-radius:999px;padding:.1rem .8rem;font-weight:800;font-size:.85rem;margin-bottom:.6rem}
.ex-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem;font-weight:800;color:var(--navy)}
.ex-progress{height:.55rem;border-radius:999px;background:#e3e9f3;overflow:hidden;margin-bottom:1rem}
.ex-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--green),#43A047);border-radius:999px;transition:width .3s}
.ex-sec{display:inline-block;background:var(--navy);color:#fff;border-radius:.7rem;padding:.2rem .8rem;font-size:.9rem;font-weight:800;margin-bottom:.6rem}
.ex-q{font-size:1.12rem;font-weight:800;line-height:1.8;margin:0 0 .9rem;color:var(--text)}
.ex-opts{display:grid;gap:.55rem}
.ex-opt{display:flex;align-items:center;gap:.6rem;width:100%;min-height:3.2rem;border-radius:.95rem;border:2px solid #d5dbe6;background:#fff;font:inherit;font-weight:700;color:var(--text);cursor:pointer;padding:.55rem .85rem;text-align:right;line-height:1.6}
.ex-opt .ex-l{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;border-radius:50%;background:#eef2f8;font-weight:800;color:var(--navy)}
.ex-opt[aria-pressed="true"]{border-color:var(--blue);background:#F3F7FE}
.ex-opt[aria-pressed="true"] .ex-l{background:var(--blue);color:#fff}
.ex-opt.right{border-color:var(--green);background:var(--green-soft);color:var(--green-text)}
.ex-opt.right .ex-l{background:var(--green);color:#fff}
.ex-opt.wrong{border-color:var(--red);background:var(--red-soft);color:#8a1f11}
.ex-opt.wrong .ex-l{background:var(--red);color:#fff}
.ex-opt:disabled{cursor:default;opacity:1}
.ex-fb{border-radius:1rem;padding:.75rem .9rem;margin-top:.8rem;font-weight:700}
.ex-fb.good{background:var(--green-soft);color:var(--green-text)}
.ex-fb.bad{background:var(--red-soft);color:#8a1f11}
.ex-fb p{margin:.2rem 0 0;font-weight:600;color:var(--text)}
.ex-src{display:block;margin-top:.3rem;color:var(--muted);font-size:.78rem;font-weight:600}
.ex-score{text-align:center}
.ex-ring{--p:0;width:9.5rem;height:9.5rem;margin:.4rem auto .6rem;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--p)*1%),#e3e9f3 0)}
.ex-ring div{width:7.6rem;height:7.6rem;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:1.9rem;font-weight:800;color:var(--navy);line-height:1.1}
.ex-ring small{display:block;font-size:.85rem;color:var(--muted)}
.ex-score h3{font-size:1.35rem;margin:.2rem 0}
.ex-score p{margin:.2rem 0;color:var(--muted);font-weight:700}
.ex-review{display:grid;gap:.6rem}
.ex-rv{border-radius:1rem;padding:.75rem .9rem;border:1.5px solid #e3e9f3;background:#fff}
.ex-rv.ok{border-color:#9CCC9F;background:#F6FBF6}
.ex-rv.no{border-color:#EF9A9A;background:#FFF8F7}
.ex-rv b{display:block;line-height:1.7}
.ex-rv .ans{margin:.25rem 0 0;font-size:.92rem}
.ex-rv .ans span{font-weight:800}
.ex-rv .ans .g{color:var(--green-text)}
.ex-rv .ans .r{color:var(--red)}
.ex-cert-wrap{background:#fff;border-radius:1.25rem;padding:.8rem;box-shadow:0 1px 4px rgba(16,24,40,.06);margin-bottom:1rem;text-align:center}
.ex-cert-wrap h3{margin:.2rem 0 .1rem;color:var(--green-text);font-size:1.2rem}
.ex-cert-wrap>p{margin:0 0 .6rem;color:var(--muted);font-weight:700;font-size:.9rem}
.ex-cert-img{display:block;width:100%;height:auto;border-radius:.8rem;border:1px solid #e6ebf3;background:#fffdf5;-webkit-touch-callout:default}
.ex-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.8rem}
.ex-actions .btn{margin-top:0}
.btn-yellow{background:var(--yellow);color:#3d2d00}.btn-yellow:hover{background:#e0a800}
.ex-small{display:block;margin:.6rem auto 0;color:var(--blue);font-weight:800;font-size:.9rem;background:none;border:0;font-family:inherit;cursor:pointer;text-decoration:underline}
.ex-note{font-size:.82rem;color:var(--muted);margin:.5rem 0 0;font-weight:600}
.ex-toast{position:fixed;left:50%;bottom:calc(1.2rem + env(safe-area-inset-bottom));transform:translateX(-50%);background:#1c2430;color:#fff;border-radius:.9rem;padding:.7rem 1rem;font-weight:700;font-size:.92rem;max-width:min(92vw,28rem);text-align:center;z-index:50;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.ex-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:grid;place-items:center;z-index:40;padding:1rem}
.ex-modal>div{background:#fff;border-radius:1.25rem;padding:1.2rem;max-width:24rem;width:100%;text-align:center}
.ex-modal h3{margin:0 0 .4rem;color:var(--navy)}
@media (min-width:48rem){.ex-body .wrap{max-width:44rem}.ex-q{font-size:1.2rem}}
/* home bar entry */
#alm-request-bar a.alm-exam-link{grid-column:1/-1;background:var(--yellow,#F5B700);color:#3d2d00}
#alm-request-bar a.alm-exam-link:hover{background:#e0a800}
.ex-code{direction:ltr;text-align:left;background:#0f2742;color:#e8f1ff;font:600 .92rem/1.6 ui-monospace,Menlo,Consolas,monospace;padding:.7rem .9rem;border-radius:.6rem;margin:0 0 .9rem;overflow-x:auto;white-space:pre}
.ex-rv .ex-code{font-size:.8rem;margin:.4rem 0}

.ex-en .ex-q,.ex-en .ex-opt,.ex-rv[dir=ltr]{font-family:Poppins,Cairo,system-ui,sans-serif;text-align:left}
.ex-fig{display:block;max-width:100%;max-height:260px;margin:0 auto .9rem;border-radius:.5rem;background:#fff}
.ex-rv .ex-fig{max-height:180px;margin:.4rem 0}
.ex-sets{display:grid;grid-template-columns:1fr;gap:.5rem;margin:-.3rem 0 1rem}
.ex-set{display:block;text-align:center;font-weight:800;font-size:1rem;padding:.7rem 1rem;border-radius:.9rem;text-decoration:none;border:2px solid #F5B700;color:#3d2d00;background:#fff}
.ex-set.on{background:#F5B700;color:#3d2d00}
.ex-set:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
/* 20-minute timer + 4-tier certificate (v57) */
.ex-timer{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:-.1rem auto .6rem;width:max-content;max-width:100%;padding:.3rem .9rem;border-radius:999px;background:#E8F0FE;color:var(--navy);font-weight:800;font-size:.95rem;border:1px solid #c9d8f5}
.ex-timer b{font-size:1.1rem;min-width:3.2em;text-align:center;font-variant-numeric:tabular-nums}
.ex-timer.warn{background:#FFF4D6;border-color:#F5C35B;color:#8a5a00}
.ex-timer.crit{background:#FDE7E7;border-color:#E89A9A;color:#B42318;animation:exPulse 1s ease-in-out infinite}
@keyframes exPulse{50%{transform:scale(1.04)}}
.ex-timeout{margin:.5rem 0 0;color:#B42318;font-weight:800}
.ex-cert-wait{padding:2.2rem 1rem;border:1px dashed #d5dce8;border-radius:.8rem;color:var(--muted);font-weight:700}
.ex-cert-img:not([data-ready]){display:none}
.ex-cert-more{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.ex-timer.crit{animation:none}}
