/* Override the legacy .catelist span width/float rules inside this module. */
.cm-category-overview .cm-related-categories :where(span){box-sizing:border-box;float:none;width:auto;min-width:0;max-width:none;height:auto;margin:0;padding:0}
.cm-category-overview .cm-related-categories{display:block;float:none;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:auto;margin:0 0 24px;padding:18px 24px;border:1px solid #ffe0ce;border-radius:16px;background:linear-gradient(110deg,#fffaf7,#fffdfd);box-shadow:0 2px 4px #42200008;color:#111;font-family:Arial,sans-serif}
.cm-category-overview .cm-related-categories h2{display:flex;align-items:center;gap:12px;float:none;width:auto;margin:0 0 14px;padding:0;border:0;background:none;color:#111;font:700 20px/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.cm-related-categories .cm-related-swap{display:inline-block;flex:0 0 auto;width:auto;color:#ff7900;font-size:30px;line-height:1}
.cm-related-categories .cm-related-body{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) auto;align-items:center;gap:14px}
.cm-related-categories .cm-related-card{display:flex;align-items:center;gap:16px;align-self:stretch;min-width:0;padding:12px 18px;border:1px solid #e2edff;border-radius:16px;background:linear-gradient(110deg,#f0f7ff,#eaf3ff)}
.cm-related-categories .cm-related-card>div{min-width:0}
.cm-category-overview .cm-related-card h3{display:block;float:none;width:auto;margin:0 0 4px;padding:0;color:#14244c;font:700 17px/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.cm-category-overview .cm-related-card p{float:none;width:auto;margin:0;padding:0;color:#506079;font:400 14px/1.6 Arial,sans-serif;overflow-wrap:anywhere;white-space:pre-line}
.cm-related-categories .cm-related-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:48px;border-radius:50%;color:#1769dc;background:#dfeeff}
.cm-related-categories .cm-related-icon svg{display:block;width:28px;height:28px}
.cm-related-categories .cm-related-target{border-color:#efe5ff;background:linear-gradient(110deg,#f8f3ff,#f4effc)}
.cm-related-categories .cm-related-target .cm-related-icon{color:#8048cc;background:#eee3ff}
.cm-related-categories .cm-related-versus{position:relative;display:flex;align-items:center;justify-content:center;height:100%;min-height:42px}
.cm-related-categories .cm-related-versus:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#e6e8ed}
.cm-related-categories .cm-related-versus span{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:40px;border:1px solid #e1e4eb;border-radius:50%;background:#fff;color:#283244;font:700 14px/1 Arial,sans-serif}
.cm-category-overview a.cm-related-explore{display:flex;float:none;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:auto;min-width:0;max-width:260px;margin:0 0 0 20px;padding:14px 16px;border:1px solid #ff7900;border-radius:11px;background:#fff;color:#f66b00;text-align:center;text-decoration:none;font:600 15px/1.5 Arial,sans-serif;overflow-wrap:anywhere}
.cm-related-categories .cm-related-explore>span{display:inline-block;flex:0 0 auto;width:auto;font:inherit;line-height:inherit}
.cm-category-overview a.cm-related-explore:hover{background:#fff3e8;border-color:#e86500;color:#cf5700}
.cm-category-overview a.cm-related-explore:focus-visible{outline:3px solid #ffb975;outline-offset:3px}
@media(max-width:1200px){.cm-related-categories .cm-related-body{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:10px}.cm-category-overview a.cm-related-explore{grid-column:3;justify-self:end;margin:4px 0 0;max-width:100%}}
@media(max-width:640px){.cm-category-overview .cm-related-categories{padding:16px;border-radius:12px}.cm-category-overview .cm-related-categories h2{align-items:flex-start;gap:9px;font-size:17px}.cm-related-categories .cm-related-body{grid-template-columns:minmax(0,1fr);gap:10px}.cm-related-categories .cm-related-card{padding:14px;gap:12px;border-radius:12px}.cm-related-categories .cm-related-versus{min-height:30px}.cm-related-categories .cm-related-versus span{width:30px;height:30px;font-size:12px}.cm-related-categories .cm-related-icon{flex-basis:42px;height:42px}.cm-category-overview a.cm-related-explore{grid-column:1;justify-self:stretch;max-width:none;margin:2px 0 0}}
