/* EQUORS Global v3.7
   Reliable mobile/tablet app navigation + improved whitespace/line spacing.
   Uses a <nav> element so generic footer rules cannot hide the app navigation. */

.eq-mobile-app-nav{display:none}

@media (max-width:1279px){
  /* Desktop footer belongs to desktop only. */
  html body.eq-public-shell-v6 > footer,
  html body.eq-public-shell-v6 main + footer,
  html body.eq-public-shell-v6 .eq-mobile-footer{
    display:none!important;
  }

  /* Reserve space so the last section never sits under app navigation. */
  html body.eq-public-shell-v6{
    padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;
  }

  /* Always-visible app navigation on phone + tablet. */
  html body.eq-public-shell-v6 .eq-mobile-app-nav{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    z-index:9999!important;
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    pointer-events:auto!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;
    height:auto!important;
    min-height:72px!important;
    margin:0!important;
    padding:0 0 env(safe-area-inset-bottom)!important;
    overflow:visible!important;
    background:#fff!important;
    border:0!important;
    border-top:1px solid #d9ddd9!important;
    box-shadow:0 -6px 20px rgba(0,0,0,.07)!important;
  }

  html body.eq-public-shell-v6 .eq-mobile-app-nav > a,
  html body.eq-public-shell-v6 .eq-mobile-app-nav > button{
    position:relative!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    min-width:0!important;
    width:auto!important;
    min-height:72px!important;
    margin:0!important;
    padding:9px 3px 8px!important;
    align-items:center!important;
    justify-content:center!important;
    flex-direction:column!important;
    gap:5px!important;
    border:0!important;
    border-right:1px solid #eeeeec!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#626762!important;
    text-align:center!important;
    font:inherit!important;
    cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  html body.eq-public-shell-v6 .eq-mobile-app-nav > :last-child{border-right:0!important}
  html body.eq-public-shell-v6 .eq-mobile-app-nav svg{
    display:block!important;
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
    fill:currentColor!important;
  }
  html body.eq-public-shell-v6 .eq-mobile-app-nav span{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    font-weight:700!important;
    letter-spacing:0!important;
  }
  html body.eq-public-shell-v6 .eq-mobile-app-nav .eq-active,
  html body.eq-public-shell-v6 .eq-mobile-app-nav [aria-current="page"]{
    color:#111!important;
  }
  html body.eq-public-shell-v6 .eq-mobile-app-nav .eq-active::before,
  html body.eq-public-shell-v6 .eq-mobile-app-nav [aria-current="page"]::before{
    content:""!important;
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:3px!important;
    background:#d6251d!important;
  }

  /* Drawer ends above app navigation and can scroll independently. */
  html body.eq-public-shell-v6 .eq-mobile-panel{
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - 68px - 72px - env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
}

/* Phone spacing: more breathing room, readable editorial rhythm. */
@media (max-width:900px){
  html,body{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
  }

  .eq61-wrap,.eq8-wrap,.eq2-wrap,.eq-policy-page .eq61-wrap{
    width:calc(100% - 48px)!important;
    max-width:none!important;
  }

  .eq61-hero,.eq8-hero{
    padding-top:48px!important;
    padding-bottom:56px!important;
  }
  .eq61-section,.eq61-mission,.eq61-editorial,.eq61-cta,.eq8-section,.eq-policy-section{
    padding-top:58px!important;
    padding-bottom:58px!important;
  }

  .eq61-hero-grid,.eq61-section-head,.eq61-editorial,.eq61-mission-grid,.eq62-cta-grid,.eq8-hero-grid,.eq8-split{
    gap:34px!important;
  }
  .eq61-section-head{margin-bottom:34px!important}

  .eq61-eyebrow{
    margin-bottom:14px!important;
    line-height:1.45!important;
  }
  .eq61-title{
    margin-top:0!important;
    margin-bottom:26px!important;
    line-height:1.04!important;
  }
  .eq61-h2{
    line-height:1.08!important;
    margin-bottom:18px!important;
  }
  .eq61-h3{line-height:1.2!important}
  .eq61-lead,.eq61-copy,.eq61-path-body p,.eq61-mini span,.eq61-market-card small,.eq61-resource-card p,.eq8-copy,.eq8-lead{
    line-height:1.78!important;
  }
  .eq61-lead,.eq61-copy{margin-top:0!important}
  .eq61-actions{margin-top:28px!important;gap:14px!important}
  .eq61-trustline{margin-top:28px!important;row-gap:14px!important}

  .eq61-mini-grid,.eq61-path-grid,.eq61-market-grid,.eq61-flow,.eq61-stat-grid,.eq61-resource-grid,.eq61-legal-grid,.eq-country-grid,.eq-region-grid{
    gap:22px!important;
  }
  .eq61-path-body,.eq61-mini,.eq61-market-card,.eq61-stat,.eq61-resource-card,.eq61-legal-card,.eq8-contact-card,.eq8-form{
    padding:24px!important;
  }

  .eq61-hero-media,.eq61-path-media,.eq61-editorial-visual,.eq61-mission-visual,.eq62-cta-media{
    margin-top:2px!important;
  }

  /* Add clean separators without crowding the layout. */
  .eq61-main > section + section,
  .eq61-main > div + section{
    border-top:1px solid #e3e5e2!important;
  }
}

/* Tablet: retain app navigation and introduce spacious two-column rhythm where useful. */
@media (min-width:901px) and (max-width:1279px){
  html body.eq-public-shell-v6{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .eq61-wrap,.eq8-wrap,.eq2-wrap{width:calc(100% - 64px)!important;max-width:1100px!important}
  .eq61-hero,.eq8-hero{padding-top:56px!important;padding-bottom:64px!important}
  .eq61-section,.eq61-mission,.eq61-editorial,.eq61-cta,.eq8-section,.eq-policy-section{padding-top:64px!important;padding-bottom:64px!important}
  .eq61-lead,.eq61-copy,.eq61-path-body p{line-height:1.72!important}
  .eq61-section-head{margin-bottom:34px!important}
}
