/* ============ Online course: enrol page, student area, lessons, quizzes ============ */
.c-card .st{flex-wrap:wrap;gap:8px 12px}
.c-price{font:400 26px/1 var(--serif);color:#000;margin-left:auto}
.c-card .st .chip{order:3}
button.link{border:0;cursor:pointer;font:inherit;text-transform:none;letter-spacing:0;padding:0;background:none;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px;color:#000}

/* ---------- Enrol ---------- */
.en{padding:clamp(40px,6vw,84px) 0 clamp(70px,8vw,120px)}
.en-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(36px,6vw,90px);align-items:start}
.en h1{font-size:clamp(38px,4.4vw,60px)}
.en-card{display:flex;gap:18px;align-items:center;margin:34px 0 8px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.en-card img{width:110px;aspect-ratio:3/2;object-fit:cover;border-radius:6px;flex:none}
.en-card b{display:block;font:400 19px/1.3 var(--serif-t);color:#000}
.en-price{display:block;margin-top:6px;font:400 30px/1 var(--serif);color:#000}
.en-price small{display:block;margin-top:8px;font:400 12.5px/1.4 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.en-form-wrap{position:sticky;top:110px}
.en-box{position:relative;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:10px;background:#fff;padding:clamp(26px,3.4vw,42px);box-shadow:0 40px 70px -50px rgba(0,0,0,.35);display:grid;gap:18px}
.en-box h2{font-size:clamp(28px,2.6vw,36px);margin:0}
.en-box p{margin:0}
.en-box.is-ok>svg{width:34px;height:34px;color:#000;background:var(--tint);border-radius:50%;padding:7px}
.en-msg{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:4px;background:var(--tint);font-size:14.5px;color:#000}
.en-msg svg{width:18px;height:18px;flex:none;margin-top:2px}
.en-msg.is-err{background:#fbeceb;color:#7a1f1a}
.en-secure{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.en-secure svg{width:15px;height:15px;flex:none}
.en-have{font-size:14px;color:var(--muted)}
.en-admin{font-size:13px;padding:10px 12px;background:#fff8e1;border:1px dashed var(--gold);border-radius:4px}
.en .ticks{margin-top:26px}

/* ---------- Student area ---------- */
.cs-gate h1{font-size:clamp(38px,4.6vw,62px)}
.cs-hero{background:var(--tint);padding:clamp(44px,6vw,80px) 0}
.cs-hero-grid{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center}
.cs-title{font-size:clamp(36px,4.4vw,58px);line-height:1.08}
.cs-title em{font-style:italic}
.cs-hero .lead{margin-top:18px;max-width:620px}
.cs-note{display:flex;gap:12px;align-items:flex-start;margin-top:22px;max-width:640px;padding:14px 16px;background:#fff;border-radius:6px;border-left:3px solid #000;font-size:15px;color:#000}
.cs-note.is-ok{border-left-color:var(--gold)}
.cs-note svg{width:20px;height:20px;flex:none;margin-top:2px}
.cs-hero .btns{margin-top:28px}
.cs-ring{position:relative;width:190px;height:190px}
.cs-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.cs-ring circle{fill:none;stroke:rgba(0,0,0,.08);stroke-width:7}
.cs-ring circle.v{stroke:#000;stroke-linecap:round;stroke-dasharray:calc(var(--p) * 1) 100;transition:stroke-dasharray 1.4s var(--ease)}
.cs-ring div{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.cs-ring b{font:400 44px/1 var(--serif);color:#000}
.cs-ring span{font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:6px}
.cs-secs{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.cs-sec{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.cs-sec-h{display:flex;gap:14px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}
.cs-sec-h .mn,.co-sec .mn{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--gold);font:400 16px/1 var(--serif);color:#000}
.cs-sec.is-done .mn{background:var(--gold)}
.cs-sec-h b{display:block;font:400 20px/1.25 var(--serif-t);color:#000}
.cs-sec-h small{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.cs-sec-h .cnt{margin-left:auto;font-size:12.5px;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.cs-sec ul{list-style:none;margin:0;padding:8px 0}
.cs-sec li a,.cs-sec li>span{display:flex;gap:12px;align-items:center;padding:10px 20px;font-size:14.5px;color:#222;line-height:1.4}
.cs-sec li a:hover{background:var(--tint)}
.cs-sec li svg{width:18px;height:18px;flex:none;color:#000}
.cs-sec li em{font-style:normal;flex:1}
.cs-sec .tp{font-style:normal;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--soft)}
.cs-sec li.is-done svg{color:#fff;background:var(--gold);border-radius:50%;padding:3px}
.cs-sec li.is-open a{font-weight:500;color:#000}
.cs-sec li.is-locked>span{color:#9a9a9a}
.cs-sec li.is-locked svg{color:#b5b5b5}
.cs-cert{display:flex;gap:18px;align-items:center;margin-top:28px;padding:22px 24px;border:1px dashed #cfcfcf;border-radius:10px;color:var(--muted)}
.cs-cert>svg{width:38px;height:38px;flex:none;color:#bbb}
.cs-cert b{display:block;font:400 20px/1.3 var(--serif-t);color:#000}
.cs-cert span{font-size:14px}
.cs-cert .btn{margin-left:auto}
.cs-cert.is-ready{border:1px solid var(--gold);background:var(--tint)}
.cs-cert.is-ready>svg{color:#000}

/* ---------- Lesson / quiz layout ---------- */
.cl{padding:clamp(28px,4vw,56px) 0 clamp(70px,8vw,120px)}
.cl-grid{display:grid;grid-template-columns:310px 1fr;gap:clamp(30px,4.5vw,64px);align-items:start}
.cl-side{position:sticky;top:100px;max-height:calc(100vh - 120px);overflow:auto;scrollbar-width:thin}
.cl-main{min-width:0;max-width:820px}
.cl-main .crumbs{margin-bottom:24px}
.cl-title{font-size:clamp(32px,3.6vw,48px);line-height:1.12;margin:0 0 28px}
.cl-video{position:relative;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden;margin:0 0 30px;box-shadow:0 30px 60px -40px rgba(0,0,0,.6)}
.cl-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cl-ebook{display:flex;gap:16px;align-items:center;margin:0 0 30px;padding:18px 20px;border-radius:8px;background:var(--tint)}
.cl-ebook>svg{width:30px;height:30px;flex:none}
.cl-ebook b{display:block;font:400 19px/1.3 var(--serif-t);color:#000}
.cl-ebook span{font-size:13.5px;color:var(--muted)}
.cl-ebook .btn{margin-left:auto;flex:none}
.cl-entry{font-size:16.5px;line-height:1.8;color:#2a2a2a}
.cl-entry h2{font:400 clamp(26px,2.4vw,32px)/1.2 var(--serif);margin:40px 0 14px}
.cl-entry h3{font:400 22px/1.3 var(--serif-t);margin:32px 0 10px}
.cl-entry img{border-radius:6px;margin:10px 0}
.cl-entry ul,.cl-entry ol{padding-left:22px}
.cl-entry li{margin-bottom:6px}
.cl-foot{display:flex;flex-wrap:wrap;gap:16px 26px;align-items:center;margin-top:44px;padding-top:30px;border-top:1px solid var(--line)}
.cl-prev{display:inline-flex;gap:8px;align-items:center;font-size:13.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cl-prev svg{width:16px;height:16px}
.cl-donemsg{display:flex;gap:10px;align-items:center;margin:0;width:100%;font-size:15px;color:#000}
.cl-donemsg svg{width:22px;height:22px;color:#fff;background:var(--gold);border-radius:50%;padding:4px;flex:none}

/* outline (sidebar) */
.co{border:1px solid var(--line);border-radius:10px;background:#fff;padding:16px 0 8px}
.co-back{display:flex;gap:8px;align-items:center;padding:0 18px 12px;font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:#000}
.co-back svg{width:15px;height:15px}
.co-prog{padding:0 18px 14px;border-bottom:1px solid var(--line)}
.co-bar,.tg-bar{height:6px;border-radius:6px;background:#ececec;overflow:hidden}
.co-bar i{display:block;height:100%;background:var(--gold)}
.co-prog span{display:block;margin-top:8px;font-size:12.5px;color:var(--muted)}
.co-sec{border-bottom:1px solid var(--line)}
.co-sec:last-child{border-bottom:0}
.co-sec summary{display:flex;gap:10px;align-items:center;padding:12px 18px;cursor:pointer;list-style:none}
.co-sec summary::-webkit-details-marker{display:none}
.co-sec summary b{flex:1;font:500 14px/1.3 var(--sans);color:#000}
.co-sec summary>svg{width:15px;height:15px;transition:transform .3s}
.co-sec[open] summary>svg{transform:rotate(180deg)}
.co-sec .mn{width:28px;height:28px;font-size:13px}
.co-sec ul{list-style:none;margin:0;padding:0 0 10px}
.co-sec li a,.co-sec li>span{display:flex;gap:10px;align-items:flex-start;padding:7px 18px 7px 22px;font-size:13.5px;line-height:1.4;color:#333}
.co-sec li a:hover{background:var(--tint)}
.co-sec li svg{width:15px;height:15px;flex:none;margin-top:2px}
.co-sec li.is-done svg{color:#fff;background:var(--gold);border-radius:50%;padding:2px}
.co-sec li.is-locked>span{color:#a5a5a5}
.co-sec li.is-current a{background:#000;color:#fff}
.co-sec li.is-current svg{color:var(--gold)}
.co-sec li.is-quiz a,.co-sec li.is-quiz>span{font-style:italic}

/* quiz */
.qz{display:grid;gap:22px;margin-top:10px}
.qz-q{border:1px solid var(--line);border-radius:10px;padding:22px 22px 14px;margin:0;background:#fff}
.qz-q legend{display:flex;gap:12px;align-items:flex-start;padding:0 6px;font:400 19px/1.4 var(--serif-t);color:#000}
.qz-q legend small{font:400 12.5px/1.6 var(--sans);color:var(--muted)}
.qz-n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--gold);font:500 13px/1 var(--sans)}
.qz-a{display:flex;gap:12px;align-items:flex-start;padding:11px 12px;margin-top:8px;border-radius:6px;border:1px solid transparent;cursor:pointer;font-size:15.5px;line-height:1.5;color:#222}
.qz-a:hover{background:var(--tint)}
.qz-a input{width:18px;height:18px;margin-top:3px;flex:none;accent-color:#000;padding:0}
.qz-a.is-right{border-color:var(--gold);background:var(--gold-t)}
.qz-q.is-ok{border-color:#9fc59a}
.qz-q.is-no{border-color:#e3a39c}
.qz .btn{justify-self:start}
.qz-result{display:grid;gap:10px;justify-items:start;margin:0 0 26px;padding:22px 24px;border-radius:10px;scroll-margin-top:120px}
.qz-result.is-pass{background:var(--tint);border-left:4px solid var(--gold)}
.qz-result.is-fail{background:#fbeceb;border-left:4px solid #b4473b}
.qz-result b{font:400 26px/1.2 var(--serif);color:#000}
.qz-result p{margin:0}

/* admin-only bits shown on the site */
.tg-test{display:inline-block;padding:1px 6px;border-radius:8px;background:#fff3cd;font-size:11px}

@media (max-width:1024px){
  .cl-grid{grid-template-columns:1fr}
  .cl-side{position:static;max-height:none;order:2}
  .en-grid{grid-template-columns:1fr}
  .en-form-wrap{position:static}
}
@media (max-width:760px){
  .cs-hero-grid{grid-template-columns:1fr}
  .cs-ring{width:140px;height:140px;order:-1}
  .cs-ring b{font-size:34px}
  .cs-secs{grid-template-columns:1fr}
  .cs-cert{flex-wrap:wrap}
  .cs-cert .btn{margin-left:0}
  .cl-ebook{flex-wrap:wrap}
  .cl-ebook .btn{margin-left:0}
  .qz-q{padding:18px 14px 10px}
}

/* long course buttons wrap instead of pushing the page wider than the phone */
.cs-hero-grid>div,.cl-main,.en-grid>div{min-width:0}
.cs-hero .btn,.cl-foot .btn,.qz-result .btn,.en-box .btn{white-space:normal;height:auto;min-height:52px;padding-top:14px;padding-bottom:14px;line-height:1.35;max-width:100%}

/* ---------- E-book reader (page-turning book) ---------- */
.cl-ebook-act{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.cl-ebook-act .btn{margin-left:0}
.cl-ebook-dl{font-size:12.5px;color:var(--muted);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
html.fb-open{overflow:hidden}
.fb{position:fixed;inset:0;z-index:100000;background:#12100c;display:grid;grid-template-rows:auto 1fr;opacity:0;transition:opacity .3s ease}
.fb.on{opacity:1}
.fb-top{display:flex;align-items:center;gap:18px;padding:14px 22px;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.fb-title{font:400 19px/1.2 var(--serif-t);color:#fff;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fb-count{font-size:13px;letter-spacing:.08em;color:rgba(255,255,255,.7);white-space:nowrap}

.fb-dl svg{width:15px;height:15px}
.fb-x{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.fb-x svg{width:18px;height:18px}
.fb-x:hover{background:#fff;color:#000}
.fb-stage{position:relative;display:grid;place-items:center;padding:24px 80px;min-height:0;overflow:hidden}
.fb-book{opacity:0;transition:opacity .5s ease,transform .6s cubic-bezier(.2,.7,.1,1)}
.fb.loaded .fb-book{opacity:1}
.fb.loaded .fb-loading{display:none}
.fb-loading{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:16px;color:rgba(255,255,255,.8);font-size:15px;text-align:center;padding:20px}
.fb-loading a{color:#D4AF37;text-decoration:underline}
.fb-spin{width:38px;height:38px;border-radius:50%;border:2px solid rgba(255,255,255,.15);border-top-color:#D4AF37;animation:fbspin 1s linear infinite}
@keyframes fbspin{to{transform:rotate(360deg)}}
.fb-page{background:#fff;overflow:hidden}
.fb-page canvas{display:block;width:100%;height:100%}
.fb-page:not(.drawn)::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#f3f0e8 30%,#fbf9f4 50%,#f3f0e8 70%);background-size:200% 100%;animation:fbshine 1.4s linear infinite}
@keyframes fbshine{to{background-position:-200% 0}}
.fb-pn{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:11px;color:#9a9a9a;pointer-events:none}
.fb-page.drawn .fb-pn{display:none}
.fb-nav{position:fixed;top:50%;width:52px;height:52px;margin-top:-26px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.35);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:2;transition:background .3s,color .3s}
.fb-nav svg{width:20px;height:20px}
.fb-nav:hover{background:#D4AF37;color:#000;border-color:#D4AF37}
.fb-prev{left:16px}.fb-next{right:16px}
@media (max-width:760px){
  .fb-top{padding:10px 14px;gap:10px;flex-wrap:wrap}
  .fb-dl span{display:none}
  .fb-stage{padding:14px 10px 74px}
  .fb-nav{top:auto;bottom:14px;margin-top:0}
  .fb-prev{left:calc(50% - 64px)}.fb-next{right:calc(50% - 64px)}
  .cl-ebook-act{align-items:flex-start;margin-left:0}
}

/* ---------- Lesson reading style (text from the old course keeps its words; only the look is set here) ---------- */
.cl-entry{max-width:720px;font-size:17px;line-height:1.85;color:#2b2b2b}
.cl-entry>*:first-child{margin-top:0}
.cl-entry p,.cl-entry li{font-size:17px!important;line-height:1.85}
.cl-entry p{margin:0 0 20px}
.cl-entry em,.cl-entry i{font-family:inherit;font-style:italic}
.cl-entry strong,.cl-entry b{font-weight:600;color:#000}
.cl-entry h2,.cl-entry h3,.cl-entry h4,.cl-entry h5,.cl-entry h6{font-family:var(--serif-t)!important;font-weight:400;color:#000;letter-spacing:0;text-transform:none}
.cl-entry h2{font-size:27px!important;line-height:1.3!important;margin:48px 0 16px;padding-top:26px;border-top:1px solid var(--line)}
.cl-entry h3{font-size:22px!important;line-height:1.35!important;margin:36px 0 12px}
.cl-entry h4,.cl-entry h5,.cl-entry h6{font-size:19px!important;line-height:1.4!important;margin:28px 0 10px}
.cl-entry>h2:first-child,.cl-entry>h3:first-child{border-top:0;padding-top:0}
.cl-entry ul,.cl-entry ol{margin:0 0 22px;padding-left:4px;list-style:none}
.cl-entry ol{counter-reset:li}
.cl-entry ul li,.cl-entry ol li{position:relative;padding-left:28px;margin-bottom:10px}
.cl-entry ul li::before{content:"";position:absolute;left:4px;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--gold)}
.cl-entry ol li{counter-increment:li}
.cl-entry ol li::before{content:counter(li);position:absolute;left:0;top:.2em;width:20px;height:20px;border-radius:50%;border:1px solid var(--gold);font:500 11px/19px var(--sans);text-align:center;color:#000}
.cl-entry li ul,.cl-entry li ol{margin:10px 0 0}
.cl-entry figure{margin:30px 0}
.cl-entry figure.aligncenter,.cl-entry .aligncenter{margin-left:auto;margin-right:auto;text-align:center}
.cl-entry figure img,.cl-entry img{max-width:100%;height:auto;border-radius:8px;box-shadow:0 20px 40px -28px rgba(0,0,0,.45)}
.cl-entry figcaption{font-size:13.5px;color:var(--muted);margin-top:10px;text-align:center}
.cl-entry .has-text-align-center{text-align:center}
.cl-entry hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.cl-entry blockquote{margin:30px 0;padding:18px 24px;background:var(--tint);border-left:3px solid var(--gold);border-radius:0 8px 8px 0;font:italic 400 19px/1.6 var(--serif-t)}
.cl-entry a{color:#000;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.cl-main .cl-title{max-width:760px}

/* ---------- Course layout: slim course bar instead of the website menu ---------- */
.cb{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line)}
.admin-bar .cb{top:32px}
@media (max-width:782px){.admin-bar .cb{top:46px}}
@media (max-width:600px){.admin-bar .cb{top:0}}
.cb-in{display:flex;align-items:center;gap:28px;height:68px;max-width:1440px;margin:0 auto;padding:0 var(--gut)}
.cb-brand{display:flex;align-items:center;gap:12px;color:#000;flex:none}
.cb-brand img{width:40px;height:40px}
.cb-brand b{display:block;font:400 18px/1.15 var(--serif);white-space:nowrap}
.cb-brand small{display:block;font:italic 400 13px/1.2 var(--serif-t);color:var(--muted)}
.cb-prog{flex:1;max-width:340px;display:flex;align-items:center;gap:12px;margin-left:auto}
.cb-bar{flex:1;height:6px;border-radius:6px;background:#ececec;overflow:hidden}
.cb-bar i{display:block;height:100%;background:var(--gold);border-radius:6px}
.cb-prog span{font-size:12.5px;color:var(--muted);white-space:nowrap}
.cb-nav{display:flex;gap:4px}
.cb-nav a{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:6px;font-size:14px;color:#333;white-space:nowrap}
.cb-nav a svg{width:17px;height:17px}
.cb-nav a:hover,.cb-nav a.on{background:var(--tint);color:#000}
.cb-user{position:relative}
.cb-user summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;padding:5px 8px 5px 5px;border-radius:30px;border:1px solid var(--line)}
.cb-user summary::-webkit-details-marker{display:none}
.cb-user summary>svg{width:14px;height:14px;transition:transform .3s}
.cb-user[open] summary>svg{transform:rotate(180deg)}
.cb-av{width:32px;height:32px;border-radius:50%;background:#000;color:var(--gold);display:grid;place-items:center;font:400 16px/1 var(--serif)}
.cb-name{font-size:14px;color:#000;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cb-menu{position:absolute;right:0;top:calc(100% + 10px);width:250px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 30px 60px -30px rgba(0,0,0,.35);padding:8px;z-index:5}
.cb-who{margin:0;padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.cb-who b{display:block;font-size:14.5px;color:#000}
.cb-who span{display:block;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.cb-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;font-size:14px;color:#222}
.cb-menu a svg{width:16px;height:16px;color:#000}
.cb-menu a:hover{background:var(--tint)}
.cb-menu .cb-out{color:#7a1f1a}
.cf{border-top:1px solid var(--line);padding:22px 0;font-size:13.5px;color:var(--muted)}
.cf .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.cf a{color:#000;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.tg-in-course .cl-side{top:88px;max-height:calc(100vh - 104px)}
.tg-in-course .cl{padding-top:clamp(24px,3vw,40px)}

/* ---------- Student dashboard ---------- */
.sd-hero{background:var(--tint);padding:clamp(34px,4.5vw,60px) 0 clamp(40px,5vw,64px)}
.sd-hero .cs-note{margin:0 0 26px}
.sd-hero-grid{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center}
.sd-hero .lead{margin-top:14px;max-width:620px}
.sd-hero .cs-ring{width:150px;height:150px}
.sd-hero .cs-ring b{font-size:38px}
.sd-next{display:grid;grid-template-columns:300px 1fr;margin-top:34px;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 40px 70px -45px rgba(0,0,0,.45);color:#000;transition:transform .4s var(--ease),box-shadow .4s}
a.sd-next:hover{transform:translateY(-3px);box-shadow:0 50px 80px -45px rgba(0,0,0,.55)}
.sd-next img{width:100%;height:100%;min-height:200px;object-fit:cover}
.sd-next-b{padding:clamp(24px,3vw,38px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px}
.sd-next-b .chip{background:var(--gold);border-color:var(--gold);color:#000}
.sd-next-b small{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sd-next-b h2{font:400 clamp(26px,2.6vw,36px)/1.2 var(--serif-t);margin:0 0 8px}
.sd-next-b p{margin:0 0 6px;color:var(--muted)}
.sd-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}
.sd-stats>div{background:#fff;border-radius:12px;padding:18px 20px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center}
.sd-stats svg{grid-row:span 2;width:36px;height:36px;padding:8px;border-radius:50%;background:var(--tint);color:#000}
.sd-stats b{font:400 28px/1 var(--serif);color:#000}
.sd-stats b small{font:400 15px var(--sans);color:var(--soft)}
.sd-stats .sd-cert-st{font-size:22px}
.sd-stats span{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:4px}
.sd-body{padding:clamp(50px,6vw,84px) 0 clamp(60px,7vw,100px)}
.sd-head{margin:0 0 26px}
.sd-head .eyebrow{margin-bottom:12px}
.sd-head h2{font-size:clamp(30px,3.2vw,44px)}
.sd-secs{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px;margin-bottom:clamp(56px,6vw,84px)}
.sd-sec{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .35s,transform .35s var(--ease)}
.sd-sec:hover{box-shadow:0 30px 60px -40px rgba(0,0,0,.45);transform:translateY(-2px)}
.sd-sec.is-here{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-t)}
.sd-sec-img{position:relative;aspect-ratio:16/9;background:#eee;overflow:hidden}
.sd-sec-img img{width:100%;height:100%;object-fit:cover}
.sd-sec.is-locked .sd-sec-img img{filter:grayscale(.6) brightness(.9)}
.sd-sec-img .mn{position:absolute;left:14px;top:14px;width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;font:400 17px/1 var(--serif);color:#000;box-shadow:0 6px 16px -6px rgba(0,0,0,.4)}
.sd-st{position:absolute;right:12px;top:14px;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:20px;background:rgba(255,255,255,.94);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#000}
.sd-st svg{width:13px;height:13px}
.sd-sec.is-done .sd-st{background:var(--gold)}
.sd-sec-b{padding:20px 22px 18px;display:flex;flex-direction:column;flex:1}
.sd-sec-b h3{font:400 22px/1.25 var(--serif-t);margin:0}
.sd-sec-b small{font-size:13px;color:var(--muted);margin-top:4px}
.sd-bar{height:6px;border-radius:6px;background:#ececec;overflow:hidden;margin-top:16px}
.sd-bar i{display:block;height:100%;background:var(--gold)}
.sd-cnt{font-size:12.5px;color:var(--muted);margin-top:8px}
.sd-sec details{margin-top:14px;border-top:1px solid var(--line);padding-top:6px}
.sd-sec summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#000;cursor:pointer}
.sd-sec summary::-webkit-details-marker{display:none}
.sd-sec summary svg{width:15px;height:15px;transition:transform .3s}
.sd-sec details[open] summary svg{transform:rotate(180deg)}
.sd-sec ul{list-style:none;margin:0;padding:0 0 4px}
.sd-sec li a,.sd-sec li>span{display:flex;gap:10px;align-items:flex-start;padding:7px 8px;border-radius:6px;font-size:14px;line-height:1.4;color:#333}
.sd-sec li a:hover{background:var(--tint)}
.sd-sec li svg{width:15px;height:15px;flex:none;margin-top:2px}
.sd-sec li em{font-style:normal;font-family:inherit}
.sd-sec li.is-done svg{color:#fff;background:var(--gold);border-radius:50%;padding:2px}
.sd-sec li.is-open a{color:#000;font-weight:500}
.sd-sec li.is-locked>span{color:#a5a5a5}
.sd-books{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:26px;margin-bottom:clamp(56px,6vw,84px)}
.sd-book button,.sd-book-c{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;border-radius:4px 10px 10px 4px;overflow:hidden;box-shadow:0 24px 40px -24px rgba(0,0,0,.55);transition:transform .4s var(--ease)}
.sd-book button:hover{transform:translateY(-6px) rotate(-1deg)}
.sd-book img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover}
.sd-read{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 8px;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;font-size:12.5px;letter-spacing:.1em;text-transform:uppercase}
.sd-read svg{width:16px;height:16px}
.sd-book.is-locked .sd-book-c{cursor:default}
.sd-book.is-locked img{filter:grayscale(.8) brightness(.85)}
.sd-book.is-locked .sd-read{text-transform:none;letter-spacing:0;font-size:12px}
.sd-book b{display:block;margin-top:14px;font:400 16px/1.35 var(--serif-t);color:#000}
.sd-foot{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}
.sd-foot .cs-cert{margin-top:0}
.sd-help{display:flex;gap:16px;align-items:center;padding:22px 24px;border:1px solid var(--line);border-radius:10px}
.sd-help>svg{width:30px;height:30px;flex:none}
.sd-help b{display:block;font:400 19px/1.3 var(--serif-t);color:#000}
.sd-help span{font-size:14px;color:var(--muted)}
.sd-help .btn{margin-left:auto;flex:none}
.cs-sec li em,.co-sec li em{font-family:inherit}

@media (max-width:1024px){
  .cb-prog{display:none}
  .cb-nav{margin-left:auto}
  .sd-stats{grid-template-columns:repeat(2,1fr)}
  .sd-foot{grid-template-columns:1fr}
}
@media (max-width:760px){
  .cb-in{gap:10px;height:60px}
  .cb-brand small,.cb-nav span,.cb-name{display:none}
  .cb-brand b{font-size:16px}
  .cb-nav a{padding:9px}
  .sd-hero-grid{grid-template-columns:1fr}
  .sd-hero .cs-ring{width:120px;height:120px;order:-1}
  .sd-hero .cs-ring b{font-size:30px}
  .sd-next{grid-template-columns:1fr}
  .sd-next img{min-height:0;aspect-ratio:16/9}
  .sd-stats>div{padding:14px}
  .sd-stats b{font-size:24px}
  .sd-books{grid-template-columns:repeat(2,1fr);gap:16px}
  .sd-help{flex-wrap:wrap}
  .sd-help .btn{margin-left:0}
  .cl-entry,.cl-entry p,.cl-entry li{font-size:16.5px!important}
  .cl-entry h2{font-size:24px!important}
}
.sd-next{grid-template-columns:240px 1fr;max-height:300px}
.sd-next img{object-position:top center}
@media (max-width:760px){.sd-next{grid-template-columns:1fr;max-height:none}.sd-next img{aspect-ratio:16/9;max-height:220px}}

/* quiz results: correct answers green, wrong choices red */
.qz-a{position:relative}
.qz-a.is-right{border-color:#7fb77e;background:#eef7ec}
.qz-a.is-right input{accent-color:#2f7d32}
.qz-a.is-wrong{border-color:#e3a39c;background:#fbeceb}
.qz-a.is-wrong input{accent-color:#b4473b}
.qz-a.is-right span::before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;margin-right:8px;border-radius:50%;background:#2f7d32;color:#fff;font:600 12px/1 var(--sans);vertical-align:1px}
.qz-a.is-wrong span::before{content:"✗";display:inline-grid;place-items:center;width:20px;height:20px;margin-right:8px;border-radius:50%;background:#b4473b;color:#fff;font:600 12px/1 var(--sans);vertical-align:1px}
.qz-tag{margin-left:auto;align-self:center;flex:none;padding:3px 9px;border-radius:12px;font:500 11px/1.4 var(--sans);font-style:normal;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.qz-a.is-right .qz-tag{background:#2f7d32;color:#fff}
.qz-a.is-wrong .qz-tag{background:#b4473b;color:#fff}
.qz-q.is-ok{border-color:#7fb77e}
.qz-q.is-no{border-color:#e3a39c}
.qz-q.is-ok .qz-n{background:#2f7d32;color:#fff}
.qz-q.is-no .qz-n{background:#b4473b;color:#fff}
.qz.is-editing .qz-a{border-color:transparent;background:none}
.qz.is-editing .qz-a span::before,.qz.is-editing .qz-tag{display:none}
.qz.is-editing .qz-q{border-color:var(--line)}
.qz.is-editing .qz-q .qz-n{background:var(--gold);color:#000}
@media (max-width:760px){.qz-a{flex-wrap:wrap}.qz-tag{margin-left:30px}}

/* whole book covers on the dashboard (no cropping) */
.sd-sec-img{background:radial-gradient(ellipse at 50% 40%,#fbf6e6,#F4EBCD 70%)}
.sd-sec-img img{object-fit:contain;padding:14px 0;filter:drop-shadow(0 12px 18px rgba(0,0,0,.28))}
.sd-next{background:#fff}
.sd-next img{object-fit:contain;object-position:center;padding:18px;background:radial-gradient(ellipse at 50% 40%,#fbf6e6,#F4EBCD 70%);filter:none}

/* part cards: whole cover on the left, details on the right (replaces the picture-on-top layout) */
.sd-secs{grid-template-columns:repeat(auto-fill,minmax(440px,1fr))}
.sd-sec{flex-direction:row;align-items:flex-start;gap:0}
.sd-sec-img{flex:none;width:132px;aspect-ratio:auto;background:none;padding:20px 0 20px 20px;overflow:visible}
.sd-sec-img img{width:100%;height:auto;object-fit:initial;padding:0;filter:none;border-radius:3px 6px 6px 3px;box-shadow:0 14px 24px -14px rgba(0,0,0,.55)}
.sd-sec-b{padding:20px 22px 16px 22px;min-width:0}
.sd-sec-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.sd-sec-top .mn{width:34px;height:34px;border-radius:50%;border:1px solid var(--gold);display:grid;place-items:center;font:400 15px/1 var(--serif);color:#000}
.sd-sec.is-done .sd-sec-top .mn{background:var(--gold)}
.sd-sec-top .sd-st{position:static;background:var(--tint);padding:5px 10px}
.sd-sec.is-done .sd-sec-top .sd-st{background:var(--gold)}
.sd-sec.is-locked .sd-sec-top .sd-st{background:#f1f1f1;color:#777}
.sd-sec.is-locked .sd-sec-img img{filter:grayscale(.6) brightness(.95)}
/* continue / certificate card: picture at its natural shape */
.sd-next{grid-template-columns:auto 1fr;max-height:none;align-items:center}
.sd-next img{width:auto;height:230px;max-width:340px;object-fit:contain;padding:22px 0 22px 26px;background:none;min-height:0;border-radius:0}
@media (max-width:760px){
  .sd-secs{grid-template-columns:1fr}
  .sd-sec-img{width:92px;padding:16px 0 16px 16px}
  .sd-sec-b{padding:16px}
  .sd-next{grid-template-columns:1fr}
  .sd-next img{height:auto;max-height:220px;max-width:100%;padding:20px 20px 0;justify-self:center}
}

/* ---------- Course bar: photo + light/dark switch ---------- */
.cb-av{overflow:hidden}
.cb-av img{width:100%;height:100%;object-fit:cover}
.cb-mode{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:transparent;color:#000;display:grid;place-items:center;cursor:pointer;transition:background .3s}
.cb-mode:hover{background:var(--tint)}
.cb-mode svg{width:18px;height:18px}
.cb-mode .m-sun{display:none}
html.cm-dark .cb-mode .m-sun{display:block}
html.cm-dark .cb-mode .m-moon{display:none}

/* ---------- My profile ---------- */
.pf-body{padding-top:clamp(36px,4vw,56px)}
.pf{display:grid;grid-template-columns:260px 1fr;gap:clamp(28px,4vw,60px);align-items:start;max-width:980px}
.pf-photo{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:28px 20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.pf-pic{width:150px;height:150px;border-radius:50%;overflow:hidden;background:#000;color:var(--gold);display:grid;place-items:center;font:400 56px/1 var(--serif);border:3px solid var(--gold)}
.pf-pic img{width:100%;height:100%;object-fit:cover}
.pf-up{cursor:pointer}
.pf-hint{font-size:12.5px;color:var(--muted);margin:0}
.pf-rm{font-size:13.5px}
.pf-fields h2{font-size:clamp(26px,2.6vw,34px);margin:0 0 6px}
.pf-fields .form-grid{margin-top:20px}
.pf-fields input[readonly]{background:#f6f6f6;color:#777}
.pf-cert{margin-top:20px;font-size:15px}
.pf-certno{margin-top:14px;font-size:14px;color:var(--muted)}
.pf-certno code{background:var(--tint);padding:2px 8px;border-radius:4px;color:#000}
.cs-note.is-err{border-left-color:#b4473b;background:#fbeceb;color:#7a1f1a}
@media (max-width:760px){.pf{grid-template-columns:1fr}.pf .form-grid{grid-template-columns:1fr}}

/* ---------- Certificate check page ---------- */
.vf-h{font-size:clamp(38px,4.6vw,60px)}
.vf-form{display:flex;gap:12px;margin-top:30px}
.vf-form input{flex:1;text-transform:uppercase;letter-spacing:.06em}
.vf-form .btn{flex:none}
.vf-card{display:flex;gap:26px;align-items:flex-start;margin-top:34px;padding:28px;border-radius:14px;border:1px solid var(--line);background:#fff;box-shadow:0 30px 60px -45px rgba(0,0,0,.4)}
.vf-card.is-ok{border-top:3px solid #2f7d32}
.vf-card.is-no{border-top:3px solid #b4473b}
.vf-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--gold);flex:none}
.vf-st{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;font-weight:500}
.vf-card.is-ok .vf-st{color:#2f7d32}.vf-card.is-no .vf-st{color:#b4473b}
.vf-st svg{width:18px;height:18px}
.vf-card h2{font:400 32px/1.15 var(--serif-t);margin:0 0 14px}
.vf-card dl{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;margin:0;font-size:15px}
.vf-card dt{color:var(--muted)}
.vf-card dd{margin:0;color:#000}
.vf-card code{background:var(--tint);padding:2px 8px;border-radius:4px}
@media (max-width:600px){.vf-form{flex-direction:column}.vf-card{flex-direction:column}.vf-card dl{grid-template-columns:1fr}}

/* ---------- Dark mode (course pages only; the website itself stays light) ---------- */
html.cm-dark body.tg-in-course{
  --tint:#1f1c16;--line:#34302a;--soft:#8f897e;--text:#e9e5db;--ink:#f4f0e7;--sage-d:#f4f0e7;--gold-t:rgba(212,175,55,.18);
  background:#121110;color:#e9e5db}
html.cm-dark body.tg-in-course{--muted:#b3ada2}
html.cm-dark .tg-in-course h1,html.cm-dark .tg-in-course h2,html.cm-dark .tg-in-course h3,html.cm-dark .tg-in-course h4,
html.cm-dark .tg-in-course .cl-title,html.cm-dark .tg-in-course .cs-title,html.cm-dark .tg-in-course .eyebrow,
html.cm-dark .tg-in-course .cl-entry strong,html.cm-dark .tg-in-course .cl-entry b,html.cm-dark .tg-in-course .cl-entry a,
html.cm-dark .tg-in-course .lead{color:#f4f0e7}
html.cm-dark .tg-in-course .cl-entry,html.cm-dark .tg-in-course .cl-entry p,html.cm-dark .tg-in-course .cl-entry li{color:#d9d4c9}
html.cm-dark .tg-in-course .cb,html.cm-dark .tg-in-course .cb-menu,html.cm-dark .tg-in-course .co,
html.cm-dark .tg-in-course .sd-sec,html.cm-dark .tg-in-course .sd-next,html.cm-dark .tg-in-course .sd-stats>div,
html.cm-dark .tg-in-course .qz-q,html.cm-dark .tg-in-course .sd-help,html.cm-dark .tg-in-course .cs-note,
html.cm-dark .tg-in-course .pf-photo{background:#1a1815;color:#e9e5db;border-color:#34302a}
html.cm-dark .tg-in-course .sd-hero{background:#17150f}
html.cm-dark .tg-in-course .cb-brand,html.cm-dark .tg-in-course .cb-name,html.cm-dark .tg-in-course .cb-nav a,html.cm-dark .tg-in-course .cb-menu a,
html.cm-dark .tg-in-course .cb-who b,html.cm-dark .tg-in-course .cb-mode,html.cm-dark .tg-in-course .co-back,
html.cm-dark .tg-in-course .co-sec summary b,html.cm-dark .tg-in-course .co-sec li a,html.cm-dark .tg-in-course .sd-sec li a,
html.cm-dark .tg-in-course .sd-sec summary,html.cm-dark .tg-in-course .sd-next,html.cm-dark .tg-in-course .sd-stats b,
html.cm-dark .tg-in-course .sd-book b,html.cm-dark .tg-in-course .sd-help b,html.cm-dark .tg-in-course .cs-cert b,
html.cm-dark .tg-in-course .qz-q legend,html.cm-dark .tg-in-course .qz-a,html.cm-dark .tg-in-course .cl-ebook b,
html.cm-dark .tg-in-course .qz-result b,html.cm-dark .tg-in-course .cl-donemsg,html.cm-dark .tg-in-course .crumbs a,
html.cm-dark .tg-in-course .cf a,html.cm-dark .tg-in-course .cb-menu a svg{color:#efeadf}
html.cm-dark .tg-in-course .cb-menu a:hover,html.cm-dark .tg-in-course .cb-nav a:hover,html.cm-dark .tg-in-course .cb-nav a.on,
html.cm-dark .tg-in-course .co-sec li a:hover,html.cm-dark .tg-in-course .sd-sec li a:hover,html.cm-dark .tg-in-course .qz-a:hover,
html.cm-dark .tg-in-course .cb-mode:hover{background:#2a261f}
html.cm-dark .tg-in-course .co-sec li.is-current a{background:#D4AF37;color:#000}
html.cm-dark .tg-in-course .co-sec li.is-current svg{color:#000}
html.cm-dark .tg-in-course .cb-av{background:#D4AF37;color:#000}
html.cm-dark .tg-in-course .cb-bar,html.cm-dark .tg-in-course .co-bar,html.cm-dark .tg-in-course .sd-bar{background:#2e2a23}
html.cm-dark .tg-in-course .cs-ring circle{stroke:rgba(255,255,255,.1)}
html.cm-dark .tg-in-course .cs-ring circle.v{stroke:#D4AF37}
html.cm-dark .tg-in-course .cs-ring b{color:#f4f0e7}
html.cm-dark .tg-in-course .sd-sec-top .mn,html.cm-dark .tg-in-course .cs-sec-h .mn,html.cm-dark .tg-in-course .co-sec .mn{color:#f4f0e7}
html.cm-dark .tg-in-course .sd-sec.is-done .sd-sec-top .mn{color:#000}
html.cm-dark .tg-in-course .sd-sec-top .sd-st{background:#2a261f;color:#efeadf}
html.cm-dark .tg-in-course .sd-sec.is-done .sd-sec-top .sd-st{background:#D4AF37;color:#000}
html.cm-dark .tg-in-course .sd-stats svg{background:#2a261f;color:#D4AF37}
html.cm-dark .tg-in-course .cl-ebook{background:#1f1c16}
html.cm-dark .tg-in-course .cl-ebook>svg{color:#D4AF37}
html.cm-dark .tg-in-course .cs-cert{border-color:#3a352d;color:#b3ada2}
html.cm-dark .tg-in-course .cs-cert.is-ready{background:#1f1c16;border-color:#D4AF37}
html.cm-dark .tg-in-course .cs-cert.is-ready>svg{color:#D4AF37}
html.cm-dark .tg-in-course .btn-line{border-color:#efeadf;color:#efeadf}
html.cm-dark .tg-in-course .btn-line:hover{background:#efeadf;color:#000}
html.cm-dark .tg-in-course input,html.cm-dark .tg-in-course textarea{background:#1a1815;color:#efeadf;border-color:#3a352d}
html.cm-dark .tg-in-course .pf-fields input[readonly]{background:#22201b;color:#9c968b}
html.cm-dark .tg-in-course .qz-a.is-right{background:rgba(47,125,50,.18);border-color:#3f8f42}
html.cm-dark .tg-in-course .qz-a.is-wrong{background:rgba(180,71,59,.18);border-color:#b4473b}
html.cm-dark .tg-in-course .qz-result.is-pass{background:#1f1c16}
html.cm-dark .tg-in-course .qz-result.is-fail{background:rgba(180,71,59,.15)}
html.cm-dark .tg-in-course .qz-result p{color:#d9d4c9}
html.cm-dark .tg-in-course .cl-entry blockquote{background:#1f1c16}
html.cm-dark .tg-in-course .cl-entry h2{border-top-color:#34302a}
html.cm-dark .tg-in-course .cl-video{box-shadow:none}
html.cm-dark .tg-in-course .cf{border-top-color:#34302a}
html.cm-dark .tg-in-course .cs-note.is-ok{border-left-color:#D4AF37}
html.cm-dark .tg-in-course .chip{background:#2a261f;border-color:#3a352d;color:#efeadf}
html.cm-dark .tg-in-course .sd-next-b .chip{background:#D4AF37;color:#000}
html.cm-dark .tg-in-course .pf-certno code{background:#2a261f;color:#efeadf}
html.cm-dark .tg-in-course .muted,html.cm-dark .tg-in-course .sd-cnt,html.cm-dark .tg-in-course .sd-sec-b small,html.cm-dark .tg-in-course .co-prog span{color:#a9a397}
html.cm-dark .tg-in-course .co-sec li.is-locked>span,html.cm-dark .tg-in-course .sd-sec li.is-locked>span{color:#6f6a62}
html.cm-dark .tg-in-course .cl-entry img{box-shadow:none}

/* dark mode: tick boxes, their labels, numbered lists, plain links */
html.cm-dark .tg-in-course .chk,html.cm-dark .tg-in-course .chk span,html.cm-dark .tg-in-course label.chk{color:#d9d4c9!important}
html.cm-dark .tg-in-course input[type=checkbox],html.cm-dark .tg-in-course input[type=radio],html.cm-dark .tg-in-course .qz-a input{accent-color:#D4AF37}
html.cm-dark .tg-in-course .cl-entry ol li::before{color:#efeadf;border-color:#D4AF37}
html.cm-dark .tg-in-course a.link,html.cm-dark .tg-in-course button.link,html.cm-dark .tg-in-course .pf-certno a,html.cm-dark .tg-in-course .cs-note a{color:#efeadf}
html.cm-dark .tg-in-course .field label,html.cm-dark .tg-in-course .pf-hint,html.cm-dark .tg-in-course .pf-certno,html.cm-dark .tg-in-course .cl-ebook span,html.cm-dark .tg-in-course .cl-ebook-dl,html.cm-dark .tg-in-course .cl-prev,html.cm-dark .tg-in-course .sd-next-b small,html.cm-dark .tg-in-course .sd-next-b p,html.cm-dark .tg-in-course .sd-stats span,html.cm-dark .tg-in-course .sd-help span,html.cm-dark .tg-in-course .cs-cert span,html.cm-dark .tg-in-course .qz-q legend small,html.cm-dark .tg-in-course .cf{color:#b3ada2}
html.cm-dark .tg-in-course .pf-pic{background:#1f1c16}

/* reader: equal space above and below, zoom, sound and full-screen controls */
.fb-stage{display:flex;place-items:initial;overflow:auto;padding:28px 84px}
.fb-zw{margin:auto;flex:none}
.fb.zoomed .fb-stage{cursor:default}
.fb-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.fb-top .fb-count{margin-left:auto}
.fb-top .fb-count+.fb-tools{margin-left:14px}
.fb-zoom{display:flex;align-items:center;border:1px solid rgba(255,255,255,.22);border-radius:22px;overflow:hidden}
.fb-zoom button{height:38px;min-width:38px;padding:0 10px;border:0;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center;font:500 12.5px/1 var(--sans);letter-spacing:.04em}
.fb-zoom button:hover{background:rgba(255,255,255,.1)}
.fb-zoom svg{width:16px;height:16px}
.fb-zr{min-width:58px!important;border-left:1px solid rgba(255,255,255,.12)!important;border-right:1px solid rgba(255,255,255,.12)!important}
.fb-tool{height:38px;min-width:38px;padding:0 11px;border-radius:22px;border:1px solid rgba(255,255,255,.22);background:transparent;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font:500 12.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.fb-tool:hover{background:#D4AF37;border-color:#D4AF37;color:#000}
.fb-tool svg{width:17px;height:17px}
.fb-dl{color:#D4AF37}
.fb-snd .i-off,.fb.snd-off .fb-snd .i-on,.fb-fs .i-off,.fb.is-fs .fb-fs .i-on{display:none}
.fb.snd-off .fb-snd .i-off,.fb.is-fs .fb-fs .i-off{display:block}
@media (max-width:760px){
  .fb-stage{padding:14px 10px 74px}
  .fb-tools{gap:6px;order:3;width:100%;justify-content:center;margin-left:0}
  .fb-top .fb-count+.fb-tools{margin-left:0}
  .fb-dl span{display:none}
}

/* page box: type a page number to jump */
.fb-count{display:flex;align-items:center;gap:8px;margin:0}
.fb-count label{font-size:13px;letter-spacing:.08em;color:rgba(255,255,255,.7)}
.fb-count input{width:58px;height:34px;padding:0 6px;text-align:center;border-radius:6px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);color:#fff;font:500 14px/1 var(--sans);-moz-appearance:textfield}
.fb-count input::-webkit-outer-spin-button,.fb-count input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.fb-count input:focus{outline:0;border-color:#D4AF37;box-shadow:0 0 0 3px rgba(212,175,55,.25)}
.fb-of{font-size:13px;letter-spacing:.06em;color:rgba(255,255,255,.7);white-space:nowrap}

/* ---------- Student questions ---------- */
.cb-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:#b4473b;color:#fff;font:600 11px/1 var(--sans);font-style:normal;vertical-align:1px}
.cb-user summary{position:relative}
.cb-user summary .cb-badge{position:absolute;top:-4px;left:26px;margin:0;box-shadow:0 0 0 2px #fff}
.cl-ask{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:0;cursor:pointer;font:400 13.5px/1.4 var(--sans);color:var(--muted);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.cl-ask svg{width:16px;height:16px}
.cl-ask:hover{color:#000}
.sd-help-b{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.sd-help-l{font-size:13px;color:#000;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}

/* ask window */
.ask{position:fixed;inset:0;z-index:99990;background:rgba(10,9,7,.55);display:grid;place-items:center;padding:20px;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.ask.on{opacity:1;visibility:visible}
.ask-card{position:relative;width:100%;max-width:560px;max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:14px;border-top:3px solid var(--gold);padding:30px 30px 24px;display:grid;gap:16px;box-shadow:0 40px 80px -30px rgba(0,0,0,.5);transform:translateY(10px);transition:transform .3s var(--ease)}
.ask.on .ask-card{transform:none}
.ask-card .eyebrow{margin:0}
.ask-card h3{font:400 28px/1.2 var(--serif);margin:-6px 0 0}
.ask-card select{width:100%;font:400 15px/1.4 var(--sans);padding:12px 14px;border:1px solid #d9dedb;border-radius:3px;background:#fff;color:#000}
.ask-x{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer}
.ask-x svg{width:16px;height:16px}
.ask-note{margin:0;font-size:13px;color:var(--muted);text-align:center}

/* My questions page */
.qa-body{padding-top:clamp(30px,4vw,50px)}
.qa{display:grid;grid-template-columns:320px 1fr;gap:24px;align-items:start}
.qa-list{display:grid;gap:8px;position:sticky;top:96px}
.qa-list a{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#222}
.qa-list a:hover{border-color:var(--gold)}
.qa-list a.on{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-t)}
.qa-list small{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.qa-list b{font-weight:500;font-size:14.5px;line-height:1.4;color:#000}
.qa-st{justify-self:start;font-size:11.5px;padding:2px 9px;border-radius:10px;background:#f1f1f1;color:#555}
.qa-st-answered{background:#e6f3e4;color:#2f6a31}
.qa-list a.is-new .qa-st{background:#b4473b;color:#fff}
.qa-thread{border:1px solid var(--line);border-radius:14px;background:#fff;padding:22px 24px;display:grid;gap:18px}
.qa-about{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.qa-about svg{width:16px;height:16px}
.qa-chat{display:flex;flex-direction:column;gap:14px}
.qa-bub{display:flex;gap:10px;max-width:82%}
.qa-bub.is-me{align-self:flex-end;flex-direction:row-reverse;text-align:right}
.qa-av{width:34px;height:34px;border-radius:50%;overflow:hidden;flex:none;background:#000}
.qa-av img{width:100%;height:100%;object-fit:cover}
.qa-text{padding:13px 16px;border-radius:14px;font-size:15px;line-height:1.65;text-align:left}
.qa-bub.is-staff .qa-text{background:var(--tint);border-bottom-left-radius:4px;color:#222}
.qa-bub.is-me .qa-text{background:#000;color:#fff;border-bottom-right-radius:4px}
.qa-meta{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.qa-wait{display:flex;align-items:center;gap:8px;margin:0;font-size:13.5px;color:var(--muted)}
.qa-wait svg{width:16px;height:16px}
.qa-reply{display:flex;gap:10px;align-items:flex-end;border-top:1px solid var(--line);padding-top:16px}
.qa-reply textarea{min-height:70px;flex:1}
.qa-reply .btn{flex:none}
.qa-empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:48px 20px;border:1px dashed #cfcfcf;border-radius:14px}
.qa-empty svg{width:34px;height:34px}
.qa-empty b{font:400 22px/1.3 var(--serif-t);color:#000}
.qa-empty span{color:var(--muted)}
.qa-empty .btn{margin-top:8px}
@media (max-width:860px){.qa{grid-template-columns:1fr}.qa-list{position:static}.qa-bub{max-width:100%}.qa-reply{flex-direction:column;align-items:stretch}}

/* dark mode */
html.cm-dark .tg-in-course .ask-card,html.cm-dark .tg-in-course .ask-x,html.cm-dark .tg-in-course .qa-list a,html.cm-dark .tg-in-course .qa-thread{background:#1a1815;border-color:#34302a;color:#efeadf}
html.cm-dark .tg-in-course .ask-card h3,html.cm-dark .tg-in-course .qa-list b,html.cm-dark .tg-in-course .qa-empty b,html.cm-dark .tg-in-course .sd-help-l,html.cm-dark .tg-in-course .cl-ask:hover{color:#f4f0e7}
html.cm-dark .tg-in-course .ask-card select{background:#1a1815;color:#efeadf;border-color:#3a352d}
html.cm-dark .tg-in-course .qa-bub.is-staff .qa-text{background:#2a261f;color:#efeadf}
html.cm-dark .tg-in-course .qa-bub.is-me .qa-text{background:#D4AF37;color:#000}
html.cm-dark .tg-in-course .qa-st{background:#2a261f;color:#cfc9bd}
html.cm-dark .tg-in-course .qa-st-answered{background:rgba(47,125,50,.25);color:#bfe3c0}
html.cm-dark .tg-in-course .qa-reply,html.cm-dark .tg-in-course .qa-empty{border-color:#34302a}
html.cm-dark .tg-in-course .cb-user summary .cb-badge{box-shadow:0 0 0 2px #1a1815}

.sd-review{margin:4px 0 0;font-size:13.5px;color:var(--muted)}
.sd-review a{color:#000;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
html.cm-dark .tg-in-course .sd-review a{color:#efeadf}
#journey{scroll-margin-top:90px}

.qa-topic{display:block;margin:-2px 0 8px;padding-bottom:7px;border-bottom:1px solid rgba(255,255,255,.25);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#D4AF37}
html.cm-dark .tg-in-course .qa-bub.is-me .qa-topic{color:#000;border-bottom-color:rgba(0,0,0,.2)}

/* ================= Premium lesson layout ================= */
.cl{background:linear-gradient(180deg,#fbf8ef 0,#fff 420px)}
.cl-grid{grid-template-columns:300px minmax(0,1fr);gap:clamp(34px,5vw,80px)}
.cl-main{max-width:760px}
.cl-read{position:fixed;left:0;right:0;top:68px;height:3px;z-index:99;pointer-events:none}
.admin-bar .cl-read{top:100px}
.cl-read i{display:block;height:100%;background:var(--gold);transform:scaleX(0);transform-origin:0 50%;transition:transform .15s linear}
/* header */
.cl-head{padding:6px 0 28px;margin-bottom:34px;border-bottom:1px solid var(--line)}
.cl-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px;font:500 12px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:#6b5a2a}
.cl-kicker .mn{width:28px;height:28px;border-radius:50%;border:1px solid var(--gold);display:grid;place-items:center;font:400 13px/1 var(--serif);letter-spacing:0;color:#000}
.cl-dot{width:4px;height:4px;background:var(--gold);transform:rotate(45deg)}
.cl-main .cl-title{font-size:clamp(34px,3.8vw,52px);line-height:1.08;margin:0 0 20px;max-width:none}
.cl-meta{display:flex;flex-wrap:wrap;gap:10px}
.cl-meta span{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:20px;background:#fff;border:1px solid var(--line);font-size:13px;color:#444}
.cl-meta svg{width:15px;height:15px}
.cl-meta .is-done{background:var(--gold);border-color:var(--gold);color:#000}
/* reading column */
.cl-entry>p:first-of-type{font-size:19.5px!important;line-height:1.75;color:#151515}
.cl-video{border-radius:14px;margin-bottom:36px}
.cl-ebook{border-radius:14px;padding:22px 24px;margin-bottom:36px;border:1px solid #ecdfb3}
/* end of lesson */
.cl-end{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;margin:56px 0 0;padding:34px 20px 8px;border-top:1px solid var(--line)}
.cl-endmsg{margin:0;font:italic 400 19px/1.5 var(--serif-t);color:#333}
.cl-end .cl-donemsg{width:auto}
/* floating bottom bar */
.cl-bar{position:sticky;bottom:18px;z-index:20;display:flex;align-items:center;gap:18px;margin-top:26px;padding:12px 12px 12px 16px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 50px -28px rgba(0,0,0,.45)}
.cl-bar form{margin:0}
.cl-bar .btn{height:48px;flex:none}
.cl-bar-prev{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#333;flex:none}
.cl-bar-prev:hover{background:var(--tint)}
.cl-bar-prev svg{width:16px;height:16px}
.cl-bar-next{flex:1;min-width:0;text-align:right;display:flex;flex-direction:column}
.cl-bar-next small{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.cl-bar-next b{font:400 16px/1.3 var(--serif-t);color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-bar>span:first-child{flex:none}
.cl-foot{display:none}

/* sidebar outline: refined */
.cl-side{top:96px}
.co{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 30px 60px -45px rgba(0,0,0,.35)}
.co-head{padding:18px 18px 16px;background:#fbf8ef;border-bottom:1px solid var(--line)}
.co-back{padding:0 0 14px}
.co-prog{padding:0;border:0}
.co-prog span b{color:#000;font-weight:600}
.co-sec summary{padding:14px 16px;gap:12px}
.co-st{flex:1;display:flex;flex-direction:column;min-width:0}
.co-st b{font:500 14px/1.3 var(--sans);color:#000}
.co-st small{font-size:11.5px;color:var(--muted);margin-top:2px}
.co-sec.is-done .mn{background:var(--gold);border-color:var(--gold)}
.co-sec ol{list-style:none;margin:0;padding:0 10px 12px}
.co-sec ol li a,.co-sec ol li>span{display:flex;align-items:flex-start;gap:11px;padding:8px 10px;border-radius:9px;font-size:13.5px;line-height:1.4;color:#333;border-left:3px solid transparent}
.co-sec ol li a:hover{background:var(--tint)}
.co-n{flex:none;width:22px;height:22px;border-radius:50%;border:1px solid #d9d4c6;display:grid;place-items:center;font:500 11px/1 var(--sans);color:#666;margin-top:-1px}
.co-n svg{width:12px;height:12px;margin:0}
.co-sec li.is-done .co-n{background:var(--gold);border-color:var(--gold);color:#000}
.co-sec li.is-done .co-n svg{color:#000;background:none;padding:0}
.co-sec li.is-locked>span{color:#a7a7a7}
.co-sec li.is-locked .co-n{border-style:dashed;color:#b5b5b5}
.co-t{flex:1;min-width:0}
.co-t em{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:8px;background:#f1ece0;font:500 10px/1.6 var(--sans);font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:#6b5a2a;vertical-align:1px}
.co-sec li.is-current a{background:var(--tint);color:#000;font-weight:500;border-left-color:var(--gold)}
.co-sec li.is-current .co-n{border-color:#000;background:#000;color:var(--gold)}
.co-sec li.is-current.is-done .co-n{background:var(--gold);border-color:var(--gold);color:#000}
.co-sec.is-quiz-only{}
@media (max-width:1024px){
  .cl-grid{grid-template-columns:1fr}
  .cl-read{top:68px}
}
@media (max-width:760px){
  .cl-read{top:60px}
  .cl-bar{bottom:10px;gap:10px;padding:10px}
  .cl-bar-next{display:none}
  .cl-bar .btn{flex:1;padding:0 14px}
  .cl-bar-prev span{display:none}
  .cl-entry>p:first-of-type{font-size:18px!important}
}
/* dark */
html.cm-dark .tg-in-course .cl{background:linear-gradient(180deg,#17150f 0,#121110 420px)}
html.cm-dark .tg-in-course .cl-kicker{color:#cbb26a}
html.cm-dark .tg-in-course .cl-kicker .mn{color:#f4f0e7}
html.cm-dark .tg-in-course .cl-meta span{background:#1a1815;border-color:#34302a;color:#d9d4c9}
html.cm-dark .tg-in-course .cl-meta .is-done{background:#D4AF37;color:#000}
html.cm-dark .tg-in-course .cl-entry>p:first-of-type{color:#f1ece2}
html.cm-dark .tg-in-course .cl-endmsg{color:#d9d4c9}
html.cm-dark .tg-in-course .cl-bar{background:rgba(26,24,21,.96);border-color:#34302a}
html.cm-dark .tg-in-course .cl-bar-prev{color:#d9d4c9}
html.cm-dark .tg-in-course .cl-bar-prev:hover{background:#2a261f}
html.cm-dark .tg-in-course .cl-bar-next b{color:#f4f0e7}
html.cm-dark .tg-in-course .cl-ebook{border-color:#3a352d}
html.cm-dark .tg-in-course .co-head{background:#17150f;border-color:#34302a}
html.cm-dark .tg-in-course .co-st b,html.cm-dark .tg-in-course .co-prog span b{color:#f4f0e7}
html.cm-dark .tg-in-course .co-sec ol li a{color:#d9d4c9}
html.cm-dark .tg-in-course .co-n{border-color:#4a443a;color:#b3ada2}
html.cm-dark .tg-in-course .co-t em{background:#2a261f;color:#cbb26a}
html.cm-dark .tg-in-course .co-sec li.is-current a{background:#2a261f;color:#f4f0e7}
html.cm-dark .tg-in-course .co-sec li.is-current .co-n{background:#D4AF37;border-color:#D4AF37;color:#000}
.co-sec li .co-n svg{width:12px;height:12px;margin:0;padding:0;background:none}

/* phones: keep the course bar within the screen */
@media (max-width:760px){
  .cb-in{gap:8px;padding:0 12px}
  .cb-brand img{width:34px;height:34px}
  .cb-mode{width:36px;height:36px}
  .cb-user summary{padding:3px 6px 3px 3px;gap:4px}
  .cb-nav{gap:0}
}
@media (max-width:440px){
  .cb-brand span{display:none}
}

/* ================= Classic course layout (lessons + quizzes) ================= */
/* the page fade-in must not keep <main> as its own layer, or the phone lesson list slides in under the course bar */
.tg-in-course main{animation-fill-mode:backwards}
.lc{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:start;background:#fff;min-height:calc(100vh - 68px)}
.lc-side{position:sticky;top:68px;height:calc(100vh - 68px);overflow:auto;scrollbar-width:thin;background:#F5F5F5;border-right:1px solid var(--line)}
.admin-bar .lc-side{top:100px;height:calc(100vh - 100px)}
.lc-side-top,.lc-shade,.lc-open{display:none}
.lc-side .co{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0}
.lc-side .co-head{background:transparent;padding:22px 20px 18px}
.lc-side .co-sec summary{padding:14px 20px}
.lc-side .co-sec ol{padding:0 12px 12px}
.lc-side .co-sec li.is-current a{background:#fff}
.lc-main{min-width:0}
.lc-nav{display:flex;align-items:center;gap:12px;height:56px;padding:0 clamp(18px,3vw,40px);border-bottom:1px solid var(--line);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.lc-step{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:6px;color:#000;white-space:nowrap}
a.lc-step:hover{background:#F5F5F5}
.lc-step.is-off{color:#b5b5b5;cursor:default}
.lc-pos{flex:1;text-align:center;color:var(--muted)}
.lc-in{max-width:780px;margin:0 auto;padding:clamp(34px,4vw,56px) clamp(18px,3vw,40px) clamp(50px,6vw,90px)}
.lc-kicker{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 12px;font:500 12px/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#6b5a2a}
.lc-kicker span+span::before{content:"·";margin-right:14px;color:var(--gold)}
.lc-title{font:400 clamp(32px,3.4vw,46px)/1.1 var(--serif);color:#000;margin:0 0 18px;letter-spacing:-.005em}
.lc-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 34px}
.lc-meta span{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:20px;border:1px solid var(--line);font-size:13px;color:#444}
.lc-meta svg{width:14px;height:14px}
.lc-meta .is-done{background:var(--gold);border-color:var(--gold);color:#000}
.lc-in>.lc-title:last-child,.lc-title+.lc-body{margin-top:30px}
.lc-body .cl-video{margin:0 0 34px}
.lc-body .cl-ebook{margin:0 0 34px}
.lc-body .cl-entry{max-width:none}
.lc-body .qz-result{margin-top:0}
.lc-end{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:56px 0 0;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lc-end form{margin:0}
.lc-end-txt{min-width:0;display:flex;flex-direction:column}
.lc-end-txt small{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.lc-end-txt b{font:400 19px/1.3 var(--serif-t);color:#000}
.lc-end .cl-donemsg{width:auto}
.lc-end .btn{flex:none}
.lc-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px;font-size:13.5px}
.lc-foot a{color:var(--muted)}
.lc-foot a:hover{color:#000}
.cl-read{top:68px}
@media (max-width:1024px){
  .lc{grid-template-columns:1fr}
  .lc-side{position:fixed;top:0;left:0;bottom:0;height:auto;z-index:100001;width:min(360px,90vw);transform:translateX(-102%);transition:transform .35s cubic-bezier(.2,.7,.1,1);box-shadow:30px 0 60px -30px rgba(0,0,0,.4)}
  .admin-bar .lc-side{top:0;height:auto}
  .lc-side-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:14px 16px 14px 20px;background:#F5F5F5;border-bottom:1px solid var(--line)}
  .lc-side-top b{font:400 20px/1 var(--serif);color:#000}
  .lx-x{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer}
  .lx-x svg{width:16px;height:16px}
  .lc-shade{display:block;position:fixed;inset:0;z-index:100000;background:rgba(10,9,7,.45);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  html.lx-on{overflow:hidden}
  html.lx-on .lc-side{transform:none}
  html.lx-on .lc-shade{opacity:1;visibility:visible}
  .lc-open{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border-radius:6px;border:1px solid var(--line);background:#fff;font:500 12px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#000;cursor:pointer}
  .lc-open svg{width:15px;height:15px}
  .lc-pos{text-align:right}
}
@media (max-width:760px){
  .cl-read{top:60px}
  .lc{min-height:0}
  .lc-nav{gap:4px;padding:0 10px}
  .lc-pos{display:none}
  .lc-open{margin-right:auto}
  .lc-step{padding:8px}
  .lc-title{font-size:30px}
  .lc-end{flex-direction:column;align-items:stretch}
  .lc-end .btn,.lc-end form .btn{width:100%}
  .lc-foot{flex-direction:column;align-items:flex-start}
}
/* dark */
html.cm-dark .tg-in-course .lc{background:#121110}
html.cm-dark .tg-in-course .lc-side,html.cm-dark .tg-in-course .lc-side-top{background:#17150f;border-color:#34302a}
html.cm-dark .tg-in-course .lc-side .co-sec li.is-current a{background:#2a261f}
html.cm-dark .tg-in-course .lc-nav,html.cm-dark .tg-in-course .lc-end{border-color:#34302a}
html.cm-dark .tg-in-course .lc-step,html.cm-dark .tg-in-course .lc-title,html.cm-dark .tg-in-course .lc-end-txt b,html.cm-dark .tg-in-course .lc-side-top b{color:#f4f0e7}
html.cm-dark .tg-in-course .lc-step.is-off{color:#5e584e}
html.cm-dark .tg-in-course a.lc-step:hover{background:#2a261f}
html.cm-dark .tg-in-course .lc-kicker{color:#cbb26a}
html.cm-dark .tg-in-course .lc-meta span{border-color:#34302a;color:#d9d4c9}
html.cm-dark .tg-in-course .lc-meta .is-done{color:#000}
html.cm-dark .tg-in-course .lc-foot a:hover{color:#f4f0e7}
html.cm-dark .tg-in-course .lc-open,html.cm-dark .tg-in-course .lx-x{background:#1a1815;border-color:#34302a;color:#efeadf}

/* Course coming soon (v1.2.5) */
.btn.is-soon{cursor:default;pointer-events:none}
.c-card .c-price{white-space:nowrap}
.en-box .chip{justify-self:start}
.c-soon{--band:100%;padding-bottom:clamp(56px,7vw,96px)}
@media (max-width:1024px){.c-soon .c-side .btn{display:none}.c-soon .c-side{margin-top:28px}}
