/* Visit us page */

.visit {
  padding-bottom: 3rem;
}

.visit__header {
  margin-bottom: clamp(2rem, 3vw + 1rem, 3rem);
}

.visit__intro {
  max-width: 65ch;
}

.visit__info {
  display: grid;
  gap: 2rem;
}

.visit__details {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.visit__block {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: 0.75rem;
}

.visit__icon {
  font-size: 1.25rem;
  color: hsl(var(--clr-darkGreen));
  /* Line the icon up with the heading text */
  padding-top: 0.3em;
}

/* Section headings: one style for the page, including editor content h2s */
.visit h2.visit__heading,
.visit__content h2 {
  font-size: var(--fs-600);
  font-weight: var(--fw-700);
  margin-bottom: 0.75rem;
}

.visit__hours {
  margin: 0;
}

.visit__hours-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, max-content) 1fr;
  column-gap: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--clr-darkBlue) / 15%);
}

.visit__hours-row:first-child {
  padding-top: 0;
}

.visit__hours dt {
  font-weight: var(--fw-700);
}

.visit__hours dd {
  margin: 0;
}

.visit__address {
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.visit__map a {
  display: block;
  border: 0;
}

.visit__map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.visit__map a:focus-visible {
  outline: 3px solid hsl(var(--clr-darkRed));
  outline-offset: 3px;
}

.visit__content {
  max-width: 65ch;
}

/* The editor content opens with a spacer, which would push the heading out of
   line with the icon */
.visit__content > .wp-block-spacer:first-child {
  display: none;
}

@media (min-width: 800px) {
  .visit__info {
    grid-template-columns: minmax(18rem, 2fr) 3fr;
    /* Any spare height from the map goes under the accessibility block, not
       between it and the location */
    grid-template-rows: auto 1fr;
    gap: 2rem 3rem;
    align-items: start;
  }

  .visit__details,
  .visit__access {
    grid-column: 1;
  }

  .visit__map {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
