/* Course hub, exam and certificate. Scoped with cx- so it never touches the main stylesheet. */
.cx-notice{background:#FFF6E0;border:1px solid var(--gold);border-radius:var(--r-md);padding:14px 18px;margin:0 0 24px;color:var(--navy-dk);font-weight:600}
.cx-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:start}
@media(max-width:900px){.cx-grid{grid-template-columns:1fr}}
.cx-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:26px;box-shadow:var(--sh-sm);margin-bottom:24px}
.cx-card h2{font-size:22px;margin:0 0 6px}
.cx-card p{color:var(--muted);font-size:15px;line-height:1.6;margin:0 0 14px}
.cx-bar{height:8px;border-radius:9px;background:var(--line);overflow:hidden;margin:10px 0 6px}
.cx-bar i{display:block;height:100%;background:var(--green);transition:width .3s}
.cx-who{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;font-size:14px;color:var(--muted);margin:0 0 20px}
.cx-who button{background:none;border:0;color:var(--red);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;padding:0}
.cx-mod{margin:18px 0 0}
.cx-mod h3{font-size:13px;color:var(--muted);font-weight:700;margin:0 0 6px;letter-spacing:.02em}
.cx-les{list-style:none;margin:0;padding:0}
.cx-les li{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--paper-2);font-size:15px}
.cx-les li:last-child{border-bottom:0}
.cx-les a{color:var(--navy-dk);font-weight:600;text-decoration:none;flex:1}
.cx-les a:hover{color:var(--red)}
.cx-dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);flex:none;display:grid;place-items:center;font-size:12px;color:#fff}
.cx-les li.done .cx-dot{background:var(--green);border-color:var(--green)}
.cx-les li.next .cx-dot{border-color:var(--red)}
.cx-field{display:block;margin:0 0 14px}
.cx-field span{display:block;font-weight:700;font-size:14px;color:var(--navy-dk);margin-bottom:6px}
.cx-field input[type=text],.cx-field input[type=email]{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-sm);font:inherit;background:#fff}
.cx-field input:focus,.cx-btn:focus-visible{outline:3px solid rgba(0,40,104,.25);outline-offset:2px}
.cx-btn{display:inline-block;background:var(--red);color:#fff;border:0;border-radius:var(--r-sm);padding:13px 22px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.cx-btn:hover{background:var(--red-br)}
.cx-btn[disabled]{opacity:.5;cursor:not-allowed}
.cx-btn.alt{background:var(--navy);}
.cx-btn.ghost{background:#fff;color:var(--navy-dk);border:1px solid var(--line)}
.cx-msg{font-size:14px;margin:12px 0 0;min-height:1em}
.cx-msg.err{color:var(--red-dk);font-weight:600}
.cx-msg.ok{color:#14733E;font-weight:600}
.cx-lock{background:var(--paper);border:1px dashed var(--line);border-radius:var(--r-md);padding:16px;color:var(--muted);font-size:14px}
.cx-q{border:1px solid var(--line);border-radius:var(--r-md);padding:16px 18px;margin:0 0 14px}
.cx-q legend{font-weight:700;color:var(--navy-dk);padding:0 6px;font-size:15px;line-height:1.4}
.cx-q label{display:flex;gap:10px;align-items:flex-start;padding:8px 6px;cursor:pointer;font-size:15px;line-height:1.45;border-radius:var(--r-xs)}
.cx-q label:hover{background:var(--paper)}
.cx-q input{margin-top:4px}
.cx-result{border-radius:var(--r-md);padding:18px 20px;margin:0 0 16px}
.cx-result.pass{background:#E9F8EF;border:1px solid #9AD8B3}
.cx-result.fail{background:#FDEEEF;border:1px solid #EAA9B0}
.cx-result b{font-size:22px;display:block;margin-bottom:4px}
.cx-result ul{margin:8px 0 0 18px;padding:0;font-size:14px}
.cx-cert{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.cx-cert .qr{width:140px;height:140px;border:1px solid var(--line);border-radius:var(--r-sm);padding:6px;background:#fff}
.cx-id{font-family:var(--font-m);font-size:15px;color:var(--navy-dk);font-weight:600}
.cx-fine{font-size:13px;color:var(--muted)}
.cx-pill{display:inline-block;background:#E9F8EF;color:#14733E;border-radius:99px;padding:3px 12px;font-size:13px;font-weight:700}
.cx-pill.paid{background:#EEF1F8;color:var(--navy)}
/* Full-course purchase card */
.cx-buy{border:2px solid var(--gold,#B8962E);background:#FFF9E8}
.cx-buy h2{margin-top:0}
.cx-agree{display:flex;gap:10px;align-items:flex-start;margin:12px 0;line-height:1.5;font-size:15px;cursor:pointer}.cx-agree input{width:20px;height:20px;margin-top:2px;flex:none}
