/* academy.css — the student area inside any site's own look. It borrows the site's tokens when they exist (CLC: --y yellow,
   --ink charcoal, --soft, --line) and falls back to neutral ones, so the module works on every SiteDash site. */
.ac{--ac-a:var(--y,#2563eb);--ac-a2:var(--y2,#dbeafe);--ac-ink:var(--ink,#16181d);--ac-ink2:var(--ink2,#5b5e66);--ac-ink3:var(--ink3,#9a9ca2);--ac-soft:var(--soft,#f1f1ec);--ac-line:var(--line,#e4e4de);
  --ac-red:#c62f35;--ac-green:#2f7a47;--ac-r:22px;padding:110px 0 70px;min-height:70vh;background:var(--bg,#fafaf7)}
.ac *{box-sizing:border-box}
.ac-wrap{max-width:1180px;margin:0 auto;padding:0 clamp(14px,3vw,28px)}
.ac-demo-bar{max-width:1180px;margin:0 auto 14px;padding:0 clamp(14px,3vw,28px)}
.ac-demo-bar{font-size:13px;font-weight:700;color:var(--ac-ink)}
.ac-demo-bar::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ac-a);margin-inline-end:8px;vertical-align:middle}
.ac h1{font-size:clamp(26px,3vw,40px);line-height:1.25;margin:0 0 6px;font-stretch:normal;letter-spacing:0}
.ac h2{font-size:19px;line-height:1.4;margin:0 0 14px;font-stretch:normal;letter-spacing:0;max-width:none}
.ac h3{font-size:16px;margin:18px 0 8px}
.ac p{max-width:none}
.ac-muted{color:var(--ac-ink2)}
.ac-small{font-size:13.5px}
.ac-card{background:#fff;border-radius:var(--ac-r);padding:20px 22px;box-shadow:0 0 0 1px var(--ac-line);margin-bottom:16px}
.ac-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px;align-items:start}
.ac-col{min-width:0}
.ac svg{width:18px;height:18px;flex:none}
.ac-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 20px;font:700 15px/1.2 inherit;font-family:inherit;background:var(--ac-ink);color:#fff;text-decoration:none;cursor:pointer;transition:background .25s,opacity .25s}
.ac-btn:hover{background:#000}
.ac-btn[disabled]{opacity:.4;cursor:default}
.ac-btn-o{background:#fff;color:var(--ac-ink);box-shadow:inset 0 0 0 1.5px var(--ac-ink)}
.ac-btn-o:hover{background:var(--ac-ink);color:#fff}
.ac-btn-s{padding:8px 14px;font-size:13.5px}
.ac-btn-wide{width:100%}
.ac-in{width:100%;border:1.5px solid transparent;background:var(--ac-soft);border-radius:14px;padding:13px 15px;font:inherit;font-size:16px;color:var(--ac-ink)}
.ac-in:focus{outline:none;border-color:var(--ac-ink);background:#fff}
.ac-form{display:grid;gap:14px;margin:16px 0}
.ac-form label{display:grid;gap:6px;font-size:13.5px;font-weight:700;color:var(--ac-ink2)}
.ac-row{display:flex;gap:10px;margin:14px 0}
.ac-row .ac-in{flex:1}
.ac-ok-box,.ac-bad-box{display:flex;gap:12px;align-items:flex-start;border-radius:16px;padding:14px 16px;margin:14px 0;font-weight:700}
.ac-ok-box{background:#e3efe6;color:var(--ac-green)}
.ac-bad-box{background:rgba(198,47,53,.1);color:#86191e}
.ac-ok-box p{margin:4px 0 0;font-weight:400;color:var(--ac-ink)}
.ac-banner{display:flex;gap:10px;align-items:flex-start;background:rgba(198,47,53,.1);color:#86191e;border-radius:16px;padding:13px 15px;font-weight:700;margin:0 0 16px}
/* sign in */
.ac-login-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start;max-width:980px;margin:0 auto}
.ac-personas{display:grid;gap:10px}
.ac-persona{display:flex;align-items:center;gap:12px;width:100%;text-align:start;border:0;border-radius:18px;padding:12px 14px;background:var(--ac-soft);font:inherit;cursor:pointer;transition:box-shadow .2s,background .2s}
.ac-persona:hover{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ac-ink)}
.ac-persona b{display:block}
.ac-persona small{color:var(--ac-ink2)}
.ac-av{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--ac-a);color:var(--ac-ink);flex:none}
.ac-av-l{width:54px;height:54px;font-size:22px}
.ac-staff{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px;font-size:14px}
.ac-staff li{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:12px;background:var(--ac-soft)}
/* header of the area */
.ac-hello{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.ac-hello h1{margin:0;font-size:clamp(24px,2.6vw,34px)}
.ac-hello p{margin:0}
.ac-hello-nav{margin-inline-start:auto;display:flex;gap:8px}
.ac-class-head{margin:0 0 16px}
.ac-back{display:inline-flex;font-size:14px;font-weight:700;color:var(--ac-ink2);text-decoration:none;margin-bottom:6px}
.ac-back::before{content:"‹";margin-inline-end:6px}
[dir=rtl] .ac-back::before{content:"›"}
/* my programmes */
.ac-classes{display:grid;gap:10px}
.ac-class-card{display:flex;align-items:center;gap:14px;padding:12px;border-radius:18px;background:var(--ac-soft);text-decoration:none;color:inherit;transition:box-shadow .2s,background .2s}
.ac-class-card:hover{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ac-ink)}
.ac-cc-img{width:84px;height:84px;border-radius:14px;overflow:hidden;flex:none}
.ac-cc-img img{width:100%;height:100%;object-fit:cover}
.ac-cc-body{display:grid;gap:4px;min-width:0;flex:1}
.ac-cc-body b{font-size:17px}
.ac-cc-body small{color:var(--ac-ink2)}
.ac-cc-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px}
.ac-next{display:flex;gap:6px;align-items:center}
.ac-arrow{opacity:.5}
[dir=rtl] .ac-arrow{transform:scaleX(-1)}
/* pills */
.ac-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:700;white-space:nowrap}
.ac-pill svg{width:14px;height:14px}
.ac-open{background:var(--ac-ink);color:#fff}
.ac-watched{background:#e3efe6;color:var(--ac-green)}
.ac-locked{background:rgba(198,47,53,.1);color:var(--ac-red)}
.ac-gift{background:var(--ac-a);color:var(--ac-ink)}
.ac-soon{background:var(--ac-soft);color:var(--ac-ink3)}
/* the class */
.ac-live{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;background:var(--ac-a);box-shadow:none}
.ac-live>div{display:grid;gap:2px;flex:1;min-width:220px}
.ac-live b{font-size:18px}
.ac-live small{opacity:.8}
.ac-live .ac-btn{background:var(--ac-ink)}
.ac-live-wait{display:grid;gap:4px;justify-items:start}
.ac-live-wait a{color:var(--ac-ink);font-weight:700}
.ac-lecs,.ac-tests{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ac-lec,.ac-tests li{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:16px;background:#f7f7f3}
.ac-n,.ac-ti{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--ac-ink);color:#fff;font-weight:800}
.ac-ti{background:var(--ac-a);color:var(--ac-ink)}
.ac-st-locked .ac-n{background:var(--ac-red)}
.ac-st-soon{opacity:.6}
.ac-lt{display:grid;gap:2px;min-width:0}
.ac-lt b{font-size:15px}
.ac-lt a{color:inherit;text-decoration:none}
.ac-lt small{display:flex;gap:6px;align-items:center;color:var(--ac-ink2);font-size:12.5px}
.ac-lt small svg{width:14px;height:14px}
.ac-play{text-decoration:none}
.ac-score{font-weight:800;background:var(--ac-a);border-radius:10px;padding:4px 10px}
.ac-pay .ac-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ac-sum div{background:#f6f6f2;border-radius:14px;padding:10px}
.ac-sum small{display:block;color:var(--ac-ink2);font-size:12px}
.ac-sum b{font-size:22px}
.ac-cur{font-size:12px;color:var(--ac-ink3);margin:6px 0 8px}
.ac-meter{height:8px;border-radius:8px;background:#e8e8e1;overflow:hidden;margin-bottom:12px}
.ac-meter i{display:block;height:100%;background:var(--ac-ink)}
.ac-inst{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:14px}
.ac-inst li{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:12px;background:#f7f7f3}
.ac-inst .late{background:rgba(198,47,53,.1);color:#86191e;font-weight:700}
.ac-inst .ok span:last-child{color:var(--ac-green)}
.ac-offers{display:grid;gap:10px}
.ac-offer{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center}
.ac-offer img{width:64px;height:64px;border-radius:14px;object-fit:cover}
.ac-offer p{margin:2px 0 4px;font-size:13.5px;color:var(--ac-ink2)}
.ac-offer a{display:inline-flex;gap:6px;align-items:center;font-size:13.5px;font-weight:700;color:var(--ac-ink)}
.ac-device{display:block}
.ac-list{margin:12px 0 18px;padding-inline-start:20px;display:grid;gap:6px}
/* the player */
.ac-player{position:relative;border-radius:18px;overflow:hidden;background:#111;margin-bottom:12px;user-select:none;-webkit-user-select:none}
.ac-player video{display:block;width:100%;max-height:72vh;background:#000}
.ac-player-frame{aspect-ratio:16/9}
.ac-player-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ac-player-audio{padding:44px 18px 18px;background:linear-gradient(135deg,#1c1d22,#2b2c33)}
.ac-player-audio audio{display:block;width:100%;position:relative;z-index:2}
.ac-wave{display:flex;gap:4px;justify-content:center;align-items:center;height:90px;margin-bottom:22px}
.ac-wave i{width:5px;border-radius:4px;background:var(--ac-a);height:18%;animation:acwave 1.1s ease-in-out infinite;animation-play-state:paused}
.ac-wave i:nth-child(3n){animation-delay:.2s}.ac-wave i:nth-child(3n+1){animation-delay:.45s}.ac-wave i:nth-child(4n){animation-delay:.7s}
.ac-player.on .ac-wave i{animation-play-state:running}
@keyframes acwave{50%{height:100%}}
.ac-wm{position:absolute;z-index:3;top:12%;left:8%;font-size:13px;font-weight:700;color:rgba(255,255,255,.5);text-shadow:0 1px 2px rgba(0,0,0,.6);pointer-events:none;white-space:nowrap;transition:top 3s ease-in-out,left 3s ease-in-out}
/* tests */
.ac-qs{margin:0 0 16px;padding-inline-start:22px;display:grid;gap:16px}
.ac-qs p{font-weight:700;margin:0 0 8px}
.ac-opt{display:flex;gap:10px;align-items:flex-start;padding:9px 11px;border-radius:12px;cursor:pointer;font-size:15px}
.ac-opt:hover{background:#f5f5f0}
.ac-opt input{margin-top:5px;accent-color:var(--ac-ink)}
.ac-opt.good{background:#e3efe6;color:var(--ac-green);font-weight:700}
.ac-opt.bad{background:rgba(198,47,53,.1);color:#86191e}
.ac-score-big{display:flex;align-items:center;gap:14px}
.ac-score-big b{font-size:40px;line-height:1;background:var(--ac-a);border-radius:14px;padding:6px 14px}
.ac-brief{font-size:16px;line-height:1.9}
.ac-mark blockquote{margin:10px 0 0;padding:12px 16px;border-radius:14px;background:var(--ac-soft);font-size:15px}
/* certificate */
.ac-cert-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.ac-cert{background:#fff;border-radius:6px;padding:56px 48px;text-align:center;box-shadow:0 0 0 1px var(--ac-line),0 30px 60px -40px rgba(0,0,0,.4);border:10px solid var(--ac-a);max-width:900px;margin:0 auto}
.ac-cert-logo{height:110px;width:auto;margin:0 auto 16px;display:block}
.ac-cert-k{font-weight:800;letter-spacing:.06em;color:var(--ac-ink2)}
.ac-cert h1{font-size:42px;margin:6px 0 10px}
.ac-cert h2{font-size:28px;margin:6px 0 10px}
.ac-cert-foot{display:flex;justify-content:space-around;gap:20px;margin:34px 0 18px}
.ac-cert-foot span{display:grid;gap:4px;font-weight:700;min-width:150px;padding-top:10px;border-top:1.5px solid var(--ac-ink)}
.ac-cert-foot small{color:var(--ac-ink3);font-weight:400}
.ac-cert-v{font-size:13px;color:var(--ac-ink2)}
.ac-verify{max-width:640px;margin:0 auto}
@media print{.nav-wrap,.foot,.kit-cursor,.ac-cert-actions,.ac-demo-bar,.menu{display:none!important}.ac{padding:0;background:#fff}.ac-cert{box-shadow:none}}
@media (max-width:900px){
  .ac{padding-top:86px}
  .ac-grid,.ac-login-grid{grid-template-columns:minmax(0,1fr)}
  .ac-card{padding:16px;border-radius:18px}
  .ac-lec,.ac-tests li{grid-template-columns:34px minmax(0,1fr)}
  .ac-lec>:last-child,.ac-tests li>:last-child{grid-column:2;justify-self:start}
  .ac-n,.ac-ti{width:32px;height:32px}
  .ac-hello-nav{margin-inline-start:0;width:100%}
  .ac-cc-img{width:64px;height:64px}
  .ac-cert{padding:30px 18px}
  .ac-cert h1{font-size:30px}.ac-cert h2{font-size:21px}
  .ac-cert-foot{flex-direction:column;align-items:center}
}
