/* Go2Dog 12.148 — Academy mobile layout recovery.
   Route-scoped overrides intentionally load after 12.147 so global button and
   navigation layers cannot push the swipe controls out of their rail. */
body.g2d-route-academy .g2d147-swipe-wrap{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:4px 0 10px!important;
  padding:0!important;
  isolation:isolate;
}
body.g2d-route-academy .g2d147-swipe-wrap .g2d145-course-strip{
  display:flex!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:12px 24px 12px!important;
  gap:10px!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-padding-inline:24px!important;
  scroll-snap-type:x mandatory!important;
}
body.g2d-route-academy .g2d147-swipe-arrow{
  position:absolute!important;
  top:50%!important;
  bottom:auto!important;
  z-index:12!important;
  display:none!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:3px solid rgba(255,255,255,.98)!important;
  border-radius:999px!important;
  background:#edf8f1!important;
  color:#17654f!important;
  box-shadow:0 7px 20px rgba(25,76,60,.16)!important;
  font:800 36px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  transform:translateY(-50%)!important;
}
body.g2d-route-academy .g2d147-swipe-wrap.has-overflow .g2d147-swipe-arrow{display:grid!important}
body.g2d-route-academy .g2d147-swipe-arrow--prev{left:2px!important;right:auto!important}
body.g2d-route-academy .g2d147-swipe-arrow--next{right:2px!important;left:auto!important}
body.g2d-route-academy .g2d147-swipe-arrow:disabled{opacity:.38!important}
body.g2d-route-academy .g2d147-edge-fade{width:26px!important;top:12px!important;bottom:12px!important}
body.g2d-route-academy .g2d147-edge-fade--start{left:0!important}
body.g2d-route-academy .g2d147-edge-fade--end{right:0!important}

@media(max-width:700px){
  body.g2d-route-academy main.container{
    padding-bottom:calc(188px + env(safe-area-inset-bottom,0px))!important;
  }
  body.g2d-route-academy .g2d145-academy{
    padding:16px 14px 20px!important;
    overflow:hidden!important;
  }
  body.g2d-route-academy .g2d145-academy-head{display:block!important}
  body.g2d-route-academy .g2d145-academy-head .eyebrow{font-size:10px!important}
  body.g2d-route-academy .g2d145-academy-head h1{
    margin:4px 0 8px!important;
    font-size:clamp(30px,9vw,36px)!important;
    line-height:1.04!important;
    letter-spacing:-.035em!important;
  }
  body.g2d-route-academy .g2d145-academy-head p{
    margin:0!important;
    max-width:34rem!important;
    font-size:16px!important;
    line-height:1.45!important;
  }
  body.g2d-route-academy .g2d145-academy-progress{
    display:inline-grid!important;
    place-items:center!important;
    min-width:88px!important;
    min-height:78px!important;
    margin:12px 0 0!important;
    padding:9px 12px!important;
    border-radius:16px!important;
  }
  body.g2d-route-academy .g2d145-academy-progress strong{font-size:22px!important;line-height:1!important}
  body.g2d-route-academy .g2d145-academy-progress span{margin-top:3px!important;font-size:11px!important}
  body.g2d-route-academy .g2d145-track-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    margin:14px 0 4px!important;
  }
  body.g2d-route-academy .g2d145-track-tabs a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:46px!important;
    padding:8px 10px!important;
    border-radius:999px!important;
    font-size:14px!important;
    line-height:1.15!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.g2d-route-academy .g2d147-swipe-wrap{margin:4px -2px 8px!important;width:calc(100% + 4px)!important}
  body.g2d-route-academy .g2d147-swipe-wrap .g2d145-course-strip{
    padding:10px 24px 11px!important;
    gap:10px!important;
    scroll-padding-inline:24px!important;
  }
  body.g2d-route-academy .g2d145-course-strip>a{
    flex:0 0 calc(100% - 44px)!important;
    width:calc(100% - 44px)!important;
    max-width:none!important;
    min-width:0!important;
    min-height:96px!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:11px!important;
    padding:13px 15px!important;
    border-radius:18px!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
  }
  body.g2d-route-academy .g2d145-course-strip>a>span{
    width:46px!important;
    height:46px!important;
    border-radius:14px!important;
    font-size:24px!important;
  }
  body.g2d-route-academy .g2d145-course-strip strong{
    font-size:17px!important;
    line-height:1.28!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.g2d-route-academy .g2d145-course-strip small{margin-top:5px!important;font-size:12px!important}
  body.g2d-route-academy .g2d147-swipe-arrow{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;font-size:34px!important;border-width:3px!important}
  body.g2d-route-academy .g2d147-swipe-arrow--prev{left:3px!important}
  body.g2d-route-academy .g2d147-swipe-arrow--next{right:3px!important}
  body.g2d-route-academy .g2d145-course-focus{
    margin-top:2px!important;
    padding-top:14px!important;
  }
  body.g2d-route-academy .g2d145-course-focus>header{gap:11px!important;align-items:flex-start!important}
  body.g2d-route-academy .g2d145-course-icon{width:50px!important;height:50px!important;border-radius:16px!important;font-size:26px!important;flex:0 0 50px!important}
  body.g2d-route-academy .g2d145-course-focus header small{font-size:10px!important;letter-spacing:.07em!important}
  body.g2d-route-academy .g2d145-course-focus header h2{
    margin:2px 0 4px!important;
    font-size:clamp(24px,7vw,30px)!important;
    line-height:1.08!important;
  }
  body.g2d-route-academy .g2d145-course-focus header p{font-size:13px!important;line-height:1.35!important}

  /* Keep the search launcher out of the admin preview selector and bottom nav. */
  body.g2d-route-academy :where(.g2d-search-fab,.g2d-floating-search,.g2d-command-fab,[class*="search-fab"],[class*="floating-search"]){
    bottom:calc(142px + env(safe-area-inset-bottom,0px))!important;
    right:10px!important;
  }
}

@media(max-width:390px){
  body.g2d-route-academy .g2d145-academy{padding-inline:12px!important}
  body.g2d-route-academy .g2d145-track-tabs a{font-size:12.5px!important;padding-inline:7px!important}
  body.g2d-route-academy .g2d145-course-strip>a{flex-basis:calc(100% - 36px)!important;width:calc(100% - 36px)!important}
}

@media(prefers-reduced-motion:reduce){
  body.g2d-route-academy .g2d145-course-strip{scroll-behavior:auto!important}
}