/* The org row under the campaign's title, and the org page's back link
   (./orgLink.js). The ring is appInfo's .rainbow. */

.org-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 calc(var(--card-spacer-x) / 2);
  padding: 0.5rem calc(var(--card-spacer-x) / 2);
  border-radius: var(--bs-border-radius-lg);
  color: inherit;
  text-decoration: none;
}

.org-link:hover,
.org-link:focus-visible {
  background: var(--brand-primary-soft);
  color: inherit;
}

.org-link__avatar {
  flex: none;
  padding: 3px;
  border-radius: 50%;
}

.org-link__photo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  --flux-skeleton-radius: 50%;
}

.org-link__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.org-link__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.org-link__name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.org-link__name strong,
.org-link__handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-link__line {
  display: block;
  width: 8rem;
  height: 1rem;
  --flux-skeleton-radius: var(--bs-border-radius-sm);
}

.org-link__chev {
  flex: none;
  color: var(--text-secondary);
  padding-right: 0.25rem;
}

.org-link:hover .org-link__chev {
  color: var(--brand-primary);
}

/* "Raising for" another app: set off from the org row above it - the giver
   should see who their gift pays before they give */
.payee-link-block {
  padding: 0.25rem calc(var(--card-spacer-x) / 2) 0;
}

.payee-link {
  margin: 0;
  background: var(--brand-primary-soft);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
}

.payee-link:hover,
.payee-link:focus-visible {
  border-color: var(--brand-primary);
}

.payee-link__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.payee-link .org-link__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  padding: var(--card-spacer-y) var(--card-spacer-x) 0;
}

.back-link__a {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.back-link__a:hover {
  text-decoration: underline;
}
