/*
 * In short, layout "beside" (site/snippets/blocks/inshort.php; the nanny
 * agency page, 2026-11-18, aligned 2026-11-19): one section right under the
 * hero with the In short box and author line on the left and, on the right,
 * the proof strip's facts as a list and the client logo row.
 *
 * Wide screens: the two columns share a top line (the box's top border and
 * the first fact) and a bottom line (the author line and the logos): the
 * box grows to fill its column, the logos sit at the foot of theirs. The
 * logos are one row of four equal cells, each logo centered and sized by
 * its --logo-fit (blocks/logos.php) so every mark reads at the same visual
 * size; tablets and phones: two by two, smaller on phones.
 *
 * One line opens the section (site.css); the facts carry no lines of their
 * own here. Phones: stacked, the box first. Linked in the head
 * (peanut_page_css() in the snippet). Layer: blocks. Tokens only.
 */

@layer blocks {
  .inshort--beside {
    display: grid;
    gap: var(--space-5);
    max-width: none;
  }

  .inshort--beside .inshort__main {
    display: flex;
    flex-direction: column;
  }

  .inshort--beside .inshort__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  /* the facts: a plain list, equal steps, every icon on one vertical line */
  .inshort--beside .proofstrip {
    display: grid;
    grid-template-columns: none;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    border-block: 0;
  }

  .inshort--beside .proofstrip__item {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: var(--space-2);
    align-items: center;
    min-height: 1.75rem;
  }

  /* the logo row: its label on the left, then equal cells */
  .inshort--beside .logos__eyebrow {
    margin-block-end: var(--space-3);
    text-align: start;
  }

  .inshort--beside .logos__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .inshort--beside .logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
  }

  .inshort--beside .logos--row .logos__logo {
    width: calc(100% * var(--logo-fit, 1));
    max-width: none;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  @media (min-width: 30rem) {
    .inshort--beside .logos__item {
      height: 4.5rem;
    }
  }

  @media (min-width: 60rem) {
    .inshort--beside {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: var(--space-7);
      align-items: stretch;
    }

    /* the box fills its column, so the author line meets the foot of the logos */
    .inshort--beside .inshort__box {
      flex: 1;
    }

    /* the facts at the top, the logos at the foot */
    .inshort--beside .inshort__aside {
      justify-content: space-between;
    }

    .inshort--beside .logos__list {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .inshort--beside .logos__item {
      height: 4rem;
    }
  }
}
