/* Page headers: the first band of an inner page, drawn instead of left as a flat rectangle.

   Authored directly here (it is not generated from website-redesign/assets/v3.css). Everything is CSS
   and one inline SVG, so no image request is added.

   Pale header (first band, .band-t.paper-2): a soft green and brass wash over a faint ruled grid, and a dotted
   world map set in two wings, the Americas to the left and Asia and Oceania to the right, with the middle
   left clear for the headline. Arcs run between jurisdictions in each wing and carry a travelling
   highlight, the same idea as the home hero's laws-to-use-case arcs, quieter so the words stay the subject.

   The dotted map is the existing maps/world.svg used as a mask intersected with a dot grid, so it costs no
   extra file. The art is drawn in the top 740px only, because some first bands carry page content below
   the headline. Reduced motion: the travelling highlight and the pulse hold still. */

.lg-redesign-page > div > section.band-t.paper-2:first-child {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #eef2f6;
  box-shadow: inset 0 -1px 0 rgba(8, 155, 56, .16);
}
.lg-redesign-page > div > section.band-t.paper-2:first-child > .rail { position: relative; z-index: 1; }
/* A soft halo in the paper colour keeps any dot or arc that passes behind a line of text from touching the letters. */
.lg-redesign-page > div > section.band-t.paper-2:first-child > .rail > :is(h1, p, .lede, .small) {
  text-shadow: 0 0 9px rgba(238, 242, 246, .96), 0 0 3px rgba(238, 242, 246, .9);
}

/* Layer 1: the wash, the ruled grid and the arcs. */
.lg-redesign-page > div > section.band-t.paper-2:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23089b38' stop-opacity='.15'/%3E%3Cstop offset='.55' stop-color='%23089b38' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%23c4a35a' stop-opacity='.9'/%3E%3C/linearGradient%3E%3Cstyle%3E.a{fill:none;stroke:url(%23g);stroke-width:1.6}.r{fill:none;stroke:%23055e22;stroke-width:2.4;stroke-linecap:round;stroke-dasharray:16 400;stroke-dashoffset:16;animation:run 6.5s linear infinite}.r2{animation-delay:-2.2s}.r3{animation-delay:-4.4s}.p{fill:none;stroke:%23c4a35a;stroke-width:1.5;transform-box:fill-box;transform-origin:center;animation:pulse 4s ease-out infinite}@keyframes run{to{stroke-dashoffset:-416}}@keyframes pulse{0%25{opacity:.9;transform:scale(1)}100%25{opacity:0;transform:scale(4)}}@media (prefers-reduced-motion:reduce){.r{animation:none;opacity:0}.p{animation:none;opacity:.5}}%3C/style%3E%3C/defs%3E%3Cpath class='a' d='M160 118Q140 140 172 155'/%3E%3Cpath class='a' d='M172 155Q190 185 225 196'/%3E%3Cpath class='a' d='M160 118Q215 108 236 167'/%3E%3Cpath class='a' d='M887 151Q880 190 836 209'/%3E%3Cpath class='a' d='M836 209Q930 230 919 345'/%3E%3Cpath class='a' d='M887 151Q960 240 919 345'/%3E%3Cpath class='r' d='M160 118Q215 108 236 167'/%3E%3Cpath class='r r2' d='M887 151Q880 190 836 209'/%3E%3Cpath class='r r3' d='M887 151Q960 240 919 345'/%3E%3Cg fill='%23089b38'%3E%3Ccircle cx='160' cy='118' r='4.2'/%3E%3Ccircle cx='172' cy='155' r='4.2'/%3E%3Ccircle cx='225' cy='196' r='4.2'/%3E%3Ccircle cx='236' cy='167' r='4.2'/%3E%3Ccircle cx='887' cy='151' r='4.2'/%3E%3Ccircle cx='836' cy='209' r='4.2'/%3E%3Ccircle cx='919' cy='345' r='4.2'/%3E%3C/g%3E%3Cg fill='%23089b38' opacity='.16'%3E%3Ccircle cx='160' cy='118' r='12'/%3E%3Ccircle cx='887' cy='151' r='12'/%3E%3Ccircle cx='919' cy='345' r='12'/%3E%3C/g%3E%3Ccircle cx='887' cy='151' r='5.5' fill='%23c4a35a'/%3E%3Ccircle class='p' cx='887' cy='151' r='5.5'/%3E%3C/svg%3E") center top / auto min(100%, 740px) no-repeat,
    radial-gradient(46% 78% at 4% 0%, rgba(8, 155, 56, .14), transparent 66%),
    radial-gradient(46% 78% at 98% 4%, rgba(196, 163, 90, .22), transparent 66%),
    radial-gradient(60% 60% at 50% 120%, rgba(5, 94, 34, .1), transparent 72%),
    linear-gradient(rgba(6, 11, 16, .04) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(6, 11, 16, .03) 1px, transparent 1px) 0 0 / 56px 100%,
    linear-gradient(115deg, #f7f9fb 0%, #eef2f6 50%, #e6edf3 100%);
}

/* Layer 2: the dotted world map in two wings. */
.lg-redesign-page > div > section.band-t.paper-2:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100%, 740px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 94, 34, .66) 0%, rgba(11, 36, 64, .5) 50%, rgba(11, 36, 64, .7) 100%);
  -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 24%, transparent 37%, transparent 63%, #000 76%, #000 100%),
    linear-gradient(180deg, #000 0, #000 74%, transparent 88%),
    radial-gradient(circle, #000 1.45px, transparent 1.9px),
    url("maps/world.svg");
  -webkit-mask-size: 100% 100%, 100% 100%, 9px 9px, auto 100%;
  -webkit-mask-position: 0 0, 0 0, 0 0, center top;
  -webkit-mask-repeat: no-repeat, no-repeat, repeat, no-repeat;
  -webkit-mask-composite: source-in, source-in, source-in;
  mask-image:
    linear-gradient(90deg, #000 0, #000 24%, transparent 37%, transparent 63%, #000 76%, #000 100%),
    linear-gradient(180deg, #000 0, #000 74%, transparent 88%),
    radial-gradient(circle, #000 1.45px, transparent 1.9px),
    url("maps/world.svg");
  mask-size: 100% 100%, 100% 100%, 9px 9px, auto 100%;
  mask-position: 0 0, 0 0, 0 0, center top;
  mask-repeat: no-repeat, no-repeat, repeat, no-repeat;
  mask-composite: intersect, intersect, intersect;
  opacity: .62;
}

@media (max-width: 760px) {
  .lg-redesign-page > div > section.band-t.paper-2:first-child::after { opacity: .3; }
  .lg-redesign-page > div > section.band-t.paper-2:first-child::before { background-size: auto 420px, auto, auto, auto, 100% 56px, 56px 100%, auto; }
}

/* Dark header (a lead hero over a photograph, no side image): the same dotted world map in two wings and the
   same arcs, drawn in pale green over the scrim so the photograph stays the ground and the middle stays clear
   for the headline. Pages whose hero carries a side image (hero--split) and the home hero keep their own art. */
.lg-redesign-page .hero.hero--lead:not(.hero--split):not(.hero--home)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100%, 740px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(120, 224, 150, .9) 0%, rgba(196, 163, 90, .8) 50%, rgba(120, 224, 150, .9) 100%);
  -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 22%, transparent 36%, transparent 64%, #000 78%, #000 100%),
    linear-gradient(180deg, #000 0, #000 74%, transparent 88%),
    radial-gradient(circle, #000 1.45px, transparent 1.9px),
    url("maps/world.svg");
  -webkit-mask-size: 100% 100%, 100% 100%, 9px 9px, auto 100%;
  -webkit-mask-position: 0 0, 0 0, 0 0, center top;
  -webkit-mask-repeat: no-repeat, no-repeat, repeat, no-repeat;
  -webkit-mask-composite: source-in, source-in, source-in;
  mask-image:
    linear-gradient(90deg, #000 0, #000 22%, transparent 36%, transparent 64%, #000 78%, #000 100%),
    linear-gradient(180deg, #000 0, #000 74%, transparent 88%),
    radial-gradient(circle, #000 1.45px, transparent 1.9px),
    url("maps/world.svg");
  mask-size: 100% 100%, 100% 100%, 9px 9px, auto 100%;
  mask-position: 0 0, 0 0, 0 0, center top;
  mask-repeat: no-repeat, no-repeat, repeat, no-repeat;
  mask-composite: intersect, intersect, intersect;
  opacity: .6;
}
@media (max-width: 760px) {
  .lg-redesign-page .hero.hero--lead:not(.hero--split):not(.hero--home)::after { opacity: .28; }
}
