/* STI Student Management Suite v2.4.326 - premium My Courses mobile UI.
 * Isolated to the My Courses shortcode at <=700px. The dashboard, learning
 * workspace, access permissions, progress logic, and desktop UI are untouched. */
.mye-c326-appbar,.mye-c326-bottom,.mye-c326-access-guide{display:none}
@media (max-width:700px){
  /* Turn off the unrelated theme masthead and its leftover page-space on My Courses only. */
  body:has(.mye-courses-shell) :is(#masthead,.site-header,.ast-mobile-header-wrap,.elementor-location-header,.entry-header,.page-header,.site-footer,#colophon,.elementor-location-footer){display:none!important}
  body:has(.mye-courses-shell) :is(.site-content,.content-area,.site-main,.ast-container,.entry-content,.elementor-widget-shortcode,.elementor-shortcode){
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  }
  body:has(.mye-courses-shell){background:#f3f6fb!important;overflow-x:hidden!important}
  body:has(.mye-courses-shell).mye-c326-drawer-open{overflow:hidden!important}
  body:has(.mye-courses-shell) .mye-courses-shell,
  body .mye-courses-shell{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;
    padding:0 12px calc(115px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;min-height:100dvh!important;
    background:#f3f6fb!important;color:#172a46!important;
    overflow:visible!important;
  }
  body .mye-courses-shell *{box-sizing:border-box}
  /* The topbar is part of the shortcode, not the WordPress theme header. */
  body .mye-courses-shell .mye-c326-appbar{
    display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;
    gap:9px!important;align-items:center!important;
    position:sticky!important;top:0!important;z-index:150!important;
    margin:0 -12px 13px!important;padding:10px 14px!important;min-height:66px!important;
    background:linear-gradient(110deg,#10315e,#194781)!important;
    box-shadow:0 5px 16px rgba(11,39,81,.14)!important;
  }
  body .mye-courses-shell .mye-c326-menu,
  body .mye-courses-shell .mye-c326-notifications,
  body .mye-courses-shell .mye-c326-profile{
    display:grid!important;place-items:center!important;
    border:1px solid rgba(255,255,255,.22)!important;border-radius:11px!important;
    width:38px!important;height:38px!important;padding:0!important;margin:0!important;
    color:#fff!important;background:rgba(255,255,255,.11)!important;
    text-decoration:none!important;cursor:pointer!important;box-shadow:none!important;
  }
  body .mye-courses-shell .mye-c326-menu svg,body .mye-courses-shell .mye-c326-notifications svg{
    display:block!important;width:20px!important;height:20px!important;stroke:currentColor!important;
  }
  body .mye-courses-shell .mye-c326-brand{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
  body .mye-courses-shell .mye-c326-mark{
    display:grid!important;place-items:center!important;flex:0 0 37px!important;
    width:37px!important;height:37px!important;border-radius:10px!important;
    background:#2f75ed!important;color:#fff!important;font-size:15px!important;font-weight:900!important;
  }
  body .mye-courses-shell .mye-c326-brand-text{min-width:0!important;display:block!important}
  body .mye-courses-shell .mye-c326-brand-text strong{
    display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:14px!important;line-height:1.18!important;color:#fff!important;font-weight:800!important;
  }
  body .mye-courses-shell .mye-c326-brand-text small{
    display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:8.5px!important;line-height:1.5!important;color:#b7d0f0!important;
  }
  body .mye-courses-shell .mye-c326-app-actions{display:flex!important;align-items:center!important;gap:7px!important}
  body .mye-courses-shell .mye-c326-notifications{position:relative!important}
  body .mye-courses-shell .mye-c326-notifications em{
    position:absolute!important;right:-4px!important;top:-5px!important;padding:0 3px!important;
    display:grid!important;place-items:center!important;min-width:17px!important;height:17px!important;
    border-radius:20px!important;background:#e74b5c!important;color:#fff!important;font-size:9px!important;font-style:normal!important;
  }
  body .mye-courses-shell .mye-c326-profile{border-radius:50%!important;overflow:hidden!important;padding:2px!important}
  body .mye-courses-shell .mye-c326-profile img{
    display:block!important;width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;
  }
  /* Current floating navigation remains fully functional, but is launched from topbar. */
  body:has(.mye-courses-shell) .mye-courses-hn-trigger{display:none!important}
  body:has(.mye-courses-shell) .mye-courses-hn-drawer{
    left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:min(340px,calc(100vw - 42px))!important;max-width:none!important;
    height:100dvh!important;min-height:0!important;
    border-radius:0 20px 20px 0!important;background:#fff!important;color:#172b4b!important;
    padding:15px 13px calc(18px + env(safe-area-inset-bottom,0px))!important;
    box-shadow:16px 0 48px rgba(9,28,55,.24)!important;
  }
  body:has(.mye-courses-shell) .mye-courses-hn-brand{
    padding:1px 3px 15px!important;border-bottom:1px solid #e5ecf5!important;
  }
  body:has(.mye-courses-shell) .mye-courses-hn-brand strong{font-size:16px!important;color:#152c51!important}
  body:has(.mye-courses-shell) .mye-courses-hn-brand small{font-size:10px!important;color:#8190a7!important}
  body:has(.mye-courses-shell) .mye-courses-hn-close{
    display:grid!important;place-items:center!important;color:#4a6586!important;
    background:#f0f5fc!important;border-radius:11px!important;width:38px!important;height:38px!important;
    font-size:26px!important;padding:0!important;
  }
  body:has(.mye-courses-shell) .mye-courses-hn-links{gap:3px!important;padding-top:12px!important}
  body:has(.mye-courses-shell) .mye-courses-hn-links a,
  body:has(.mye-courses-shell) .mye-courses-hn-footer a{
    min-height:47px!important;gap:11px!important;font-size:12px!important;
    color:#2c486b!important;background:#fff!important;padding:7px 9px!important;border-radius:11px!important;
  }
  body:has(.mye-courses-shell) .mye-courses-hn-links a>span,
  body:has(.mye-courses-shell) .mye-courses-hn-footer a>span{
    width:31px!important;height:31px!important;flex:0 0 31px!important;
    background:#eef4fc!important;border:0!important;color:#376bb1!important;border-radius:9px!important;
  }
  body:has(.mye-courses-shell) .mye-courses-hn-links a.is-current,
  body:has(.mye-courses-shell) .mye-courses-hn-links a:hover{
    color:#1c5bc0!important;background:#eaf2ff!important;
  }
  body:has(.mye-courses-shell) .mye-courses-hn-links a.is-current>span{background:#2568d8!important;color:#fff!important}
  body:has(.mye-courses-shell) .mye-courses-hn-footer{padding-top:12px!important}
  body:has(.mye-courses-shell) .mye-courses-hn-footer a{color:#ad3447!important}
  body:has(.mye-courses-shell) .mye-courses-hn-backdrop{background:rgba(9,26,49,.56)!important}

  /* Courses hero: readable introduction, no duplicated logout clutter. */
  body .mye-courses-shell .mye-courses-head{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:12px!important;min-width:0!important;margin:0 0 12px!important;padding:17px!important;
    border-radius:17px!important;background:linear-gradient(120deg,#fff 0%,#edf5ff 100%)!important;
    border:1px solid #dce9fb!important;box-shadow:0 5px 16px rgba(24,63,117,.04)!important;
  }
  body .mye-courses-shell .mye-courses-hero-brand{display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important}
  body .mye-courses-shell .mye-courses-hero-icon{
    width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:12px!important;
    background:#e6f0ff!important;color:#2462c9!important;border:1px solid #d8e6fd!important;box-shadow:none!important;
  }
  body .mye-courses-shell .mye-courses-hero-icon svg{width:25px!important;height:25px!important;stroke:currentColor!important}
  body .mye-courses-shell .mye-courses-hero-copy{min-width:0!important;flex:1 1 auto!important}
  body .mye-courses-shell .mye-courses-kicker{
    display:block!important;font-size:8.3px!important;line-height:1.5!important;letter-spacing:.08em!important;
    color:#3269c5!important;white-space:normal!important;
  }
  body .mye-courses-shell .mye-courses-kicker i{display:none!important}
  body .mye-courses-shell .mye-courses-head h1{
    margin:3px 0 6px!important;font-size:25px!important;line-height:1.1!important;
    letter-spacing:-.04em!important;color:#142b4e!important;
  }
  body .mye-courses-shell .mye-courses-head p{
    margin:0!important;font-size:11px!important;line-height:1.52!important;color:#657993!important;
  }
  body .mye-courses-shell .mye-courses-head-actions{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    width:100%!important;gap:8px!important;
  }
  body .mye-courses-shell .mye-courses-head-actions .mye-back-dashboard{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    min-height:35px!important;padding:8px 13px!important;margin:0!important;flex:0 0 auto!important;
    color:#235db6!important;font-size:11px!important;background:#fff!important;
    border-color:#d8e5f7!important;border-radius:10px!important;
  }
  body .mye-courses-shell .mye-courses-head-actions .mye-back-dashboard span{font-size:11px!important;line-height:1.2!important}
  body .mye-courses-shell .mye-courses-head-actions .mye-logout-btn{display:none!important}

  /* Three equal KPI cards rather than an orphan third card. */
  body .mye-courses-shell .mye-courses-summary{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;margin:0 0 11px!important;
  }
  body .mye-courses-shell .mye-courses-summary>div{
    min-width:0!important;min-height:84px!important;padding:12px 10px!important;
    border-radius:13px!important;background:#fff!important;border:1px solid #e2eaf4!important;
    box-shadow:0 4px 12px rgba(24,59,106,.035)!important;
  }
  body .mye-courses-shell .mye-courses-summary span{
    display:block!important;font-size:8.3px!important;letter-spacing:.045em!important;
    font-weight:800!important;line-height:1.3!important;color:#7e91a9!important;
  }
  body .mye-courses-shell .mye-courses-summary strong{
    display:block!important;margin:7px 0 0!important;
    font-size:23px!important;line-height:1.05!important;color:#172c4a!important;
  }
  body .mye-courses-shell .mye-courses-summary strong.active{
    font-size:13px!important;color:#07865f!important;line-height:1.5!important;
  }
  body .mye-courses-shell .mye-courses-summary>div:last-child{background:#f4fcf8!important;border-color:#d5eee1!important}

  /* Mobile disclosure: same access explanation content, compact by default. */
  body .mye-courses-shell .mye-courses-catalog-note{display:none!important}
  body .mye-courses-shell .mye-c326-access-guide{
    display:block!important;min-width:0!important;margin:0 0 14px!important;
    border:1px solid #d8e7fc!important;border-radius:12px!important;background:#eef5ff!important;
    overflow:hidden!important;
  }
  body .mye-courses-shell .mye-c326-access-guide summary{
    list-style:none!important;display:flex!important;align-items:center!important;gap:10px!important;
    min-height:46px!important;padding:10px 12px!important;color:#2457a5!important;
    font-size:11px!important;font-weight:800!important;cursor:pointer!important;
  }
  body .mye-courses-shell .mye-c326-access-guide summary::-webkit-details-marker{display:none!important}
  body .mye-courses-shell .mye-c326-info-icon{
    display:grid!important;place-items:center!important;border-radius:8px!important;
    flex:0 0 25px!important;width:25px!important;height:25px!important;
    background:#dceafe!important;color:#2563eb!important;font-size:14px!important;font-weight:900!important;
  }
  body .mye-courses-shell .mye-c326-access-guide summary svg{width:17px!important;height:17px!important;margin-left:auto!important;stroke:currentColor!important;transition:transform .2s}
  body .mye-courses-shell .mye-c326-access-guide[open] summary svg{transform:rotate(180deg)}
  body .mye-courses-shell .mye-c326-access-guide p{
    margin:0!important;padding:1px 13px 13px 47px!important;color:#506683!important;
    font-size:10.5px!important;line-height:1.5!important;
  }

  /* Course cards with coherent spacing, status and visible progress bars. */
  body .mye-courses-shell .mye-course-section{margin:0 0 12px!important}
  body .mye-courses-shell .mye-courses-grid{grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
  body .mye-courses-shell .mye-course-card{
    min-width:0!important;padding:16px!important;margin:0!important;
    background:#fff!important;border:1px solid #e2eaf5!important;border-radius:16px!important;
    box-shadow:0 5px 17px rgba(24,59,106,.045)!important;
  }
  body .mye-courses-shell .mye-course-top{align-items:center!important;gap:8px!important}
  body .mye-courses-shell .mye-course-icon{
    width:40px!important;height:40px!important;border-radius:11px!important;
    color:#2864d1!important;background:#eaf2ff!important;font-size:12px!important;
  }
  body .mye-courses-shell .mye-course-status{
    white-space:nowrap!important;font-size:9px!important;letter-spacing:.025em!important;
    font-weight:800!important;padding:7px 9px!important;
  }
  body .mye-courses-shell .mye-course-tag{margin:12px 0 0!important;font-size:9px!important;color:#75879d!important;letter-spacing:.075em!important}
  body .mye-courses-shell .mye-course-card h2{
    margin:4px 0 13px!important;font-size:20px!important;line-height:1.25!important;
    color:#172d50!important;letter-spacing:-.03em!important;
  }
  body .mye-courses-shell .mye-course-meta{padding:10px 0!important;font-size:11px!important}
  body .mye-courses-shell .mye-course-progress-head{margin-top:13px!important;font-size:11px!important}
  body .mye-courses-shell .mye-course-progress{height:8px!important;margin-top:8px!important}
  body .mye-courses-shell .mye-course-progress-note{font-size:10px!important;margin-top:6px!important}
  body .mye-courses-shell .mye-learning-workspace-link{
    min-height:45px!important;margin-top:14px!important;border-radius:11px!important;
    font-size:12px!important;background:#eff6ff!important;color:#1d56bd!important;
  }
  body .mye-courses-shell .mye-workspace-mini{font-size:10px!important}
  body .mye-courses-shell .mye-course-lock-panel{padding:12px!important;border-radius:12px!important}

  /* Same five-tab bottom navigation language as the locked Student Dashboard. */
  body .mye-courses-shell .mye-c326-bottom{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    z-index:500!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:3px!important;padding:7px 10px calc(9px + env(safe-area-inset-bottom,0px))!important;
    width:100%!important;background:rgba(255,255,255,.985)!important;
    border:1px solid #e2e8f1!important;border-bottom:0!important;border-radius:18px 18px 0 0!important;
    box-shadow:0 -5px 24px rgba(22,47,86,.09)!important;
  }
  body .mye-courses-shell .mye-c326-bottom a{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:4px!important;min-height:51px!important;min-width:0!important;
    color:#6b7d97!important;background:transparent!important;border-radius:12px!important;
    text-decoration:none!important;font-size:10px!important;font-weight:750!important;
  }
  body .mye-courses-shell .mye-c326-bottom a.is-active{background:#eaf2ff!important;color:#215dd3!important}
  body .mye-courses-shell .mye-c326-bottom svg{display:block!important;width:21px!important;height:21px!important;flex:0 0 21px!important;stroke:currentColor!important}
  body .mye-courses-shell .mye-c326-bottom a span{line-height:1.2!important}
  body .mye-courses-shell a:focus-visible,body .mye-courses-shell button:focus-visible,body .mye-courses-shell summary:focus-visible{
    outline:3px solid #90b7ff!important;outline-offset:2px!important;
  }
}
@media (max-width:365px){
  body .mye-courses-shell .mye-c326-appbar{grid-template-columns:35px minmax(0,1fr) auto!important;gap:6px!important;padding:9px 10px!important}
  body .mye-courses-shell .mye-c326-mark{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:13px!important}
  body .mye-courses-shell .mye-c326-menu,body .mye-courses-shell .mye-c326-notifications,body .mye-courses-shell .mye-c326-profile{width:35px!important;height:35px!important}
  body .mye-courses-shell .mye-c326-brand-text strong{font-size:13px!important}
  body .mye-courses-shell .mye-c326-brand-text small{font-size:8px!important}
  body .mye-courses-shell .mye-c326-app-actions{gap:5px!important}
  body .mye-courses-shell .mye-courses-head{padding:14px!important}
  body .mye-courses-shell .mye-courses-head h1{font-size:22px!important}
  body .mye-courses-shell .mye-courses-summary{gap:6px!important}
  body .mye-courses-shell .mye-courses-summary>div{padding:10px 8px!important}
  body .mye-courses-shell .mye-courses-summary span{font-size:7.5px!important}
  body .mye-courses-shell .mye-courses-summary strong{font-size:21px!important}
  body .mye-courses-shell .mye-courses-summary strong.active{font-size:11px!important}
}
@media (prefers-reduced-motion:reduce){
  body:has(.mye-courses-shell) .mye-courses-hn-drawer,body .mye-courses-shell .mye-c326-access-guide summary svg{transition:none!important}
}
