/* The web role card of the Open Roles board (templates/marketplace/public/_syndicated_card.html) and the category
   tags it shares with the board legend. Linked by the board and by the staff review queue, which previews a role's
   card before it is published; tokens only. --public-muted comes from the public layout; the staff page sets it. */

.syn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-12);
  height: 100%;
  padding: var(--ds-space-24);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-24);
  background: var(--ds-surface);
  color: var(--ds-text);
  transition:
    transform var(--ds-motion-hover) ease,
    box-shadow var(--ds-motion-hover) ease;
}

.syn-card:hover {
  transform: translateY(calc(-1 * var(--ds-hover-lift)));
  box-shadow: var(--ds-shadow-card);
}

.syn-card:has(.syn-card__link:focus-visible) {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 2px;
}

.syn-card__title {
  color: var(--ds-text);
  font-size: var(--ds-type-app-h3-size);
  line-height: var(--ds-type-app-h3-leading);
  font-weight: 600;
}

.syn-card__link {
  color: inherit;
  text-decoration: none;
}

.syn-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.syn-card__link:focus-visible {
  outline: none;
}

.syn-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-4) var(--ds-space-16);
  color: var(--public-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
}

.syn-card__footer {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-4);
  margin-top: auto;
  padding-top: var(--ds-space-4);
  color: var(--ds-text);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
  font-weight: 600;
}

.syn-card__footer .ds-icon {
  width: 16px;
  height: 16px;
}

.syn-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-8);
}

.board-category--outcome-based {
  background: var(--ds-status-active-bg);
  border-color: var(--ds-status-active-bg);
  color: var(--ds-status-active-text);
}

.board-category--senior-contractor {
  background: transparent;
  border-color: var(--ds-border);
  color: var(--ds-text);
}

.board-category--co-founder {
  background: var(--ds-status-neutral-bg);
  border-color: var(--ds-status-neutral-bg);
  color: var(--ds-status-neutral-text);
}

.syn-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-12);
  width: 100%;
}

.syn-card__company {
  display: flex;
  align-items: center;
  gap: var(--ds-space-12);
  min-width: 0;
}

.syn-card__logo,
.syn-card__initial {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-12);
}

.syn-card__logo {
  object-fit: contain;
  background: var(--ds-white);
}

.syn-card__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-inverse);
  color: var(--ds-on-inverse);
  font-weight: 600;
}

.syn-card__company-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.syn-card__company-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.syn-card__company-sub,
.syn-card__source {
  color: var(--public-muted);
  font-size: var(--ds-type-caption-size);
  line-height: var(--ds-type-caption-leading);
}

.syn-card__source {
  flex: none;
}

.syn-signal--engagement {
  background: var(--ds-status-info-bg);
  border-color: var(--ds-status-info-bg);
  color: var(--ds-status-info-text);
}

.syn-signal--agency {
  background: var(--ds-status-warning-bg);
  border-color: var(--ds-status-warning-bg);
  color: var(--ds-status-warning-text);
}

.syn-card__editorial {
  color: var(--public-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
}

.syn-card__pay {
  color: var(--public-muted);
  font-size: var(--ds-type-small-size);
  line-height: var(--ds-type-small-leading);
  font-weight: 600;
}

.syn-card__meta span + span::before {
  content: "·";
  margin-right: var(--ds-space-8);
}

.syn-card__meta {
  gap: var(--ds-space-4) var(--ds-space-8);
}

@media (prefers-reduced-motion: reduce) {
  .syn-card,
  .syn-card:hover {
    transform: none;
    transition: none;
  }
}
