.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 8px 19px;
  font-size: 12px;
  background: white;
  color: #67746d;
}
.tab.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  margin-top: 23px;
}
.job-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  background: white;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 310px;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #163e2510;
  border-color: #99b5a4;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #eef4e7;
  color: #3a684c;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  font-weight: 700;
}
.badge.orange {
  color: #a86330;
  background: #fff1e5;
}
.badge.gray {
  background: #f1f3f1;
  color: #65726b;
}
.bookmark {
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #8b9990;
  padding: 0 3px;
  line-height: 1;
}
.bookmark.saved {
  color: var(--green);
}
.job-location {
  font-size: 11px;
  color: var(--muted);
  margin: 21px 0 6px;
}
.job-card h3 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}
.salary {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.salary small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 19px;
}
.tags span {
  font-size: 10px;
  color: #67756c;
  background: #f6f7f4;
  border-radius: 3px;
  padding: 4px 7px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
}
.card-bottom a {
  font-weight: 700;
  color: var(--green);
  font-size: 12px;
}
.job-tools {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}
.job-tools input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  width: 250px;
  font-size: 12px;
}
.empty {
  grid-column: 1/-1;
  padding: 50px;
  text-align: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
}
.detail-box h1 {
  font-size: 30px;
  margin: 18px 0;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.facts span {
  color: var(--muted);
}
.wide-button {
  display: block;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 23px;
}
.wide-button:hover {
  background: var(--paper);
}
@media (max-width: 1000px) {
  .cards {
    gap: 12px;
  }
  .job-card {
    padding: 18px;
  }
  .job-card h3 {
    font-size: 17px;
  }
}
@media (max-width: 700px) {
  .tabs {
    gap: 6px;
  }
  .tab {
    padding: 7px 14px;
    font-size: 11px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 19px;
  }
  .job-card {
    padding: 22px;
    min-height: 280px;
  }
  .job-card h3 {
    font-size: 21px;
  }
  .job-location {
    margin-top: 16px;
  }
  .salary {
    font-size: 26px;
  }
  .tags span {
    font-size: 11px;
  }
  .card-bottom {
    font-size: 11px;
  }
  .job-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .job-tools input {
    width: 100%;
  }
  .detail-box h1 {
    font-size: 25px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) {
  .cards:has(.job-card:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
  }
}
