/* Expert profile page layout. */

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 42px;
  align-items: center;
  text-align: left;
}
.subpage-hero .subpage-lead {
  margin: 0 0 14px;
}
.pv-hero-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bg-border);
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.pv-hero-photo picture,
.pv-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.pv-hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 38%;
}

.pv-note {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding: 12px 18px;
  border: 1px dashed var(--bg-border);
  border-radius: 12px;
}
.pv-note strong { color: #7CE0A8; font-weight: 600; }
.pv-note a { color: #7CE0A8; }

/* ─── Person card: photo + name + facts ─── */
.pv-person {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 70px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 680px) {
  .subpage-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 18px 34px;
    gap: 20px;
  }
  .subpage-h1 {
    font-size: clamp(1.85rem, 10vw, 2.25rem);
    margin-bottom: 14px;
  }
  .subpage-hero .subpage-lead { margin-left: auto; margin-right: auto; }
  .pv-hero-photo {
    width: min(210px, 58vw);
    justify-self: center;
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(0,0,0,.24);
  }
  .pv-person {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
    padding: 10px 18px 56px;
  }
  .pv-person > div { order: 1; }
  .pv-person .pv-photo { order: 2; }
  .pv-person-bio p,
  .pv-section p {
    font-size: 0.94rem;
    line-height: 1.68;
  }
  .pv-facts {
    justify-content: center;
  }
}

.pv-photo {
  width: 220px;
  flex-shrink: 0;
  margin: 0;
}
.pv-photo img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--bg-border);
  display: block;
}
.pv-photo-caption {
  margin-top: 10px;
  font-size: 0.72rem;
  text-align: center;
  padding: 0 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 680px) {
  .pv-photo {
    width: min(230px, 64vw);
  }
  .pv-photo img {
    border-radius: 18px;
  }
  .pv-section {
    padding: 46px 18px;
  }
}

@media (max-width: 380px) {
  .pv-hero-photo {
    width: min(196px, 58vw);
  }
  .pv-photo {
    width: min(200px, 60vw);
  }
}

.pv-person-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.pv-person-role {
  font-size: 0.85rem;
  color: var(--rose-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.pv-person-bio p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.pv-person-bio strong { color: var(--text); font-weight: 600; }

/* ─── Fact chips ─── */
.pv-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pv-facts li {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Section wrapper for education/supervision/pricing blocks ─── */
.pv-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--bg-border);
}
.pv-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.pv-section p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.pv-section p strong { color: var(--text); font-weight: 600; }
.pv-section ul { margin: 18px 0 0; padding-left: 20px; }
.pv-section li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.pv-section li strong { color: var(--text); font-weight: 600; }

/* ─── Pricing pair ─── */
.pv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
