/* About Us section: text, three action buttons, two headshot cards.
   Mobile (under 576px): stacked buttons, icon beside label.
   Tablet (576px+): single column, 2 buttons per row.  Large tablet (992px+): 3 buttons per row.
   Desktop (1200px+): text on the left, headshots on the right.
   Colours come from the dbim-theme tokens. */

.about {
  --about-text-align: left;      /* DBIM checklist: body text is left aligned. Use "justify" to match the screenshot. */
  --about-max: none;             /* maximum width of the content */
  --about-title-size: 1.7rem;
  --about-text-size: 1.5rem;
  --about-btn-size: 1.65rem;
  --about-name-size: 1.5rem;
  --about-role-size: 0.875rem;

  padding-block: 2.5rem;
  background: var(--white);
  color: var(--black);
  font-family: "Noto Sans", sans-serif;
  padding-top: 4.5rem;
  padding-bottom: 6rem;
  margin-left: 1rem;
  margin-right: 1rem;

}

.about-inner {
  width: calc(100% - 3rem);
  max-width: var(--about-max);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}

/* Icons: one single-colour SVG, recoloured with the theme's key colour */
.about .ico {
  flex: none;
  display: inline-block;
  width: 3rem;                 /* 24px */
  height: 3rem;
  background-color: var(--key);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.about .ico-org   { width: 3.25rem; height: 3.25rem; margin-right: 1rem; /* 48px */
  -webkit-mask-image: url("../../assets/images/icons/department.svg");   mask-image: url("../../assets/images/icons/department.svg"); }
.about .ico-team  { -webkit-mask-image: url("../../assets/images/icons/team.svg");  mask-image: url("../../assets/images/icons/team.svg"); }
.about .ico-grid  { -webkit-mask-image: url("../../assets/images/icons/org.svg");  mask-image: url("../../assets/images/icons/org.svg"); }
.about .ico-chart { -webkit-mask-image: url("../../assets/images/icons/performance.svg"); mask-image: url("../../assets/images/icons/performance.svg"); }
.about .ico-department { -webkit-mask-image: url("../../assets/images/icons/depsrtment.svg"); mask-image: url("../../assets/images/icons/department.svg"); }

/* Heading and text */
.about-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: var(--about-title-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--key);
}
.about-text {
  margin: 0 0 2.5rem;
  font-size: var(--about-text-size);
  line-height: 1.65;
  text-align: var(--about-text-align);
}

/* Action buttons */
.about-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* grid-template-columns: minmax(0, 10rem); */
  gap: 1rem;
  justify-content: center;
  
}
.about-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--key);
  border-radius: 0.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: var(--about-btn-size);
  font-weight: 550;
  text-align: center;
  text-decoration: none;
}
.about-btn:hover { background: var(--azureish-white-bg); }
.about-btn:focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }

/* Headshot cards */
.about-people {
  list-style: none;
  margin: 0 auto;
  /* was "10 auto", which is invalid without a unit */
  padding: 0;
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-people li {
  min-width: 0;
}

/* stops long names from stretching the column */

.about-people figure {
  margin: 0;
  text-align: center;
}

.about-people img {
  display: block;
  margin-inline: auto;
  /* this centres the picture */
  width: 70%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  background: var(--white);
  border: 1px solid var(--bright-gray);
  border-bottom: 6px solid var(--key);
}
.about-people figcaption {
  padding-top: 0.75rem;
  text-align: center;
}
.about-people .person-name {
  display: block;
  font-size: var(--about-name-size);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.about-people .person-role {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--about-role-size);
  text-transform: uppercase;     /* short label only */
}
@media (min-width: 430px) {
  .about {
    --about-max: 420px;
      --about-title-size: 1.7rem;
      --about-text-size: 1.35rem;
      --about-btn-size: 1.35rem;
    --about-name-size: 1.25rem;
    --about-role-size: 1rem;
  }

  .about-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }

  .about-people img {
    width: 80%;
  }
}

@media (min-width: 576px) {
  .about {
    --about-max: 540px;
    --about-title-size: 1.875rem;
    --about-text-size: 1.5rem;
    --about-btn-size: 1.5rem;
    --about-name-size: 1.5rem;
    --about-role-size: 1.15rem;
  }

  .about-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-btn {
    flex-direction: column;
    gap: 0.5rem;
    min-height: 5.5rem;
  }

  .about-people img {
    width: 70%;
  }
}

@media (min-width: 992px) {
  .about {
    --about-max: 720px;
    --about-title-size: 2rem;
    --about-text-size: 1.65rem;
    --about-btn-size: 1.65rem;
    --about-name-size: 1.65rem;
    --about-role-size: 1.2rem;
  }

  .about-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-people img {
    width: 90%;
  }
}

@media (min-width: 1200px) {
  .about {
    --about-max: 1590px;
    --about-text-size: 1.75rem;
    --about-title-size: 2.25rem;
    --about-btn-size: 1.75rem;
    --about-name-size: 1.75rem;
    --about-role-size: 1.25rem;
    padding-top: 4.5rem;
    padding-bottom: 6rem;
  }

  .about-inner {
    width: 88%;
    grid-template-columns: minmax(0, 1fr) 435px;
    gap: 4.5rem;
  }

    .about-people {
      align-self: end;
      margin: 0 auto;
      /* was margin: 0 */
      max-width: 435px;
      gap: 2rem;
    }

  .about-people img {
    width: 100%;
  }
}