/* JAJ Live classes page — builds on home.css and courses.css. Mobile first; desktop from 900px. */
.jws-act { display: flex; flex-direction: column; gap: 6px; }
.jaj-hero-ctas .jws-act { width: 100%; }
.jaj-hero-ctas .jws-act .jaj-btn { width: 100%; }
.jws-closed { font-size: 14px; font-weight: 700; color: var(--pink-d); }
.jws-closed[hidden], .jws-book[hidden] { display: none !important; }
.jws-link { white-space: normal; text-align: center; line-height: 1.25; padding: 8px 14px; }

/* Countdown under the next class */
.jws-count { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.jws-count[hidden] { display: none; }
.jws-count-h { font-size: 13px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .4px; }
.jws-count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.jws-count-grid > span { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: var(--rose); }
.jws-count-grid strong { font-size: 24px; line-height: 1.1; color: var(--plum); font-variant-numeric: tabular-nums; }
.jws-count-grid small { font-size: 12px; color: var(--soft); }
.jaj-ws .jaj-class-title a { color: var(--plum) !important; text-decoration: underline; text-decoration-color: #E7B8CF; text-underline-offset: 3px; }
.jws-early, .jaj-ws .jaj-class-part { font-size: 13px; }
.jws-early { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: var(--green-l); color: var(--green-d); font-weight: 700; }
.jaj-ws .jaj-class-foot { align-items: flex-end; gap: 10px; }

/* Recordings */
.jcs-badge-soon { background: var(--plum); }
.jws-soon { font-size: 13px; color: var(--soft); line-height: 1.35; }

/* How it works */
.jws-steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.jws-steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 14px 58px; border-radius: 14px; background: #fff; border: 1px solid #EBD3DF; }
.jws-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.jws-steps strong { color: var(--plum); font-size: 17px; }
.jws-steps span { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* Help */
.jws-help-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.jws-help-btns .jaj-btn { width: auto; margin: 0; padding: 0 22px; }
.jws-help-btns .jaj-btn[hidden] { display: none; }

/* Joining link pop-up */
.jws-pop-h { display: block; font-size: 20px; color: #3B0A2D; margin-bottom: 10px; }
.jws-pop-url { width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #E2CDBA; font: 15px 'Noto Sans', sans-serif; color: #2A1622; background: #FFF7EE; }
.jws-pop-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jws-pop-btns .jaj-btn { flex: 1 1 160px; margin: 0; }

@media (min-width: 900px) {
  .jaj-ws .jh-hero-img { flex: 0 0 46%; }
  .jaj-hero-ctas .jws-act { width: auto; }
  .jaj-hero-ctas .jws-act .jaj-btn { width: auto; padding: 0 32px; }
  .jws-count { max-width: 420px; }
  .jws-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .jws-steps li { padding: 58px 16px 16px; }
}

/* 1.5: page hero, image cards for upcoming classes, combo, short recordings row */
.jws-hero-img img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 18px; }
.jws-next { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--plum) !important; text-decoration: none !important; }
.jws-next-h { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--green-d); }
.jws-next strong { font-size: 17px; line-height: 1.3; }
.jws-next > span:not(.jws-next-h) { font-size: 14px; color: var(--muted); }
.jws-next > .jws-reg-inline { font-weight: 600; color: var(--green-d); }
.jws-next > .jws-reg-inline:empty { display: none; }
.jws-mine-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.jws-mine-note[hidden] { display: none; }
.jws-mine-note a { font-weight: 700; color: var(--pink-d) !important; }
.jws-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.jws-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.jws-card.is-next { border-color: #D9B26B; box-shadow: 0 6px 22px rgba(59,10,45,.08); }
.jws-img { position: relative; display: block; aspect-ratio: 1; background: #FBF4EC; }
.jws-img img { width: 100%; height: 100%; object-fit: contain; } /* never cropped */
.jws-date { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 5px 6px; border-radius: 12px; background: rgba(59,10,45,.92); color: #fff; line-height: 1.1; }
.jws-date span { font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.jws-date strong { font-size: 22px; }
.jws-flag { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: #D9B26B; color: #2A0920; font-size: 12px; font-weight: 700; }
.jws-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.jws-title { margin: 0; font-size: 18px; line-height: 1.3; }
.jws-title a { color: var(--plum) !important; text-decoration: none; }
.jws-meta { font-size: 14px; color: var(--muted); }
.jws-desc { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jws-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.jws-price { display: flex; flex-direction: column; font-weight: 700; color: var(--plum); font-size: 18px; }
.jws-price small { font-size: 12px; font-weight: 500; color: var(--soft); }
.jws-own { font-size: 14px; font-weight: 700; color: var(--green-d) !important; }
.jws-combo { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #FFF4DE; border: 1px solid #F0D49A; }
.jws-combo strong { color: var(--plum); font-size: 17px; }
.jws-combo span { font-size: 14px; color: var(--muted); }
.jws-combo .jaj-btn { align-self: flex-start; }
@media (min-width: 700px) { .jws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .jws-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 1.6: upcoming classes as a swipe carousel (one card + a peek on phones, two compact side-by-side cards on desktop) */
.jws-carousel { position: relative; margin-top: 14px; }
.jws-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; overscroll-behavior-x: contain; }
.jws-track::-webkit-scrollbar { display: none; }
.jws-track > .jws-card { flex: 0 0 84%; scroll-snap-align: start; }
.jws-carousel[data-single] .jws-track > .jws-card { flex-basis: 100%; }
.jws-track .jws-img { aspect-ratio: 4 / 3; }
.jws-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
body .jaj-ws button.jws-arrow { width: 40px; height: 40px; min-height: 0; padding: 0 !important; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; background: #F3D9A4 !important; color: #3B0A2D !important; border: 1.5px solid #D9B26B !important; box-shadow: none !important; cursor: pointer; }
body .jaj-ws button.jws-arrow:hover { background: #E9C77F !important; }
body .jaj-ws button.jws-arrow:disabled { opacity: .4; cursor: default; }
.jws-dots { display: flex; gap: 6px; }
.jws-dots i { width: 8px; height: 8px; border-radius: 50%; background: #E2CDBA; transition: width .2s, background .2s; }
.jws-dots i.on { width: 22px; border-radius: 4px; background: var(--plum); }
@media (min-width: 900px) {
  .jws-track { gap: 16px; }
  .jws-track > .jws-card { flex: 0 0 calc(50% - 8px); flex-direction: row; }
  .jws-carousel[data-single] .jws-track > .jws-card { flex-basis: 70%; }
  .jws-track .jws-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
  .jws-track .jws-body { padding: 14px 16px 16px; }
  .jws-track .jws-desc { -webkit-line-clamp: 2; }
  .jws-track .jws-title { font-size: 19px; line-height: 1.3; }
}
