/* October 2026 updates: pinned JASCGG ribbon, open newsletter, ministry references, member documents. */
.jx-ribbon{position:sticky;top:0;z-index:120}
.header.healthcare-header.scgg-header{top:var(--jx-ribbon-height,0px)}
@media (max-width:1200px){.scgg-header{position:sticky;top:var(--jx-ribbon-height,0px);z-index:100}}
.theme-toggle .theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.membership-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* Footer: newsletter open to everyone */
.footer-newsletter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:center;padding:30px 0;margin-bottom:34px;border-bottom:1px solid rgba(255,255,255,.14)}
.footer-newsletter h3{margin:0 0 6px}
.footer-newsletter p{margin:0;opacity:.85;font-size:14px;line-height:1.55}
.newsletter-form{display:grid;gap:10px}
.newsletter-fields{display:flex;gap:8px}
.newsletter-fields input{flex:1;min-width:0;height:48px;padding:0 16px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff;font-size:15px}
.newsletter-fields input::placeholder{color:#000;opacity:1}
.newsletter-fields input:focus{outline:2px solid #f3cc38;outline-offset:2px;background:rgba(255,255,255,.16)}
.newsletter-fields .button{height:48px;white-space:nowrap;background:#f3cc38;color:#0b2f55;border-color:#f3cc38}
.newsletter-fields .button:hover{background:#ffe17a;color:#0b2f55}
.newsletter-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;opacity:.9;cursor:pointer}
.newsletter-consent input{margin-top:3px;flex:none;width:16px;height:16px;accent-color:#f3cc38}
@media (max-width:760px){.footer-newsletter{grid-template-columns:1fr;gap:16px;padding:24px 0}.newsletter-fields{flex-direction:column}.newsletter-fields .button{width:100%;justify-content:center}}

/* Society registrations, one per line */
.registration-reference{display:grid;gap:2px}
.registration-reference span{display:block}

/* Member space */
.member-documents{display:grid;gap:12px;margin-bottom:14px}
.member-documents p{margin:0}
.fee-breakdown{display:grid;gap:0;margin:0 0 16px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.fee-breakdown div{display:flex;justify-content:space-between;gap:16px;padding:10px 14px}
.fee-breakdown div+div{border-top:1px solid var(--line)}
.fee-breakdown dt{color:var(--muted)}.fee-breakdown dd{margin:0;font-weight:600;color:var(--ink);text-align:right}
.fee-breakdown .fee-total{background:#086bb2}.fee-breakdown .fee-total dt,.fee-breakdown .fee-total dd{color:#fff}
.fee-breakdown small{display:block;font-weight:400;opacity:.85}
.security-warning{display:flex;gap:10px;align-items:flex-start;margin:14px 0;padding:12px 14px;border-radius:12px;background:#fdecee;color:#760b1b;font-size:13.5px;line-height:1.5}
.security-warning .visual-icon{flex:none;width:20px;height:20px}

/* Home gallery: featured video played to the end, sound on demand */
.gallery-playing .gallery-stage:after{animation-duration:var(--gallery-duration,7s)}
.gallery-slide{position:relative}
.gallery-sound{position:absolute;z-index:6;right:clamp(14px,2.4vw,28px);top:clamp(14px,2.4vw,28px);display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(6,32,62,.62);color:#fff;font-size:13px;font-weight:700;line-height:1;backdrop-filter:blur(6px);cursor:pointer}
.gallery-sound:hover{background:rgba(6,32,62,.82)}
.gallery-sound svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gallery-sound .sound-on,.gallery-sound[aria-pressed=true] .sound-off{display:none}
.gallery-sound[aria-pressed=true] .sound-on{display:inline}
@media (max-width:640px){.gallery-sound span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.gallery-sound{padding:9px}}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Cards and figures with several photos or videos */
.media-carousel{position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;isolation:isolate}
.media-carousel-track{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:inherit}
.media-carousel-track::-webkit-scrollbar{display:none}
.media-carousel-track:focus-visible{outline:3px solid #f3cc38;outline-offset:-3px}
.media-carousel-slide{position:relative;flex:0 0 100%;min-width:0;height:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always}
.media-carousel-slide>img,.media-carousel-slide>video,.media-carousel-slide>.media-embed{display:block;width:100%;height:100%}
.media-carousel-caption{position:absolute;left:10px;bottom:34px;max-width:calc(100% - 20px);padding:3px 9px;border-radius:6px;background:rgba(6,30,55,.7);color:#fff;font-size:12px;line-height:1.4}
.media-carousel-arrow{position:absolute;top:50%;z-index:3;display:grid;place-items:center;width:36px;height:36px;margin-top:-18px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#0b2f55;box-shadow:0 6px 18px -8px rgba(0,0,0,.55);cursor:pointer;opacity:0;transition:opacity .2s,transform .2s}
.media-carousel-arrow.prev{left:10px}.media-carousel-arrow.next{right:10px}
.media-carousel-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.media-carousel:hover .media-carousel-arrow,.media-carousel:focus-within .media-carousel-arrow{opacity:1}
.media-carousel-arrow:hover{transform:scale(1.06)}
@media (hover:none){.media-carousel-arrow{opacity:.9;width:32px;height:32px;margin-top:-16px}}
.media-carousel-dots{position:absolute;left:0;right:0;bottom:10px;z-index:3;display:flex;justify-content:center;gap:6px;pointer-events:none}
.media-carousel-dots button{pointer-events:auto;width:8px;height:8px;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.75);box-shadow:0 0 0 1px rgba(6,30,55,.45),0 1px 4px rgba(0,0,0,.35);cursor:pointer;transition:width .25s,background .25s}
.media-carousel-dots button[aria-current]{width:22px;background:#fff;box-shadow:0 0 0 1px rgba(6,30,55,.6),0 1px 4px rgba(0,0,0,.35)}
.media-carousel:not(.is-ready) .media-carousel-arrow,.media-carousel:not(.is-ready) .media-carousel-dots{display:none}
