/* River background (preview only). Jonny, 2 Dec 2026: one swoosh that flows
   down the whole page like a river, in and out at the sides.
   v1.133.2 (James): use Zoe's actual swoosh, not a drawn one. Copies of her
   shape 4 are chained down the page: each one starts at the top right, sweeps
   across to the left and finishes at the bottom right, right where the next
   one starts, so together they read as one long flow weaving side to side.
   v1.133.3: no two alike, each piece varies in size, drift, tilt and flip so
   it feels random, like air moving, not a repeat.
   Patients keep her colours; partners and CPD get purple into blue into
   turquoise through the same shape, as on the live pages. */
html body.flow.flow-river { position: relative; }
html body.flow.flow-river .flow-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: 100%; }
html body.flow.flow-river .flow-layer .f1, html body.flow.flow-river .flow-layer::after { display: none !important; }
.flow-river .zs { --b: 1250px; position: absolute; display: block;
  width: calc(var(--b) * var(--k)); height: calc(var(--b) * var(--k));
  left: calc(50% - var(--b) * var(--k) * 0.48 + var(--b) * var(--x));
  top: calc(var(--b) * var(--t));
  transform: scaleX(var(--f)) rotate(var(--r));
  background: url(/images/brand/zoe-fluid-4.webp) center / contain no-repeat; }
.flow-river .zs.z2 { background-image: url(/images/brand/zoe-fluid-2.webp); }
.flow-river .zs.z1 { background-image: url(/images/brand/zoe-fluid-1.webp); }
html body.flow.flow-river.par .zs, html body.flow.flow-river.cpdp .zs {
  background: linear-gradient(180deg, #5249CE 0%, #887DFD 22%, #006BFB 52%, #68E9E8 80%);
  -webkit-mask: url(/images/brand/zoe-fluid-4.webp) center / contain no-repeat;
  mask: url(/images/brand/zoe-fluid-4.webp) center / contain no-repeat; }
html body.flow.flow-river.par .zs.z2, html body.flow.flow-river.cpdp .zs.z2 { -webkit-mask-image: url(/images/brand/zoe-fluid-2.webp); mask-image: url(/images/brand/zoe-fluid-2.webp); }
html body.flow.flow-river.par .zs.z1, html body.flow.flow-river.cpdp .zs.z1 { -webkit-mask-image: url(/images/brand/zoe-fluid-1.webp); mask-image: url(/images/brand/zoe-fluid-1.webp); }
html body.flow.flow-river .sec, html body.flow.flow-river .sec.tint, html body.flow.flow-river .register {
  background: linear-gradient(90deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.5) 30%, rgba(255,255,255,.5) 70%, rgba(255,255,255,.1) 100%) !important; }
@media (max-width: 700px) {
  .flow-river .zs { --b: 150vw; filter: opacity(.8); }
}
@media print { .flow-river .zs { display: none; } }

/* v1.133.4 (James, 2 Dec): keep each side's brand colour. The side glow is
   held fixed on screen again so it shows all the way down, not just at the
   bottom of the page; the patients page fills the swooshes turquoise led and
   partners get them a touch stronger. The homepage keeps Zoe's own colours. */
html body.flow.flow-river .flow-layer::before { position: fixed; }
html body.flow.flow-river.river-pat .zs {
  background: linear-gradient(180deg, #68E9E8 0%, #3FD0C9 38%, #4FA3F2 72%, #887DFD 100%);
  -webkit-mask: url(/images/brand/zoe-fluid-4.webp) center / contain no-repeat;
  mask: url(/images/brand/zoe-fluid-4.webp) center / contain no-repeat; }
html body.flow.flow-river.river-pat .zs.z2 { -webkit-mask-image: url(/images/brand/zoe-fluid-2.webp); mask-image: url(/images/brand/zoe-fluid-2.webp); }
html body.flow.flow-river.river-pat .zs.z1 { -webkit-mask-image: url(/images/brand/zoe-fluid-1.webp); mask-image: url(/images/brand/zoe-fluid-1.webp); }
html body.flow.flow-river.par .zs, html body.flow.flow-river.cpdp .zs { filter: saturate(1.15) brightness(.95); }

/* v1.133.5 (James, 2 Dec):
   - Patients: more turquoise in the background away from the swoosh, so the
     page reads as the patient side at a glance.
   - Every section's content sits in a frosted white card, the same style as
     the Register your interest box, so each part stands out from the flow
     and the swoosh runs between the cards. */
html body.flow.flow-river.river-pat .flow-layer::before {
  background: radial-gradient(90vw 90vh at 0% 100%, rgba(104,233,232,.55), transparent 70%),
              radial-gradient(60vw 60vh at 100% 0%, rgba(104,233,232,.38), transparent 70%),
              radial-gradient(50vw 50vh at 100% 70%, rgba(104,233,232,.25), transparent 70%),
              linear-gradient(rgba(238,252,252,.6), rgba(238,252,252,.6)); }
html body.flow.flow-river .sec, html body.flow.flow-river .sec.tint, html body.flow.flow-river .register, html body.flow.flow-river .ix-band, html body.flow.flow-river .ix-band.alt { background: transparent !important; padding: 48px 0; }
html body.flow.flow-river .ix-band { padding: 20px 0; }
html body.flow.flow-river .sec:not(.register) > .wrap, html body.flow.flow-river .ix-band > .wrap {
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(14,26,79,.08);
  border-radius: var(--r, 24px); padding: 44px 48px; box-sizing: border-box;
  width: calc(100% - 48px); }
@media (max-width: 700px) {
  html body.flow.flow-river .sec:not(.register) > .wrap, html body.flow.flow-river .ix-band > .wrap { padding: 26px 20px; width: calc(100% - 24px); }
}

/* v1.134.1 (James, 2 Dec): on shared pages, the parts that talk to patients
   glow turquoise and the parts that talk to healthcare partners glow purple,
   so you can tell them apart at a glance. Same colours as the patient and
   partner pages and emails. Mark a section with .glow-pat or .glow-par (its
   card gets the glow), or a link card directly. */
html body.flow.flow-river .sec.glow-pat:not(.register) > .wrap, html body.flow.flow-river a.glow-pat, html body.flow.flow-river .route.pat {
  background: radial-gradient(120% 90% at 100% 0%, rgba(104,233,232,.32), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(104,233,232,.18), transparent 60%), rgba(255,255,255,.78);
  box-shadow: 0 24px 60px rgba(104,233,232,.32), 0 0 0 1px rgba(104,233,232,.35) inset; }
html body.flow.flow-river .sec.glow-par:not(.register) > .wrap, html body.flow.flow-river a.glow-par, html body.flow.flow-river .route.pro {
  background: radial-gradient(120% 90% at 100% 0%, rgba(82,73,206,.22), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(136,125,253,.16), transparent 60%), rgba(255,255,255,.78);
  box-shadow: 0 24px 60px rgba(82,73,206,.22), 0 0 0 1px rgba(136,125,253,.35) inset; }
html body.flow.flow-river .glow-par .btn.primary { background: #5249CE !important; color: #fff !important; border-color: #5249CE !important; }
html body.flow.flow-river .glow-par .btn.primary:hover { background: #352BA4 !important; border-color: #352BA4 !important; }

/* v1.134.2: the homepage hero carried its own older aqua shape on top of the
   river of air; the river covers that job now, so it goes. The intro glides
   into the first river swoosh instead (homepage-kate.html script). */
html body.flow.flow-river .hero .fluid { display: none !important; }
