/* C-20 training course — sits on top of trade/shared.css theme variables. */
main { max-width: 1080px; }
.doorbtn { display:inline-block; background:var(--btn); color:var(--btnink); text-decoration:none; font-weight:700; padding:12px 20px; border-radius:8px; }
.cbt-crumb { margin:4px 0 10px; }
.cbt-crumb button { margin:0 8px 0 0; }
.cbt-progressbar { height:16px; background:var(--card); border:1px solid var(--line); border-radius:99px; overflow:hidden; margin:8px 0 4px; }
.cbt-progressbar > div { height:100%; background:linear-gradient(90deg,#1e3a5f,#2f6fad); }
.cbt-modhead { display:flex; justify-content:space-between; gap:12px; align-items:baseline; flex-wrap:wrap; }
.cbt-weight { font-weight:700; white-space:nowrap; }
.cbt-lessons { list-style:none; margin:10px 0 0; padding:0; }
.cbt-lessons li { display:flex; gap:10px; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding:10px 0; }
.cbt-lessons li:first-child { border-top:0; }
.cbt-ltitle { flex:1; }
.cbt-chip { font-size:.78em; font-weight:700; border:1px solid var(--line); border-radius:99px; padding:2px 10px; white-space:nowrap; }
.cbt-chip.done { border-color:#1f8a4c; color:#1f8a4c; }
.cbt-chip.due { border-color:#b45309; color:#b45309; }
.cbt-chip.doing { border-color:#2f6fad; color:#2f6fad; }
.cbt-objectives { margin:6px 0 0 18px; padding:0; }
.cbt-objectives li { margin:3px 0; }
.cbt-hp { font-size:.92em; }
.cbt-teach h3 { margin:18px 0 6px; }
.cbt-teach p { line-height:1.55; margin:6px 0; }
.cbt-box { border:1px solid var(--line); border-left:5px solid #2f6fad; border-radius:8px; padding:12px 14px; margin:14px 0; background:var(--card); }
.cbt-box.scenario { border-left-color:#b45309; }
.cbt-box h3 { margin:0 0 8px; }
.cbt-box pre { white-space:pre-wrap; font:inherit; margin:0; line-height:1.55; }
.cbt-reveal { margin-top:10px; border-top:1px dashed var(--line); padding-top:10px; }
.cbt-terms { display:grid; grid-template-columns:1fr; gap:8px; margin:10px 0; }
.cbt-terms div { border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.cbt-terms dt { font-weight:700; }
.cbt-terms dd { margin:4px 0 0; }
.cbt-qhead { display:flex; justify-content:space-between; gap:10px; align-items:baseline; flex-wrap:wrap; }
.cbt-feedback { border-radius:8px; padding:12px 14px; margin:12px 0; border:1px solid var(--line); }
.cbt-feedback.good { border-color:#1f8a4c; }
.cbt-feedback.wrong { border-color:#d2453a; }
.cbt-score { font-size:1.25em; font-weight:700; }
.cbt-match { display:grid; grid-template-columns:1fr 1fr; gap:8px 18px; }
.cbt-match button { text-align:left; margin:0; width:100%; }
.cbt-match button.picked { outline:3px solid #2f6fad; }
.cbt-match button.matched { opacity:.45; pointer-events:none; }
.cbt-ws { border-collapse:collapse; margin:10px auto; }
.cbt-ws td { border:1px solid var(--line); width:2em; height:2em; text-align:center; font-weight:700; cursor:pointer; user-select:none; padding:0; }
.cbt-ws td.sel { background:#2f6fad; color:#fff; }
.cbt-ws td.found { background:#1f8a4c; color:#fff; }
.cbt-ws-wrap { overflow-x:auto; text-align:center; }
.cbt-wordlist { display:flex; flex-wrap:wrap; gap:6px 14px; justify-content:center; margin:8px 0; }
.cbt-wordlist span.found { text-decoration:line-through; opacity:.6; }
.cbt-reportbar { height:14px; border:1px solid var(--line); border-radius:99px; overflow:hidden; margin:4px 0 12px; }
.cbt-reportbar > div { height:100%; background:#2f6fad; }
.cbt-timer { font-weight:700; font-variant-numeric:tabular-nums; }
.cbt-dots { display:flex; flex-wrap:wrap; gap:4px; margin:8px 0; }
.cbt-dots span { width:12px; height:12px; border-radius:50%; border:1px solid var(--line); display:inline-block; }
.cbt-dots span.on { background:#2f6fad; }
.cbt-actions { margin-top:14px; }
@media (min-width: 900px) {
  .cbt-terms { grid-template-columns:1fr 1fr; }
  .cbt-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 22px; align-items:start; }
}
@media (max-width: 560px) {
  .cbt-ws td { width:1.55em; height:1.55em; font-size:.85em; }
  .cbt-lessons li { flex-wrap:wrap; }
}
