/* The lens on the world map (map-lens.js): a glass the reader drags over the map; under it the other
   colouring shows (politics under danger and the reverse). Two layers: the glass sits under the place
   labels, the rim above them. The one glass object of the site, see DESIGN.md. */
#mlens-glass,#mlens{position:absolute;top:0;left:0;width:var(--ml-d,190px);height:var(--ml-d,190px);translate:var(--ml-x,0px) var(--ml-y,0px);pointer-events:none}
#mlens-glass[hidden],#mlens[hidden]{display:none}
.ml-clip{position:absolute;inset:4.75%;border-radius:50%;overflow:hidden;background:#2A2318;
  box-shadow:inset 0 0 0 1px rgba(11,16,22,.5)}
.ml-world{position:absolute;top:0;left:0;width:2000px;height:1125px;transform-origin:0 0;will-change:transform}
.ml-world img{display:block;width:2000px;height:1125px;-webkit-user-drag:none;user-select:none}
.ml-world svg{position:absolute;top:0;left:0;width:2000px;height:1125px}
.ml-world *{pointer-events:none!important}
/* the glass itself: a darker edge and one highlight, no blur and no glow */
.ml-clip::after{content:"";position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.2),rgba(255,255,255,0) 34%),radial-gradient(circle,rgba(11,16,22,0) 62%,rgba(11,16,22,.32) 100%)}
.ml-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 10px 16px rgba(0,0,0,.5))}
.ml-ring circle,.ml-ring path{fill:none}
.ml-r1{stroke:#141C27;stroke-width:9}
.ml-r2{stroke:rgba(228,234,240,.4);stroke-width:1}
.ml-r3{stroke:rgba(228,234,240,.22);stroke-width:1}
.ml-arc{stroke:rgba(255,255,255,.5);stroke-width:2;stroke-linecap:round}
/* the rim takes the drag; the inside of the glass belongs to the map */
.ml-hit{stroke:transparent;stroke-width:26;pointer-events:stroke;cursor:grab}
#mlens.drag .ml-hit,#mlens.drag .ml-knob{cursor:grabbing}
.ml-tag{position:absolute;left:50%;top:100%;translate:-50% 2px;padding:3px 9px;border:1px solid var(--rule-2);border-radius:3px;background:rgba(17,25,37,.94);
  font-family:var(--mono);font-size:14px;letter-spacing:.05em;line-height:1.3;color:var(--bone);white-space:nowrap}
.ml-knob{position:absolute;right:6%;bottom:6%;width:30px;height:30px;padding:0;border-radius:50%;border:1px solid rgba(228,234,240,.4);background:#141C27;color:var(--light);
  display:grid;place-items:center;cursor:grab;pointer-events:auto;touch-action:none;transition:border-color .25s var(--ease),color .25s var(--ease)}
.ml-knob::before{content:"";position:absolute;inset:-7px;border-radius:50%}
.ml-knob:hover{border-color:var(--light);color:var(--light-hi)}
.ml-knob:focus-visible{outline:2px solid var(--light);outline-offset:2px}
.ml-knob svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ml-hit{touch-action:none}
@media(max-width:720px){#mlens-glass,#mlens{--ml-d:148px}}
@media (prefers-reduced-motion:no-preference){
  #mlens.in,#mlens-glass.in{animation:mlIn .45s var(--rise) both}
}
@keyframes mlIn{from{opacity:0;scale:.8}to{opacity:1;scale:1}}
@media print{#mlens-glass,#mlens,#lenstog{display:none}}
