/* Final visual layer for the public teacher profile. Loaded after legacy inline styles. */
.public-profile-container{max-width:1340px!important;padding:0 20px!important;background:#f5f7fa}
.tp-wrapper.grid,.tp-wrapper.grid.profile-right{max-width:1300px!important;grid-template-columns:420px minmax(0,1fr)!important;gap:24px!important;padding:48px 0 14px!important}
.tp-profile-box{padding:22px!important;border-color:#e3e7ee!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 28px rgba(31,43,71,.055)!important}
.tp-profile-box img.avatar{width:96px!important;height:96px!important;margin-bottom:9px!important;border:3px solid #ffc000!important}
.tp-name{font-size:18px!important;margin-bottom:3px!important}.tp-location,.tp-contact{margin:4px 0!important;font-size:11px!important}.tp-rating{margin:5px 0 12px!important;font-size:15px!important}.tp-link-box{margin-top:10px!important}
.tp-video-row{gap:12px!important}.tp-video-card{border-radius:14px!important;box-shadow:0 7px 20px rgba(25,36,61,.09)}.tp-video-buttons-row{gap:8px!important;margin-top:11px!important}.tp-btn{padding:8px 12px!important;font-size:10px!important;border-radius:10px!important}.tp-options{gap:7px!important;margin-top:8px!important}.tp-option{min-height:auto!important;padding:9px 10px!important;font-size:9px!important;line-height:1.6!important}.tp-guide-mark{font-size:8px!important}
.tp-resume-section{gap:7px!important;margin-top:18px!important;padding-top:14px!important}.tp-resume-item{border-radius:9px!important}.tp-resume-header{padding:10px 13px!important;font-size:11px!important}.tp-resume-body{padding:11px 14px!important;font-size:11px!important;line-height:1.85!important}.tp-resume-body>p{margin:0!important;color:#4f596a!important;font-size:11px!important;line-height:1.95!important}.tp-resume-list li{padding:8px 10px!important;margin-bottom:5px!important;font-size:11px!important}
.section-title{margin:24px 0 10px!important;font-size:17px!important}.class-box{padding:13px!important;border-radius:13px!important;background:#f7f9fb!important;border-color:#e2e6ed!important}.class-list li{padding:9px 11px!important;margin-bottom:7px!important;border-color:#f0d682!important;font-size:11px!important}.class-link{padding:6px 10px!important;font-size:9px!important}
.availability-title{margin:24px 0 10px!important;padding:0!important;color:#202a40!important;font-size:17px!important}.availability-info-box{padding:13px!important;margin-bottom:18px!important;border-radius:14px!important;box-shadow:none!important}.availability-info-box>div:first-child{margin-bottom:7px!important}.availability-info-box>div:first-child img{width:18px!important;height:18px!important}.availability-info-box>div:first-child h3{font-size:12px!important}.availability-info-box>div:nth-child(2){padding:9px 12px!important;margin-bottom:9px!important;border-radius:9px!important;font-size:10px!important;line-height:1.7!important}.legend-divider{margin:7px 0!important}.slot-list{margin-top:8px!important;border-radius:10px!important}.slot-row{min-height:0!important;padding:6px 8px!important}.slot-day{flex:0 0 82px!important;width:82px!important;height:auto!important;padding:5px 7px!important;font-size:10px!important;line-height:1.4!important}.slot-times{gap:5px!important;padding-inline-start:8px!important}.slot-range{margin:1px!important;padding:5px 8px!important;border-radius:6px!important;font-size:10px!important;line-height:1.4!important}.slot-cell{height:auto!important;padding:5px 8px!important;font-size:9px!important;line-height:1.4!important}
.teacher-public-courses{max-width:1300px!important;margin:18px auto 24px!important;padding:22px!important;box-sizing:border-box;border-radius:18px!important;box-shadow:0 8px 30px rgba(31,44,74,.055)!important}.teacher-public-courses>header{align-items:center!important;margin-bottom:15px!important;padding-bottom:13px!important}.teacher-public-courses>header h2{font-size:18px!important}.teacher-public-courses>header p{font-size:10px!important}.teacher-course-grid{grid-template-columns:repeat(auto-fill,minmax(285px,340px))!important;justify-content:start!important;gap:13px!important}.teacher-course-card{border-radius:14px!important}.teacher-course-cover{height:145px!important}.teacher-course-cover>i{width:33px!important;height:33px!important}.teacher-course-body{padding:13px!important}.teacher-course-body h3{min-height:auto!important;margin:5px 0!important;font-size:14px!important}.teacher-course-body>p{height:37px!important;font-size:9px!important;line-height:1.85!important}.teacher-course-stats{margin-top:9px!important}.teacher-course-stats span{padding:5px 7px!important;font-size:8px!important}.teacher-course-body footer{margin-top:10px!important;padding-top:10px!important}.teacher-course-body footer>strong{font-size:16px!important}.teacher-course-body footer>strong small{font-size:9px!important}.teacher-course-body footer>a{padding:8px 10px!important;font-size:9px!important}
.review-form-section,.modern-reviews-section{max-width:1300px!important;margin:20px auto!important;box-sizing:border-box;border-radius:16px!important}.review-form-section{padding:20px!important}.review-form-title,.reviews-header h3{font-size:17px!important}.review-form-row{gap:10px!important}.review-field{margin-bottom:10px!important}.review-field label{font-size:10px!important}.review-field input,.review-field select,.review-field textarea{padding:9px 10px!important;font-size:11px!important;border-radius:8px!important}.modern-reviews-section{padding:20px!important}.reviews-header{margin-bottom:14px!important;padding-bottom:12px!important}.reviews-grid{gap:10px!important}.review-card{padding:13px!important;border-radius:11px!important}.review-top-line{font-size:11px!important;margin-bottom:3px!important}.review-card p{font-size:10px!important;line-height:1.8!important}
.teacher-engagement-grid{width:100%;max-width:1300px;margin:20px auto;box-sizing:border-box}
.teacher-engagement-grid>.teacher-student-videos,
.teacher-engagement-grid>.review-form-section{max-width:none!important;min-width:0;box-sizing:border-box}
.teacher-engagement-grid :is(.teacher-student-videos h2,.review-form-title){margin:0 0 12px!important;color:#333!important;font-size:17px!important;font-weight:800!important;line-height:1.7!important}
@media(min-width:901px){
  .teacher-engagement-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,.7fr);align-items:stretch;gap:16px;padding:0 20px}
  .teacher-engagement-grid>:only-child{grid-column:1/-1}
  .teacher-engagement-grid>.teacher-student-videos,
  .teacher-engagement-grid>.review-form-section{height:100%;margin:0!important;padding:17px!important;border-radius:16px!important}
  .teacher-engagement-grid>.teacher-student-videos>header>span{font-size:9px}
  .teacher-engagement-grid>.teacher-student-videos>header>p{margin:2px 0 0;font-size:9px;line-height:1.8}
  .teacher-engagement-grid .student-performance-grid{display:flex;gap:10px;margin-top:13px;padding:0 0 8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c9ad59 #f1f3f6}
  .teacher-engagement-grid .student-performance-card{flex:0 0 calc((100% - 20px)/3);scroll-snap-align:start;border-radius:11px}
  .teacher-engagement-grid .student-performance-play>span{width:34px;height:34px;font-size:13px}
  .teacher-engagement-grid .student-performance-play small{bottom:6px;left:6px;padding:2px 5px;font-size:8px}
  .teacher-engagement-grid .student-performance-copy{padding:9px 10px 10px}
  .teacher-engagement-grid .student-performance-copy h3{margin-bottom:4px;font-size:10px;line-height:1.75}
  .teacher-engagement-grid .student-performance-copy>span{font-size:8px}
  .teacher-engagement-grid .student-performance-copy p{display:-webkit-box;margin:5px 0 0;overflow:hidden;font-size:8.5px;line-height:1.75;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .teacher-engagement-grid .student-performance-copy>a{margin-top:7px;font-size:7.5px}
  .teacher-engagement-grid>.review-form-section{display:flex;flex-direction:column}
  .teacher-engagement-grid .review-form-title{flex:0 0 auto}
  .teacher-engagement-grid #review-form{display:flex;flex:1;flex-direction:column;min-height:0}
  .teacher-engagement-grid .review-form-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  .teacher-engagement-grid .review-field{min-width:0;margin-bottom:7px!important;gap:4px}
  .teacher-engagement-grid .review-field label{font-size:9px!important}
  .teacher-engagement-grid .review-field input,
  .teacher-engagement-grid .review-field select,
  .teacher-engagement-grid .review-field textarea{padding:7px 8px!important;font-size:9.5px!important}
  .teacher-engagement-grid .review-field textarea{min-height:62px;max-height:88px}
  .teacher-engagement-grid #review-form>.tp-btn-cta{align-self:flex-end;margin-top:auto;padding:8px 15px;font-size:9px}
}
@media(max-width:900px){
  .teacher-engagement-grid{padding:0 20px}
  .teacher-engagement-grid>.teacher-student-videos,
  .teacher-engagement-grid>.review-form-section{margin:20px 0!important}
}
@media(max-width:980px){.tp-wrapper.grid,.tp-wrapper.grid.profile-right{grid-template-columns:1fr!important;gap:16px!important;padding:32px 0 10px!important}.teacher-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.public-profile-container{padding:0 12px!important}.tp-profile-box{padding:17px!important}.tp-video-row{grid-template-columns:1fr!important}.class-list li{align-items:flex-start!important;gap:8px!important;flex-direction:column!important}.availability-info-box>div:nth-child(2){display:none!important}.slot-row{align-items:flex-start!important}.slot-day{flex-basis:72px!important;width:72px!important}.slot-cell{white-space:normal!important}.teacher-public-courses{padding:16px 12px!important}.teacher-public-courses>header{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}.teacher-course-grid{grid-template-columns:1fr!important}.teacher-course-cover{height:185px!important}.review-form-section,.modern-reviews-section{padding:15px!important}.teacher-engagement-grid{padding:0 12px}}
