/* JAEM 2027 theme — LearnDash screens (course list, course, lesson, topic, quiz). Look confirmed by the owner on 2026-11-15
   (two columns on PC, draft as is). Draft: execution/site-viewer/drafts/jaem/course.en.html (v2).
   Loaded only on LearnDash screens (functions.php jaem2027_is_ld_screen).

   A. Rules on LD30 classes (LearnDash's own markup: quiz screen, lesson / topic body, topic list, Previous / Next).
   B. The draft's CSS as is ("Preview only" rules left out), under .jm-page-course27. Wired 2026-11-17: the course page
      (learndash/ld30/course.php) and the lesson / topic frame (parts/ld-single.php) print the draft's markup.
   C. Glue for the real pages (2026-11-17): LearnDash's output inside the lesson player, the not-enrolled card holding
      LearnDash's own action, "About this course", lesson sections, titles that already carry "Lesson N". */

/* ---------- A. Connected now: LD30 classes seen on the live pages (draft note 1 and 2) ----------
   Scope body.jt-2027 .learndash-wrapper. Values are the draft's. LD30's own CSS may use stronger selectors; if a rule loses on the
   test copy, raise it there (do not add !important here first). */
body.jt-2027 .learndash-wrapper{font-family:var(--jm-font,Pretendard,-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif);color:rgba(30,33,50,.84);--h-line:rgba(30,33,50,.1);--h-soft:rgba(30,33,50,.68)}
/* Course content list (.ld-item-list) */
body.jt-2027 .learndash-wrapper .ld-item-list .ld-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
body.jt-2027 .learndash-wrapper .ld-item-list .ld-section-heading h2{margin:0;font-size:24px;font-weight:800;line-height:1.3;letter-spacing:-.01em;color:var(--jm-ink,#1E2132)}
body.jt-2027 .learndash-wrapper .ld-item-list .ld-item-list-items{border:1px solid var(--h-line);border-radius:16px;background:#fff;overflow:hidden}
body.jt-2027 .learndash-wrapper .ld-item-list .ld-item-list-item{margin:0;border:0;border-radius:0;box-shadow:none}
body.jt-2027 .learndash-wrapper .ld-item-list .ld-item-list-item+.ld-item-list-item{border-top:1px solid var(--h-line)}
body.jt-2027 .learndash-wrapper .ld-item-list .ld-item-list-item-preview{display:flex;align-items:stretch}
body.jt-2027 .learndash-wrapper .ld-item-list a.ld-item-name{min-height:64px;padding:12px 20px;color:var(--jm-ink,#1E2132);text-decoration:none;transition:background-color .16s}
body.jt-2027 .learndash-wrapper .ld-item-list a.ld-item-name:hover{background:var(--jm-g100,#F8F8F8)}
body.jt-2027 .learndash-wrapper .ld-item-list a.ld-item-name:hover .ld-item-title{color:var(--jm-primary,#9100DD)}
body.jt-2027 .learndash-wrapper .ld-item-list a.ld-item-name:focus-visible{outline:3px solid var(--jm-primary,#9100DD);outline-offset:-3px}
body.jt-2027 .learndash-wrapper .ld-item-list .ld-item-title{font-size:17px;font-weight:700;line-height:1.4}
/* Progress (.ld-progress) */
body.jt-2027 .learndash-wrapper .ld-progress .ld-progress-bar{position:relative;height:10px;border-radius:999px;background:var(--jm-g400,#E7E9EC);overflow:hidden}
body.jt-2027 .learndash-wrapper .ld-progress .ld-progress-bar-percentage{position:absolute;inset:0 auto 0 0;border-radius:999px;background:var(--jm-primary,#9100DD)}
body.jt-2027 .learndash-wrapper .ld-progress .ld-progress-stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:10px;font-size:15px;line-height:1.45}
body.jt-2027 .learndash-wrapper .ld-progress .ld-progress-steps{color:var(--jm-ink,#1E2132);font-weight:700}
body.jt-2027 .learndash-wrapper .ld-progress .ld-progress-percentage{color:var(--h-soft);font-weight:600}
/* Breadcrumbs, video, lesson actions */
body.jt-2027 .learndash-wrapper .ld-breadcrumbs{font-size:15px;line-height:1.45}
body.jt-2027 .learndash-wrapper .ld-breadcrumbs a{color:var(--jm-primary,#9100DD);font-weight:700}
body.jt-2027 .learndash-wrapper .ld-video{border-radius:16px;overflow:hidden}
body.jt-2027 .learndash-wrapper .ld-content-actions{margin-top:40px;padding:12px;border:1px solid var(--h-line);border-radius:16px;background:#fff}
body.jt-2027 .learndash-wrapper .ld-content-actions:empty{display:none}
@media (max-width:640px){
body.jt-2027 .learndash-wrapper .ld-item-list .ld-section-heading h2{font-size:22px}
body.jt-2027 .learndash-wrapper .ld-item-list a.ld-item-name{padding:12px 16px}
body.jt-2027 .learndash-wrapper .ld-content-actions{padding:0;border:0;background:transparent}
}
@media (prefers-reduced-motion:reduce){body.jt-2027 .learndash-wrapper *{transition:none !important}}

/* ---------- B. Prepared, not connected: the draft's CSS as is ("Preview only" rules left out) ---------- */
.jm-page-course27{--h-body:rgba(30,33,50,.84);--h-soft:rgba(30,33,50,.68);--h-line:rgba(30,33,50,.1);--h-edge:rgba(30,33,50,.5);--h-tint:rgba(145,0,221,.08);--h-box:#FAF7FE;--h-boxline:rgba(145,0,221,.16);--h-shadow:0 30px 60px -40px rgba(30,33,50,.45);--h-ease:cubic-bezier(.22,1,.36,1);--h-stick:24px;color:var(--h-body)}
.jm-page-course27 [hidden]{display:none !important}
.jm-page-course27 h1,.jm-page-course27 h2{overflow-wrap:normal;text-wrap:balance}
.jm-page-course27 .h-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jm-page-course27 .h-sprite{position:absolute;width:0;height:0;overflow:hidden}
.jm-page-course27 a:focus-visible,.jm-page-course27 button:focus-visible,.jm-page-course27 summary:focus-visible{outline:3px solid var(--jm-primary);outline-offset:3px;border-radius:6px}
.jm-page-course27 .jm-button{white-space:nowrap;cursor:pointer;font-size:17px;min-height:52px;padding:14px 26px}
.jm-page-course27 .jm-button:focus-visible{outline:3px solid var(--jm-ink);outline-offset:3px}
.jm-page-course27 .h-crs{padding-top:clamp(20px,2.4vw,32px);padding-bottom:clamp(56px,6vw,96px)}

/* page grid: areas change with the state */
.jm-page-course27 .h-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:48px;grid-template-areas:"pv pv" "top top" "main side";align-items:start}
.jm-page-course27[data-state=lesson] .h-grid{grid-template-columns:minmax(0,1fr) 340px;column-gap:40px;grid-template-areas:"pv pv" "top side" "main side"}
.jm-page-course27 .h-top{grid-area:top;min-width:0}
.jm-page-course27 .h-main{grid-area:main;min-width:0}
.jm-page-course27 .h-side{grid-area:side;min-width:0;position:sticky;top:var(--h-stick)}
.jm-page-course27 .h-narrow{display:none}

/* head band (course + not enrolled): full-width tint behind the 1200 column, no sideways scroll */
.jm-page-course27 .h-top{margin-bottom:40px}
.jm-page-course27:not([data-state=lesson]) .h-top{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:48px;align-items:end;padding:44px 0 48px;background:var(--jm-g100);box-shadow:0 0 0 100vmax var(--jm-g100);clip-path:inset(0 -100vmax)}
.jm-page-course27 .h-top .jm-eyebrow{margin-bottom:14px;font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.jm-page-course27 h1{font-size:44px;font-weight:800;line-height:1.15;letter-spacing:-.02em}
.jm-page-course27 .h-lede{max-width:70ch;margin-top:16px;font-size:18px;line-height:1.7;color:var(--h-body)}
.jm-page-course27 .h-sum{display:flex;align-items:center;gap:10px;padding:10px 16px;border:1px solid var(--h-line);border-radius:999px;background:#fff;color:var(--jm-ink);font-size:16px !important;font-weight:700;line-height:1.3;white-space:nowrap}
.jm-page-course27 .h-sum svg{width:20px;height:20px;color:var(--jm-primary)}
.jm-page-course27 .h-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 4px -4px;padding:0 6px 0 4px;color:var(--jm-primary);font-size:15px;font-weight:800;line-height:1.35}
.jm-page-course27 .h-back:hover span{text-decoration:underline !important;text-underline-offset:4px}
.jm-page-course27 .h-back svg{width:18px;height:18px;flex:0 0 auto}
.jm-page-course27[data-state=lesson] h1{font-size:34px;line-height:1.2}
.jm-page-course27 .h-lstat{margin-top:12px}
.jm-page-course27 .h-lstat .ld-progress-stats{margin:0}

/* progress (LD30 .ld-progress) */
.jm-page-course27 .ld-progress-bar{position:relative;height:10px;border-radius:999px;background:var(--jm-g400);overflow:hidden}
.jm-page-course27 .ld-progress-bar-percentage{position:absolute;inset:0 auto 0 0;border-radius:999px;background:var(--jm-primary)}
.jm-page-course27 .ld-progress-stats{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:10px;font-size:15px;line-height:1.45}
.jm-page-course27 .ld-progress-steps{color:var(--jm-ink);font-weight:700}
.jm-page-course27 .ld-progress-percentage{color:var(--h-soft);font-weight:600}

/* side cards */
.jm-page-course27 .h-card{padding:28px;border:1px solid var(--h-line);border-radius:24px;background:#fff;box-shadow:var(--h-shadow)}
.jm-page-course27 .h-pill{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:3px 12px 3px 8px;border-radius:999px;font-size:14px;font-weight:800;line-height:1.3}
.jm-page-course27 .h-pill svg{width:20px;height:20px;flex:0 0 auto}
.jm-page-course27 .h-pill-prog{background:var(--h-tint);color:var(--jm-primary)}
.jm-page-course27 .h-pill-out{padding-left:12px;background:var(--jm-g200);color:var(--jm-ink)}
.jm-page-course27 .h-prog-top{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;column-gap:20px}
.jm-page-course27 .h-ring{position:relative;width:96px;height:96px}
.jm-page-course27 .h-ring svg{display:block;width:96px;height:96px}
.jm-page-course27 .h-ring-n{position:absolute;inset:0;display:grid;place-items:center;color:var(--jm-ink);font-size:22px;font-weight:800;letter-spacing:-.01em}
.jm-page-course27 .h-prog-txt{display:grid;justify-items:start;gap:6px}
.jm-page-course27 .h-prog-txt p{font-size:15px;line-height:1.4}
.jm-page-course27 .h-prog-txt .ld-progress-percentage{font-size:17px;color:var(--jm-ink);font-weight:800}
.jm-page-course27 .h-prog-txt .ld-progress-steps{color:var(--h-soft);font-weight:600}
.jm-page-course27 .h-prog-bar{display:none}
.jm-page-course27 .h-prog-act{margin-top:24px}
.jm-page-course27 .h-prog-act .jm-button{width:100%}
.jm-page-course27 .h-prog-act p{margin-top:12px;font-size:15px;line-height:1.45;color:var(--h-soft);text-align:center}
.jm-page-course27 .h-prog-act p b{color:var(--jm-ink);font-weight:700}
.jm-page-course27 .h-out-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.jm-page-course27 .h-price{font-size:15px;line-height:1.45;color:var(--h-soft)}
.jm-page-course27 .h-price b{color:var(--jm-ink);font-weight:800}
.jm-page-course27 .h-out-act{display:grid;gap:12px;margin-top:24px}
.jm-page-course27 .h-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 24px;border:1px solid var(--h-edge);border-radius:var(--jm-radius);background:#fff;color:var(--jm-ink);font-size:17px;font-weight:800;line-height:1.2;white-space:nowrap;transition:border-color .16s,color .16s,background-color .16s}
.jm-page-course27 .h-ghost:hover{border-color:var(--jm-primary);color:var(--jm-primary);background:var(--h-box)}

/* Course content (LD30 .ld-item-list) */
.jm-page-course27 .ld-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.jm-page-course27 .ld-section-heading h2{font-size:24px;line-height:1.3;letter-spacing:-.01em}
.jm-page-course27 .ld-item-list-items{border:1px solid var(--h-line);border-radius:16px;background:#fff;overflow:hidden}
.jm-page-course27 .ld-item-list-item+.ld-item-list-item{border-top:1px solid var(--h-line)}
.jm-page-course27 .ld-item-list-item-preview{display:flex;align-items:stretch}
.jm-page-course27 .ld-item-name{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:28px 72px minmax(0,1fr) auto 18px;align-items:center;column-gap:16px;min-height:64px;padding:12px 20px;color:var(--jm-ink)}
.jm-page-course27 .ld-item-title{display:contents}
.jm-page-course27 a.ld-item-name{transition:background-color .16s}
.jm-page-course27 a.ld-item-name:hover{background:var(--jm-g100)}
.jm-page-course27 a.ld-item-name:focus-visible,.jm-page-course27 .ld-expand-button:focus-visible,.jm-page-course27 .h-topic:focus-visible,.jm-page-course27 .h-lrow:focus-visible{outline:3px solid var(--jm-primary);outline-offset:-3px;border-radius:0}
.jm-page-course27 .ld-status-icon{display:block;width:28px;height:28px}
.jm-page-course27 .ld-status-icon svg{display:block;width:28px;height:28px}
.jm-page-course27 .h-k{display:block;font-size:14px;font-weight:700;line-height:1.35;color:var(--h-soft);white-space:nowrap}
.jm-page-course27 .h-t{display:block;min-width:0;font-size:17px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.jm-page-course27 .h-st{font-size:14px;font-weight:700;line-height:1.3;color:var(--h-soft);white-space:nowrap}
.jm-page-course27 .h-go{grid-column:-2;display:block;width:18px;height:18px;color:var(--h-soft);transition:transform .16s var(--h-ease),color .16s}
.jm-page-course27 a.ld-item-name:hover .h-go,.jm-page-course27 a.ld-item-name:focus-visible .h-go{color:var(--jm-primary);transform:translateX(3px)}
.jm-page-course27 a.ld-item-name:hover .h-t{color:var(--jm-primary)}
/* current lesson */
.jm-page-course27 .ld-is-next .ld-item-list-item-preview{background:var(--h-box);box-shadow:inset 4px 0 0 var(--jm-primary)}
.jm-page-course27 .ld-is-next a.ld-item-name:hover{background:rgba(145,0,221,.06)}
.jm-page-course27 .ld-is-next .h-t{font-weight:800}
.jm-page-course27 .ld-is-next .ld-item-name .h-st{display:inline-flex;align-items:center;min-height:26px;padding:2px 10px;border-radius:999px;background:var(--h-tint);color:var(--jm-primary);font-weight:800}
.jm-page-course27 .ld-is-next .h-go{color:var(--jm-primary)}
/* locked */
.jm-page-course27 .h-lock .ld-item-name{cursor:not-allowed}
.jm-page-course27 .h-lock .h-t{color:var(--h-body);font-weight:600}
.jm-page-course27 .h-lockic{color:var(--h-soft)}
.jm-page-course27 .h-samp .h-st{color:var(--jm-primary)}
/* topics inside a lesson (preview: the sample course has none) */
.jm-page-course27 .ld-expand-button{display:none;flex:0 0 auto;align-items:center;gap:8px;min-width:112px;min-height:64px;padding:0 20px 0 14px;border:0;border-left:1px solid var(--h-line);background:transparent;color:var(--jm-primary);font-size:14px;font-weight:800;line-height:1.2;cursor:pointer;transition:background-color .16s}
.jm-page-course27 .ld-expand-button:hover{background:rgba(145,0,221,.08)}
.jm-page-course27 .ld-expand-button svg{width:14px;height:14px;flex:0 0 auto;transition:transform .16s}
.jm-page-course27 .ld-expand-button[aria-expanded=true] svg{transform:rotate(180deg)}
.jm-page-course27.h-topics-on .ld-expand-button{display:inline-flex}
.jm-page-course27 .h-topics{margin:0;padding:4px 0 8px;list-style:none;border-top:1px solid var(--h-line);background:var(--jm-g100)}
.jm-page-course27 .h-topics li{font-size:16px;line-height:1.4}
.jm-page-course27 .h-topic{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;column-gap:14px;min-height:56px;padding:8px 20px 8px 152px;color:var(--jm-ink);font-weight:600;transition:background-color .16s}
.jm-page-course27 .h-topic:hover{background:var(--jm-g200);color:var(--jm-primary)}
.jm-page-course27 .h-topic svg{width:20px;height:20px}
.jm-page-course27 .h-topic .h-st{font-size:13px}

/* lesson page: main column */
.jm-page-course27 .h-lmain{display:flex;flex-direction:column}
.jm-page-course27 .h-video{order:1;position:relative;display:grid;place-items:center;aspect-ratio:16/9;width:100%;border-radius:16px;background:var(--jm-g400);overflow:hidden}
.jm-page-course27 .h-play{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:rgba(30,33,50,.78)}
.jm-page-course27 .h-play svg{width:32px;height:32px;margin-left:4px}
.jm-page-course27 .h-slot-tag{position:absolute;left:14px;top:12px;padding:2px 10px;border:1.5px dashed rgba(30,33,50,.35);border-radius:999px;background:rgba(255,255,255,.85);font-size:12px;font-weight:800;line-height:1.6;letter-spacing:.06em;text-transform:uppercase;color:var(--h-body)}
.jm-page-course27 .h-body{order:2;position:relative;margin-top:36px;padding:30px 28px 26px;border:1.5px dashed rgba(30,33,50,.3);border-radius:16px}
.jm-page-course27 .h-body .h-slot-tag{top:-12px;left:16px;background:#fff}
.jm-page-course27 .h-bar{display:block;max-width:68ch;height:12px;margin-top:14px;border-radius:6px;background:var(--jm-g200)}
.jm-page-course27 .h-bar:first-child{margin-top:0}
.jm-page-course27 .h-bar.h-w2{width:92%}
.jm-page-course27 .h-bar.h-w3{width:60%}
.jm-page-course27 .h-gap{display:block;height:14px}
.jm-page-course27 .h-mat{order:3;margin-top:40px}
.jm-page-course27 .h-mat h2{margin-bottom:12px;font-size:20px;line-height:1.3}
.jm-page-course27 .h-file{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;column-gap:14px;min-height:64px;padding:12px 18px;border:1px solid var(--h-line);border-radius:14px;background:#fff;color:var(--jm-ink);transition:border-color .16s,background-color .16s}
.jm-page-course27 .h-file:hover{border-color:rgba(145,0,221,.45);background:var(--h-box)}
.jm-page-course27 .h-file>svg{width:36px;height:36px}
.jm-page-course27 .h-file .h-t{font-size:16px}
.jm-page-course27 .h-file .h-k{font-weight:600}
.jm-page-course27 .h-ftxt{display:block;min-width:0}
.jm-page-course27 .h-dl{display:inline-flex;align-items:center;gap:6px;color:var(--jm-primary);font-size:15px;font-weight:800;white-space:nowrap}
.jm-page-course27 .h-dl svg{width:18px;height:18px}
.jm-page-course27 .h-lacts{order:4}
.jm-page-course27 .ld-content-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px 20px;margin-top:40px;padding:12px;border:1px solid var(--h-line);border-radius:16px;background:#fff}
.jm-page-course27 .h-mid{display:grid;justify-items:center}
.jm-page-course27 .h-nav{display:grid;gap:2px;min-height:64px;align-content:center;padding:10px 14px;border-radius:12px;color:var(--jm-ink);transition:background-color .16s}
.jm-page-course27 .h-nav:hover{background:var(--jm-g100)}
.jm-page-course27 .h-nav:hover .h-t{color:var(--jm-primary)}
.jm-page-course27 .h-nav .h-k{display:inline-flex;align-items:center;gap:6px;color:var(--jm-primary);font-weight:800;font-size:14px}
.jm-page-course27 .h-nav .h-k svg{width:16px;height:16px}
.jm-page-course27 .h-nav .h-t{font-size:16px}
.jm-page-course27 .h-nextl{text-align:right;justify-items:end}

/* lesson page: side list (wide) */
.jm-page-course27 .h-lside{display:flex;flex-direction:column;max-height:calc(100vh - var(--h-stick) * 2);padding:0;overflow:hidden}
.jm-page-course27 .h-lhead{padding:22px 22px 18px;border-bottom:1px solid var(--h-line)}
.jm-page-course27 .h-lcourse{display:inline-flex;align-items:center;min-height:44px;margin:-6px 0 6px;color:var(--jm-ink);font-size:17px;font-weight:800;line-height:1.35}
.jm-page-course27 .h-lcourse:hover{color:var(--jm-primary)}
.jm-page-course27 .h-lhead .ld-progress-stats{font-size:14px}
.jm-page-course27 .h-lhead .ld-progress-bar{height:8px}
.jm-page-course27 .h-llist{flex:1 1 auto;min-height:0;margin:0;padding:8px 0;list-style:none;overflow-y:auto;overscroll-behavior:contain}
.jm-page-course27 .h-llist li{font-size:15px;line-height:1.4}
.jm-page-course27 .h-lrow{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;column-gap:12px;min-height:48px;padding:8px 22px;color:var(--jm-ink);font-weight:600;transition:background-color .16s}
.jm-page-course27 .h-lrow:hover{background:var(--jm-g100);color:var(--jm-primary)}
.jm-page-course27 .h-lrow svg{display:block;width:22px;height:22px}
.jm-page-course27 .h-lrow[aria-current]{background:var(--h-box);box-shadow:inset 4px 0 0 var(--jm-primary);font-weight:800}
.jm-page-course27 .h-lrow .h-n{color:var(--h-soft);font-weight:700;margin-right:6px}
/* lesson page: list folded in <details> (narrow) */
.jm-page-course27 .h-ldet{order:5;margin-top:32px;border:1px solid var(--h-line);border-radius:16px;background:#fff;overflow:hidden}
.jm-page-course27 .h-ldet summary{min-height:60px;padding:16px 20px;font-size:18px;border-radius:16px}
.jm-page-course27 .h-ldet summary:hover{background:var(--jm-g100)}
.jm-page-course27 .h-ldet summary:focus-visible{outline-offset:-3px}
.jm-page-course27 .h-ldet .ld-progress{padding:0 20px 14px}
.jm-page-course27 .h-ldet .ld-progress-stats{font-size:14px}
.jm-page-course27 .h-ldet .h-llist{border-top:1px solid var(--h-line);overflow:visible}


/* 1200+ : nothing extra. 981-1100: tighter side */
@media (max-width:1100px){
.jm-page-course27 .h-grid{grid-template-columns:minmax(0,1fr) 320px;column-gap:36px}
.jm-page-course27[data-state=lesson] .h-grid{grid-template-columns:minmax(0,1fr) 300px;column-gap:32px}
}
/* 641-980: one column, card on top (course / not enrolled), list folded at the end (lesson) */
@media (max-width:980px){
.jm-page-course27 .h-grid,.jm-page-course27[data-state=lesson] .h-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"pv" "top" "side" "main"}
.jm-page-course27 .h-side{position:static;margin-bottom:40px}
.jm-page-course27 .h-wide{display:none !important}
.jm-page-course27 .h-narrow{display:block}
.jm-page-course27:not([data-state=lesson]) .h-top{padding:36px 0 40px;column-gap:32px}
.jm-page-course27 h1{font-size:38px}
.jm-page-course27 .h-prog{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;column-gap:32px}
.jm-page-course27 .h-prog-act{margin-top:0}
.jm-page-course27 .h-out{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;column-gap:32px}
.jm-page-course27 .h-out-act{margin-top:0}
.jm-page-course27 .h-lacts{order:2}
.jm-page-course27 .h-lacts .ld-content-actions{margin-top:20px}
.jm-page-course27 .h-body{order:3}
.jm-page-course27 .h-mat{order:4}
}
/* 640 and below: same shape as v1 */
@media (max-width:640px){
.jm-page-course27 .h-crs{padding-top:20px}
.jm-page-course27:not([data-state=lesson]) .h-top{grid-template-columns:minmax(0,1fr);padding:28px 0 32px;margin-bottom:28px}
.jm-page-course27 .h-sum{justify-self:start;margin-top:18px}
.jm-page-course27 h1,.jm-page-course27[data-state=lesson] h1{font-size:28px;line-height:1.25}
.jm-page-course27 .h-lede{font-size:17px}
.jm-page-course27 .h-side{margin-bottom:36px}
.jm-page-course27 .h-card{padding:20px 18px;border-radius:20px}
.jm-page-course27 .h-prog,.jm-page-course27 .h-out{display:block}
.jm-page-course27 .h-prog-top{display:block}
.jm-page-course27 .h-ring{display:none}
.jm-page-course27 .h-prog-txt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px}
.jm-page-course27 .h-prog-txt .ld-progress-percentage{order:2;font-size:15px;color:var(--h-soft);font-weight:600}
.jm-page-course27 .h-prog-txt .h-pill{order:1}
.jm-page-course27 .h-prog-bar{display:block;order:3;flex:1 1 100%;margin-top:4px}
.jm-page-course27 .h-prog-txt .ld-progress-steps{order:4;flex:1 1 100%;margin-top:-4px;color:var(--jm-ink);font-weight:700}
.jm-page-course27 .h-prog-act{margin-top:20px}
.jm-page-course27 .h-prog-act p{text-align:left}
.jm-page-course27 .h-out-act{margin-top:20px}
.jm-page-course27 .ld-section-heading h2{font-size:22px}
.jm-page-course27 .ld-item-name{grid-template-columns:28px minmax(0,1fr) 18px;column-gap:14px;padding:12px 16px}
.jm-page-course27 .ld-item-title{display:block;grid-column:2;grid-row:1;min-width:0}
.jm-page-course27 .ld-item-name .h-k{font-size:13px}
.jm-page-course27 .ld-item-name .h-st{grid-column:2;grid-row:2;justify-self:start;margin-top:4px}
.jm-page-course27 .ld-is-next .ld-item-name .h-st{margin-top:6px}
.jm-page-course27 .ld-item-name .h-go{grid-column:3;grid-row:1/span 2}
.jm-page-course27 .ld-item-name>.ld-status-icon{grid-row:1/span 2}
.jm-page-course27 .ld-item-name>span:empty{display:none}
.jm-page-course27 .ld-expand-button{min-width:0;padding:0 14px;flex-direction:column;justify-content:center;gap:4px;font-size:13px}
.jm-page-course27 .h-topic{padding-left:58px;padding-right:16px}
.jm-page-course27 .h-body{padding:26px 18px 20px}
.jm-page-course27 .h-file{grid-template-columns:32px minmax(0,1fr);padding:12px 16px}
.jm-page-course27 .h-file>svg{width:32px;height:32px}
.jm-page-course27 .h-dl{grid-column:2;margin-top:4px}
.jm-page-course27 .ld-content-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:0;border:0;background:transparent}
.jm-page-course27 .h-mid{grid-column:1/-1;grid-row:1}
.jm-page-course27 .h-mid .jm-button{width:100%}
.jm-page-course27 .h-nav{padding:10px 8px}
}
@media (prefers-reduced-motion:reduce){
.jm-page-course27 *{animation:none !important;transition:none !important}
}

/* ---------- C. Glue for the real pages (2026-11-17) ---------- */
/* The site header is sticky, so the sticky card / list start below it (draft value 24px + header). */
body.jt-ld27 .jm-page-course27{--h-stick:calc(var(--jt-head-h,72px) + 24px)}
body.jt-ld27 .jm-page-course27 .h-crs{padding-left:clamp(20px,4vw,40px);padding-right:clamp(20px,4vw,40px)}
/* jaem-base.css puts the page font on every element inside .jm with !important; LearnDash's icon font must win back */
.jm-page-course27 .ld-icon,.jm-page-course27 [class^="ld-icon-"],.jm-page-course27 [class*=" ld-icon-"]{font-family:ld-icons !important}
.jm-page-course27 .h-top-l{min-width:0}

/* course page: "About this course" (the course text, folded) */
.jm-page-course27 .h-about{margin:0 0 40px;border:1px solid var(--h-line);border-radius:16px;background:#fff;overflow:hidden}
.jm-page-course27 .h-about summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:16px 20px;color:var(--jm-ink);font-size:18px;font-weight:800;line-height:1.35;cursor:pointer;list-style:none;border-radius:16px}
.jm-page-course27 .h-about summary::-webkit-details-marker{display:none}
.jm-page-course27 .h-about summary::after{content:"";flex:0 0 auto;width:10px;height:10px;margin-right:4px;border-right:2.2px solid var(--jm-primary);border-bottom:2.2px solid var(--jm-primary);transform:translateY(-3px) rotate(45deg);transition:transform .16s}
.jm-page-course27 .h-about[open] summary::after{transform:translateY(2px) rotate(225deg)}
.jm-page-course27 .h-about summary:hover{background:var(--jm-g100)}
.jm-page-course27 .h-about summary:focus-visible{outline-offset:-3px}
.jm-page-course27 .h-about-body{padding:20px 24px 28px;border-top:1px solid var(--h-line)}
.jm-page-course27 .h-about-body>*+*{margin-top:14px}
.jm-page-course27 .h-about-body h2{margin-top:32px;font-size:24px;line-height:1.3}
.jm-page-course27 .h-about-body h3{margin-top:28px;font-size:20px;line-height:1.35}
.jm-page-course27 .h-about-body h4{margin-top:22px;font-size:18px;line-height:1.4;color:var(--jm-ink);font-weight:800}
.jm-page-course27 .h-about-body>:first-child{margin-top:0}
.jm-page-course27 .h-about-body p,.jm-page-course27 .h-about-body li{font-size:17px;line-height:1.7;color:var(--h-body)}
.jm-page-course27 .h-about-body ul,.jm-page-course27 .h-about-body ol{padding-left:1.3em}
.jm-page-course27 .h-about-body ul{list-style:disc}
.jm-page-course27 .h-about-body a{color:var(--jm-primary);text-decoration:underline !important;text-underline-offset:3px;overflow-wrap:anywhere}
.jm-page-course27 .h-about-body img{max-width:100%;height:auto}
.jm-page-course27 .h-about-body figure{margin:16px 0 0;float:none !important}
.jm-page-course27 .h-about-body hr{border:0;border-top:1px solid var(--h-line);margin:28px 0}

/* course page: lesson sections from LearnDash, titles that already say "Lesson N" (no kicker column) */
.jm-page-course27 .ld-item-list-section-heading{padding:14px 20px 10px;background:var(--jm-g100)}
.jm-page-course27 .ld-item-list-section-heading+.ld-item-list-item,.jm-page-course27 .ld-item-list-item+.ld-item-list-section-heading{border-top:1px solid var(--h-line)}
.jm-page-course27 .ld-lesson-section-heading{color:var(--jm-ink);font-size:14px;font-weight:800;line-height:1.4}
@media (min-width:641px){
.jm-page-course27.h-nokick .ld-item-name{grid-template-columns:28px minmax(0,1fr) auto 18px}
.jm-page-course27.h-nokick .h-topic{padding-left:64px}
}
.jm-page-course27 .h-topic-lock{color:var(--h-soft);cursor:not-allowed}
.jm-page-course27 .h-topic-lock:hover{background:transparent;color:var(--h-soft)}
.jm-page-course27 .h-topic-lock svg{color:var(--h-soft)}
.jm-page-course27 .h-pill-todo{padding-left:8px}

/* not enrolled: LearnDash's own action (enrol form, payment buttons, "closed" text) inside the draft card */
.jm-page-course27 .h-ldact{display:grid;gap:12px}
.jm-page-course27 .h-ldact form{display:grid;margin:0}
.jm-page-course27 .h-ldact input[type=submit],.jm-page-course27 .h-ldact button,.jm-page-course27 .h-ldact a.ld-button,.jm-page-course27 .h-ldact a.btn-join,.jm-page-course27 .h-ldact .button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin:0;padding:14px 26px;border:1px solid var(--jm-primary);border-radius:var(--jm-radius);background:var(--jm-primary);color:#fff;font-family:inherit;font-size:17px;font-weight:800;line-height:1.2;text-align:center;white-space:normal;cursor:pointer;box-shadow:none;transition:background-color .16s,border-color .16s}
.jm-page-course27 .h-ldact input[type=submit]:hover,.jm-page-course27 .h-ldact button:hover,.jm-page-course27 .h-ldact a.ld-button:hover,.jm-page-course27 .h-ldact .button:hover{background:var(--jm-secondary,#7400B0);border-color:var(--jm-secondary,#7400B0)}
.jm-page-course27 .h-ldact .ld-text{display:block;font-size:15px;line-height:1.45;color:var(--h-soft);text-align:center}
.jm-page-course27 .h-cert{margin-bottom:24px}

/* lesson / topic player: side list extras */
.jm-page-course27 .h-llist .h-lsec{padding:14px 22px 6px;color:var(--h-soft);font-size:13px;font-weight:800;line-height:1.4}
.jm-page-course27 .h-llist .h-lsec:first-child{padding-top:8px}
.jm-page-course27 .h-lrow-lock{color:var(--h-soft);cursor:not-allowed}
.jm-page-course27 .h-lrow-lock:hover{background:transparent;color:var(--h-soft)}
.jm-page-course27 .h-lrow-lock svg{color:var(--h-soft)}
.jm-page-course27 .h-lrow>span{min-width:0;overflow-wrap:anywhere}

/* lesson / topic player: LearnDash's own output in the main column (body + video, topics, Mark complete, Previous / Next).
   Its info bar (breadcrumbs, status, lesson progress) is replaced by the head (Back to course + title) and the side list. */
.jm-page-course27 .h-ldbody{order:1;min-width:0}
.jm-page-course27 .h-ldbody [class*="learndash-shortcode-wrap-ld_infobar-"],.jm-page-course27 .h-ldbody .ld-lesson-status,.jm-page-course27 .h-ldbody .ld-topic-status{display:none !important}
body.jt-ld27 .jm-page-course27 .h-ldbody .learndash-wrapper{margin:0;padding:0;max-width:none}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tabs{margin:0}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tabs-navigation{margin:0 0 20px;border-bottom:1px solid var(--h-line)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content{padding:0}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content>*+*{margin-top:16px}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content h2{margin-top:36px;font-size:26px;line-height:1.3}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content h3{margin-top:30px;font-size:22px;line-height:1.35}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content h4{margin-top:24px;font-size:19px;line-height:1.4;color:var(--jm-ink);font-weight:800}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content>:first-child{margin-top:0}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content p,body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content li{color:var(--h-body)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content ul,body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content ol{padding-left:1.3em}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content ul{list-style:disc}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tab-content a:not(.wp-block-button__link){color:var(--jm-primary);text-decoration:underline !important;text-underline-offset:3px;overflow-wrap:anywhere}
body.jt-ld27 .jm-page-course27 .h-ldbody img{max-width:100%;height:auto}
body.jt-ld27 .jm-page-course27 .h-ldbody iframe{max-width:100%}
body.jt-ld27 .jm-page-course27 .h-ldbody .wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px}
body.jt-ld27 .jm-page-course27 .h-ldbody .wp-block-button__link{display:inline-flex;align-items:center;min-height:48px;padding:12px 22px;border-radius:var(--jm-radius);background:var(--jm-primary);color:#fff;font-size:16px;font-weight:800;line-height:1.3}
/* video (LearnDash video progression keeps its own markup and script) */
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-video{position:relative;width:100%;height:auto;margin:0 0 36px;padding:0;aspect-ratio:16/9;border-radius:16px;background:var(--jm-g400);overflow:hidden}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-video iframe,body.jt-ld27 .jm-page-course27 .h-ldbody .ld-video video{position:absolute;inset:0;width:100% !important;height:100% !important;border:0}
/* topics inside a lesson (LearnDash .ld-table-list) in the draft's list look */
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-lesson-topic-list{margin-top:0}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tabs:has(.ld-tab-content>*)~* .ld-lesson-topic-list{margin-top:40px}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-tabs:not(:has(.ld-tab-content>*)){display:none}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list{margin:0;border:1px solid var(--h-line);border-radius:16px;background:#fff;overflow:hidden}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list .ld-table-list-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;min-height:0;padding:14px 20px;border-radius:0;background:var(--jm-g100) !important;color:var(--jm-ink) !important}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list-header .ld-item-icon{display:none}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list-header .ld-text{color:var(--jm-ink);font-size:17px;font-weight:800}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list-lesson-details{display:flex;gap:4px 16px;flex-wrap:wrap;color:var(--h-soft);font-size:14px;font-weight:700}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list-lesson-details>*{color:inherit}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list .ld-table-list-items{margin:0;padding:0;border:0;border-top:1px solid var(--h-line);background:#fff}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list .ld-table-list-item{margin:0;padding:0;border:0}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list .ld-table-list-item+.ld-table-list-item{border-top:1px solid var(--h-line)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list a.ld-table-list-item-preview{display:flex;align-items:center;gap:14px;min-height:56px;padding:8px 20px;color:var(--jm-ink);font-size:16px;font-weight:600;line-height:1.4;transition:background-color .16s}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list a.ld-table-list-item-preview:hover{background:var(--jm-g100);color:var(--jm-primary)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list .ld-topic-title{min-width:0;overflow-wrap:anywhere}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list-footer:empty{display:none}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-status-icon{flex:0 0 auto}
/* Previous / Mark complete / Next (LearnDash .ld-content-actions; titles added by inc/learndash.php) */
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px 20px;margin-top:40px;padding:12px;border:1px solid var(--h-line);border-radius:16px;background:#fff}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;margin:0;padding:0;width:auto;flex:none}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action:nth-child(2 of .ld-content-action){align-items:center;text-align:center}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action:nth-child(3 of .ld-content-action){align-items:flex-end;text-align:right}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action>a.ld-button{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;max-width:100%;min-height:64px;padding:10px 14px;border:0;border-radius:12px;background:transparent !important;box-shadow:none;color:var(--jm-primary) !important;font-size:14px;font-weight:800;line-height:1.35;text-align:inherit;transition:background-color .16s}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action:nth-child(3 of .ld-content-action)>a.ld-button{justify-content:flex-end}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action>a.ld-button:hover{background:var(--jm-g100) !important}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button .ld-text{color:inherit;font-size:14px;font-weight:800}
/* LearnDash's arrow glyphs come out as bars on the staging copy; the draft's chevrons are drawn instead */
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button .ld-icon{display:none}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button .ld-text{display:inline-flex;align-items:center;gap:6px}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button:has(.ld-icon-arrow-left) .ld-text::before,body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button:has(.ld-icon-arrow-right) .ld-text::after{content:"";width:16px;height:16px;flex:0 0 auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M11 4L6 9l5 5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M11 4L6 9l5 5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button:has(.ld-icon-arrow-right) .ld-text::after{transform:scaleX(-1)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button .h-t{flex:1 1 100%;color:var(--jm-ink);font-size:16px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions a.ld-button:hover .h-t{color:var(--jm-primary)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-course-step-back{color:var(--h-soft) !important;font-size:14px;font-weight:700;line-height:1.35}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-course-step-back:hover{color:var(--jm-primary) !important}
body.jt-ld27 .jm-page-course27 .h-ldbody .sfwd-mark-complete{margin:0}
body.jt-ld27 .jm-page-course27 .h-ldbody .learndash_mark_complete_button,body.jt-ld27 .jm-page-course27 .h-ldbody .learndash_mark_incomplete_button{min-height:52px;margin:0;padding:14px 26px;border:1px solid var(--jm-primary);border-radius:var(--jm-radius);background:var(--jm-primary);color:#fff;font-family:inherit;font-size:17px;font-weight:800;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background-color .16s}
body.jt-ld27 .jm-page-course27 .h-ldbody .learndash_mark_complete_button:hover{background:var(--jm-secondary,#7400B0);border-color:var(--jm-secondary,#7400B0)}
body.jt-ld27 .jm-page-course27 .h-ldbody .learndash_mark_complete_button:disabled{opacity:.5;cursor:not-allowed}
body.jt-ld27 .jm-page-course27 .h-ldbody .learndash_mark_incomplete_button{background:#fff;color:var(--jm-ink);border-color:var(--h-edge)}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-alert{margin:0 0 24px;border-radius:16px}
@media (max-width:980px){
.jm-page-course27 .h-ldet{order:2}
}
@media (max-width:640px){
.jm-page-course27 .h-about-body{padding:16px 18px 22px}
.jm-page-course27 .h-about-body p,.jm-page-course27 .h-about-body li{font-size:16px}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:0;border:0;background:transparent}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action:nth-child(2 of .ld-content-action){grid-column:1/-1;grid-row:1}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action:nth-child(2 of .ld-content-action) .sfwd-mark-complete,body.jt-ld27 .jm-page-course27 .h-ldbody .learndash_mark_complete_button{width:100%}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-content-actions .ld-content-action>a.ld-button{padding:10px 8px}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list a.ld-table-list-item-preview{padding:8px 16px}
body.jt-ld27 .jm-page-course27 .h-ldbody .ld-table-list .ld-table-list-header{padding:12px 16px}
}
