/* Final mobile homepage polish. Loaded after mobile-responsive.css. */
@media (max-width:760px){
  .gl-header{min-height:56px!important}
  .gl-header-inner{min-height:56px!important;height:56px!important;padding:0!important}
  .gl-brand{flex:0 0 142px!important;width:142px!important;height:52px!important}
  .gl-brand-logo{width:142px!important;max-height:50px!important}
  .gl-language-menu>summary{height:32px!important;min-width:42px!important}
  .gl-mobile-menu>summary{width:36px!important;height:32px!important}
  .gl-language-panel,.gl-mobile-menu-panel{top:56px!important;max-height:calc(100vh - 68px)!important}

  body[data-gl-route="home"] .gl-hero{padding-top:2px!important}
  body[data-gl-route="home"] .gl-hero-actions{justify-content:flex-end!important;width:100%!important}
  body[data-gl-route="home"] .gl-hero-actions .gl-btn{min-height:34px!important;padding:0 11px!important;font-size:.7rem!important}

  body[data-gl-route="home"] .gl-persona-visual img{object-position:center 30%!important}
  body[data-gl-route="home"] .gl-audience-card[data-persona="students"] .gl-persona-visual img{object-position:center 32%!important}
  body[data-gl-route="home"] .gl-audience-card[data-persona="teachers"] .gl-persona-visual img{object-position:center 31%!important}
  body[data-gl-route="home"] .gl-audience-card[data-persona="adults"] .gl-persona-visual img{object-position:center 29%!important}
  body[data-gl-route="home"] .gl-audience-card[data-persona="schools"] .gl-persona-visual img{object-position:center 28%!important}

  .gl-library-links{padding-bottom:20px!important}
  .gl-library-links-grid{align-items:stretch!important}
  .gl-library-link-card{min-height:66px!important;height:66px!important;padding:7px 5px!important;justify-content:center!important;gap:2px!important}
  .gl-library-link-icon{width:24px!important;height:24px!important;margin:0 0 3px!important;font-size:.72rem!important}
  .gl-library-link-card h3{font-size:.68rem!important;line-height:1.08!important}

  .gl-showcase-benefits article{align-items:center!important}
  .gl-showcase-benefits article>span{align-self:center!important}
  .gl-showcase-benefits article>div{min-width:0!important}

  .gl-footer-unified{padding:18px 0 18px!important}
  .gl-footer-shell{display:flex!important;flex-direction:column!important;gap:14px!important}
  .gl-footer-brand{display:none!important}
  .gl-footer-unified .gl-footer-links{order:1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px 8px!important;width:100%!important}
  .gl-footer-unified .gl-footer-links a,.gl-footer-unified .gl-consent-manage{text-align:center!important;font-size:.66rem!important;line-height:1.2!important}
  .gl-footer-credit{order:2!important;justify-self:auto!important;align-self:center!important;justify-content:center!important;width:100%!important;margin-top:2px!important}
  .gl-footer-powered{font-size:.66rem!important}
  .gl-footer-ikartu img{width:92px!important}

  .gl-mobile-menu-panel{padding:8px!important;gap:5px!important;border-radius:14px!important}
  .gl-mobile-menu-panel>a{min-height:35px!important;padding:7px 9px!important;font-size:.7rem!important}
  .gl-mobile-menu-actions{gap:5px!important}
  .gl-mobile-menu-actions a{min-height:35px!important;font-size:.7rem!important}

  .gl-back-to-top{position:fixed;right:14px;bottom:16px;z-index:220;width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(13,15,42,.94);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.32);font-size:18px;line-height:1;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
  .gl-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
  .gl-back-to-top:focus-visible{outline:2px solid #ffad24;outline-offset:2px}

  /* Persona inner pages: compact mobile layout. */
  body[data-gl-route="students"] .gl-page-hero,
  body[data-gl-route="teachers"] .gl-page-hero,
  body[data-gl-route="schools"] .gl-page-hero,
  body[data-gl-route="adults"] .gl-page-hero{padding-top:8px!important;padding-bottom:14px!important}

  body[data-gl-route="students"] .gl-page-hero-inner,
  body[data-gl-route="teachers"] .gl-page-hero-inner,
  body[data-gl-route="schools"] .gl-page-hero-inner,
  body[data-gl-route="adults"] .gl-page-hero-inner{padding-top:18px!important}

  body[data-gl-route="students"] .gl-page-hero h1,
  body[data-gl-route="teachers"] .gl-page-hero h1,
  body[data-gl-route="schools"] .gl-page-hero h1,
  body[data-gl-route="adults"] .gl-page-hero h1{font-size:clamp(1.65rem,7.2vw,2rem)!important;line-height:1.04!important;letter-spacing:-.035em!important;margin:10px 0 8px!important;max-width:100%!important}

  body[data-gl-route="students"] .gl-page-hero p,
  body[data-gl-route="teachers"] .gl-page-hero p,
  body[data-gl-route="schools"] .gl-page-hero p,
  body[data-gl-route="adults"] .gl-page-hero p{font-size:.76rem!important;line-height:1.42!important;max-width:100%!important}

  body[data-gl-route="students"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="teachers"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="schools"] .gl-page-hero .gl-eyebrow,
  body[data-gl-route="adults"] .gl-page-hero .gl-eyebrow{padding:5px 9px!important;font-size:.62rem!important}

  body[data-gl-route="students"] .gl-content-section,
  body[data-gl-route="teachers"] .gl-content-section,
  body[data-gl-route="schools"] .gl-content-section,
  body[data-gl-route="adults"] .gl-content-section{padding:4px 0 34px!important}

  body[data-gl-route="students"] .gl-content-grid,
  body[data-gl-route="teachers"] .gl-content-grid,
  body[data-gl-route="schools"] .gl-content-grid,
  body[data-gl-route="adults"] .gl-content-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}

  body[data-gl-route="students"] .gl-content-card,
  body[data-gl-route="teachers"] .gl-content-card,
  body[data-gl-route="schools"] .gl-content-card,
  body[data-gl-route="adults"] .gl-content-card{min-height:132px!important;padding:48px 12px 13px!important;border-radius:15px!important}

  body[data-gl-route="students"] .gl-content-card::before,
  body[data-gl-route="teachers"] .gl-content-card::before,
  body[data-gl-route="schools"] .gl-content-card::before,
  body[data-gl-route="adults"] .gl-content-card::before{top:12px!important;left:12px!important;width:30px!important;height:30px!important;border-radius:9px!important;font-size:.78rem!important}

  body[data-gl-route="students"] .gl-content-card::after,
  body[data-gl-route="teachers"] .gl-content-card::after,
  body[data-gl-route="schools"] .gl-content-card::after,
  body[data-gl-route="adults"] .gl-content-card::after{top:13px!important;right:12px!important;font-size:.72rem!important}

  body[data-gl-route="students"] .gl-content-card h2,
  body[data-gl-route="students"] .gl-content-card h3,
  body[data-gl-route="teachers"] .gl-content-card h2,
  body[data-gl-route="teachers"] .gl-content-card h3,
  body[data-gl-route="schools"] .gl-content-card h2,
  body[data-gl-route="schools"] .gl-content-card h3,
  body[data-gl-route="adults"] .gl-content-card h2,
  body[data-gl-route="adults"] .gl-content-card h3{margin:0 0 5px!important;font-size:.82rem!important;line-height:1.18!important}

  body[data-gl-route="students"] .gl-content-card p,
  body[data-gl-route="teachers"] .gl-content-card p,
  body[data-gl-route="schools"] .gl-content-card p,
  body[data-gl-route="adults"] .gl-content-card p{font-size:.68rem!important;line-height:1.35!important}

  body[data-gl-route="students"] .gl-page-cta,
  body[data-gl-route="teachers"] .gl-page-cta,
  body[data-gl-route="schools"] .gl-page-cta,
  body[data-gl-route="adults"] .gl-page-cta{padding-bottom:28px!important}
  body[data-gl-route="students"] .gl-page-cta-box,
  body[data-gl-route="teachers"] .gl-page-cta-box,
  body[data-gl-route="schools"] .gl-page-cta-box,
  body[data-gl-route="adults"] .gl-page-cta-box{padding:18px!important;border-radius:16px!important;gap:12px!important}
  body[data-gl-route="students"] .gl-page-cta-box h2,
  body[data-gl-route="teachers"] .gl-page-cta-box h2,
  body[data-gl-route="schools"] .gl-page-cta-box h2,
  body[data-gl-route="adults"] .gl-page-cta-box h2{font-size:1.05rem!important}
  body[data-gl-route="students"] .gl-page-cta-box .gl-btn,
  body[data-gl-route="teachers"] .gl-page-cta-box .gl-btn,
  body[data-gl-route="schools"] .gl-page-cta-box .gl-btn,
  body[data-gl-route="adults"] .gl-page-cta-box .gl-btn{min-height:36px!important;padding:0 12px!important;font-size:.72rem!important}
}

@media (max-width:390px){
  .gl-footer-unified .gl-footer-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-gl-route="students"] .gl-content-grid,
  body[data-gl-route="teachers"] .gl-content-grid,
  body[data-gl-route="schools"] .gl-content-grid,
  body[data-gl-route="adults"] .gl-content-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
