/* paragraphs of people */
.paragraph--type--people-group {
  .field--name-f-pgrp-members-refs {
    margin: 1rem 0rem;
  }

  /* role title section */
  > .field--type-string,
  > .field--name-f-pt-pgrp-title {
    font-size: 2rem;
    color: #262626;
    line-height: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  .field--name-f-shrd-pt-body {
    margin-bottom: 2.5rem;
  }

  .field--name-f-shrd-pt-body p {
    margin-bottom: 1rem;
  }

  .field--name-f-shrd-pt-body p:last-child {
    margin-bottom: 0;
  }

  /* single item person — column-reverse: role is after card in DOM, must render on top */
  .paragraph--type--people-group-member {
    display: flex;
    flex-direction: column-reverse;
    height: 100%;
    position: relative;

    /* Role tab sits flush on the tile and is centered horizontally */
    .field--name-f-pmem-role {
      align-self: center;
      box-sizing: border-box;
      width: max-content;
      max-width: 90%;
      margin: 0;
      z-index: 2;
      font-size: 1.25rem;
      line-height: 1.75rem;
    }

    .field--name-f-pmem-person-ref {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      width: 100%;
      min-height: 0;

      > div {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
      }
    }

    .field--name-f-pmem-person-ref article.card-person {
      flex: 1;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;

      .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
      }
    }
  }
}

@media (min-width: 992px) {
  .paragraph--type--people-group {
    .field--name-f-pgrp-members-refs {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      align-items: stretch;

      > div {
        display: flex;
        flex-direction: column;
        min-height: 100%;
      }

      .paragraph--type--people-group-member {
        flex: 1;
      }
    }

    .paragraph--type--people-group-member {
      .field--name-f-pmem-role {
        font-size: 1.25rem;
        color: #1f66da;
        line-height: 1.75rem;
      }
    }
  }
}
@media (min-width: 1200px) {
  .paragraph--type--people-group {
    /* role title section */
    > .field--type-string,
    > .field--name-f-pt-pgrp-title {
      font-size: 3rem;
      line-height: 3.5rem;
      margin-top: 5rem;
      margin-bottom: 2rem;
    }

    .field--name-f-shrd-pt-body {
      margin-bottom: 3rem;
    }
  }
}

