/* Teacher list and public profiles. Tokens from core.css, so it follows the light/dark reading mode. */
.tch-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tch-search { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-muted); }
.tch-search:focus-within { border-color: var(--ph-magenta); }
.tch-bar .tch-search input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; border-radius: 0; box-shadow: none; -webkit-appearance: none; appearance: none; background: transparent; color: var(--ph-ink); font-size: 16px; outline: none; }
.tch-chips { margin-bottom: 18px; }
.tch-count { margin: 0 0 14px; color: var(--ph-muted); font-size: .9rem; }
.tch-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 16px; border: 1px dashed var(--ph-line2); border-radius: 8px; color: var(--ph-muted); text-align: center; }
.tch-empty .icon { width: 30px; height: 30px; }
.tch-empty p { margin: 0; }

.tch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .tch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .tch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tch-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); transition: border-color .2s ease; }
.tch-card:hover { border-color: var(--ph-magenta); }
.tch-card:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.tch-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph-surface2); }
.tch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .3s ease; }
.tch-card:hover .tch-photo img { transform: scale(1.03); }
.tch-initials { display: grid; place-items: center; width: 100%; height: 100%; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; color: var(--ph-ink2); }
.tch-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.tch-body strong { color: var(--ph-ink); font-size: 1.02rem; line-height: 1.3; }
.tch-role { color: var(--ph-magenta); font-size: .86rem; font-weight: 600; }
.tch-qual { color: var(--ph-muted); font-size: .8rem; line-height: 1.4; }
.tch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tch-tags em { font-style: normal; padding: 2px 8px; border: 1px solid var(--ph-line2); border-radius: 4px; font-size: .76rem; color: var(--ph-text); }
.tch-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--ph-muted); font-size: .8rem; }
.tch-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tch-meta .icon { width: 14px; height: 14px; }
.tch-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--ph-ink); font-size: .86rem; font-weight: 600; }
.tch-more .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.tch-card:hover .tch-more .icon { transform: translateX(3px); }
@media (max-width: 420px) {
  .tch-body { padding: 10px; }
  .tch-body strong { font-size: .94rem; }
  .tch-tags em:nth-child(n+3) { display: none; }
}

/* Profile */
.tch-hero { padding: 28px 0 36px; border-bottom: 1px solid var(--ph-line); background: var(--ph-bg2); }
.tch-hero .crumbs { margin-bottom: 22px; }
.tch-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 768px) { .tch-hero-in { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: center; } }
@media (min-width: 1200px) { .tch-hero-in { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; } }
.tch-portrait { aspect-ratio: 4 / 5; max-width: 340px; overflow: hidden; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface2); }
@media (max-width: 767px) { .tch-portrait { max-width: 220px; } }
.tch-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tch-intro h1 { margin: 0 0 6px; color: var(--ph-ink); font-size: clamp(1.7rem, 4.2vw, 2.8rem); line-height: 1.15; overflow-wrap: anywhere; }
.tch-intro .tch-role { margin: 0; font-size: 1.05rem; }
.tch-intro .tch-qual { margin: 4px 0 0; font-size: .92rem; }
.tch-lede { margin: 16px 0 0; max-width: 62ch; color: var(--ph-text); font-size: 1.02rem; line-height: 1.7; }
.tch-intro .tch-tags { margin-top: 16px; }
.tch-facts { display: flex; flex-wrap: wrap; gap: 0 44px; margin: 22px 0 0; padding-top: 2px; border-top: 1px solid var(--ph-line2); }
.tch-facts div { padding: 14px 0 0; min-width: 100px; }
.tch-facts dt { color: var(--ph-muted); font-size: .8rem; font-weight: 500; }
.tch-facts dd { margin: 0 0 2px; color: var(--ph-ink); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.tch-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.tch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.tch-social { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--ph-line2); border-radius: 8px; color: var(--ph-ink); transition: border-color .2s ease, color .2s ease; }
.tch-social:hover { border-color: var(--ph-magenta); color: var(--ph-magenta); }
.tch-social .icon { width: 18px; height: 18px; }

.tch-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 992px) { .tch-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 48px; } .tch-side { position: sticky; top: 96px; } }
.tch-block { margin-bottom: 36px; }
.tch-block h2, .tch-side h2 { margin: 0 0 14px; color: var(--ph-ink); font-size: 1.25rem; }
.tch-wide { padding-top: 28px; border-top: 1px solid var(--ph-line); }
.page-body .container > .tch-wide:first-child { padding-top: 0; border-top: 0; }
.tch-morecourses { margin-top: 24px; }
.tch-morecourses > summary { list-style: none; cursor: pointer; }
.tch-morecourses > summary::-webkit-details-marker { display: none; }
.tch-morecourses[open] > summary { display: none; }
.tch-prose { max-width: 70ch; color: var(--ph-text); line-height: 1.8; }
.tch-prose p { margin: 0 0 14px; }
.tch-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ph-line2); }
.tch-timeline li { position: relative; padding: 0 0 18px 20px; color: var(--ph-text); line-height: 1.6; }
.tch-timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--ph-magenta); }
.tch-timeline li:last-child { padding-bottom: 0; }
.tch-list, .tch-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tch-list li, .tch-side li { display: flex; gap: 10px; color: var(--ph-text); line-height: 1.55; }
.tch-list .icon, .tch-side .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--ph-magenta); }
.tch-side { padding: 20px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }

.tch-reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 768px) { .tch-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tch-reviews figure { margin: 0; padding: 18px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.tch-stars { display: flex; gap: 2px; color: var(--ph-line2); }
.tch-stars .icon { width: 15px; height: 15px; }
.tch-stars .on { color: var(--ph-yellow); }
.tch-stars .on .icon { fill: currentColor; }
.tch-reviews blockquote { margin: 10px 0 12px; color: var(--ph-text); line-height: 1.65; }
.tch-reviews figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.tch-reviews figcaption strong { color: var(--ph-ink); }
.tch-reviews figcaption a { color: var(--ph-muted); }
.tch-reviews figcaption a:hover { color: var(--ph-magenta); }

.tch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tch-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--ph-ink); font-weight: 600; font-size: .9rem; }
.tch-head .icon { width: 15px; height: 15px; }
.tch-others { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 576px) { .tch-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tch-others { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tch-others a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); transition: border-color .2s ease; }
.tch-others a:hover { border-color: var(--ph-magenta); }
.tch-others .av { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; overflow: hidden; border-radius: 6px; background: var(--ph-surface2); color: var(--ph-ink2); font-weight: 700; }
.tch-others .av img { width: 100%; height: 100%; object-fit: cover; }
.tch-others span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tch-others strong { color: var(--ph-ink); font-size: .94rem; }
.tch-others small { color: var(--ph-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .tch-photo img, .tch-more .icon { transition: none; }
  .tch-card:hover .tch-photo img { transform: none; }
}
