.tlg-jobs-directory-shell {
  background: #eef5fa;
  padding: 58px 24px 76px;
}

.tlg-jobs-directory-shell__inner {
  margin: 0 auto;
  max-width: 1120px;
}

.tlg-jobs-directory-heading {
  margin-bottom: 32px;
}

.tlg-jobs-directory-heading h1 {
  color: #173b53;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.tlg-jobs-directory-heading p {
  color: #526879;
  font-size: 18px;
  margin: 0;
}

.tlg-jobs-directory,
.tlg-jobs-directory * {
  box-sizing: border-box;
}

.tlg-directory-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.tlg-directory-results {
  min-width: 0;
  position: relative;
}

.tlg-jobs-directory.is-loading .tlg-directory-results {
  min-height: 280px;
  opacity: 0.55;
  pointer-events: none;
}

.tlg-jobs-directory.is-loading .tlg-directory-results::after {
  animation: tlg-directory-spin 0.8s linear infinite;
  border: 3px solid #c8d8e3;
  border-radius: 50%;
  border-top-color: #176eaa;
  content: "";
  height: 34px;
  left: 50%;
  position: absolute;
  top: 110px;
  width: 34px;
}

@keyframes tlg-directory-spin {
  to { transform: rotate(360deg); }
}

.tlg-results-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
}

.tlg-results-toolbar p {
  color: #526879;
  font-size: 15px;
  margin: 0;
}

.tlg-results-toolbar strong {
  color: #173b53;
}

.tlg-job-results-list {
  display: grid;
  gap: 16px;
}

.tlg-job-card {
  background: #fff;
  border: 1px solid #dce7ee;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(23, 59, 83, 0.07);
  margin: 0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tlg-job-card:hover {
  border-color: #aec9da;
  box-shadow: 0 14px 34px rgba(23, 59, 83, 0.12);
  transform: translateY(-2px);
}

.tlg-job-card-body {
  padding: 25px 28px 21px;
}

.tlg-job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.tlg-job-card-tags span {
  background: #eaf6ef;
  border-radius: 999px;
  color: #247a4a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 9px;
}

.tlg-job-card h2 {
  color: #173b53;
  font-size: 25px;
  line-height: 1.22;
  margin: 0 0 13px;
}

.tlg-job-card h2 a {
  color: inherit;
  text-decoration: none;
}

.tlg-job-card h2 a:hover {
  color: #176eaa;
}

.tlg-job-card-meta {
  color: #526879;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  gap: 8px 18px;
}

.tlg-job-card-meta span {
  align-items: center;
  display: inline-flex;
}

.tlg-job-card-meta span::before {
  color: #0aae55;
  display: inline-block;
  font-size: 16px;
  margin-right: 7px;
}

.tlg-meta-specialty::before { content: "✚"; }
.tlg-meta-location::before { content: "⌖"; }
.tlg-meta-pay::before { content: "$"; font-weight: 800; }

.tlg-job-card-excerpt {
  color: #526879;
  font-size: 15px;
  line-height: 1.62;
  margin: 16px 0 0;
}

.tlg-job-card-footer {
  align-items: center;
  background: #f7fafc;
  border-top: 1px solid #e3edf3;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 28px;
}

.tlg-job-card-footer > span {
  color: #708291;
  font-size: 13px;
}

.tlg-job-card-footer a {
  color: #176eaa;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tlg-directory-filters {
  position: sticky;
  top: 24px;
}

.tlg-directory-filter-form {
  background: linear-gradient(145deg, #0a355e 0%, #052645 100%);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(23, 59, 83, 0.17);
  color: #fff;
  padding: 25px 22px;
}

.tlg-filter-heading {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  justify-content: space-between;
  margin-bottom: 19px;
  padding-bottom: 15px;
}

.tlg-filter-heading h2 {
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
  margin: 0;
}

.tlg-filter-heading button {
  background: transparent;
  border: 0;
  color: #79dc8a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 4px;
  text-decoration: underline;
}

.tlg-directory-filter-form label {
  color: #fff;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.tlg-directory-filter-form input,
.tlg-directory-filter-form select {
  appearance: none;
  background-color: #fff;
  border: 1px solid #c8d8e3;
  border-radius: 8px;
  color: #203c50;
  display: block;
  font-size: 15px;
  height: 46px;
  margin: 0 0 16px;
  padding: 0 13px;
  width: 100%;
}

.tlg-directory-filter-form select {
  background-image: linear-gradient(45deg, transparent 50%, #526879 50%), linear-gradient(135deg, #526879 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.tlg-directory-filter-form input:focus,
.tlg-directory-filter-form select:focus {
  border-color: #5bb98c;
  box-shadow: 0 0 0 3px rgba(91, 185, 140, 0.23);
  outline: 0;
}

.tlg-filter-submit {
  background: linear-gradient(90deg, #52be64 0%, #58c96e 100%);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  min-height: 47px;
  padding: 11px 16px;
  width: 100%;
}

.tlg-filter-submit:hover {
  background: linear-gradient(90deg, #45ac57 0%, #4dbb62 100%);
}

.tlg-directory-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.tlg-directory-pagination a,
.tlg-directory-pagination .current {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d8e3;
  border-radius: 7px;
  color: #176eaa;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 7px 12px;
  text-decoration: none;
}

.tlg-directory-pagination .current {
  background: #176eaa;
  border-color: #176eaa;
  color: #fff;
}

.tlg-no-jobs,
.tlg-directory-error {
  background: #fff;
  border: 1px solid #dce7ee;
  border-radius: 14px;
  color: #526879;
  padding: 34px;
  text-align: center;
}

.tlg-no-jobs h2 {
  color: #173b53;
  font-size: 25px;
  margin: 0 0 8px;
}

.tlg-no-jobs p {
  margin: 0;
}

@media (max-width: 900px) {
  .tlg-directory-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }

  .tlg-directory-filter-form {
    padding: 22px 18px;
  }
}

@media (max-width: 767px) {
  .tlg-jobs-directory-shell {
    padding: 38px 15px 50px;
  }

  .tlg-jobs-directory-heading {
    margin-bottom: 24px;
  }

  .tlg-jobs-directory-heading p {
    font-size: 16px;
  }

  .tlg-directory-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .tlg-directory-filters {
    order: -1;
    position: static;
    width: 100%;
  }

  .tlg-directory-results {
    scroll-margin-top: 18px;
    width: 100%;
  }

  .tlg-job-card-body {
    padding: 22px 20px 18px;
  }

  .tlg-job-card h2 {
    font-size: 22px;
  }

  .tlg-job-card-footer {
    padding: 10px 20px;
  }
}
