/* Scoped TTC presentation; the existing course player supplies its own controls. */
.ttc-page { padding-top: 40px; padding-bottom: 72px; }
.ttc-home-head { max-width: 820px; margin: 0 0 44px; }
.ttc-home-head > .eyebrow { display: block; margin-top: 28px; }
.ttc-home-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08; margin: 14px 0 22px; }
.ttc-home-head .lede { max-width: 720px; line-height: 1.6; }
.ttc-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.ttc-card { border: 1px solid #dedfd8; background: #fffdf8; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ttc-card > img { width: 100%; height: 210px; object-fit: cover; object-position: 50% 40%; }
.ttc-card__copy { padding: 24px; display: flex; flex: 1; flex-direction: column; gap: 12px; }
.ttc-card__copy h2 { font-size: 1.7rem; line-height: 1.15; margin: 0; }
.ttc-card__copy p { margin: 0; line-height: 1.6; }
.ttc-card__copy .btn { margin-top: auto; align-self: start; white-space: normal; }
.ttc-card__available { color: #4a675b; font-size: .88rem; padding-bottom: 8px; }
.ttc-update-note { margin-top: 32px; padding: 24px 28px; background: #f0eee5; border-radius: 12px; line-height: 1.65; }
.ttc-update-note p { max-width: 900px; }
.ttc-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 24px; }
.ttc-breadcrumb a { color: #315d4e; text-decoration-thickness: 1px; text-underline-offset: 4px; }
[data-ttc-section] .cw-head { padding-top: 0; }
[data-ttc-section] .cw-head__text { min-width: 0; }
[data-ttc-section] .cw-head h1 { overflow-wrap: anywhere; }
[data-ttc-section] .cw-lesson-audio { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.ttc-card--link { color: var(--ink); text-decoration: none; }
.ttc-card--link:hover, .ttc-card--link:focus-visible { color: var(--ink); border-color: #315d4e; }
.ttc-card--link:focus-visible { outline: 3px solid #315d4e; outline-offset: 3px; }
.ttc-card--link:hover .btn, .ttc-card--link:focus-visible .btn { background: #315d4e; border-color: #315d4e; color: white; }
.ttc-cards--workshops { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ttc-cards--workshops .ttc-card > img { object-position: center; }
.ttc-book { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 24px; margin-bottom: 24px; background: #f0eee5; border-radius: 12px; }
.ttc-book h2 { margin: 0; font-size: 1.45rem; }
.ttc-book p { margin: .3rem 0 0; }
@media (min-width: 780px) and (max-width: 1020px) {
  [data-ttc-section] .cw-lesson { grid-template-columns: minmax(0,1fr) minmax(240px,33%); }
}
.ttc-study-notes { margin-top: 28px; border-top: 1px solid #dedfd8; padding-top: 18px; }
.ttc-study-notes summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.ttc-study-notes p { line-height: 1.75; }
.ttc-material-actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-ttc-available] .ttc-card__copy h2 { font-size: 1.6rem; }
@media (max-width: 960px) { .ttc-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .ttc-page { padding-top: 24px; }
  .ttc-cards { grid-template-columns: 1fr; gap: 20px; }
  .ttc-card > img { height: 230px; }
  .ttc-card__copy { padding: 22px; }
  .ttc-breadcrumb { font-size: .92rem; }
  .ttc-update-note { padding: 20px; }
  [data-ttc-section] .cw-head__meta { display: block; line-height: 1.7; }
}
.ttc-research { max-width: 920px; }
.ttc-research-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 12px; margin: 20px 0 12px; }
.ttc-research-filters label { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
.ttc-research-filters select { min-width: 0; width: 100%; border: 1px solid #b6bcb0; border-radius: 8px; background: #fffdf8; padding: 9px; font: inherit; color: inherit; }
.ttc-research-group { margin: 26px 0; }
.ttc-research .ttc-research-entry { display: block; margin: 10px 0; overflow-wrap: anywhere; }
.ttc-research-entry--featured { border-color: #5f806e; }
.ttc-research-entry summary { cursor: pointer; line-height: 1.5; }
.ttc-research-entry summary span, .ttc-research-entry summary small { display: block; margin: 4px 0 0; }
.ttc-research-entry summary strong { font-size: 1.15rem; }
.ttc-research-entry__body { border-top: 1px solid #dedfd8; margin-top: 12px; padding-top: 8px; }
.ttc-research-entry__body dt { margin-top: 14px; font-weight: 600; }
.ttc-research-entry__body dd { margin: 4px 0 0; }
.ttc-research-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.ttc-research-links p { margin: 0; }
@media (max-width: 620px) {
  .cw-tabs--research .cw-tabs__inner { flex-wrap: wrap; }
  .cw-tabs--research [role="tab"] { padding-inline: .75rem; white-space: normal; }
  [data-ttc-section] .cw-head__meta > span { margin-inline: .35em; }
}

/* TTC covers: keep the title and the source photo in the same block. */
.ttc-section-hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 18px;
  background: #273e35;
  color: #fffdf6;
}
.ttc-section-hero--text { grid-template-columns: 1fr; }
.ttc-section-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .65rem;
  padding: clamp(22px, 3vw, 44px);
}
.ttc-section-hero__copy .eyebrow { color: #c8dccc; letter-spacing: .11em; }
.ttc-section-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  line-height: 1.06;
  overflow-wrap: break-word;
}
.ttc-section-hero__teacher { margin: 0; color: #fffdf6; font-weight: 600; }
.ttc-section-hero__intro {
  max-width: 36ch;
  margin: 0;
  color: #ecf0e8;
  font-size: clamp(.94rem, 1.3vw, 1.06rem);
  line-height: 1.55;
}
.ttc-section-hero__photo { position: relative; min-width: 0; min-height: 250px; }
.ttc-section-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}
.ttc-section-hero--nidra .ttc-section-hero__photo img { object-position: 50% 56%; }
.ttc-section-hero .cw-progress {
  width: min(100%, 230px);
  margin-top: .3rem;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  gap: .36rem;
}
.ttc-section-hero .cw-progress__label,
.ttc-section-hero .cw-progress__label strong { color: #e4ede4; }
.ttc-section-hero .cw-progress__bar { height: 4px; background: #5b7465; }
.ttc-section-hero .cw-progress__bar span { background: #c4e0cd; }
.ttc-breadcrumb { margin-bottom: 16px; }
.ttc-cards--workshops { gap: 22px; }
.ttc-workshop-card__photo {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #dfded4;
  overflow: hidden;
}
.ttc-workshop-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ttc-workshop-card .ttc-card__copy { gap: .6rem; }
.ttc-workshop-card .ttc-card__copy h2 { font-size: clamp(1.4rem, 2.25vw, 2rem); }
.ttc-workshop-card .ttc-card__copy p { max-width: 48ch; }
.ttc-workshop-card__action {
  display: inline-flex;
  align-self: flex-start;
  align-items: baseline;
  gap: .5rem;
  padding-top: .65rem;
  margin-top: auto;
  color: #315d4e;
  font-weight: 600;
}
.ttc-workshop-card:hover .ttc-workshop-card__action,
.ttc-workshop-card:focus-visible .ttc-workshop-card__action { text-decoration: underline; }
@media (max-width: 760px) {
  .ttc-section-hero { grid-template-columns: 1fr; }
  .ttc-section-hero__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .ttc-section-hero__copy { padding: 20px; }
}

/* Keep the programme and chapter timings beside the TTC player. */
[data-ttc-section] .cw-lesson--ttc {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
[data-ttc-section] .cw-lesson--full {
  grid-template-columns: minmax(0, 1fr);
}
.cw-lesson--ttc .cw-stage,
.cw-lesson--ttc .cw-lesson__details,
.cw-rail--ttc > section {
  min-width: 0;
}
.cw-lesson--ttc .cw-player {
  scroll-margin-top: calc(var(--cw-head, 74px) + 66px);
}
.cw-rail--ttc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: none;
}
.cw-rail--ttc-dual {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
}
.cw-rail--ttc > section + section {
  border-left: 1px solid var(--cw-line);
}
.cw-rail--ttc h3 {
  margin: 0;
  padding: .85rem .7rem;
  background: var(--cw-soft);
  border-bottom: 1px solid var(--cw-line);
  font: 500 .86rem/1.35 var(--font-body);
}
.cw-rail--ttc .cw-rail__body {
  max-height: max(12rem, calc(100vh - var(--cw-head, 74px) - 150px));
}
.cw-rail--ttc .cw-syl h4 {
  margin: .65rem .7rem .3rem;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.cw-rail--ttc .cw-syl button {
  grid-template-columns: 18px minmax(0, 1fr);
  padding: .65rem .55rem;
}
.cw-rail--ttc .cw-syl__title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cw-rail--ttc .cw-syl__title small {
  display: block;
  margin-top: .2rem;
  font-size: .78rem;
}
.cw-rail--ttc .cw-chapters button {
  grid-template-columns: 3.45rem minmax(0, 1fr);
  gap: .4rem;
  padding: .65rem .55rem;
  font-size: .84rem;
  overflow-wrap: anywhere;
}
@media (max-width: 1020px) {
  [data-ttc-section] .cw-lesson--ttc {
    grid-template-columns: minmax(0, 1fr);
  }
  .cw-lesson--ttc .cw-stage {
    display: contents;
  }
  .cw-lesson--ttc .cw-player {
    order: -2;
    width: 100%;
    margin-inline: 0;
  }
  .cw-rail--ttc {
    order: -1;
    position: static;
  }
  .cw-rail--ttc .cw-rail__body {
    max-height: 24rem;
  }
}
@media (max-width: 480px) {
  .cw-rail--ttc h3 {
    padding: .7rem .5rem;
  }
  .cw-rail--ttc .cw-chapters button {
    grid-template-columns: minmax(0, 1fr);
    gap: .15rem;
  }
}
/* Show the instructor's side of the lecture frame; the slide is outside the cover. */
.ttc-section-hero--philosophy .ttc-section-hero__photo { overflow: hidden; }
.ttc-section-hero--philosophy .ttc-section-hero__photo img {
  width: 185.2%;
  max-width: none;
  left: -85.2%;
  object-position: 50% 10%;
}
.ttc-section-hero--backbends .ttc-section-hero__photo img { object-position: 50% 88%; }
.ttc-workshop-card__photo { aspect-ratio: 16 / 10; }
.ttc-workshop-card--hip-opening .ttc-workshop-card__photo img {
  width: 133.4%;
  max-width: none;
  margin-left: -16.7%;
  object-position: 50% 69%;
}
@media (min-width: 761px) {
  .ttc-section-hero--philosophy {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(45%, 460px));
  }
}
.ttc-section-hero--spine-yogatherapy .ttc-section-hero__photo,
.ttc-section-hero--backbends .ttc-section-hero__photo { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .ttc-section-hero--philosophy .ttc-section-hero__photo { aspect-ratio: 5 / 4; }
}

.ttc-cards--anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .ttc-cards--anatomy { grid-template-columns: 1fr; }
}
