/* ===================================================================

   ECLIPSE BUSINESS CAPITAL — the theme's one stylesheet (enqueued by inc/enqueue.php)



   1. Fonts, tokens, base, Elementor fixes, utilities

   2. Theme-rendered parts: base layer for markup Elementor controls can't

      style (.ebc-html), the Gravity Forms contact form

   3. Team bio popup (dialog#ebc-team-bio)

   4. Element styles no Elementor control can set (moved here from the

      per-element Custom CSS on 2026-11-05)



   Section layout is NOT here: it lives in Elementor controls. Where no

   control exists, the rule is in §4, keyed to a class set in the

   element's Advanced → CSS Classes (never in an element's Custom CSS).



   Colours and fonts live in the Elementor Kit (Site Settings → Global

   Colors / Global Fonts). The aliases below point at the Kit's CSS vars,

   so changing a colour in Site Settings changes it here too.

   =================================================================== */

/**
 * @license
 * MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
 * 
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are 
 * explicitly restricted from using the Licensed Webfonts(s).
 * 
 * You may obtain a valid license at the URLs below.
 * 
 * Webfont: Helvetica Pro Bold by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry

 * Webfont: Helvetica Pro Roman by Linotype
 * URL: https://www.myfonts.com/collections/linotype-foundry

 * Webfont: ITC New Baskerville Pro Italic by ITC
 * URL: https://www.myfonts.com/collections/itc-foundry

 * Webfont: ITC New Baskerville Pro Bold Italic by ITC
 * URL: https://www.myfonts.com/collections/itc-foundry

 * Webfont: ITC New Baskerville Pro Roman by ITC
 * URL: https://www.myfonts.com/collections/itc-foundry
 
 * © 2026 MyFonts Inc. */

/* Family names kept for Elementor Kit compatibility; files are the client's licensed MyFonts kit. */

@font-face {

    font-family: "ITC New Baskerville Std";

    src: url("../fonts/myfonts/ITCNewBaskervilleProRoman/font.woff2") format("woff2"), url("../fonts/myfonts/ITCNewBaskervilleProRoman/font.woff") format("woff");

    font-weight: 400;

    font-style: normal;

    font-display: swap;

}

@font-face {

    font-family: "ITC New Baskerville Std";

    src: url("../fonts/myfonts/ITCNewBaskervilleProItalic/font.woff2") format("woff2"), url("../fonts/myfonts/ITCNewBaskervilleProItalic/font.woff") format("woff");

    font-weight: 400;

    font-style: italic;

    font-display: swap;

}

@font-face {

    font-family: "ITC New Baskerville Std";

    src: url("../fonts/myfonts/ITCNewBaskervilleProBoldItalic/font.woff2") format("woff2"), url("../fonts/myfonts/ITCNewBaskervilleProBoldItalic/font.woff") format("woff");

    font-weight: 700;

    font-style: italic;

    font-display: swap;

}

@font-face {

    font-family: "helvetica-lt-pro";

    src: url("../fonts/myfonts/HelveticaProRoman/font.woff2") format("woff2"), url("../fonts/myfonts/HelveticaProRoman/font.woff") format("woff");

    font-weight: 400;

    font-style: normal;

    font-display: swap;

}

@font-face {

    font-family: "helvetica-lt-pro";

    src: url("../fonts/myfonts/HelveticaProBold/font.woff2") format("woff2"), url("../fonts/myfonts/HelveticaProBold/font.woff") format("woff");

    font-weight: 700;

    font-style: normal;

    font-display: swap;

}



:root {

    /* COLOURS → Elementor Kit globals (fallbacks = design values) */

    --primary:      var(--e-global-color-primary, #6b1e2b);

    --primary-dark: #521621;

    --wine:         var(--e-global-color-secondary, #3a0f18);

    --ink:          var(--e-global-color-text, #131a24);

    --navy:         var(--e-global-color-text, #131a24);

    --navy-deep:    #101a2f;   /* "Borrowing Base Pro" box */

    --black:        var(--e-global-color-text, #131a24);

    --text:         var(--ink);

    --muted:        var(--e-global-color-muted, #696f7a);

    --line:         var(--e-global-color-line, #dededc);

    --surface:      var(--e-global-color-surface, #f7f7f6);

    --surface-blue: var(--e-global-color-accent, #c9d2dc);

    --line-blue:    #aeb6c1;   /* rules + card borders on/near the blue boxes */

    --shape-blue:   #b4c0ce;   /* arrow / tick / X shapes on the blue boxes */

    --field-line:   #d9d9d9;   /* form field + radio borders (contact form) */

    --on-wine:      var(--e-global-color-onwine, #ebebea);

    --white:        var(--e-global-color-white, #ffffff);

    --on-dark-line: var(--e-global-color-ondarkline, rgba(255, 255, 255, .16));

    --link-hover:   var(--e-global-color-linkhover, #699fc7);   /* footer link hover (Kit "Link Hover") */

    --overlay:      rgba(0, 0, 0, .55);

    --ink-60:       rgb(19 26 36 / .6);   /* mobile nav + popup overlay: 60% ink */

    --shadow-pop:   0 2px 6px rgb(19 26 36 / .25);   /* popups only (team bio) */

    --error-red: #f00000;



    /* FONTS → Kit globals */

    --font-serif: var(--e-global-typography-text-font-family, "ITC New Baskerville Std"), "Baskerville", Georgia, serif;

    --font-sans:  "helvetica-lt-pro", Helvetica, Arial, sans-serif;   /* Adobe Fonts: Helvetica LT Pro */



    /* TYPE SCALE (name == desktop px) */

    --f12: 12px; --f14: 14px; --f15: 15px; --f16: 16px; --f18: 18px; --f18-fixed: 18px;

    --f20: 20px; --f24: 24px; --f32: 32px; --f40: 40px; --f48: 48px;

    --f64: 64px; --f72: 72px; --f88: 88px; --f168: 168px;

    --lhDisplay: .91;

    --lhTight: .96;

    --lhUi: 1.25;

    --bodyLh: 1.3889;   /* 18px body steps 25px per line in every desktop PDF */

    --lsH1: -.02em;

    --lsHeading: -.01em;

    --lsFit: -.02em;    /* mobile copy tightened to keep the PDF line breaks */



    /* LAYOUT */

    --container: 1200px;

    --gutter: 120px;

    --boxInset: 32px;

    /* Section spacing. --secScale scales every section's top / bottom space and the

       space inside the coloured boxes (client: one third less, 2026-11-05; 1 = the

       original design). Hero / page-top space does not use it. */

    --secScale: .6667;

    --sectionGap: calc(124px * var(--secScale));

    --sectionGapLg: calc(140px * var(--secScale));

    --sectiongapHalf: 64px;

    --overlap: 64px;

    --header-h: 105px;

    --navGap: 32px;      /* header links + Client Login (20px below 1440) */



    /* SPACING */

    --sp4: 4px;   --sp6: 6px;   --sp8: 8px;   --sp10: 10px;  --sp12: 12px;

    --sp15: 15px; --sp16: 16px; --sp20: 20px; --sp24: 24px;  --sp32: 32px;

    --sp40: 40px; --sp48: 48px; --sp56: 56px; --sp64: 64px; --sp72: 72px;  --sp88: 88px;

    --sp92: 92px; --sp96: 96px; --sp100: 100px; --sp112: 112px;

    --sp124: 124px; --sp128: 128px; --sp140: 140px;

    --g32: 32px;



    --r-btn: 0;

    --r-full: 9999px;

    --z-sticky: 200;

    --z-drop: 210;

    --z-modal: 300;

    --ease: .25s ease;

    --ease-out: .3s cubic-bezier(.2, .7, .3, 1);

    --transition: all .3s ease-in-out;

    /* Mono noise tile for .ebc-grain: black specks, alpha from the noise value */

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 -1.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

}



/* Same steps as the HTML build. Elementor breakpoints are set to match:

   laptop 1365 · tablet extra 1199 · tablet 991 · mobile 767. */

@media (max-width: 1439.98px) { :root { --navGap: 20px; } }

@media (max-width: 1365.98px) { :root { --gutter: 80px; } }

@media (max-width: 1199.98px) {

    :root {

        --gutter: 64px; --sectionGap: calc(104px * var(--secScale)); --sectionGapLg: calc(120px * var(--secScale)); --sp124: 104px; --sp140: 120px;

        --f168: 140px; --f88: 72px; --f64: 56px;

    }

}

@media (max-width: 991.98px) {

    :root { --gutter: 48px; --f168: 130px; --f88: 64px; --f64: 48px; --f48: 44px; }

}

@media (max-width: 767.98px) {

    :root {

        --header-h: 79px;

        --gutter: 32px; --boxInset: 8px; --sectionGap: calc(92px * var(--secScale)); --sectionGapLg: calc(92px * var(--secScale)); --sp124: 92px; --sp140: 92px;

        --f168: 120px; --f88: 48px; --f64: 40px; --f48: 40px; --f72: 64px; --f18: 16px;

        --bodyLh: 1.38;   /* mobile keeps 1.38 (16px -> 22.08; PDFs: 22) */

    }

}

@media (max-width: 374.98px) { :root { --f168: 100px; } }



/* ===================================================================

   BASE — what the Kit cannot set

   =================================================================== */

html {

    overflow-x: clip;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color: var(--primary) transparent;

}

body {

    overflow-x: clip;

    background: var(--surface);

    font-variant-numeric: lining-nums; /* the design sets lining figures */

    -webkit-font-smoothing: antialiased;

}

/* Keyboard focus: a wine ring with a white halo filling the 2px offset, so it shows on every

   surface (light pages, the wine CTA boxes, the navy footer) without changing any design colour. */

:focus-visible {

    outline: 2px solid var(--primary);

    outline-offset: 2px;

    box-shadow: 0 0 0 2px var(--white);

}

.elementor-location-footer :focus-visible { outline-color: var(--link-hover); box-shadow: none; }



.skip-link {

    position: fixed;

    inset-block-start: 0;

    inset-inline-start: 0;

    z-index: var(--z-modal);

    width: 1px;

    height: 1px;

    overflow: hidden;

    clip-path: inset(50%);

    background: var(--white);

    color: var(--primary);



    &:focus {

        width: auto;

        height: auto;

        padding: var(--sp15) var(--sp24);

        clip-path: none;

        font-family: var(--font-sans);

        font-weight: 700;

    }

}



/* ===================================================================

   FALLBACKS — only render when no Elementor template is assigned

   =================================================================== */

.ebc-fallback-container {

    max-width: calc(var(--container) + var(--gutter) * 2);

    margin-inline: auto;

    padding-inline: var(--gutter);

}

.ebc-fallback-header .ebc-fallback-container { padding-block: var(--sp20); }

.ebc-fallback-content { padding-block: var(--sectionGap); }

.ebc-fallback-footer {

    padding-block: var(--sp40);

    background: var(--navy);

    color: var(--white);

}



/* ===================================================================

   ELEMENTOR — generic fixes (keyed on Elementor's own classes only)

   =================================================================== */

.elementor .elementor-widget-text-editor p,

.elementor .elementor-widget-text-editor address { margin: 0; font-style: normal; }

.elementor .elementor-widget-text-editor p + p { margin-top: 1em; }



/* Heading widgets set as <span> behave as blocks, like the HTML flex items, so the

   parent's line-height adds no extra strut. (New builds use the <div> tag instead.) */

.elementor .elementor-widget-heading span.elementor-heading-title { display: block; }



/* Header location: sticky under the admin bar. The template wrapper is not an

   Elementor element, so no control reaches it. The mobile drawer (Nav Menu dropdown,

   overlay, scroll lock) lives in the Nav Menu widget's own Custom CSS. */

.elementor-location-header {

    position: sticky;

    inset-block-start: var(--wp-admin--admin-bar--height, 0px);

    z-index: var(--z-sticky);

}



/* ===================================================================

   UTILITIES — reusable, not tied to a section; none of them sets layout

   =================================================================== */

/* Underline details of text links (Heading widget with a link, Kit type "Link — 16

   underlined"): 3px offset, 1px rule, the underline fades on hover. */

.ebc-link-underline a,

.ebc-link-underline .elementor-button-text {

    /* text-underline-offset: 3px;

    text-decoration-thickness: 1px; */

    transition: var(--transition);

}

/* Button widgets ("Read the Announcement"): the Kit type underlines the text span itself */

.ebc-link-underline a:is(:hover, :focus-visible),

.ebc-link-underline a:is(:hover, :focus-visible) .elementor-button-text { text-decoration-color: transparent; }



/* Photo grain, the design's image effect (Figma "Noise": mono, size 0.2, density 100%,

   #000000 at 25%). Add the class "ebc-grain" to a photographic Image widget (Advanced →

   CSS Classes): a fine black noise layer sits over the image, so every photo the client

   uploads gets the effect. No layout: the layer is absolutely positioned inside the widget

   (Elementor widgets are position: relative) and ignores the pointer, so links and

   hover zooms underneath keep working. Remove the class = plain photo. */

.elementor .ebc-grain::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background-image: var(--grain);

    background-size: 128px 128px;

    opacity: .15;

}



/* Text utilities used inside widget text (<br class="d-mobile">, sr-only labels). */

.elementor .d-mobile { display: none; }

@media (max-width: 767.98px) {

    .elementor .d-mobile { display: block; }

    .elementor .d-desktop { display: none; }

}

.elementor .sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    border: 0;

}



/* ===================================================================

   2. THEME-RENDERED PARTS

   =================================================================== */

/* ---------- 2a. Base layer for theme-rendered markup (.ebc-html), from the HTML build's vendor.css.

   The contact form's Shortcode widget carries the classes "ebc-html ebc-contact-form". */

.ebc-html.ebc-html {

    font-family: var(--font-serif);

    font-size: var(--f16);

    line-height: var(--bodyLh);

    color: var(--text);

    font-variant-numeric: lining-nums;



    & *, & *::before, & *::after { box-sizing: border-box; margin: 0; padding: 0; }

    & [hidden] { display: none !important; }

    & img, & video, & svg { display: block; max-width: 100%; height: auto; }

    & a, & a:hover { color: inherit; text-decoration: none; }

    & ul { list-style: none; }

    & address { font-style: normal; }

    & button {

        border: 0; background: none; color: inherit;

        font-family: inherit; cursor: pointer;

        transition: var(--transition);

    }

    & section { overflow-x: clip; }



    & h1, & h2, & h3, & h4 {

        font-family: var(--font-serif);

        font-weight: 400;

        line-height: var(--lhDisplay);

        color: var(--black);

        text-transform: none;

    }

    & h1 { font-size: var(--f64); letter-spacing: var(--lsH1); }

    & h2 { font-size: var(--f48); letter-spacing: var(--lsHeading); line-height: var(--lhTight); }

    & h3 { font-size: var(--f32); line-height: var(--lhUi); letter-spacing: var(--lsHeading); }

    & h4 { font-size: var(--f20); line-height: var(--lhUi); }

    & h5, & h6 { font-family: var(--font-sans); line-height: var(--lhUi); font-weight: 700; }

    & h5 { font-size: var(--f16); }

    & h6 { font-size: var(--f14); }

    & p { font-family: var(--font-serif); font-size: var(--f18); line-height: var(--bodyLh); }





}



/* ---------- 2b. Contact form (Gravity Forms) ----------

   [gravityform] shortcode in a Shortcode widget whose CSS Classes are "ebc-html ebc-contact-form".

   Gravity Forms' own theme CSS is off for this form (inc/contact-form.php), so this is keyed on

   that wrapper, Gravity Forms' classes and the field CSS classes set in the form

   (ebc-field / -group / -after / -message / -notice). */

.ebc-html.ebc-contact-form {

    & .gform_heading,

    & .gfield_description:empty,

    & .gform_validation_container,

    & .gfield--type-honeypot { display: none !important; }



    & form { display: block; }



    /* "* indicates required fields": kept for screen readers, hidden visually (the design shows only the asterisks) */

    & .gform_required_legend {

        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;

        overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;

    }



    /* One 2-column grid for every field; the HTML's three grids become rows with

       extra top margin (grid row-gap 8 + margin = the HTML spacing). */

    & .gform_fields {

        display: grid;

        /* grid-template-columns: repeat(2, minmax(0, 1fr)); */

        gap: var(--sp16) var(--sp32);

    }

    /* Radio groups are <fieldset class="gfield">: drop the UA fieldset box */

    & .gfield { min-width: 0; margin: 0; padding: 0; border: 0; }

    & .gfield--width-full,

    & .ebc-message,

    & .ebc-notice { grid-column: 1 / -1; }



    & .ebc-field { display: flex; flex-direction: column; gap: var(--sp6); }

    & .ebc-message { gap: var(--sp10); }

    & .ebc-group { margin-top: var(--sp4); }          /* rows 1-3 -> radio groups: 12 */

    & .ebc-after { margin-top: var(--sp12); }         /* radio groups -> size / website: 20 */

    & .ebc-message { margin-top: var(--sp4); }        /* -> message: 12 */



    & .gfield_label,

    & .gfield_label legend,

    & legend.gfield_label {

        display: block;

        padding: 0;

        font-family: var(--font-sans);

        font-size: var(--f14);

        font-weight: 400;

        line-height: var(--lhUi);

        color: var(--ink);

    }

    & .gfield_required { margin-left: 0; color: inherit; }

    & .gfield_required .gfield_required_asterisk,

    & .gfield_required_asterisk { color: inherit; }

    & .ebc-group .gfield_label { color: var(--primary); }

    & .ebc-message .gfield_label { color: var(--wine); }



    & .ginput_container input:not([type="radio"]):not([type="checkbox"]),

    & .ginput_container textarea {

        display: block;

        width: 100%;

        height: 50px;

        padding: 0 var(--sp16);

        background: var(--surface);

        border: 1px solid var(--field-line);

        border-radius: 0;

        box-shadow: none;

        font-family: var(--font-sans);

        font-size: var(--f14);

        line-height: 50px;

        color: var(--ink);

        transition: var(--transition);

        &::placeholder { color: var(--muted); opacity: 1; }

        &:hover { border-color: var(--muted); }

        &:focus-visible { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 0; }

    }

    & .ginput_container textarea {

        height: 218px;

        padding-block: var(--sp12);

        resize: none;

        line-height: 1.6;

    }



    /* Radio groups */

    & .gfield_radio {

        display: flex;

        flex-direction: column;

        gap: var(--sp6);

        margin-top: var(--sp16);

    }

    & .gchoice {

        display: flex;

        align-items: center;

        gap: var(--sp8);

        width: max-content;

        max-width: 100%;

    }

    & .gchoice label {

        font-family: var(--font-sans);

        font-size: var(--f14);

        line-height: var(--lhUi);

        color: var(--ink);

        cursor: pointer;

    }

    & .gfield-choice-input {

        flex: 0 0 auto;

        width: 18px;

        height: 18px;

        margin: 0;

        background: var(--surface);

        border: 1px solid var(--field-line);

        border-radius: var(--r-full);

        appearance: none;

        cursor: pointer;

        transition: var(--transition);

        &:hover { border-color: var(--muted); }

        &:focus{
            outline: none;
            outline-color: var(--primary);
        }

        &:checked {

            border-color: var(--primary);

            background: radial-gradient(circle, var(--primary) 0 4px, var(--surface) 4.5px);

        }

        &:before{
            display: none;
        }

        &:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

    }



    /* Notice (HTML field) + submit */

    & .ebc-notice {

        max-width: 450px;

        margin: calc(var(--sp12) + var(--sp6) - var(--sp8)) auto 0;

        font-family: var(--font-serif);

        font-size: var(--f14);

        line-height: 1.43;

        text-align: center;

        color: var(--muted);

    }

    & .gform_footer,

    & .gform-footer {

        display: flex;

        justify-content: center;

        margin-top: calc(var(--sp12) + var(--sp6));

        padding: 0;

    }

    & .gform-theme.gform-theme--framework.gform_wrapper .gform_button {

        width: max-content;

        margin: 0;

        padding: 13px var(--sp24);

        background: var(--primary);

        border: 1px solid var(--primary);

        border-radius: 0;

        font-family: var(--font-sans);

        font-size: var(--f16);

        font-weight: 400;

        line-height: var(--lhUi);

        color: var(--white);

        cursor: pointer;

        transition: var(--transition);

        &:hover { background: var(--wine); border-color: var(--wine); }

        &:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

        &:focus{
            outline-color: var(--primary);
        }

    }

    & .gform_ajax_spinner,

    & .gform-loader { margin-left: var(--sp12); align-self: center; }



    /* Validation */

    & .gform_validation_errors {

        margin-bottom: var(--sp24);

        padding: var(--sp16);

        border: 1px solid var(--primary);

        background: var(--white);

        & h2, & .gform_submission_error {

            font-family: var(--font-sans);

            font-size: var(--f14);

            font-weight: 700;

            line-height: var(--lhUi);

            letter-spacing: normal;

            color: var(--primary);

        }

        & ol { margin-top: var(--sp8); padding-left: 1.25em; list-style: decimal; }

        & li, & a { font-family: var(--font-sans); font-size: var(--f14); color: var(--primary); }

        & a { text-decoration: underline; }

    }

    & .gfield_error .ginput_container input:not([type="radio"]),

    & .gfield_error .ginput_container textarea { border-color: var(--error-red); }

    & .gfield_validation_message,

    & .validation_message {

        margin-top: var(--sp4);

        font-family: var(--font-sans);

        font-size: var(--f12);

        line-height: var(--lhUi);

        color: var(--error-red);

    }

    /* Gravity Forms prints the message above the input (field_validation_above);

       the design reads label -> input -> message, so move it under the input. */

    & .ebc-field .gfield_validation_message { order: 1; margin-top: 0; }

    & .gform_validation_errors .gform-icon { display: none; }   /* icon font is GF CSS, which is off */

    & .gform_confirmation_message {

        font-family: var(--font-serif);

        font-size: var(--f18);

        line-height: var(--bodyLh);

        color: var(--ink);

    }

}



@media (max-width: 767.98px) {

    .ebc-html.ebc-contact-form {

        & .gform_fields { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp16); }

        & .gfield { grid-column: 1 / -1; }

        & .ebc-group { margin-top: var(--sp4); }    /* 20 */

        & .ebc-after { margin-top: var(--sp4); }    /* 20 */

        & .ebc-after + .ebc-after,

        & .ebc-message { margin-top: 0; }           /* 16 */

        & .ebc-message { gap: var(--sp6); }

        & .gfield_radio { gap: var(--sp12); margin-top: var(--sp32); }

        & .gchoice { gap: var(--sp10); }

        & .gchoice label { font-size: var(--f16); }



        & .ebc-notice {

            max-width: none;

            margin: calc(var(--sp12) + var(--sp6) - var(--sp16)) 0 0;   /* 18 below the message (grid row-gap 16) */

            text-align: left;

            letter-spacing: var(--lsFit);

        }

        & .gform_footer,

        & .gform-footer { justify-content: flex-start; }

    }

    .ebc-html.ebc-contact-form .ginput_container input:not([type="radio"]):not([type="checkbox"]), .ebc-html.ebc-contact-form .ginput_container textarea {
        font-size: var(--f16);
    }

}



/* ===================================================================

   3. Team bio popup (dialog#ebc-team-bio)

   Markup: inc/team.php ebc_team_bio_dialog() (printed once, in the footer, on

   pages whose Elementor Loop Grid lists Team Members); behaviour: assets/js/main.js

   "Team bio popup" (fetches the bio over the REST API when a card is opened).



   Plugin-like UI that Elementor controls can't build (a modal <dialog>), kept as

   one reusable block keyed on its own .ebc-bio* classes. Same look as the HTML

   build (HTML/assets/css/sections/team-bio.css; Design/Team-member-bio-Mobile.pdf):

   the <dialog> is the full-screen --ink-60 overlay and scrolls; .ebc-bio__panel is

   the card. Mobile: panel inset --boxInset, 34px from the top, 1px --line border,

   photo 384:280 on white, name 24 sans bold primary, role + bio serif body copy.

   ≤991: one column, 600 wide. Desktop: photo left, text right.

   It sits outside Elementor's .elementor wrapper but inside the Kit's body class,

   so the Kit's button / h2 / p styles are reset here.

   =================================================================== */

.ebc-bio {

    position: fixed;

    inset: 0;

    box-sizing: border-box;

    width: 100%;

    max-width: none;

    height: 100%;

    max-height: none;

    margin: 0;

    padding: var(--sp64) var(--gutter);

    border: 0;

    background: var(--ink-60);

    color: var(--text);

    overflow-y: auto;

    overscroll-behavior: contain;



    &[open] {

        display: flex;

        flex-direction: column;

        opacity: 1;

        transition: opacity var(--ease);

    }

    &::backdrop { background: transparent; }



    & *, & *::before, & *::after { box-sizing: border-box; }

    & :is(figure, h2, p) { margin: 0; }

    & [hidden] { display: none; }



    & .ebc-bio__panel {

        position: relative;

        display: grid;

        grid-template-columns: 384px minmax(0, 1fr);

        gap: var(--sp56);

        width: 100%;

        max-width: 1040px;

        margin: auto;   /* centred when it fits; scrolls from the top when it doesn't */

        padding: var(--sp56);

        background: var(--surface);

        border: 1px solid var(--line);

        box-shadow: var(--shadow-pop);

        align-items: center;

    }



    /* reset the Kit's button styles (incl. its :hover / :focus colours) */

    & .ebc-bio__close,

    & .ebc-bio__close:is(:hover, :focus, :focus-visible, :active) {

        position: absolute;

        inset-block-start: var(--sp12);

        inset-inline-end: var(--sp12);

        display: grid;

        place-items: center;

        width: 44px;

        height: 44px;

        padding: 0;

        border: 0;

        border-radius: 0;

        background: none;

        color: var(--black);

        cursor: pointer;

        transition: var(--transition);

    }

    & .ebc-bio__close:hover { color: var(--primary); }

    & .ebc-bio__close svg { display: block; }



    & .ebc-bio__img {

        display: block;

        width: 100%;

        height: auto;

        aspect-ratio: 384 / 280;

        object-fit: cover;

        background: var(--white);

    }



    & .ebc-bio__name {

        font-family: var(--font-sans);

        font-size: var(--f32);

        font-weight: 700;

        line-height: var(--lhUi);

        letter-spacing: normal;

        text-transform: none;

        color: var(--primary);

    }

    & .ebc-bio__role,

    & .ebc-bio__text {

        font-family: var(--font-serif);

        font-size: var(--f18);

        font-weight: 400;

        line-height: var(--bodyLh);

        color: var(--text);

    }

    & .ebc-bio__role { margin-top: var(--sp8); }

    & .ebc-bio__text { margin-top: var(--sp24); }

    & .ebc-bio__text :is(p, ul, ol) { margin: 0; }

    & .ebc-bio__text :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 1em; }

    & .ebc-bio__text[aria-busy="true"] { min-height: calc(var(--f18) * var(--bodyLh) * 3); }

}



@starting-style {

    .ebc-bio[open] { opacity: 0; }

}



@media (prefers-reduced-motion: reduce) {

    .ebc-bio[open] { transition: none; }

}



@media (max-width: 991.98px) {

    .ebc-bio {

        & .ebc-bio__panel {

            grid-template-columns: minmax(0, 1fr);

            gap: 0;

            max-width: 600px;

            padding: calc(var(--sp72) + var(--sp8)) var(--sp40) var(--sp48);

        }

        & .ebc-bio__name { margin-top: var(--sp32); }

    }

}



@media (max-width: 767.98px) {

    .ebc-bio {

        padding: calc(var(--sp32) + 2px) var(--boxInset);   /* panel 34px from the top (mobile PDF) */



        & .ebc-bio__panel {

            margin-block: 0 auto;

            padding: var(--sp72) calc(var(--sp24) - 1px) calc(var(--sp40) - 1px);   /* + 1px border: photo 73 below the panel top */

        }

        & .ebc-bio__close,

        & .ebc-bio__close:is(:hover, :focus, :focus-visible, :active) {

            inset-block-start: calc(var(--sp16) - 3px);   /* X 25px below the panel top, 24px in from its edge */

            inset-inline-end: calc(var(--sp16) - 3px);

        }

        /* Baselines: photo -> name 49, name -> role 27, role -> bio 35 (mobile PDF) */

        & .ebc-bio__name {

            margin-top: calc(var(--sp24) + 2px);

            font-size: var(--f24);

        }

        & .ebc-bio__role { margin-top: var(--sp4); }

        & .ebc-bio__text { margin-top: calc(var(--sp12) + 1px); }

    }

}

.site-footer__col li.menu-item a {
    display: inline-block;
}

.site-footer__social a.elementor-icon svg path {
    transition-duration: 0.4s;
}

.gform-footer .gform-loader {
    align-self: center;
    animation: gformLoader 1.1s infinite linear;
    block-size: 10em;
    border-block-end: 1.1em solid #ffffff;
    border-block-start: 1.1em solid #131a24;
    border-inline-end: 1.1em solid #131a24;
    border-inline-start: 1.1em solid #ffffff;
    border-radius: 50%;
    display: inline-block;
    font-size: 2px;
    inline-size: 10em;
    position: relative;
    transform: translateZ(0);
    vertical-align: middle;
}

@keyframes gformLoader {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.gform_validation_errors {
    display: none !important;
}

/* 1. Button becomes the positioning context, and native iOS styling is off */
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"] {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    overflow: visible;
    min-width: 11rem;            /* stops the button resizing mid-submit */
}

/* 2. Keep the label visible during submission */
.gform_wrapper .gform_footer .gform_button[disabled],
.gform_wrapper .gform_footer input[type="submit"][disabled],
.gform_wrapper .gform_footer button[type="submit"][disabled],
.gform_wrapper .gform_footer [aria-busy="true"],
.gform_wrapper .gform_footer .gform-button--pending {
    color: #fff !important;                    /* use your button text colour */
    -webkit-text-fill-color: #fff !important;  /* the actual iOS fix */
    opacity: 1 !important;
    font-size: inherit !important;
    text-indent: 0 !important;
    text-shadow: none;
    cursor: wait;
}

/* 3a. Loader rendered inside the button (GF theme framework / orbital) */
/* .gform_wrapper .gform_footer .gform-loader,
.gform_wrapper .gform_footer .gform_button[disabled]::after {
    position: absolute;
    right: 1rem;
    left: auto;
    margin: 0 !important;
} */

/* 3b. Classic AJAX spinner, which is a sibling AFTER the button */
.gform_wrapper .gform_footer {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.gform_wrapper .gform_footer .gform_ajax_spinner {
    margin: 0 !important;
    flex: 0 0 auto;
}

.e-load-more-spinner svg path {
    fill: var(--ink) !important;
}

.elementor-menu-toggle{padding: 0;}

@media (max-width: 767.98px) {
    .fin-moment__col--moving:before{position:absolute;content:"";width:1px;top:1px;bottom:0;left:-1px;background-color:#AEB6C1;}
}


/* ---------- 3b. Team bio popup: loading skeleton ----------
   assets/js/main.js puts .is-loading on the dialog from the moment it opens until
   the photo and the bio (REST) have both loaded. Photo, name, role and bio show as
   grey blocks in their real boxes (the name and role keep their text for the
   dialog's aria-labelledby, only painted transparent), so nothing moves when the
   content appears. The bio's skeleton lines are aria-hidden; screen readers hear
   the visually hidden "Loading…" in the live region instead. */
.ebc-bio {
    --bio-skeleton: var(--line);
    --bio-shine: var(--surface);

    & .ebc-bio__img { transition: opacity var(--ease); }
    & .ebc-bio__sr {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
    }
    & .ebc-bio__lines { display: flex; flex-direction: column; gap: calc(var(--f18) * var(--bodyLh) - 1em); }
    & .ebc-bio__line { display: block; height: 1em; }
    & .ebc-bio__line:last-child { width: 60%; }
}
.ebc-bio.is-loading {
    & .ebc-bio__img { opacity: 0; }
    & .ebc-bio__name,
    & .ebc-bio__role {
        width: fit-content;
        max-width: 100%;
        color: transparent;
    }
    & .ebc-bio__media,
    & .ebc-bio__name,
    & .ebc-bio__role,
    & .ebc-bio__line {
        background: linear-gradient(90deg, var(--bio-skeleton) 40%, var(--bio-shine) 50%, var(--bio-skeleton) 60%) 0 0 / 300% 100% var(--bio-skeleton);
        animation: ebcBioSkeleton 1.4s linear infinite;
    }
}
@keyframes ebcBioSkeleton {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ebc-bio.is-loading :is(.ebc-bio__media, .ebc-bio__name, .ebc-bio__role, .ebc-bio__line) { animation: none; }
}

/* ---------- 3c. Team: LinkedIn in the bio popup, black-and-white photos ----------
   LinkedIn: assets/js/main.js builds the icon link under the role from the card's icon
   (Team — Card, ACF field ebc_linkedin); a member without one has no LinkedIn markup in
   the popup. Same look as the card icon: 24px, text colour, primary on hover. The dialog
   sits outside .elementor, so the Kit's link colours are reset here.
   While the popup loads, the icon keeps its space but is not painted (nothing moves). */
.ebc-bio {
    & .ebc-bio__linkedin,
    & .ebc-bio__linkedin:is(:hover, :focus, :focus-visible, :active) {
        display: block;
        width: fit-content;
        margin-top: var(--sp16);
        color: var(--text);
        line-height: 0;
        text-decoration: none;
        transition: var(--transition);
    }
    & .ebc-bio__linkedin:hover { color: var(--primary); }
    & .ebc-bio__linkedin svg { display: block; }
}
.ebc-bio.is-loading .ebc-bio__linkedin { visibility: hidden; }

/* Popup photo: black and white like the cards, its own colour while the pointer is on it.
   The filter sits on the <figure>, so the loading skeleton and the photo fade are untouched. */
/* .ebc-bio .ebc-bio__media {
    filter: grayscale(1);
    transition: filter .45s ease;
} */
@media (hover: hover) {
    .ebc-bio .ebc-bio__media:hover { filter: grayscale(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ebc-bio .ebc-bio__media { transition: none; }
}

/* Team cards (About "Our team"): photos are black and white and turn to their own colour
   on the same hover / keyboard focus that zooms them (Team — Card custom CSS). One image
   per member: the effect is a CSS filter on the photo widget, so the client uploads the
   colour photo only. The filter sits on the widget, not the <img>, so the zoom's transition
   on the <img> is left as it is. Touch screens (no hover) keep the black-and-white photo. */
.elementor [data-team-card] [data-team-photo] {
    filter: grayscale(1);
    transition: filter .45s ease;
}
.team-card__linkedin .elementor-icon svg path {
    transition: all 0.3s ease-in-out;
}
@media (hover: hover) {
    .elementor [data-team-card] [data-team-photo]:hover,
    .elementor [data-team-card]:has([data-team-name] a:hover) [data-team-photo] { filter: grayscale(0); }
}
.elementor [data-team-card]:has([data-team-name] a:focus-visible) [data-team-photo] { filter: grayscale(0); }
@media (prefers-reduced-motion: reduce) {
    .elementor [data-team-card] [data-team-photo] { transition: none; }
}

.news-latest__tabs .e-filter {
    row-gap: 0;
}


/* ==========================================================================
   Borrowing Base Pro page (page 430, /borrowing-base-pro/)
   Moved out of Elementor (Page Settings and element Custom CSS) on 2026-10-23.
   Scoped to this page with body.page-id-430. Fonts and sizes stay in Site Settings > Global Fonts ("BBP · ...");
   spacing values equal to a theme token use it (--spN); the rest are BBP variables defined here.
   ========================================================================== */
/* Borrowing Base Pro: page tokens. Fonts, sizes and tracking are Site Settings > Global Fonts "BBP · ..." */
body.page-id-430 {
    --bbp-fw-strong: 700;              /* buttons, some eyebrows and paragraphs are bold on desktop */
    --bbp-see-width: 1104px;           /* What you see: inner content width (box grows, content does not) */
    --bbp-cta-width: 1200px;           /* Get started: inner content width */
    --bbp-shot-ratio: 536 / 347;       /* portal screenshots: image box of the design */
    --bbp-video-ratio: 16 / 9;
    --bbp-play-size: 112px;
    --bbp-play-lift: 28px;             /* play button sits above the frame centre */
    --bbp-caption-gap: 62px;           /* frame centre to the caption under the play button */
    --bbp-tm-size: .263em;             /* ™ after "pro": 40px at 152px */
    --bbp-tm-rise: -1.525em;
    --bbp-pro-shift: .008em;            /* "pro" baseline vs the sans line above */
}
@media (max-width: 767.98px) {
    body.page-id-430 {
        --bbp-fw-strong: 400;          /* BBP-Mobile.pdf sets these in the regular weight */
        --bbp-video-ratio: 393 / 260;
    }
}

/* Layout tokens: every spacing / size value of the page's Elementor controls (generated). */
body.page-id-430 {
    /* 1 Hero */
    --bbp-hero-p-t: 102px;
    --bbp-hero-grid-m-t: 111.5px;
    --bbp-hero-text-p-b: 25.5px;
    --bbp-hero-title-m-t: 35.5px;
    --bbp-hero-title-w: 450px;
    --bbp-hero-lead-m-t: var(--sp32);
    --bbp-hero-lead-w: 450px;
    --bbp-hero-actions-m-t: var(--sp32);
    --bbp-btn-bw: 1px;
    --bbp-btn-pad-y: 13px;

    /* 2 After close */
    --bbp-expect-p-x: var(--boxInset);
    --bbp-expect-m-t: calc(117px * var(--secScale));
    --bbp-expect-box-p-x: calc(var(--gutter) - var(--boxInset));
    --bbp-expect-box-p-t: calc(var(--sp128) * var(--secScale));
    --bbp-expect-box-p-b: calc(144px * var(--secScale));
    --bbp-expect-title-m-t: 28.5px;
    --bbp-expect-text-m-t: 23px;
    --bbp-expect-text-w: 552px;

    /* 3 Built for you */
    --bbp-roles-p-t: calc(143px * var(--secScale));
    --bbp-roles-p-b: calc(108.5px * var(--secScale));
    --bbp-roles-head-m-l: 38px;
    --bbp-roles-title-m-t: 23.5px;
    --bbp-roles-title-w: 770px;
    --bbp-roles-text-m-t: 19px;
    --bbp-roles-text-w: 490px;
    --bbp-roles-list-m-t: 147px;
    --bbp-roles-list-m-l: var(--sp12);
    --bbp-roles-list-gap-row: 53px;
    --bbp-roles-list-gap-col: 53px;
    --bbp-role-p-l: var(--sp24);
    --bbp-role-bw-l: 2px;
    --bbp-role-text-m-t: 0.5px;
    --bbp-role-text-w: 650px;

    /* 4 How it works */
    --bbp-steps-p-b: calc(85px * var(--secScale));
    --bbp-steps-rule-m-b: 114.5px;
    --bbp-steps-rule-h: 1px;
    --bbp-steps-grid-p-x: var(--sp48);
    --bbp-steps-grid-cols: minmax(0, 1fr) 524px;
    --bbp-steps-title-m-t: 33.3px;
    --bbp-steps-title-w: 470px;
    --bbp-steps-text-m-t: 37.8px;
    --bbp-steps-text-w: 400px;
    --bbp-steps-list-m-t: 212.5px;
    --bbp-steps-list-bw-b: 2px;
    --bbp-step-p-t: 22px;
    --bbp-step-p-b: 28.5px;
    --bbp-step-bw-t: 2px;
    --bbp-step-num-w: 40px;
    --bbp-step-num-h: 40px;
    --bbp-step-body-m-t: -5px;
    --bbp-step-body-w: auto;
    --bbp-step-text-m-t: 9.9px;

    /* 5 Tutorial + video */
    --bbp-tut-head-p-t: calc(var(--sp64) * var(--secScale));
    --bbp-tut-head-p-b: 93.5px;
    --bbp-tut-head-gap-row: var(--sp12);
    --bbp-tut-head-cols: minmax(0, 1fr) 400px;
    --bbp-tut-head-maxw: 1200px;
    --bbp-tut-title-m-t: var(--sp6);
    --bbp-tut-heading-m-t: 20.5px;
    --bbp-tut-heading-w: 450px;
    --bbp-tut-text-w: 380px;
    --bbp-btn-m-t: 23.5px;
    --bbp-tut-note-m-t: 23px;

    /* 6 What comes back */
    --bbp-returns-p-t: calc(166px * var(--secScale));
    --bbp-returns-p-b: calc(163px * var(--secScale));
    --bbp-ret-inner-p-x: var(--sp48);
    --bbp-ret-title-m-t: 19.5px;
    --bbp-ret-title-w: 440px;
    --bbp-ret-rule-m-t: 54px;
    --bbp-ret-rule-h: 4px;
    --bbp-ret-grid-m-t: var(--sp32);
    --bbp-ret-grid-gap-row: var(--sp40);
    --bbp-ret-next-word-m-t: -21.5px;
    --bbp-ret-next-word-w: 230px;
    --bbp-ret-next-text-m-t: 16.5px;
    --bbp-ret-next-text-w: 280px;
    --bbp-ret-card-fig-w: 132px;
    --bbp-ret-card-fig-h: 152px;
    --bbp-ret-card-label-w: 205px;
    --bbp-ret-card-rule-m-t: 23px;
    --bbp-ret-card-rule-h: 2px;
    --bbp-ret-card-text-m-t: 14px;
    --bbp-ret-card-text-w: 260px;
    --bbp-ret-card-m-t: initial;

    /* 7 Client story */
    --bbp-story-p-t: calc(203.5px * var(--secScale));
    --bbp-story-p-b: calc(102.5px * var(--secScale));
    --bbp-story-mark-w: 551px;
    --bbp-story-mark-x: -130px;
    --bbp-story-mark-y: -10px;
    --bbp-story-body-m-l: 400px;
    --bbp-story-body-w: min(800px, calc(100% - 400px));
    --bbp-story-quote-m-t: 36.5px;
    --bbp-story-quote-w: 800px;
    --bbp-story-name-m-t: 33px;
    --bbp-story-meta-m-t: var(--sp6);

    /* 8 What you see */
    --bbp-see-p-x: var(--boxInset);
    --bbp-see-box-p-x: calc(var(--gutter) + var(--sp48) - var(--boxInset));
    --bbp-see-box-p-t: calc(107.5px * var(--secScale));
    --bbp-see-box-p-b: calc(128.5px * var(--secScale));
    --bbp-see-head-gap-row: var(--sp32);
    --bbp-see-head-cols: minmax(0, 1fr) 524px;
    --bbp-see-heading-m-t: 19.6px;
    --bbp-see-heading-w: 514px;
    --bbp-see-text-w: 524px;
    --bbp-see-cards-m-t: 55.5px;
    --bbp-see-cards-gap-row: var(--sp40);
    --bbp-see-card-rule-m-t: 18px;
    --bbp-see-card-rule-h: 2px;
    --bbp-see-card-eyebrow-m-t: 21px;
    --bbp-see-card-title-m-t: 7.5px;
    --bbp-see-card-text-m-t: 5.7px;
    --bbp-see-card-text-w: 476px;

    /* 9 Get started */
    --bbp-cta-p-x: var(--boxInset);
    --bbp-cta-m-t: var(--sp40);
    --bbp-cta-box-p-x: calc(var(--gutter) - var(--boxInset));
    --bbp-cta-box-p-t: calc(134px * var(--secScale));
    --bbp-cta-box-p-b: calc(165px * var(--secScale));
    --bbp-cta-box-gap-row: var(--sp40);
    --bbp-cta-box-cols: 1fr 548px;
    --bbp-cta-head-w: min(100%, 520px);
    --bbp-cta-title-m-t: 3.5px;
    --bbp-cta-title-w: 520px;
    --bbp-cta-body-p-t: 39px;
    --bbp-cta-text-w: 500px;
    --bbp-cta-btn-m-t: 25.5px;
}
@media (max-width: 1365.98px) {
    body.page-id-430 {
        --bbp-steps-grid-cols: minmax(0, 1fr) minmax(0, 1fr);
    }
}
@media (max-width: 1199.98px) {
    body.page-id-430 {
        --bbp-steps-grid-p-x: 0px;
        --bbp-ret-grid-gap-row: var(--sp48);
        --bbp-story-body-m-l: 320px;
        --bbp-story-body-w: calc(100% - 320px);
        --bbp-cta-box-cols: 1fr 1fr;
    }
}
@media (max-width: 991.98px) {
    body.page-id-430 {
        --bbp-hero-text-p-b: 0px;
        --bbp-hero-lead-w: 100%;
        --bbp-roles-head-m-l: 0px;
        --bbp-roles-list-m-t: var(--sp88);
        --bbp-roles-list-m-l: 0px;
        --bbp-role-text-w: 100%;
        --bbp-steps-grid-cols: minmax(0, 1fr);
        --bbp-steps-text-w: 100%;
        --bbp-steps-list-m-t: var(--sp48);
        --bbp-tut-head-cols: minmax(0, 1fr);
        --bbp-ret-inner-p-x: 0px;
        --bbp-story-mark-w: 400px;
        --bbp-story-body-m-l: 200px;
        --bbp-story-body-w: calc(100% - 200px);
        --bbp-see-box-p-x: calc(var(--gutter) - var(--boxInset));
        --bbp-see-box-p-t: var(--sectionGap);
        --bbp-see-box-p-b: var(--sectionGap);
        --bbp-see-head-cols: minmax(0, 1fr);
        --bbp-see-card-text-w: 100%;
    }
}
@media (max-width: 767.98px) {
    body.page-id-430 {
        --bbp-hero-p-t: 65px;
        --bbp-hero-grid-m-t: 36.5px;
        --bbp-hero-title-m-t: 38.5px;
        --bbp-hero-title-w: 320px;
        --bbp-hero-lead-m-t: 31px;
        --bbp-hero-actions-m-t: 31.5px;
        --bbp-expect-p-x: 0px;
        --bbp-expect-m-t: calc(var(--sp64) * var(--secScale));
        --bbp-expect-box-p-x: var(--gutter);
        --bbp-expect-box-p-t: calc(69.5px * var(--secScale));
        --bbp-expect-box-p-b: calc(90.5px * var(--secScale));
        --bbp-expect-title-m-t: 30.5px;
        --bbp-expect-text-m-t: 47.5px;
        --bbp-expect-text-w: 100%;
        --bbp-roles-p-t: calc(var(--sp92) * var(--secScale));
        --bbp-roles-p-b: calc(var(--sp92) * var(--secScale));
        --bbp-roles-title-w: 100%;
        --bbp-roles-text-w: 100%;
        --bbp-roles-list-m-t: var(--sp64);
        --bbp-roles-list-gap-row: var(--sp48);
        --bbp-roles-list-gap-col: var(--sp48);
        --bbp-role-p-l: var(--sp16);
        --bbp-steps-p-b: calc(77.5px * var(--secScale));
        --bbp-steps-rule-m-b: var(--sp92);
        --bbp-steps-title-m-t: 20.5px;
        --bbp-steps-title-w: 100%;
        --bbp-steps-text-m-t: 14.5px;
        --bbp-steps-list-m-t: 38px;
        --bbp-step-p-b: 22.5px;
        --bbp-step-body-m-t: -2px;
        --bbp-step-body-w: calc(100% - 64px);
        --bbp-step-text-m-t: var(--sp6);
        --bbp-tut-head-p-t: calc(54px * var(--secScale));
        --bbp-tut-head-p-b: 67px;
        --bbp-tut-head-gap-row: 11px;
        --bbp-tut-title-m-t: 0px;
        --bbp-tut-heading-m-t: 21.5px;
        --bbp-tut-heading-w: 340px;
        --bbp-tut-text-w: 100%;
        --bbp-btn-m-t: 22.5px;
        --bbp-tut-note-m-t: 24.5px;
        --bbp-returns-p-t: calc(70px * var(--secScale));
        --bbp-returns-p-b: calc(43px * var(--secScale));
        --bbp-ret-title-m-t: var(--sp20);
        --bbp-ret-title-w: 340px;
        --bbp-ret-rule-m-t: 37px;
        --bbp-ret-grid-m-t: 0px;
        --bbp-ret-grid-gap-row: 13px;
        --bbp-ret-next-word-m-t: var(--sp16);
        --bbp-ret-next-word-w: 150px;
        --bbp-ret-next-text-m-t: 21.5px;
        --bbp-ret-next-text-w: 230px;
        --bbp-ret-card-fig-h: 132px;
        --bbp-ret-card-label-w: 125px;
        --bbp-ret-card-text-m-t: 13px;
        --bbp-ret-card-text-w: 100%;
        --bbp-ret-card-m-t: 27px;
        --bbp-story-p-t: calc(66px * var(--secScale));
        --bbp-story-p-b: calc(62px * var(--secScale));
        --bbp-story-mark-w: 157px;
        --bbp-story-mark-x: -8px;
        --bbp-story-mark-y: 0px;
        --bbp-story-body-m-l: 0px;
        --bbp-story-body-w: 100%;
        --bbp-story-quote-m-t: 37.5px;
        --bbp-story-quote-w: calc(100% - 5px);
        --bbp-story-name-m-t: var(--sp32);
        --bbp-story-meta-m-t: 7px;
        --bbp-see-p-x: var(--sp16);
        --bbp-see-box-p-x: var(--sp16);
        --bbp-see-box-p-t: calc(54px * var(--secScale));
        --bbp-see-box-p-b: calc(var(--sp48) * var(--secScale));
        --bbp-see-head-gap-row: var(--sp24);
        --bbp-see-heading-m-t: 20.5px;
        --bbp-see-heading-w: 300px;
        --bbp-see-text-w: 100%;
        --bbp-see-cards-m-t: 38px;
        --bbp-see-cards-gap-row: 31px;
        --bbp-see-card-title-m-t: 9.5px;
        --bbp-see-card-text-m-t: 5px;
        --bbp-cta-p-x: 0px;
        --bbp-cta-m-t: var(--sp32);
        --bbp-cta-box-p-x: var(--gutter);
        --bbp-cta-box-p-t: calc(70px * var(--secScale));
        --bbp-cta-box-p-b: calc(65px * var(--secScale));
        --bbp-cta-box-gap-row: 23px;
        --bbp-cta-box-cols: 1fr;
        --bbp-cta-head-w: 100%;
        --bbp-cta-title-m-t: 22.5px;
        --bbp-cta-title-w: 100%;
        --bbp-cta-body-p-t: 0px;
        --bbp-cta-text-w: 100%;
    }
}

/* Desktop-bold / mobile-regular text (BBP.pdf vs BBP-Mobile.pdf): add the class "bbp-strong" in
   Advanced > CSS Classes of a heading, text or button widget. */
body.page-id-430 .elementor-element.bbp-strong,
body.page-id-430 .elementor-element.bbp-strong p,
body.page-id-430 .elementor-element.bbp-strong .elementor-heading-title,
body.page-id-430 .elementor-element.bbp-strong .elementor-button { font-weight: var(--bbp-fw-strong); }

/* "pro" in the BBP serif italic global, on its own line; ™ hangs past the right edge */
body.page-id-430 .elementor-element.bbp-hero__brand .elementor-heading-title em { display: block; margin-top: var(--bbp-pro-shift);
    /* font-family: var(--e-global-typography-bbpitalic-font-family), serif; */
    font-family: var(--e-global-typography-display186-font-family), serif;
    font-weight: var(--e-global-typography-bbpitalic-font-weight);
    font-style: var(--e-global-typography-bbpitalic-font-style);
    letter-spacing: var(--e-global-typography-bbpitalic-letter-spacing); }
body.page-id-430 .elementor-element.bbp-hero__brand .elementor-heading-title sup { font-size: var(--bbp-tm-size); line-height: 0; vertical-align: baseline;
    position: relative; top: var(--bbp-tm-rise); margin-right: -1em; font-style: normal; letter-spacing: 0; }

/* Step numbers count the items: duplicate, delete or drag a step and the squares renumber.
   The square is each item's first container; the digit uses the Global Font 'BBP · Label 16 bold'. */
body.page-id-430 .elementor-element.bbp-steps__list { counter-reset: bbp-step; }
body.page-id-430 .elementor-element.bbp-steps__list > .e-con { counter-increment: bbp-step; }
body.page-id-430 .elementor-element.bbp-steps__list > .e-con > .e-con:first-child::before {
    content: counter(bbp-step);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--e-global-typography-bbplabel16-font-family), sans-serif;
    font-size: var(--e-global-typography-bbplabel16-font-size);
    font-weight: var(--e-global-typography-bbplabel16-font-weight);
    line-height: 1;
    color: var(--e-global-color-white);
}

body.page-id-430 .elementor-element.bbp-tutorial { scroll-margin-top: var(--header-h); }

/* Caption shows only over the poster: Elementor removes the image overlay when the
   video starts, so the label goes with it (play icon + label hidden, video plays in place) */
body.page-id-430 .elementor-element.bbp-tutorial__frame:not(:has(.elementor-custom-embed-image-overlay)) > .elementor-widget-heading { display: none; }

/* Play button sits --bbp-play-lift above the frame centre (design); no drop shadow on the round icon */
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-custom-embed-play { top: calc(50% - var(--bbp-play-lift)); }
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-custom-embed-play svg { width: var(--bbp-play-size); height: var(--bbp-play-size); filter: none; opacity: 1; }
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-custom-embed-play svg circle { transition: fill .25s ease; }
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-custom-embed-image-overlay:hover svg circle,
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-custom-embed-play:focus-visible svg circle { fill: var(--e-global-color-primary); }
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-wrapper { aspect-ratio: var(--bbp-video-ratio); }

/* Tutorial video (client QA #111): the poster stays full width; once playing, the box is full width and
   as tall as the window under the sticky header (or 16:9 when the screen is narrower than that, e.g. phones),
   and the whole frame shows inside it (contain, also in fullscreen) */
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-wrapper:not(:has(.elementor-custom-embed-image-overlay)) {
    aspect-ratio: auto;
    width: 100%;
    height: min(56.25vw, calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--header-h)));
    height: min(56.25vw, calc(100svh - var(--wp-admin--admin-bar--height, 0px) - var(--header-h)));
    background-color: #000;
}
body.page-id-430 .elementor-element.bbp-tutorial__video .elementor-wrapper:not(:has(.elementor-custom-embed-image-overlay)) video { width: 100%; height: 100%; }
body.page-id-430 .elementor-element.bbp-tutorial__video video,
body.page-id-430 .elementor-element.bbp-tutorial__video video:fullscreen { object-fit: contain; }

body.page-id-430 .elementor-element.bbp-tutorial__caption { pointer-events: none; }
body.page-id-430 .elementor-element.bbp-tutorial__caption .elementor-heading-title { font-weight: var(--bbp-fw-strong); }

body.page-id-430 .elementor-element.bbp-story__quote blockquote { margin: 0; padding: 0; border: 0; font: inherit; quotes: none; }

body.page-id-430 .elementor-element.bbp-see__img img { width: 100%; aspect-ratio: var(--bbp-shot-ratio); object-fit: cover; object-position: left top; }



/* ===================================================================

   4. ELEMENT STYLES NO ELEMENTOR CONTROL CAN SET

   Moved from the per-element Custom CSS (2026-11-05). Each block is keyed

   to the class in that element's Advanced → CSS Classes; the selector

   .elementor .elementor-element.<widget type>.<class> outranks Elementor's

   own per-element rules, so it behaves as the Custom CSS did.

   =================================================================== */

/* --- Counters: the $ prefix raised like a <sup> (Financing record, About + Why stats); level on phones --- */

.elementor .elementor-element.elementor-widget-counter.ebc-dollar .elementor-counter-number-wrapper { align-items: baseline; }

.elementor .elementor-element.elementor-widget-counter.ebc-dollar .elementor-counter-number-prefix {

    position: relative;

    inset-block-start: -.55em;

    font-size: .6em;

    line-height: 0;

}

@media (max-width: 767.98px) {

    .elementor .elementor-element.elementor-widget-counter.ebc-dollar .elementor-counter-number-prefix { inset-block-start: 0; font-size: 1em; line-height: inherit; }

}



/* --- Home Recent transactions: featured amount ($ stays raised on phones) --- */

.elementor .elementor-element.elementor-widget-counter.ebc-dollar-feature .elementor-counter-number-wrapper { align-items: baseline; }

.elementor .elementor-element.elementor-widget-counter.ebc-dollar-feature .elementor-counter-number-prefix {

    position: relative;

    inset-block-start: -.55em;

    font-size: .6em;

    line-height: 0;

}

@media (max-width: 374.98px) {

    .elementor .elementor-element.elementor-widget-counter.ebc-dollar-feature .elementor-counter-number-wrapper { font-size: var(--f168); }

}



/* --- Home Recent transactions: list amounts --- */

.elementor .elementor-element.elementor-widget-counter.ebc-dollar-row .elementor-counter-number-wrapper { align-items: baseline; }

.elementor .elementor-element.elementor-widget-counter.ebc-dollar-row .elementor-counter-number-prefix {

    position: relative;

    inset-block-start: -.65em;

    font-size: .6em;

    line-height: 0;

}



/* --- Home hero image: phone crop --- */

@media (max-width: 767px) { .elementor .elementor-element.elementor-widget-image.hero__img img { object-position: 21% 50%; } }



/* --- Home Who-we-serve items: 393px design measure (394-767 use the full width) --- */

/* 393px design measure; 394-767px use the full width (mobile control) */

@media (max-width: 393.98px) { .elementor .elementor-element.e-con.serve__item { --padding-right: max(0px, calc(100% - 290px - var(--sp32) - 4px)); } }



/* --- Home financing head: 393px design measure --- */

/* 393px design measure; 394-767px use the full width (mobile control) */

@media (max-width: 393.98px) { .elementor .elementor-element.e-con.financing__head { --width: min(100%, 300px); } }



/* --- CTA head (Home, Why): 393px design measure --- */

/* 393px design measure; 394-767px use the full width (mobile control) */

@media (max-width: 393.98px) { .elementor .elementor-element.e-con.cta__head--measure { --width: min(100%, 280px); } }



/* --- Financing solutions: deal amount title --- */

.elementor .elementor-element.elementor-widget-heading.fin-solutions__deal-title sup { position: static; font-size: .6em; line-height: 0; vertical-align: .55em; }



.elementor .elementor-element.elementor-widget-heading.fin-solutions__deal-title span { margin-inline: .03em .09em; }

.elementor .elementor-element.elementor-widget-heading.fin-solutions__deal-title .elementor-heading-title { white-space: nowrap; }

@media (max-width: 374.98px) { .elementor .elementor-element.elementor-widget-heading.fin-solutions__deal-title .elementor-heading-title { font-size: 42px; } }



/* --- Financing moment: big words on small phones --- */

@media (max-width: 374.98px) { .elementor .elementor-element.elementor-widget-heading.fin-moment__word .elementor-heading-title { font-size: 68px; } }
/* Same line box as the 88px word (88 x .8 = 70.4 vs 68 x .8 = 54.4), so the lists keep their place next to the mobile arrows. */
@media (max-width: 374.98px) { .elementor .elementor-element.elementor-widget-heading.fin-moment__word { padding-bottom: var(--sp16); } }



/* --- Financing industry carousel (carousel.js) --- */

/* strip height = cqi of this box (Image widget height control) */

.elementor .elementor-element.e-con.fin-industry__carousel { container-type: inline-size; }

/* slot order (data-pos set by carousel.js; -1 = just left, park = cloned rest) */

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="-1"] { order: -1; margin-inline-start: 0; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="0"] { order: 0; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="1"] { order: 1; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="2"] { order: 2; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="3"] { order: 3; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="4"] { order: 4; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="5"] { order: 5; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="6"] { order: 6; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-pos="park"] { order: 7; }

.elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track] > [data-pos] { transition: flex-grow .55s cubic-bezier(.05, .7, .5, 1), margin-inline-start .55s cubic-bezier(.05, .7, .5, 1); }

.elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track] > .is-jump { transition: none; }

@media (min-width: 768px) {

    .elementor .elementor-element.e-con.fin-industry__carousel :is([data-pos="0"], [data-pos="park"]) { margin-inline-start: 0; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="0"] { --flex-grow: 687; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="1"] { --flex-grow: 132; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="2"] { --flex-grow: 116; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="3"] { --flex-grow: 84; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="4"] { --flex-grow: 52; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="5"] { --flex-grow: 44; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-pos="6"] { --flex-grow: 36; }

}

@media (max-width: 767.98px) {

    /* one slide per step: the JS sets --carousel-shift, this eases it home */

    .elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track] > [data-pos] { transition: none; }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track] { transform: translateX(var(--carousel-shift, 0px)); transition: transform .55s cubic-bezier(.05, .7, .5, 1); }

    .elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track].is-jump { transition: none; }

}

@media (prefers-reduced-motion: reduce) {

    .elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track], .elementor .elementor-element.e-con.fin-industry__carousel [data-carousel-track] > * { transition: none !important; }

}



/* --- Financing industry carousel: caption + arrows (markup printed by the HTML widget / carousel.js) --- */

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] { display: flex; align-items: flex-start; justify-content: flex-end; gap: var(--sp6); }

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls][hidden] { display: none; }

/* caption added by carousel.js: every name in one grid cell, crossfading; zero layout height */

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] > p {

    display: grid; flex: 1 1 0; min-width: 0; block-size: 0; margin: 0 var(--sp24) 0 0; overflow: visible;

    font-family: var(--font-serif); font-size: var(--e-global-typography-h3-font-size); line-height: var(--lhUi);

    letter-spacing: var(--lsHeading); color: var(--primary);

}

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] > p > span { grid-area: 1 / 1; transition: opacity .55s cubic-bezier(.05, .7, .5, 1); background-color: var(--surface); color: var(--primary);}

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] > p > .is-out { opacity: 0; }

/* arrow buttons (reset the Kit's Theme Style button on every state) */

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] button,

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] button:focus {

    display: grid; flex: none; place-items: center; width: 38px; height: 38px; padding: 0;

    border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--primary);

    font: inherit; cursor: pointer; transition: var(--transition);

}

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] button:hover { background: var(--ink); color: var(--white); }

.elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] svg { display: block; }

@media (max-width: 767.98px) {

    .elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] > p { margin-top: calc(var(--sp4) - 1px); font-size: var(--f24); }

}

@media (prefers-reduced-motion: reduce) {

    .elementor .elementor-element.elementor-widget-html.fin-industry__controls [data-carousel-controls] > p > span { transition: none !important; }

}



/* --- Who We Serve intro tabs: arrow size + phone stacking --- */

/* Arrow at its 13 x 15 size (Button has no icon-size control: Elementor sets the SVG to 1em) */

.elementor .elementor-element.e-con.wws-intro__tabs .elementor-button-icon svg { width: 13px; }

/* Phones: label over the arrow, 4px apart (Icon Position offers start / end only; the icon comes

   first in the DOM, hence column-reverse) */

@media (max-width: 767.98px) {

    .elementor .elementor-element.e-con.wws-intro__tabs .elementor-widget-button .elementor-button .elementor-button-content-wrapper {

        flex-direction: column-reverse;

        align-items: center;

        gap: var(--sp4);

    }

}



/* --- Who We Serve audiences: anchor offset under the sticky header --- */

.elementor .elementor-element.e-con.wws-audience { scroll-margin-top: var(--header-h); }



/* --- Who We Serve audiences: big words on small phones --- */

/* Small phones (<=374.98px, below Elementor's smallest breakpoint): "Borrowers" fits at 320 */

@media (max-width: 374.98px) {

    .elementor .elementor-element.elementor-widget-heading.wws-audience__word p.elementor-heading-title { font-size: 68px; }

}



/* --- Who We Serve audiences: phone crop 1 --- */

@media (max-width: 767px) { .elementor .elementor-element.elementor-widget-image.wws-audience__img--1 img { object-position: 31% 50%; } }



/* --- Who We Serve audiences: phone crop 3 --- */

@media (max-width: 767px) { .elementor .elementor-element.elementor-widget-image.wws-audience__img--3 img { object-position: 58% 50%; } }



/* --- Why Eclipse timeline: last-baseline alignment (tablet up) --- */

@media (min-width: 768px) { .elementor .elementor-element:is(.elementor-widget-heading, .elementor-widget-text-editor).why-timeline__base { align-self: last baseline; } }



/* --- About careers title: italic accent line --- */

/* the italic accent line of the title (<span><em>) is primary */

.elementor .elementor-element.elementor-widget-heading.about-careers__title .elementor-heading-title span { color: var(--e-global-color-primary); }



/* --- News intro title: accent line --- */

.elementor .elementor-element.elementor-widget-heading.news-intro__title span { color: var(--e-global-color-primary); }

@media (min-width: 768px) { .elementor .elementor-element.elementor-widget-heading.news-intro__title span { display: block; } }



/* --- News category filter buttons --- */

.elementor .elementor-element.elementor-widget-taxonomy-filter.news-latest__filter .e-filter-item { cursor: pointer; }

.elementor .elementor-element.elementor-widget-taxonomy-filter.news-latest__filter .e-filter-item:is(:hover, :focus) {

    background-color: transparent;

    color: var(--e-filter-hover-text-color);

}



/* --- News category select (phones; printed by [ebc_news_select]) --- */

/* the <select> printed by [ebc_news_select] (no control reaches shortcode markup) */

.elementor .elementor-element.elementor-widget-shortcode.news-latest__select select {

    field-sizing: content;

    display: block;

    max-width: 100%;

    margin: 0;

    padding: 13px calc(var(--sp48) + var(--sp4)) 13px var(--sp24);

    background: transparent;

    border: 1px solid var(--e-global-color-text);

    border-radius: 0;

    font-family: var(--font-sans);

    font-size: var(--f16);

    line-height: var(--lhUi);

    color: var(--e-global-color-text);

    appearance: none;

    cursor: pointer;

}

.elementor .elementor-element.elementor-widget-shortcode.news-latest__select svg {

    position: absolute;

    inset-block-start: 50%;

    inset-inline-end: calc(var(--sp24) + var(--sp4));

    color: var(--e-global-color-text);

    transform: translateY(-50%);

    pointer-events: none;

}



/* --- News list loop grid: Load More / loading states --- */

/* Every card keeps its own bottom padding + rule, also the last one (with or without Load More).

   Pro's (empty) "no more posts" message turns display:block with the 48px load-more spacing once

   the last page is in: it would add a gap under the last card */

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid .e-load-more-message:empty { display: none; }

/* empty category (HTML .news-list__empty): the rule under the message */

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid .e-loop-nothing-found-message { border-bottom: 1px solid var(--e-global-color-line); }



/* Loading indicators (no layout shift: both are absolutely positioned).

   1. Load More: Pro's Spinner (control above) sits inside the button and spins while the next page

      loads (.e-load-more-pagination-loading), but Pro only reveals it for the legacy

      .elementor-widget-container markup, not for this (optimized) markup. Reveal it, beside the

      button, and keep the button label visible. */

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid .elementor-button { position: relative; }

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid .e-load-more-spinner {

    position: absolute; inset-block-start: 50%; inset-inline-start: calc(100% + var(--sp16));

    margin: 0; font-size: 24px; line-height: 0; transform: translateY(-50%); pointer-events: none;

}

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid.e-load-more-pagination-loading .e-load-more-spinner svg { display: block; }

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid.e-load-more-pagination-loading .elementor-button-content-wrapper { visibility: visible; }

/* 2. Category filter (buttons or the mobile select): Pro marks the grid .e-loading-overlay while

      it fetches the new list (and removes it afterwards, also on errors). A ring spinner in the

      first card's empty top padding, centred. */

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid.e-loading-overlay::after {

    content: ""; position: absolute; z-index: 2;

    inset-block-start: var(--sp8); inset-inline-start: calc(50% - 16px);

    width: 32px; height: 32px; box-sizing: border-box;

    border: 2px solid var(--e-global-color-text); border-block-start-color: transparent; border-radius: 50%;

    animation: eicon-spin .8s linear infinite;

}

/* Pro's filter drops the "all loaded" state as soon as a filter is clicked; while the new list loads

   the hidden Load More button stays hidden (data-ebc-list-ended, set by the theme's main.js) */

.elementor .elementor-element.elementor-widget-loop-grid.news-latest__grid[data-ebc-list-ended] .e-loop__load-more { display: none; }



/* --- Contact address: e-mail link --- */

.elementor .elementor-element.elementor-widget-text-editor.contact__address-text a[href^="mailto:"] {

    text-decoration: underline;

    text-underline-offset: 3px;

    text-decoration-thickness: 1px;

}



/* --- Legal pages body copy (Privacy, Terms, Accessibility, Regulatory) --- */

/* Paragraph Spacing control gives every <p> a 1lh bottom margin (sibling margins collapse

   = the HTML's p + p {margin-top:1lh}); the widget is a flex item, so the last block's

   margin would not collapse out of it. */

.elementor .elementor-element.elementor-widget-text-editor.legal__body > :last-child { margin-block-end: 0; }



/* Section headings pasted into the copy (HTML: h2 40px above, 32px; Kit h2 is 48).

   No extra gap below a heading: the next block sits on its line box, as in the HTML. */

.elementor .elementor-element.elementor-widget-text-editor.legal__body h2 { margin: var(--sp40) 0 var(--sp20); font-size: var(--e-global-typography-h3-font-size); }

.elementor .elementor-element.elementor-widget-text-editor.legal__body h3 { margin: var(--sp32) 0 0; }

/* A leading heading: in the HTML its 40px margin collapses into the body's 48px offset

   (36px on mobile -> 40). The widget is a flex item (no collapsing), so set it here. */

.elementor .elementor-element.elementor-widget-text-editor.legal__body > :is(h2, h3):first-child { margin-top: 0; }

@media (max-width: 767.98px) {

    .elementor .elementor-element.elementor-widget-text-editor.legal__body > h2:first-child { margin-top: calc(var(--sp40) - var(--sp32) - var(--sp4)); }

}



/* Lists (the theme reset removes bullets) */

.elementor .elementor-element.elementor-widget-text-editor.legal__body :is(ul, ol) { margin: 0 0 1lh; padding-inline-start: 1.25em; }

.elementor .elementor-element.elementor-widget-text-editor.legal__body ul { list-style: disc; }

.elementor .elementor-element.elementor-widget-text-editor.legal__body ol { list-style: decimal; }

.elementor .elementor-element.elementor-widget-text-editor.legal__body li + li { margin-top: var(--sp8); }

.elementor .elementor-element.elementor-widget-text-editor.legal__body li::marker { color: var(--primary); }

.elementor .elementor-element.elementor-widget-text-editor.legal__body :is(strong, b) { font-weight: 700; }



/* Links: colour + hover colour are controls; the underline fades on hover (HTML). */

.elementor .elementor-element.elementor-widget-text-editor.legal__body a { text-decoration: underline; }

.elementor .elementor-element.elementor-widget-text-editor.legal__body a:is(:hover, :focus-visible) { text-decoration-color: transparent; }



/* --- Team card (loop item): photo zoom + name colour on hover --- */

.elementor .elementor-element.e-con.team-card [data-team-photo] a { overflow: hidden; }

.elementor .elementor-element.e-con.team-card [data-team-photo] img { transition: transform .45s ease; }

@media (hover: hover) {

    .elementor .elementor-element.e-con.team-card:has([data-team-photo] a:hover) [data-team-photo] img { transform: scale(1.04); }

    .elementor .elementor-element.e-con.team-card:has([data-team-name] a:hover) [data-team-photo] img { transform: scale(1.04); }

    .elementor .elementor-element.e-con.team-card:has([data-team-photo] a:hover) [data-team-name] a { color: var(--e-global-color-secondary); }

}

.elementor .elementor-element.e-con.team-card:has([data-team-name] a:focus-visible) [data-team-photo] img { transform: scale(1.04); }

.elementor .elementor-element.e-con.team-card [data-team-name] a:focus-visible { color: var(--e-global-color-secondary); }

@media (prefers-reduced-motion: reduce) {

    .elementor .elementor-element.e-con.team-card [data-team-photo] img { transition: none; transform: none !important; }

}



/* --- Team card photo: 384:280 crop --- */

/* the design crops every portrait to 384:280 on white (HTML .about-team__img); no Image control sets

   an aspect ratio. The link and image are blocks so no text strut adds height under the photo. */

.elementor .elementor-element.elementor-widget-image.team-card__photo a, .elementor .elementor-element.elementor-widget-image.team-card__photo img { display: block; }

.elementor .elementor-element.elementor-widget-image.team-card__photo img { aspect-ratio: 384 / 280; object-fit: cover; background-color: var(--white); }



/* --- News story: hero image --- */

.elementor .elementor-element.elementor-widget-image.news-story__img img { aspect-ratio: 2404 / 1342; object-fit: cover; }

@media (max-width: 767.98px) { .elementor .elementor-element.elementor-widget-image.news-story__img img { aspect-ratio: 658 / 366; } }



/* --- News story: body (post content) --- */

/* Story body = the post content (block editor HTML). No control sets paragraph / block spacing

   or styles the blocks inside the content, so: one blank body line between blocks (HTML

   .article__body p + p), headings / lists / quotes / images as the theme once styled them. */

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body > * { margin-block: 0; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body > * + * { margin-top: calc(var(--f18) * var(--bodyLh)); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body :is(h2, h3, h4) { font-family: var(--font-serif); font-weight: 400; line-height: var(--lhUi); letter-spacing: normal; text-transform: none; color: var(--ink); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body h2 { font-size: var(--e-global-typography-h3-font-size); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body h3 { font-size: var(--f24); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body h4 { font-size: var(--f20); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body :is(ul, ol) { margin-block: 0; padding-left: 1.25em; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body ul { list-style: disc; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body ol { list-style: decimal; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body li + li { margin-top: var(--sp6); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: var(--transition); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body a:hover { text-decoration-color: transparent; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body blockquote { margin-inline: 0; padding-left: var(--sp24); border-left: 2px solid var(--primary); }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body blockquote p { font-style: italic; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body figure { margin-inline: 0; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body img { width: 100%; height: auto; }

.elementor .elementor-element.elementor-widget-theme-post-content.news-story__body figcaption { margin-top: var(--sp8); font-family: var(--font-sans); font-size: var(--f14); color: var(--muted); }



/* --- News story: related section hides when empty --- */

.elementor .elementor-element.e-con.news-more:not(:has(.e-loop-item)) { display: none; }



/* --- News story: related list --- */

/* the related cards stack like the HTML list: no rule and no bottom padding under the last one

   (mobile keeps its 40) — :last-child has no control */

.elementor .elementor-element.elementor-widget-loop-grid.news-more__grid .e-loop-item:last-child > .e-con { border-bottom-width: 0; }

@media (min-width: 768px) {

    .elementor .elementor-element.elementor-widget-loop-grid.news-more__grid .e-loop-item:last-child > .e-con { padding-bottom: 0; }

}



/* --- News featured: photo --- */

.elementor .elementor-element.elementor-widget-image.news-feature__img img { aspect-ratio: 2404 / 1342; object-fit: cover; }

@media (max-width: 767.98px) { .elementor .elementor-element.elementor-widget-image.news-feature__img img { aspect-ratio: 658 / 660; } }



/* Linked photo (link = Post URL): the link clips a subtle zoom of the photo on hover / keyboard

   focus. The native "Grow" hover animation scales the whole widget 1.1x without clipping, so it

   can't do this. The widget itself must not clip (the link's focus ring would be cut off);

   hover is read on the widget so an overlay on it (ebc-grain) doesn't block the effect. */

.elementor .elementor-element.elementor-widget-image.news-feature__img a { display: block; overflow: hidden; }

.elementor .elementor-element.elementor-widget-image.news-feature__img img { transition: transform .45s ease; }

@media (hover: hover) { .elementor .elementor-element.elementor-widget-image.news-feature__img:hover img { transform: scale(1.04); } }

.elementor .elementor-element.elementor-widget-image.news-feature__img a:focus-visible img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {

    .elementor .elementor-element.elementor-widget-image.news-feature__img img { transition: none; }

    .elementor .elementor-element.elementor-widget-image.news-feature__img:hover img, .elementor .elementor-element.elementor-widget-image.news-feature__img a:focus-visible img { transform: none; }

}



/* --- News card: photo --- */

.elementor .elementor-element.elementor-widget-image.news-item__img img { aspect-ratio: 1176 / 656; object-fit: cover; }



/* Linked photo (link = Post URL): the link clips a subtle zoom of the photo on hover / keyboard

   focus. The native "Grow" hover animation scales the whole widget 1.1x without clipping, so it

   can't do this. The widget itself must not clip (the link's focus ring would be cut off);

   hover is read on the widget so an overlay on it (ebc-grain) doesn't block the effect. */

.elementor .elementor-element.elementor-widget-image.news-item__img a { display: block; overflow: hidden; }

.elementor .elementor-element.elementor-widget-image.news-item__img img { transition: transform .45s ease; }

@media (hover: hover) { .elementor .elementor-element.elementor-widget-image.news-item__img:hover img { transform: scale(1.04); } }

.elementor .elementor-element.elementor-widget-image.news-item__img a:focus-visible img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {

    .elementor .elementor-element.elementor-widget-image.news-item__img img { transition: none; }

    .elementor .elementor-element.elementor-widget-image.news-item__img:hover img, .elementor .elementor-element.elementor-widget-image.news-item__img a:focus-visible img { transform: none; }

}



/* --- News featured + card: Read more button with arrow --- */

/* One native Button = one link for the text and the arrow (icon after the text, 20px apart).

   Block-level flex: exactly one 20px text line (an inline-block button sits on the 22px body

   strut) that hugs its content, so the clickable box is the text + arrow only. */

.elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button { display: flex; width: fit-content; }

.elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button-content-wrapper { align-items: center; }

.elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button-icon svg { display: block; width: 15px; height: 13px; transition: transform .3s ease; }

/* hover / keyboard focus: the arrow nudges forward (transform = no layout shift); the underline

   fade comes from the ebc-link-underline utility like every text link */

@media (hover: hover) { .elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button:hover .elementor-button-icon svg { transform: translateX(4px); } }

.elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button:focus-visible .elementor-button-icon svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {

    .elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button-icon svg { transition: none; }

    .elementor .elementor-element.elementor-widget-button.ebc-arrow-btn .elementor-button:is(:hover, :focus-visible) .elementor-button-icon svg { transform: none; }

}



/* --- Header nav menu: row spacing, Client Login button, mobile drawer --- */

/* Header row (BBP.pdf at 1440): items 24px apart, 11px before Client Login, Client Login box 133 x 38

   (text + padding + 2px border). Stays one row from 1200px up: 1366-1439 items 16px apart;

   1200-1365 12px apart with 14px type (Global Font "Nav", laptop size). The drawer (<=1199) keeps its own button. */

.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav {

    --navGap: 24px;

    --navBtnGap: 11px;

    --navBtnPadY: 7.5px;

    --navBtnPadX: 12.4px;

}

@media (max-width: 1439.98px) { .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav { --navGap: 16px; } }

@media (max-width: 1365.98px) { .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav { --navGap: 12px; } }

.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu--main .elementor-nav-menu > li:last-child { margin-inline-start: calc(var(--navBtnGap) - var(--navGap)); align-self: center; }

.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu--main .elementor-nav-menu > li:last-child > .elementor-item { padding: var(--navBtnPadY) var(--navBtnPadX); }

/* Toggle icon as a block: no strut under the inline SVG, so the toggle is 44 x 44 */

.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-menu-toggle svg { display: block; }

/* Client Login = the menu's last item, drawn as the outlined button (header row + drawer) */

.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu > li:last-child > .elementor-item {

    padding: var(--sp8) calc(var(--sp24) - 1px);

    border: 2px solid var(--ink);

}

.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu > li:last-child > .elementor-item:is(:hover, :focus-visible) {

    background: var(--ink);

    color: var(--white);

}

@media (max-width: 1199px) {

    /* Drawer: the dropdown becomes a surface panel fixed under the header, inset by

       --boxInset, revealed top-down while its list slides 16px into place */

    .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu--dropdown.elementor-nav-menu__container {

        position: fixed;

        inset: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h)) var(--boxInset) auto;

        z-index: var(--z-modal);

        width: auto;

        max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - var(--header-h));

        margin: 0;

        padding: calc(var(--sp32) + var(--sp4) - var(--sp20) / 2) calc(var(--gutter) - var(--boxInset) + var(--sp16)) calc(var(--sp40) + var(--sp4));

        overflow-y: auto;

        visibility: hidden;

        transform: none;

        clip-path: inset(0 0 100% 0);

        transition: clip-path .35s ease, visibility 0s linear .35s;

    }

    .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {

        visibility: visible;

        clip-path: inset(0);

        transition: clip-path .35s ease;

    }

    .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu--dropdown .elementor-nav-menu {

        transform: translateY(calc(var(--sp16) * -1));

        transition: transform .35s ease;

    }

    .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container .elementor-nav-menu { transform: none; }

    .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu--dropdown li:last-child { margin-top: calc(var(--sp24) - var(--sp20) / 2); }

    .elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-nav-menu--dropdown li:last-child > .elementor-item { display: inline-flex; }

    /* Page under the open drawer: scroll lock on the root (html has overflow-x: clip, so a

       body lock would not reach the viewport) and a 60% ink overlay below the header */

    html:has(.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-menu-toggle.elementor-active) { overflow: hidden; }

    body:has(.elementor .elementor-element.elementor-widget-nav-menu.site-header__nav .elementor-menu-toggle.elementor-active)::after {

        position: fixed;

        inset: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h)) 0 0;

        z-index: calc(var(--z-sticky) - 1);

        background: var(--ink-60);

        pointer-events: none;

        content: "";

    }

}



/* --- Entrance animations (Motion Effects → Entrance Animation): a shorter 50px slide in .5s.

   Elementor's control sets the animation and its speed only, not the distance. Moved here from

   Elementor → Custom Code "Custom Animation" (id 395, now Draft) on 2026-11-05. --- */

@keyframes newfadeInLeft { from { opacity: 0; transform: translate3d(-50px, 0, 0); } to { opacity: 1; transform: none; } }

.fadeInLeft { animation-name: newfadeInLeft !important; animation-duration: .5s; }

@keyframes newfadeInRight { from { opacity: 0; transform: translate3d(50px, 0, 0); } to { opacity: 1; transform: none; } }

.fadeInRight { animation-name: newfadeInRight !important; animation-duration: .5s; }

@keyframes newfadeInUp { from { opacity: 0; transform: translate3d(0, 50px, 0); } to { opacity: 1; transform: none; } }

.elementor-element.fadeInUp { animation-name: newfadeInUp !important; animation-duration: .5s; }

@keyframes newfadeInDown { from { opacity: 0; transform: translate3d(0, -50px, 0); } to { opacity: 1; transform: none; } }

.fadeInDown { animation-name: newfadeInDown !important; animation-duration: .5s; }
