/* Shared public-page section edge and strong colour gradients.
   Wave edge: add class "pub-wave" to a section. It gets the soft grey ground and a
   two-layer wave on top (lime tint behind grey). Leave at least 28px above it.
   Strong gradients: the four standard band colours at full strength, navy text. */
:root {
  --pub-wave-ground: #F5F6F8;
  --pub-wave-back: #E2F7BC;
  --pub-grad-mint: linear-gradient(160deg, #AAF3DF 0%, #5FE0BC 55%, #2ACB9E 100%);
  --pub-grad-lime: linear-gradient(160deg, #E4FBA8 0%, #B8EE5A 55%, #8FD82E 100%);
  --pub-grad-peri: linear-gradient(160deg, #C9DCFF 0%, #8FB3FF 55%, #6E98F7 100%);
  --pub-grad-pink: linear-gradient(160deg, #FFD3FC 0%, #F79BEF 55%, #E567DB 100%);
  --pub-grad-ink: #042238;
}
.pub-wave.pub-wave { position: relative; isolation: isolate; margin-top: clamp(28px, 4vw, 48px); background: var(--pub-wave-ground); }
.pub-wave.pub-wave::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(40px, 5.5vw, 80px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23E2F7BC' d='M0 40C220 4 430 6 650 30s430 44 630 16c70-10 120-14 160-12V80H0Z'/%3E%3Cpath fill='%23F5F6F8' d='M0 58c240-30 470-28 710-6s470 26 730-8V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
/* Dark sections under a white page: add class "pub-wave-dark". The wave is drawn inside the
   section's top (white above the curve, a purple wave peeking under it), so it works with
   overflow:hidden. It uses ::after and adds the wave height to the top padding. */
.pub-wave-dark.pub-wave-dark { position: relative; isolation: isolate; padding-top: calc(var(--pub-wave-dark-pad, 64px) + clamp(40px, 5.5vw, 80px)); }
.pub-wave-dark.pub-wave-dark::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; z-index: 1; height: clamp(40px, 5.5vw, 80px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%237B58EA' fill-opacity='.7' d='M0 0H1440V40c-40-2-90 2-160 12-200 28-410 8-630-16S220 4 0 40Z' transform='translate(0 22)'/%3E%3Cpath fill='%23FFFFFF' d='M0 0H1440V44c-260 34-490 30-730 8S240 28 0 58Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
[data-pub-grad] { color: var(--pub-grad-ink); }
[data-pub-grad="mint"] { background: var(--pub-grad-mint); }
[data-pub-grad="lime"] { background: var(--pub-grad-lime); }
[data-pub-grad="peri"] { background: var(--pub-grad-peri); }
[data-pub-grad="pink"] { background: var(--pub-grad-pink); }
