.ts-brand-credit-stack {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0 0 6px;
}

.ts-brand-credit-stack > a:first-child {
  flex: 0 0 auto;
}

.ts-matrix-brand-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 4px 0 0 2px;
  color: #737d90;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.ts-matrix-brand-credit strong {
  color: #0d1938;
  font-size: 9px;
  font-weight: 800;
}

.ts-matrix-brand-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #ef3d75;
  box-shadow:
    0 0 0 2px
    rgba(239, 61, 117, 0.12);
}

.ts-matrix-brand-credit:hover,
.ts-matrix-brand-credit:focus-visible {
  color: #ef3d75;
}

.ts-matrix-brand-credit:hover strong,
.ts-matrix-brand-credit:focus-visible strong {
  color: #ef3d75;
  text-decoration: underline;
}

.ts-matrix-brand-credit:focus-visible {
  border-radius: 4px;
  outline: 2px solid #ef3d75;
  outline-offset: 3px;
}

/*
 * Tablet:
 * Keep the badge aligned with the logo,
 * but reduce its visual width.
 */
@media (max-width: 900px) {
  .ts-brand-credit-stack {
    padding-bottom: 5px;
  }

  .ts-matrix-brand-credit {
    gap: 3px;
    margin-top: 3px;
    font-size: 8px;
  }

  .ts-matrix-brand-credit strong {
    font-size: 8px;
  }
}

/*
 * Mobile:
 * Show the company name without forcing
 * the search or navigation to overflow.
 */
@media (max-width: 640px) {
  .ts-brand-credit-stack {
    padding-bottom: 4px;
  }

  .ts-matrix-brand-prefix {
    display: none;
  }

  .ts-matrix-brand-credit {
    margin-top: 2px;
    margin-left: 1px;
    font-size: 8px;
  }

  .ts-matrix-brand-credit strong {
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .ts-matrix-brand-credit {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
