/* Partner integration pages (src/components/integrations/PartnerPage.astro).
   Builds on the frame grid, panel head and story cards in components.css;
   only the product tiles, flow owners, quotes and resource links are here. */

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

/* Products: a row of white cards, each with the partner's tile. */
.pt-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) { .pt-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .pt-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pt-product {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px var(--kit-ivory-medium);
}
.pt-product:has(a):hover { box-shadow: 0 0 0 1px var(--kit-teal-medium); }
.pt-product img { display: block; width: 40px; height: 40px; }
.pt-product h3 { margin: 16px 0 0; color: var(--kit-text-strong); }
.pt-product h3 a { color: inherit; text-decoration: none; }
.pt-product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pt-product h3 a:focus-visible { outline: none; }
.pt-product:has(a:focus-visible) { box-shadow: 0 0 0 2px var(--kit-teal-medium); }
.pt-product p,
.pt-step > p:not(.frame-num, .pt-by) {
  margin: 6px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}

/* Benefits: a two-tone icon over each heading. */
.pt-benefit .icon { width: 48px; height: 48px; }
.pt-benefit .icon + h3 { margin-top: 20px; }
@media (min-width: 600px) and (max-width: 1023.98px) {
  .pt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Flow: numbered steps; six steps go 2 / 3 / 6 across. */
.pt-flow { counter-reset: none; }
@media (min-width: 600px) { .pt-flow--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pt-flow--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .pt-flow--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pt-step h3 { margin-top: 16px; }
.pt-by {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  letter-spacing: var(--type-label-tracking);
  color: var(--kit-teal-medium);
}
.pt-by img { width: 24px; height: 24px; }
.pt-by span { margin-left: 4px; }

/* Quotes. */
.pt-quote figure { display: flex; flex-direction: column; height: 100%; margin: 0; }
.pt-quote blockquote { margin: 0; }
.pt-quote blockquote p {
  margin: 0;
  font-size: var(--type-body);
  line-height: var(--type-body-lh);
  color: var(--kit-text-strong);
}
.pt-quote figcaption {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 24px;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--kit-text-medium);
}
.pt-quote figcaption strong { font-weight: 500; color: var(--kit-text-strong); }

/* Resources: kind label over a linked title; the whole cell is the link. */
.pt-res { position: relative; }
.pt-res h3 {
  margin-top: 12px;
  font-size: var(--type-h5);
  line-height: var(--type-h5-lh);
  color: var(--kit-text-strong);
}
.pt-res h3 a { color: inherit; text-decoration: none; }
.pt-res h3 a::after { content: ""; position: absolute; inset: 0; }
.pt-res:hover h3 a { text-decoration: underline; text-underline-offset: 3px; }
