/* Professionals directory. template-professionals.php only
 *
 * Hero: hero-capability.css. Filters: filter-bar.css. Cards: pro-card.css lg.
 * Tokens only.
 */

.hlb-pros {
  background: var(--hlb-white);
}

/* --- Hero search. White box on any hero color. Part of the filter form --- */

.hlb-pros-search {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-top: 36px;
}

.hlb-pros-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--hlb-navy);
  stroke-width: 1.6;
  pointer-events: none;
}

:root .hlb-pros-search__input {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 20px 0 50px;
  border: 0;
  border-radius: 0;
  background: var(--hlb-white);
  color: var(--hlb-ink);
  font: var(--hlb-body);
  line-height: 1;
  box-shadow: none;
}

:root .hlb-pros-search__input::placeholder {
  color: var(--hlb-slate);
  opacity: 1;
}

:root .hlb-pros-search__input:focus-visible {
  outline: 2px solid var(--hlb-mint);
  outline-offset: 2px;
}

/* --- A-Z, count, clear --- */

.hlb-pros-results {
  padding: 40px var(--hlb-gutter) 112px;
}

.hlb-pros-results__inner {
  max-width: var(--hlb-container);
  margin: 0 auto;
}

.hlb-pros-az {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hlb-pros-az li {
  margin: 0;
  padding: 0;
}

.hlb-pros-az li::before {
  content: none;
}

.hlb-pros .hlb-pros-az__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 34px;
  padding: 0 4px;
  color: var(--hlb-navy);
  font: var(--hlb-label-lg);
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(28, 165, 161, 0);
  transition: box-shadow var(--hlb-speed) var(--hlb-ease);
}

.hlb-pros .hlb-pros-az__link:hover,
.hlb-pros .hlb-pros-az__link[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--hlb-turquoise);
}

/* No one under that letter. #9AA3B2 on white 2.6:1, decorative, hidden from AT */
.hlb-pros .hlb-pros-az__link.is-empty {
  color: #9AA3B2;
  box-shadow: none;
}

.hlb-pros-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 24px;
  margin: 0 0 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hlb-rule);
}

.hlb-pros .hlb-pros-status__clear {
  font: var(--hlb-label);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hlb-pros .hlb-pros-status__count {
  margin: 0 0 0 auto;
  color: var(--hlb-slate);
  font: var(--hlb-text-sm);
  line-height: 1.4;
}

/* --- Grid. 4 up, 3, 2 --- */

.hlb-pros .hlb-pros-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hlb-pros .hlb-pros-grid > li {
  margin: 0;
  padding: 0;
}

.hlb-pros .hlb-pros-grid > li::before {
  content: none;
}

@media (max-width: 1099px) {
  .hlb-pros .hlb-pros-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hlb-pros-results {
    padding-block: 28px 72px;
  }

  .hlb-pros .hlb-pros-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
  }

  .hlb-pros-search {
    margin-top: 28px;
  }
}

/* Loading dim, same as News */
.hlb-pros-results {
  transition: opacity .2s ease;
}

.hlb-pros-results.is-loading {
  opacity: 0.72;
}

.hlb-pros-results:focus,
#hlb-pros-results-title:focus {
  outline: none;
}

/* Empty */
.hlb-pros-empty {
  padding: 56px 0 24px;
  text-align: center;
}

.hlb-pros .hlb-pros-empty__title {
  margin: 0 0 20px;
  color: var(--hlb-ink);
  font: var(--hlb-empty-title);
}

.hlb-pros .hlb-pros-empty__action {
  margin: 0;
}

/* --- Filter bar, six fields. filter-bar.css is laid out for News (3 + dates) --- */

.hlb-pros .hlb-filter-bar .hlb-filter-bar__label {
  padding-right: 24px;
}

/* Tablet and down: label row, then 2 up. Right column gets the hairline */
@media (max-width: 1099px) {
  .hlb-pros .hlb-filter-bar__field {
    grid-column: auto;
    border-left: 0;
  }

  .hlb-pros .hlb-filter-bar__field--sector,
  .hlb-pros .hlb-filter-bar__field--position,
  .hlb-pros .hlb-filter-bar__field--undergrad {
    border-left: 1px solid var(--hlb-rule);
  }

  :root .hlb-pros .hlb-filter-bar .hlb-filter-bar__field > .hlb-filter-bar__control {
    padding-left: var(--hlb-gutter);
  }

  :root .hlb-pros .hlb-filter-bar .hlb-filter-bar__field--sector > .hlb-filter-bar__control,
  :root .hlb-pros .hlb-filter-bar .hlb-filter-bar__field--position > .hlb-filter-bar__control,
  :root .hlb-pros .hlb-filter-bar .hlb-filter-bar__field--undergrad > .hlb-filter-bar__control {
    padding-left: 20px;
  }
}

/* A-Z scrolls sideways on phones instead of wrapping to three rows */
@media (max-width: 599px) {
  .hlb-pros .hlb-pros-az {
    flex-wrap: nowrap;
    margin-inline: calc(var(--hlb-gutter) * -1);
    padding-inline: var(--hlb-gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hlb-pros .hlb-pros-az::-webkit-scrollbar {
    display: none;
  }

  .hlb-pros .hlb-pros-az__link {
    min-width: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hlb-pros-results,
  .hlb-pros .hlb-pros-az__link {
    transition: none;
  }
}
