/* Integrations page (session C). Layout only: colour, type, cards, logos and photos come from
   ../../design-system/ and agents.css. Every class here starts with in- so nothing reaches another page. */

/* A tile for things that are not an agent, visible on a white page (the system's plain tile is white). */
.in-tile--neutral {
  --tile-bg: var(--color-fill);
  --tile-fg: var(--color-text);
}

/* ---------- Page head: jump links to the five groups ---------- */
.in-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.in-jump a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--space-4);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--card-float) 78%, transparent);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.in-jump a:hover {
  background: var(--card-float);
}

/* ---------- One section per job: heading on the left, the apps in a list card on the right ---------- */
.in-group {
  padding-block: calc(var(--space-section) * 0.5);
}
.am-pagehead + .in-group {
  padding-top: var(--space-section);
}
.in-group__grid {
  row-gap: var(--space-8);
  align-items: start;
}
.in-group__head {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
/* .am-card on a ul: the base reset ul[role="list"] { padding: 0 } outranks .am-card, so the padding is set again here. */
.in-list.am-card {
  gap: 0;
  padding: var(--space-2) var(--card-pad);
}
.in-item {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.in-item:first-child {
  border-top: 0;
}
.in-item__who {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}
/* The mark: a real logo file, or the name in plain text when there is no official file. Never a drawn logo. */
.in-item__mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-height: 1.75rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.in-item__mark .am-brandmark {
  height: 1.375rem;
}
.in-item__beta {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}
.in-item__kind {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.in-item__does {
  gap: var(--space-2);
}
@media (min-width: 40rem) {
  .in-item {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--space-8);
  }
}
@media (min-width: 60rem) {
  .in-group__head {
    grid-column: 1 / span 5;
    position: sticky;
    top: 6rem;
  }
  .in-list {
    grid-column: 7 / -1;
  }
}

/* ---------- How connecting works: photo beside three points ---------- */
.in-connect__grid {
  row-gap: var(--space-10);
  align-items: center;
}
.in-connect__copy {
  display: grid;
  gap: var(--space-8);
}
.in-points {
  display: grid;
  gap: var(--space-6);
}
.in-points > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.in-points h3 {
  margin-bottom: var(--space-2);
}
.in-points p {
  max-width: 46ch;
  color: var(--color-text-muted);
  text-wrap: pretty;
}
.in-tm {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
@media (min-width: 60rem) {
  .in-connect__photo {
    grid-column: 1 / span 5;
  }
  .in-connect__copy {
    grid-column: 7 / -1;
  }
}
