.jobs-filter-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.jobs-filter-panel > * {
  min-width: 0;
}

.jobs-grid {
  display: grid;
  align-items: stretch;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.jobs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.jobs-card:hover {
  transform: translateY(-1px);
  border-color: rgb(63 120 224 / 0.28);
  box-shadow: 0 22px 52px rgb(52 63 82 / 0.12);
}

.jobs-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.jobs-card-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jobs-card-title {
  min-width: 0;
}

.jobs-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.jobs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jobs-type-pill {
  align-self: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
}

.jobs-meta > span {
  max-width: 100%;
}

.jobs-card-description {
  display: -webkit-box;
  overflow: hidden;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  line-height: 1.65;
}

.jobs-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.jobs-actions a {
  min-height: 2.25rem;
}

.jobs-actions a:first-child {
  background: #ffffff;
}

.jobs-actions a:last-child {
  border: 1px solid rgb(63 120 224 / 0.3);
}

@media (max-width: 480px) {
  .jobs-actions {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .jobs-actions > a {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .jobs-filter-panel {
    grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr) minmax(10rem, 1fr) auto;
    align-items: center;
  }

  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-card-footer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .jobs-card-footer {
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .jobs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
