/* ==========================================================================
   QuickLiquidity — site navigation
   Built Sept 1, 2026. Replaces the original Stack-template nav.

   WHAT USES THIS
   Loaded sitewide from inc/_header.php. The markup lives in inc/_nav.php.

   TWO STYLES
   .ql-nav--default  white bar, hairline bottom edge   (all main pages)
   .ql-nav--ink      solid navy bar                    (press-releases/,
                                                        resources/, blog/,
                                                        bankruptcy-services)
   A page opts into the navy one by setting  $navStyle = 'ink';  before it
   includes _nav.php. Nothing else changes.

   WHY IT IS ITS OWN FILE
   inc/_header.php loads custom.min.css, not custom.css — so edits to
   custom.css alone do nothing on the live site. Keeping the nav in its own
   plain (unminified) file means one source of truth, no minify step to
   forget, and no risk of disturbing any existing page. Every class here is
   namespaced ql-* so it cannot collide with theme.css or custom.css.

   HOUSE RULES THIS FOLLOWS
   - Menu items use normal capitalization, not ALL CAPS. Caps is reserved
     for ~11-12px labels (eyebrow chips, micro-labels, badges).
     See Claude/Design System/QuickLiquidity Website - Design System.md
   - Apply Now reuses the site's own .btn .btn--primary .border--round
     classes, so it inherits the real button styling and the -2px hover
     lift from theme.css automatically and stays matched forever.
   ========================================================================== */

/* ============================================================
   QuickLiquidity — navigation rebuild preview  (round 2)
   TEMPORARY LOCAL TEST FILE. Do not upload to the live server.
   Delete the whole /nav-test/ folder once a direction is chosen.

   Round 2 changes, per Yoni's notes:
   - logo is the SVG now (was a small .webp — that's why it looked
     blurry on a Retina screen) + a 1px optical nudge down
   - Apply Now is now the site's real button, exactly
     (index.php line 649 + theme.css .btn--primary / .border--round)
   - Direction B (soft pill) removed
   - blue underline on the active page removed
   - "Invest With Us" moved out of the phone/CTA cluster
   - phone icon is the site's own icon, at 15px
   ============================================================ */

:root{
  --ql-blue:#267FFD; --ql-blue-hover:#3F8EFD; --ql-blue-active:#0D70FD;
  --ql-blue-text:#1556C4; /* blue TEXT on light; --ql-blue stays for fills */
  --ql-deep:#1556C4; --ql-sky:#4F97FF;
  --ql-ink:#0A2540;  --ql-text:#2A3B52; --ql-muted:#5E6E80;
  --ql-line:#DCE4ED; --ql-mist:#EEF3F8; --ql-cloud:#FAFAFA;
  --ql-chipbg:#EAF2FF; --ql-chipbd:#CFE0FF;
}

/* --------------------------------------------------------------------------
   MARGIN RESET — do not remove.
   theme.min.css carries a bare rule inside @media (max-width: 990px):
       button { margin-top: 1.85714em; }
   ...which silently pushes EVERY <button> on the site down ~30px on mobile.
   It knocked the hamburger out of line with the call button, and would have
   done the same to the Company row inside the mobile menu. Bootstrap and
   theme also set margins on <a>, <p> and <img>. This resets everything the
   nav owns so the layout is decided here and nowhere else.
   -------------------------------------------------------------------------- */
.ql-nav a,
.ql-nav button,
.ql-nav p,
.ql-nav img,
.ql-nav svg{margin:0}

/* --------------------------------------------------------------------------
   NO UNDERLINE ON HOVER — do not remove.
   theme.css line 4163 has a bare rule:
       a:hover { color: #0e6acc; text-decoration: underline; }
   It applies to every link on the site. `.ql-link { text-decoration: none }`
   loses to it, because `a:hover` (specificity 0,1,1) outranks a single class
   (0,1,0). This didn't show up in the standalone preview pages because those
   never loaded theme.css. Stated at :hover/:focus with enough weight to win.
   -------------------------------------------------------------------------- */
.ql-nav a,
.ql-nav a:hover,
.ql-nav a:focus,
.ql-nav a:active,
.ql-nav a:visited{text-decoration:none}

/* --------------------------------------------------------------------------
   STICKY FIX — do not remove.
   index.php, bridge-loan-program.php and brokers.php each set, in their own
   page <style> block:
       html { overflow-x: hidden; }
       body { overflow-x: hidden; }
   That's there to stop the full-bleed sections (the deals strip, etc.) from
   causing a sideways scrollbar. The side effect: `overflow-x: hidden` turns
   html/body into a scroll container, and that silently kills `position:
   sticky` on everything inside — which is why the nav scrolled away on the
   homepage and the brokers page but stayed put everywhere else.

   `overflow-x: clip` does the same clipping WITHOUT creating a scroll
   container, so sticky keeps working. Written with :root (specificity 0,1,0)
   so it beats the pages' own `html` rule (0,0,1) no matter which loads last.
   Browsers too old for `clip` simply ignore these two lines and keep the
   pages' `hidden` — no sideways scroll either way.
   -------------------------------------------------------------------------- */
:root{overflow-x:clip}
:root > body{overflow-x:clip}

html{scroll-behavior:smooth}

/* --------------------------------------------------------------------------
   PAGE-LEVEL RESETS DELIBERATELY REMOVED (2026-09-01) — do not re-add.

   nav.css was originally written as a standalone preview page, so it carried
   the boilerplate that page needed to look right on its own:

       *{box-sizing:border-box}
       body{margin:0; font-family:Inter,...; font-size:16px; line-height:1.6;
            color:var(--ql-text); background:#fff; -webkit-font-smoothing:antialiased}
       .container{max-width:1200px;margin:0 auto;padding:0 28px}

   Dropped into inc/_header.php AFTER theme.min.css, those became SITEWIDE
   overrides. Two of them broke pages that have nothing to do with the nav:

   1. body{font-size:16px}. The Stack theme's base is html{font-size:87.5%}
      = 14px, and essentially every size in theme.css is stated in `em`,
      i.e. relative to that inherited 14px. Raising body to 16px scaled all
      of them up 14.3% at once:
        body copy      14px  -> 16px
        .lead          19px  -> 21.7px   (press.php intro went 2 lines -> 3)
        h2 (2.357em)   33px  -> 37.7px
        .btn padding + line-height (also em) grew, while `.btn .btn__text`
        is 1rem — rem is relative to <html>, which never changed — so the
        BOX grew and the LABEL didn't. That's the "buttons have extra
        padding / look massive" on recent-closings and invest-with-us.
      line-height:1.6 and color:#2A3B52 leaked the same way (theme:
      1.857em and #666666).

   2. .container{max-width:1200px;padding:0 28px} overrode Bootstrap's
      .container (1140px / 15px padding) on the ~227 pages that use it.
      The nav's own markup doesn't use .container at all.

   Everything the nav actually needs is scoped under .ql-* and states its own
   px font-size and height, so none of this was load-bearing here. Bootstrap
   already supplies *{box-sizing:border-box} and body{margin:0}, and theme.css
   already sets Inter, #fff and antialiasing.

   RULE FOR FUTURE NAV/COMPONENT CSS: nothing in this file may target a bare
   element (body, p, h1-h6, a, section, button) or a shared framework class
   (.container, .row, .btn, .col-*). Scope it to .ql-.
   -------------------------------------------------------------------------- */

/* ============================================================
   1. THE NAV
   ============================================================ */
.ql-nav{position:sticky;top:0;z-index:500}
.ql-navwrap{transition:box-shadow .2s ease}
.ql-bar{
  display:flex;align-items:center;gap:24px;height:78px;
  padding:0 28px;max-width:1200px;margin:0 auto;
  transition:height .2s ease;
}
.ql-nav.is-stuck .ql-bar{height:68px}

/* --------------------------------------------------------------------------
   NO EXTRA GAP UNDER THE BAR — do not remove.
   The nav this replaced was `position: absolute` above 991px (theme.css line
   3237, inside @media all and (min-width: 991px)). Absolute means it took up
   ZERO space — it floated over the top of the hero, and every page's first
   section was given a big top padding (138px on the homepage, 150px on
   invest-with-us, and so on) specifically to clear it.

   This bar is `position: sticky`, which DOES occupy space. So on every
   desktop page the content sat 78px lower than it used to — the gap Yoni
   spotted between the bar and the blue eyebrow pills.

   Pulling the bar's own height back out with a negative bottom margin
   restores the exact geometry the pages were built for. Nothing gets newly
   covered: the old nav occupied the same 78px band.

   The two values below are deliberately the same as the two .ql-bar heights,
   so the in-flow contribution is 0px in BOTH states. If they didn't match,
   the page would jump 10px the moment you started scrolling.

   Desktop only — below 991px the old nav was in the flow like this one is,
   so mobile spacing was already correct and must not be touched.
   -------------------------------------------------------------------------- */
@media (min-width:992px){
  .ql-nav{margin-bottom:-78px}
  .ql-nav.is-stuck{margin-bottom:-68px}
}

/* --- logo ---
   SVG, so it stays crisp at any size and on any screen.
   translateY(1px): the wordmark's descenders (the Q tail and the y)
   sit at the very bottom of the artwork, so a mathematically centred
   logo reads as sitting high. This nudges the visible mass back onto
   the bar's centreline. Change --logo-h to resize it. */
.ql-logo{display:flex;align-items:center;flex:none;text-decoration:none}
.ql-logo img{
  height:var(--logo-h,30px);width:auto;display:block;
  transform:translateY(1px);
}

.ql-menu{display:flex;align-items:center;gap:2px;align-self:stretch;flex:none}
.ql-item{position:relative;display:flex;align-items:center}
.ql-link{
  display:inline-flex;align-items:center;gap:6px;
  font-family:inherit;font-size:15px;font-weight:600;letter-spacing:-.005em;
  text-decoration:none;white-space:nowrap;cursor:pointer;
  padding:9px 14px;border-radius:8px;
  background:transparent;border:0;
  transition:color .14s;
}
.ql-link:focus-visible{outline:2px solid var(--ql-blue);outline-offset:2px}
.ql-link .chev{transition:transform .18s ease;opacity:.55}
.ql-item:hover .chev,.ql-item:focus-within .chev{transform:rotate(180deg)}
/* current page: colour + weight only. No underline, no pill. */
.ql-item.is-current .ql-link{font-weight:700}

/* --- right-hand cluster --- */
.ql-right{display:flex;align-items:center;gap:18px;margin-left:auto;flex:none}
.ql-div{width:1px;height:26px;background:var(--ql-line);flex:none}
.ql-phone{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  font-size:15px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;
}
.ql-phone svg{flex:none;width:15px;height:15px;display:block}
.ql-phone:focus-visible{outline:2px solid var(--ql-blue);outline-offset:3px;border-radius:4px}

/* --- Apply Now -------------------------------------------------
   The site's real button, including the bits I missed first time:
     theme.css .btn        transition: 0.1s linear
     theme.css .btn:hover  transform: translate3d(0,-2px,0)   <- the lift
     theme.css .btn--primary        background #267FFD, 1px border
     theme.css .btn--primary:hover  #3F8EFD
     theme.css .btn--primary:active #0D70FD
     .border--round                 border-radius 6px
     .btn__text                     #fff / 700

   Height: the site has three real Apply Now buttons and they are
   NOT the same height as each other today —
     index.php line 649   53px, padding 0 28px  (homepage hero)
     index.php line 1039  48px, padding 0 24px  (inline bar)
     current nav          43px, padding 12px 18px
   Using the 48px one: same colour, radius, type and hover as the
   hero button, but it doesn't swallow the bar. Change --cta-h to
   53px if you'd rather have the hero size exactly. */
.ql-cta{
  --cta-h:48px;
  display:inline-flex;align-items:center;justify-content:center;
  height:var(--cta-h);padding:0 24px;box-sizing:border-box;
  background:var(--ql-blue);border:1px solid var(--ql-blue);border-radius:6px;
  color:#fff;text-decoration:none;
  font-family:inherit;font-size:14px;font-weight:700;white-space:nowrap;
  box-shadow:none;
  transition:0.1s linear;
}
.ql-cta:hover{
  background:var(--ql-blue-hover);border-color:var(--ql-blue-hover);
  transform:translate3d(0,-2px,0);
}
.ql-cta:active{
  background:var(--ql-blue-active);border-color:var(--ql-blue-active);
  transform:none;
}
.ql-cta:focus-visible{outline:2px solid var(--ql-ink);outline-offset:3px}

/* --- dropdown panel --- */
.ql-drop{
  position:absolute;top:100%;left:6px;
  /* 8px of breathing room between the menu item and the panel.
     The invisible hover bridge below is 18px tall, so it still
     spans this gap and the menu won't drop as you move down. */
  margin-top:8px;
  min-width:172px;padding:8px;
  background:#fff;border:1px solid var(--ql-line);border-radius:12px;
  box-shadow:0 20px 44px rgba(15,28,46,.14);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
}
.ql-item:hover>.ql-drop,.ql-item:focus-within>.ql-drop{
  opacity:1;visibility:visible;transform:translateY(0);
}
/* invisible hover bridge — stops the menu closing on a diagonal mouse move */
.ql-drop::before{content:"";position:absolute;top:-18px;left:0;right:0;height:18px}
.ql-drop a{
  display:block;padding:9px 12px;border-radius:8px;text-decoration:none;
  font-size:14.5px;font-weight:600;color:var(--ql-text);white-space:nowrap;
  transition:background-color .12s,color .12s;
}
.ql-drop a:hover,.ql-drop a:focus-visible{background:#F3F8FF;color:var(--ql-blue-text);outline:none}
.ql-drop a[aria-current]{background:#F3F8FF;color:var(--ql-blue-text)}

/* ------------------------------------------------------------
   DEFAULT STYLE — white bar with a hairline bottom edge
   ------------------------------------------------------------ */
.ql-nav--default .ql-navwrap{background:#fff;border-bottom:1px solid var(--ql-line)}
.ql-nav--default .ql-nav.is-stuck .ql-navwrap{box-shadow:0 6px 22px rgba(10,37,64,.09)}
.ql-nav--default .ql-link{color:var(--ql-text)}
.ql-nav--default .ql-link:hover{color:var(--ql-blue-text)}
.ql-nav--default .ql-item.is-current .ql-link{color:var(--ql-blue-text)}
.ql-nav--default .ql-phone{color:var(--ql-ink)}
.ql-nav--default .ql-phone svg{color:var(--ql-ink)}

/* ------------------------------------------------------------
   INK STYLE — solid navy bar (gradient-hero pages)
   ------------------------------------------------------------ */
.ql-nav--ink .ql-navwrap{background:var(--ql-ink)}
.ql-nav--ink .ql-nav.is-stuck .ql-navwrap{box-shadow:0 10px 30px rgba(10,37,64,.34)}
.ql-nav--ink .ql-link{color:#B9CBE0}
.ql-nav--ink .ql-link:hover{color:#fff}
.ql-nav--ink .ql-item.is-current .ql-link{color:#fff}
.ql-nav--ink .ql-div{background:rgba(255,255,255,.22)}
.ql-nav--ink .ql-phone{color:#fff}
.ql-nav--ink .ql-phone svg{color:#fff}

/* Apply Now on the navy bar: white button, navy text.
   Blue-on-navy is weak contrast — the button stops reading as the one
   thing to press. White inverts it so it's the brightest object in the
   bar, which is what a primary action should be. Matches the site's own
   .btn--white idea, but with the navy ink colour instead of #252525 so
   it sits in the QuickLiquidity palette.
   Scoped to .ql-bar on purpose: the mobile menu panel is white, so its
   Apply Now button stays blue or it would vanish. */
.ql-nav--ink .ql-bar .ql-cta{
  background:#fff;
  border-color:#fff;
}
.ql-nav--ink .ql-bar .ql-cta .btn__text{color:var(--ql-ink)}
.ql-nav--ink .ql-bar .ql-cta:hover{
  background:#EAF0F7;
  border-color:#EAF0F7;
}
.ql-nav--ink .ql-bar .ql-cta:active{
  background:#DCE5F0;
  border-color:#DCE5F0;
}

/* ============================================================
   2. NARROWER DESKTOP WIDTHS
   The live nav has a hardcoded 550px menu module and simply
   overflows. This degrades in stages instead — the menu items
   and the Apply Now button always survive.
   ============================================================ */
@media (max-width:1240px){
  .ql-bar{gap:14px;padding:0 20px}
  .ql-link{padding:9px 11px;font-size:14.5px}
  .ql-right{gap:14px}
}
@media (max-width:1080px){
  .ql-phone,.ql-div{display:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important}
  html body.menu-open .ql-mobile{animation:none}
}


/* ============================================================
   6. BAR LAYOUT — where the menu sits between the logo and the
   phone/Apply Now cluster.

   LEFT (default, and what the live site does): logo, then the menu
   immediately after it, then the actions pushed to the far right.
   The gap all lands in one place, in the middle.

   CENTERED: a three-column grid — logo | menu | actions — with the
   two outer columns set to 1fr so they always claim equal width.
   That puts the menu on the bar's true centreline and splits the
   leftover space into two equal gaps instead of one big one. It
   re-centres by itself at every browser width, which is what makes
   it "responsive" in the way that actually matters here.

   Below 1240px the centred version drops back to LEFT, because at
   that point there is no leftover space to distribute and forcing
   equal columns would squeeze the menu.
   ============================================================ */
/* EVEN GAPS: the menu gets equal free space on both sides, so the
   gap from the logo to the menu matches the gap from the menu to
   the phone. This is "centred between the logo and the phone",
   which is NOT the same as "centred in the bar" above — because
   the phone + Apply Now cluster is wider than the logo, the two
   options land the menu in different places. Even-gaps sits a
   little left of the bar's true centreline; centred sits on it. */
.ql-menu{margin-left:auto;margin-right:auto}
.ql-right{margin-left:0}

@media (max-width:1240px){
  .ql-menu{margin-left:0;margin-right:0}
  .ql-right{margin-left:auto}
}


/* ============================================================
   7. MOBILE  (below 992px)

   The current site reuses the desktop nav as the mobile menu via a
   `data-toggle-class` hack, then lists the same links twice — once
   as a centred stack, again in a two-column block whose headings
   ("Company" / "Resources") don't match what's under them. This is
   a purpose-built mobile menu instead: one list, one of each link,
   Company as an expand-in-place accordion so nothing is buried,
   and the two things people actually came for — call us, apply —
   pinned at the bottom where a thumb reaches.

   Every tap target is at least 44px tall.
   ============================================================ */

.ql-burger{display:none}
.ql-mobile{display:none}

@media (max-width:991px){

  /* --- the bar itself --- */
  .ql-menu{display:none}
  .ql-right{display:none}
  .ql-bar{height:64px;padding:0 18px;gap:14px;display:flex}
  .ql-nav.is-stuck .ql-bar{height:60px}
  /* 29px, up from 26px on 9/20/26: Yoni's read on a real phone was that the
     wordmark sat a touch small in a 64px bar. Still leaves 17px of clear
     space above and below it. --logo-h (30px) governs desktop. */
  .ql-logo img{height:29px}

  .ql-mobtools{display:flex;align-items:center;gap:4px;margin-left:auto}

  /* phone stays one tap away without opening the menu.
     Blue is fine here — Yoni's note was that blue reads as
     "clickable", and on mobile that's exactly the message. */
  .ql-callbtn{
    display:inline-flex;align-items:center;justify-content:center;
    width:46px;height:46px;border-radius:10px;text-decoration:none;
  }
  .ql-callbtn svg{width:19px;height:19px}
  .ql-nav--default .ql-callbtn{color:var(--ql-blue-text)}
  .ql-nav--default .ql-callbtn:active{background:#F1F5FA}
  .ql-nav--ink .ql-callbtn{color:#8FBEFF}
  .ql-nav--ink .ql-callbtn:active{background:rgba(255,255,255,.10)}

  .ql-burger{
    display:inline-flex;align-items:center;justify-content:center;
    width:46px;height:46px;padding:0;border:0;background:transparent;
    border-radius:10px;cursor:pointer;
  }
  .ql-burger:focus-visible{outline:2px solid var(--ql-blue);outline-offset:2px}
  .ql-burger span{
    display:block;position:relative;width:22px;height:2px;border-radius:2px;
    background:currentColor;transition:transform .22s ease, background-color .1s;
  }
  .ql-burger span::before,.ql-burger span::after{
    content:"";position:absolute;left:0;width:22px;height:2px;border-radius:2px;
    background:currentColor;transition:transform .22s ease, top .18s ease;
  }
  .ql-burger span::before{top:-7px}
  .ql-burger span::after{top:7px}
  .ql-nav--default .ql-burger{color:var(--ql-ink)}
  .ql-nav--ink .ql-burger{color:#fff}
  /* becomes an X while open */
  body.menu-open .ql-burger span{background:transparent}
  body.menu-open .ql-burger span::before{top:0;transform:rotate(45deg)}
  body.menu-open .ql-burger span::after{top:0;transform:rotate(-45deg)}

  /* --- the panel --- */
  /* Scroll lock.
     `overflow:hidden` on <body> alone does NOT stop the page scrolling on
     iOS Safari — which is what let the homepage slide around behind the
     open menu. Pinning the body works everywhere; the JS records the scroll
     position first and puts it back on close, so you don't lose your place.
     While the body is pinned the nav has to be fixed too, or it would sit
     at the document's top rather than the screen's. */
  body.menu-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}
  body.menu-open .ql-nav{position:fixed;top:0;left:0;right:0}
  /* Bar height is forced constant while the menu is open so the panel's
     top padding always lines up with it. */
  body.menu-open .ql-bar{height:64px}

  /* The panel covers the ENTIRE screen and pads its content down past the
     bar, rather than starting below the bar. Nothing can show through
     above it any more. The bar paints on top via .ql-navwrap's z-index. */
  .ql-navwrap{position:relative;z-index:2}
  /* CLOSED = display:none, NOT opacity:0 / visibility:hidden. (9/11/26)
     iPhone Safari on iOS 26 tints the area behind its floating toolbars
     using the background of any full-width position:fixed element touching
     the screen edge, and it counts invisible ones too. This panel used to
     sit there permanently at opacity 0 with a white background. Removing it
     until the menu opens keeps it out of Safari's sampling. (It turned out
     NOT to be the cause of the white strip over the homepage hero; that is
     Safari's page-background fill, handled in inc/_home-mobile.php. This is
     still the right way to hide it.) The fade-in is a keyframe animation
     because a transition cannot run from display:none. Closing is instant.
     Do not switch this back to an opacity/visibility hide. */
  .ql-mobile{
    display:none;position:fixed;top:0;left:0;right:0;bottom:0;
    background:#fff;z-index:1;
    padding:72px 20px 28px;overflow-y:auto;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  body.menu-open .ql-mobile{display:block;animation:ql-mobile-in .2s ease}
  @keyframes ql-mobile-in{
    from{opacity:0;transform:translateY(-10px)}
    to{opacity:1;transform:translateY(0)}
  }

  .ql-mobile a,.ql-mobile button{font-family:inherit}

  .ql-mrow{
    display:flex;align-items:center;justify-content:space-between;
    width:100%;padding:17px 2px;min-height:56px;box-sizing:border-box;
    border:0;background:transparent;text-align:left;cursor:pointer;
    border-bottom:1px solid var(--ql-line);
    font-size:17px;font-weight:700;color:var(--ql-ink);text-decoration:none;
  }
  .ql-mrow:active{color:var(--ql-blue-text)}
  .ql-mrow[aria-current]{color:var(--ql-blue-text)}
  .ql-mrow svg{transition:transform .2s ease;opacity:.5;flex:none}
  .ql-mrow[aria-expanded="true"] svg{transform:rotate(180deg)}

  /* Company accordion */
  .ql-msub{
    display:grid;grid-template-rows:0fr;
    transition:grid-template-rows .24s ease;
    border-bottom:1px solid var(--ql-line);
  }
  .ql-msub>div{overflow:hidden}
  .ql-mrow[aria-expanded="true"]+.ql-msub{grid-template-rows:1fr}
  /* Sub-links are set apart by indent and a lighter weight/colour rather than
     a rule down the left edge — stacked borders read as one long solid line,
     which looked like a stray graphic rather than nesting. */
  .ql-msub a{
    display:block;padding:13px 2px 13px 22px;min-height:46px;box-sizing:border-box;
    font-size:16px;font-weight:600;color:var(--ql-muted);text-decoration:none;
  }
  .ql-msub a:active{color:var(--ql-blue-text)}
  .ql-msub a[aria-current]{color:var(--ql-blue-text)}
  .ql-msub>div>:last-child{margin-bottom:10px}

  /* the two things people came for */
  .ql-mactions{margin-top:26px;display:flex;flex-direction:column;gap:12px}
  /* Same family of landmine as the button margin above: theme.css has
         @media (max-width:767px) { .btn:not(:last-child) { margin-bottom: 1.85714em } }
     which added ~30px underneath Apply Now, on top of the 12px gap — that's
     why it sat so far from the phone button. `.btn:not(:last-child)` is
     specificity (0,2,0), which outranks the general reset at the top of this
     file (0,1,1), so it needs beating explicitly here. */
  .ql-nav .ql-mactions a{margin:0}
  .ql-mactions .ql-cta{width:100%;height:53px;font-size:15px}
  .ql-mcall{
    display:flex;align-items:center;justify-content:center;gap:10px;
    height:53px;border-radius:6px;box-sizing:border-box;
    border:1px solid var(--ql-line);background:#fff;
    font-size:16px;font-weight:700;color:var(--ql-ink);text-decoration:none;
    font-variant-numeric:tabular-nums;
  }
  .ql-mcall svg{width:17px;height:17px;color:var(--ql-blue-text)}
  .ql-mcall:active{background:var(--ql-mist)}

  .ql-nav .ql-mnote{
    margin:22px 0 0;text-align:center;font-size:13px;color:var(--ql-muted);
  }

  /* --------------------------------------------------------------------------
     PHONE/TABLET BAR IS position:fixed, NOT sticky. Do not revert. (9/21/26)
     Yoni's screen recording (iPhone, iOS 26 Safari, homepage) showed the bar
     jittering a few px up and down during fast flicks, and on a flick back to
     the top it dropped ~30px with a blank band above it. Two causes:
       1. iOS Safari lets a position:sticky element lag the scroll during
          momentum scrolling and snap back a frame later. Fixed elements are
          pinned by the compositor and do not lag.
       2. The bar shrank 64px -> 60px (with a .2s height animation) whenever
          .is-stuck toggled at scrollY 8. Below 991px the nav is IN the page
          flow, so every toggle reflowed and re-animated the entire page, and
          during the top-of-page bounce scrollY crosses 8 repeatedly.
     So: the bar (.ql-navwrap) is fixed to the screen, the outer .ql-nav stays
     in the flow as an invisible spacer of exactly the bar's height (64px, plus
     the 1px hairline on the white style), and the bar no longer changes height
     on scroll. Page geometry is identical to before. Desktop (>991px) is
     untouched and still uses sticky + the shrink. The open-menu rules above
     still work: .ql-mobile is fixed full-screen at z-index 1 under the bar's
     z-index 2, inside .ql-nav's z-index 500 stacking context.
     -------------------------------------------------------------------------- */
  .ql-nav{position:relative;height:64px}
  .ql-nav.ql-nav--default{height:65px}
  .ql-navwrap{position:fixed;top:0;left:0;right:0}
  .ql-bar,
  .ql-nav.is-stuck .ql-bar{height:64px;transition:none}

}
