.platform-login { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .86rem; font-weight: 750; text-decoration: none; transition: transform 160ms ease-out, background-color 160ms ease-out; }
.platform-login:hover { background: #fff; transform: translateY(-2px); }
.catalog-intro { max-width: 760px; margin-bottom: 38px; }
.catalog-intro h1, .catalog-poster h2, .empty-catalog h1 { margin: 0; font-family: var(--font-display); letter-spacing: -.04em; }
.catalog-intro h1, .empty-catalog h1 { font-size: clamp(2.7rem, 5vw, 5rem); line-height: .94; }
.catalog-intro p, .empty-catalog p { max-width: 59ch; margin: 18px 0 0; color: var(--muted); font-size: 1.03rem; }
.catalog-grid { display: grid; gap: 20px; }
.catalog-poster { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); min-height: 408px; overflow: hidden; border-radius: 26px; background: var(--surface-muted); }
.catalog-poster__cover { position: relative; display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 28px; background: var(--ink); color: #fff; isolation: isolate; }
.catalog-poster__cover::before { position: absolute; z-index: -1; top: -26%; right: -18%; width: 78%; aspect-ratio: 1; border-radius: 46% 54% 49% 51%; background: var(--lime); content: ""; }
.catalog-poster__cover::after { position: absolute; z-index: -1; right: 18%; bottom: -20%; width: 70%; aspect-ratio: 1; border-radius: 58% 42% 53% 47%; background: var(--turquoise); content: ""; }
.catalog-poster__cover span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px 13px 13px 4px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 800; }
.catalog-poster__cover strong { max-width: 7ch; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); line-height: .84; letter-spacing: -.04em; overflow-wrap: anywhere; }
.catalog-poster__cover i { position: absolute; display: block; height: 1px; background: rgba(255,255,255,.62); transform-origin: left center; }
.catalog-poster__cover i:nth-of-type(1) { width: 55%; right: -5%; top: 46%; transform: rotate(-38deg); }
.catalog-poster__cover i:nth-of-type(2) { width: 44%; right: 10%; bottom: 21%; transform: rotate(48deg); }
.catalog-poster__cover i:nth-of-type(3) { width: 35%; left: 12%; bottom: 15%; transform: rotate(-12deg); }
.catalog-poster__body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 30px; padding: clamp(28px, 4vw, 48px); }
.catalog-poster h2 { max-width: 14ch; font-size: clamp(2rem, 3.8vw, 4rem); line-height: .96; }
.catalog-poster p { max-width: 54ch; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.catalog-poster__footer { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; }
.catalog-poster__footer > span { font-size: clamp(1.45rem, 2.4vw, 2.15rem); font-variant-numeric: tabular-nums; font-weight: 760; letter-spacing: -.04em; }
.empty-catalog { margin-top: 8px; }.catalog-shelf { margin-top: 48px; }
.public-tariffs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-tariff { min-height: 0; background: var(--lilac); color: var(--ink); }
.public-tariff .upcoming-poster__copy { align-self: start; }
.public-tariff h3 { margin-top: 0; }
.public-tariff p { color: var(--ink); }
.public-tariff .catalog-poster__footer { margin-top: 20px; }
@media (max-width: 900px) { .public-tariffs { grid-template-columns: 1fr; } }
.catalog-grid--member .catalog-poster { min-height: 300px; grid-template-columns: minmax(190px, .48fr) minmax(0, 1.52fr); }.catalog-grid--member .catalog-poster__cover { padding: 24px; }.catalog-grid--member .catalog-poster__cover strong { font-size: clamp(2.6rem, 5vw, 4.4rem); }.catalog-grid--member .catalog-poster__body { gap: 22px; padding: clamp(26px, 3.5vw, 40px); }.catalog-grid--member .catalog-poster h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

/* Entitled course: one continuous text surface, a factual rail, then the media edge. */
.course-poster--active {
  height: 441px;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 248px;
}

.course-poster--active .course-poster__main {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 28px 32px 0;
  padding-bottom: 0;
}

.course-poster--active .course-poster__title {
  display: block;
  width: 100%;
  margin-top: 24px;
}

.course-poster__title-link { color: inherit; text-decoration: none; }
.course-poster__title-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.course-poster--active h2 {
  display: -webkit-box;
  overflow: hidden;
  max-width: 18ch;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-poster--active .course-poster__title p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 62ch;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.course-poster--active .course-poster__progress {
  width: calc(100% + 64px);
  min-height: 68px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px -32px 0;
  padding: 13px 32px 15px;
  background: rgba(255, 255, 255, 0.48);
}

.course-poster--active .course-poster__actions {
  width: 100%;
  margin-top: auto;
}

.course-poster--active .course-poster__progress-copy {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
}

.course-poster--active .course-poster__progress-copy strong,
.course-poster--active .course-poster__progress-copy span {
  max-width: none;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.course-poster--active .course-poster__progress-copy span {
  color: var(--ink);
  font-weight: 650;
}

.course-poster--active .course-poster__progress .progress-track {
  width: min(360px, 54%);
  margin-top: 0;
  background: rgba(23, 25, 24, 0.12);
}

.course-poster--active .course-poster__progress .progress-track > span {
  background: #117465;
}

.course-poster--active .course-poster__action {
  display: grid;
  width: min(100%, 620px);
  min-height: 52px;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 12px;
  justify-content: stretch;
  padding: 12px 16px 12px 18px;
  border-radius: 18px;
  line-height: 1.28;
  text-align: left;
}

.course-poster--active .course-poster__action span {
  min-width: 0;
}

.course-poster__media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #20231f;
}

.course-poster__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .course-poster--active {
    height: 441px;
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .course-poster--active .course-poster__progress {
    width: calc(100% + 64px);
    margin-inline: -32px;
    padding-inline: 32px;
  }
}

@media (max-width: 680px) { .catalog-intro { margin-bottom: 26px; }.catalog-poster, .catalog-grid--member .catalog-poster { grid-template-columns: 1fr; }.catalog-poster__cover { min-height: 230px; }.catalog-poster__cover strong { max-width: 12ch; }.catalog-poster__body { min-height: 300px; } }
@media (max-width: 660px) {
  .course-poster--active {
    height: 540px;
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 0;
  }

  .course-poster--active .course-poster__main {
    padding: 24px 20px 0;
  }

  .course-poster--active .course-poster__title {
    margin-top: 28px;
  }

  .course-poster--active h2 {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem);
    -webkit-line-clamp: 3;
  }

  .course-poster--active .course-poster__title p {
    font-size: .8rem;
  }

  .course-poster--active .course-poster__progress {
    width: calc(100% + 40px);
    min-height: 112px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-inline: -20px;
    padding: 17px 20px 19px;
  }

  .course-poster--active .course-poster__progress .progress-track {
    width: 100%;
  }
}

@media (max-width: 520px) { .platform-login { min-height: 38px; padding-inline: 13px; }.catalog-poster { border-radius: 20px; }.catalog-poster__cover { min-height: 205px; padding: 20px; }.catalog-poster__body { padding: 24px 20px 22px; }.catalog-poster__footer .primary-action { width: 100%; }}
