/* Shared company cards: categories, AJAX additions and the home page. */
.list.company-card, .list.company-card:hover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 214px;
  align-items: stretch;
  gap: 30px;
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #37373c;
}
.list.company-card:focus-within { outline: 2px solid #523cdd; outline-offset: 2px; }
@media (hover: hover) {
  .list.company-card:hover {
    z-index: 2;
    box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, .18), 0 10px 24px -10px rgba(0, 0, 0, .2);
  }
}
/* Keep the compact five-pixel rhythm without changing other section spacing. */
.content10 > .company-card + .company-card { margin-top: -25px; }
.content10.popular > .company-card + .company-card { margin-top: -15px; }
.company-card__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.company-card__heading { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.company-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #edeef2;
  border-radius: 8px;
  background: #fff;
}
.company-card__logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.company-card__name {
  min-width: 0;
  color: #37373c;
  font-size: 26px;
  font-weight: 500;
  line-height: 30px;
  overflow-wrap: anywhere;
  text-decoration: none;
}
/* The native name link covers the card, including the visual button. */
.company-card__name::after { position: absolute; z-index: 1; inset: 0; border-radius: 8px; content: ""; }
.company-card__categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
  color: #939393;
  font-size: 13px;
  line-height: 23px;
  overflow-wrap: anywhere;
}
.company-card__categories > img, .company-card__dot { display: block; flex: none; }
.company-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  width: 100%;
  min-height: 20px;
  min-width: 0;
  font-size: 15px;
  line-height: 18px;
}
.company-card__stars { position: relative; display: inline-block; flex: 0 0 83px; width: 83px; height: 15px; }
.company-card__star-track { display: flex; gap: 2px; width: 83px; height: 15px; }
.company-card__star-track svg { display: block; flex: none; width: 15px; height: 15px; fill: #cdcdcd; }
.company-card__star-fill { position: absolute; inset: 0 auto 0 0; width: var(--star-fill); overflow: hidden; }
.company-card__star-fill svg { fill: #ffb321; }
.company-card.list1 .company-card__star-fill svg { fill: #cd2727; }
.company-card__rating { font-weight: 700; }
.company-card__badge {
  flex: none;
  padding: 3px 6px;
  border-radius: 4px;
  background: #2fc30a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}
.company-card.list1 .company-card__badge { background: #cd2727; }
.company-card__count { white-space: nowrap; }
.company-card__domain { min-width: 0; color: #4732cb; overflow-wrap: anywhere; }
.company-card__preview { width: 100%; min-width: 0; min-height: 74px; padding-top: 10px; }
.company-card .company-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: 58.5px;
  margin: 0;
  color: #939393;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  overflow-wrap: anywhere;
}
.company-card .company-card__excerpt .company-card__quote {
  display: inline-block;
  width: 19px !important;
  height: 14.5114px !important;
  margin: 0 6px 0 0;
  vertical-align: -2px;
}
.company-card__summary {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
  background: #f4f5f9;
}
.company-card .company-card__facts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.company-card__facts li { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #37373b; font-size: 13px; line-height: 15px; }
.company-card__facts strong { font-weight: 700; }
.company-card__status { display: flex; flex: 0 0 9px; align-items: center; justify-content: center; width: 9px; height: 15px; }
.company-card__status img { display: block; flex: none; }
.company-card__status--muted { filter: grayscale(1); opacity: .55; }
.company-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  margin-top: auto;
  padding: 4px 18px;
  border-radius: 8px;
  background: #523cdd;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 23px;
  text-align: center;
}
.company-card:hover .company-card__button { background: #4732cb; }
@media screen and (max-width: 1200px) {
  .list.company-card, .list.company-card:hover { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}
@media screen and (max-width: 1024px) {
  .list.company-card, .list.company-card:hover { padding: 15px; }
  .content10 > .company-card + .company-card { margin-top: -15px; }
  .company-card__meta { gap: 7px; font-size: 13px; line-height: 15px; }
  .company-card__stars { flex-basis: 68px; width: 68px; height: 12px; }
  .company-card__star-track { gap: 2px; width: 68px; height: 12px; }
  .company-card__star-track svg { width: 12px; height: 12px; }
  .company-card__badge { font-size: 10px; line-height: 12px; }
  .company-card__preview { min-height: 70px; padding-top: 5px; }
  .company-card__summary { padding: 15px; }
}
