/* CertOcean - "Browse by category" sidebar on /all-programs (v2, Oct 2026). Loaded by include/co-programs-sidebar.php.
   Every category is always shown (no inner scroller); co-programs-sidebar.php sets --co-ps-top so a sidebar taller
   than the screen sticks once its last category is in view. */
.co-ps,.co-ps *{box-sizing:border-box}
.co-ps{position:sticky;top:var(--co-ps-top,100px);z-index:2;display:flex;flex-direction:column;margin:0 0 24px;padding:12px 10px 7px;border-radius:22px;background:linear-gradient(180deg,#fff 0%,#f6f8fd 100%);border:1px solid #e3e8f4;box-shadow:0 26px 50px -32px rgba(15,27,61,.5),0 2px 6px rgba(15,27,61,.04);font-family:inherit}
.co-ps a{text-decoration:none}
.co-ps p,.co-ps h2{margin:0}

.co-ps-head{display:flex;align-items:center;gap:11px;padding:0 6px 10px;border-bottom:1px solid #e6ebf5}
.co-ps-head-ico{flex:0 0 36px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:15px;color:#1b2140;background:linear-gradient(145deg,#ffd45c,#ff9a1f);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -3px 0 rgba(0,0,0,.1),0 10px 16px -9px rgba(255,138,31,.9);transform:perspective(240px) rotateY(-12deg)}
.co-ps-h{font-size:17px !important;font-weight:900 !important;line-height:1.2 !important;letter-spacing:-.015em;color:#0f1b3d !important}

/* ---------- category list ---------- */
.co-ps-list{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin:8px 0 0 !important;padding:0 !important;list-style:none}
.co-ps-list > li{min-width:0;margin:0;padding:0}
.co-ps-item{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;padding:4px 8px 4px 6px;border-radius:12px;color:#0f1b3d;transition:background .18s,transform .18s,box-shadow .18s}
.co-ps-ico{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#fff;background:radial-gradient(120% 120% at 0 0,rgba(255,255,255,.38),rgba(255,255,255,0) 55%),linear-gradient(145deg,var(--c1),var(--c2));box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -3px 0 rgba(0,0,0,.14),0 8px 12px -8px var(--c2);transform:perspective(220px) rotateY(-12deg);transition:transform .25s}
.co-ps-ico i{font-size:13px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.2))}
.co-ps-item--all .co-ps-ico{color:#1b2140}
.co-ps-item--all .co-ps-ico i{filter:none}
.co-ps-t{min-width:0;display:flex;flex-direction:column;line-height:1.2}
.co-ps-t b{font-size:13px;font-weight:800;color:#0f1b3d;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-ps-s{display:flex;align-items:center;gap:6px;min-width:0;margin-top:2px}
.co-ps-s small{flex:1 1 auto;min-width:0;font-size:11px;font-weight:600;line-height:16px;color:#6a7591;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-ps-s small em{margin-left:5px;padding:0 6px;border-radius:999px;font-style:normal;font-size:9.5px;font-weight:800;line-height:14px;color:#0d6b62;background:#dff7f2;display:inline-block;vertical-align:1px}
.co-ps-cnt{flex:0 0 auto;min-width:22px;height:16px;padding:0 6px;border-radius:999px;display:grid;place-items:center;font-size:10.5px;font-weight:800;line-height:1;color:#283782;background:#eef2fc;box-shadow:inset 0 -1px 0 #dbe2f4}
.co-ps-item:hover{background:#eef2fc;transform:translateX(3px)}
.co-ps-item:hover .co-ps-ico{transform:perspective(220px) rotateY(-26deg) scale(1.06)}
.co-ps-item:hover .co-ps-cnt{background:#fff}
.co-ps-item:focus-visible{outline:2px solid #3d7cf2;outline-offset:2px}
.co-ps-item.is-on{background:linear-gradient(135deg,#3a4cb0 0%,#283782 55%,#1b2563 100%);box-shadow:0 12px 22px -12px rgba(27,37,99,.95),inset 0 1px 0 rgba(255,255,255,.14);transform:none}
.co-ps-item.is-on::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:4px;border-radius:0 4px 4px 0;background:linear-gradient(180deg,#ffd45c,#ff9a1f)}
.co-ps-item.is-on .co-ps-t b{color:#fff}
.co-ps-item.is-on .co-ps-s small{color:rgba(255,255,255,.74)}
.co-ps-item.is-on .co-ps-s small em{color:#063f39;background:#9ef0de}
.co-ps-item.is-on .co-ps-cnt{color:#1b2140;background:linear-gradient(180deg,#ffd76a,#ffb020);box-shadow:none}
.co-ps-item.is-on .co-ps-ico{box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 0 0 2px rgba(255,255,255,.22),0 8px 12px -7px rgba(0,0,0,.55)}

/* narrow laptops: a slimmer column, long names may take two lines */
@media (max-width: 1199.98px) {
.co-ps{padding:10px 8px 6px;border-radius:18px}
.co-ps-head-ico{display:none}
.co-ps-item{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:4px 6px}
.co-ps-ico{width:28px;height:28px;border-radius:9px}
.co-ps-ico i{font-size:12px}
.co-ps-t b{font-size:12.5px;white-space:normal}
}
@media (prefers-reduced-motion: reduce) {
.co-ps *{transition:none !important}
}
