/* Keep office availability alongside the two office locations. */
.site-footer .footer-nav-block .footer-heading,
.site-footer .footer-hours-card .footer-heading {
  color: var(--color-white);
}

.site-footer .footer-nav-block .footer-links a,
.site-footer .footer-hours-copy {
  color: var(--color-text-inverse-muted);
}

.footer-office-card.footer-hours-card {
  align-content: start;
  gap: 0.95rem;
  padding: 0 1rem;
  border: 0;
  border-left: 1px solid var(--color-border-inverse);
  background: transparent;
}

.footer-hours-copy {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
}

.footer-hours-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.18rem;
}

.footer-hours-copy dt,
.footer-hours-copy dd {
  margin: 0;
  white-space: nowrap;
}

/* Keep the stacked footer aligned without a redundant column divider. */
body[data-viewport="mobile"] .footer-office-card.footer-hours-card,
html[data-ipad-device="true"] .footer-office-card.footer-hours-card {
  border-left: 0;
  padding-inline: 0;
}

/* Keep times beside their days in the phone and stacked iPad footer. */
body[data-viewport="mobile"] .footer-hours-copy > div,
html[data-ipad-device="true"] .footer-hours-copy > div {
  display: grid;
  grid-template-columns: 7rem max-content;
  justify-content: start;
  column-gap: 1rem;
}

@media (min-width: 720px) {
  .footer-office-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  /* Move these columns visually without changing the office address tracks. */
  .footer-nav-block,
  .footer-hours-card {
    transform: translateX(clamp(-3rem, -2.5vw, -1rem));
  }

  .footer-office-card.footer-hours-card {
    border-left: 0;
  }

  .footer-main {
    grid-template-columns: minmax(0, 0.9fr) minmax(12rem, 0.65fr) minmax(0, 1.85fr);
  }

  .footer-brand-block {
    padding-right: 0;
  }

  .footer-brand-mark {
    gap: 0.75rem;
  }

  .footer-brand-name {
    font-size: clamp(1.5rem, 1.8vw, 1.85rem);
  }

  .footer-nav-block {
    padding-inline: 1rem;
  }

  .footer-nav-block::before {
    left: -1.125rem;
  }

  .footer-office-card {
    align-content: start;
    padding: 1.25rem 1rem;
  }

  .footer-office-title {
    gap: 0.6rem;
  }

  .footer-office-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer-office-title h3 {
    font-size: 1.15rem;
  }
}

/* iPad can have a 1920px layout viewport in landscape; do not use width
   breakpoints to decide whether its footer stacks. */
html[data-ipad-device="true"] .footer-main,
html[data-ipad-device="true"] .footer-office-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

html[data-ipad-device="true"] .footer-office-grid {
  grid-column: auto;
  margin-left: 0;
  gap: 1rem;
}

html[data-ipad-device="true"] .footer-nav-block,
html[data-ipad-device="true"] .footer-hours-card {
  transform: none;
  padding-inline: 0;
}

html[data-ipad-device="true"] .footer-nav-block::before,
html[data-ipad-device="true"] .footer-nav-block::after {
  content: none;
}
/* Separate the registration details and allow them to wrap on smaller screens. */
.footer-bottom .footer-copyright {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}
