/* "Book with your favorite AI": one row of links that open a new chat with a ready prompt.
   The same row as the franchise page's, in the colour of the text around it. */
.ai-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  margin: 1rem 0 0;
  font-family: var(--body-font, "DM Sans", Arial, sans-serif);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}

.ai-row .ai-label {
  margin-right: .15rem;
  opacity: .72;
}

.ai-row .ai-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(149, 190, 241, .55);
  text-underline-offset: 4px;
  transition: text-decoration-color .22s ease, opacity .22s ease;
}

.ai-row .ai-link svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.ai-row .ai-link:hover,
.ai-row .ai-link:focus-visible {
  text-decoration-color: currentColor;
}

.ai-row .ai-dot {
  opacity: .4;
}

.ai-row .ai-hint {
  flex-basis: 100%;
  font-size: .85rem;
  opacity: .72;
}

.ai-row .ai-hint[hidden] {
  display: none;
}

/* In a job's dialog the row sits beside the apply button. */
.dialog-apply:has(.ai-row) {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.dialog-apply .ai-row {
  order: -1;
  margin: 0;
  color: var(--foundation-8, #000f29);
}

/* On phones the four AIs are two rows of two under the label. */
@media (max-width: 480px) {
  .ai-row {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: .45rem 1.4rem;
  }

  .ai-row .ai-label,
  .ai-row .ai-hint {
    grid-column: 1 / -1;
  }

  .ai-row .ai-dot {
    display: none;
  }
}

/* Team Building's hero column is too narrow for the label and four AIs on one line. */
.team-hero-heading .ai-row .ai-label {
  flex-basis: 100%;
}
