/* Homepage-only teaching gallery and selected student feedback. */
html.v3-core.home-concept #home-people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: stretch;
}
#home-people #home-card-coach { grid-area: 1 / 1; }
#home-card-coach .home-coach-logo {
  position: absolute;
  left: 20px;
  bottom: calc(100% - 10px);
  display: block;
  width: 70px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
#home-people #home-card-testimonials { grid-area: 1 / 2; }
#home-people .home-teaching-gallery { grid-area: 2 / 1; }
#home-people .home-feedback-preview { grid-area: 2 / 2; }
#home-people .home-teaching-gallery {
  min-width: 0;
}
html.v3-core.home-concept #home-people .home-teaching-heading { margin: 0 0 6px; font: 800 20px/1.4 var(--serif); }
html.v3-core.home-concept #home-people .home-teaching-description { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
#home-people .home-teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
#home-people .home-teaching-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
#home-people .home-teaching-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #e6ede7;
}
#home-people .home-teaching-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef2ef;
}
#home-people .home-teaching-photo figcaption {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#home-people .home-feedback-preview { position: relative; min-width: 0; }
#home-people [hidden] { display: none !important; }
#home-people.home-no-teaching .home-feedback-preview { min-height: 530px; }
#home-people .home-review-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 10px;
  background: var(--white);
  color: var(--pine);
}
#home-people .home-review-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#home-people .home-review-topline time { font: 700 12px/1.5 var(--serif); }
#home-people .home-review-stars { color: #ad8647; font-size: 16px; letter-spacing: .04em; }
html.v3-core.home-concept #home-people .home-review-title { margin: 8px 0; font: 800 20px/1.4 var(--serif); }
html.v3-core.home-concept #home-people .home-review-byline { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
#home-people .home-review-byline strong { color: var(--pine); font-size: 14px; }
#home-people .home-review-header { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#home-people .home-review-body { position: relative; min-height: 0; overflow: hidden; }
html.v3-core.home-concept #home-people .home-review-text { margin: 0; padding-inline: 60px; color: var(--pine); font-size: 14px; line-height: 1.8; white-space: pre-line; }
#home-people .home-review-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#home-people .home-review-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: var(--home-review-photo-height, auto);
  object-fit: cover;
  border: 1px solid #cbd8d3;
  border-radius: 6px;
  background: #eff3ef;
}
#home-people .home-review-photos[data-photo-kind="student"] img { object-fit: contain; }
#home-people .home-review-navigation { position: absolute; inset: 50% 8px auto; height: 44px; transform: translateY(-50%); z-index: 2; pointer-events: none; }
#home-people .home-review-arrow {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
  color: var(--pine);
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .15s;
}
#home-people .home-review-arrow[data-home-review-previous] { left: 0; }
#home-people .home-review-arrow[data-home-review-next] { right: 0; }
#home-people .home-review-arrow svg { width: 20px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
#home-people .home-review-arrow:hover { opacity: 1; color: var(--red); }
#home-people .home-review-arrow:focus-visible,
#home-people .home-review-rotation:focus-visible,
#home-people .home-review-more:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#home-people .home-review-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#home-people .home-review-playback { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 12px/1.5 var(--sans); }
#home-people .home-review-rotation { display: grid; place-items: center; width: 28px; height: 28px; padding: 4px; border: 0; background: transparent; color: var(--pine); box-shadow: none; cursor: pointer; }
#home-people .home-review-rotation svg { width: 15px; height: 15px; fill: currentColor; }
#home-people .home-review-play-icon { display: none; }
#home-people .home-review-rotation[data-paused="true"] .home-review-pause-icon { display: none; }
#home-people .home-review-rotation[data-paused="true"] .home-review-play-icon { display: block; }
#home-people .home-review-more { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--pine); font: 700 12px/1.5 var(--sans); text-decoration: none; white-space: nowrap; }
#home-people .home-review-more:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 1100px) {
  #home-card-coach .home-coach-logo { position: static; width: 58px; margin: 0 0 10px; }
}
@media (max-width: 760px) {
  #home-card-coach .home-coach-logo { width: 54px; }
  html.v3-core.home-concept #home-people { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #home-people #home-card-coach { grid-area: 1 / 1; }
  #home-people .home-teaching-gallery { grid-area: 2 / 1; }
  #home-people #home-card-testimonials { grid-area: 3 / 1; margin-top: 12px; }
  #home-people .home-feedback-preview { grid-area: 4 / 1; }
  #home-people .home-teaching-grid { gap: 6px; }
  #home-people .home-teaching-photo figcaption { min-height: 38px; padding: 5px; font-size: 10px; }
  #home-people .home-review-card { position: static; grid-template-rows: 156px 156px auto auto; padding: 14px; }
  #home-people .home-review-header { height: 156px; box-sizing: border-box; }
  #home-people .home-review-navigation { inset-inline: 0; }
  #home-people .home-review-arrow { width: 36px; }
  html.v3-core.home-concept #home-people .home-review-text { padding-inline: 44px; }
  html.v3-core.home-concept #home-people .home-review-title { font-size: 19px; }
}
