/* Loaded only by the legacy course listing and course detail pages. */
.hartak-final-entry:has(+ .hartak-course-categories){margin-bottom:12px}
.hartak-course-categories#meetings{padding-top:12px!important}
.hartak-course-categories .meeting-single-item>.down-content{padding-top:0}
.hartak-course-categories .down-content>section.py-5{padding-top:0!important}
.hartak-course-categories .down-content>section.py-5>.container{margin-top:0!important}

/* Keep the original card design, with all related courses reachable. */
#recipeCarousel .carousel-inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:hidden;padding:12px 28px}
#recipeCarousel .carousel-inner::after{display:none}
#recipeCarousel .carousel-item{display:block;float:none;width:auto;margin:0;transform:none!important;transition:none}
#recipeCarousel .carousel-item[hidden]{display:none!important}
#recipeCarousel .carousel-item>div{display:block;width:100%;max-width:none;padding:0}
#recipeCarousel .card{padding:0;border:0}
#recipeCarousel img{width:100%;height:auto;display:block}
#recipeCarousel .carousel-control-prev,#recipeCarousel .carousel-control-next{width:34px!important;opacity:1}
#recipeCarousel .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#recipeCarousel .carousel-control-prev[hidden],#recipeCarousel .carousel-control-next[hidden]{display:none!important}
@media(max-width:767px){
  #recipeCarousel .carousel-inner{grid-template-columns:minmax(0,1fr);padding-inline:24px}
  .hartak-course-categories .meeting-single-item>.down-content{padding-inline:0}
  .hartak-course-categories .down-content>section.py-5>.container{padding-inline:12px!important}
}

/* Every category/detail uses these same footer and related-course gaps. */
body[data-hartak-page="course"] section.meetings-page:has(.footer),
body[data-hartak-page="category"] section.meetings-page:has(.footer){margin-top:0!important;padding-top:0!important;padding-bottom:0!important}
body[data-hartak-page="course"] #recipeCarousel{margin-bottom:0}
body[data-hartak-page="course"] .hartak-course-share-links{margin-block:8px 12px!important}
body[data-hartak-page="course"] .hartak-course-share-title{margin-top:12px!important}
body[data-hartak-page="course"]:not(.sp-course-page) section.contact-us #contact{margin-bottom:0!important}
body[data-hartak-page="course"]:not(.sp-course-page) #contact fieldset:has(#form-submit)>br{display:none}
