/* AcilYanDal Mobile Cleanup v27 — 2026-07-16
   Single final mobile contract: one header, one scroll surface, no competing floating layers. */
:root{
  --ayd-mobile-header-h:72px;
  --ayd-mobile-page-pad:clamp(12px,4vw,20px);
  --ayd-mobile-safe-bottom:env(safe-area-inset-bottom,0px);
}
html{max-width:100%;overflow-x:clip;background:#020711;-webkit-text-size-adjust:100%;}
body.ayd-mobile-cleanup-v27{max-width:100%;overflow-x:clip;}
body.ayd-mobile-cleanup-v27 *,
body.ayd-mobile-menu-page *{box-sizing:border-box;}

@media (max-width:1199.98px){
  html,body,
  body.ayd-mobile-cleanup-v27{
    width:100%!important;max-width:100%!important;min-width:0!important;
    overflow-x:clip!important;overflow-y:auto!important;
    position:static!important;height:auto!important;min-height:100dvh!important;
    touch-action:pan-y pinch-zoom!important;-webkit-overflow-scrolling:touch!important;
  }
  body.ayd-mobile-cleanup-v27{background:#f6f8fc!important;padding-bottom:0!important;margin-bottom:0!important;}
  body.ayd-mobile-cleanup-v27::after{content:none!important;display:none!important;height:0!important;}

  /* Header: fixed, compact and deterministic. */
  body.ayd-mobile-cleanup-v27 .ayd-navbar{
    position:fixed!important;inset:0 0 auto 0!important;width:100%!important;
    min-height:var(--ayd-mobile-header-h)!important;z-index:2147481000!important;
    background:linear-gradient(135deg,#11152b 0%,#071b38 100%)!important;
    box-shadow:0 10px 28px rgba(2,6,23,.18)!important;
    padding-top:env(safe-area-inset-top,0px)!important;
  }
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-nav-container{
    width:100%!important;max-width:100%!important;min-height:var(--ayd-mobile-header-h)!important;
    padding:.62rem var(--ayd-mobile-page-pad)!important;display:flex!important;
    align-items:center!important;flex-wrap:nowrap!important;gap:.5rem!important;
  }
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-brand{min-width:0!important;max-width:calc(100% - 116px)!important;margin:0!important;}
  body.ayd-mobile-cleanup-v27 .ayd-navbar .brand-text{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  body.ayd-mobile-cleanup-v27 .ayd-navbar .brand-icon{width:38px!important;height:38px!important;flex:0 0 38px!important;}
  body.ayd-mobile-cleanup-v27 .ayd-navbar .navbar-toggler,
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-mobile-safe-menu-link{
    position:relative!important;right:auto!important;top:auto!important;transform:none!important;
    flex:0 0 44px!important;width:44px!important;height:44px!important;margin-left:auto!important;
    border-radius:15px!important;z-index:3!important;
  }
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-mobile-panelim-pill-v26{
    position:relative!important;right:auto!important;top:auto!important;transform:none!important;
    flex:0 0 auto!important;height:42px!important;min-width:42px!important;max-width:98px!important;
    margin-left:auto!important;padding:0 .65rem!important;z-index:3!important;
  }
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-mobile-panelim-pill-v26 + .navbar-toggler,
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-mobile-panelim-pill-v26 + .ayd-mobile-safe-menu-link{margin-left:0!important;}
  body.ayd-mobile-cleanup-v27 #mainNav{display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important;pointer-events:none!important;}

  body.ayd-mobile-cleanup-v27 .ayd-main-content{
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding-top:calc(var(--ayd-mobile-header-h) + env(safe-area-inset-top,0px))!important;
    overflow-x:clip!important;margin:0!important;
  }
  body.ayd-mobile-cleanup-v27 main,
  body.ayd-mobile-cleanup-v27 section,
  body.ayd-mobile-cleanup-v27 .container,
  body.ayd-mobile-cleanup-v27 .container-fluid{
    min-width:0!important;max-width:100%!important;
  }
  body.ayd-mobile-cleanup-v27 .container,
  body.ayd-mobile-cleanup-v27 .container-fluid{
    width:100%!important;padding-left:var(--ayd-mobile-page-pad)!important;padding-right:var(--ayd-mobile-page-pad)!important;
  }
  body.ayd-mobile-cleanup-v27 .row{min-width:0!important;}
  body.ayd-mobile-cleanup-v27 [class*="col-"]{min-width:0!important;}

  /* Media and long content never force horizontal page scrolling. */
  body.ayd-mobile-cleanup-v27 img,
  body.ayd-mobile-cleanup-v27 video,
  body.ayd-mobile-cleanup-v27 canvas,
  body.ayd-mobile-cleanup-v27 svg{max-width:100%!important;height:auto;}
  body.ayd-mobile-cleanup-v27 iframe{display:block;max-width:100%!important;width:100%!important;}
  body.ayd-mobile-cleanup-v27 pre,
  body.ayd-mobile-cleanup-v27 code{max-width:100%!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;}
  body.ayd-mobile-cleanup-v27 h1,
  body.ayd-mobile-cleanup-v27 h2,
  body.ayd-mobile-cleanup-v27 h3,
  body.ayd-mobile-cleanup-v27 h4,
  body.ayd-mobile-cleanup-v27 h5,
  body.ayd-mobile-cleanup-v27 h6,
  body.ayd-mobile-cleanup-v27 p,
  body.ayd-mobile-cleanup-v27 a,
  body.ayd-mobile-cleanup-v27 span{overflow-wrap:anywhere;}
  body.ayd-mobile-cleanup-v27 .table-responsive,
  body.ayd-mobile-cleanup-v27 .ayd-mobile-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;}
  body.ayd-mobile-cleanup-v27 table{max-width:none;}

  /* iOS form zoom and tap target stability. */
  body.ayd-mobile-cleanup-v27 input,
  body.ayd-mobile-cleanup-v27 select,
  body.ayd-mobile-cleanup-v27 textarea{font-size:16px!important;max-width:100%!important;}
  body.ayd-mobile-cleanup-v27 button,
  body.ayd-mobile-cleanup-v27 .btn,
  body.ayd-mobile-cleanup-v27 a[role="button"]{min-height:44px;touch-action:manipulation;}

  /* Cards and hero are compact enough for phones. */
  body.ayd-mobile-cleanup-v27 .ayd-hero{padding:2.65rem 0 2.1rem!important;border-radius:0 0 24px 24px!important;}
  body.ayd-mobile-cleanup-v27 .ayd-hero h1{font-size:clamp(2rem,9vw,2.75rem)!important;line-height:1.04!important;}
  body.ayd-mobile-cleanup-v27 .ayd-hero .lead{font-size:1rem!important;line-height:1.6!important;}
  body.ayd-mobile-cleanup-v27 .hero-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:.65rem!important;}
  body.ayd-mobile-cleanup-v27 .hero-stat{min-width:0!important;padding:.8rem!important;}
  body.ayd-mobile-cleanup-v27 .card,
  body.ayd-mobile-cleanup-v27 .ayd-card,
  body.ayd-mobile-cleanup-v27 .home-latest-column,
  body.ayd-mobile-cleanup-v27 .home-simple-card,
  body.ayd-mobile-cleanup-v27 .spot-card{max-width:100%!important;border-radius:20px!important;}
  body.ayd-mobile-cleanup-v27 .home-latest-grid{grid-template-columns:1fr!important;}
  body.ayd-mobile-cleanup-v27 .home-latest-head{gap:.65rem!important;align-items:center!important;}
  body.ayd-mobile-cleanup-v27 .home-latest-head h5{min-width:0!important;margin:0!important;}
  body.ayd-mobile-cleanup-v27 .home-latest-item{min-width:0!important;}

  /* One mobile interaction surface. Other fixed launchers remain accessible from menu/panel. */
  body.ayd-mobile-cleanup-v27 .ayd-notice-center,
  body.ayd-mobile-cleanup-v27 .ayd-mini-chat--floating_bottom,
  body.ayd-mobile-cleanup-v27 .ayd-ai-launcher,
  body.ayd-mobile-cleanup-v27 .ayd-ai-panel,
  body.ayd-mobile-cleanup-v27 .ayd-ai-selection-menu,
  body.ayd-mobile-cleanup-v27 .ayd-cp-modal,
  body.ayd-mobile-cleanup-v27 .ayd-managed-popup,
  body.ayd-mobile-cleanup-v27 .modal-backdrop,
  body.ayd-mobile-cleanup-v27 .offcanvas-backdrop,
  body.ayd-mobile-cleanup-v27 [data-ayd-blocking-overlay="1"]{
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  }
  body.ayd-mobile-cleanup-v27.modal-open,
  body.ayd-mobile-cleanup-v27.ayd-nav-open,
  body.ayd-mobile-cleanup-v27.ayd-menu-open,
  body.ayd-mobile-cleanup-v27.ayd-drawer-open{
    overflow-y:auto!important;position:static!important;height:auto!important;padding-right:0!important;
  }

  /* Footer ends cleanly; no artificial white strip. */
  body.ayd-mobile-cleanup-v27 footer.ayd-footer,
  body.ayd-mobile-cleanup-v27 .ayd-footer{
    margin-bottom:0!important;padding-bottom:calc(30px + var(--ayd-mobile-safe-bottom))!important;
    background:linear-gradient(180deg,#071126,#020711)!important;
  }
  body.ayd-mobile-cleanup-v27.ayd-mobile-floating-dock footer.ayd-footer,
  body.ayd-mobile-cleanup-v27.ayd-mobile-floating-dock .ayd-footer{
    padding-bottom:calc(30px + var(--ayd-mobile-safe-bottom))!important;
  }
}

@media (max-width:575.98px){
  :root{--ayd-mobile-header-h:68px;--ayd-mobile-page-pad:14px;}
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-brand{max-width:calc(100% - 104px)!important;font-size:1.04rem!important;}
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-mobile-panelim-pill-v26{width:42px!important;max-width:42px!important;padding:0!important;}
  body.ayd-mobile-cleanup-v27 .ayd-navbar .ayd-mobile-panelim-pill-v26 span{display:none!important;}
  body.ayd-mobile-cleanup-v27 .d-flex.gap-2.flex-wrap > .btn,
  body.ayd-mobile-cleanup-v27 .hero-actions > .btn,
  body.ayd-mobile-cleanup-v27 .ayd-mp-actions > .btn{width:100%!important;}
  body.ayd-mobile-cleanup-v27 .home-section-heading h2{font-size:1.65rem!important;}
  body.ayd-mobile-cleanup-v27 .section-title{font-size:1.7rem!important;}
}

/* Full-page mobile menu receives the same safe-area and overflow contract. */
body.ayd-mobile-menu-page{width:100%!important;max-width:100%!important;overflow-x:clip!important;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;}
body.ayd-mobile-menu-page .mm-wrap,
body.ayd-mobile-menu-page .mm-hero{width:100%!important;max-width:100%!important;overflow-x:clip!important;}
body.ayd-mobile-menu-page .mm-bottom{bottom:max(8px,env(safe-area-inset-bottom,0px))!important;}
body.ayd-mobile-menu-page input{font-size:16px!important;}

@media (display-mode:standalone){
  body.ayd-mobile-cleanup-v27 .ayd-navbar{padding-top:env(safe-area-inset-top,0px)!important;}
  body.ayd-mobile-cleanup-v27 .ayd-main-content{padding-top:calc(var(--ayd-mobile-header-h) + env(safe-area-inset-top,0px))!important;}
}
