/* Partner: page-specific styles. */

/* The lime and rose corner glows that used to sit behind this hero are gone,
   with every other gradient on the site. See the .page-hero comment in
   styles.css. */


/* Who we work alongside. Four relationships set as type with a hairline
   between them, not four white boxes in an even grid. The name sits in its own
   column so the eye can run down the list, and the sentence takes the rest of
   the container instead of leaving the right half empty. */
.allies {
  list-style: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

.allies__item {
  margin: 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.allies__item:last-child { border-bottom: 1px solid var(--border); }

.allies__who h3 { margin: 0; }
.allies__what p { color: var(--ink-soft); }
.allies__what p:last-child { margin-bottom: 0; }
.allies__what .link-arrow { margin-top: calc(var(--space-2) * -1); }

@media (min-width: 860px) {
  .allies__item {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }
}

/* Two photographs side by side, each in the frame with its offset block thrown
   outward so neither block lands under the other photograph. */
.partner-gallery {
  display: grid;
  gap: var(--space-6);
}

.partner-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Stacked, the frame fills the container and the offset block hangs 26px past
   its right edge, which is wider than the gutter and pushes the whole page
   sideways. Pulling the frame in by the offset keeps the block on screen. Same
   fix as .facilitate__figure and .meeting__graphic on the home page. */
.partner-gallery .frame { margin-right: 26px; }

/* The Kairos photograph is 480x640 portrait in a 4/3 slot. Centred, the crop
   takes the top off both heads. This holds it high enough to keep the faces. */
.partner-gallery__kairos img { object-position: 50% 22%; }

/* Three across, not two. A third photograph on a two column grid leaves an
   orphan on its own row. At three the widest frame measures about 350px in the
   1180px container, still well under the 640px these files actually carry. */
@media (min-width: 900px) {
  .partner-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Side by side each column is narrower than the container, so the block has
     the gutter and the grid gap to hang into and the pull in is not needed. */
  .partner-gallery .frame { margin-right: 0; }

  /* The default frame throws its block down and to the right. On the left hand
     photograph that is the gap, so this one throws left instead. The middle and
     right frames keep the default, which hangs into the gap and the gutter. */
  .partner-gallery .figure:first-child .frame::before { inset: 26px 26px -26px -26px; }
}

/* The offset block runs 26px below the frame, so the default 10px caption gap
   lands the caption on top of it and it reads as a caption box. Clear the
   block first. A caption is small text underneath, never a panel. */
.partner-gallery figcaption { padding-top: 36px; }

/* The referral band. Label and heading on the left, the substance on the
   right, so the band uses the whole container. */
.referral { display: grid; gap: var(--space-4); }
.referral__head h2 { margin-bottom: 0; }
.referral__body p:last-of-type { margin-bottom: 0; }

@media (min-width: 900px) {
  .referral {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* The close. Two people, named, with the number that reaches each of them.
   No form: this page asks somebody to trust two human beings, and a form is
   the wrong shape for that. */
.reach {
  list-style: none;
  max-width: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  text-align: center;
}

.reach__person { margin: 0; }
.reach__person h3 { margin-bottom: var(--space-2); }

.reach__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-soft);
}

.reach .phone__number { font-size: 26px; }

@media (min-width: 620px) {
  .reach {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}
