.alert-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  background: var(--nki-white);
}

.alert-list__item {
  border-bottom: 1px solid var(--border-light);
}

.alert-list__item:nth-child(odd) {
  background: var(--nki-white);
}

.alert-list__item:nth-child(even) {
  background: var(--nki-teal-light);
}

.alert-list__item:last-child {
  border-bottom: 0;
}

.alert-list__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  color: var(--nki-dark);
  transition: var(--transition-smooth);
}

.alert-list__link:hover,
.alert-list__link:focus-visible {
  color: var(--nki-teal);
  background: var(--surface-white-50);
}

.alert-list__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.alert-list__date {
  justify-self: end;
  color: var(--nki-dark-light);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .alert-list {
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
  }

  .alert-list__item:nth-child(odd),
  .alert-list__item:nth-child(even) {
    background: transparent;
  }

  .alert-list__link {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
  }

  .alert-list__date {
    justify-self: start;
    white-space: normal;
  }
}
