/* Default's quiet black margins receive two broad, deep-brown light pools.
   The original 18 varied edge motes remain authoritative. No new particle field,
   large blur/filter, animated gradient, backdrop effect, or paint/layout loop. */
@layer ar-color-preferences {
 /* The legacy viewport dust field used z-index:4, putting these broad lights
    over the sidebar, cards and reading text as they scrolled underneath it.
    An isolated body keeps the negative ambient plane above the page backdrop
    but below content surfaces. Isolation does not add a fixed containing block
    or change scrolling. Grim shares this dust plane; Cyber/Simple do not. */
 html:not([data-ar-theme="simple"]) body:not(.ar-simple):not(.ar-cyber) {
  isolation:isolate!important;
 }
 html:not([data-ar-theme="simple"]) body:not(.ar-simple):not(.ar-cyber) > #ar-explorer-ambient {
  z-index:-1!important;pointer-events:none!important;isolation:isolate;
 }
 /* The separate masthead motes also belong behind links and their surfaces.
    Local disclosure dust already has its own isolated negative plane. */
 html:not([data-ar-theme="simple"]) body:not(.ar-simple):not(.ar-cyber) .site-header {
  isolation:isolate!important;
 }
 html:not([data-ar-theme="simple"]) body:not(.ar-simple):not(.ar-cyber) .site-header > .ar-sprite-field {
  z-index:-1!important;pointer-events:none!important;
 }
 html body #ar-explorer-ambient::before,
 html body #ar-explorer-ambient::after {content:none;display:none;}
 html body[data-ar-default-ambient-r16="true"]:not(.ar-simple):not(.ar-cyber) #ar-explorer-ambient[data-ar-dust-base-r15="natural"][data-ar-dust-running-r15="true"]::before,
 html body[data-ar-default-ambient-r16="true"]:not(.ar-simple):not(.ar-cyber) #ar-explorer-ambient[data-ar-dust-base-r15="natural"][data-ar-dust-running-r15="true"]::after {
  content:"";display:block;position:absolute;pointer-events:none;user-select:none;
  width:min(68vw,1100px);height:min(86vh,940px);border:0;border-radius:0;
  background:radial-gradient(ellipse at 50% 50%,rgba(var(--ar-default-ambient-rgb,112,64,30),.22),rgba(var(--ar-default-ambient-rgb,112,64,30),.065) 32%,rgba(var(--ar-default-ambient-rgb,112,64,30),.012) 56%,transparent 74%);
  /* Paint on the background plane, never blend into foreground card pixels. */
  mix-blend-mode:normal;opacity:.48;transform-origin:center;will-change:auto;
  animation:ar-default-light-left-r16 79s ease-in-out -29s infinite alternate;
 }
 html body[data-ar-default-ambient-r16="true"] #ar-explorer-ambient[data-ar-dust-base-r15="natural"][data-ar-dust-running-r15="true"]::before {left:-14vw;top:2vh;}
 html body[data-ar-default-ambient-r16="true"] #ar-explorer-ambient[data-ar-dust-base-r15="natural"][data-ar-dust-running-r15="true"]::after {
  right:-12vw;bottom:-13vh;width:min(64vw,1040px);height:min(94vh,980px);
  background:radial-gradient(ellipse at 50% 50%,rgba(var(--ar-default-ambient-rgb,112,64,30),.17),rgba(var(--ar-default-ambient-rgb,112,64,30),.055) 35%,rgba(var(--ar-default-ambient-rgb,112,64,30),.01) 58%,transparent 76%);
  animation-name:ar-default-light-right-r16;animation-duration:103s;animation-delay:-61s;
 }
 /* CSS gates act immediately; the existing dust controller also hides its field. */
 html[data-ar-theme="simple"] body #ar-explorer-ambient::before,
 html[data-ar-theme="simple"] body #ar-explorer-ambient::after,
 html[data-reading-sprites="off"] body #ar-explorer-ambient::before,
 html[data-reading-sprites="off"] body #ar-explorer-ambient::after,
 html body:is(.ar-simple,.ar-cyber,.focus-mode,.popup-open,[data-reading-sprites="off"],[data-reading-contrast="high"],[data-ar-page-hidden]) #ar-explorer-ambient::before,
 html body:is(.ar-simple,.ar-cyber,.focus-mode,.popup-open,[data-reading-sprites="off"],[data-reading-contrast="high"],[data-ar-page-hidden]) #ar-explorer-ambient::after {content:none!important;display:none!important;animation:none!important;}
}
@keyframes ar-default-light-left-r16 {
 from {transform:translate3d(-12px,9px,0) scale(.97);opacity:.40}
 to {transform:translate3d(21px,-15px,0) scale(1.04);opacity:.57}
}
@keyframes ar-default-light-right-r16 {
 from {transform:translate3d(14px,-10px,0) scale(1.02);opacity:.39}
 to {transform:translate3d(-19px,16px,0) scale(.96);opacity:.53}
}
@media(max-width:700px) {
 @layer ar-color-preferences {
  html body[data-ar-default-ambient-r16="true"] #ar-explorer-ambient::before,
  html body[data-ar-default-ambient-r16="true"] #ar-explorer-ambient::after {display:none!important;animation:none!important;}
 }
}
@media(prefers-reduced-motion:reduce),(prefers-contrast:more),(forced-colors:active),print {
 @layer ar-color-preferences {
  html body #ar-explorer-ambient::before,html body #ar-explorer-ambient::after {display:none!important;animation:none!important;}
 }
}
