/* Harness page: the Aidestra Studio download card.
 *
 * The page tells a customer how to configure clients but never how to obtain the
 * desktop app; the only download entries live on the marketing pages and in the
 * sidebar footer, neither of which a signed-in customer on this page passes.
 *
 * Geometry is taken from .integration-setup directly above it — the same band
 * layout, insets, gaps and type scale — so the two read as one pair of "get the
 * client onto this machine" steps rather than as two unrelated components. The
 * icon tile is restated from the .integration-card__icon group in styles.css,
 * which cannot be extended from a separate sheet.
 *
 * Ships as its own stylesheet for the same reason its neighbour does:
 * redesign-20260907/styles.css is served with a 30-day immutable cache and is in
 * the PROTECTED set of every downstream publisher. Loaded after it, so equal
 * specificity wins without !important.
 */

.integration-studio {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.6fr);
  align-items: start;
  gap: 22px;
  margin-bottom: 18px;
  padding: 19px;
}

.integration-studio__copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

/* Duplicated from the .integration-model-picker__icon / .integration-card__icon
   group so all three tiles on the page stay identical. The teal tint marks this
   as the one card that hands over a binary rather than a config snippet. */
.integration-studio__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--teal-700);
  background: var(--teal-100);
}

.integration-studio__icon .icon {
  width: 19px;
  height: 19px;
}

.integration-studio__copy h2 {
  margin: 0 0 4px;
  font-size: 14px;
}

.integration-studio__copy p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.55;
}

/* The right-hand column holds what .integration-code holds on the sibling
   cards, so it takes the same border, radius and inset — but stays on the light
   surface, because a download button on the dark code slab would read as part
   of a snippet. */
.integration-studio__panel {
  display: grid;
  min-width: 0;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
}

.integration-studio__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Same monospace treatment as .integration-card__title > span, which is how a
   file name or version reads everywhere else on this page. */
.integration-studio__version {
  overflow: hidden;
  color: var(--ink-400);
  font: 8px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-studio__platform {
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.4;
}

.integration-studio__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* An <a> does not inherit .btn's flex centring from the button reset, and the
   two links must sit level with each other and with .btn--sm elsewhere. */
.integration-studio__actions .btn {
  min-width: 0;
  text-decoration: none;
}

.integration-studio__size {
  color: var(--ink-400);
  font: 8px/1.4 "SFMono-Regular", Consolas, monospace;
}

/* Same inset and top gap as .integration-setup__notes and
   .integration-card__foot, so all three sit on one line down the page. */
.integration-studio__notes {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  margin: 11px 1px 0;
  padding: 0;
  list-style: none;
}

.integration-studio__notes li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-400);
  font-size: 9px;
  line-height: 1.55;
}

.integration-studio__notes .icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Breakpoints mirror .integration-setup exactly; without them this card would
   keep two columns while the one above it collapsed. */
@media (max-width: 1120px) {
  .integration-studio {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  }
}

@media (max-width: 760px) {
  .integration-studio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .integration-studio {
    gap: 16px;
    padding: 16px;
  }

  .integration-studio__copy {
    align-items: flex-start;
  }

  .integration-studio__panel {
    padding: 13px;
  }

  /* Two full-width buttons instead of a cramped row: at this width the labels
     wrap to two lines each and the pair no longer reads as one control. The size
     stays on the download button's own row rather than becoming a third
     full-width band between the two buttons. */
  .integration-studio__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 7px;
  }

  .integration-studio__actions .btn:last-child {
    grid-column: 1 / -1;
  }
}
