/* Full-width brands directory */
.flh-brands-page {
  color: #012345;
  padding-bottom: 3rem;
}

.flh-brands-hero {
  background: linear-gradient(135deg, #edf6ff 0%, #f8fbff 100%);
  border: 1px solid #d8e7f5;
  border-radius: 12px;
  margin-bottom: 2rem;
  padding: 2rem 2.25rem;
}

.flh-brands-hero h1,
.flh-brands-section-heading h2 {
  color: #012345;
  font-weight: 800;
  margin: 0;
}

.flh-brands-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.flh-brands-hero > p:last-child { color: #365674; margin: .55rem 0 0; }

.flh-brands-eyebrow {
  color: #006ff5;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  margin: 0 0 .35rem;
  text-transform: uppercase;
}

.flh-top-brands,
.flh-brand-directory { margin-bottom: 2.5rem; }

.flh-brands-section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.flh-top-brands-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flh-top-brand-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  color: #012345;
  display: flex;
  flex-direction: column;
  min-height: 155px;
  padding: 1rem;
  text-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.flh-top-brand-card:hover,
.flh-top-brand-card:focus {
  border-color: #9fc9f7;
  box-shadow: 0 8px 20px rgba(0, 53, 105, .09);
  color: #0058c7;
  text-decoration: none;
  transform: translateY(-2px);
}

.flh-top-brand-logo {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  height: 92px;
  justify-content: center;
  margin-bottom: .6rem;
  width: 100%;
}

.flh-top-brand-logo img {
  max-height: 82px;
  max-width: 100%;
  object-fit: contain;
}

.flh-top-brand-card strong { line-height: 1.3; }

.flh-directory-heading { gap: 1rem; }

.flh-brand-search {
  align-items: center;
  background: #fff;
  border: 1px solid #ccd9e5;
  border-radius: 8px;
  display: flex;
  max-width: 340px;
  padding: 0 .9rem;
  width: 100%;
}

.flh-brand-search i { color: #66839f; }
.flh-brand-search:focus-within { border-color: #006ff5; box-shadow: 0 0 0 3px rgba(0, 111, 245, .12); }
.flh-brand-search input { border: 0; color: #012345; min-height: 44px; outline: 0; padding: .5rem .7rem; width: 100%; }

.flh-brand-az {
  background: #edf5fd;
  border: 1px solid #d7e5f2;
  border-radius: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: 1.4rem;
  padding: .65rem;
}

.flh-brand-az a {
  align-items: center;
  border-radius: 5px;
  color: #004f9f;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  min-width: 32px;
}

.flh-brand-az a:hover,
.flh-brand-az a:focus { background: #006ff5; color: #fff; text-decoration: none; }

.flh-brand-source,
.flh-brand-directory-grid {
  display: grid;
  gap: .55rem .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flh-brand-letter-group {
  border-top: 1px solid #dfe7ef;
  display: grid;
  gap: 1rem;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 1.35rem 0;
  scroll-margin-top: 120px;
}

.flh-brand-letter-group h3 {
  color: #006ff5;
  font-size: 1.55rem;
  font-weight: 800;
  margin: .35rem 0 0;
}

.flh-brand-directory-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e7ed;
  border-radius: 7px;
  color: #173a5e;
  display: flex;
  font-weight: 600;
  justify-content: space-between;
  min-height: 46px;
  padding: .65rem .8rem;
}

.flh-brand-directory-item i { color: #8aa4bd; font-size: .7rem; margin-left: .75rem; }
.flh-brand-directory-item:hover,
.flh-brand-directory-item:focus { background: #f2f7fd; border-color: #bcd7f1; color: #0058c7; text-decoration: none; }
.flh-brand-no-results { background: #f7f9fb; border-radius: 8px; color: #365674; padding: 1rem; }

@media (max-width: 991.98px) {
  .flh-top-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flh-brand-source,
  .flh-brand-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .flh-brands-hero { padding: 1.4rem; }
  .flh-directory-heading { align-items: stretch; flex-direction: column; }
  .flh-brand-search { max-width: none; }
  .flh-top-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flh-brand-source,
  .flh-brand-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flh-brand-letter-group { grid-template-columns: 38px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .flh-brand-source,
  .flh-brand-directory-grid { grid-template-columns: 1fr; }
}
