/* Stats strip: no icons. Override the original icon/text grid and use
       a simple centered vertical text block in each card. */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  max-width: none;
  box-sizing: border-box;
}

.stats>div {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

.stats strong,
.stats p {
  margin: 0 !important;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.stats strong {
  line-height: 1.02;
}

.stats p {
  line-height: 1.08;
}

.stats .staff-card strong,
.stats>div:nth-child(5) strong {
  font-size: 28px;
}

@media (max-width: 1200px) {
  .stats>div {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stats .staff-card strong,
  .stats>div:nth-child(5) strong {
    font-size: 22px;
  }

  .stats p {
    font-size: 14px;
  }
}

#team .person {
  position: relative;
}

#team .person-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  cursor: pointer;
}

#team .person-card-link:focus-visible {
  outline: 3px solid #0067b1;
  outline-offset: 2px;
}

/* Keep anchored homepage sections visible below the sticky site header. */
#services,
#instruments,
#publications,
#analysis,
#team,
#contact {
  scroll-margin-top: 190px;
}


/* Higher-quality rendering for homepage photographic/graphic images.
       Workflow icons are intentionally excluded. */
.service-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00192f;
}

.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.instrument-photo img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

/* Homepage-only responsive width controls */
.home-page main {
  max-width: 100%;
  overflow-x: hidden;
}

.home-page .section,
.home-page .split-section {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.home-page .hero-service-strip {
  box-sizing: border-box;
}

.home-page .hero-service-strip>div {
  min-width: 0;
}

@media (max-width: 620px) {

  .home-page .section,
  .home-page .split-section {
    width: calc(100% - 30px);
  }
}