.subject-site{--a:#0f766e;--b:#bd4b13;--c:#ac790c;--surface:#fff;--paper:#f3fbf7;--text:#103c30;--secondary:#546f66;--edge:#d0e6dc;--theme:var(--a);position:relative;background:var(--paper);color:var(--text);min-height:100vh;isolation:isolate}.subject-math{--a:#7c3aed;--b:#dc3b86;--c:#b87508;--paper:#fdf8ff;--text:#2a1b4d;--secondary:#706182;--edge:#e8dcf5}.subject-science{--a:#087fa0;--b:#13886a;--c:#b76a0c;--paper:#f2fbff;--text:#14384c;--secondary:#506e7e;--edge:#cfe4ec}.subject-dark{--surface:#122c28;--paper:#081e1a;--text:#eefaf6;--secondary:#b0ccbf;--edge:#25483e}.subject-math.subject-dark{--surface:#241a38;--paper:#140e23;--text:#f6efff;--secondary:#c1b1d6;--edge:#413055}.subject-science.subject-dark{--surface:#132f3e;--paper:#081e2a;--text:#edf9ff;--secondary:#afccd9;--edge:#2b4a5c}.subject-site p{color:var(--secondary)}.subject-site .eyebrow{color:var(--a)}.subject-site .preview-banner{position:relative;z-index:12}.subject-symbols{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.subject-symbols span{position:absolute;top:16%;font-size:2.8rem;color:var(--a);opacity:.11;font-weight:bold;animation:subject-rise 19s linear infinite}.subject-symbols .symbol-position-0{left:3%;animation-delay:-3s}.subject-symbols .symbol-position-1{left:10%;animation-delay:-12s}.subject-symbols .symbol-position-2{left:18%;animation-delay:-7s}.subject-symbols .symbol-position-3{left:26%;animation-delay:-18s}.subject-symbols .symbol-position-4{left:33%;animation-delay:-2s}.subject-symbols .symbol-position-5{left:41%;animation-delay:-14s}.subject-symbols .symbol-position-6{left:48%;animation-delay:-6s}.subject-symbols .symbol-position-7{left:56%;animation-delay:-16s}.subject-symbols .symbol-position-8{left:63%;animation-delay:-10s}.subject-symbols .symbol-position-9{left:70%;animation-delay:-4s}.subject-symbols .symbol-position-10{left:78%;animation-delay:-17s}.subject-symbols .symbol-position-11{left:87%;animation-delay:-8s}.subject-symbols .symbol-position-12{left:93%;animation-delay:-1s}.subject-symbols .symbol-position-13{left:16%;animation-delay:-5s}.subject-symbols .symbol-position-14{left:47%;animation-delay:-13s}.subject-symbols .symbol-position-15{left:81%;animation-delay:-9s}.subject-nav{position:sticky;top:0;z-index:10;display:flex;gap:7px;align-items:center;padding:12px max(22px,calc((100vw - 1150px)/2));background:var(--paper);border-bottom:1px solid var(--edge);overflow-x:auto}.subject-nav a{font-size:.9rem;padding:8px 15px;border-radius:24px;white-space:nowrap;color:var(--text);font-weight:bold}.subject-nav a:hover{background:linear-gradient(110deg,var(--a),var(--b));color:white;transform:translateY(-2px)}.subject-tools{display:flex;gap:7px;align-items:center;margin-right:auto;flex-shrink:0}.subject-tools .motion-toggle,.appearance-toggle{background:var(--surface);border:1px solid var(--edge);color:var(--text);border-radius:25px;padding:7px 12px;font-size:.8rem;white-space:nowrap}.subject-header{max-width:1150px;margin:auto;padding:18px 24px 0;display:flex;justify-content:space-between;align-items:center;gap:22px;position:relative;z-index:1}.subject-school{display:flex;align-items:center;gap:14px}.subject-school b{font-size:1rem;display:block}.subject-school small{font-size:.85rem;color:var(--secondary);display:block}.school-mark{width:60px;height:60px;display:grid;place-items:center;font-size:2rem;border:1px solid var(--edge);background:var(--surface);color:var(--a);border-radius:16px}.subject-site .moe-logo{border:1px solid var(--edge);width:130px;height:94px}.subject-site .moe-logo img{width:285px;height:285px}.subject-hero{position:relative;z-index:1;max-width:1050px;padding:15px 25px 65px;min-height:660px;margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.subject-basmala{font-size:1.1rem;margin:0 0 22px}.subject-tag{padding:6px 21px;border-radius:30px;background:linear-gradient(100deg,var(--a),var(--b));color:white;font-weight:bold;font-size:.95rem;animation:subject-pulse 3s ease-in-out infinite}.subject-title{font-size:clamp(2.2rem,6vw,4.4rem);font-weight:bold;margin:14px 0 2px;line-height:1.5;background:linear-gradient(100deg,var(--a),var(--b),var(--c),var(--a));background-size:300%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:subject-flow 8s linear infinite}.subject-name{font-size:clamp(1.5rem,4vw,2.3rem);color:var(--a);margin:2px 0 12px;max-width:100%;line-height:1.6}.subject-name span{display:block;animation:subject-name-in 1.4s steps(18,end) both;overflow-wrap:anywhere}.subject-phrase{color:var(--secondary);font-size:1.1rem;font-weight:bold;animation:subject-fade-in 1s .6s both}.subject-shapes{position:relative;width:235px;height:155px;margin:15px auto 8px}.subject-shape{position:absolute;font-size:3.4rem;line-height:1.3;color:var(--a);animation:subject-bounce 4s ease-in-out infinite;font-weight:bold;font-style:normal}.shape-0{right:12px;top:32px}.shape-1{left:15px;top:18px;background:var(--b);color:white;width:62px;height:62px;border-radius:16px;font-size:2.5rem;display:grid;place-items:center;animation:subject-turn 9s linear infinite}.shape-2{right:93px;top:8px;color:var(--text);font-size:3rem;animation-delay:-2s}.shape-3{right:87px;bottom:0;font-size:3.9rem;color:var(--c);animation-delay:-1s}.subject-science .subject-shape{font-size:2.1rem}.subject-science .shape-1{font-size:2.5rem}.subject-welcome{max-width:710px;font-size:1.05rem;line-height:1.9;margin:10px 0 14px}.subject-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 20px;border:0;border-radius:25px;background:var(--a);color:white;font-size:.9rem;font-weight:bold;line-height:1.7}.subject-button:hover{background:var(--b);transform:translateY(-3px);box-shadow:0 7px 18px #103b3520}.subject-rule{height:5px;width:110px;border-radius:20px;background:linear-gradient(90deg,var(--a),var(--b));margin-top:36px;animation:subject-line 4s ease-in-out infinite alternate}.subject-content{position:relative;z-index:1;max-width:1150px;margin:auto;padding:0 24px}.subject-section{padding:50px 0;scroll-margin-top:85px}.subject-heading{text-align:center;margin-bottom:32px}.subject-heading>span{font-size:.9rem;color:var(--secondary);display:block;margin-bottom:4px}.subject-heading h2{font-size:clamp(1.6rem,3vw,2.3rem);color:var(--text)}.subject-heading:after{content:'';display:block;width:80px;height:4px;border-radius:8px;background:linear-gradient(90deg,var(--a),var(--b));margin:12px auto 0;animation:subject-line 4s ease-in-out infinite alternate}.subject-vision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.subject-card,.subject-work-card{position:relative;background:var(--surface);border:1px solid var(--edge);border-radius:22px;padding:28px;text-align:center;box-shadow:0 6px 20px #0d392d05}.subject-card:hover,.subject-work-card:hover{box-shadow:0 16px 32px #1b4b4320;transform:translateY(-6px)}.subject-card-icon{display:block;font-size:2.6rem;color:var(--a);margin-bottom:10px;animation:subject-bounce 5s ease-in-out infinite}.subject-card h3{font-size:1.2rem;margin:10px 0}.subject-card p{font-size:1rem;line-height:1.9}.subject-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 24px}.subject-stat-grid article{padding:23px 15px;text-align:center;background:var(--surface);border:1px solid var(--edge);border-radius:20px}.subject-stat-grid b{display:block;font-size:2.5rem;line-height:1.4;color:var(--a)}.subject-stat-grid span{font-size:.95rem;color:var(--secondary)}.subject-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.work-icon{font-size:2.5rem;color:var(--a);display:block;margin-bottom:12px}.work-kind{display:block;font-size:.8rem;color:var(--secondary)}.subject-work-card h3{margin:10px 0;font-size:1.15rem}.subject-work-card p{font-size:.95rem}.work-actions{display:flex;align-items:center;gap:15px;justify-content:center;margin-top:22px;flex-wrap:wrap}.subject-criteria{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.criterion-card{padding:28px 22px}.criterion-card .subject-card-icon{margin-top:12px}.criterion-card h3{min-height:60px;font-size:1.1rem;line-height:1.7}.criterion-card p{font-size:.9rem}.criterion-number{position:absolute;left:16px;top:16px;width:32px;height:32px;display:grid;place-items:center;background:linear-gradient(120deg,var(--a),var(--b));border-radius:50%;color:white;font-size:.85rem;font-weight:bold}.criterion-card .subject-button{margin-top:18px}.subject-empty{padding:30px;background:var(--surface);border:1px dashed var(--edge);border-radius:20px;text-align:center;color:var(--secondary);font-size:1rem;grid-column:1/-1}.subject-closing{text-align:center;border-radius:24px;background:linear-gradient(115deg,var(--a),var(--b));padding:32px 28px;margin:35px 0 60px}.subject-closing>span{color:#ffffffb3;font-size:1.5rem}.subject-closing p{font-size:1.25rem;color:white;line-height:1.9}.subject-footer{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:30px 22px;border-top:1px solid var(--edge);color:var(--secondary);text-align:center}.subject-footer b{color:var(--text);font-size:1rem}.subject-footer span{font-size:.9rem}.subject-footer small{color:var(--secondary);font-size:.8rem}.subject-site .gallery-showcase{background:var(--surface);border-color:var(--edge)}.subject-site .gallery-stage{background:var(--paper)}.subject-site .gallery-heading h2{color:var(--text)}.subject-site .gallery-caption h3{color:var(--text)}.subject-site .gallery-caption p{color:var(--secondary)}.subject-site .back-top{background:var(--a)}.subject-site.motion-off .subject-name span,.subject-site.motion-off .subject-phrase{clip-path:none;opacity:1}.templates{grid-template-columns:repeat(3,minmax(0,1fr))}.template.arabic .template-art{background:linear-gradient(125deg,#0f766e,#bd4b13)}.template.math .template-art{background:linear-gradient(125deg,#7c3aed,#dc3b86)}.template.science .template-art{background:linear-gradient(125deg,#087fa0,#13886a)}select{width:100%;margin-top:7px;padding:11px 13px;border:1px solid #cbd7e0;border-radius:6px;color:var(--ink);background:white;font:inherit;font-size:.95rem;font-weight:normal}
@keyframes subject-rise{0%{transform:translateY(400px) rotate(-15deg)}100%{transform:translateY(-700px) rotate(40deg)}}@keyframes subject-bounce{50%{transform:translateY(-12px)}}@keyframes subject-turn{to{transform:rotate(360deg)}}@keyframes subject-flow{to{background-position:300%}}@keyframes subject-pulse{50%{transform:scale(1.035);box-shadow:0 0 0 8px #277f7010}}@keyframes subject-line{to{width:150px}}@keyframes subject-name-in{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}@keyframes subject-fade-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:1000px){.subject-nav{padding:10px 16px}.subject-nav a{font-size:.85rem;padding:7px 12px}.subject-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-criteria{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-hero{min-height:620px}.subject-tools{gap:5px}}
@media(max-width:600px){.subject-header{padding:14px 18px 0}.subject-school{gap:10px}.subject-school b{font-size:.85rem;max-width:190px}.school-mark{width:42px;height:42px;font-size:1.5rem;border-radius:12px}.subject-site .moe-logo{width:105px;height:76px}.subject-site .moe-logo img{width:230px;height:230px}.subject-nav{gap:4px;padding:10px 12px}.subject-nav a{font-size:.85rem;padding:7px 12px}.subject-nav .motion-toggle,.appearance-toggle{font-size:.8rem}.subject-hero{padding:15px 20px 45px;min-height:600px}.subject-basmala{font-size:.95rem;margin-bottom:20px}.subject-title{font-size:2.5rem;margin:16px 0 4px}.subject-name{font-size:1.55rem}.subject-phrase{font-size:1rem}.subject-welcome{font-size:1rem}.subject-content{padding:0 18px}.subject-section{padding:36px 0}.subject-vision-grid{grid-template-columns:1fr;gap:16px}.subject-stat-grid{grid-template-columns:repeat(2,1fr);gap:12px}.subject-stat-grid article{padding:18px 12px}.subject-stat-grid b{font-size:2rem}.subject-work-grid{grid-template-columns:1fr}.subject-criteria{gap:13px}.criterion-card{padding:25px 13px}.criterion-card h3{font-size:1rem;min-height:80px}.criterion-card .subject-button{font-size:.85rem;padding:8px 14px}.subject-closing{padding:28px 20px}.subject-closing p{font-size:1.1rem}.templates{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.subject-criteria{grid-template-columns:1fr}.criterion-card h3{min-height:0}.subject-title{font-size:2.2rem}.templates{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.subject-site *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.subject-name span{clip-path:none!important}.subject-phrase{opacity:1!important;transform:none!important}.subject-site .reveal{opacity:1!important;transform:none!important}}

/* Theme controls appearance; specialty controls content. Legacy theme keys keep existing profiles compatible. */
[hidden]{display:none!important}
.subject-template-math{--a:#7c3aed;--b:#dc3b86;--c:#b87508;--paper:#fdf8ff;--text:#2a1b4d;--secondary:#706182;--edge:#e8dcf5}
.subject-template-navy{--a:#173454;--b:#a17a31;--c:#bd913c;--paper:#f4f7fb;--text:#172e46;--secondary:#546579;--edge:#d5deea}.subject-template-navy .subject-card,.subject-template-navy .subject-work-card{border-radius:8px;text-align:right;border-top:3px solid var(--b)}.subject-template-navy .subject-title{font-size:clamp(2rem,5vw,3.8rem)}
.subject-template-math .subject-card{border-radius:30px 8px 30px 8px}.subject-site.subject-dark{--surface:#18282f;--paper:#0d191f;--text:#edf5fa;--secondary:#b4cad4;--edge:#34474f}.subject-dark .subject-name,.subject-dark .subject-card-icon,.subject-dark .subject-stat-grid b{color:var(--text)}
.specialty-computer .subject-shape,.specialty-science .subject-shape{font-size:2.1rem}.specialty-computer .shape-1,.specialty-science .shape-1{font-size:2.4rem}.specialty-social .subject-shape,.specialty-religion .subject-shape,.specialty-physical .subject-shape,.specialty-general .subject-shape{font-size:1.7rem}.specialty-help{margin:12px 0 20px;color:var(--muted);font-size:.9rem}

/* The name presentation is part of the selected theme, independently of subject. */
.subject-name{padding:10px 22px;position:relative}
.subject-template-navy .subject-name{border-block:1px solid var(--b);border-radius:0;font-family:Georgia,'Traditional Arabic',serif;letter-spacing:0;min-width:180px}
.subject-template-navy .subject-name span{animation:name-formal 1.3s ease-out both}
.subject-template-arabic .subject-name{border-right:4px solid var(--b);background:var(--surface);border-radius:12px 0 0 12px}
.subject-template-arabic .subject-name span{animation:subject-name-in 1.6s steps(24,end) both}
.subject-template-math .subject-name{background:linear-gradient(110deg,var(--a),var(--b));color:white!important;border-radius:28px 8px 28px 8px;box-shadow:0 7px 0 var(--edge)}
.subject-template-math .subject-name span{animation:name-playful 1.3s cubic-bezier(.2,.8,.3,1.2) both}
@keyframes name-formal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes name-bloom{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@keyframes name-creative{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:none}}
@keyframes name-shimmer{to{background-position:250%}}
@keyframes name-playful{0%{opacity:0;transform:translateY(-22px) rotate(-4deg)}65%{opacity:1;transform:translateY(5px) rotate(2deg)}100%{opacity:1;transform:none}}
@keyframes name-clear{from{opacity:0;filter:blur(9px)}to{opacity:1;filter:blur(0)}}
.subject-site.motion-off .subject-name span{animation:none!important;opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important}
@media(prefers-reduced-motion:reduce){.subject-name span{animation:none!important;opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important}}
@media(max-width:600px){.subject-name{padding:8px 18px;max-width:100%}}

/* Fixed palettes for materials without an attached model. */
.subject-template-computer{--a:#176f88;--b:#584bb1;--c:#8b690c;--paper:#f3f9ff;--text:#17394c;--secondary:#546e80;--edge:#d1e2f2}.subject-template-computer .subject-card{border-radius:12px;border-top:3px solid var(--a)}
.subject-template-social{--a:#8a6335;--b:#2b7d78;--c:#9a750a;--paper:#fffaf0;--text:#4a3826;--secondary:#796a55;--edge:#e9dcc1}
.subject-template-physical{--a:#187747;--b:#285aab;--c:#a77706;--paper:#f4fbf5;--text:#203b2a;--secondary:#557561;--edge:#cfe6d6}
