.bch-dir-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 70px;
}

/* ---- Featured sponsor cards ---- */

.bch-dir-featured {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.bch-dir-fcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 12px 16px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(7, 31, 63, .05);
}

.bch-dir-pill {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bch-dir-fcard-logo {
  height: 46px;
  margin-bottom: 10px;
}

.bch-dir-fcard-logo img {
  max-height: 46px;
  max-width: 100%;
  object-fit: contain;
}

.bch-directory-page .bch-dir-fcard h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.bch-dir-fcard-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 78px;
  max-height: 78px;
  overflow: hidden;
}

.bch-dir-fcard-tel {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ---- Toolbar ---- */

.bch-dir-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.bch-directory-page .bch-dir-count {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.bch-dir-search {
  flex: 0 1 240px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

/* ---- Rows ---- */

.bch-dir-rows {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 31, 63, .05);
}

.bch-dir-head,
.bch-dir-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, .95fr);
  column-gap: 10px;
  padding: 11px 16px;
  align-items: start;
}

.bch-dir-head {
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bch-dir-row {
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.bch-dir-row:first-of-type {
  border-top: 0;
}

.bch-dir-c1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.bch-dir-c1 .bch-vendor-link {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
}

.bch-dir-c1 .bch-vendor-link:hover {
  color: var(--navy);
}

.bch-dir-c2,
.bch-dir-c3,
.bch-dir-c4 {
  color: var(--muted);
}

.bch-dir-c3,
.bch-dir-head span:nth-child(4) {
  padding-left: 40px;
}

.bch-dir-meta {
  flex: 0 0 100%;
  margin-top: 2px;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--muted);
}

.bch-dir-empty {
  padding: 22px 16px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.bch-dir-c0 img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-top: 2px;
}

.bch-dir-note {
  margin: 14px 0 0 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.bch-dir-note + .bch-dir-note {
  margin-top: 4px;
}

.bch-dir-note img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 4px;
}

@media (max-width: 1024px) {
  .bch-dir-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .bch-dir-featured {
    grid-template-columns: 1fr;
  }

  .bch-dir-head {
    display: none;
  }

  .bch-dir-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }	
	
  .bch-dir-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}