/* 17 Nov: the four ad faces as a small diagonal pattern, used as a highlight (see ad-pattern.js). Prefix ad2.
   edges: the hero, fading out at the top bar and before the next section, the heading kept clear.
   aura: a soft halo around what a section shows. foot: the footer, fading in from its top edge. */
#hero:not(.a52-hero),#steps:not(.q10-live) .q10-fr,#channels,#doors,.close2,.m49-dark,.ftr{position:relative}
#hero:not(.a52-hero) > :not(.ad2-pat),#steps .q10-fr > :not(.ad2-pat),#channels > :not(.ad2-pat),#doors > :not(.ad2-pat),
.close2 > :not(.ad2-pat),.m49-dark > :not(.ad2-pat),.ftr > :not(.ad2-pat){position:relative;z-index:1}
.ad2-pat{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;border-radius:inherit}
.ad2-st{position:absolute;display:block;opacity:0;transform:translate(-50%,-50%) rotate(-14deg)}
.ad2-or .ad2-st{--o:.24}
.ad2-wh .ad2-st{--o:.3}
.ftr > .ad2-or .ad2-st,.m49-dark > .ad2-or .ad2-st{--o:.17}
#steps .ad2-or .ad2-st{--o:.22}
.ad2-st.on{animation:ad2-press .42s cubic-bezier(.3,1.5,.5,1) both}
.ad2-st.lift{animation:ad2-lift .24s ease-in both}
.ad2-pat.rest .ad2-st{opacity:var(--o)}
@keyframes ad2-press{
  0%{opacity:0;transform:translate(-50%,-50%) rotate(-14deg) scale(1.9)}
  50%{opacity:var(--o);transform:translate(-50%,-50%) rotate(-14deg) scale(.88)}
  100%{opacity:var(--o);transform:translate(-50%,-50%) rotate(-14deg) scale(1)}}
@keyframes ad2-lift{from{opacity:var(--o)}to{opacity:0;transform:translate(-50%,-50%) rotate(-14deg) scale(1.3)}}
.ad2-edges{
  -webkit-mask-image:linear-gradient(transparent 0,#000 150px,#000 calc(100% - 220px),transparent 100%),radial-gradient(ellipse 600px 330px at 50% 300px,transparent 72%,#000 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(transparent 0,#000 150px,#000 calc(100% - 220px),transparent 100%),radial-gradient(ellipse 600px 330px at 50% 300px,transparent 72%,#000 100%);
  mask-composite:intersect}
.ad2-aura{-webkit-mask-image:radial-gradient(ellipse var(--aw) var(--ah) at var(--ax) var(--ay),#000 var(--ac,60%),transparent 100%);
  mask-image:radial-gradient(ellipse var(--aw) var(--ah) at var(--ax) var(--ay),#000 var(--ac,60%),transparent 100%)}
.ad2-foot{-webkit-mask-image:linear-gradient(transparent 0,#000 200px);mask-image:linear-gradient(transparent 0,#000 200px)}
@media (max-width:720px){
  .ad2-edges{-webkit-mask-image:linear-gradient(transparent 0,#000 40px,transparent 140px);mask-image:linear-gradient(transparent 0,#000 40px,transparent 140px)}}
@media (prefers-reduced-motion:reduce){.ad2-st{animation:none!important;opacity:var(--o)}}

/* 18 Nov: the band just above the footer always carries the pattern, in an ink its own colour can show:
   white on strong orange, navy on pale blue or lavender, orange on pale grey, yellow or peach. */
.ad2-host{position:relative}
.ad2-host > :not(.ad2-pat){position:relative;z-index:1}
.ad2-dk .ad2-st{--o:.22}
.ad2-band{-webkit-mask-image:linear-gradient(transparent 0,#000 110px,#000 calc(100% - 110px),transparent 100%);mask-image:linear-gradient(transparent 0,#000 110px,#000 calc(100% - 110px),transparent 100%)}

/* 19 Nov: halos behind what a section shows (ad-pattern.js HALOS). The layer sits under the section's content inside the
   section's own stacking layer, so no child is moved or lifted. On the home's night section the ink is the dark one. */
.ad2-iso{isolation:isolate}
.ad2-iso > .ad2-pat{z-index:-1}
.ad2-iso > .ad2-or .ad2-st{--o:.22}
.q9-live .ad2-or .ad2-st{--o:.17}
/* and it never ends in a hard line where the section meets the next one */
.ad2-iso > .ad2-aura{
  -webkit-mask-image:radial-gradient(ellipse var(--aw) var(--ah) at var(--ax) var(--ay),#000 var(--ac,60%),transparent 100%),linear-gradient(transparent 0,#000 80px,#000 calc(100% - 80px),transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:radial-gradient(ellipse var(--aw) var(--ah) at var(--ax) var(--ay),#000 var(--ac,60%),transparent 100%),linear-gradient(transparent 0,#000 80px,#000 calc(100% - 80px),transparent 100%);
  mask-composite:intersect}
