/*
  Cancer Care Domain title compacting.
  Scope: only the top title/header of the cancer-domain animation section.
  No effect on navbar, translation, animation logic, page routing, or the diagram board.
*/

.kx-cancer-domain-section .kx-cancer-domain-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}

.kx-cancer-domain-section .kx-cancer-domain-eyebrow {
  margin-bottom: 8px !important;
}

.kx-cancer-domain-section .kx-cancer-domain-header h2 {
  font-size: clamp(20px, 1.75vw, 30px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  font-weight: 850 !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

/* Remove the long explanatory paragraph from the top area so the image moves upward. */
.kx-cancer-domain-section .kx-cancer-domain-header p {
  display: none !important;
}

/* Keep the controls aligned on the same row. */
.kx-cancer-domain-section .kx-cancer-controls {
  align-self: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
}

/* On smaller screens, allow wrapping instead of clipping too aggressively. */
@media (max-width: 1050px) {
  .kx-cancer-domain-section .kx-cancer-domain-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .kx-cancer-domain-section .kx-cancer-domain-header h2 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .kx-cancer-domain-section .kx-cancer-controls {
    justify-content: flex-start !important;
  }
}
