/* Open source projects on the home page: a short white band with two links, between security and the FAQ. */

.v2 #main > #open-source {
  background: var(--white);
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}
.os-top { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.os-top h2 { max-width: 16em; margin: 0; }

.os-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-grid a {
  position: relative;
  display: block;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(14, 37, 27, .14);
  color: var(--ink);
  text-decoration: none;
}
.os-grid a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms cubic-bezier(.4, 0, .2, 1);
}
.os-grid a:hover::before,
.os-grid a:focus-visible::before { transform: scaleX(1); }
.os-grid a:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 4px; }
.os-grid b {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.os-grid span {
  display: block;
  max-width: 42ch;
  margin-top: .45rem;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .os-grid a::before { transition: none; }
}
@media (max-width: 860px) {
  .os-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
