/* --- DR UX Cleanup: old resource tabs, single back-to-top, aligned latest notes --- */
html body .site-content .elementor-widget-html > .elementor-widget-container > header[class*="bg-white"][class*="backdrop-blur"][class*="border-b"][class*="sticky"][class*="top-0"],
html body .site-content .elementor-widget-html header[class*="bg-white"][class*="backdrop-blur"][class*="border-b"][class*="sticky"][class*="top-0"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

html body .site-content .elementor-widget-html:has(> .elementor-widget-container > header[class*="bg-white"][class*="backdrop-blur"][class*="border-b"][class*="sticky"][class*="top-0"]) {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body #ast-scroll-top,
html body .ast-scroll-top-icon,
html body .ast-scroll-to-top-right {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body button#back-to-top,
html body #site-footer button#back-to-top,
html body .site-footer button#back-to-top,
html body .footer-width-fixer button#back-to-top {
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9999 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html body button#back-to-top:not(.hidden),
html body #site-footer button#back-to-top:not(.hidden),
html body .site-footer button#back-to-top:not(.hidden) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body.home .elementor-element-59a4145 .ekit-row.post-items,
html body.home .elementor-element-59a4145 .ekit-row.post-items.ekit-blog-post-masonry-inactive {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(18px, 2.6vw, 32px) !important;
  margin: 0 !important;
}

html body.home .elementor-element-59a4145 .post-item.ekit-col-4 {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  display: flex !important;
  min-width: 0 !important;
}

html body.home .elementor-element-59a4145 .elementskit-post-image-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 660px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #f3d7fd 0%, #f6e5ff 100%) !important;
  box-shadow: none !important;
}

html body.home .elementor-element-59a4145 .elementskit-entry-header {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #ffffff !important;
}

html body.home .elementor-element-59a4145 .elementskit-entry-header > a,
html body.home .elementor-element-59a4145 .elementskit-entry-thumb,
html body.home .elementor-element-59a4145 .elementskit-entry-thumb > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

html body.home .elementor-element-59a4145 .elementskit-entry-header img,
html body.home .elementor-element-59a4145 .elementskit-entry-thumb img,
html body.home .elementor-element-59a4145 .elementskit-post-image-card img {
  width: 100% !important;
  height: 100% !important;
  max-height: 280px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  background: #ffffff !important;
}

html body.home .elementor-element-59a4145 .elementskit-meta-categories {
  position: absolute !important;
  top: 16px !important;
  left: 18px !important;
  z-index: 3 !important;
  margin: 0 !important;
}

html body.home .elementor-element-59a4145 .elementskit-meta-lists {
  position: absolute !important;
  left: 22px !important;
  bottom: -28px !important;
  z-index: 4 !important;
  margin: 0 !important;
}

html body.home .elementor-element-59a4145 .elementskit-post-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 44px clamp(22px, 3vw, 34px) clamp(24px, 3vw, 34px) !important;
  min-height: 0 !important;
}

html body.home .elementor-element-59a4145 .entry-title {
  min-height: 3.2em !important;
  margin: 0 0 16px !important;
  line-height: 1.2 !important;
  display: block !important;
}

html body.home .elementor-element-59a4145 .entry-title a {
  display: block !important;
  color: #111827 !important;
  text-decoration: none !important;
}

html body.home .elementor-element-59a4145 .elementskit-post-body p {
  min-height: 6.2em !important;
  margin: 0 0 22px !important;
  line-height: 1.55 !important;
  color: #5f5068 !important;
}

html body.home .elementor-element-59a4145 .btn-wraper {
  margin-top: auto !important;
  padding-top: 10px !important;
}

html body.home .elementor-element-59a4145 .elementskit-btn {
  min-width: 150px !important;
  justify-content: center !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

@media (max-width: 1024px) {
  html body.home .elementor-element-59a4145 .ekit-row.post-items,
  html body.home .elementor-element-59a4145 .ekit-row.post-items.ekit-blog-post-masonry-inactive {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  html body.home .elementor-element-59a4145 .ekit-row.post-items,
  html body.home .elementor-element-59a4145 .ekit-row.post-items.ekit-blog-post-masonry-inactive {
    grid-template-columns: 1fr !important;
  }

  html body.home .elementor-element-59a4145 .elementskit-post-image-card {
    min-height: auto !important;
  }

  html body.home .elementor-element-59a4145 .elementskit-entry-header {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
  }

  html body.home .elementor-element-59a4145 .elementskit-entry-header img,
  html body.home .elementor-element-59a4145 .elementskit-entry-thumb img,
  html body.home .elementor-element-59a4145 .elementskit-post-image-card img {
    max-height: 230px !important;
  }

  html body.home .elementor-element-59a4145 .entry-title,
  html body.home .elementor-element-59a4145 .elementskit-post-body p {
    min-height: 0 !important;
  }
}
/* --- End DR UX Cleanup --- */

/* --- DR Compact Note Strip Cleanup --- */
html body.single-post #page .site-content .elementor-widget-html>div[class*="bg-gradient-to-br"][class*="rounded-3xl"][class*="mb-12"],html body.single-post #page .site-content .elementor-widget-html>.elementor-widget-container>div[class*="bg-gradient-to-br"][class*="rounded-3xl"][class*="mb-12"]{background:transparent!important;background-image:none!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0 auto clamp(16px,2.4vw,28px)!important;max-width:min(1120px,100%)!important}
html body.single-post #page .site-content .elementor-widget-html>div[class*="bg-gradient-to-br"][class*="rounded-3xl"][class*="mb-12"] .max-w-4xl,html body.single-post #page .site-content .elementor-widget-html>.elementor-widget-container>div[class*="bg-gradient-to-br"][class*="rounded-3xl"][class*="mb-12"] .max-w-4xl{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
html body.single-post #page .site-content .elementor-widget-html h1[class*="font-bold"]{width:100%!important;max-width:100%!important;background:linear-gradient(90deg,rgba(250,245,255,.96),rgba(236,254,255,.78))!important;border:1px solid rgba(196,181,253,.82)!important;box-shadow:none!important;border-radius:clamp(14px,2vw,18px)!important;padding:clamp(13px,2vw,22px) clamp(14px,3vw,28px)!important;margin:0 0 clamp(12px,2vw,18px)!important}
html body.single-post #page .site-content .prose h3:not([class*="quiz" i]),html body.single-post #page .site-content .full-width-container h3:not([class*="quiz" i]),html body.single-post #page .site-content .not-prose h3:not([class*="quiz" i]),html body.single-post #page .site-content [class*="not-prose"] h3:not([class*="quiz" i]),html body.single-post #page .site-content .not-prose h4:not([class*="quiz" i]),html body.single-post #page .site-content [class*="not-prose"] h4:not([class*="quiz" i]){border:1px solid rgba(221,214,254,.82)!important;box-shadow:none!important}
html body.single-post #page .site-content .elementor-widget-html .full-width-container p:has(>strong:first-child),html body.single-post #page .site-content .elementor-widget-html .full-width-container p:has(> strong:first-child),html body.single-post #page .site-content .prose p:has(>strong:first-child),html body.single-post #page .site-content .prose p:has(> strong:first-child),html body.single-post #page .site-content .elementor-widget-html .clinical-card,html body.single-post #page .site-content .elementor-widget-html [class*="border-l"]{border:1px solid rgba(221,214,254,.78)!important;box-shadow:none!important}
html body.single-post #page .site-content .elementor-widget-html .clinical-card{padding:clamp(14px,2vw,20px)!important;background:linear-gradient(135deg,rgba(250,245,255,.96),rgba(255,255,255,.98))!important}
@media(max-width:768px){html body.single-post #page .site-content .elementor-widget-html>div[class*="rounded-3xl"][class*="mb-12"]{margin-bottom:14px!important}html body.single-post #page .site-content .elementor-widget-html h1[class*="font-bold"]{padding:12px 13px!important;border-radius:14px!important}html body.single-post #page .site-content .prose h3:not([class*="quiz" i]),html body.single-post #page .site-content .full-width-container h3:not([class*="quiz" i]),html body.single-post #page .site-content .not-prose h3:not([class*="quiz" i]),html body.single-post #page .site-content [class*="not-prose"] h3:not([class*="quiz" i]),html body.single-post #page .site-content .not-prose h4:not([class*="quiz" i]),html body.single-post #page .site-content [class*="not-prose"] h4:not([class*="quiz" i]){border-left-width:1px!important}html body.single-post #page .site-content .elementor-widget-html .full-width-container p:has(>strong:first-child),html body.single-post #page .site-content .elementor-widget-html .full-width-container p:has(> strong:first-child),html body.single-post #page .site-content .prose p:has(>strong:first-child),html body.single-post #page .site-content .prose p:has(> strong:first-child),html body.single-post #page .site-content .elementor-widget-html .clinical-card{padding-left:12px!important;padding-right:12px!important;border-left-width:1px!important}}
/* --- End DR Compact Note Strip Cleanup --- */

/* --- DR Mobile Table Scroll Restore --- */
@media(max-width:768px){
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .table-responsive,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .wp-block-table{
    display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;touch-action:pan-x pan-y!important;padding-bottom:8px!important;margin-left:0!important;margin-right:0!important
  }
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .table-responsive table,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .wp-block-table table{
    display:table!important;width:max-content!important;min-width:720px!important;max-width:none!important;table-layout:auto!important;overflow:visible!important;white-space:normal!important
  }
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .full-width-container>table,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html [class*="not-prose"]>table{
    display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;touch-action:pan-x pan-y!important
  }
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table>thead,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table>tbody,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table>tfoot,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .full-width-container>table>thead,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .full-width-container>table>tbody,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .full-width-container>table>tfoot{
    display:table!important;width:max-content!important;min-width:720px!important;max-width:none!important
  }
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html table th,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html table td{
    min-width:130px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important
  }
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html table th:first-child,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html table td:first-child{min-width:150px!important}
}
@media(max-width:480px){
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .table-responsive table,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .wp-block-table table,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table>thead,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table>tbody,
  html body:is(.single-post,.page):not(.home) #page .site-content .elementor-widget-html .prose>table>tfoot{min-width:680px!important}
}
/* --- End DR Mobile Table Scroll Restore --- */
