/*
Theme Name: LenderMatrix
Theme URI: https://example.com/
Author: LenderMatrix
Description: Presentation layer for the LenderMatrix marketplace: light and dark modes, accessible navigation, Elementor-compatible templates. Requires the LenderMatrix Core plugin for marketplace features.
Version: 1.22.2
Requires at least: 6.4
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: lendermatrix-theme
*/

/* Tokens come from the plugin (lm-app.css). Fallbacks keep the theme readable if the plugin is inactive. */
:root{--lmt-wrap:76rem;--lmt-wide:88rem;--lmt-gutter:clamp(1rem,4vw,2rem)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:6rem}
body{margin:0;background:var(--lm-bg,#fff);color:var(--lm-text,#16211C);font:400 1.0625rem/1.65 var(--lm-font,system-ui,sans-serif);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg,video{max-width:100%;height:auto}
a{color:var(--lm-link,#026A35);text-underline-offset:.15em}
h1,h2,h3,h4{font-family:var(--lm-display,inherit);line-height:1.18;letter-spacing:-.01em;text-wrap:balance;margin:0 0 .6em}
h1{font-size:clamp(2rem,5vw,3.1rem);font-weight:800}
h2{font-size:clamp(1.5rem,3.4vw,2.1rem);font-weight:800}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1.1em}
table{border-collapse:collapse;width:100%}
.lmt-wrap{width:100%;max-width:var(--lmt-wrap);margin-inline:auto;padding-inline:var(--lmt-gutter)}
.lmt-wrap--wide{max-width:var(--lmt-wide)}
.lmt-center{text-align:center;margin-top:1.75rem;display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
.lmt-skip{position:absolute;left:1rem;top:-5rem;z-index:2000;padding:.75rem 1rem;border-radius:8px;background:var(--lm-accent,#027C3E);color:var(--lm-accent-ink,#fff);font-weight:700}
.lmt-skip:focus{top:1rem}
.lmt-main:focus{outline:none}

/* Header */
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the containing block for the
   fixed slide-out menu (zero height, and horizontal overflow). Found by rendering the page. */
.lmt-header{position:sticky;top:0;z-index:900;border-bottom:1px solid var(--lm-line)}
.lmt-header::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--lm-bg) 92%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px)}
.admin-bar .lmt-header{top:32px}.admin-bar .lmt-nav{top:calc(4.25rem + 32px)}
@media (max-width:782px){.admin-bar .lmt-header{top:46px}.admin-bar .lmt-nav{top:calc(4.25rem + 46px)}}
@media (max-width:600px){.admin-bar .lmt-header{top:0}.admin-bar .lmt-nav{top:4.25rem}}
.lmt-header__bar{display:flex;align-items:center;gap:1rem;min-height:4.25rem;max-width:var(--lmt-wide)}
.lmt-logo,.custom-logo-link{display:inline-flex;align-items:center;flex:none}
.lmt-logo img,.custom-logo{height:24px;width:auto;display:block}
.lmt-logo__dark{display:none!important}
[data-lm-theme="dark"] .lmt-logo__dark{display:block!important}
[data-lm-theme="dark"] .lmt-logo__light{display:none!important}
.lmt-burger{margin-left:auto;order:3;width:44px;height:44px;border:1.5px solid var(--lm-line);border-radius:10px;background:transparent;cursor:pointer;display:grid;place-items:center}
.lmt-burger span[aria-hidden]{width:18px;height:2px;background:var(--lm-text);box-shadow:0 6px 0 var(--lm-text),0 -6px 0 var(--lm-text)}
.lmt-header__cta{margin-left:auto}
.lmt-burger{margin-left:0}
.lmt-nav{position:fixed;inset:4.25rem 0 0 auto;width:min(24rem,100%);background:var(--lm-bg);border-left:1px solid var(--lm-line);padding:1rem var(--lmt-gutter) 2rem;overflow:auto;transform:translateX(102%);visibility:hidden;transition:transform .22s ease,visibility .22s;display:grid;gap:1.25rem;align-content:start}
.lmt-nav.is-open{transform:none;visibility:visible}
.lmt-menu,.lmt-menu ul{list-style:none;margin:0;padding:0}
.lmt-menu>li{border-bottom:1px solid var(--lm-line);display:grid;grid-template-columns:1fr auto;align-items:center}
.lmt-menu>li>a{display:flex;align-items:center;min-height:48px;color:var(--lm-text);text-decoration:none;font-weight:600}
.lmt-mega__toggle{width:44px;height:44px;border:0;background:transparent;cursor:pointer;color:var(--lm-text)}
.lmt-mega__toggle::before{content:"";display:inline-block;width:.55rem;height:.55rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s}
.lmt-mega__toggle[aria-expanded="true"]::before{transform:rotate(-135deg)}
.lmt-mega{grid-column:1/-1;display:none;gap:1rem;padding:0 0 1rem}
.lmt-mega.is-open{display:grid}
.lmt-mega__head{margin:0 0 .35rem;font:600 .8rem var(--lm-font);color:var(--lm-muted)}
.lmt-mega a{display:block;padding:.4rem 0;color:var(--lm-text);text-decoration:none}
.lmt-mega a:hover{color:var(--lm-link);text-decoration:underline}
.lmt-utils{display:grid;gap:.75rem}
.lmt-utils__link{display:flex;align-items:center;min-height:44px;font-weight:600;color:var(--lm-text);text-decoration:none}
.lmt-mode{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .85rem;border-radius:999px;border:1.5px solid var(--lm-line);background:transparent;color:var(--lm-text);font:600 .9rem var(--lm-font);cursor:pointer;justify-self:start}
.lmt-mode__icon{width:1rem;height:1rem;border-radius:50%;background:var(--lm-text);box-shadow:inset -.35rem -.1rem 0 0 var(--lm-bg)}
[data-lm-theme="dark"] .lmt-mode__icon{box-shadow:none;background:var(--lm-green-bright)}
/* Full navigation from 1280px. theme.js adds .lmt-collapse to <html> if the bar would still overflow (wide fallback
   fonts, long translations), which simply leaves the slide-out layout in place. */
@media (min-width:1280px){
  :root:not(.lmt-collapse) .lmt-burger,:root:not(.lmt-collapse) .lmt-header__cta{display:none}
  /* Three tracks: logo | menu | account. The side tracks are equal, so the menu sits in the true centre of the bar. */
  :root:not(.lmt-collapse) .lmt-header__bar{display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center;gap:.6rem}
  :root:not(.lmt-collapse) .lmt-header__bar>.lmt-logo,:root:not(.lmt-collapse) .lmt-header__bar>.custom-logo-link{grid-column:1;justify-self:start}
  :root:not(.lmt-collapse) .lmt-nav>nav{grid-column:2;justify-self:center}
  :root:not(.lmt-collapse) .lmt-nav>.lmt-utils{grid-column:3;justify-self:end}
  :root:not(.lmt-collapse) .lmt-nav{display:contents;visibility:visible}
  :root:not(.lmt-collapse) .lmt-menu{display:flex;align-items:center;gap:0}
  :root:not(.lmt-collapse) .lmt-menu>li{border:0;position:relative;display:flex}
  :root:not(.lmt-collapse) .lmt-menu>li>a{min-height:44px;padding:0 .28rem;font-size:.86rem;border-radius:8px;white-space:nowrap}
  :root:not(.lmt-collapse) .lmt-menu>li>a:hover{background:var(--lm-bg-soft)}
  :root:not(.lmt-collapse) .lmt-mega__toggle{width:18px;margin-left:-.3rem}
  :root:not(.lmt-collapse) .lmt-mega{position:absolute;top:100%;left:0;min-width:30rem;grid-auto-flow:column;grid-auto-columns:1fr;gap:1.5rem;padding:1.25rem;background:var(--lm-surface);border:1px solid var(--lm-line);border-radius:14px;box-shadow:var(--lm-shadow)}
  :root:not(.lmt-collapse) .lmt-menu>li:hover>.lmt-mega,:root:not(.lmt-collapse) .lmt-menu>li:focus-within>.lmt-mega,:root:not(.lmt-collapse) .lmt-mega.is-open{display:grid}
  :root:not(.lmt-collapse) .lmt-menu>li:nth-last-child(-n+2) .lmt-mega{left:auto;right:0;min-width:16rem}
  :root:not(.lmt-collapse) .lmt-utils{display:flex;align-items:center;gap:.35rem;flex:none}
  :root:not(.lmt-collapse) .lmt-mode__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  :root:not(.lmt-collapse) .lmt-mode{padding:0;width:44px;justify-content:center}
}
@media (min-width:1400px){
  :root:not(.lmt-collapse) .lmt-menu>li>a{padding:0 .45rem;font-size:.9rem}
  :root:not(.lmt-collapse) .lmt-header__bar{gap:1rem}
}
.lmt-utils__link,.lmt-header .lm-btn{white-space:nowrap}

/* Hero with the criteria-matrix signature */
.lmt-hero{position:relative;overflow:hidden;background:var(--lm-bg-soft);border-bottom:1px solid var(--lm-line)}
.lmt-hero__grid{position:relative;display:grid;gap:2.5rem;padding-block:clamp(2.5rem,7vw,5.5rem);grid-template-columns:minmax(0,1fr)}
@media (min-width:980px){.lmt-hero__grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center}}
.lmt-hero__kicker{font:600 .95rem var(--lm-mono);color:var(--lm-link);margin-bottom:1rem}
.lmt-hero h1{font-size:clamp(2.1rem,5.6vw,3.6rem);max-width:17ch}
.lmt-hero__sub{font-size:clamp(1.05rem,2.2vw,1.25rem);color:var(--lm-muted);max-width:52ch}
.lmt-hero__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.75rem 0 1rem}
.lmt-hero__note{font-size:.85rem;color:var(--lm-muted);margin:0}
.lmt-matrix{position:absolute;inset:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(7.5rem,1fr));grid-auto-rows:3.25rem;gap:0;opacity:.9;mask-image:linear-gradient(90deg,transparent 0,transparent 56%,#000 80%);-webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 56%,#000 80%);pointer-events:none}
.lmt-matrix span{display:grid;place-items:center;border-right:1px solid var(--lm-line);border-bottom:1px solid var(--lm-line);font:500 .75rem var(--lm-mono);color:transparent;transition:color .9s,background-color .9s}
.lmt-matrix span.is-on{color:var(--lm-link);background:color-mix(in srgb,var(--lm-accent) 9%,transparent)}
/* Stacked hero: keep the grid out from behind the headline; it shows behind the form card at the bottom instead. */
@media (max-width:979px){.lmt-matrix{mask-image:linear-gradient(180deg,transparent 0,transparent 58%,#000 82%);-webkit-mask-image:linear-gradient(180deg,transparent 0,transparent 58%,#000 82%);opacity:.7}}

/* Sections */
.lmt-section{padding-block:clamp(3rem,7vw,5.5rem)}
.lmt-section--tight{padding-block:clamp(1.5rem,4vw,2.5rem)}
.lmt-section--soft{background:var(--lm-bg-soft)}
.lmt-section--ink{background:var(--lm-ink,#0A0F0D);color:#E9F1EC}
.lmt-section--ink h2{color:#fff}.lmt-section--ink .lmt-section__head p{color:#A3B3AA}
.lmt-section--ink .lm-benefits li{background:#121A17;border-color:#26332D}.lmt-section--ink .lm-benefits h3{color:#fff}.lmt-section--ink .lm-benefits p{color:#A3B3AA}
.lmt-section--ink .lm-btn--primary{background:var(--lm-green-bright,#1FBE76);color:#04130B}.lmt-section--ink .lm-btn--ghost{color:#E9F1EC;border-color:#3A4A42}
.lmt-section__head{max-width:46rem;margin-bottom:2rem}
.lmt-section__head p{color:var(--lm-muted);font-size:1.1rem;margin:0}
.lmt-section__inner{margin-top:3rem}
.lmt-duo{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr))}
.lmt-path,.lmt-way{display:grid;gap:.75rem;align-content:start;justify-items:start;padding:clamp(1.25rem,3vw,2rem);background:var(--lm-surface);border:1px solid var(--lm-line);border-radius:16px}
.lmt-path{border-top:4px solid var(--lm-accent)}
.lmt-path h3,.lmt-way h3{font-size:1.4rem;margin:0}
.lmt-path p,.lmt-way p{color:var(--lm-muted);margin:0}
.lmt-path__actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:.5rem}
.lmt-way__tag{font:600 .78rem var(--lm-mono);color:var(--lm-link)}
.lmt-split{display:grid;gap:2.5rem;align-items:center;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.lmt-ticks{list-style:none;padding:0;display:grid;gap:.6rem}
.lmt-ticks li{padding-left:1.6rem;position:relative}
.lmt-ticks li::before{content:"✓";position:absolute;left:0;color:var(--lm-link);font-weight:700}

/* Pages and articles */
.lmt-pagehead{padding-block:clamp(2rem,5vw,3.5rem) clamp(1rem,2.5vw,1.75rem)}
.lmt-pagehead h1{max-width:none;margin-bottom:.4em} /* no artificial cap: a title that fits on one line stays on one line */
.lmt-pagehead--article h1{max-width:22ch}
.lmt-apphead{padding-block:1.5rem .5rem}.lmt-apphead h1{font-size:clamp(1.5rem,4vw,2.2rem);margin:0}
.lmt-content{padding-bottom:clamp(3rem,7vw,5rem)}
.lmt-content--page>*{max-width:48rem}
.lmt-content--page>.lm-search,.lmt-content--page>.lm-grid,.lmt-content--page>.lm-tiles,.lmt-content--page>.lm-pricing,.lmt-content--page>.lm-cta,.lmt-content--page>.lm-steps,.lmt-content--page>.lm-benefits,.lmt-content--page>.lm-metrics,.lmt-content--page>.lm-tabs,.lmt-content--page>.lm-app,.lmt-content--page>.lm-wizard,.lmt-content--page>.lm-auth{max-width:none}
.lmt-content--page>.lm-auth{max-width:30rem}
.lmt-content h2{margin-top:2em}
.lmt-content>h2:first-child,.lmt-content .lm-form h2,.lmt-content .lm-card h2,.lmt-content .lm-cta h2,.lmt-content .lm-callout h2,.lmt-content .lm-board h2,.lmt-content .lm-empty h2{margin-top:0}
.lmt-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.25rem .5rem;padding:0;margin:0 0 1rem;font-size:.85rem;color:var(--lm-muted)}
.lmt-crumbs li+li::before{content:"/";margin-right:.5rem;opacity:.5}
.lmt-crumbs a{color:var(--lm-muted)}
.lmt-article__grid{display:grid;gap:2.5rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:1040px){.lmt-article__grid{grid-template-columns:16rem minmax(0,46rem);justify-content:center}.lmt-toc{position:sticky;top:6rem;align-self:start;max-height:calc(100vh - 8rem);overflow:auto}}
.lmt-toc{padding:1rem 1.15rem;border:1px solid var(--lm-line);border-radius:12px;background:var(--lm-surface);font-size:.9rem}
.lmt-toc__title{font:700 .85rem var(--lm-font);margin:0 0 .5rem}
.lmt-toc ol{margin:0;padding-left:1.1rem;display:grid;gap:.4rem}
.lmt-toc a{color:var(--lm-text);text-decoration:none}.lmt-toc a:hover,.lmt-toc a.is-active{color:var(--lm-link);text-decoration:underline}
.lmt-prose{font-size:1.09rem;line-height:1.75}
.lmt-prose table{display:block;overflow-x:auto;margin:1.75rem 0;font-size:.95rem;border:1px solid var(--lm-line);border-radius:12px}
.lmt-prose th,.lmt-prose td{padding:.75rem .9rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--lm-line);min-width:9rem}
.lmt-prose th{background:var(--lm-bg-soft);font-size:.85rem}
.lmt-prose li{margin-bottom:.45em}
.lmt-article__after{display:grid;gap:3rem;padding-bottom:4rem}
.lmt-article__hero img{border-radius:16px;width:100%}
.lm-article img{border-radius:10px;aspect-ratio:1200/630;object-fit:cover;width:100%}
.lmt-searchform{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;max-width:34rem}.lmt-searchform .lm-field{flex:1}
.nav-links{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:2rem}
.nav-links .page-numbers{min-width:44px;min-height:44px;display:grid;place-items:center;padding:0 .6rem;border:1.5px solid var(--lm-line);border-radius:8px;text-decoration:none;color:var(--lm-text);font-weight:600}
.nav-links .current{background:var(--lm-accent);border-color:var(--lm-accent);color:var(--lm-accent-ink)}
.lmt-404__code{font:700 clamp(3rem,10vw,6rem)/1 var(--lm-mono);color:var(--lm-link);margin:0;position:relative}
.lmt-404 h1{font-size:clamp(1.5rem,4vw,2.2rem);position:relative}

/* Footer */
.lmt-footer{background:var(--lm-ink,#0A0F0D);color:#A3B3AA;padding-block:clamp(2.5rem,6vw,4rem) 2rem;font-size:.93rem}
.lmt-footer a{color:#D5E0DA;text-decoration:none}.lmt-footer a:hover{color:#fff;text-decoration:underline}
.lmt-footer__grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,10.5rem),1fr))}
.lmt-footer__brand{grid-column:1/-1;max-width:26rem}
/* Desktop: brand plus four link columns on one row (auto-fit left the last column stranded on its own row). */
@media (min-width:900px){.lmt-footer__grid{grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr))}.lmt-footer__brand{grid-column:auto}}
.lmt-footer__brand p{margin-top:1rem}
.lmt-footer .lmt-logo__light{display:none!important}.lmt-footer .lmt-logo__dark{display:block!important}
.lmt-footer h2{font:700 .85rem var(--lm-font);color:#fff;letter-spacing:0;margin:0 0 .75rem}
.lmt-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.lmt-footer__disclaimer{margin:2.5rem 0 1.5rem;padding-top:1.5rem;border-top:1px solid #26332D;font-size:.8rem;line-height:1.6;max-width:none}
.lmt-footer__base{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;font-size:.82rem}
.lmt-footer__base p{margin:0}.lmt-footer__base ul{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem}
@media print{.lmt-header,.lmt-footer,.lm-cta,.lmt-toc{display:none}}
/* Phones: keep Get Funding in the bar (compact), drop it only below 350px where it cannot fit beside the logo. */
@media (max-width:479px){.lmt-header__bar{gap:.5rem}.lmt-header__cta{min-height:36px;padding:.3rem .7rem;font-size:.8rem}.lmt-logo img,.custom-logo{height:18px}}
@media (max-width:349px){.lmt-header__cta{display:none}.lmt-burger{margin-left:auto}}
.lmt-split .lm-matchcard{justify-self:center}
.lmt-content--page>.lm-geo-links{max-width:none}
.lmt-content--page>.lm-cta{margin-top:2.5rem}

.lmt-backdrop{position:fixed;inset:0;z-index:890;background:rgba(10,15,13,.45);cursor:pointer}
.lmt-backdrop[hidden]{display:none}

/* Design pass */
.lmt-section--ink .lm-benefits li{background:none;border-color:var(--lm-green-bright,#1FBE76)}
/* Phones: card rows on the homepage become a swipeable strip instead of a very long stack */
@media (max-width:640px){
  .home .lmt-section .lm-grid{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:.75rem;margin-inline:calc(var(--lmt-gutter) * -1);padding-inline:var(--lmt-gutter);scroll-padding-inline:var(--lmt-gutter)}
  .home .lmt-section .lm-grid>*{flex:0 0 86%;scroll-snap-align:start}
}
/* FAQ and similar: heading on the left, content on the right */
@media (min-width:960px){
  .lmt-section--split>.lmt-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:3rem;align-items:start}
  .lmt-section--split .lmt-section__head{margin:0;position:sticky;top:6rem}
  .lmt-section--split .lm-faq{max-width:none}
}
/* Plain text pages (class set by page.php when the content has no wide components): heading and reading column share one centred measure */
.lmt-page--text .lmt-pagehead>*,.lmt-page--text .lmt-content--page>*{max-width:48rem;margin-inline:auto}
.lmt-content--page>.lm-cta{max-width:48rem}

/* Pricing: three plans in one row from 800px, stacked below; the trial is a single line above them */
@media (min-width:800px){.lm-pricing__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:799px){.lm-pricing__grid{grid-template-columns:minmax(0,1fr)}}

/* Motion. Everything here is decoration: off for reduced-motion visitors, and content is never hidden without JavaScript. */
.lmt-header{transition:box-shadow .25s ease}
.lmt-header.is-scrolled{box-shadow:0 8px 28px rgba(10,15,13,.09)}
[data-lm-theme="dark"] .lmt-header.is-scrolled{box-shadow:0 8px 28px rgba(0,0,0,.45)}
@media (prefers-reduced-motion:no-preference){
  @keyframes lmt-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  @keyframes lmt-drift{to{background-position:22px 22px}}
  .lmt-hero__copy>*,.lmt-hero__form,.lmt-pagehead>*{animation:lmt-rise .75s cubic-bezier(.2,.7,.2,1) both}
  .lmt-hero__copy>:nth-child(2),.lmt-pagehead>:nth-child(2){animation-delay:.07s}
  .lmt-hero__copy>:nth-child(3),.lmt-pagehead>:nth-child(3){animation-delay:.14s}
  .lmt-hero__copy>:nth-child(4){animation-delay:.21s}
  .lmt-hero__copy>:nth-child(5){animation-delay:.28s}
  .lmt-hero__form{animation-delay:.18s}
  .lmt-motion [data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * 70ms)}
  .lmt-motion [data-reveal].is-in{opacity:1;transform:none}
  .lmt-motion .lm-matchcard.is-in li{animation:lmt-rise .5s cubic-bezier(.2,.7,.2,1) both}
  .lmt-motion .lm-matchcard.is-in li:nth-child(1){animation-delay:.35s}.lmt-motion .lm-matchcard.is-in li:nth-child(2){animation-delay:.5s}.lmt-motion .lm-matchcard.is-in li:nth-child(3){animation-delay:.65s}.lmt-motion .lm-matchcard.is-in li:nth-child(4){animation-delay:.8s}.lmt-motion .lm-matchcard.is-in li:nth-child(5){animation-delay:.95s}
  .lm-cta__grid,.lm-empty__grid{animation:lmt-drift 14s linear infinite}
}

/* Dark-mode switch (footer). The footer is always dark, so the switch uses fixed colours. */
.lmt-switch{display:inline-flex;align-items:center;gap:.6rem;min-height:44px;padding:0 .25rem;border:0;background:none;color:#D5E0DA;font:600 .85rem var(--lm-font);cursor:pointer}
.lmt-switch__track{position:relative;flex:none;width:44px;height:24px;border-radius:999px;background:#3A4A42;transition:background-color .2s ease}
.lmt-switch__thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s ease}
.lmt-switch[aria-checked="true"] .lmt-switch__track{background:#1FBE76}
.lmt-switch[aria-checked="true"] .lmt-switch__thumb{transform:translateX(20px)}
.lmt-switch__state{min-width:1.9em;text-align:left;color:#A3B3AA;font-weight:500}
.lmt-switch:focus-visible{outline:3px solid #8AB4F8;outline-offset:4px;border-radius:8px}
.lmt-footer__base{align-items:center}

/* Dark mode is the default, so dark-on-dark blocks need their own edges: the call-to-action card, the "ink" section and the footer used to melt into the page. */
[data-lm-theme="dark"] .lm-cta{background:linear-gradient(180deg,#14201B 0%,#0E1613 100%);border:1px solid #2A3A33;box-shadow:0 0 0 1px rgba(31,190,118,.06),0 24px 60px rgba(0,0,0,.45)}
[data-lm-theme="dark"] .lmt-section--ink{background:#0E1613;border-block:1px solid #1E2A25}
[data-lm-theme="dark"] .lmt-section--ink .lm-benefits li{background:none}
[data-lm-theme="dark"] .lmt-footer{border-top:1px solid #1E2A25;background:#070B09}

/* Wide content pages (For Borrowers, For Lenders, Pricing, Advertise, How It Works, data pages…): a two-column editorial
   layout so the lower half is balanced instead of hugging the left edge. Section heading in the left column, its text,
   lists and FAQs in the right one; wide components (benefit grids, steps, pricing, tiles, tables, calls to action) and
   everything before the first heading span the full width. Flat HTML from the editor works as is. Phones stay single column. */
@media (min-width:960px){
  .lmt-page:not(.lmt-page--text) .lmt-content--page{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);column-gap:clamp(2rem,5vw,4.5rem);row-gap:1.1rem;align-items:start}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>*{grid-column:2;max-width:none;min-width:0;margin-block:0}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>h2{grid-column:1;margin-top:2.75rem;padding-top:1.1rem;border-top:2px solid var(--lm-accent);font-size:clamp(1.3rem,2.2vw,1.65rem)}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>h2+*{margin-top:2.75rem;padding-top:1.1rem;border-top:1px solid var(--lm-line)}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>:not(h2):not(h2~*),
  .lmt-page:not(.lmt-page--text) .lmt-content--page>:is(.lm-benefits,.lm-steps,.lm-pricing,.lm-cta,.lm-search,.lm-grid,.lm-tiles,.lm-tabs,.lm-metrics,.lm-geo-links,.lm-tablewrap,.lm-app,.lm-wizard,.lm-disclaimer--listing),
  .lmt-page:not(.lmt-page--text) .lmt-content--page>h2:has(+:is(.lm-benefits,.lm-steps,.lm-pricing,.lm-grid,.lm-tiles,.lm-tabs,.lm-metrics,.lm-tablewrap)){grid-column:1/-1}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>h2+:is(.lm-benefits,.lm-steps,.lm-pricing,.lm-grid,.lm-tiles,.lm-tabs,.lm-metrics,.lm-tablewrap){margin-top:.4rem;padding-top:0;border-top:0}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>.lm-lead{max-width:62rem}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>.lm-cta{margin-top:3rem;max-width:none}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>.lm-matchcard{max-width:30rem}
  .lmt-page:not(.lmt-page--text) .lmt-content--page .lm-faq{max-width:none}
  .lmt-page:not(.lmt-page--text) .lmt-content--page>ul:not([class]),.lmt-page:not(.lmt-page--text) .lmt-content--page>ol:not([class]){padding-left:1.2rem}
}

/* Directory pages (Loan Types, Industries, Loan Uses, Lenders by State): equal tiles, and a short last row is centred
   instead of leaving empty cells on the right. */
.lmt-content--page>.lm-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;--lmt-cols:2}
.lmt-content--page>.lm-tiles>li{flex:0 0 calc((100% - (var(--lmt-cols) - 1) * .6rem) / var(--lmt-cols));min-width:0}
.lmt-content--page>.lm-tiles>li>.lm-tile{height:100%}
@media (min-width:600px){.lmt-content--page>.lm-tiles{--lmt-cols:3}}
@media (min-width:900px){.lmt-content--page>.lm-tiles{--lmt-cols:4}}
@media (min-width:1100px){.lmt-content--page>.lm-tiles{--lmt-cols:5}}
@media (max-width:599px){.lmt-content--page>.lm-tiles.lm-tiles--states{--lmt-cols:2}}
