/* Shared hero rhythm for all three slides: headline -> paragraph, paragraph -> buttons. */
#brxe-cytupi { --hero-lead-gap: clamp(22px, 3.8vh, 36px); --hero-actions-gap: clamp(28px, 4.6vh, 44px); }

/* Slider controls added with the second slide. */
#brxe-cytupi .splide__pagination { bottom: 18px; gap: 4px; }
#brxe-cytupi .splide__pagination__page {
    width: 24px; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; opacity: 1; transform: none; cursor: pointer;
}
#brxe-cytupi .splide__pagination__page::before {
    content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%;
    background: rgba(91, 47, 214, .35); transition: background .2s ease, transform .2s ease;
}
#brxe-cytupi .splide__pagination__page.is-active::before { background: #5b2fd6; transform: scale(1.3); }
#brxe-cytupi .splide__pagination__page:focus-visible { outline: 2px solid #5b2fd6; outline-offset: 2px; border-radius: 50%; }
#brxe-cytupi .fg-hero-toggle {
    position: absolute; right: clamp(24px, 3vw, 48px); bottom: 16px; z-index: 2; display: grid; place-items: center;
    width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%;
    background: rgba(26, 16, 51, .45); color: #fff !important; cursor: pointer;
}
#brxe-cytupi .fg-hero-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#brxe-cytupi .fg-hero-toggle svg { width: 12px; height: 12px; fill: currentColor; }
#brxe-cytupi .fg-hero-toggle svg path { fill: #fff !important; } /* theme paints svg paths with a gradient */
/* Splide marks the toggle .is-active while playing: show pause then, play otherwise. */
#brxe-cytupi .fg-hero-toggle .splide__toggle__play,
#brxe-cytupi .fg-hero-toggle:not(.is-active) .splide__toggle__pause { display: none; }
#brxe-cytupi .fg-hero-toggle:not(.is-active) .splide__toggle__play { display: block; }

/* Home hero, slide 3 of 3 (Bricks "Empowering Immigrants"): pale lavender #F0ECFF stage, dark copy on the left and the
   transparent team cut-out (1512x1100) on the right, lit by a soft glow and grounded by a floor shadow. */
html body #brxe-cytupi [data-id="brxe-gzwark"].splide__slide {
    --s3-pad: clamp(24px, 3vw, 48px);
    --s3-fs: clamp(30px, min(4.4vw, 7.2vh), 64px); /* slide 1 headline size */
    --s3-col: calc(var(--s3-fs) * 12.6); /* width of the longest of the three set headline lines */
    --s3-right: clamp(6px, .8vw, 14px);
    --s3-w: calc(min(100vw, 1440px) - var(--s3-pad) - var(--s3-col) - clamp(16px, 1.6vw, 24px) - var(--s3-right));
    --s3-h: calc(var(--s3-w) * .7275);
    --s3-lift: 58%; /* photo sits a little above the vertical centre */
    justify-content: flex-start !important; align-items: stretch !important; padding: 0 !important;
    background-color: #f0ecff !important; background-repeat: no-repeat !important;
    background-image:
        url("femigrants-team-cutout.webp"),
        radial-gradient(closest-side, rgba(41, 16, 59, .22), rgba(41, 16, 59, 0)),
        radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)),
        radial-gradient(120% 95% at 78% 38%, #f7f5ff 0%, #f0ecff 50%, #e7e1fc 100%) !important;
    background-size:
        auto min(calc(100% - 80px), var(--s3-h)),
        calc(var(--s3-w) * .8) calc(var(--s3-h) * .07),
        calc(var(--s3-w) * 1.02) calc(var(--s3-h) * 1.02),
        100% 100% !important;
    background-position:
        right var(--s3-right) bottom var(--s3-lift),
        /* % offsets resolve per layer size, so the shadow and glow corrections keep them on the photo's feet and centre */
        right calc(var(--s3-right) + var(--s3-w) * .09) bottom calc(var(--s3-lift) - var(--s3-h) * .4944),
        right calc(var(--s3-right) - var(--s3-w) * .01) bottom calc(var(--s3-lift) + var(--s3-h) * .0316),
        0 0 !important;
}
html body #brxe-cytupi [data-id="brxe-gzwark"].splide__slide::before { background-image: none !important; }
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-cuaxyp {
    position: relative !important; inset: auto !important; box-sizing: border-box; width: 100% !important; height: 100%;
    max-width: 1440px !important; margin-inline: auto !important; padding-inline: var(--s3-pad) !important;
    align-items: center !important; justify-content: flex-start !important;
}
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-vugled { width: var(--s3-col) !important; text-align: left !important; align-items: flex-start !important; }
/* Eyebrow, as on slides 1-2 (.fg-femix-slide__eyebrow). */
html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-eyebrow {
    margin: 0 0 clamp(12px, 2.2vh, 20px); color: #5b2fd6; font: 600 15px/1.6 "Femigrants Open Sans", "Open Sans", Arial, sans-serif; letter-spacing: .01em;
}
/* Slide 1 type and sizes; the headline always keeps its three set lines and only shrinks where the screen is too narrow. */
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-smysye {
    color: #21162f !important; text-align: left !important; text-transform: none !important; white-space: nowrap !important;
    font: 600 var(--s3-fs)/1.1 Manrope, Arial, sans-serif !important; letter-spacing: -.055em !important;
}
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-smysye span { color: #5b2fd6; }
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-cybohq {
    display: block !important; max-width: 640px; margin-top: var(--hero-lead-gap); color: #4b4654 !important; text-align: left !important;
    font: 400 clamp(16px, min(1.4vw, 2.3vh), 20px)/1.65 "Femigrants Open Sans", "Open Sans", Arial, sans-serif !important;
}
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx {
    display: inline-flex !important; align-items: center; gap: 9px; box-sizing: border-box;
    margin: 0 !important; min-height: 50px; padding: 13px 22px !important; border: 1.5px solid #5b2fd6 !important;
    border-radius: 9px !important; background: #5b2fd6 !important; color: #fff !important; font: 600 15px/1.2 Inter, Arial, sans-serif !important;
    box-shadow: none !important; transition: background .2s ease, border-color .2s ease;
}
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx::after {
    content: ""; width: 20px; height: 20px; flex: none; background: currentColor; transition: transform .2s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 6l4 4-4 4' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 6l4 4-4 4' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx:hover { background: #4521b0 !important; border-color: #4521b0 !important; }
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx:hover::after { transform: translateX(3px); }
html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx:focus-visible { outline: 3px solid #8252ee; outline-offset: 3px; }
/* Buttons row with the secondary "Subscribe for updates" (same as .fg-femix-slide__button--secondary). */
html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--hero-actions-gap); }
html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-secondary {
    display: inline-flex; align-items: center; box-sizing: border-box; min-height: 50px; padding: 13px 22px; border: 1.5px solid #5b2fd6;
    border-radius: 9px; background: #fff; color: #5b2fd6 !important; font: 600 15px/1.2 Inter, Arial, sans-serif; text-decoration: none !important;
    transition: background .2s ease; animation: fg-s3-fade .8s ease 1.5s both; /* appears with Bricks' delayed primary button */
}
html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-secondary:hover { background: #efeaff; }
html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-secondary:focus-visible { outline: 3px solid #8252ee; outline-offset: 3px; }
@keyframes fg-s3-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx, html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-axjbzx::after { transition: none; transform: none !important; }
    html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-secondary { animation: none; }
}

/* Phones and portrait tablets: copy on top, group across the bottom; headline sized to fit its longest line. */
@media (max-width: 991px) {
    html body #brxe-cytupi [data-id="brxe-gzwark"].splide__slide {
        --s3-fs: min(clamp(30px, min(4.4vw, 7.2vh), 64px), calc((100vw - 40px) / 12.6));
        --s3-w: 100vw; --s3-h: calc(100vw * .7275); --s3-lift: 0px;
        background-image:
            url("femigrants-team-cutout.webp"),
            radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)),
            radial-gradient(120% 95% at 50% 80%, #f7f5ff 0%, #f0ecff 50%, #e7e1fc 100%) !important;
        background-size: 100% auto, 100% calc(var(--s3-h) * 1.05), 100% 100% !important;
        background-position: center bottom, center bottom, 0 0 !important;
    }
    html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-cuaxyp { align-items: flex-start !important; padding: 28px 20px 0 !important; }
    html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-vugled { width: 100% !important; }
    html body #brxe-cytupi [data-id="brxe-gzwark"] #brxe-cybohq { display: none !important; }
    html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-actions { margin-top: 18px; }
}
@media (max-width: 767px) {
    html body #brxe-cytupi [data-id="brxe-gzwark"].splide__slide { --s3-fs: min(clamp(28px, 8vw, 36px), calc((100vw - 40px) / 12.6)); }
    html body #brxe-cytupi [data-id="brxe-gzwark"] .fg-s3-eyebrow { font-size: 13px; }
    html body #brxe-cytupi [data-id="brxe-gzwark"] :is(#brxe-axjbzx, .fg-s3-secondary) { min-height: 44px; padding: 10px 16px !important; font-size: 14px !important; }
}

/* Home hero, slide 1 of 3: FemiX hero (same look as /femix/), fitted to the slider height. */
#brxe-cytupi .fg-femix-slide { background: #f4f0ff; color: #21162f; overflow: hidden; }
.fg-femix-slide__grid {
    box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: clamp(40px, 5.5vw, 80px);
    align-items: center; height: 100%; max-width: 1440px; margin-inline: auto; padding: clamp(28px, 6vh, 64px) clamp(24px, 3vw, 48px);
}
.fg-femix-slide__copy { position: relative; top: calc(-1 * clamp(12px, 3.5vh, 36px)); min-width: 0; } /* sits a little above centre */
#brxe-cytupi .fg-femix-slide__eyebrow {
    margin: 0 0 clamp(12px, 2.2vh, 20px); color: #5b2fd6; font: 600 15px/1.6 Inter, Arial, sans-serif; letter-spacing: .01em; text-transform: none;
}
#brxe-cytupi .fg-femix-slide__title {
    margin: 0; color: #21162f !important; font: 600 clamp(30px, min(4.4vw, 7.2vh), 64px)/1.1 Manrope, Arial, sans-serif !important;
    letter-spacing: -.055em; text-transform: none;
}
#brxe-cytupi .fg-femix-slide__title span { color: #5b2fd6; }
#brxe-cytupi .fg-femix-slide__lead {
    max-width: 710px; margin: var(--hero-lead-gap) 0 0; color: #4b4654;
    font: 400 clamp(16px, min(1.4vw, 2.3vh), 20px)/1.65 Inter, Arial, sans-serif;
}
.fg-femix-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--hero-actions-gap); }
#brxe-cytupi .fg-femix-slide__button {
    display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 13px 22px; box-sizing: border-box;
    border: 1.5px solid #5b2fd6; border-radius: 9px; background: #5b2fd6; color: #fff !important;
    font: 600 15px/1.2 Inter, Arial, sans-serif; text-decoration: none !important; transition: background .2s ease, color .2s ease;
}
#brxe-cytupi .fg-femix-slide__button:hover { background: #4521b0; border-color: #4521b0; }
#brxe-cytupi .fg-femix-slide__button--secondary { background: #fff; color: #5b2fd6 !important; }
#brxe-cytupi .fg-femix-slide__button--secondary:hover { background: #efeaff; border-color: #5b2fd6; }
#brxe-cytupi .fg-femix-slide__link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: clamp(14px, 2.6vh, 24px); color: #5b2fd6 !important;
    font: 600 15px/1.4 Inter, Arial, sans-serif; text-decoration: none !important;
}
#brxe-cytupi .fg-femix-slide__link:hover { text-decoration: underline !important; text-underline-offset: 4px; }
#brxe-cytupi :is(.fg-femix-slide__button, .fg-femix-slide__link):focus-visible { outline: 3px solid #8252ee; outline-offset: 3px; }
#brxe-cytupi .fg-femix-slide svg path { fill: none !important; stroke: currentColor !important; } /* theme restyles svg paths */
.fg-femix-slide__media { position: relative; height: 100%; max-height: 540px; margin: 0; }
.fg-femix-slide__media img {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 16px; box-shadow: 0 24px 70px rgba(36, 20, 61, .12);
}

/* Portrait tablets: copy on top, photo fills the rest. */
@media (max-width: 991px) {
    .fg-femix-slide__grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 24px; align-items: stretch; }
    .fg-femix-slide__media { max-height: none; }
    .fg-femix-slide__copy { top: 0; }
}
/* Phones: the slider is 400-550px tall, so the copy stands alone. */
@media (max-width: 767px) {
    .fg-femix-slide__grid { display: flex; align-items: center; padding: 24px 20px 56px; }
    .fg-femix-slide__media { display: none; }
    #brxe-cytupi .fg-femix-slide__title { font-size: clamp(28px, 8vw, 36px) !important; }
    #brxe-cytupi .fg-femix-slide__eyebrow { font-size: 13px; }
    #brxe-cytupi .fg-femix-slide__lead { font-size: 15px; line-height: 1.55; }
    #brxe-cytupi .fg-femix-slide__button { min-height: 44px; padding: 10px 16px; font-size: 14px; }
}

/* Home hero, slide 2 of 3: the FemiX campaign, built on slide 1's markup (fg-femix-slide) so type, sizes,
   buttons and photo card match exactly; only the background and the photo crop differ. */
#brxe-cytupi .fg-femix-slide.fg-camp-slide { background: #e8e3eb; }
#brxe-cytupi .fg-camp-slide .fg-femix-slide__media img { object-position: 50% 60%; }
