/* =========================================================
   MOBILE NAV
   - Bottom fixed mobile nav
   - Search sheet
   - Mobile search overlay/lock
   - Footer bottom safe spacing when mobile nav active
   ========================================================= */

nav#qtnav.qtnav{
  display:none;
  pointer-events:none;
}

@media (max-width:768px){

  body{
    padding-bottom:calc(var(--qt-nav-h) + var(--qt-nav-safe) + 6px);
  }

  nav#qtnav.qtnav{
    display:flex !important;
    pointer-events:auto !important;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    height:calc(var(--qt-nav-h) + var(--qt-nav-safe));
    padding:8px 10px calc(10px + var(--qt-nav-safe));
    justify-content:center;
    align-items:center;
    border-radius:18px 18px 0 0;
    overflow:hidden;
    isolation:isolate;
    background:
      radial-gradient(680px 180px at 15% -35%, rgba(109,124,246,.08), transparent 64%),
      radial-gradient(720px 180px at 85% -35%, rgba(143,183,232,.07), transparent 64%),
      linear-gradient(180deg, var(--qt-nav-bg1), var(--qt-nav-bg2));
    border-top:1px solid var(--qt-nav-line);
    box-shadow:
      0 -8px 24px rgba(16,21,38,.08),
      inset 0 1px 0 rgba(255,255,255,.72);
    -webkit-backdrop-filter:blur(10px) saturate(115%);
    backdrop-filter:blur(10px) saturate(115%);
    transform:translateY(0);
    transition:transform .18s ease, opacity .18s ease;
  }

  nav#qtnav.qtnav::after{
    content:"";
    position:absolute;
    left:18px;
    right:18px;
    top:0;
    height:1px;
    background:linear-gradient(
      90deg,
      rgba(255,255,255,0),
      rgba(109,124,246,.22) 20%,
      rgba(143,183,232,.14) 50%,
      rgba(109,124,246,.22) 80%,
      rgba(255,255,255,0)
    );
    pointer-events:none;
  }

  nav#qtnav.qtnav.is-hidden{
    transform:translateY(115%) !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  body.qt-search-open nav#qtnav.qtnav,
  body.qt-mm-open nav#qtnav.qtnav{
    transform:translateY(115%) !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  .qtnav__wrap{
    width:min(620px,100%);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
    padding:0 4px;
    position:relative;
    z-index:2;
  }

  .qtnav__link{
    position:relative;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:54px;
    padding:8px 6px 9px;
    border-radius:15px;
    color:var(--qt-nav-ink2);
    -webkit-tap-highlight-color:transparent;
    transition:background .14s ease, color .14s ease, transform .14s ease;
  }

  .qtnav__link::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:15px;
    opacity:0;
    background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(244,247,252,.42));
    border:1px solid rgba(97,110,138,.10);
    box-shadow:0 6px 14px rgba(16,21,38,.04);
    transition:opacity .14s ease;
    pointer-events:none;
  }

  .qtnav__link:hover::before,
  .qtnav__link.is-active::before{
    opacity:1;
  }

  .qtnav__link.is-active{
    color:var(--qt-nav-ink);
  }

  .qtnav__link:active{
    transform:scale(.985);
  }

  .qtnav__icon{
    width:24px;
    height:24px;
    min-width:24px;
    min-height:24px;
    display:grid;
    place-items:center;
    line-height:0;
    color:currentColor;
    position:relative;
    z-index:1;
  }

  .qtnav__icon > svg{
    width:20px;
    height:20px;
    display:block;
  }

  .qtnav__label{
    font-size:11px;
    line-height:1.05;
    min-height:12px;
    font-weight:850;
    letter-spacing:.01em;
    color:currentColor;
    position:relative;
    z-index:1;
    white-space:nowrap;
  }

  .qtnav__link--cta{
    color:#fff;
  }

  .qtnav__link--cta::before{
    opacity:1;
    background:linear-gradient(135deg, var(--qt-nav-ac), var(--qt-nav-ac3));
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 8px 18px rgba(109,124,246,.22);
  }

  .qtnav__link--cta .qtnav__icon,
  .qtnav__link--cta .qtnav__label{
    color:#fff;
  }

  .qtnav__link:focus-visible{
    outline:none;
    box-shadow:0 0 0 4px var(--qt-nav-ring);
  }

  #qtSheet.qt-sheet{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:999999999;
    height:min(72svh,72vh);
    transform:translateY(110%);
    transition:transform .22s cubic-bezier(.18,.82,.22,1);
    display:flex;
    flex-direction:column;
    padding:14px 14px calc(16px + env(safe-area-inset-bottom,0px));
    overflow:hidden;
    background:
      radial-gradient(760px 220px at 18% -10%, rgba(109,124,246,.08), transparent 64%),
      radial-gradient(740px 220px at 82% -10%, rgba(143,183,232,.06), transparent 64%),
      linear-gradient(180deg, var(--qt-sheet-bg1), var(--qt-sheet-bg2));
    border-radius:22px 22px 0 0;
    border:1px solid rgba(97,110,138,.14);
    border-bottom:none;
    box-shadow:0 -14px 36px rgba(16,21,38,.12);
    -webkit-backdrop-filter:blur(10px) saturate(115%);
    backdrop-filter:blur(10px) saturate(115%);
    contain:layout paint style;
  }

  #qtSheet.qt-sheet.active{
    transform:translateY(0);
  }

  #qtSheet.qt-sheet::before{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    width:52px;
    height:4px;
    border-radius:999px;
    background:rgba(24,32,49,.16);
    opacity:.9;
  }

  .qt-sheet-header{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px 0 10px;
    flex:0 0 auto;
  }

  .qt-sheet-title{
    font-size:17px;
    font-weight:900;
    letter-spacing:-.01em;
    color:var(--qt-nav-ink);
  }

  .qt-sheet-close{
    position:absolute;
    right:2px;
    top:6px;
    width:40px;
    height:40px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(97,110,138,.12);
    color:var(--qt-nav-ink);
    font-size:30px;
    line-height:1;
    opacity:.92;
    -webkit-tap-highlight-color:transparent;
  }

  .qt-input-wrap{
    margin-top:8px;
    flex:0 0 auto;
  }

  .qt-input-wrap input{
    width:100%;
    height:48px;
    padding:0 14px;
    border-radius:14px;
    border:1px solid rgba(97,110,138,.14);
    background:rgba(255,255,255,.86);
    color:var(--qt-nav-ink);
    font-size:15px;
    outline:none;
    box-shadow:0 6px 16px rgba(16,21,38,.05);
  }

  .qt-input-wrap input::placeholder{
    color:rgba(86,98,122,.72);
  }

  .qt-input-wrap input:focus{
    border-color:rgba(109,124,246,.24);
    box-shadow:0 0 0 4px rgba(109,124,246,.10);
  }

  .qt-results{
    margin-top:12px;
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding-right:2px;
  }

  .qt-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 4px;
    margin:0;
    border-radius:0;
    color:var(--qt-nav-ink);
    text-decoration:none;
    background:transparent;
    border:0;
    border-bottom:1px solid rgba(97,110,138,.10);
    box-shadow:none;
  }

  .qt-item:first-child{
    border-top:1px solid rgba(97,110,138,.10);
  }

  .qt-item:hover{
    background:rgba(109,124,246,.035);
    border-bottom-color:rgba(109,124,246,.14);
  }

  .qt-item > div:first-child{
    min-width:0;
    flex:1 1 auto;
  }

  .qt-p{
    font-size:10.5px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:rgba(81,104,245,.72);
    margin-bottom:4px;
  }

  .qt-t{
    font-size:14px;
    line-height:1.35;
    font-weight:760;
    color:var(--qt-nav-ink);
    word-break:break-word;
  }

  .qt-chev{
    width:16px;
    height:16px;
    display:block;
    flex:0 0 16px;
    color:rgba(86,98,122,.42);
  }

  body.qt-search-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(11,18,39,.18);
    z-index:99999998;
    pointer-events:none;
  }

  body.qt-lock{
    position:fixed;
    width:100%;
  }

  footer.qtf-premium,
  footer.qtf-sitemap{
    padding-bottom:calc(var(--qt-nav-h) + var(--qt-nav-safe) + 14px);
  }
}

@media (prefers-reduced-motion:reduce){
  nav#qtnav.qtnav,
  .qtnav__link,
  .qtnav__link::before,
  #qtSheet.qt-sheet,
  .qt-item{
    transition:none !important;
  }
}