/* AConsultIT Academy — Android app mode v2.0.0
   Loaded always (never disabled by the dark-mode toggle).
   1) No purchase flows / external payment links inside the app (Google Play Payments policy)
   2) Mobile app UI: compact top bar, bottom tab bar (app-mode.js), no marketing sections */

/* ---- 1. policy: hide purchase links/forms ---- */
html.ac-app-mode a[href*="/checkout"],html.ac-app-mode a[href*="checkout-"],
html.ac-app-mode a[href*="buy-points"],html.ac-app-mode a[href*="/pricing"],
html.ac-app-mode a[href*="stripe"],html.ac-app-mode a[href*="/learn.php"],
html.ac-app-mode a[href*="/bootcamp.php"],html.ac-app-mode form[action*="/checkout"],
html.ac-app-mode form[action*="buy-points"],
html.ac-app-mode a[href*="/labs/subscribe"],
html.ac-app-mode .sc-price,html.ac-app-mode .sc-unlock,html.ac-app-mode .lesson-pts,
html.ac-app-mode .lab-hero,html.ac-app-mode .tier-grid
{display:none !important;}

/* ---- 2. app UI ---- */
html.ac-app-mode{
  --amb-bg:#FFFFFF;--amb-ink:#14213D;--amb-mut:#7A8296;--amb-line:#E7E0CE;--amb-acc:#B78A1F;
}
html.ac-app-mode[data-ac-theme="dark"]{
  --amb-bg:#0B1120;--amb-ink:#F1F5F9;--amb-mut:#94A3B8;--amb-line:rgba(255,255,255,.14);--amb-acc:#F0B429;
}

/* compact top bar: logo + theme toggle + language + sign in, no website section links */
html.ac-app-mode .ac-top{position:sticky;top:0;z-index:900;min-height:0 !important;
  padding-top:6px !important;padding-bottom:6px !important;}
html.ac-app-mode .ac-top .ac-nav{display:none !important;}
html.ac-app-mode .ac-top a[href*="/register"]{display:none !important;} /* Get Started: web funnel, not app */
html.ac-app-mode .ac-logo-t{display:none !important;} /* keep logo wordmark short on phones */

/* home: no marketing sections, keep the course grid as the app start screen */
html.ac-app-mode .hm-hero,html.ac-app-mode .ehis-trust,html.ac-app-mode .corp-banner,
html.ac-app-mode .teach-banner,html.ac-app-mode footer.ac-foot,
html.ac-app-mode #acit-install,html.ac-app-mode .ac-blobs{display:none !important;}
html.ac-app-mode .hm-sec{padding-top:14px !important;}

/* single-column card lists on phone widths */
html.ac-app-mode .hm-grid{grid-template-columns:1fr !important;}
@media (max-width:720px){
  html.ac-app-mode [style*="grid-template-columns:repeat(3"],
  html.ac-app-mode [style*="grid-template-columns: repeat(3"],
  html.ac-app-mode [style*="grid-template-columns:repeat(2"],
  html.ac-app-mode [style*="grid-template-columns: repeat(2"]{grid-template-columns:1fr !important;}
}

/* room for the bottom tab bar */
html.ac-app-mode body{padding-top:0 !important;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px)) !important;}

/* bottom tab bar (nodes injected by app-mode.js) */
.ac-tabbar{position:fixed;inset-inline:0;bottom:0;z-index:2147482000;display:flex;
  background:var(--amb-bg,#fff);border-top:1px solid var(--amb-line,#e5e5e5);
  padding-bottom:env(safe-area-inset-bottom,0px);
  box-shadow:0 -2px 12px rgba(0,0,0,.08);}
.ac-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;min-height:56px;padding-top:6px;text-decoration:none;
  color:var(--amb-mut,#888);font-family:inherit;font-size:11px;font-weight:600;
  position:relative;-webkit-tap-highlight-color:transparent;}
.ac-tab svg{width:22px;height:22px;display:block;}
.ac-tab.ac-on{color:var(--amb-acc,#B78A1F);}
.ac-tab.ac-on::before{content:"";position:absolute;top:0;inset-inline:22%;height:3px;
  border-radius:0 0 3px 3px;background:var(--amb-acc,#B78A1F);}
.ac-tab:active{background:rgba(127,127,127,.08);}

/* keep overlays clear of the tab bar */
html.ac-app-mode #ac-cb{bottom:calc(70px + env(safe-area-inset-bottom,0px)) !important;}
html.ac-app-mode a[href*="wa.me"]{bottom:calc(78px + env(safe-area-inset-bottom,0px)) !important;}

/* top bar fully matches the active theme (fixes dark bar over light page on phones) */
html.ac-app-mode .ac-top{background:var(--amb-bg) !important;color:var(--amb-ink) !important;
  border-bottom:1px solid var(--amb-line) !important;backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;box-shadow:none !important;}
html.ac-app-mode .ac-top a,html.ac-app-mode .ac-top button,html.ac-app-mode .ac-top span
  {color:var(--amb-ink) !important;}
html.ac-app-mode .ac-top .ac-logo-n{background:none !important;
  -webkit-background-clip:border-box !important;background-clip:border-box !important;
  -webkit-text-fill-color:var(--amb-ink) !important;}
html.ac-app-mode .ac-top .ac-lang a,html.ac-app-mode .ac-top .ac-theme-btn
  {border-color:var(--amb-line) !important;}
html.ac-app-mode .ac-top .ac-lang a.on{background:var(--amb-acc) !important;color:#fff !important;}
html.ac-app-mode .ac-top .ac-theme-btn{background:transparent !important;}
