.team-page .grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
}

.team-page .item[data-md] img {
  max-height: 70px;
  text-align: left;
  margin: 0;
  padding-left: 10px;
}

/* Utility overrides for drop-in 2 or 3 column grids anywhere */
.grid.grid-two {
  display: grid;
  grid-template-areas: none;
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 20px;
}

.grid.grid-three {
  display: grid;
  grid-template-areas: none;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 20px;
}

.tagline.grid {
  width: min(1200px, 92vw);
  margin: 0 auto 30px;
  grid-template-areas: none;
  grid-auto-rows: auto;
  grid-auto-columns: unset;
  grid-auto-flow: row;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch; /* ensure columns span available width */
  gap: 30px;
}

.tagline-content {
  width: 100%;
  font-size: 1.2rem;
  line-height: 1.5;
}

.tagline-image img {
  width: 200px;
  height: auto;
  display: block;
  max-width: 280px;
  margin: 0 auto;
}

.news-grid {
  width: min(1200px, 92vw);
  margin: 0 auto;
  gap: 30px;
  padding-top: 40px;
  align-items: center;
  justify-items: stretch;
}

.news-grid .item {
  display: block;
  width: 100%;
  height: auto;
  align-self: stretch;
}

@media (max-width: 768px) {
  .tagline.grid.grid-two {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tagline-content {
    text-align: left;
    margin: 0 auto;
  }

  .tagline-image img {
    max-width: 200px;
  }
}

/* Legal page dark mode overrides */
body.dark-mode .legal {
  color: #f3f4f6;
}

body.dark-mode .legal a {
  color: #9fd4ff;
}

body.dark-mode .legal a:hover {
  color: #d0ebff;
}
