.slide-members{background:radial-gradient(circle at 75% 40%,#4d367c 0%,#24163f 40%,#15152e 92%)}
.slide-members .hero-inner{grid-template-columns:minmax(0,0.82fr) minmax(0,1.18fr);gap:34px;align-items:center}
.slide-members .member-intro{max-width:510px}
.slide-members h1{font-size:clamp(37px,4.1vw,65px);line-height:1.1}
.slide-members .member-intro p{max-width:470px}
.slide-members .member-footnote{font-size:13px;letter-spacing:.04em;color:#d4c8e5}
.member-collage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch;max-width:620px;width:100%;margin-inline:auto}
.member-crest{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:107px;padding:9px 8px 6px;background:#ffffffed;border:1px solid #ffffff80;border-radius:15px;box-shadow:0 6px 20px #08071133;text-decoration:none;color:#302146;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.member-crest img{height:72px;width:100%;object-fit:contain;display:block}
.member-crest span{font-size:10px;letter-spacing:.025em;font-weight:800;margin-top:5px;line-height:1.2}
.member-crest:hover,.member-crest:focus-visible{transform:translateY(-3px);background:#fff;box-shadow:0 10px 25px #08071177}
.member-crest:focus-visible{outline:3px solid #ffd45b;outline-offset:3px}
@media(max-width:900px){.slide-members .hero-inner{gap:20px}.member-collage{gap:7px}.member-crest{min-height:90px;padding:7px 5px 5px;border-radius:10px}.member-crest img{height:56px}}
@media(max-width:580px){.slide-members{min-height:790px}.slide-members .hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:25px;padding-top:54px;padding-bottom:90px}.slide-members h1{font-size:39px}.slide-members .member-intro p{font-size:14px}.member-collage{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.member-crest{min-height:75px;padding:5px 3px;border-radius:8px}.member-crest img{height:48px}.member-crest span{font-size:9px;margin-top:3px}}
@media(max-width:375px){.slide-members{min-height:815px}.member-collage{grid-template-columns:repeat(3,minmax(0,1fr))}.member-crest{min-height:65px}.member-crest img{height:39px}}
@media(prefers-reduced-motion:reduce){.member-crest{transition:none}}

/* Treat each crest as an emblem on the banner rather than a card. */
.member-collage{gap:12px}
.member-crest{background:transparent;border:0;box-shadow:none;border-radius:0;padding:5px;color:#f8f3ff}
.member-crest:hover,.member-crest:focus-visible{background:transparent;box-shadow:none;transform:scale(1.06)}
.member-crest img{height:90px;max-width:100%;filter:drop-shadow(0 3px 8px #0005)}
.member-crest img[src$=".jpg"]{filter:url(#crest-white-key) drop-shadow(0 3px 8px #0005)}
.member-crest span{color:#f7edff;text-shadow:0 1px 2px #0009}
@media(max-width:900px){.member-crest img{height:74px}}
@media(max-width:580px){.member-collage{gap:7px}.member-crest{min-height:76px;padding:3px}.member-crest img{height:55px}}
@media(max-width:375px){.member-crest img{height:47px}}

/* The supplied NHS lock-ups contain an emblem and Trust lettering.
   Show their untouched emblem portions with CSS cropping; the files remain original. */
.member-crest .crest-crop{display:block;position:relative;width:76px;height:90px;overflow:hidden;flex:none}
.member-crest .crest-crop img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:left center;display:block;filter:drop-shadow(0 3px 8px #0005)}
.member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:51px}
.member-crest:has(img[src$="swasft-current.png"]) .crest-crop img{object-position:right center}
.member-crest:has(img[src$="scas-current.png"]) .crest-crop img{filter:url(#crest-white-key) drop-shadow(0 3px 8px #0005)}
.member-crest:has(img[src$="sas.jpg"]) .crest-crop img{filter:url(#crest-white-key) drop-shadow(0 3px 8px #0005)}
@media(max-width:900px){.member-crest .crest-crop{height:74px;width:63px}.member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:42px}}
@media(max-width:580px){.member-crest .crest-crop{height:55px;width:46px}.member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:31px}}
@media(max-width:375px){.member-crest .crest-crop{height:47px;width:40px}.member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:27px}}

/* Rounded white panels preserve the white details in official NHS branding. */
.member-collage{gap:10px}
.member-crest,
.member-crest:hover,
.member-crest:focus-visible{background:#fff;border:1px solid #fff;border-radius:16px;color:#292044;box-shadow:0 6px 18px #0b092a3d}
.member-crest{min-height:122px;padding:10px 5px 8px;gap:7px}
.member-crest:hover,.member-crest:focus-visible{box-shadow:0 10px 24px #08072273}
.member-crest .crest-crop{margin-inline:auto}
.member-crest .crest-crop img,
.member-crest:has(img[src$="scas-current.png"]) .crest-crop img,
.member-crest:has(img[src$="sas.jpg"]) .crest-crop img{filter:none}
.member-crest > span:last-child{display:block;width:100%;margin:0;text-align:center;color:#302146;text-shadow:none;font-size:10px;line-height:1.25;font-weight:800}

/* SWASFT crest occupies the right-hand end of its supplied NHS lock-up. */
.member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:70px}

/* YAS crest is on the right of a wide logo, with generous whitespace above. */
.member-crest:has(img[src$="yas.png"]) .crest-crop img{position:absolute;width:auto;max-width:none;height:222%;top:-61%;left:-313%;object-fit:fill}

@media(max-width:900px){
  .member-crest{min-height:105px;padding:8px 4px 6px;border-radius:13px}
  .member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:58px}
}
@media(max-width:580px){
  .member-collage{gap:6px}
  .member-crest{min-height:85px;padding:6px 2px 5px;gap:4px;border-radius:10px}
  .member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:43px}
  .member-crest > span:last-child{font-size:9px}
}
@media(max-width:375px){
  .member-crest{min-height:78px}
  .member-crest:has(img[src$="swasft-current.png"]) .crest-crop{width:37px}
}

/* Centre the visible emblem independently of each source logo's text lock-up. */
.member-crest{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:center}
.member-crest .crest-crop{justify-self:center;align-self:center;margin:0 auto}
.member-crest > span:last-child{justify-self:stretch;align-self:end;text-align:center}

/* Leave extra breathing room around the Yorkshire emblem's left laurels. */
.member-crest:has(img[src$="yas.png"]) .crest-crop img{height:210%;top:-56%;left:-289%}

/* Fine optical corrections: source lock-ups have uneven padding around
   their crests. Keep the label fixed beneath the centre of each card. */
.member-crest:has(img[src$="eeast-current.png"]) .crest-crop{transform:translateX(3%)}
.member-crest:has(img[src$="emas-current.svg"]) .crest-crop{transform:translateX(6%)}
.member-crest:has(img[src$="las-current.png"]) .crest-crop{transform:translateX(3%)}
.member-crest:has(img[src$="neas-current.png"]) .crest-crop{transform:translateX(0%)}
.member-crest:has(img[src$="nwas.svg"]) .crest-crop{transform:translateX(4%)}
.member-crest:has(img[src$="sas.jpg"]) .crest-crop{transform:translateX(-11%)}
.member-crest:has(img[src$="scas-current.png"]) .crest-crop{transform:translateX(-1%)}
.member-crest:has(img[src$="secamb-current.png"]) .crest-crop{transform:translateX(5%)}
.member-crest:has(img[src$="wmas-current.png"]) .crest-crop{transform:translateX(5%)}
