/* Scoped presentation changes requested for the homepage and contact page. */
.aj-home-gateway__heading {
  display: flex;
  justify-content: center;
  text-align: center;
}
.aj-home-gateway__heading > div {
  width: min(100%, 850px);
  margin-inline: auto;
}
.aj-home-gateway__heading h2 {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}
.aj-home-gateway__heading .aj-home-gateway__note {
  display: none;
}

.category-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr);
  align-items: end;
  gap: 16px;
}
.category-section .section-heading > div {
  grid-column: 2;
  text-align: center;
}
.category-section .section-heading h2 {
  text-align: center;
}
.category-section .section-heading > .text-link {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.philosophy .philosophy-mark {
  grid-column: 1;
  justify-self: center;
  width: 76px;
  height: 76px;
}
.philosophy > div:nth-child(2) {
  grid-column: 1;
  text-align: center;
}
.philosophy > p:last-child { display: none; }

/* Shorten the contact introduction by about 25% at desktop width. */
main:has(> .contact-global) > .page-hero {
  padding-block: clamp(24px, 2.35vw, 32px);
}
main:has(> .contact-global) > .page-hero > .eyebrow {
  margin-bottom: 14px;
}
main:has(> .contact-global) > .page-hero > p:last-child {
  margin-top: 16px;
}
/* Match the owner's marked contact heading at 75% of its former type size. */
main:has(> .contact-global) > .page-hero h1 {
  font-size: clamp(32.25px, 3.75vw, 54px);
}
@media (max-width: 760px) {
  main:has(> .contact-global) > .page-hero h1 {
    font-size: clamp(32.25px, 9.75vw, 45px);
  }
}

/* Keep the contact hero and appointment choices first, then the form and worldwide section. */
main:has(> .contact-global) {
  display: flex;
  flex-direction: column;
}
main:has(> .contact-global) > .page-hero { order: 0; }
main:has(> .contact-global) > .appointment-options { order: 1; }
main:has(> .contact-global) > .contact-layout { order: 2; }
main:has(> .contact-global) > .contact-global { order: 3; }
main:has(> .contact-global) > .map-section { order: 4; }

/* About 30% less height at desktop width, without scaling down the readable text. */
.contact-global { padding-block: 42px; }
.contact-global-heading { column-gap: clamp(24px, 4vw, 54px); }
.contact-global-heading h2 {
  font-size: clamp(38px, 3.7vw, 50px);
  line-height: 1.05;
}
.contact-global-intro { padding-top: 0; }
.contact-global-regions {
  margin-top: 24px;
  gap: 12px;
}
.contact-global-regions article {
  min-height: 0;
  padding: 16px 18px;
}
.contact-global-regions article h3 {
  margin: 14px 0 10px;
  font-size: clamp(23px, 2.2vw, 28px);
  line-height: 1.1;
}
.contact-global-regions article li { padding-block: 4px; }
.contact-global-footer {
  padding-top: 16px;
  gap: 24px;
}

@media (max-width: 1080px) {
  .category-section .section-heading {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .category-section .section-heading > div,
  .category-section .section-heading > .text-link {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .philosophy {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-global { padding-block: 30px; }
  .contact-global-heading { gap: 14px; }
  .contact-global-regions { margin-top: 18px; }
  .contact-global-footer { gap: 12px; }
}
