/* Variation B: Hutton lockup on the left, credit line on the right,
   split by a vertical hairline. Stays side by side on small screens. */

.facility {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--hair, #e6e6e6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.15fr);
  align-items: center;
  column-gap: 36px;
  color: #143d67;
}

.facility-partner {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #143d67;
  text-decoration: none;
}

.facility-partner:hover .facility-name {
  color: #1e4f82;
}

.facility-mark {
  width: 64px;
  height: 64px;
  flex: none;
}

.facility-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
}

.facility-rule {
  width: 1px;
  align-self: stretch;
  min-height: 56px;
  background: #c5d0dc;
}

.facility-copy {
  margin: 0;
  justify-self: start;
  max-width: 16em;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 640;
  letter-spacing: -0.028em;
  line-height: 1.22;
  color: #143d67;
}

html.js .facility {
  opacity: 0;
  transform: translateY(10px);
}

html.js .facility.is-in {
  animation: facility-rise 0.5s cubic-bezier(0.22, 0.7, 0.26, 1) forwards;
}

@keyframes facility-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .facility {
    margin-top: 36px;
    padding-top: 28px;
    column-gap: 14px;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  }
  .facility-partner {
    gap: 8px;
  }
  .facility-mark {
    width: 36px;
    height: 36px;
  }
  .facility-name {
    font-size: 13px;
  }
  .facility-copy {
    max-width: none;
    font-size: 14px;
    letter-spacing: -0.02em;
  }
  .facility-rule {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .facility,
  html.js .facility.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
