/* 
Theme Name: loanDepot Theme
Theme URI: https://loandepot.com
Description: loanDepot is a child theme of Hello Elementor
Author: CSTMR
Author URI: https://cstmr.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: loandepot
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/* General */

.e-n-menu-title-container:focus-visible,
.e-n-menu-dropdown-icon:focus-visible,
.elementor-nav-menu--main .elementor-item:focus-visible,
.elementor-nav-menu--main .elementor-sub-item:focus-visible {
  outline: 2px solid var(--e-global-color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

div#mainHeader,
.e-con.max-width {
    max-width: 1440px;
}

a {
    color: var(--e-global-color-text); /* overrides Elementor's pink */
}
a:active, a:hover {
    color: var(--e-global-color-primary);
}

.elementor-heading-title:is(h1, h2, h3, h4, h5, h6) span.purple01,
p span.purple01,
span.purple01 {
    color: var(--e-global-color-primary);
}

.elementor-heading-title:is(h1, h2, h3, h4, h5, h6) span.lime,
p span.lime,
span.lime {
    color: var(--e-global-color-6b79e4a);
}

h2.elementor-heading-title sup {
    font-size: 1rem;
    vertical-align: super;
}

h3.elementor-heading-title sup {
    font-size: 0.75rem;
    vertical-align: super;
}

h4.elementor-heading-title sup {
    font-size: 0.5rem;
    vertical-align: super;
}

span.elementor-heading-title sup {
    font-size: 0.5rem;
}





/* -- WYSIWYG editor styles -- */

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.6rem;
}

.elementor-widget-text-editor ul li, 
.elementor-widget-text-editor ol li, 
.elementor-widget-theme-post-content ul li, 
.elementor-widget-theme-post-content ol li {
    margin-block-end: 0.6rem;
}

.elementor-widget-text-editor a,
.elementor-widget-theme-post-content a {
    color: var(--e-global-color-accent);
    font-weight: var(--e-global-typography-primary-font-weight);
    transition: text-decoration-color 0.2s;
    text-decoration: underline solid var(--e-global-color-7376ee9);
}

.elementor-widget-text-editor a:hover,
.elementor-widget-theme-post-content a:hover {
    color: var(--e-global-color-accent);
    text-decoration-color: var(--e-global-color-accent);  
}

.elementor-widget-text-editor h2,
.elementor-widget-theme-post-content h2,
.elementor-widget-text-editor h3,
.elementor-widget-theme-post-content h3,
.elementor-widget-text-editor h4,
.elementor-widget-theme-post-content h4,
.elementor-widget-text-editor h5,
.elementor-widget-theme-post-content h5,
.elementor-widget-text-editor h6,
.elementor-widget-theme-post-content h6 {
    margin: 0;
}

.elementor-widget-text-editor p:has(+ span[id*="elementor-toc__heading"]),
.elementor-widget-text-editor p:has(+ h3),
.elementor-widget-text-editor p:has(+ h4),
.elementor-widget-text-editor h3:has(+ h4),
.elementor-widget-text-editor p:has(+ h2),
.elementor-widget-text-editor h2:has(+ p),
.elementor-widget-theme-post-content p:has(+ span[id*="elementor-toc__heading"]),
.elementor-widget-theme-post-content p:has(+ h3),
.elementor-widget-theme-post-content p:has(+ h4),
.elementor-widget-theme-post-content h3:has(+ h4),
.elementor-widget-theme-post-content p:has(+ h2),
.elementor-widget-theme-post-content h2:has(+ p) {
    margin-block-start: 1rem;
    margin-block-end: 1.8rem;
}

.elementor-widget-text-editor p:first-of-type:has(+ span[id*="elementor-toc__heading"]),
.elementor-widget-theme-post-content p:first-of-type:has(+ span[id*="elementor-toc__heading"]) {
    margin-block-start: 0;
}

.elementor-widget-text-editor h3:has(+ p),
.elementor-widget-theme-post-content h3:has(+ p),
.elementor-widget-text-editor h3:has(+ ul),
.elementor-widget-theme-post-content h3:has(+ ul),
.elementor-widget-text-editor h3:has(+ ol),
.elementor-widget-theme-post-content h3:has(+ ol)    {
    margin-block-end: 1.8rem;
}

.elementor-widget-text-editor h4:has(+ p),
.elementor-widget-theme-post-content h4:has(+ p),
.elementor-widget-text-editor h4:has(+ ul),
.elementor-widget-theme-post-content h4:has(+ ul),
.elementor-widget-text-editor h4:has(+ ol),
.elementor-widget-theme-post-content h4:has(+ ol)    {
    margin-block-end: 0.88rem;
}

.elementor-widget-text-editor p:has(+ h5),
.elementor-widget-text-editor h5:has(+ p),
.elementor-widget-theme-post-content p:has(+ h5),
.elementor-widget-theme-post-content h5:has(+ p) {
    margin-block-end: 1.4rem;
}

.elementor-widget-text-editor h2:has(+ p),
.elementor-widget-text-editor p:has(+ h2),
.elementor-widget-theme-post-content h2:has(+ p),
.elementor-widget-theme-post-content p:has(+ h2) {
    margin-block-end: 1.44rem;
}

.elementor-widget-text-editor h2:has(+ h2), 
.elementor-widget-theme-post-content h2:has(+ h2),
.elementor-widget-text-editor h2:has(+ h3), 
.elementor-widget-theme-post-content h2:has(+ h3),
.elementor-widget-text-editor h2:has(+ h4), 
.elementor-widget-theme-post-content h2:has(+ h4) {
    margin-block-end: 1.25rem;
}

.elementor-widget-text-editor h3:has(+ h2), 
.elementor-widget-theme-post-content h3:has(+ h2),
.elementor-widget-text-editor h3:has(+ h3), 
.elementor-widget-theme-post-content h3:has(+ h3),
.elementor-widget-text-editor h3:has(+ h4), 
.elementor-widget-theme-post-content h3:has(+ h4) {
    margin-block-end: 1rem;
}

.elementor-widget-text-editor h2,
.elementor-widget-theme-post-content h2 {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
    font-size: 2rem;
    line-height:  2.4rem; 
}

.elementor-widget-text-editor h3,
.elementor-widget-theme-post-content h3 {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
    font-size: 1.75rem;
    line-height: 2.1rem; 
}

.elementor-widget-text-editor h4,
.elementor-widget-theme-post-content h4 {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
    font-size: 1.5rem;
    line-height: 1.8rem;  
}

.elementor-widget-text-editor h5,
.elementor-widget-theme-post-content h5 {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
    font-size: 1.375rem;
    line-height: 1.75rem;
    letter-spacing: 0.03125rem;    
}

.elementor-widget-text-editor h6,
.elementor-widget-theme-post-content h6 {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
    font-size: 1.25rem;
    line-height: 1.5625rem; 
}

.wp-block-pullquote {
    padding: 2rem 0;
}

.wp-block-pullquote p {
    color: var(--e-global-color-primary);
    text-align: center;
    font-family: var(--e-global-typography-secondary-font-family);
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.925rem; /* 1.925rem */
}

.wp-block-pullquote cite {
    font-family: var(--e-global-typography-ff47080-font-family);
    font-weight: var(--e-global-typography-ff47080-font-weight);
    font-size: var(--e-global-typography-ff47080-font-size);
    line-height: var(--e-global-typography-ff47080-font-line-height);
    font-style: normal;
}


@media screen and (max-width: 767px) {
    .elementor-widget-text-editor a,
    .elementor-widget-theme-post-content a,
    .elementor-widget-text-editor h2,
    .elementor-widget-theme-post-content h2,
    .elementor-widget-text-editor h3,
    .elementor-widget-theme-post-content h3,
    .elementor-widget-text-editor h4,
    .elementor-widget-theme-post-content h4,
    .elementor-widget-text-editor h5,
    .elementor-widget-theme-post-content h5,
    .elementor-widget-text-editor h6,
    .elementor-widget-theme-post-content h6 {
        word-wrap: break-word;
    }    

    .elementor-widget-text-editor h2,
    .elementor-widget-theme-post-content h2 {
        font-size: 1.75rem;
        line-height:  2.1rem;
    }

    .elementor-widget-text-editor h3,
    .elementor-widget-theme-post-content h3 {
        font-size: 1.4375rem;
        line-height: 1.725rem; 
    }

    .elementor-widget-text-editor h4,
    .elementor-widget-theme-post-content h4 {
        font-size: 1.25rem;
        line-height: 1.75rem;  
    }

    .elementor-widget-text-editor h5,
    .elementor-widget-theme-post-content h5 {
        font-size: 1.1875rem;
        line-height: 1.6625rem;
        font-weight: 700;
    }

    .elementor-widget-text-editor h6,
    .elementor-widget-theme-post-content h6 {
        font-size: 1.125rem;
        line-height: 1.575rem; 
        font-weight: 700;
    }    
}



/* Buttons */

.elementor-kit-15 .elementor-widget-button.elementor-align-justify .elementor-button {
    padding-left: 1rem;
    padding-right: 1rem;
}

.no-tab-radius.elementor-widget-n-tabs > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"], 
.no-tab-radius.elementor-widget-n-tabs > .e-n-tabs[data-touch-mode='true'] > .e-n-tabs-heading > .e-n-tab-title[aria-selected="false"]:hover,
.no-tab-radius.elementor-widget-n-tabs > .e-n-tabs[data-touch-mode='false'] > .e-n-tabs-heading > .e-n-tab-title[aria-selected="false"]:hover,
.elementor-67 .elementor-element.elementor-element-49e2909.elementor-widget-n-tabs > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"], 
.elementor-67 .elementor-element.elementor-element-49e2909.elementor-widget-n-tabs > .e-n-tabs[data-touch-mode='true'] > .e-n-tabs-heading > .e-n-tab-title[aria-selected="false"]:hover,
.elementor-67 .elementor-element.elementor-element-49e2909.elementor-widget-n-tabs > .e-n-tabs[data-touch-mode='false'] > .e-n-tabs-heading > .e-n-tab-title[aria-selected="false"]:hover {
    border-radius: 0;
}


/*  Buttons - Secondary  */

.elementor-widget-button.button-secondary .elementor-button {
    background-color: var(--e-global-color-7376ee9);
    color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-secondary);
}

.elementor-widget-button.button-secondary .elementor-button svg path {
    stroke: var(--e-global-color-secondary);
}

.elementor-widget-button.button-secondary .elementor-button:hover,
.elementor-widget-button.button-secondary .elementor-button:active {
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-7376ee9);
    border-color: var(--e-global-color-secondary);
}

.elementor-widget-button.button-secondary .elementor-button:hover svg path,
.elementor-widget-button.button-secondary .elementor-button:active svg path {
    stroke: var(--e-global-color-7376ee9);
}


/*  Buttons - Secondary Transparent BG */

.elementor-widget-button.button-secondary.trans .elementor-button {
    background-color: transparent;
}

.elementor-widget-button.button-secondary.trans .elementor-button:hover,
.elementor-widget-button.button-secondary.trans .elementor-button:active {
    background-color: var(--e-global-color-secondary);
}

/*  Buttons - Text Link */

.elementor-widget-button.button-text-link .elementor-button {
    color: var(--e-global-color-accent);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    transition: text-decoration-color 0.2s;
    text-decoration: underline solid var(--e-global-color-7376ee9);
}

.elementor-widget-button.button-text-link .elementor-button:hover {
    background: transparent;
    text-decoration-color: var(--e-global-color-accent);
}




/* Homepage */

/* Hero */

.home-hero-images {
    background-position: right 5rem top !important;
}

@media screen and (max-width: 820px) {
    .home-hero-images {
        background-position: right 1rem top !important;
    }
}

/* 3 Path Buttons */

.large-icon-buttons a.elementor-button svg {
    width: 2.125rem;
}

.large-icon-buttons a.elementor-button span.elementor-button-content-wrapper {
    align-items: flex-end;
}

.large-icon-buttons a.elementor-button:hover svg {
    fill: var( --e-global-color-secondary ) !important;
}

.large-icon-buttons .large-button-stroke a.elementor-button:hover svg path {
    stroke: var(--e-global-color-7376ee9);
    fill: var( --e-global-color-secondary ) !important;
}


.large-icon-buttons .large-button-fill a.elementor-button:hover svg path {
    fill: var(--e-global-color-7376ee9);
}



/* Product Carousel */


.product-carousel .product-carousel-content {
  flex: 1;
}

.elementor-widget-loop-carousel .elementor-swiper-button.elementor-swiper-button-next:hover svg path, 
.elementor-widget-loop-carousel .elementor-swiper-button.elementor-swiper-button-prev:hover svg path {
    stroke: var(--e-global-color-secondary);
}



/* Product Pages */

#productTabs .elementor-widget-template {
    display: flex !important;
}

#productTabs .elementor-widget-template .elementor-template, 
#productTabs .elementor-widget-template .elementor-template > div,
#productTabs .elementor-widget-template .elementor-template > div > div.e-con {
    height: 100% !important;
}

.tab-products-grid .elementor-widget-button {
  margin-top: auto;
}

.lc-category-icon .elementor-shortcode {
    display: flex;
}



/* Calculators */

a.box-link {
    color: var(--e-global-color-text);
}

a.box-link .elementor-heading-title {
    transition: 0.2s ease;    
}

a.elementor-element.box-link:hover {
    box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.12);
}

a.box-link:hover .elementor-heading-title:is(h1, h2, h3, h4, h5, h6) {
    color: var(--e-global-color-accent);
}



/* Leadership */

#leadershipGrid a.elementor-icon,
.member-socials a.elementor-icon {
    min-width: 2.2rem;
}

#leadershipGrid .member-container {
    transition: all 0.2s ease;
}

#leadershipGrid .member-container:hover {
    transform: scale(1.037);
}

#leadershipGrid a.details-container {
    color: var(--e-global-color-text);
}

#leadershipGrid .member-container a.details-container h3 {
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: underline solid var(--e-global-color-7376ee9);

}

#leadershipGrid .member-container:hover a.details-container h3 {
    font-weight: 700;
    text-decoration-color: var(--e-global-color-text);      
}




/* Sidebar Nav */

.sidebar-nav-toc .elementor-toc__header {
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-bottom: 1px solid var(--e-global-color-956fab6);
}

.sidebar-nav-toc .elementor-toc__body {
    overflow-y: scroll;
    max-height: 80vh;
}

.sidebar-nav-toc ul.elementor-toc__list-wrapper {
    display: flex;
    flex-flow: column;
    gap: 0.25rem;
}

.sidebar-nav-toc li.elementor-toc__list-item {
    margin: 0;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid var(--e-global-color-956fab6);
    transition: 0.2s ease;    
}

.sidebar-nav-toc li.elementor-toc__list-item:has(a.elementor-item-active) {
    border-bottom: 1px solid var(--e-global-color-accent);
}

@media screen and (max-width: 767px) {
    .sidebar-nav-toc .elementor-toc__body {
        overflow-y: scroll;
        max-height: 50vh;
    }

    .elementor-toc__header {
        position: relative;
    }

    .elementor-toc__toggle-button {
        position: absolute;
        width: calc(100% - 0.5rem);
        display: flex;
        justify-content: flex-end;
        padding: 1rem 0;
    }    
}

@media screen and (min-width: 768px) {
    .sidebar-nav-toc .elementor-toc__header {
        display: none;
    }
}










/* Learning Center — search-state visibility toggles. While a search is
   active (?lc_s=...) the body gets `lc-searching`; give Elementor sections
   these classes to swap the layout WITHOUT a separate template:
     lc-hide-on-search — hidden during a search (e.g. Featured Articles)
     lc-show-on-search — visible ONLY during a search (e.g. results grid)  */

body.lc-searching .lc-hide-on-search { display: none !important; }
body:not(.lc-searching) .lc-show-on-search { display: none !important; }

/* Breadcrumb links ([lc_category_name link="1"] and any manual crumb anchor
   given this class): inherit the crumb's color, no underline — the kit's
   global link styles must not repaint them. */
a.lc-crumb-link,
a.lc-crumb-link:visited,
a.lc-crumb-link:active,
a.lc-crumb-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}

a.lc-crumb-link:hover {
    color: var(--e-global-color-primary, #6b2c91) !important;
    text-decoration: underline !important;
}

/* Breadcrumb bar (manual markup in a Text widget, class lc-breadcrumb). */
.lc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .875rem;
    line-height: 1.4;
    color: #6b6478;
    letter-spacing: .01em;
}

.lc-breadcrumb__sep {
    color: #b7b1c6;
    user-select: none;
}

.lc-breadcrumb__current {
    color: #1c1230;
    font-weight: 600;
}

/* Any crumb link inherits the bar's muted color (kit styles kept out). */
.lc-breadcrumb a,
.lc-breadcrumb a:visited,
.lc-breadcrumb a:active,
.lc-breadcrumb a:focus {
    color: inherit !important;
    text-decoration: none !important;
}

.lc-breadcrumb a:hover {
    color: var(--e-global-color-primary, #6b2c91) !important;
    text-decoration: underline !important;
}


/* Learning Center — per-category search box ([lc_category_search]).
   Hardened with !important on every state: the Elementor kit's global
   input/button styles (green pill buttons, bordered inputs) must never win. */

/* Inside an Elementor flex row, widgets shrink to content width — the
   Shortcode widget hosting the search must grow so the pill can reach its
   max-width (it right-aligns itself via margin-left:auto). */
.elementor-widget-shortcode:has(.lc-cat-search) {
    flex-grow: 1;
}

.lc-cat-search {
    display: flex !important;
    align-items: center;
    gap: .3rem;
    /* Fill the Elementor widget/column: size it from the editor. The
       max-width is only a desktop default so a full-width column doesn't
       produce a comically long pill. */
    width: 100%;
    max-width: 420px;
    margin: 0 0 0 auto;
    padding: .3rem .3rem .3rem 1.4rem;
    border: 1px solid #e2dfe8 !important;
    border-radius: 999px !important;
    background: #fff;
}

@media (max-width: 767px) {
    .lc-cat-search {
        max-width: none;
        padding-left: 1.1rem;
    }

    .lc-cat-search .lc-cat-search__btn,
    .lc-cat-search .lc-cat-search__btn:hover,
    .lc-cat-search .lc-cat-search__btn:focus,
    .lc-cat-search .lc-cat-search__btn:active {
        width: 38px !important;
        height: 38px !important;
    }
}

.lc-cat-search:focus-within {
    border-color: var(--e-global-color-primary, #6b2c91) !important;
}

.lc-cat-search .lc-cat-search__input,
.lc-cat-search .lc-cat-search__input:hover,
.lc-cat-search .lc-cat-search__input:focus {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: .5rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 16px;
    color: inherit;
}

.lc-cat-search__input::placeholder { color: #9a93aa; }

/* Native clear (×) hidden — we render our own that reloads the clean URL. */
.lc-cat-search__input::-webkit-search-cancel-button,
.lc-cat-search__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.lc-cat-search__input::-ms-clear { display: none; }

.lc-cat-search .lc-cat-search__clear,
.lc-cat-search .lc-cat-search__clear:hover,
.lc-cat-search .lc-cat-search__clear:focus,
.lc-cat-search .lc-cat-search__clear:visited {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0 !important;
    border-radius: 50%;
    background: transparent;
    color: #9a93aa;
    text-decoration: none !important;
    transition: color .15s ease, background .15s ease;
}

.lc-cat-search .lc-cat-search__clear:hover,
.lc-cat-search .lc-cat-search__clear:focus {
    background: #f1eff6;
    color: #1c1230;
}

.lc-cat-search .lc-cat-search__btn,
.lc-cat-search .lc-cat-search__btn:hover,
.lc-cat-search .lc-cat-search__btn:focus,
.lc-cat-search .lc-cat-search__btn:active {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--e-global-color-primary, #6b2c91) !important;
    color: #fff !important;
    cursor: pointer;
    line-height: 1;
    transition: filter .15s ease;
}

.lc-cat-search .lc-cat-search__btn:hover,
.lc-cat-search .lc-cat-search__btn:focus { filter: brightness(1.15); }

.lc-cat-search .lc-cat-search__btn svg,
.lc-cat-search .lc-cat-search__clear svg { display: block; }

/* Loading state: instant feedback while the search/clear navigation loads.
   The magnifier (or the ×) swaps to a spinner; results dim via body class. */

.lc-cat-search.is-loading .lc-cat-search__btn svg { display: none; }

.lc-cat-search.is-loading .lc-cat-search__btn::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.4px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: lc-spin .7s linear infinite;
}

.lc-cat-search__clear.is-loading svg { display: none; }

.lc-cat-search__clear.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #cfcada;
    border-top-color: var(--e-global-color-primary, #6b2c91);
    animation: lc-spin .7s linear infinite;
}

@keyframes lc-spin {
    to { transform: rotate(360deg); }
}

body.lc-search-loading .elementor-widget-loop-grid,
body.lc-search-loading .lc-hide-on-search,
body.lc-search-loading .lc-show-on-search {
    opacity: .4;
    pointer-events: none;
    transition: opacity .2s ease;
}
/*
 * Learning Center cards — one image shape for every article.
 *
 * The featured images arrive in three ratios: 16:9 for the two thirds of the
 * Learning Center that are videos (their YouTube frame), 1.90:1 for the ones
 * with editorial artwork, and a stray 4:3. Left alone, the cards in a row are
 * different heights and the grid looks broken.
 *
 * Normalised here rather than by cropping the files, so it also covers whatever
 * gets uploaded next, and rather than in Elementor, because the grid and the
 * carousel are two separate loop templates and this would have to be set twice.
 *
 * 16:9 is the target: it is what most of the images already are, so the
 * majority are not cropped at all, and it trims the sides of a 1.90:1 rather
 * than the top and bottom, where the text in these graphics usually sits.
 *
 * Scoped to type-lc_article on purpose. Other loops on the site use the same
 * widget — the Loan Options carousel on the home page is six of them — and
 * their artwork is not this shape.
 */
.e-loop-item.type-lc_article .elementor-widget-theme-post-featured-image img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ---------------------------------------------------------------------------
 * Sticky header.
 *
 * `position: sticky`, not Elementor's Sticky motion effect. That one switches
 * the header to `position: fixed`, which takes it out of the flow — every page
 * then begins one header higher, and the only way back is padding added to
 * each template by hand. A sticky element keeps its place in the flow, so
 * nothing below it moves and no page has to be touched.
 *
 * This works because the header is a direct child of <body>. Sticky is
 * cancelled, silently, by any ancestor with `overflow` other than visible or
 * with a transform — worth remembering before wrapping the header in
 * anything.
 *
 * Below the officer bar's 9990 on purpose: that bar is the one thing that
 * should stay on top of everything.
 * ------------------------------------------------------------------------- */

/* The header keeps no box of its own, so its rows count as children of the
   body for layout. That is what lets one row stick for the whole page while
   the breadcrumb below it scrolls away: a sticky element only sticks inside
   its parent, and inside the header there is barely a header of room.

   Excluded inside the Elementor editor, which needs the box this removes.
   The editor measures every element to place its outlines, handles and drop
   targets, and `display: contents` leaves it measuring an element that has no
   dimensions — the header reported nothing, the footer below it was drawn
   hundreds of pixels tall, and editing any page meant fighting a layout that
   only existed in the editor. The front end never had the problem, which is
   what made it look like a page fault rather than a stylesheet one. */
body:not(.elementor-editor-active) .elementor-location-header {
    display: contents;
}

.ld-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 500;
}

/* Anchors land below the header instead of behind it.
 *
 * A link to #contact scrolls its target to the very top of the viewport, which
 * is exactly where the sticky bar is — so the section you asked for arrives
 * hidden underneath it and the page looks like it scrolled to the wrong place.
 *
 * `scroll-padding-top` on the scrolling element is the whole fix, and it covers
 * every way of getting there: a link, a page loaded with a fragment already in
 * the address, and `scrollIntoView()` from a script. Handling it per anchor
 * with `scroll-margin-top` would mean remembering to do so on each new one.
 *
 * The height comes from assets/js/sticky-header.js, which measures the bar —
 * it is shorter once scrolled, shorter again on narrow screens, and no single
 * number is right in every state. The fallback is the desktop scrolled height,
 * used for the moment before the script runs and if it never does. A little
 * generous on purpose: landing slightly low reads as deliberate, landing behind
 * the header reads as broken. */
:root {
    /* The 40px is breathing room, and the only number here worth adjusting.
       Clearing the bar exactly leaves the heading touching it, which reads as
       having scrolled a fraction too far rather than as having arrived. */
    scroll-padding-top: calc(var(--ld-bar-height, 84px) + 40px);
}

/* The same problem at the other end of the viewport, and a worse one.
 *
 * Landing behind the header is something a visitor can see and scroll away
 * from. Focus landing behind the consent banner is not: Tab moves to a link
 * near the foot of the page, the browser scrolls it barely into view — into the
 * strip the banner covers — and the focus ring is simply gone. There is nothing
 * on screen to tell the visitor where they are. Measured across the templates,
 * 44 tab stops landed completely hidden.
 *
 * WCAG 2.2 — 2.4.11 Focus Not Obscured (Minimum), AA. Entirely hidden is what
 * fails it; partial coverage is 2.4.12, which is AAA and not in scope.
 *
 * No breathing room added on purpose, unlike the top. This runs on every page
 * for as long as the banner is unanswered, and padding the bottom generously
 * would move focus visibly up the screen on every tab press near the foot of
 * the page. Clearing the overlay is the whole requirement.
 *
 * The height comes from assets/js/bottom-overlay.js. The max() takes in the
 * directory plugin's sticky officer bar as well, which publishes its own
 * height and is on screen at the same time on officer and branch pages —
 * scroll padding does not accumulate, so the taller of the two is the answer.
 * Either variable being absent resolves to 0px, so this is correct on a page
 * with one of them, both, or neither. */
:root {
    scroll-padding-bottom: max(
        var(--ld-bottom-overlay, 0px),
        var(--ld-officer-bar-height, 0px)
    );
}

/* A form field has to look like a form field.
 *
 * WCAG 2.2 — 1.4.11 Non-text Contrast, AA. The visual information needed to
 * identify a user interface component needs 3:1 against what is behind it. For
 * these fields the only such information is the 1px border: the fill is white on
 * white, so without the border there is nothing on screen saying where the input
 * begins. Measured at #BFBFBF on white it is 1.84:1 — a little over half of what
 * the criterion asks. #767676 is 4.54:1, the same grey already used for muted
 * text elsewhere, so the palette does not grow a value for this.
 *
 * Redefining the token rather than overriding the declaration. Elementor writes
 * the border as `border-color: var(--e-global-color-b2fb8a6)` in a per-page rule
 * scoped to the post id and the widget id — four classes deep, and no selector
 * written here is going to outrank it without `!important`. Custom properties do
 * not work that way: the variable resolves against the nearest ancestor that
 * defines it, so defining it on the field group hands Elementor's own rule a
 * different value and its specificity stops mattering.
 *
 * It also degrades the right way. If somebody corrects the global in Site
 * Settings — the tidier fix, and the one to make if that colour turns out to be
 * used only for borders — this override simply agrees with it rather than
 * fighting it.
 *
 * Scoped to the field group so the token keeps its original value everywhere
 * else, and to the resting state only: the focus ring is separate and already
 * measures 9.09:1 between states. */
.elementor-field-group {
    --e-global-color-b2fb8a6: #767676;
}

/* And it has to show where the keyboard is.
 *
 * WCAG 2.2 — 2.4.7 Focus Visible, AA. Elementor suppresses the browser's own
 * focus ring on its form fields and puts nothing in its place: measured with a
 * real Tab, the focused field has outline:none, an unchanged border, and a
 * box-shadow of 0.47px at 4.7% opacity, which is not something a person can see.
 * Eight fields on the contact form, six on every officer and branch page.
 *
 * It reuses the outline already defined for the menus at the top of this file
 * rather than inventing a second focus style, so the whole site answers the
 * keyboard the same way.
 *
 * :focus-visible rather than :focus, so clicking into a field does not draw a
 * ring the mouse user did not ask for. Worth knowing when testing: the browser
 * only grants :focus-visible to keyboard-initiated focus, so calling .focus()
 * from a console will show no ring and prove nothing. */
.elementor-field-group .elementor-field:focus-visible,
.elementor-field-group .elementor-field-textual:focus-visible,
.elementor-field-group input:focus-visible,
.elementor-field-group select:focus-visible,
.elementor-field-group textarea:focus-visible {
    outline: 2px solid var(--e-global-color-primary, #501283);
    outline-offset: 2px;
}

/* reCAPTCHA is 304px wide and will not bend.
 *
 * WCAG 2.2 — 1.4.10 Reflow, AA: 320 CSS px is 1280 at 400% zoom, and at that
 * width the page must not scroll sideways. Google's widget renders a fixed
 * 304px iframe, which fits a 320px viewport on its own — with 16px to spare —
 * but not once the form's container has spent 30px of that on padding. The
 * page ends up 334px wide on officer and branch pages and 324px on the contact
 * form: 1,365 pages between them, since every officer and branch carries the
 * same form.
 *
 * `zoom` rather than `transform: scale()`. Both shrink what is drawn, but a
 * transform leaves the layout box at its original 304px, so the page still
 * overflows by exactly as much as before — measured, not assumed: scale(.85)
 * took the painted width to 258px and left the overflow at 14px, unchanged.
 * `zoom` shrinks the box the layout actually reserves, which is the thing that
 * has to give.
 *
 * .94 is the smallest reduction that clears the worst case, deliberately so:
 * the widget's checkbox is a target with a minimum size of its own (2.5.8), and
 * shrinking it further than the overflow requires would trade one criterion for
 * another. 304 * .94 = 286, which clears 320 with the 30px of padding and 4px
 * to spare.
 *
 * Bounded to 360px because above 334px there is no overflow to fix — verified
 * at 340, 360, 375 and 414, all of which sit at zero. The bound is set a little
 * above the measured need so a template with more padding than the two seen
 * here is still covered.
 *
 * Where `zoom` is not supported the page behaves exactly as it does today, so
 * this can only improve matters. */
@media (max-width: 360px) {
    .elementor-g-recaptcha {
        zoom: 0.94;
    }
}

/* Somewhere for the last few links to go.
 *
 * The rule above, and the nudge in bottom-overlay.js, both work by scrolling
 * the focused element clear. On a short page there is nothing left to scroll:
 * the LO index and the 404 end with the page already at its foot, and the last
 * three footer links — ADA Accessibility Statement, Unsubscribe, NMLS Consumer
 * Access — sit under the banner with nowhere to move to.
 *
 * So the room has to exist before it can be scrolled into. This is the same
 * remedy the directory plugin already applies for its officer bar, and for the
 * same reason: an overlay fixed to the bottom of the viewport covers whatever
 * the page ends with, and this page ends with links that are a licensing
 * requirement.
 *
 * It reads as no gap at all. The reserved band is exactly the band the banner
 * is sitting on, so the page appears to end where the banner begins — and it
 * goes away entirely once the banner is answered, because the height does.
 *
 * The selector is doing real work. The plugin sets its own
 * `body:has(.ld-sticky-officer)` padding, and on an officer page both apply to
 * the same property; matching on the banner's id outranks it so the max() here
 * wins and neither overlay is forgotten. Where OneTrust never loads, this does
 * not match at all and the plugin's padding stands on its own. */
html:has(#onetrust-banner-sdk) body {
    padding-bottom: max(
        var(--ld-bottom-overlay, 0px),
        var(--ld-officer-bar-height, 0px)
    );
    transition: padding-bottom .25s ease;
}

/* The admin bar owns the top of the viewport for logged-in users and is fixed
   at two different heights. Without this the header slides underneath it. */
body.admin-bar .ld-sticky-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ld-sticky-bar {
        top: 46px;
    }
}

/* Below 600px WordPress stops fixing the admin bar — it scrolls away with the
   page. Reserving room for it there leaves the header pinned 46px down,
   waiting for something that is no longer on screen. Matches WordPress's own
   breakpoint, so the two move together. */
@media screen and (max-width: 600px) {
    body.admin-bar .ld-sticky-bar {
        top: 0;
    }
}

/* --- What changes once the page is scrolled ------------------------------
 *
 * The `ld-scrolled` class is put on <html> by assets/js/sticky-header.js,
 * which decides nothing else — everything below is the design's to change.
 *
 * Sizes are tunable from these two properties rather than from the rules, so
 * the shrunk logo and the shadow can be adjusted without reading the file.
 */
.ld-sticky-bar {
    --ld-logo-scrolled: 28px;
    --ld-bar-shadow: 0 2px 12px rgba(28, 18, 48, 0.12);
    --ld-bar-pad-scrolled: 0.5rem;

    transition: box-shadow 0.2s ease, padding 0.2s ease;
}

/* The shadow is the one change that happens at every width: it is what says
   the bar is now floating over the page rather than sitting at the top of it,
   and that is true on a phone too. */
.ld-scrolled .ld-sticky-bar {
    box-shadow: var(--ld-bar-shadow);
}

/* Everything that changes the bar's size is desktop only.
 *
 * On a phone the header is already about as small as it can be, and there is
 * far less scrolling before the visitor arrives somewhere — a bar that shrinks
 * under them reads as the page jumping rather than as a header settling. The
 * breakpoint is one pixel past Elementor's tablet, the same one the Manage
 * Loan strip uses below.
 */
@media screen and (min-width: 1025px) {

    /* The bar itself. The menu's own title padding is already 0 in the panel,
       so the height above and below the row comes from this container rather
       than from the menu — this is the one to reach for when the bar has to
       get shorter.

       Both the older --padding-* names and the newer logical ones, because
       which pair is written depends on the Elementor version that last saved
       the page. */
    .ld-scrolled .ld-sticky-bar {
        --padding-top: var(--ld-bar-pad-scrolled) !important;
        --padding-bottom: var(--ld-bar-pad-scrolled) !important;
        --padding-block-start: var(--ld-bar-pad-scrolled) !important;
        --padding-block-end: var(--ld-bar-pad-scrolled) !important;
    }

    /* Only a maximum, and only while scrolled: the resting size stays whatever
       was set in Elementor, so the logo can be resized in the panel without
       this rule having to be kept in step. */
    .ld-sticky-bar .elementor-widget-theme-site-logo img {
        transition: max-height 0.2s ease;
    }

    .ld-scrolled .ld-sticky-bar .elementor-widget-theme-site-logo img {
        max-height: var(--ld-logo-scrolled);
        width: auto;
    }
}

/* The Manage Loan strip goes away on desktop only. 1025px is one pixel past
   Elementor's tablet breakpoint — change both together if that ever moves. */
@media screen and (min-width: 1025px) {
    .ld-topbar {
        opacity: 1;
        transition: opacity 0.2s ease, display 0.2s allow-discrete;
    }

    /* display: none rather than a collapsed max-height. A row that is merely
       zero-height is still a rendered child, so the flex gap around it stays
       and leaves a band of empty space where the strip used to be. Removing it
       takes its gap with it.

       allow-discrete is what lets a discrete property like display take part in
       a transition, so the strip still fades instead of blinking out. */
    .ld-scrolled .ld-topbar {
        display: none;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-sticky-bar,
    .ld-sticky-bar .elementor-widget-theme-site-logo img,
    .ld-topbar {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
 * <strong> inside a heading does not change its weight.
 *
 * The imported articles wrap headings in <strong> — <h2><strong>…</strong></h2>
 * — which is how the old CMS emitted them. The tag then applies the browser's
 * bold on top of whatever weight the design set, so a heading meant to be 600
 * renders at 700 and one meant to be light renders bold. Which headings are
 * affected depends on how each was written, so the scale looks inconsistent
 * for no reason a reader could name.
 *
 * `inherit` rather than a number: the heading keeps deciding, and this rule
 * never has to be updated when the type scale changes.
 *
 * The markup is left alone on purpose. Rewriting it would mean editing every
 * imported article, and <strong> is not wrong there — it is redundant, and a
 * heading is already emphatic.
 * ------------------------------------------------------------------------- */

:is(h1, h2, h3, h4, h5, h6) :is(strong, b),
.elementor-heading-title :is(strong, b) {
    font-weight: inherit;
}

/* ---------------------------------------------------------------------------
 * Calculators — filter row over hand-built containers.
 *
 * The calculators are written by hand, not queried, so Elementor's own filter
 * widgets do not apply: those drive a Loop Grid. The tabs here hold nothing.
 * They are used only for the one thing they do well — recording which of them
 * is open — and the cards live outside the widget, written once.
 *
 * The open tab is read by name, not by position. assets/js/calculator-filter.js
 * puts its label on the wrapper as data-calc-filter, which is also what makes
 * /calculators/#refinance work. Keying on `data-tab-index` instead would mean
 * the stylesheet holds a second copy of the tab order, and the two disagree the
 * first time someone drags a tab in the editor.
 *
 * MARKUP THIS EXPECTS
 *
 *   Container                          .calc-filter
 *   ├── Nested Tabs                    (panels left empty)
 *   └── Container                      .calc-list
 *       ├── Container                  .calc-item .calc-buy
 *       └── Container                  .calc-item .calc-refi
 *
 * A calculator in two categories carries both classes and shows under both.
 * ------------------------------------------------------------------------- */

.calc-filter {
    --calc-gutter: 3rem;
}

/* The panels are empty by design; without this they still reserve their box. */
.calc-filter .e-n-tabs-content {
    display: none;
}

/* "All Calculators" needs no rule — nothing is hidden, which is the point.
 *
 * Matched on a stem rather than the whole name, and this is the important part.
 * The value is the tab's own label, slugified, so it changes whenever someone
 * edits the copy in Elementor. These began as exact matches for "buy" and
 * "refinance"; the tabs were later renamed to "Buying a Home" and
 * "Refinancing", nothing matched any more, and two of the three filters
 * silently stopped working — the tab still opened, it just filtered nothing.
 *
 * `^= "buy"` covers Buy, Buy a Home, Buying a Home. `^= "refinanc"` covers
 * Refinance and Refinancing — the stem stops before the ending that changes.
 * `*= "equity"` covers Home Equity and Equity either way round.
 *
 * "All Calculators" matches none of the three, which is what makes it show
 * everything. Any new tab whose label contains none of these stems does the
 * same, so an unrecognised name fails towards showing too much rather than
 * towards an empty page.
 *
 * `display: none` rather than `hidden` or `visibility`: Elementor containers
 * carry `display: var(--display)` from their own class, and an attribute or a
 * visibility rule loses that argument. */
.calc-filter[data-calc-filter*="equity"] .calc-item:not(.calc-equity),
.calc-filter[data-calc-filter^="refinanc"] .calc-item:not(.calc-refi),
.calc-filter[data-calc-filter^="buy"] .calc-item:not(.calc-buy) {
    display: none;
    opacity: 0;
    transform: translateY(6px);
}

/* --- The tabs ------------------------------------------------------------ */

.calc-filter .elementor-widget-n-tabs .e-n-tab-title {
    /* The Kit gives every bare <button> an 8rem radius and a border, and a tab
       title is a button. */
    border-radius: 0;
    background-color: transparent;

    /* The underline is always there, transparent when idle: adding it on hover
       would grow the tab by 4px and shift the whole row. */
    border-style: none none solid;
    border-bottom-width: var(--spacing-4px, 4px);
    border-bottom-color: transparent;
}

.calc-filter .elementor-widget-n-tabs .e-n-tab-title:hover,
.calc-filter .elementor-widget-n-tabs .e-n-tab-title[aria-selected="true"] {
    border-bottom-color: var(--color-accent-purple03, #7A3FF6);
}

/* --- The cards ----------------------------------------------------------- */

.calc-filter .calc-list,
.calc-filter .calc-list > .e-con-inner {
    column-gap: var(--calc-gutter);
}

.calc-filter .calc-item {
    /* `flex: 0 0` and not `1 1`: a lone card on the last row should keep its
       half rather than stretch across the width. */
    flex: 0 0 calc(50% - var(--calc-gutter) / 2);
    max-width: calc(50% - var(--calc-gutter) / 2);

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-neutral-lighter, #D9D9D9);

    /* The card is the anchor once its HTML Tag is set to `a`, so it arrives
       with a link's underline and colour. */
    text-decoration: none;
    color: inherit;

    opacity: 1;
    transform: translateY(0);

    /* `display` is discrete — it jumps between values with no steps in between
       — so without allow-discrete the browser applies it at once and the card
       is gone before the fade has anywhere to happen. */
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        border-color 0.15s ease,
        display 0.22s allow-discrete;
}

.calc-filter .calc-item h2.elementor-heading-title {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    color: var(--color-scheme-1-text, #000);
    transition: color 0.15s ease;
}

.calc-filter .calc-item p.elementor-heading-title {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 145%;
    color: var(--color-neutral-darker, #4A4A4A);
}

/* Only the cards that are links react. A card that changes colour under the
   cursor and leads nowhere reads as broken. */
.calc-filter a.calc-item,
.calc-filter a.calc-item * {
    cursor: pointer;
}

.calc-filter a.calc-item:hover,
.calc-filter a.calc-item:focus-visible {
    border-bottom-color: var(--color-accent-purple03, #7A3FF6);
}

.calc-filter a.calc-item:hover h2.elementor-heading-title,
.calc-filter a.calc-item:focus-visible h2.elementor-heading-title {
    color: var(--color-accent-purple03, #7A3FF6);
}

.calc-filter a.calc-item:focus-visible {
    outline: 2px solid var(--color-accent-purple03, #7A3FF6);
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .calc-filter .calc-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .calc-filter .calc-item,
    .calc-filter .calc-item h2.elementor-heading-title {
        transition: none;
    }

    .calc-filter a.calc-item:not(:where(:hover, :focus-visible)) {
        transform: none;
    }
}


/* ------------------------------------------------------------------------
 * Footer link columns as accordions on small screens
 *
 * The wrappers footer-accordion.js adds exist at every width, so they must be
 * invisible to layout above the breakpoint: `display: contents` lets the
 * heading and the menu go on being direct children of the column as far as its
 * flex layout is concerned, which is why the desktop footer is untouched.
 *
 * Below it the panel becomes a single-row grid and animates between 0fr and
 * 1fr. That is the one way to transition to a height nobody has measured — the
 * menus are different lengths and a fixed max-height would either clip the long
 * ones or make the short ones drift open.
 * --------------------------------------------------------------------- */

.ld-footer-panel {
    display: contents;
}

/* A real button that has to read as the heading it sits inside.
 *
 * Every property is named rather than left to `all: unset`, and the selector
 * carries the heading class it lives in. Elementor's global kit styles bare
 * buttons — `.elementor-kit-15 button` — which is one class and one element,
 * enough to beat a single class on its own; without this the four footer
 * headings came out as full-width green pills. */
.ld-footer-accordion .ld-footer-heading .ld-footer-toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-transform: inherit;
    cursor: text;
    -webkit-appearance: none;
    appearance: none;
}

.ld-footer-accordion .ld-footer-heading .ld-footer-toggle:hover,
.ld-footer-accordion .ld-footer-heading .ld-footer-toggle:focus {
    background: none;
    border: 0;
    color: inherit;
}

.ld-footer-accordion .ld-footer-heading .ld-footer-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    /* The container holding this row is an Elementor grid whose mobile setting
       is written `grid-template-columns: 1`. That is not a valid track size — it
       needs a unit or `1fr` — so the browser throws the declaration away, the
       grid is left with no explicit column, and its single implicit track sizes
       to content. Everything inside then measures as wide as its own text,
       which is why the headings stopped short of the footer's edge no matter
       what width was asked of them.
     *
     * Reached through `:has()` rather than by element id, so it survives the
     * footer being rebuilt. The real fix is the Columns field on that container
     * in Elementor; this holds until then, and does nothing once it is right. */
    .e-con:has(> .ld-footer-accordion) {
        grid-template-columns: 1fr;
    }

    .ld-footer-accordion > .e-con {
        /* Each column is its own full-width row. Without this they stay flex
           items sized to their own text, and a heading's clickable area — and
           its chevron — stops wherever the word ends instead of at the edge of
           the footer. */
        width: 100%;
        align-items: stretch;
    }

    /* Elementor lays the four columns out in a row 2rem apart, which is right
       side by side and wrong stacked. Both are set through the custom properties
       Elementor's own rules read, and both need !important: those rules name the
       element by id and are more specific than anything this stylesheet can say
       about an element it does not name. The rhythm comes from the padding
       below instead of the gap. */
    .e-con.ld-footer-accordion {
        --flex-direction: column !important;
        flex-direction: column !important;
        --gap: 0 !important;
        gap: 0 !important;
        align-items: stretch;

        width: 100%;
    }

    /* The heading and the panel are flex items of their column, so each is only
       as wide as its own content unless told otherwise — which is what left the
       chevrons stranded mid-page rather than against the footer's edge. The
       column's `align-items` cannot be relied on here: Elementor sets it per
       element, and this rule has to hold whatever it happens to be. */
    .ld-footer-accordion .elementor-widget-heading,
    .ld-footer-accordion .ld-footer-panel,
    .ld-footer-accordion .ld-footer-panel-inner {
        width: 100%;
        align-self: stretch;
    }

    /* Even padding above and below, so the headings sit at a steady interval
       with nothing drawn between them. */
    .ld-footer-accordion .ld-footer-heading .ld-footer-toggle {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1rem 0.75rem 0;
    }

    .ld-footer-accordion .ld-footer-toggle::after {
        content: "";
        flex: 0 0 auto;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.25s ease;
    }

    .ld-footer-accordion .is-open .ld-footer-toggle::after {
        transform: translateY(2px) rotate(225deg);
    }

    .ld-footer-accordion .ld-footer-panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.25s ease;
    }

    .ld-footer-accordion .is-open > .ld-footer-panel {
        grid-template-rows: 1fr;
    }

    .ld-footer-accordion .ld-footer-panel-inner {
        /* Both are required: the child of a 0fr row still reserves its content
           height unless it is allowed to shrink and told to clip. */
        min-height: 0;
        overflow: hidden;
    }

    /* Breathing room under an open menu, so its last link does not run into the
       next heading.
     *
     * On the last child, not as padding on the panel itself: `overflow: hidden`
     * clips at the padding edge, not the content edge, so padding on the
     * collapsed panel stays visible and showed the first line of every menu
     * through a supposedly closed accordion. A margin here is inside what gets
     * clipped. */
    .ld-footer-accordion .ld-footer-panel-inner > :last-child {
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-footer-accordion .ld-footer-panel,
    .ld-footer-accordion .ld-footer-toggle::after {
        transition: none;
    }
}
