/* =====================================================
   Course: トレーニング × ピラティス — bespoke page skin
   Loaded only on single-course-training-pilates.php.
   All rules are scoped under .tp and use tp- prefixed
   classnames so nothing here can collide with main.css.

   Reuses the site's existing Terracotta / Greige / Ivory
   tokens (see main.css :root) — terracotta reads as the
   "training" register, warm greige as the "pilates"
   register. No new hues are introduced; the two halves of
   this course are told apart using hues already native to
   the brand.
   ===================================================== */

.tp {
  --tp-training: var(--tc);
  --tp-training-tint: var(--tc-50);
  --tp-training-line: var(--tc-200);
  --tp-pilates: var(--gr-700);
  --tp-pilates-tint: var(--gr-100);
  --tp-pilates-line: var(--gr-300);
  --tp-ink: var(--gr-900);
  background: var(--warmwhite);
}

.tp-section {
  padding: var(--section-py) 0;
}

.tp-container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--px);
}

.tp-section--cream {
  background: var(--ivory);
}
.tp-section--warm {
  background: var(--warmwhite);
}
.tp-section--ink {
  background: var(--tp-ink);
  color: var(--gr-100);
}

/* ---------- Shared bits ---------- */
.tp-eyebrow {
  font-family: var(--mont);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.tp-eyebrow--training {
  color: var(--tp-training);
}
.tp-eyebrow--pilates {
  color: var(--tp-pilates);
}

.tp-heading {
  font-family: var(--serif-jp);
  font-weight: 300;
  color: var(--tp-ink);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
}

.tp-lede {
  font-family: var(--sans-jp);
  font-weight: 300;
  color: var(--gr-700);
  line-height: 2;
  font-size: 0.9375rem;
  padding-right: 2rem;
}
.tp-lede p {
  margin: 0 0 1.25rem;
}
.tp-lede p:last-child {
  margin-bottom: 0;
}

/* The opening line gets pulled out and set larger/darker so a skimming
   reader gets the whole pitch before deciding whether to read on. */
.tp-lede__intro {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 1.1875rem;
  color: var(--tp-ink);
  line-height: 1.85;
  margin: 0 0 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--tp-training);
}

.tp-header {
  margin-bottom: 2.75rem;
}
.tp-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.tp-header--center .tp-lede {
  margin-left: auto;
  margin-right: auto;
}

.tp-divider {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  margin: 1.25rem 0;
}
.tp-header--center .tp-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ABOUT (editorial text + photo) ---------- */
.tp-about {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .tp-about:not(.tp-about--text-only) {
    grid-template-columns: 1.2fr 0.8fr;
  }
  /* Editorial gutter rule between the two columns. */
  .tp-about:not(.tp-about--text-only)::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: calc(60% - 1.5rem);
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--gr-300) 20%, var(--gr-300) 80%, transparent 100%);
  }
}

.tp-about__photo {
  /* z-index:0 forces a stacking context here too, same reason as
     .tp-about__text above — otherwise the offset frame's negative
     z-index escapes this element and disappears behind a distant
     ancestor instead of just sitting behind the photo. */
  position: relative;
  z-index: 0;
  aspect-ratio: 4 / 5;
}
.tp-about__photo-frame {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border-radius: 0.5rem 2.5rem 0.5rem 2.5rem;
  background: var(--tp-pilates);
}
.tp-about__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem 2.5rem 0.5rem 2.5rem;
}
@media (max-width: 859px) {
  .tp-about__photo {
    aspect-ratio: 16 / 10;
    max-width: 26rem;
    margin: 0 auto;
  }
  .bp-lede {
    padding-right: 0;
  }
}

/* ---------- Signature: ratio slider ----------
   Sits in its own section right below the shared page-hero (see
   template-parts/page/page-hero.php), which every other page also uses.
   This is the single best-differentiated thing about this course, so its
   section intentionally breaks the plain cream/warm alternation with a
   two-tone wash and a proper headline instead of just a caption. */
.tp-section--feature {
  background: radial-gradient(120% 100% at 12% 0%, var(--tp-training-tint) 0%, transparent 55%), radial-gradient(120% 100% at 88% 100%, var(--tp-pilates-tint) 0%, transparent 55%), var(--ivory);
}
.tp-section--feature .tp-heading {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
[aria-label="トレーニングとピラティスの配分"] .tp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tp-only-desktop {
  display: none;
}
@media (min-width: 640px) {
  .tp-only-desktop {
    display: inline;
  }
}

.tp-ratio {
  background: var(--warmwhite);
  border: 1px solid var(--gr-200);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  max-width: 34rem;
  margin: 0 auto;
  box-shadow: 0 1.5rem 3rem -2rem rgba(90, 67, 58, 0.35);
}

.tp-ratio--feature {
  max-width: 38rem;
  padding: 2.5rem 2rem 2.25rem;
  border: none;
  box-shadow: 0 2rem 4rem -1.5rem rgba(90, 67, 58, 0.4);
}
.tp-ratio--feature::before {
  content: "";
  display: block;
  height: 0.3125rem;
  margin: -2.5rem -2rem 1.75rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(90deg, var(--tp-training), var(--tp-pilates));
}
.tp-ratio--feature .tp-ratio__label strong {
  font-size: 1.625rem;
}

@media (min-width: 768px) {
  .tp-ratio {
    padding: 2.25rem 2.5rem 2rem;
  }
  .tp-ratio--feature {
    padding: 3rem 2.75rem 2.5rem;
  }
  .tp-ratio--feature::before {
    margin: -3rem -2.75rem 2rem;
  }
}

.tp-ratio__caption {
  font-family: var(--serif-jp);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--tp-ink);
  margin: 0 0 1.5rem;
  text-align: center;
}

.tp-ratio__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.tp-ratio__label {
  font-family: var(--sans-jp);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gr-600);
  text-align: center;
  white-space: nowrap;
}
.tp-ratio__label strong {
  display: block;
  font-family: var(--mont);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}
.tp-ratio__label--training strong {
  color: var(--tp-training);
}
.tp-ratio__label--pilates strong {
  color: var(--tp-pilates);
}

.tp-ratio__track {
  position: relative;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--tp-pilates-tint);
  overflow: visible;
}

.tp-ratio__fill {
  position: absolute;
  inset: 0;
  width: 50%;
  border-radius: var(--radius-pill);
  background: var(--tp-training);
  transition: width var(--t);
}

.tp-ratio__input {
  position: absolute;
  inset: -0.75rem 0;
  width: 100%;
  height: 2rem;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: grab;
}
.tp-ratio__input:active {
  cursor: grabbing;
}
.tp-ratio__input::-webkit-slider-thumb {
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--warmwhite);
  border: 3px solid var(--tp-ink);
  margin-top: -0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(43, 36, 32, 0.25);
}
.tp-ratio__input::-moz-range-thumb {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--warmwhite);
  border: 3px solid var(--tp-ink);
  box-shadow: 0 0.25rem 0.5rem rgba(43, 36, 32, 0.25);
}
.tp-ratio__input::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
}
.tp-ratio__input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
}
.tp-ratio__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--tp-ink);
  outline-offset: 2px;
}
.tp-ratio__input:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--tp-ink);
  outline-offset: 2px;
}

.tp-ratio__hint {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  text-align: center;
  margin: 1.5rem 0 0;
  min-height: 1.3em;
}

.tp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--line-green);
  color: #fff;
  font-family: var(--sans-jp);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.tp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem -0.5rem rgba(6, 199, 85, 0.45);
}
.tp-btn:focus-visible {
  outline: 2px solid var(--tp-ink);
  outline-offset: 3px;
}

.tp-hero__price {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
}
.tp-hero__price strong {
  font-family: var(--mont);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tp-ink);
}

.tp-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  margin: 1.25rem 0 0;
}
.tp-reassure i {
  color: var(--tp-pilates);
}

/* ---------- SESSION ANATOMY (segmented time bar) ---------- */
.tp-anatomy__bar {
  display: flex;
  height: 2.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.tp-anatomy__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mont);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.tp-anatomy__seg--counsel {
  background: var(--gr-400);
  flex: 10;
  color: var(--tp-ink);
}
.tp-anatomy__seg--change {
  background: var(--gr-300);
  flex: 5;
  color: var(--gr-800);
}
.tp-anatomy__seg--main {
  flex: 45;
  background: linear-gradient(90deg, var(--tp-training) 0%, var(--tp-pilates) 100%);
}

.tp-anatomy__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
}
.tp-anatomy__key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tp-anatomy__key::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--dot, var(--gr-400));
  flex-shrink: 0;
}
.tp-anatomy__key--counsel {
  --dot: var(--gr-400);
}
.tp-anatomy__key--change {
  --dot: var(--gr-300);
}
.tp-anatomy__key--main {
  --dot: var(--tp-training);
}

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.tp-chip {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--tp-ink);
  background: var(--warmwhite);
  border: 1px solid var(--gr-200);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
}

/* ---------- PRICE ---------- */
.tp-price {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .tp-price {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.tp-price__card {
  background: var(--warmwhite);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 1.5rem 3rem -2rem rgba(90, 67, 58, 0.3);
}
.tp-price__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.3125rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(90deg, var(--tp-training), var(--tp-pilates));
}
.tp-price__label {
  font-family: var(--mont);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gr-500);
  margin: 0.5rem 0 0.5rem;
}
.tp-price__amount {
  font-family: var(--serif-jp);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--tp-ink);
  margin: 0 0 1.25rem;
}
.tp-price__amount span {
  font-family: var(--sans-jp);
  font-size: 0.875rem;
  color: var(--gr-500);
  margin-left: 0.4rem;
}
.tp-price__features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.tp-price__features li {
  font-family: var(--sans-jp);
  font-size: 0.875rem;
  color: var(--gr-700);
  line-height: 1.6;
  padding-left: 1.4rem;
  position: relative;
}
.tp-price__features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.6875rem;
  color: var(--tp-training);
}

.tp-price__tiers {
  border-top: 1px solid var(--gr-200);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.tp-price__tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-700);
}
.tp-price__tier strong {
  font-family: var(--mont);
  font-weight: 600;
  color: var(--tp-ink);
}

.tp-price__note {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-500);
  line-height: 1.9;
}

/* ---------- CHECKLIST (who it's for) ---------- */
.tp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tp-checklist {
    grid-template-columns: 1fr 1fr;
  }
}
.tp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: var(--sans-jp);
  font-size: 0.875rem;
  color: var(--gr-700);
  line-height: 1.7;
  background: var(--warmwhite);
  border: 1px solid var(--gr-200);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.tp-checklist i {
  color: var(--tp-training);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ---------- EFFECT CARDS ---------- */
.tp-effects {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .tp-effects {
    grid-template-columns: 1fr 1fr;
  }
}
.tp-effect {
  background: var(--ivory);
  border-radius: 1rem;
  padding: 1.75rem;
}
.tp-effect__title {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--tp-ink);
  margin: 0 0 0.5rem;
}
.tp-effect__text {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  line-height: 1.8;
  margin: 0;
}

/* ---------- RESULT CARDS ("期待できる効果" only) ----------
   Distinct from .tp-effect (shared with "ご入会からの流れ"): these get a
   gradient icon badge, a soft glow, and a hover lift so the payoff reads
   as something to look forward to rather than a plain fact sheet. */
.tp-result-grid {
  display: grid;
  gap: 1.5rem;
}
.tp-result-grid article {
  text-align: center;
}
@media (min-width: 640px) {
  .tp-result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tp-result-card {
  position: relative;
  overflow: hidden;
  background: var(--warmwhite);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.tp-result-card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 1.5rem 2.5rem -1.25rem rgba(90, 67, 58, 0.4);
}
.tp-result-card::after {
  content: "";
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(1.25rem);
  pointer-events: none;
}
.tp-result-card--training::after {
  background: var(--tp-training);
}
.tp-result-card--pilates::after {
  background: var(--tp-pilates);
}

.tp-result-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1875rem;
  margin-bottom: 1.25rem;
  transition: transform var(--t);
}
.tp-result-card:hover .tp-result-card__icon {
  transform: scale(1.1) rotate(-6deg);
}
.tp-result-card--training .tp-result-card__icon {
  background: linear-gradient(135deg, var(--tp-training) 0%, var(--tc-300) 100%);
}
.tp-result-card--pilates .tp-result-card__icon {
  background: linear-gradient(135deg, var(--tp-pilates) 0%, var(--gr-500) 100%);
}

.tp-result-card__title {
  position: relative;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.1875rem;
  color: var(--tp-ink);
  margin: 0 0 0.6rem;
}
.tp-result-card__text {
  position: relative;
  font-family: var(--sans-jp);
  font-size: 0.8438rem;
  color: var(--gr-600);
  line-height: 1.85;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tp-result-card,
  .tp-result-card__icon {
    transition: none !important;
  }
}

/* ---------- TIMELINE ----------
   A journey, not a fact sheet: each stop gets a badge that deepens in
   color as the story progresses, strung along a dotted path. */
.tp-timeline {
  position: relative;
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 640px) {
  .tp-timeline {
    grid-template-columns: repeat(var(--tp-timeline-count, 2), 1fr);
    gap: 1.5rem;
  }
  .tp-timeline::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--gr-300) 60%, transparent 0%);
    background-size: 14px 2px;
    background-repeat: repeat-x;
    z-index: 0;
  }
}

.tp-timeline__item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.tp-timeline__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1875rem;
  background: linear-gradient(135deg, var(--tc-300), var(--tp-training));
  box-shadow: 0 0.75rem 1.5rem -0.75rem rgba(90, 67, 58, 0.5);
}
.tp-timeline__item:nth-child(2) .tp-timeline__icon {
  background: linear-gradient(135deg, var(--tp-training), var(--tp-pilates));
}
.tp-timeline__item:nth-child(3) .tp-timeline__icon {
  background: linear-gradient(135deg, var(--tp-pilates), var(--gr-800));
}
.tp-timeline__item--last .tp-timeline__icon {
  box-shadow:
    0 0 0 6px var(--tp-training-tint),
    0 0.75rem 1.5rem -0.75rem rgba(90, 67, 58, 0.5);
}

.tp-timeline__period {
  font-family: var(--mont);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gr-500);
  margin: 0 0 0.4rem;
}
.tp-timeline__label {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--tp-ink);
  margin: 0 0 0.75rem;
}
.tp-timeline__text {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  line-height: 1.9;
  margin: 0 auto;
  max-width: 20rem;
}

/* ---------- FAQ ---------- */
.tp-faq {
  display: grid;
  gap: 0.75rem;
}
.tp-faq-item {
  background: var(--warmwhite);
  border: 1px solid var(--gr-200);
  border-radius: 0.875rem;
  overflow: hidden;
}
.tp-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif-jp);
  font-size: 0.9375rem;
  color: var(--tp-ink);
}
.tp-faq-item__q-mark {
  font-family: var(--mont);
  font-weight: 600;
  color: var(--tp-training);
  flex-shrink: 0;
}
.tp-faq-item__q-text {
  flex: 1;
}
.tp-faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--t);
  color: var(--gr-400);
}
.tp-faq-item.is-open .tp-faq-item__icon {
  transform: rotate(45deg);
  color: var(--tp-training);
}
.tp-faq-item:focus-visible,
.tp-faq-item__q:focus-visible {
  outline: 2px solid var(--tp-ink);
  outline-offset: -2px;
}

.tp-faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.tp-faq-item.is-open .tp-faq-item__a {
  grid-template-rows: 1fr;
}
.tp-faq-item__a-inner {
  overflow: hidden;
}
.tp-faq-item__a-inner p {
  margin: 0;
  padding: 0 1.4rem 1.25rem 2.4rem;
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  line-height: 1.9;
}

/* ---------- TRAINERS ---------- */
.tp-trainers {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.tp-trainer {
  text-align: center;
}
.tp-trainer__photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  background: var(--tp-pilates-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-jp);
  font-size: 1.5rem;
  color: var(--tp-pilates);
}
.tp-trainer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tp-trainer__role {
  font-family: var(--mont);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tp-training);
  margin: 0 0 0.35rem;
}
.tp-trainer__name {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--tp-ink);
  margin: 0 0 0.5rem;
}
.tp-trainer__creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.tp-trainer__creds span {
  font-family: var(--sans-jp);
  font-size: 0.6875rem;
  color: var(--gr-600);
  background: var(--ivory);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}
.tp-trainer__link {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--tp-training);
  text-decoration: none;
}
.tp-trainer__link:hover {
  text-decoration: underline;
}

/* ---------- NOTES ---------- */
.tp-notes {
  background: var(--warmwhite);
  border: 1px solid var(--gr-200);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
}
.tp-notes ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}
.tp-notes p,
.tp-notes li {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  line-height: 1.9;
}
.tp-notes p:first-child {
  margin-top: 0;
}

/* ---------- BEFORE / AFTER ---------- */
.tp-ba {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.tp-ba-card {
  background: var(--ivory);
  border-radius: 1rem;
  overflow: hidden;
}
.tp-ba-card__photo {
  background: var(--tp-training-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-training);
  font-size: 1.5rem;
}
.tp-ba-card__photo img {
  width: 100%;
  height: auto;
  display: block;
}
.tp-ba-card__photo:not(:has(img)) {
  aspect-ratio: 4 / 3;
}
.tp-ba-card__body {
  padding: 1.25rem;
}
.tp-ba-card__name {
  font-family: var(--serif-jp);
  font-size: 0.9375rem;
  color: var(--tp-ink);
  margin: 0 0 0.2rem;
}
.tp-ba-card__job {
  font-family: var(--sans-jp);
  font-size: 0.75rem;
  color: var(--gr-500);
  margin: 0 0 0.75rem;
}
.tp-ba-card__quote {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  line-height: 1.8;
  margin: 0 0 0.9rem;
}
.tp-ba-card__link {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--tp-training);
  text-decoration: none;
}

/* ---------- OTHER COURSES ---------- */
.tp-others {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .tp-others {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tp-other {
  border: 1px solid var(--gr-200);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition:
    border-color var(--t),
    transform var(--t);
}
.tp-other:hover {
  border-color: var(--tp-training);
  transform: translateY(-3px);
}
.tp-other__photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.tp-other__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t);
}
.tp-other:hover .tp-other__photo img {
  transform: scale(1.04);
}
.tp-other__body {
  padding: 1.5rem;
}
.tp-other__name {
  font-family: var(--serif-jp);
  font-size: 1rem;
  color: var(--tp-ink);
  margin: 0 0 0.5rem;
}
.tp-other__teaser {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-600);
  line-height: 1.8;
  margin: 0 0 0.75rem;
}
.tp-other__cta {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--tp-training);
}

/* ---------- BACK LINK ---------- */
.tp-back {
  text-align: center;
  padding: 2.5rem 0;
}
.tp-back a {
  font-family: var(--sans-jp);
  font-size: 0.8125rem;
  color: var(--gr-500);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tp-back a:hover {
  color: var(--tp-training);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tp-ratio__fill,
  .tp-other,
  .tp-btn,
  .tp-faq-item__a,
  .tp-faq-item__icon {
    transition: none !important;
  }
}
