/* Themes transfer colors, surface arrangement and transitions across subjects. */
.subject-template-notebook{--a:#326cbb;--b:#c84658;--c:#ac7915;--text:#33415c;--secondary:#65728c;--edge:#dbe9f7;--paper:#fffdf6;background:var(--paper) repeating-linear-gradient(transparent 0 31px,var(--edge) 31px 32px)}
.subject-template-notebook .subject-card,.subject-template-notebook .subject-work-card{border:2px solid var(--edge);border-radius:6px 22px 6px 22px;box-shadow:4px 5px 0 #6ea8fe20}.subject-template-notebook .subject-work-card:nth-child(even){transform:rotate(1deg)}.subject-template-notebook .reveal{transition:opacity .7s,transform .7s}.subject-template-notebook .reveal:not(.revealed){transform:translateY(24px) rotate(-1deg)}
.subject-template-laboratory{--a:#087f76;--b:#4866c3;--c:#aa730f;--paper:#f3fbff;--text:#27406b;--secondary:#587395;--edge:#dcecf7}.subject-template-laboratory .subject-card{border:3px solid var(--edge);border-radius:12px 12px 40px 40px}.subject-template-laboratory .subject-work-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 0 20px}.subject-template-laboratory .subject-work-card{flex:0 0 min(80%,300px);scroll-snap-align:center}.subject-template-laboratory .reveal{transition:opacity .8s,transform .8s}.subject-template-laboratory .reveal:not(.revealed){transform:translateY(34px)}
.subject-template-serenity{--a:#286ba8;--b:#aa7415;--c:#258574;--paper:#f8fbff;--text:#2b3a67;--secondary:#617197;--edge:#e3edf9}.subject-template-serenity .subject-card{border-radius:20px;box-shadow:0 8px 20px #4a8fd610}.subject-template-serenity .reveal{transition:opacity .8s,transform .8s}.subject-template-serenity .reveal:not(.revealed){transform:translateY(40px) scale(.96)}
.subject-template-atelier{--a:#bd1740;--b:#2563eb;--c:#a77b05;--paper:#fff9f1;--text:#2b1a14;--secondary:#7a665c;--edge:#f1dfcf}.subject-template-atelier .subject-card{border-radius:20px;border:2px solid var(--edge);box-shadow:5px 5px 0 #eab30820}.subject-template-atelier .subject-work-card:hover{transform:translateY(-8px) rotate(-1deg)}.subject-template-atelier .reveal{transition:opacity .8s,transform .8s}.subject-template-atelier .reveal:not(.revealed){transform:translateY(25px) rotate(-2deg)}
.template.notebook .template-art{background:repeating-linear-gradient(#fffdf6 0 12px,#dbe9f7 12px 13px);border:2px solid #6ea8fe}.template.laboratory .template-art{background:linear-gradient(120deg,#2fb5a6,#6c8cf0)}.template.serenity .template-art{background:linear-gradient(120deg,#4a8fd6,#e0a030)}.template.atelier .template-art{background:linear-gradient(120deg,#e11d48,#2563eb,#eab308)}
/* Presentation belongs to the theme; glyphs and wording belong to the subject. */
.subject-site .specialty-name{border:0;background:none;box-shadow:none;border-radius:0;font-family:inherit;padding:8px 12px;color:var(--a)!important;max-width:100%}
.subject-site .specialty-name span{background:none;color:inherit;clip-path:none;filter:none;transform:none;animation:none;font:inherit}
.subject-site .name-conversation{color:var(--b)!important;border-bottom:3px solid var(--c);border-radius:0 0 15px 15px}.subject-site .name-conversation span{animation:conversation-pop .7s ease-out both}
.specialty-chat{display:flex;flex-direction:column;gap:10px;width:min(100%,430px);margin:20px auto;text-align:start}.chat-line{padding:12px 18px;background:var(--surface);border:2px solid var(--edge);border-radius:18px 18px 4px 18px;font-weight:bold;animation:conversation-pop .7s backwards}.chat-line:nth-child(2){animation-delay:.5s}.chat-line:nth-child(3){animation-delay:1s;background:var(--a);color:white;border-color:var(--a);direction:ltr;text-align:left}
.subject-site .name-elements{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.subject-site .name-elements .name-element{position:relative;padding:28px 15px 15px;min-width:86px;max-width:100%;border:3px solid var(--a);border-radius:14px;background:var(--surface);animation:element-flip 1s backwards;overflow-wrap:anywhere}.name-element:nth-child(2){animation-delay:.35s!important;border-color:var(--b)!important}.name-element:nth-child(3){animation-delay:.7s!important;border-color:var(--c)!important}.name-element small{position:absolute;right:8px;top:3px;font-size:.75rem;color:var(--secondary)}.name-element b{font-size:1.15rem}
.specialty-atom{position:relative;width:220px;height:180px;margin:18px auto;display:grid;place-items:center}.specialty-atom b{font-size:2.7rem;color:var(--c)}.atom-orbit{position:absolute;width:210px;height:75px;border:2px solid var(--a);border-radius:50%;animation:atom-spin 10s linear infinite}.orbit-two{border-color:var(--b);animation-delay:-3.3s}.orbit-three{border-color:var(--c);animation-delay:-6.6s}.atom-orbit:after{content:'';position:absolute;top:25px;left:-5px;width:12px;height:12px;border-radius:50%;background:var(--a)}
.subject-site .name-decode span{animation:none}.subject-site .name-decode.name-complete{color:var(--b)!important;text-shadow:0 0 18px color-mix(in srgb,var(--b) 35%,transparent)}
.subject-site .name-brush{position:relative;color:var(--a)!important}.subject-site .name-brush span{background:linear-gradient(100deg,var(--a),var(--b),var(--c));background-clip:text;-webkit-background-clip:text;color:transparent;animation:brush-name 2s ease-out both}.name-brush i{position:absolute;top:25%;font-size:1.6rem;font-style:normal;animation:brush-tip 2s linear both;pointer-events:none}
.specialty-easel{width:min(100%,560px);margin:20px auto}.easel-frame{border:8px solid #b9824a;border-radius:10px;background:#fffdf8;box-shadow:0 10px 24px #0002;line-height:0}.easel-frame canvas{width:100%;height:auto;touch-action:none;cursor:crosshair}.art-palette{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:10px;padding:8px;background:var(--surface);border:1px solid var(--edge);border-radius:24px}.art-palette button{border:1px solid var(--edge);border-radius:50%;min-width:30px;min-height:30px;background:var(--surface);font-size:1rem}.art-palette button[data-art]{border-radius:15px;font-size:.8rem;padding:4px 9px;color:var(--text)}.art-palette [aria-pressed=true]{outline:2px solid var(--text);outline-offset:1px}.paint-red{color:#e11d48}.paint-orange{color:#ea580c}.paint-gold{color:#ca8a04}.paint-green{color:#16a34a}.paint-blue{color:#2563eb}.paint-purple{color:#9333ea}.specialty-easel>small{display:block;margin-top:8px;color:var(--secondary);font-size:.75rem}
@keyframes conversation-pop{from{opacity:0;transform:translateY(15px) scale(.9)}to{opacity:1;transform:none}}
@keyframes element-flip{from{opacity:0;transform:rotateY(90deg) scale(.6)}to{opacity:1;transform:none}}
@keyframes atom-spin{to{transform:rotate(360deg)}}
@keyframes brush-name{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}
@keyframes brush-tip{0%{left:100%;opacity:1}90%{opacity:1}100%{left:0;opacity:0}}
.subject-site.motion-off .specialty-name span,.subject-site.motion-off .specialty-name i{animation:none!important;clip-path:none!important}.subject-site.motion-off .name-brush i{display:none}
@media(prefers-reduced-motion:reduce){.specialty-name span{animation:none!important;clip-path:none!important}.name-brush i{display:none}.subject-site .reveal:not(.revealed){transform:none!important;opacity:1!important}}
.subject-site.subject-dark{background:var(--paper)}
.subject-site.motion-off .reveal:not(.revealed){transform:none!important;opacity:1!important}

.subject-template-notebook .subject-criteria{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.vocabulary-card{background:var(--surface);border:2px solid var(--edge);border-radius:16px;padding:16px;text-align:center}.vocabulary-card summary{cursor:pointer;font-weight:bold;list-style:none;min-height:100px;display:flex;flex-direction:column;justify-content:center;gap:7px}.vocabulary-card summary:after{content:"اضغط لفتح البطاقة";color:var(--secondary);font-size:.75rem;font-weight:normal}.vocabulary-card[open]{background:color-mix(in srgb,var(--c) 10%,var(--surface))}.vocabulary-card[open]>div{animation:conversation-pop .5s ease-out}.vocabulary-card summary small{color:var(--a);font-size:1rem}.vocabulary-card p{margin:12px 0}.subject-template-laboratory .criterion-card{border-radius:14px;aspect-ratio:auto;min-height:220px}.subject-template-laboratory .subject-stat-grid article{border-radius:35px;border:3px double var(--a)}

.subject-template-notebook{font-family:Arial,Tahoma,sans-serif}.subject-template-notebook .chat-line{font-family:inherit}.subject-template-laboratory{font-family:Tahoma,Arial,sans-serif}.subject-template-serenity{font-family:Tahoma,Arial,sans-serif}.subject-template-atelier{font-family:Tahoma,Arial,sans-serif}
