/* A quiet, full-viewport medical current in the approved purple and blue. */
body{isolation:isolate;background:#FCFCFE}
.medical-ambient{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;contain:strict;background:linear-gradient(150deg,#FBF9FE 0%,#FAFBFE 48%,#F2F4FC 100%)}
.ambient-glow{position:absolute;border-radius:50%;width:66vw;height:66vw;max-width:1040px;max-height:1040px;min-width:420px;min-height:420px;pointer-events:none}
.ambient-glow-purple{top:-46%;right:-20%;background:radial-gradient(ellipse,#6A1B9A15,transparent 68%);animation:ambient-drift-purple 32s ease-in-out infinite alternate}
.ambient-glow-blue{bottom:-50%;left:-26%;background:radial-gradient(ellipse,#1E3A8A14,transparent 68%);animation:ambient-drift-blue 38s ease-in-out infinite alternate}
.ambient-medical-field{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ambient-ribbon-one{animation:ambient-current-one 28s ease-in-out infinite alternate;transform-origin:70% 35%}
.ambient-ribbon-two{animation:ambient-current-two 34s ease-in-out infinite alternate;transform-origin:30% 60%}
.ambient-dna{animation:ambient-dna-drift 26s ease-in-out infinite alternate;transform-origin:140px 470px}
.ambient-molecule{animation:ambient-molecule-drift 30s ease-in-out infinite alternate;transform-origin:1450px 220px}
.ambient-pulse-flow{stroke-dasharray:95 880;animation:ambient-pulse-flow 18s linear infinite}
.medical-ambient:not([data-ambient-state="playing"]) *{animation-play-state:paused!important}
.ambient-motion-toggle{position:fixed;z-index:14;bottom:20px;inset-inline-start:20px;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 11px;border:1px solid #DDD5E9;border-radius:24px;background:#FFFFFFE8;color:#675178;box-shadow:0 3px 14px #1E3A8A06;backdrop-filter:blur(8px);font:500 10px/1.6 Cairo,Montserrat,sans-serif;cursor:pointer;transition:background .2s,border-color .2s}
.ambient-motion-toggle[hidden]{display:none}.ambient-motion-toggle:hover{background:#F2ECF9;border-color:#BDA6D1}
.ambient-motion-toggle .icon{width:13px;height:13px;stroke-width:1.6}
.ambient-motion-toggle:disabled{cursor:default;opacity:.75}
.ambient-motion-toggle:focus-visible{outline:3px solid #9771B7;outline-offset:3px}
/* Surfaces remain calm and readable, while the current continues behind them. */
.home-compact.premium-edition .premium-hero{background:transparent}
.home-compact.premium-edition .hero-grid-texture{display:none}
.home-compact.premium-edition .course-collection{background:#FFFFFF42}
.home-compact.premium-edition .home-service-section{background:#F4F3F9BA;backdrop-filter:none}
.learning-ribbon{background:#FFFFFFA8}
.catalog-page .page-top,.page-top{background:linear-gradient(140deg,#FBF9FEBF,#F4F5FBC9)}
.login-stage{background:radial-gradient(ellipse at 15% 0%,#EBE1F58C,transparent 55%),#F6F5FA70}
.premium-footer{background:#F7F6FAD9}
@keyframes ambient-drift-purple{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-8vw,12vh,0) scale(1.13)}}
@keyframes ambient-drift-blue{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(9vw,-10vh,0) scale(1.1)}}
@keyframes ambient-current-one{0%{transform:translate3d(-35px,-25px,0) rotate(-3deg) scale(1)}100%{transform:translate3d(55px,45px,0) rotate(3deg) scale(1.06)}}
@keyframes ambient-current-two{0%{transform:translate3d(40px,35px,0) rotate(2deg)}100%{transform:translate3d(-45px,-35px,0) rotate(-3deg)}}
@keyframes ambient-dna-drift{from{transform:translate3d(0,0,0) rotate(-9deg)}to{transform:translate3d(10px,-25px,0) rotate(-3deg)}}
@keyframes ambient-molecule-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-12px,18px,0)}}
@keyframes ambient-pulse-flow{to{stroke-dashoffset:-975}}
@media(max-width:640px){.ambient-glow{min-width:360px;min-height:360px}.ambient-glow-purple{top:-12%;right:-74%;width:130vw;height:130vw}.ambient-glow-blue{bottom:-20%;left:-75%;width:130vw;height:130vw}.ambient-dna{display:none}.ambient-molecule{opacity:.6}.ambient-pulse-flow{animation:none}.ambient-motion-toggle{bottom:16px;inset-inline-start:16px;min-height:34px;padding:6px 9px;font-size:9px}.ambient-motion-toggle .icon{width:12px;height:12px}body:has(#compare-tray .compare-tray) .ambient-motion-toggle{bottom:118px}}
@media(prefers-reduced-motion:reduce){.medical-ambient *{animation:none!important}.ambient-motion-toggle{transition:none}}
@media(forced-colors:active){.medical-ambient{display:none}}
@media print{.medical-ambient,.ambient-motion-toggle{display:none!important}body{background:#FFFFFF}}
/* Keep the longer English caption clear of the scene's interactive chapters. */
html[dir=ltr] .home-compact.premium-edition .float-card.one{top:52%}
