/* ChessTeachers CTP.5 — master games archive/mobile layer */
:root{--ctp-gold:#d4af37;--ctp-bg:#080a0f}
body.tax-cs_category .site-main,body.tax-cs_tag .site-main,body.post-type-archive-cs_chessgame .site-main{max-width:1200px;margin-inline:auto;padding-inline:16px;box-sizing:border-box}
body.tax-cs_category article,body.tax-cs_tag article,body.post-type-archive-cs_chessgame article{box-sizing:border-box;overflow:hidden;border:1px solid rgba(212,175,55,.20);border-radius:20px;background:linear-gradient(145deg,#11151d,#07090d);padding:18px;margin-bottom:14px;box-shadow:0 14px 35px rgba(0,0,0,.16)}
body.tax-cs_category article a,body.tax-cs_tag article a,body.post-type-archive-cs_chessgame article a{overflow-wrap:anywhere}
body.tax-cs_category .navigation.pagination .nav-links,body.tax-cs_tag .navigation.pagination .nav-links,body.post-type-archive-cs_chessgame .navigation.pagination .nav-links,.cs-simple-list .page-navigation{display:flex!important;flex-wrap:wrap;justify-content:center;gap:7px;margin:24px auto;direction:ltr}
body.tax-cs_category .page-numbers,body.tax-cs_tag .page-numbers,body.post-type-archive-cs_chessgame .page-numbers,.cs-simple-list .page-navigation>a,.cs-simple-list .page-navigation>span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 10px!important;border-radius:12px!important;border:1px solid rgba(212,175,55,.22)!important;background:#10141c!important;color:#f4f4f5!important;text-decoration:none!important;box-sizing:border-box}
body.tax-cs_category .page-numbers.current,body.tax-cs_tag .page-numbers.current,body.post-type-archive-cs_chessgame .page-numbers.current,.cs-simple-list .page-navigation>.current{background:linear-gradient(135deg,#f0d363,#bd8e17)!important;color:#090a0c!important;font-weight:900}
.cs-simple-list{width:100%!important;max-width:1100px!important;margin-inline:auto!important;box-sizing:border-box!important;overflow:hidden!important}.cs-simple-list-items{width:100%!important}.cs-simple-list-item{box-sizing:border-box!important;width:100%!important;padding:13px 15px!important;margin:8px 0!important;border-radius:14px!important;background:rgba(15,18,25,.92)!important;border:1px solid rgba(212,175,55,.13)!important;white-space:normal!important;overflow-wrap:anywhere!important}.cs-simple-list-item .cs-title,.cs-simple-list-item .cs-date{white-space:normal!important;display:inline!important}
/* World champions landing: defensive mobile rules for existing theme/card markup. */
body.page .chess-legends,body.page .chess-legends-grid,body.page .champions-grid,body.page .world-chess-champions{box-sizing:border-box!important;max-width:1200px!important;width:100%!important;margin-inline:auto!important}.chess-legends img,.chess-legends-grid img,.champions-grid img,.world-chess-champions img{max-width:100%!important;height:auto!important}.chess-legends a,.chess-legends-grid a,.champions-grid a,.world-chess-champions a{box-sizing:border-box!important;max-width:100%!important}
@media(max-width:760px){body.tax-cs_category .site-main,body.tax-cs_tag .site-main,body.post-type-archive-cs_chessgame .site-main{padding-inline:10px}.cs-simple-list{padding:0 8px!important}.cs-simple-list-item{display:block!important;font-size:13px!important;line-height:1.9!important}.cs-simple-list-item .cs-title{display:block!important;font-size:14px!important;font-weight:800!important;margin-bottom:3px!important}.cs-simple-list-item .cs-date{font-size:11px!important;opacity:.72!important}.chess-legends,.chess-legends-grid,.champions-grid,.world-chess-champions{grid-template-columns:1fr!important;padding:12px!important;gap:14px!important}.legend-card,.champion-card,.world-chess-champions>*{width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important}.legend-card{height:auto!important;min-height:250px!important}.ctp-home-games{width:auto!important;max-width:calc(100vw - 20px)!important;overflow:hidden!important}.ctp-home-card{min-width:0!important}}
@media(max-width:420px){body.tax-cs_category .page-numbers,body.tax-cs_tag .page-numbers,body.post-type-archive-cs_chessgame .page-numbers,.cs-simple-list .page-navigation>a,.cs-simple-list .page-navigation>span{min-width:36px;height:36px;padding:0 8px!important;font-size:12px}.ctp-home-head{align-items:flex-start!important}.ctp-home-head p{font-size:12px!important;line-height:1.8!important}}
