/**
 * Class Page 2026 prototype. Scoped to the gated lesson.
 * Player controls are left to Presto Player.
 */

body.ys-class-2026 {
  background: #f4f1ea;
}

body.ys-class-2026 .ys-class {
  --ys-ink: #0c2832;
  --ys-teal: #005970;
  --ys-paper: #f4f1ea;
  --ys-field: #fbfaf6;
  --ys-line: rgba(12, 40, 50, 0.16);
  --ys-muted: #3e5963;
  --ys-display: "miller-display", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --ys-sans: "avenir-next-lt-pro", "Avenir Next", "Segoe UI", sans-serif;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem);
  color: var(--ys-ink);
  background: var(--ys-paper);
  font-family: var(--ys-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.ys-class-2026 .ys-class__wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-right: auto;
  margin-left: auto;
}

body.ys-class-2026 .ys-class h1,
body.ys-class-2026 .ys-class h2,
body.ys-class-2026 .ys-class p {
  margin-top: 0;
}

body.ys-class-2026 .ys-class h1 {
  margin-bottom: 0.4rem;
  color: var(--ys-ink);
  font-family: var(--ys-display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: left;
}

body.ys-class-2026 .ys-class h2 {
  margin-bottom: 0.55rem;
  color: var(--ys-ink);
  font-family: var(--ys-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 300;
  line-height: 1.2;
}

body.ys-class-2026 .ys-class__intro {
  margin-bottom: 1rem;
}

body.ys-class-2026 .ys-class__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0;
  color: var(--ys-teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.ys-class-2026 .ys-class__duration {
  color: rgba(12, 40, 50, 0.72);
}

body.ys-class-2026 .ys-class__excerpt {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: rgba(12, 40, 50, 0.82);
}

body.ys-class-2026 .ys-class__excerpt > :last-child {
  margin-bottom: 0;
}

body.ys-class-2026 .ys-class__player-media {
  width: 100%;
}

body.ys-class-2026 .ys-class__player-media .ld-video,
body.ys-class-2026 .ys-class__player-media .presto-player,
body.ys-class-2026 .ys-class__player-media video,
body.ys-class-2026 .ys-class__player-media iframe {
  max-width: 100%;
}

/*
 * The class photograph is 700×500. Cap the preview at that width so the
 * pose is not enlarged, and keep the file's own proportions so the body,
 * extended foot and standing foot stay in frame.
 */
body.ys-class-2026 .ys-class__preview {
  position: relative;
  max-width: 700px;
}

body.ys-class-2026 .ys-class__preview-img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

body.ys-class-2026 .ys-class__preview-photo {
  position: relative;
  background: #0c2832;
}

body.ys-class-2026 .ys-class__preview-shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(12, 40, 50, 0.86) 0%, rgba(12, 40, 50, 0.5) 42%, rgba(12, 40, 50, 0) 100%);
  pointer-events: none;
}

body.ys-class-2026 .ys-class__preview-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.15rem 1.15rem 1rem;
  color: #f4f1ea;
}

body.ys-class-2026 .ys-class__preview-title,
body.ys-class-2026 .ys-class__preview-note,
body.ys-class-2026 .ys-class__preview-actions,
body.ys-class-2026 .ys-class__preview-more {
  margin: 0;
}

body.ys-class-2026 .ys-class__preview-title {
  font-family: var(--ys-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.15;
}

body.ys-class-2026 .ys-class__preview-note {
  max-width: 28rem;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

body.ys-class-2026 .ys-class__preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  margin-top: 0.85rem;
}

body.ys-class-2026 .ys-class__preview-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: #f4f1ea;
  color: #0c2832;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.ys-class-2026 .ys-class__preview-login,
body.ys-class-2026 .ys-class__preview-more a {
  color: #f4f1ea;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.ys-class-2026 .ys-class__preview-more {
  margin-top: 0.55rem;
}

body.ys-class-2026 .ys-class__preview-more a {
  font-weight: 500;
  opacity: 0.88;
}

body.ys-class-2026 .ys-class__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.9rem;
}

body.ys-class-2026 .ys-class__step {
  color: var(--ys-teal);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

body.ys-class-2026 .ys-class__actions .ys-btn,
body.ys-class-2026 .ys-class__actions input[type="submit"].ys-btn,
body.ys-class-2026 .ys-class__actions .simplefavorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--ys-teal);
  border-radius: 999px;
  background: var(--ys-teal);
  color: #f4f1ea;
  font-family: var(--ys-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: none;
  cursor: pointer;
}

body.ys-class-2026 .ys-class__actions .simplefavorite-button {
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  background: transparent !important;
  color: var(--ys-teal) !important;
  border-color: var(--ys-line) !important;
  box-shadow: none !important;
  font-size: 0.95rem;
}

body.ys-class-2026 .ys-class__actions .simplefavorite-button.active {
  color: var(--ys-ink) !important;
  border-color: var(--ys-teal) !important;
}

body.ys-class-2026 .ys-class__actions .simplefavorite-button i,
body.ys-class-2026 .ys-class__fav-icon {
  margin: 0 !important;
  color: inherit !important;
  font-size: 1rem;
  font-style: normal;
  line-height: 1;
}

body.ys-class-2026 .ys-class__actions .simplefavorite-button:focus-visible {
  outline: 2px solid var(--ys-ink);
  outline-offset: 3px;
}

body.ys-class-2026 .ys-class__actions #sfwd-mark-complete {
  margin: 0;
}

body.ys-class-2026 .ys-class__practice,
body.ys-class-2026 .ys-class__focus,
body.ys-class-2026 .ys-class__progress,
body.ys-class-2026 .ys-class__next,
body.ys-class-2026 .ys-class__comments {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

body.ys-class-2026 .ys-class__practice-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

body.ys-class-2026 .ys-class__pose {
  margin: 0;
}

body.ys-class-2026 .ys-class__pose-img {
  display: block;
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
}

body.ys-class-2026 .ys-class__pose-open,
body.ys-class-2026 .ys-class__pose-close {
  margin-top: 0.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ys-line);
  border-radius: 999px;
  background: var(--ys-field);
  color: var(--ys-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

body.ys-class-2026 .ys-class__pose-dialog {
  width: fit-content;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  padding: 1rem;
  border: 0;
  overflow: auto;
  background: var(--ys-paper);
}

body.ys-class-2026 .ys-class__pose-dialog::backdrop {
  background: rgba(12, 40, 50, 0.72);
}

body.ys-class-2026 .ys-class__pose-full {
  display: block;
  width: auto;
  max-width: min(92vw, 1160px);
  max-height: 78vh;
  height: auto;
  margin: 0 auto;
}

body.ys-class-2026 .ys-class__copy {
  color: rgba(12, 40, 50, 0.88);
}

body.ys-class-2026 .ys-class__copy > :last-child {
  margin-bottom: 0;
}

body.ys-class-2026 .ys-class__details h2 + .ys-class__copy + h2 {
  margin-top: 1.5rem;
}

body.ys-class-2026 .ys-class__next-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

body.ys-class-2026 .ys-class__next-head h2 {
  margin-bottom: 0;
}

body.ys-class-2026 .ys-class__next-nav {
  display: flex;
  gap: 0.45rem;
}

body.ys-class-2026 .ys-class__next-nav button {
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border: 1px solid var(--ys-line);
  border-radius: 999px;
  background: var(--ys-field);
  color: var(--ys-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

body.ys-class-2026 .ys-class__next-nav button:focus-visible {
  outline: 2px solid var(--ys-ink);
  outline-offset: 3px;
}

body.ys-class-2026 .ys-class__next-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

body.ys-class-2026 .ys-class__next-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0 0 0.25rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.ys-class-2026 .ys-class__next-list::-webkit-scrollbar {
  display: none;
}

body.ys-class-2026 .ys-class__next-list > li {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

body.ys-class-2026 .ys-class__next-list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem;
  border: 1px solid var(--ys-line);
  border-radius: 1rem;
  background: var(--ys-field);
  color: inherit;
  text-decoration: none;
}

body.ys-class-2026 .ys-class__next-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.75rem;
}

body.ys-class-2026 .ys-class__next-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: var(--ys-teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.ys-class-2026 .ys-class__next-title {
  margin-top: 0.35rem;
  font-weight: 600;
  line-height: 1.35;
}

body.ys-class-2026 .ys-class__comments h2 {
  font-family: var(--ys-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 300;
}

body.ys-class-2026 .ys-class__comments-intro {
  max-width: 40rem;
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

body.ys-class-2026 .ys-class__comments .must-log-in a {
  color: var(--ys-teal);
}

body.ys-class-2026 .ys-class__comments .x-comments-list,
body.ys-class-2026 .ys-class__comments .children {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

body.ys-class-2026 .ys-class__comments .children {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  margin-left: calc(3rem + 0.85rem);
}

body.ys-class-2026 .ys-class__comments li.comment {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 0.85rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--ys-line);
}

body.ys-class-2026 .ys-class__comments li.comment > .x-comment-img {
  grid-column: 1;
  grid-row: 1;
  float: none;
}

body.ys-class-2026 .ys-class__comments li.comment > article.comment {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.ys-class-2026 .ys-class__comments .x-comment-img .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

body.ys-class-2026 .ys-class__comments .x-comment-img .bypostauthor {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--ys-teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.ys-class-2026 .ys-class__comments .x-comment-author,
body.ys-class-2026 .ys-class__comments .x-comment-author a {
  color: var(--ys-ink);
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

body.ys-class-2026 .ys-class__comments .x-comment-time {
  color: var(--ys-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

body.ys-class-2026 .ys-class__comments .x-comment-content p {
  margin: 0.45rem 0 0;
}

body.ys-class-2026 .ys-class__comments .x-reply a {
  color: var(--ys-teal);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

body.ys-class-2026 .ys-class__comment-panel {
  margin-top: 0.9rem;
}

body.ys-class-2026 .ys-class__comment-panel summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--ys-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ys-teal);
  font-family: var(--ys-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

body.ys-class-2026 .ys-class__comment-panel summary::-webkit-details-marker {
  display: none;
}

body.ys-class-2026 .ys-class__comment-panel summary:focus-visible {
  outline: 2px solid var(--ys-ink);
  outline-offset: 3px;
}

body.ys-class-2026 .ys-class__comment-panel[open] summary {
  margin-bottom: 1rem;
}

body.ys-class-2026 .ys-class__comments .comment-form textarea,
body.ys-class-2026 .ys-class__comments .comment-form input[type="text"],
body.ys-class-2026 .ys-class__comments .comment-form input[type="email"] {
  width: 100%;
  max-width: 40rem;
  border: 1px solid var(--ys-line);
  border-radius: 0.6rem;
  background: var(--ys-field);
  color: var(--ys-ink);
  font: inherit;
}

body.ys-class-2026 .ys-class__comments .comment-submit {
  margin-top: 0.75rem;
  padding: 0.8rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--ys-teal);
  color: #f4f1ea;
  font-family: var(--ys-sans);
  font-weight: 600;
}

@media (min-width: 641px) {
  body.ys-class-2026 .ys-class__next-list > li {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 980px) {
  body.ys-class-2026 .ys-class__next-list > li {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 640px) {
  body.ys-class-2026 .ys-class__preview-copy {
    position: static;
    padding: 0.9rem 0 0;
    color: var(--ys-ink);
  }

  body.ys-class-2026 .ys-class__preview-shade {
    height: 22%;
    background: linear-gradient(to top, rgba(12, 40, 50, 0.35), rgba(12, 40, 50, 0));
  }

  body.ys-class-2026 .ys-class__preview-cta {
    background: var(--ys-teal);
    color: #f4f1ea;
  }

  body.ys-class-2026 .ys-class__preview-login,
  body.ys-class-2026 .ys-class__preview-more a {
    color: var(--ys-teal);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ys-class-2026 .ys-class__next-list {
    scroll-behavior: auto;
  }
}

/*
 * The pose grid stays at its 560px file size beside the practice notes
 * only when that column can remain 560px wide.
 */
@media (min-width: 1100px) {
  body.ys-class-2026 .ys-class__practice--with-grid .ys-class__practice-grid {
    grid-template-columns: 560px minmax(18rem, 1fr);
  }
}

@media (max-width: 640px) {
  body.ys-class-2026 .ys-class__actions {
    align-items: stretch;
  }

  body.ys-class-2026 .ys-class__actions #sfwd-mark-complete,
  body.ys-class-2026 .ys-class__actions .ys-btn {
    width: 100%;
  }

  body.ys-class-2026 .ys-class__comments .children {
    margin-left: 1.25rem;
  }
}
