/* HTNG Szerviz V24.27 — accessible independent scrolling for the sticky detail card.
   Keep the selected fault's title/description visible, while making ALL checks,
   sources, rating controls and related faults reachable inside the right card. */
@media (min-width: 821px) {
  body.htng-diagnostics-public main.wrap .content > aside#detail.detail {
    position: sticky !important;
    top: 92px !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    max-height: calc(100dvh - 108px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.htng-diagnostics-public #detail .detail-head {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 1;
  }
  body.htng-diagnostics-public #detail .detail-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* The narrow-screen existing detail sheet retains its fixed positioning and
   closing mechanics, but splits into a stationary header and scrollable body. */
@media (max-width: 820px) {
  body.htng-diagnostics-public main.wrap .content > aside#detail.detail {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-height: min(90dvh, 850px) !important;
  }
  body.htng-diagnostics-public #detail .detail-head {
    flex: 0 0 auto !important;
    max-height: 48dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.htng-diagnostics-public #detail .detail-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
}
body.htng-diagnostics-public #detail .detail-scroll-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
body.htng-diagnostics-public #detail .detail-feedback-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  min-height: 37px;
  border: 1px solid #568ad0;
  border-radius: 10px;
  color: #eaf3ff;
  background: #24548d;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
body.htng-diagnostics-public #detail .detail-feedback-jump:hover,
body.htng-diagnostics-public #detail .detail-feedback-jump:focus-visible {
  background: #3475bb;
}
html:not([data-theme="dark"]) body.htng-diagnostics-public #detail .detail-feedback-jump {
  background: #e8f2ff;
  color: #1b4e92;
  border-color: #abc9ef;
}
html:not([data-theme="dark"]) body.htng-diagnostics-public #detail .detail-feedback-jump:hover {
  background: #d5e7ff;
}
body.htng-diagnostics-public #detail .detail-scroll-help {
  color: #c6d7ec;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
html:not([data-theme="dark"]) body.htng-diagnostics-public #detail .detail-scroll-help {
  color: #44617d;
}
body.htng-diagnostics-public #detail .htng-feedback-card {
  scroll-margin-block: 18px;
}
@media (prefers-reduced-motion: reduce) {
  body.htng-diagnostics-public #detail .detail-body { scroll-behavior: auto !important; }
}
