.dsl-hmm {
  --dsl-hmm-accent: #0f5f9e;
  --dsl-hmm-accent-soft: #eaf4fb;
  --dsl-hmm-border: rgba(15, 95, 158, 0.16);
  --dsl-hmm-text: #1b2a3a;
  --dsl-hmm-text-soft: #536172;
  --dsl-hmm-heading-font-family: var(--e-global-typography-primary-font-family, inherit);
  --dsl-hmm-heading-font-weight: var(--e-global-typography-primary-font-weight, 600);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  color: var(--dsl-hmm-text);
}

.dsl-hmm__tabs {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.dsl-hmm__tab {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 95, 158, 0.14);
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
  appearance: none;
  color: var(--dsl-hmm-text-soft);
  font-family: var(--dsl-hmm-heading-font-family);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.dsl-hmm__tab:hover,
.dsl-hmm__tab:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--dsl-hmm-text);
  outline: none;
}

.dsl-hmm__tab.is-active {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--dsl-hmm-text);
  font-weight: 600;
}

.dsl-hmm__tab-label {
  display: block;
}

.dsl-hmm__panel {
  min-width: 0;
}

.dsl-hmm__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--dsl-hmm-border);
}

.dsl-hmm__title {
  margin: 0;
  color: var(--dsl-hmm-accent);
  font-family: var(--dsl-hmm-heading-font-family);
  font-weight: var(--dsl-hmm-heading-font-weight);
  font-size: clamp(0.98rem, 0.88rem + 0.35vw, 1.32rem);
  line-height: 1.15;
}

.dsl-hmm__view-all {
  flex-shrink: 0;
  color: var(--dsl-hmm-accent);
  font-family: var(--dsl-hmm-heading-font-family);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.dsl-hmm__view-all:hover,
.dsl-hmm__view-all:focus-visible {
  text-decoration: underline;
  outline: none;
}

.dsl-hmm__status {
  display: flex;
  align-items: center;
  min-height: 220px;
  padding: 1rem 0;
  color: var(--dsl-hmm-text-soft);
  font-family: var(--dsl-hmm-heading-font-family);
  font-weight: 500;
  font-size: 0.96rem;
}

.dsl-hmm__status[data-state="loading"]::before {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-right: 0.65rem;
  border: 2px solid rgba(15, 95, 158, 0.16);
  border-top-color: var(--dsl-hmm-accent);
  border-radius: 50%;
  animation: dsl-hmm-spin 0.8s linear infinite;
}

.dsl-hmm__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.dsl-hmm__status[hidden],
.dsl-hmm__grid[hidden] {
  display: none !important;
}

.dsl-hmm__card {
  min-width: 0;
}

.dsl-hmm__card-link {
  display: grid;
  gap: 0.7rem;
  height: 100%;
  padding: 0.7rem;
  border: 1px solid var(--dsl-hmm-border);
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dsl-hmm__card-link:hover,
.dsl-hmm__card-link:focus-visible {
  border-color: rgba(15, 95, 158, 0.28);
  box-shadow: 0 18px 36px rgba(13, 46, 74, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.dsl-hmm__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 2.7;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #ffffff;
}

.dsl-hmm__image {
  width: 69%;
  height: 69%;
  object-fit: contain;
}

.dsl-hmm__card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--dsl-hmm-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1024px) {
  .dsl-hmm {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 1rem;
  }

  .dsl-hmm__tabs {
    display: grid;
    gap: 0.2rem;
    align-content: start;
  }

  .dsl-hmm__panel-head {
    margin-bottom: 0.85rem;
  }

  .dsl-hmm__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dsl-hmm {
    grid-template-columns: 1fr;
  }

  .dsl-hmm__tabs {
    display: grid;
    gap: 0.2rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .dsl-hmm__tab {
    display: flex;
    width: 100%;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .dsl-hmm__panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dsl-hmm__status {
    min-height: 120px;
  }

  .dsl-hmm__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .dsl-hmm__card-link {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .dsl-hmm__card-title {
    font-size: 0.82rem;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsl-hmm__tab,
  .dsl-hmm__card-link {
    transition: none;
  }

  .dsl-hmm__status[data-state="loading"]::before {
    animation: none;
  }
}

@keyframes dsl-hmm-spin {
  to {
    transform: rotate(360deg);
  }
}
