/* ==========================================================================
   teacher-profile.html — public instructor page /instructors/<slug>/ (theme: gh-instructor.php +
   template-parts/instructor-page.php). Page composition only: components = design system, tokens only, logical
   properties. Prefix tp-. (instructor.html / instructor.css = the instructor DASHBOARD in the app — different page.)
   ========================================================================== */

.tp-page{padding-block:var(--gh-ref-space-500) var(--gh-ref-space-1200)}
.tp-page>.gh-breadcrumb{margin-block-end:var(--gh-ref-space-400)}
.tp-page .tp-sec{padding-block:var(--gh-ref-space-1000) 0}

/* ---------- hero: who + numbers ---------- */
.tp-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,22rem);align-items:center;gap:var(--gh-ref-space-800);padding:var(--gh-ref-space-800)}
.tp-hero__main{display:flex;align-items:flex-start;gap:var(--gh-ref-space-600);min-inline-size:0}
.tp-hero__photo{flex:none}
.tp-hero__photo img{inline-size:100%;block-size:100%;object-fit:cover}
.tp-hero__text{display:flex;flex-direction:column;align-items:flex-start;gap:var(--gh-ref-space-300);min-inline-size:0}
.tp-hero__name.gh-page-title{line-height:1.3;text-wrap:balance}
.tp-hero__role{font-size:var(--gh-type-label-size);color:var(--gh-color-text-secondary)}
.tp-hero__bio{max-inline-size:38rem;font-size:var(--gh-type-body-lg-size);line-height:var(--gh-ref-font-line-height-relaxed);color:var(--gh-color-text-secondary)}
.tp-hero__text .gh-btn-row{margin-block-start:var(--gh-ref-space-200)}
.gh-stat-group.tp-hero__stats{grid-template-columns:minmax(0,1fr)}
.tp-social{display:flex;flex-wrap:wrap;gap:var(--gh-ref-space-150);margin:0;padding:0;list-style:none}

.tp-nav{margin-block-start:var(--gh-ref-space-600)}

/* ---------- about: story / approach / skills ---------- */
.tp-stack{display:flex;flex-direction:column;gap:var(--gh-layout-gap);min-inline-size:0}
.tp-stack--row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));align-items:start}
.tp-text{display:flex;flex-direction:column;gap:var(--gh-ref-space-300);line-height:var(--gh-ref-font-line-height-relaxed);color:var(--gh-color-text-secondary)}
.tp-skills__list{display:flex;flex-wrap:wrap;gap:var(--gh-ref-space-200);padding:0;list-style:none}
.tp-note{font-size:var(--gh-type-caption-size);line-height:var(--gh-ref-font-line-height-relaxed);color:var(--gh-color-text-tertiary)}

/* ---------- courses ---------- */
.tp-sub{margin-block:var(--gh-ref-space-800) var(--gh-ref-space-200);font-size:var(--gh-type-heading-4-size);font-weight:var(--gh-ref-font-weight-bold)}
.tp-lead{margin-block-end:var(--gh-ref-space-400);max-inline-size:44rem}
.tp-more{margin-block-start:var(--gh-ref-space-400)}

/* ---------- paths ---------- */
.tp-path{gap:var(--gh-ref-space-300)}
.tp-path__art{aspect-ratio:16/7;border-radius:var(--gh-radius-inner);overflow:hidden;background:var(--gh-color-surface-media)}
.tp-path__art svg{inline-size:100%;block-size:100%}
.tp-path .gh-tile__title a{color:inherit}
.tp-path .gh-tile__title a:hover{text-decoration:underline;text-underline-offset:.2em}
.tp-path__meta{display:flex;align-items:center;flex-wrap:wrap;gap:var(--gh-ref-space-200);font-size:var(--gh-type-label-sm-size);color:var(--gh-color-text-secondary)}
.tp-path__list{display:flex;flex-direction:column;gap:var(--gh-ref-space-100);margin:var(--gh-ref-space-200) 0 0;padding-block-start:var(--gh-ref-space-300);padding-inline-start:var(--gh-ref-space-500);border-block-start:1px solid var(--gh-color-border-subtle);
  font-size:var(--gh-type-label-sm-size);line-height:1.7;color:var(--gh-color-text-secondary)}
.tp-path__list a{color:var(--gh-color-text-primary);text-decoration:underline;text-underline-offset:.2em}

/* ---------- portfolio ---------- */
.tp-works .gh-artwork__open{display:block}
.tp-works img{display:block;inline-size:100%;block-size:auto}

/* ---------- timeline ---------- */
.tp-timeline{padding:var(--gh-ref-space-600)}
.tp-timeline__body{display:flex;flex-direction:column;gap:var(--gh-ref-space-100);min-inline-size:0}
.tp-timeline__text{max-inline-size:44rem;font-size:var(--gh-type-body-sm-size);line-height:var(--gh-ref-font-line-height-relaxed);color:var(--gh-color-text-secondary)}

/* ---------- reviews ---------- */
.tp-review{gap:var(--gh-ref-space-300)}
.tp-review__text{font-size:var(--gh-type-body-size);font-weight:var(--gh-ref-font-weight-regular);line-height:var(--gh-ref-font-line-height-relaxed)}
.tp-review .gh-quote__by{margin-block-start:auto}
.tp-review .gh-quote__who small a{color:inherit;text-decoration:underline;text-underline-offset:.2em}

/* ---------- final row ---------- */
.tp-cta{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--gh-ref-space-500);padding:var(--gh-ref-space-700)}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .tp-hero{grid-template-columns:minmax(0,1fr)}
  .gh-stat-group.tp-hero__stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
}
@media (max-width:860px){
  .tp-hero{padding:var(--gh-ref-space-600) var(--gh-ref-space-500);gap:var(--gh-ref-space-600)}
  .tp-hero__main{flex-direction:column;gap:var(--gh-ref-space-400)}
  .tp-cta{flex-direction:column;align-items:flex-start;padding:var(--gh-ref-space-600) var(--gh-ref-space-500)}
}
