/* Give the booking action a clear place against the scene in both light settings. */
.ex-hero.fit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  align-items: end;
  gap: clamp(3rem, 9vw, 9rem);
  min-height: min(700px, 79svh);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.fit-hero .sr-only, .fit-prep .sr-only, .ex-footer .ex-button .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fit-intro h1 { margin-bottom: 1.25rem; }
.fit-intro > p:not(.ex-kicker) { max-width: 43ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.65; }
.fit-intro .journey-launch { display: none; }

.fit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.5rem; }
.fit-actions > a:not(.ex-button), .fit-details a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  color: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-color: #e5dbba99;
}
.fit-actions > a:hover, .fit-details a:hover { text-decoration-color: currentColor; }

.fit-details {
  align-self: end;
  border: 1px solid #e8dbbb52;
  border-radius: 4px;
  background: #26372eee;
  color: #fff8e9;
  padding: 1.6rem clamp(1.35rem, 2.8vw, 2.5rem) 1rem;
}
.fit-details dl, .fit-details dd, .fit-details p { margin: 0; }
.fit-details dl > div { padding-block: .9rem; border-bottom: 1px solid #d6c7a74d; }
.fit-details dl > div:first-child { padding-top: 0; }
.fit-details dt { color: #e3d8bb; font-size: .8rem; margin-bottom: .2rem; }
.fit-details dd { font: 1.85rem/1.1 var(--ex-serif); }
.fit-spanish { scroll-margin-top: 1.5rem; padding-top: 1.15rem; }
.fit-spanish h2 { font: 1.6rem/1.15 var(--ex-serif); margin-bottom: .4rem; }
.fit-spanish p { font-size: .9rem; line-height: 1.55; }
.fit-spanish a { margin-top: .3rem; }

.fit-prep { align-items: start; scroll-margin-top: 1.5rem; }
.fit-prep > div > p:not(.ex-kicker) { max-width: 42ch; font-size: 1rem; line-height: 1.65; }
.fit-prep > div > .ex-small { padding-top: 1.1rem; border-top: 1px solid var(--ex-edge); }
.fit-prep .ex-booking-form { min-width: 0; }
.fit-prep .ex-booking-progress { gap: .5rem; font-size: .75rem; }
.fit-prep .ex-choice small { font-size: .85rem; line-height: 1.45; }
.fit-prep .ex-booking-form fieldset > [data-book-back] { display: block; min-height: 44px; }

@media (max-width: 760px) {
  .ex-hero.fit-hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 2rem;
    padding: 3rem 24px 2rem;
    min-height: auto;
  }
  .fit-details { width: 100%; max-width: 36rem; }
  .fit-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; border-bottom: 1px solid #d6c7a74d; }
  .fit-details dl > div { padding-top: 0; border-bottom: 0; }
  .fit-details dd { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
  .fit-prep .ex-booking-progress { flex-wrap: wrap; font-size: .7rem; }
}

@media (max-width: 370px) {
  .fit-details dl { grid-template-columns: 1fr; }
}

/* Keep the call invitation below the controls for signed-out visitors on phones. */
body:has(.fit-hero) > .ex-header { position: relative; }
.ex-hero.fit-hero { min-height: min(610px, 72svh); padding-top: clamp(2.35rem, 5vw, 5.5rem); }
@media (max-width: 760px) {
  .ex-hero.fit-hero { min-height: auto; }
}
