/* Integrations hub. Builds on the frame grid, panel head, form card and
   surfaces in the global sheets; only the directory, the logo tiles and the
   audit section's two columns are here. */

.ig .frame { margin-top: var(--l-section-gap, 48px); }
.ig .frame-grid > li { display: flex; flex-direction: column; }
.ig-ivory { background: var(--kit-ivory-tint); }

/* Logo tiles: a white rounded square with a hairline, the logo inside. */
.ig-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px var(--kit-ivory-medium);
}
.ig-tile img { width: 24px; height: 24px; object-fit: contain; }
.ig-tile--lg { width: 48px; height: 48px; }
.ig-tile--lg img { width: 28px; height: 28px; }

.ig-partner .ig-tile + h3 { margin-top: 20px; }
.ig-partner .ig-link { margin-top: auto; padding-top: 20px; }

.ig-link {
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--kit-teal-medium);
  text-decoration: none;
}
.ig-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ig-link--dark { color: var(--kit-citron-highlight); }
.ig-more { margin: 24px 0 0; }

/* Category links: a wrapping row of pills that jump to each group. */
.ig-cats { margin-top: var(--l-section-gap, 48px); }
.ig-cats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ig-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px var(--kit-ivory-medium);
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--kit-text-strong);
  text-decoration: none;
}
.ig-cats a:hover { box-shadow: 0 0 0 1px var(--kit-teal-medium); }
.ig-count {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  color: var(--kit-text-subtle);
}

/* A group: mono label on a teal hairline, then its cards. */
.ig-group { margin-top: 48px; scroll-margin-top: 96px; }
@media (min-width: 1024px) { .ig-group { margin-top: 64px; } }
.ig-group-name {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kit-teal-medium);
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--kit-teal-medium);
}
.ig-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* A card: tile, name (the whole card is its link), one line. */
.ig-card {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px var(--kit-ivory-medium);
}
.ig-card:has(a):hover { box-shadow: 0 0 0 1px var(--kit-teal-medium); }
.ig-card h4 { margin: 16px 0 0; color: var(--kit-text-strong); }
.ig-card h4 a { color: inherit; text-decoration: none; }
.ig-card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ig-card h4 a:focus-visible { outline: none; }
.ig-card:has(a:focus-visible) { box-shadow: 0 0 0 2px var(--kit-teal-medium); }
.ig-card p {
  margin: 6px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* Workflow audit: copy beside the form from 1024px (forms are the one
   side-by-side exception). The form card keeps its light-ground text. */
.ig-audit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 1024px) {
  .ig-audit-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    column-gap: 64px;
    align-items: start;
  }
}
.ig-audit .section-heading { margin-top: 16px; }
.ig-audit .ig-audit-copy .section-body { margin-top: 20px; color: var(--kit-text-on-dark-medium); }
.ig-audit .hero-checks { margin-top: 28px; }
.ig-audit .form-card .form-card-title { color: var(--kit-text-strong); }
.ig-audit .form-card .form-card-note { color: var(--kit-text-subtle); }
.ig-form-wrap { --form-min-height: 380px; }
