/* The way back on inner pages (edge.js). Aero's edge does the motion: --aero-edge goes 0 -> 1 as the pointer nears the
   left edge, the panel (.aero-edge) slides open to --aero-edge-reach and the page (.aero-edge-shift) slides aside with it.
   This file is the look: green, the live page underneath scaled to the content column, and the label. */
:root { --edge-green: #2F6B58; --aero-edge-reach: 24vw; --aero-edge-peek: 250px; }
/* Two stages (Aero's edge): nearing the edge opens 250px, enough for the button, which sits at the pointer's height;
   pointing at the button opens it the rest of the way, and the page behind comes up under a green veil that stays. */
.edge-back {
  z-index: 40; cursor: pointer;
  background: var(--edge-green);
  box-shadow: 1px 0 0 rgb(255 255 255 / .18), 18px 0 40px -18px rgb(10 30 22 / .45);
}
.edge-peek { position: absolute; inset: 0 auto 0 0; width: 100vw; }
/* Scaled down and lined up with the site's content column (1360px wide, centred), so the peek shows the page itself,
   not its empty margin. */
.edge-peek iframe { --s: .62; display: block; width: 100vw; height: calc(100vh / var(--s)); border: 0; pointer-events: none;
  transform-origin: 0 0; scale: var(--s); translate: calc(max(72px, (100vw - 1360px) / 2) * var(--s) * -1 + 28px) 0; }
.edge-peek::after { content: ""; position: absolute; inset: 0; background: var(--edge-green); opacity: calc(.92 - var(--aero-edge-full, 0) * .42); }
.edge-label {
  position: absolute; z-index: 1; left: 22px; top: clamp(48px, var(--aero-edge-y, 50%), calc(100% - 48px)); margin-top: -23px;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .94); color: #1B1D20; white-space: nowrap;
  font: 600 15px/1.2 "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.01em;
  opacity: max(0, calc(var(--aero-edge, 0) * 4 - .4));
  box-shadow: 0 10px 30px -12px rgb(10 30 22 / .5);
}
/* edge.js, at pageswap (never on screen): the page back in place, and the edge captured on its own; Aero slides it
   from where it was (see edge.js). */
.edge-leaving .aero-edge-shift { translate: none !important; }
/* Nothing else is lifted out of the page for this one (the Thin Air mark would be captured where the page rests, not
   where it was shown, and jump): the page slides off whole, and the edge fades where it was (Aero). */
.edge-leaving * { view-transition-name: none !important; }
.edge-leaving .edge-back { view-transition-name: aero-edge !important; }
.edge-label i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--edge-green); color: #fff; font-style: normal; translate: calc((var(--aero-edge, 0) - 1) * 6px) 0; }
