/* CW exam navigation v1 (29 Nov 2026, Sir approved option C). Used by include/cw_examtabs. */
.cwx-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:12px 0 0;padding:8px;background:#fff;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 4px 14px rgba(11,31,75,.05)}
.cwx-tabs::-webkit-scrollbar{display:none}
.cwx-tabs a{flex:0 0 auto;min-height:38px;display:inline-flex;align-items:center;gap:4px;padding:0 14px;border-radius:999px;border:1.5px solid #C9D3E6;background:#fff;font:600 13.5px Inter,sans-serif;color:#0B1F4B!important;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.cwx-tabs a:hover{background:#F1F5FB;border-color:#0B1F4B}
.cwx-tabs a.gold{background:#FFF8E6;border-color:#D4A017;color:#7A5200!important}
.cwx-tabs a.on{background:#0B1F4B;border-color:#0B1F4B;color:#fff!important}
.cwx-tabs small{color:#B45309;font-weight:700}
.cwx-bar,.cwx-sheet{display:none}
@media (max-width:991px){
 .cwx-tabs{display:none}
 .floating-buttons{display:none!important}
 body{padding-bottom:calc(52px + env(safe-area-inset-bottom))}
 .cwx-bar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:1040;background:#fff;border-top:1px solid #E3E8F1;box-shadow:0 -4px 16px rgba(11,31,75,.08);padding:3px 2px calc(4px + env(safe-area-inset-bottom));transition:transform .25s ease}
 .cwx-bar.hide{transform:translateY(110%)}
 .cwx-bar a,.cwx-bar button{display:flex;flex-direction:column;align-items:center;gap:1px;min-height:44px;min-width:0;justify-content:center;background:none;border:0;padding:0;font:500 11px/13px Inter,sans-serif;color:#5B6472!important;text-decoration:none}
 .cwx-bar span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cwx-bar [hidden]{display:none!important}
 .cwx-bar svg{padding:2px 12px;box-sizing:content-box;border-radius:999px}
 .cwx-bar .on{color:#0E2148!important;font-weight:700}.cwx-bar .on svg{background:#E6ECF8}
 .cwx-bar .gold{color:#7A5200!important}.cwx-bar .wa{color:#15803D!important}
 .cwx-sheet:not([hidden]){display:block;position:fixed;inset:0;z-index:1050}
 .cwx-sheet-bg{position:absolute;inset:0;background:rgba(11,31,75,.45)}
 .cwx-sheet-in{position:absolute;left:0;right:0;bottom:0;max-height:80vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;padding:10px 14px calc(16px + env(safe-area-inset-bottom));animation:cwxUp .22s ease}
 @keyframes cwxUp{from{transform:translateY(100%)}to{transform:none}}
 .cwx-grab{width:40px;height:4px;background:#C9D3E6;border-radius:2px;margin:0 auto 10px}
 .cwx-sheet-t{display:flex;justify-content:space-between;align-items:center;font:700 15px Inter,sans-serif;color:#0E2148;margin-bottom:10px}
 .cwx-sheet-t button{border:0;background:#F1F5FB;border-radius:50%;width:32px;height:32px;font-size:20px;line-height:1;color:#0E2148}
 .cwx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px}
 .cwx-grid a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:36px;padding:4px 6px;border:1px solid #E3E8F1;border-radius:9px;font:600 12.5px/1.2 Inter,sans-serif;color:#0E2148!important;text-decoration:none}
 .cwx-grid a.gold{background:#FFF8E6;border-color:#D4A017;color:#7A5200!important}
 .cwx-grid a.on{background:#0E2148;border-color:#0E2148;color:#fff!important}
 .cwx-sheet-f{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid #E3E8F1}
 .cwx-sheet-f a,.cwx-sheet-f button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;padding:6px 2px;border:1px solid #E3E8F1;border-radius:12px;background:#F8FAFC;font:600 11.5px/1.2 Inter,sans-serif;color:#0E2148!important;text-decoration:none;text-align:center}
 .cwx-sheet-f svg{width:20px;height:20px}
 .cwx-sheet-f .wa{background:#ECFDF3;border-color:#B7E4C7;color:#15803D!important}
 .cwx-sheet-f .call{background:#EEF4FF;border-color:#C9D7F2}
 .cwfd-fab{display:none!important}
 .cwx-h .cwt-bc .cwx-bc-x{display:none}
}
@media (prefers-reduced-motion:reduce){.cwx-bar,.cwx-sheet-in{transition:none;animation:none}}
/* Official links card */
.cwx-offl{margin:10px 0 16px;padding:12px 14px;border:1px solid #DBE3F0;border-top:3px solid #D4A017;border-radius:0 0 12px 12px;background:#F8FAFC;scroll-margin-top:80px}
.cwx-offl-t{font:800 16px Inter,sans-serif;color:#0E2148;margin-bottom:8px}
.cwx-offl-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.cwx-offl-g a{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1.5px solid #C9D3E6;border-radius:10px;background:#fff;font:600 13.5px/1.3 Inter,sans-serif;color:#0E2148!important;text-decoration:none!important}
.cwx-offl-g a:hover{border-color:#0E2148}
.cwx-offl-g a.top{background:#FFF8E6;border-color:#D4A017;color:#7A5200!important}
.cwx-offl-g a span{flex:1}.cwx-offl-g svg{flex:0 0 auto;opacity:.7}
.cwx-offl-n{display:block;font-size:12px;font-weight:500;color:#5B6472}
@media (max-width:575px){.cwx-offl-g{grid-template-columns:1fr 1fr;gap:6px}.cwx-offl-g a{padding:6px 8px;font-size:12.5px;min-height:40px}.cwx-offl-g svg{display:none}}
.cwx-offl-more{margin-top:8px}.cwx-offl-more>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;font:700 13px Inter,sans-serif;color:#0E2148}.cwx-offl-more>summary::-webkit-details-marker{display:none}.cwx-offl-more>summary::after{content:"\25BE";font-size:12px}.cwx-offl-more[open]>summary::after{content:"\25B4"}.cwx-offl-more .cwx-offl-g{margin-top:6px}
/* 29 Nov 2026 clean-up (Sir): no Hide/Show buttons, no second summary box ("Quick recap"/"Key takeaways" repeats "at a glance"), no "Other exams" (finder at top does it), "Talk to our team" only on desktop (phone bar has Ask us). */
.cwd-exart [data-cw-ctl]{display:none!important}
.cwd-exart .row>[class*=col]:has([data-cw-take]){display:none!important}
.cwd-exart .row:has([data-cw-take])>[class*=col]{flex:0 0 100%!important;max-width:100%!important;width:100%!important}
.cwt-side .cwt-ox{display:none!important}
@media (max-width:991px){.cwt-side .cwt-box:has(.cwt-team){display:none!important}}
/* "Attempt as test" button beside each previous-paper PDF */
a.cwx-att{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;margin:4px 0 4px 8px;border-radius:10px;border:1.5px solid #0E2148;background:#fff;color:#0E2148!important;font:700 14px Inter,sans-serif;text-decoration:none!important;vertical-align:middle}
a.cwx-att:hover{background:#0E2148;color:#fff!important}
@media (max-width:575px){a.cwx-att{margin-left:0;width:100%}}

/* breadcrumb on exam pages: one quiet line */
.cwx-h .cwt-bc{white-space:nowrap;overflow-x:auto;scrollbar-width:none;font-size:12px!important;line-height:1.4;opacity:.85;margin-bottom:4px}
.cwx-h .cwt-bc::-webkit-scrollbar{display:none}

/* test series: same exam navigation; gone while a test is being attempted (html.cwts-exam) */
html.cwts-exam .cwx-bar,html.cwts-exam .cwx-tabs,html.cwts-exam .cwx-sheet{display:none!important}
html.cwts-exam body{padding-bottom:0!important}

/* 29 Nov 2026: same bar on every page (include/cw_bar) */
@media (max-width:991px){
 .cwx-bar .join{color:#fff!important;background:#0B1F4B;border-radius:12px;margin:2px 3px}
 .cwx-bar .join svg{background:none!important}
 .cwx-sheet-f.cwx-f2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cwx-grid .cwx-gbtn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:36px;padding:4px 6px;border:1px solid #E3E8F1;border-radius:9px;background:#fff;font:600 12.5px/1.2 Inter,sans-serif;color:#0E2148}
 .cwv2-bbar,.cwv2-fab{display:none!important}
 .cwfd-fab{display:none!important}
}
@media (max-width:991px){.cwx-bar .join{grid-column:span 2;flex-direction:row;gap:6px;font-size:13px!important;font-weight:700}.cwx-bar .join span{overflow:visible}}
@media (max-width:991px){.cwx-bar{grid-auto-columns:minmax(0,1fr)!important}.cwx-bar>a,.cwx-bar>button{min-width:0}}
@media (max-width:991px){nav.cwx-bar[data-cwx-bar]{grid-template-columns:none!important;gap:0!important}}
/* 29 Nov 2026 (Sir): "Also read / Related" links inside posts – light and compact instead of big green buttons */
html body [data-cw-also2] a[data-cw-btn]{background:#F5F8FC!important;background-image:none!important;border:1px solid #D7E0EE!important;box-shadow:none!important;color:#0B1F4B!important;font:600 14px/1.35 Inter,sans-serif!important;min-height:44px!important;padding:8px 12px!important;border-radius:12px!important;animation:none!important;text-align:left!important}
html body [data-cw-also2] a[data-cw-btn] *{color:#0B1F4B!important;animation:none!important}
html body [data-cw-also2] a[data-cw-btn]::before,html body [data-cw-also2] a[data-cw-btn]::after{display:none!important}
html body [data-cw-also2] a[data-cw-btn] svg,html body [data-cw-also2] a[data-cw-btn] [class*="ico"],html body [data-cw-also2] a[data-cw-btn] i{color:#D4A017!important;border-color:#D4A017!important;background:none!important}
/* 29 Nov 2026 (Sir): main action in the bar is red, no price; contents list in the blog sheet tidy */
@media (max-width:991px){.cwx-bar .join{background:#DC2626!important;color:#fff!important}.cwx-bar .join span{white-space:nowrap}}
[data-cwv2-toc-m] li a{display:flex!important;align-items:center!important;gap:10px!important;padding:10px 6px!important;font:500 14.5px/1.35 Inter,sans-serif!important}
[data-cwv2-toc-m] li a .n{flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font:600 11px/1 Inter,sans-serif!important;margin:0!important}
[data-cwv2-toc-m] li:not(:last-child)::after{left:17px!important;top:34px!important}
#cwv2Sheet.offcanvas-bottom{height:auto!important;max-height:80vh!important}#cwv2Sheet .offcanvas-body{padding-bottom:calc(16px + env(safe-area-inset-bottom))!important;overflow-y:auto}

/* cwpp-v1 previous-papers cards */
div:has(> div > a.cwx-att){padding:12px!important;gap:6px!important;border-radius:12px!important}
div:has(> div > a.cwx-att) > div:first-child{font-size:15.5px!important;line-height:1.3!important}
div:has(> div > a.cwx-att) > div:nth-child(2){font-size:12.5px!important;line-height:1.4!important}
div:has(> a.cwx-att){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:4px!important}
html body div:has(> a.cwx-att) > a{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;padding:0 8px!important;border-radius:12px!important;font:700 14px/1.2 Inter,sans-serif!important;white-space:nowrap!important;text-decoration:none!important;margin:0!important;box-shadow:none!important;width:auto!important}
html body div:has(> a.cwx-att) > a:not(.cwx-att){background:#0B1F4B!important;color:#fff!important;border:1.5px solid #0B1F4B!important}
html body div:has(> a.cwx-att) > a.cwx-att{background:#fff!important;color:#0B1F4B!important;border:1.5px solid #0B1F4B!important}

/* 30 Nov 2026: until the tabs are fitted, show only the first 4 */
.cwx-bar:not(.cwx-fit)>[data-cwx-tab]:nth-child(n+5){display:none!important}
