/* Shared page hierarchy and readable content widths. */
.customer-page {
  --page-panel: #f8f6f1;
  --page-border: #e4ded5;
  --page-reading-width: 72ch;
}

.customer-page > .page-hero .wrap {
  padding-block: clamp(.35rem, 1.5vw, 1rem);
}

.customer-page > .page-hero h1 {
  line-height: 1.08;
  text-wrap: balance;
}

.customer-page > .page-hero p.lead {
  max-inline-size: 62ch;
  line-height: 1.55;
}

.customer-page > .section > .wrap > p,
.customer-page > .section.wrap > p,
.customer-page > .area-answer p,
.customer-page > .wrap > .article > :is(p, ul, ol),
.customer-page .course-reference-content > :is(p, ul, ol),
.customer-page .course-source-content > :is(p, ul, ol) {
  max-inline-size: var(--page-reading-width);
  line-height: 1.65;
}

.customer-page :is(.article, .section, .location-course-guides) :is(h2, h3) {
  line-height: 1.2;
  overflow-wrap: break-word;
}

.customer-page .article :is(h2, h3, h4) + :is(p, ul, ol),
.customer-page > .section :is(h2, h3) + :is(p, ul, ol) {
  margin-block-start: .55em;
}

.customer-page .article :is(ul, ol) {
  padding-inline-start: 1.35em;
}

.customer-page .article li + li {
  margin-block-start: .3em;
}

.customer-page .article :is(h2, h3):not(:first-child) {
  margin-block-start: 1.2em;
}

.customer-page .article img.training-photo-people {
  display: block;
}

.customer-page :is(.course-card, .location-card, .help-card) p {
  line-height: 1.55;
}

.customer-page :is(.course-card, .location-card) :is(h2, h3) {
  text-wrap: pretty;
}

.customer-page .customer-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  max-inline-size: 44rem;
  gap: .55rem;
  margin: 1rem 0 1.2rem;
}

.customer-page .customer-facts > div {
  min-inline-size: 0;
  padding: .65rem .8rem;
  border: 1px solid var(--page-border);
  border-radius: .7rem;
  background: #fff;
}

.customer-page .customer-facts dt {
  font-size: .875rem;
  line-height: 1.35;
}

.customer-page .customer-facts dd {
  margin: .2rem 0 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.customer-page .customer-group-hero {
  background: var(--page-panel);
}

.customer-page .customer-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
}

.customer-page .customer-group-grid > :only-child {
  grid-column: 1 / -1;
}

.customer-page .customer-group-grid .hero-photo {
  max-height: none;
  aspect-ratio: auto;
}

.customer-page .customer-group-grid .hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 1rem;
}

.customer-page .customer-group-note {
  max-inline-size: var(--page-reading-width);
  padding: 1rem 1.15rem;
  margin-block-end: 1.4rem;
  border: 1px solid var(--page-border);
  border-radius: .75rem;
  background: var(--page-panel);
}

.customer-page .customer-group-note p {
  margin: .4rem 0 0;
  line-height: 1.55;
}

.customer-page .customer-inline-link {
  display: inline-block;
  margin: .65rem 0;
  text-decoration: underline;
  text-underline-offset: .18em;
  font-weight: 700;
}

.customer-page .customer-page-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.35rem;
  width: min(100% - 36px, 1180px);
  margin: .4rem auto .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--page-border);
}

.customer-page .customer-page-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-underline-offset: .18em;
  text-decoration: underline;
}

.customer-page :is(#training-options, #planning-your-training, #local-training-faqs, #venue-and-directions, .customer-group-hero #course-booking) {
  scroll-margin-top: 9rem;
}

.customer-page .agency-wrap > p,
.customer-page .agency-faq > p {
  max-inline-size: var(--page-reading-width);
  line-height: 1.65;
}

.customer-newsletter :is(.hero, .section) p {
  max-inline-size: 68ch;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .customer-page .customer-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-page .customer-group-grid .hero-photo {
    display: block;
    height: auto;
  }

  .customer-page .customer-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.customer-page .customer-facts.customer-facts-single {
  display: inline-grid;
}
