/* Compositor-only ambient light; no script, flashing, blur filters or pointer interception. */
@keyframes publication-aurora-drift{0%,100%{transform:translate3d(-3%,-2%,0) scale(1.02)}50%{transform:translate3d(3%,3%,0) scale(1.07)}}
@keyframes publication-sport-sweep{0%,100%{transform:translate3d(-5%,0,0);opacity:.52}50%{transform:translate3d(5%,2%,0);opacity:.85}}
@keyframes publication-amber-breathe{0%,100%{transform:translate3d(-2%,0,0);opacity:.45}50%{transform:translate3d(3%,2%,0);opacity:.8}}
@keyframes publication-spotlight-drift{0%,100%{transform:translate3d(-4%,-1%,0) rotate(-3deg)}50%{transform:translate3d(4%,2%,0) rotate(3deg)}}
@keyframes publication-grain-step{0%,100%{transform:translate3d(0,0,0)}33%{transform:translate3d(1px,-1px,0)}66%{transform:translate3d(-1px,1px,0)}}
html[data-appearance-mode=base] body:is([data-template=template2],[data-template=template4],[data-template=template5],[data-template=template6]) .publication-layout-parent:before{content:'';display:block;position:fixed;inset:-7% 0;max-width:var(--publication-page-max,1600px);margin-inline:auto;z-index:-1;pointer-events:none;user-select:none;contain:strict;animation:publication-aurora-drift 26s ease-in-out infinite;transform-origin:center}
html[data-appearance-mode=base] body[data-template=template2] .publication-layout-parent:before{background:radial-gradient(ellipse at 12% 25%,#ffa9d141,transparent 44%),radial-gradient(ellipse at 86% 60%,#d57cc233,transparent 48%),radial-gradient(ellipse at 45% 90%,#f8b9d42b,transparent 40%)}
html[data-appearance-mode=base] body[data-template=template4] .publication-layout-parent:before{background:linear-gradient(115deg,transparent 28%,#df4e6015 43%,#f689921f 48%,transparent 64%),radial-gradient(ellipse at 20% 70%,#a31c1c25,transparent 48%);animation-name:publication-sport-sweep;animation-duration:20s}
html[data-appearance-mode=base] body[data-template=template5] .publication-layout-parent:before{width:min(90vw,1440px);background:radial-gradient(ellipse at 14% 25%,#f4e6cf16,transparent 48%),radial-gradient(ellipse at 90% 80%,#c3946617,transparent 45%);animation-name:publication-amber-breathe;animation-duration:28s}
html[data-appearance-mode=base] body[data-template=template5] .publication-layout-parent:after{content:'';position:fixed;inset:0;max-width:1440px;width:90vw;margin-inline:auto;z-index:-1;pointer-events:none;background:repeating-radial-gradient(circle at 30% 50%,#f4e6cf24 0 .4px,transparent .8px 2px);background-size:5px 7px;opacity:.1;animation:publication-grain-step 2.4s steps(1,end) infinite}
html[data-appearance-mode=base] body[data-template=template6] .publication-layout-parent:before{background:conic-gradient(from 195deg at 22% -15%,transparent 0deg,#f4a6d21a 17deg,transparent 35deg,transparent 65deg,#dd91d016 83deg,transparent 110deg),radial-gradient(ellipse at 75% 80%,#dd91b81c,transparent 46%);animation-name:publication-spotlight-drift;animation-duration:30s}
/* Keep oversized glow layers inside the centered publication's horizontal bounds. */
html[data-appearance-mode=base] body:is([data-template=template2],[data-template=template4],[data-template=template5],[data-template=template6]) .publication-layout-parent{clip-path:inset(-100vmax 0)}
html[data-demo-motion=off] body .publication-layout-parent:before,html[data-demo-motion=off] body .publication-layout-parent:after{animation:none!important}
html[data-collection-view] .publication-layout-parent:before{animation:none!important}
body.p-preview-card .publication-layout-parent:before,body.p-preview-card .publication-layout-parent:after{animation:none!important}
@media(max-width:767px){html[data-appearance-mode=base] body[data-template=template5] .publication-layout-parent:before,html[data-appearance-mode=base] body[data-template=template5] .publication-layout-parent:after{width:100%;max-width:100%}}
@media(prefers-reduced-motion:reduce){body .publication-layout-parent:before,body .publication-layout-parent:after{animation:none!important}}
@media print{body .publication-layout-parent:before,body .publication-layout-parent:after{display:none!important}}

html[data-appearance-mode=base] body:is([data-template=template2],[data-template=template4],[data-template=template5],[data-template=template6]) .publication-layout-parent>main{background:transparent!important}

.publication-live-background{position:fixed;inset:0;display:block;width:100%;height:100dvh;max-width:var(--publication-page-max,1600px);margin-inline:auto;z-index:-1;pointer-events:none;user-select:none;opacity:.65;contain:strict}
html:not([data-appearance-mode=base]) .publication-live-background,html[data-demo-motion=off] .publication-live-background{display:none!important}
html[data-appearance-mode=base] body[data-template=template5] .publication-live-background{width:min(90vw,1440px)}
@media(max-width:767px){html[data-appearance-mode=base] body[data-template=template5] .publication-live-background{width:100%}}
@media(prefers-reduced-motion:reduce){.publication-live-background{display:none!important}}
@media print{.publication-live-background{display:none!important}}
