/* Course information and teacher portraits use their own readable scales. */
.course-overview, .team-page, .schedule-page { padding-top: 22px; }
.course-index {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-block: 1px solid #c3b39f;
  padding-block: 12px;
  margin-bottom: 30px;
}
.course-index > p { color: #584635; font-size: 14px; font-weight: 700; }
.course-overview .filter-tabs { gap: 9px; margin: 0; }
.course-overview .filter-tabs button {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  border-color: #bfb29f;
}
.course-overview .filter-tabs button.active { border-color: var(--espresso); }
.course-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.course-hero-actions .btn { min-height: 44px; font-size: 13px; }
.course-programmes {
  margin-top: clamp(28px, 4vw, 50px);
  padding-top: 21px;
  border-top: 1px solid #c3b39f;
}
.course-programmes h2 { color: var(--espresso); font-size: clamp(21px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.04em; }
.course-programmes .programme-strip { padding-top: 10px; gap: 8px 20px; }
.course-programmes .programme-strip .text-link {
  background: transparent;
  border-radius: 0;
  padding-inline: 0;
  font-size: 14px;
}
.course-programmes .programme-strip .text-link:hover { background: transparent; }
.course-grid { gap: 26px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.course-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d6cab9;
  border-radius: 22px;
  background: #fcf7ef;
  transition: border-color .24s, box-shadow .24s;
}
.course-card:hover { border-color: #a58b6a; box-shadow: 0 9px 22px #38271a10; }
.course-card .course-image, .course-card:nth-child(n) .course-image {
  height: auto;
  aspect-ratio: 1.58;
  border-radius: 0;
  background: #e0d1bd;
}
.course-card .course-image img { filter: none; object-position: center; }
.course-card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2.2vw, 28px); }
.course-category {
  display: block;
  color: #65523e;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .085em;
  font-weight: 700;
  text-transform: uppercase;
}
.course-card h2 {
  margin: 8px 0 10px;
  color: #2b241e;
  font-size: clamp(24px, 2.45vw, 36px);
  line-height: 1.12;
  letter-spacing: -.05em;
  overflow-wrap: break-word;
}
.course-card p {
  color: #514437;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 19px;
}
.course-card-more {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #d9cebd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3e3024;
  font-size: 14px;
  font-weight: 700;
}
.course-card-more .arrow { width: 17px; height: 17px; }
.course-detail-top .course-detail-copy h1 { text-wrap: balance; overflow-wrap: break-word; }
.course-detail-top .course-detail-copy p { color: #f3e9da; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; max-width: 43ch; }
.course-detail-top .course-detail-copy .eyebrow { color: #edd6b7; font-size: 12px; letter-spacing: .07em; line-height: 1.4; }
.course-detail-top .course-detail-copy .btn { font-size: 14px; }
.course-detail-top .photo img { filter: none; }
.course-detail-text > .eyebrow { font-size: 12px; color: #6c563e; }
.detail-body .course-detail-text h2 { font-size: clamp(33px, 4vw, 52px); text-wrap: balance; }
.detail-body .course-detail-text p { color: #4d4035; font-size: 17px; line-height: 1.68; max-width: 65ch; }
.detail-body .course-detail-text .course-level-note { font-size: 14px; }
.detail-body .levels { grid-template-columns: repeat(3,minmax(0,1fr)); }
.detail-body .levels div { min-width: 0; padding: 15px 12px; }
.detail-body .levels span { font-size: clamp(18px, 2vw, 27px); }
.detail-body .levels p { font-size: 14px; margin: 3px 0; line-height: 1.35; }
.detail-body .detail-aside { color: #332820; padding: clamp(23px, 3vw, 36px); }
.detail-body .detail-aside dt { color: #65523e; font-size: 12px; letter-spacing: .06em; }
.detail-body .detail-aside dd { color: #332820; font-size: 16px; line-height: 1.55; }
.course-trial-link { margin-top: 17px; font-size: 14px; }

.team-page .teacher-grid, .team-strip .teacher-grid { gap: 30px 20px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.teacher-grid .teacher-card, .teacher-grid .teacher-card:nth-child(n) {
  display: block;
  min-width: 0;
  max-width: none;
  margin: 0;
  color: #2b241e;
  border: 1px solid #d6cab9;
  border-radius: 18px;
  overflow: hidden;
  background: #fcf7ef;
}
.teacher-grid .teacher-card .teacher-photo, .teacher-grid .teacher-card:nth-child(n) .teacher-photo {
  height: auto;
  aspect-ratio: 1.07;
  border-radius: 0;
  background: #e6dbcb;
}
.teacher-grid .teacher-card .portrait-image, .teacher-detail .photo .portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-focus, 50% 35%);
  filter: none;
  transform: none;
}
.teacher-grid .teacher-card .portrait-compact, .teacher-detail .portrait-compact { display: grid; place-items: center; }
.teacher-grid .teacher-card .portrait-compact .portrait-image, .teacher-detail .portrait-compact .portrait-image {
  width: min(78%,200px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  background: #f5eadc;
}
.teacher-card-label { padding: 17px 15px 19px; display: grid; grid-template-columns: minmax(0,1fr) 22px; align-items: start; gap: 8px; }
.teacher-grid .teacher-card .teacher-card-label h3 {
  margin: 0 0 5px;
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 1.16;
  letter-spacing: -.037em;
  overflow-wrap: anywhere;
}
.teacher-role { color: #58493c; font-size: 14px; line-height: 1.45; margin: 0; }
.teacher-card-arrow { color: #6d543b; margin-top: 3px; }
.teacher-card-arrow .arrow { width: 20px; height: 20px; }
.teacher-grid .teacher-card:hover .teacher-card-arrow { color: #241c15; }
.teacher-profile-section { padding-block: clamp(45px, 7vw, 95px); }
.teacher-detail {
  grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr);
  grid-template-areas: "photo heading" "photo bio";
  gap: 24px clamp(32px, 6vw, 86px);
  align-items: start;
}
.teacher-profile-heading { grid-area: heading; min-width: 0; }
.teacher-detail .photo {
  position: relative;
  top: auto;
  grid-area: photo;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  height: auto;
  aspect-ratio: 1.06;
  border-radius: 23px;
  overflow: hidden;
  background: #e6dbcb;
}
.teacher-detail .photo .portrait-image { position: absolute; inset: 0; }
.teacher-detail .portrait-compact { aspect-ratio: 1.2; }
.teacher-detail .portrait-compact .portrait-image { position: static; }
.teacher-back { display: inline-block; color: #674f38; font-size: 14px; font-weight: 600; }
.teacher-detail h1 {
  margin: 15px 0 9px;
  font-size: clamp(36px, 5.1vw, 70px);
  line-height: 1.04;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.teacher-detail .teacher-profile-role {
  margin: 0;
  color: #604830;
  font-size: clamp(16px, 1.75vw, 21px);
  font-weight: 650;
  line-height: 1.45;
}
.teacher-profile-bio { grid-area: bio; min-width: 0; border-top: 1px solid #cbbba5; padding-top: 21px; }
.teacher-profile-bio h2 { font-family: var(--sans); font-size: 21px; font-weight: 600; margin: 0 0 12px; }
.teacher-detail .teacher-profile-bio p { color: #473b30; max-width: 64ch; font-size: 17px; line-height: 1.67; margin: 0 0 16px; }
.teacher-profile-actions { display: flex; align-items: center; gap: 14px 23px; flex-wrap: wrap; margin-top: 23px; }
.teacher-profile-actions .btn { margin-top: 0; min-height: 44px; font-size: 14px; }
.teacher-profile-actions .text-link { font-size: 14px; }
.ed-studio .ed-title { font-size: clamp(42px, 5.6vw, 90px); }

.course-card:focus-visible, .teacher-card:focus-visible, .filter-tabs button:focus-visible {
  outline: 3px solid #785738;
  outline-offset: 4px;
}
@media (max-width: 1030px) {
  .team-page .teacher-grid, .team-strip .teacher-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .teacher-card-label { grid-template-columns: minmax(0,1fr); }
  .teacher-card-arrow { display: none; }
}
@media (max-width: 760px) {
  .teacher-detail {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "heading" "photo" "bio";
    gap: 21px;
  }
  .teacher-detail .photo { max-width: 470px; }
  .teacher-profile-section { padding-top: 35px; }
  .teacher-detail .teacher-profile-bio p, .detail-body .course-detail-text p { font-size: 16px; }
  .team-page .teacher-grid, .team-strip .teacher-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  .teacher-grid .teacher-card .teacher-card-label h3 { font-size: clamp(17px, 4.6vw, 23px); }
  .teacher-role { font-size: 13px; }
  .teacher-card-label { padding: 12px 10px 14px; }
  .ed-studio .ed-title { font-size: clamp(38px, 9.1vw, 58px); }
}
@media (max-width: 560px) {
  .course-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .course-overview .filter-tabs button { font-size: 13px; padding-inline: 14px; }
  .course-detail-top .course-detail-copy h1 { font-size: clamp(36px, 9vw, 50px); }
  .course-detail-top .photo { height: auto; aspect-ratio: 1.4; }
  .course-detail-top .photo img { border-radius: 0; }
  .teacher-detail h1 { font-size: clamp(34px, 10vw, 48px); }
  .detail-body .levels { gap: 6px; }
}

.page-hero-readable p {
  max-width: 54ch;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.57;
  color: #55493d;
}
.page-hero-readable .page-hero-row .text-link { min-height: 44px; font-size: 14px; }
.page-hero-readable .eyebrow { font-size: 11px; }
.page-hero .title { font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
.title em, .page-hero .title em, .welcome-inner h2 em, .price-welcome h2 em, .modal-copy h2 em {
  font: inherit;
  letter-spacing: inherit;
}
.page-hero .title em { color: #73583e; }
.schedule-page .schedule-intro {
  margin-top: clamp(26px, 4vw, 50px);
  padding-block: 23px 0;
  border-top: 1px solid #c3b39f;
}
.schedule-page .schedule-intro span { font: 700 26px/1.2 var(--sans); color: #73583e; }
.schedule-page .schedule-intro h2 { font-size: 17px; font-weight: 700; }
.schedule-page .schedule-intro p, .schedule-page .schedule-fallback { font-size: 14px; }
.ed-tab-text small, .ed-panel-caption p, .ed-portraits small { font-size: 14px; }
.ed-programme-tab:focus-visible { outline: 3px solid #785738; outline-offset: 3px; }
@media (max-width: 560px) {
  .page-hero-readable { padding-bottom: 28px; }
  .course-hero-actions { margin-top: 12px; }
  .page-hero-readable .course-hero-actions .text-link { margin-top: 0; }
  .ed-tab-text small, .ed-panel-caption p, .ed-portraits small { font-size: 13px; }
}
