.ccefm-wrap{--red:#b91f38;--red2:#8f1529;--ink:#172033;--muted:#667085;--line:#e7e9ee;--soft:#f7f8fb;max-width:1180px;margin:24px auto;padding:0 14px;font-family:inherit;color:var(--ink);box-sizing:border-box}.ccefm-wrap *{box-sizing:border-box}.ccefm-hero{background:linear-gradient(135deg,#741526,#c52d43);color:#fff;text-align:center;border-radius:24px;padding:34px 20px;box-shadow:0 14px 34px rgba(116,21,38,.16)}.ccefm-hero span{font-size:13px;font-weight:800;letter-spacing:1px}.ccefm-hero h2{font-size:clamp(28px,4vw,44px);margin:8px 0;color:#fff}.ccefm-hero p{margin:8px 0 15px}.ccefm-rules{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:14px 0 18px}.ccefm-rules b{background:rgba(255,255,255,.14);padding:8px 11px;border-radius:999px;font-size:12px}.ccefm-hero a,.ccefm-start,.ccefm-resultactions button,.ccefm-resultactions a{display:inline-block;border:0;border-radius:11px;padding:11px 16px;font-weight:800;text-decoration:none;cursor:pointer}.ccefm-hero a{background:#fff;color:#18743a}.ccefm-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 13px;padding:15px;border:1px solid #eee;border-radius:14px;background:#fff}.ccefm-head h3{margin:0}.ccefm-head small{color:#777}.ccefm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ccefm-card{border:1px solid #ece8e8;border-radius:18px;padding:20px;background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.05);overflow:hidden}.ccefm-top{display:flex;justify-content:space-between;align-items:center}.ccefm-top em{font-style:normal;font-size:11px;background:#fff0f2;color:#b11d34;padding:6px 9px;border-radius:999px;font-weight:900}.ccefm-top strong{font-size:28px;color:#b11d34}.ccefm-card h3{font-size:18px}.ccefm-card p{font-size:13px;color:#666}.ccefm-start{width:100%;background:#b11d34;color:#fff}.ccefm-empty{grid-column:1/-1;text-align:center;padding:40px;border:1px dashed #ccc;border-radius:18px}
/* Exam screen */
#ccefm-quiz{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"head head" "progress progress" "question side";gap:16px;align-items:start;max-width:1100px;margin:18px auto 40px}#ccefm-quiz[hidden]{display:none!important}.ccefm-quizhead{grid-area:head;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(16,24,40,.06);position:sticky;top:8px;z-index:20}.ccefm-quizhead>div:first-child{min-width:0}.ccefm-quizhead small{display:block;font-size:10px;letter-spacing:.9px;font-weight:900;color:var(--red);margin-bottom:3px}.ccefm-quizhead b{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ccefm-timebox{text-align:right;min-width:105px;padding-left:15px;border-left:1px solid var(--line)}.ccefm-timebox small{color:var(--muted);letter-spacing:.6px}.ccefm-quizhead .ccefm-timebox span{font-size:25px;line-height:1;font-weight:900;color:var(--red);font-variant-numeric:tabular-nums}.ccefm-progress{grid-area:progress;height:7px;background:#eceef2;border-radius:999px;overflow:hidden}.ccefm-progress>div{height:100%;width:0;background:linear-gradient(90deg,var(--red),#df4961);border-radius:inherit;transition:width .25s ease}.ccefm-side{grid-area:side;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 7px 24px rgba(16,24,40,.05);position:sticky;top:92px}.ccefm-sidehead{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}.ccefm-sidehead b{font-size:15px}.ccefm-sidehead span{font-size:11px;color:var(--muted);font-weight:700}.ccefm-legend{display:flex;gap:10px;flex-wrap:wrap;padding:9px 0 12px;border-bottom:1px solid var(--line);margin-bottom:12px}.ccefm-legend span{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:4px}.ccefm-legend i{width:10px;height:10px;border:1px solid #d6dae2;border-radius:3px;background:#fff}.ccefm-legend .lg-current{border:2px solid var(--red);background:#fff}.ccefm-legend .lg-answered{background:#e7f7ed;border-color:#b9e3c8}.ccefm-palette{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;max-height:390px;overflow:auto;padding:2px}.ccefm-palette button{aspect-ratio:1;border:1px solid #dfe2e8;background:#fff;border-radius:7px;padding:0;min-width:0;font-size:10px;font-weight:700;color:#586174;cursor:pointer}.ccefm-palette button:hover{background:#f4f5f7}.ccefm-palette .answered{background:#e7f7ed;border-color:#b9e3c8;color:#18743a}.ccefm-palette .current{border:2px solid var(--red);color:var(--red);background:#fff5f6}.ccefm-qcard{grid-area:question;background:#fff;padding:24px;border:1px solid var(--line);border-radius:20px;box-shadow:0 7px 24px rgba(16,24,40,.05);min-width:0}.ccefm-qmeta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.ccefm-qmeta small{font-size:12px;font-weight:800;color:var(--red);background:#fff2f4;padding:6px 10px;border-radius:999px}.ccefm-qmeta span{font-size:11px;color:var(--muted);font-weight:700;text-align:right}.ccefm-qcard #ccefm-question{max-width:100%;font-size:21px;font-weight:750;line-height:1.55;margin:16px 0 20px;overflow-wrap:anywhere}.ccefm-opt{display:flex;align-items:flex-start;gap:10px;border:1px solid #e2e5eb;padding:14px 15px;border-radius:13px;margin:10px 0;cursor:pointer;background:#fff;transition:.15s ease;line-height:1.45}.ccefm-opt:hover{border-color:#c8ccd5;background:#fafbfc}.ccefm-opt input{margin-top:4px;accent-color:var(--red);flex:0 0 auto}.ccefm-opt.selected{border:2px solid var(--red);background:#fff5f6;padding:13px 14px}.ccefm-actions{display:grid;grid-template-columns:auto 1fr auto;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.ccefm-actions button{border:1px solid #d8dce4;background:#fff;color:#344054;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer}.ccefm-actions #ccefm-next{background:var(--red);border-color:var(--red);color:#fff}.ccefm-actions #ccefm-submit{background:#172033;border-color:#172033;color:#fff}.ccefm-actions button:disabled{opacity:.45;cursor:not-allowed}.ccefm-resultcard{text-align:center;max-width:650px;margin:25px auto;padding:28px;border:1px solid #eee;border-radius:20px;background:#fff}.ccefm-resultcard h2{font-size:42px;color:#b11d34;margin:6px}.ccefm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.ccefm-stats div{background:#fafafa;padding:15px;border-radius:12px}.ccefm-stats b,.ccefm-stats span{display:block}.ccefm-stats b{font-size:24px}.ccefm-stats span{font-size:12px;color:#777}.ccefm-resultactions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}.ccefm-resultactions button{background:#b11d34;color:#fff}.ccefm-resultactions a{background:#16803c;color:#fff}.ccefm-hub{display:inline-block;margin:10px 0 4px;padding:10px 16px;border-radius:8px;text-decoration:none;font-weight:700}
@media(max-width:900px){.ccefm-grid{grid-template-columns:1fr 1fr}#ccefm-quiz{grid-template-columns:1fr;grid-template-areas:"head" "progress" "question" "side"}.ccefm-side{position:static}.ccefm-palette{grid-template-columns:repeat(15,1fr);max-height:none}}
@media(max-width:600px){.ccefm-wrap{margin:10px auto;padding:0 8px}.ccefm-grid{grid-template-columns:1fr}.ccefm-head{display:block}.ccefm-hero{border-radius:17px;padding:26px 14px}#ccefm-quiz{gap:10px;margin-top:8px}.ccefm-quizhead{top:0;border-radius:13px;padding:11px 12px}.ccefm-quizhead b{font-size:13px;max-width:210px}.ccefm-timebox{min-width:86px;padding-left:9px}.ccefm-quizhead .ccefm-timebox span{font-size:20px}.ccefm-qcard{padding:15px 12px;border-radius:15px}.ccefm-qcard #ccefm-question{font-size:18px;line-height:1.5;margin:13px 0 16px}.ccefm-opt{padding:13px 12px;margin:8px 0;border-radius:11px}.ccefm-opt.selected{padding:12px 11px}.ccefm-actions{grid-template-columns:1fr 1fr}.ccefm-actions #ccefm-submit{grid-column:1/-1}.ccefm-actions button{padding:12px 8px;font-size:12px}.ccefm-side{padding:13px;border-radius:15px}.ccefm-palette{grid-template-columns:repeat(10,1fr);gap:4px}.ccefm-palette button{font-size:9px;border-radius:6px}.ccefm-stats{grid-template-columns:repeat(3,1fr)}.ccefm-stats div{padding:10px 5px}.ccefm-qmeta{align-items:flex-start}.ccefm-qmeta span{max-width:48%}}

/* Full-width page integration: keeps the quiz independent from theme sidebars */
body.ccefm-fullwidth-page .site-content,
body.ccefm-fullwidth-page .content-area,
body.ccefm-fullwidth-page main.site-main,
body.ccefm-fullwidth-page .site-main,
body.ccefm-fullwidth-page .entry-content,
body.ccefm-fullwidth-page .wp-block-post-content{
    width:100% !important;
    max-width:none !important;
}
body.ccefm-fullwidth-page .widget-area,
body.ccefm-fullwidth-page aside.widget-area,
body.ccefm-fullwidth-page .sidebar,
body.ccefm-fullwidth-page #secondary{
    display:none !important;
}
body.ccefm-fullwidth-page .content-area,
body.ccefm-fullwidth-page main.site-main{
    margin-left:auto !important;
    margin-right:auto !important;
    float:none !important;
}
body.ccefm-fullwidth-page .ccefm-wrap{
    width:min(1180px, calc(100% - 28px));
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
}
body.ccefm-fullwidth-page .ccefm-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
body.ccefm-fullwidth-page .ccefm-card{min-width:0;}
body.ccefm-fullwidth-page .ccefm-head{width:100%;}
@media(max-width:900px){body.ccefm-fullwidth-page .ccefm-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){body.ccefm-fullwidth-page .ccefm-wrap{width:calc(100% - 16px);}.ccefm-card h3{line-height:1.35;}}
