.masthead .navbar .logo.sp-brand-logo {
  align-items: center;
  color: #fff;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  min-height: 74px;
  text-decoration: none;
  vertical-align: middle;
}

.masthead .navbar .logo.sp-brand-logo img {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  display: block;
  flex: 0 0 64px;
  height: 64px;
  max-height: none;
  object-fit: contain;
  padding: 6px;
  width: 64px;
}

.sp-brand-logo__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.sp-brand-logo__title {
  color: #fff;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-brand-logo__subtitle {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wrapper.no-nav .primary {
  float: none;
  width: 100%;
}

@media (max-width: 767px) {
  .masthead .navbar .logo.sp-brand-logo {
    gap: 10px;
    min-height: 68px;
    max-width: calc(100vw - 92px);
  }

  .masthead .navbar .logo.sp-brand-logo img {
    flex-basis: 52px;
    height: 52px;
    padding: 5px;
    width: 52px;
  }

  .sp-brand-logo__title {
    font-size: 1rem;
  }

  .sp-brand-logo__subtitle {
    display: none;
  }
}

.sp-directory-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.sp-directory-card {
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 48, 71, 0.08);
  display: grid;
  grid-template-rows: 112px 1fr auto;
  min-height: 330px;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sp-directory-card__image {
  align-items: center;
  background: linear-gradient(135deg, #e6f3f2, #edf2f8);
  display: flex;
  justify-content: center;
  min-height: 112px;
  padding: 18px;
}

.sp-directory-card__image img {
  height: 76px;
  max-width: 80%;
  object-fit: contain;
  transition: transform 200ms ease;
}

.sp-directory-card:hover,
.sp-directory-card:focus-within {
  border-color: #b8d6de;
  box-shadow: 0 18px 42px rgba(31, 48, 71, 0.16);
  transform: translateY(-4px);
}

.sp-directory-card:hover .sp-directory-card__image img,
.sp-directory-card:focus-within .sp-directory-card__image img {
  transform: scale(1.06);
}

.sp-directory-card__body {
  padding: 18px 18px 12px;
}

.sp-directory-card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 10px;
}

.sp-directory-card h2 a {
  color: #172033;
  display: -webkit-box;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sp-directory-card p {
  color: #5d6879;
  display: -webkit-box;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  min-height: 4.25em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sp-directory-card__meta {
  align-items: center;
  border-top: 1px solid #e7edf4;
  color: #5d6879;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 18px;
}

.sp-directory-card__meta strong,
.sp-directory-card__meta span {
  display: block;
}

.sp-directory-card__meta strong {
  color: #11667b;
  font-size: 0.92rem;
}

.sp-directory-card__meta span {
  font-size: 0.82rem;
  margin-top: 2px;
}

.sp-directory-card__capacity {
  background: #eef6f7;
  border: 1px solid #d5e9ec;
  border-radius: 999px;
  color: #145c71;
  font-weight: 800;
  padding: 5px 9px;
}

.sp-directory-card__view {
  inset: 0;
  overflow: hidden;
  position: absolute;
  text-indent: -9999px;
  z-index: 1;
}

.sp-directory-card__remove {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
}

.sp-directory-card a:not(.sp-directory-card__view) {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .sp-directory-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-directory-card,
  .sp-directory-card__image img {
    transition: none;
  }

  .sp-directory-card:hover,
  .sp-directory-card:focus-within,
  .sp-directory-card:hover .sp-directory-card__image img,
  .sp-directory-card:focus-within .sp-directory-card__image img {
    transform: none;
  }
}
