/* Course certificates in the player and on the course page (www/courses/cert.js): the "You finished the
   course" dialog, the course page block, the name form with its printed preview, and the outline line.
   Loaded by both course shells (_build/gen_courses.py). */
.mc-bg,.mc-bg *,.mc-block,.mc-block *,.mc-rail{box-sizing:border-box}
.mc-bg{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(14,20,36,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);animation:mc-fade .2s ease}
.mc-dlg{position:relative;width:100%;max-width:560px;max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:16px;
  box-shadow:0 30px 80px -20px rgba(14,20,36,.5);padding:30px 30px 22px;font-family:Inter,-apple-system,'Segoe UI',sans-serif;color:#1A2233;
  animation:mc-rise .28s cubic-bezier(.2,.9,.3,1.2)}
.mc-x{position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#5E6878;font-size:26px;line-height:1;cursor:pointer}
.mc-x:hover{background:#F1F3F6;color:#1A2233}
.mc-head{text-align:center;margin-bottom:14px}
.mc-seal{display:inline-flex;animation:mc-pop .5s .1s cubic-bezier(.2,.9,.3,1.4) both}
.mc-h{margin:8px 0 4px;font:600 26px/1.2 'Cormorant Garamond',Georgia,serif;font-size:30px;letter-spacing:-.005em;color:#1A2233}
.mc-course{margin:0;color:#5E6878;font-size:15px}
.mc-p{margin:0 0 14px;font-size:15px;line-height:1.55;color:#3B4558}
.mc-small{margin:12px 0 0;font-size:13px;color:#5E6878}
.mc-small a,.mc-foot a{color:#1A2233;text-decoration:underline;text-decoration-color:#CFD5DE;text-underline-offset:3px}
.mc-foot{margin:18px 0 0;padding-top:14px;border-top:1px solid #ECEFF3;text-align:center;font-size:13.5px;color:#5E6878}
.mc-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.mc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;border:1px solid #CDD3DC;
  background:#fff;color:#1A2233;font:500 14.5px/1 Inter,sans-serif;text-decoration:none;cursor:pointer}
.mc-btn:hover{border-color:#1A2233}
.mc-btn.mc-primary{background:#1A2233;border-color:#1A2233;color:#fff}
.mc-btn.mc-primary:hover{background:#2c3850}
.mc-btn.mc-li{background:#0a66c2;border-color:#0a66c2;color:#fff}
.mc-btn.mc-li:hover{background:#004182;border-color:#004182}
.mc-btn[disabled]{opacity:.65;cursor:progress}
/* the course page's own link colours must not reach the buttons */
.mc-acts a.mc-btn{color:#1A2233;text-decoration:none}
.mc-acts a.mc-btn.mc-primary,.mc-acts a.mc-btn.mc-li{color:#fff}
.mc-thumb{display:block;margin:0 0 14px;border-radius:6px;overflow:hidden;box-shadow:0 12px 30px -14px rgba(26,34,51,.45),0 0 0 1px rgba(26,34,51,.08);background:#fff}
.mc-thumb img{display:block;width:100%;height:auto}
/* the name form and its printed preview: the sheet's look in small (ink panel, amber rule, white sheet) */
.mc-preview{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 0 16px;padding:16px 18px 16px 30px;border-radius:6px;text-align:left;
  background:linear-gradient(90deg,#1A2233 0 12px,#C08230 12px 14px,#fff 14px);border:1px solid #E1E5EB}
.mc-pv-k{font:400 13.5px/1.4 Inter,system-ui,sans-serif;color:#5E6878}
.mc-pv-k:first-child{font:italic 500 16px/1.3 'Cormorant Garamond',Georgia,serif}
.mc-pv-n{font:600 30px/1.15 'Cormorant Garamond',Georgia,serif;color:#1A2233;margin:0 0 4px;max-width:100%;overflow-wrap:anywhere}
.mc-pv-c{font:800 16px/1.3 Inter,system-ui,sans-serif;color:#1A2233;margin-top:2px}
.mc-lbl{display:block;margin:0 0 6px;font-size:13.5px;font-weight:600;color:#1A2233}
.mc-in{display:block;width:100%;min-height:46px;padding:0 14px;border:1px solid #CDD3DC;border-radius:8px;font:500 16px Inter,sans-serif;color:#1A2233;background:#fff}
.mc-in:focus{outline:none;border-color:#1A2233;box-shadow:0 0 0 3px rgba(26,34,51,.14)}
.mc-hint{margin:8px 0 12px;font-size:12.5px;line-height:1.5;color:#5E6878}
.mc-err{margin:0 0 10px;font-size:13.5px;color:#b42318}
/* the course page block */
.mc-block{margin:22px 0 0;padding:20px 22px;border-radius:12px;background:#fff;border:1px solid #E3E7EE;box-shadow:0 8px 24px -16px rgba(20,32,59,.3);max-width:620px}
.mc-bhead{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.mc-seal-s svg{width:46px;height:46px}
.mc-bk{margin:0;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#1f7a55}
.mc-bh{margin:2px 0 0;font:600 24px/1.2 'Cormorant Garamond',Georgia,serif;color:#1A2233}
/* the outline line in the player, under the progress bar */
.mc-rail{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 0;padding:9px 12px;border-radius:8px;background:#F4F1E6;border:1px solid #E6DCBE;font-size:13px;color:#3B4558}
.mc-rail b{color:#1A2233}
.mc-rail a,.mc-rail button{border:0;background:none;padding:0;font:600 13px Inter,sans-serif;color:#1A2233;cursor:pointer;text-decoration:none;white-space:nowrap}
.mc-rail a:hover,.mc-rail button:hover{text-decoration:underline}
@keyframes mc-fade{from{opacity:0}to{opacity:1}}
@keyframes mc-rise{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes mc-pop{from{opacity:0;transform:scale(.6) rotate(-12deg)}to{opacity:1;transform:none}}
@media (max-width:560px){.mc-dlg{padding:26px 18px 18px}.mc-h{font-size:26px}.mc-btn{flex:1 1 auto}.mc-pv-n{font-size:24px}}
@media (prefers-reduced-motion:reduce){.mc-bg,.mc-dlg,.mc-seal{animation:none}}
