/*
 * GB Exercises hero + card repair — V30, 21 August 2026
 * Built from the user-designated current approved baseline only.
 * Restores the stable non-overlapping hero composition, enlarges the
 * rear/front figures modestly, places the anatomical clarification directly
 * below the front figure, and leaves all other page content unchanged.
 */

.exercises-hero {
  scroll-margin-top: 88px;
}

.exercises-hero-copy {
  padding-top: clamp(112px, 11vw, 156px);
}

.exercises-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.body-region-navigation {
  display: grid;
  width: min(690px, 100%);
  min-height: 700px;
  grid-template-columns: minmax(0, 59%) minmax(220px, 41%);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-content: initial;
  overflow: visible;
}

/* Main rear view: dominant, but with visible clearance inside the grey panel. */
.body-region-navigation > img {
  position: static;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / 3;
  display: block;
  width: auto;
  height: 700px;
  max-width: none;
  max-height: none;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  object-position: center;
}

.body-region-navigation .body-region-links {
  position: static !important;
  inset: auto !important;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid !important;
  gap: 14px;
  align-self: end;
  width: 100%;
  padding: 0 0 22px;
}

.body-region-navigation .body-region-links a {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  min-height: 74px;
  box-sizing: border-box;
}

.body-region-navigation .body-region-links a.region-back-core {
  border-left-color: transparent;
}

.body-region-navigation .body-region-links a.region-back-core::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -1px;
  bottom: -1px;
  width: 7px;
  background: linear-gradient(to bottom, #122878 0 50%, #e8501f 50% 100%);
}

/* Supporting front view: slightly larger, still clearly secondary. */
.core-front-inset {
  position: static;
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 238px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.core-front-inset img {
  display: block;
  width: 158px;
  max-width: 100%;
  height: auto;
  background: transparent;
}

.body-region-note {
  width: 238px;
  max-width: 100%;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

@media (max-width: 1000px) {
  .body-region-navigation {
    width: min(630px, 100%);
    min-height: 640px;
    grid-template-columns: minmax(0, 59%) minmax(200px, 41%);
  }

  .body-region-navigation > img {
    height: 630px;
    max-width: none;
    max-height: none;
  }

  .core-front-inset {
    width: 210px;
  }

  .core-front-inset img {
    width: 142px;
  }

  .body-region-note {
    width: 210px;
    font-size: 12.5px;
  }
}

@media (max-width: 700px) {
  .exercises-hero {
    scroll-margin-top: 74px;
  }

  .exercises-hero-copy {
    padding-top: 82px;
  }

  .exercises-hero-visual {
    padding-left: 24px;
    padding-right: 24px;
  }

  .body-region-navigation {
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 128px;
    grid-template-rows: auto auto;
    gap: 18px 10px;
  }

  .body-region-navigation > img {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: 450px;
    max-width: none;
    max-height: none;
    justify-self: center;
  }

  .core-front-inset {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: 128px;
    margin: 0 0 8px;
  }

  .core-front-inset img {
    width: 108px;
  }

  .body-region-note {
    width: 128px;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.45;
  }

  .body-region-navigation .body-region-links {
    grid-column: 1 / 3;
    grid-row: 2;
    grid-template-columns: 1fr;
    align-self: auto;
    padding: 0;
  }

  .body-region-navigation .body-region-links a {
    min-height: 70px;
  }
}
