
/* ===== the map in front, and only its land fades (mapfade.py) ===== */

/* 1. THE MAP PAINTS IN FRONT OF THE TIER ABOVE.
   The sectors tier is z-index 2 with a solid ground and the map used to be
   z-index -1 inside a section with no z-index at all, so the tier covered
   the top 148px of the map. Both of those move, and nothing else does: the
   band's own words are z-index 2 inside #supply and stay above the map. */
html body #supply{position:relative;z-index:3;}
html body #supply .wm-par{z-index:0;}
html body #supply .wrap{position:relative;z-index:2;}

/* AND THE TIER ABOVE KEEPS ITS CONTENT ON TOP. Matt asked for the map in
   front of the tier's BACKGROUND, which is not the same as in front of its
   icons. On a 3552px window the map bleeds 304px up and the sector icons
   sit 117px inside that, so without this the faded land would be drawn
   across their labels. The tier's ground stays under the map; everything
   written on the tier stays over it. */
html body .wy.ind-tier > .wrap{position:relative;z-index:4;}

/* 2. AND ONLY THE LANDMASS FADES, ONLY ACROSS ITS OWN CUT.
   .wm-land is one path of twenty-nine. The routes, the dots, the UK
   marker and the labels are not in this selector and are never touched. */
html body svg.wm .wm-land{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.18) 7%,rgba(0,0,0,.62) 12%,#000 16.4%);
          mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.18) 7%,rgba(0,0,0,.62) 12%,#000 16.4%);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;}


/* ===== one eyebrow, and the counter level with it (railhead.py) ===== */
/* The row is align-items:flex-end, and flex-end aligns MARGIN boxes
   rather than visible edges. The heading carries 48px of --s5 underneath
   it on thirteen of the fifteen rails, so the counter was lining up with
   the bottom of that margin and reading 48px low. Giving both children
   the same bottom margin makes the margin boxes end together, which
   makes the words and the counter end together. */
html body #gallery .gl-top > .sec-head,
html body #gallery .gl-top > .gl-meter{margin-bottom:var(--s5);}
