.catalog-test-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.catalog-test-grid .test-card,.community-test-card{position:relative}
.catalog-test-grid .test-card .test-cover-thumb,.community-test-card .test-cover-thumb{position:absolute;top:16px;right:16px;width:56px;height:56px;object-fit:cover;object-position:center 15%;border:1px solid #dbe5ee;border-radius:9px;background:#fff}
.catalog-test-grid .test-card.has-cover>small,.catalog-test-grid .test-card.has-cover>h2,.community-test-card.has-cover>h3{padding-right:68px}
.community-test-card.has-cover{display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:6px 18px;align-items:start}
.community-test-card.has-cover .test-cover-thumb{position:static;grid-column:1;grid-row:1/4;width:110px;height:145px;object-fit:contain;object-position:center;margin:0}
.community-test-card.has-cover>h3{grid-column:2;grid-row:1;margin:0;padding:0}
.community-test-card.has-cover>p{grid-column:2;grid-row:2;margin:0}
.community-test-card.has-cover>small{grid-column:2;grid-row:3}
@media(max-width:500px){.community-test-card.has-cover{grid-template-columns:82px minmax(0,1fr);gap:5px 12px}.community-test-card.has-cover .test-cover-thumb{width:82px;height:112px}}
.catalog-promo-cell{min-width:0;display:flex;align-items:center;justify-content:center}
.sample-ad{box-sizing:border-box;display:flex;align-items:center;flex-direction:column;text-align:center;overflow:hidden;max-width:100%;color:#102948;background:linear-gradient(135deg,#e1f8f6,#edf3ff);border:1px solid #dbe5ee;border-radius:16px;padding:16px;text-decoration:none}
.sample-ad:hover{text-decoration:none;color:#102948;border-color:#8cbdce}.sample-ad strong{font-size:22px;line-height:1.2}.sample-ad span{font-size:13px;line-height:1.4}.sample-ad b{font-size:14px;color:#1654b8}
.sample-ad-rectangle{width:336px;height:280px;gap:8px}.sample-ad-rectangle img{width:126px;height:126px;object-fit:contain;flex:none}
.sample-ad-vertical{width:240px;height:400px;gap:10px;background:#fff}.sample-ad-vertical img{width:100%;height:246px;min-height:0;object-fit:contain;flex:1}
@media(max-width:1087px){.catalog-test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:735px){.catalog-test-grid{grid-template-columns:minmax(0,1fr)}}
/* Two editorial rows share the height of their advertising slot. */
@media(min-width:1088px){
 .catalog-test-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
 .catalog-test-grid>*{grid-column:span 3}
 .catalog-test-grid:has(.sample-ad-rectangle)>:nth-child(-n+9){grid-column:span 4}
 .catalog-test-grid:has(.sample-ad-rectangle)>:nth-child(n+4):nth-child(-n+6){height:280px;box-sizing:border-box}
 .catalog-test-grid:has(.sample-ad-vertical)>:nth-child(n+10):nth-child(-n+13){height:400px;box-sizing:border-box}
 .catalog-test-grid:has(.sample-ad-rectangle)>a:nth-child(n+4):nth-child(-n+5){padding:18px;display:flex;flex-direction:column;font-size:14px;line-height:1.45}
 .catalog-test-grid:has(.sample-ad-rectangle)>a:nth-child(n+4):nth-child(-n+5) h2{margin:10px 0;font-size:17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .catalog-test-grid:has(.sample-ad-rectangle)>a:nth-child(n+4):nth-child(-n+5) p{margin:6px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 .catalog-test-grid:has(.sample-ad-rectangle)>a:nth-child(n+4):nth-child(-n+5)>span{margin-top:auto;padding-top:8px}
 .catalog-test-grid:has(.sample-ad-vertical)>a:nth-child(n+10):nth-child(-n+12){display:flex;flex-direction:column}
 .catalog-test-grid:has(.sample-ad-vertical)>a:nth-child(n+10):nth-child(-n+12)>span{margin-top:auto}
}
.catalog-wide-promo{grid-column:1/-1!important;display:flex;justify-content:center;padding:8px 0}
.sample-ad-leaderboard{width:728px;height:90px;flex-direction:row;gap:16px;text-align:left;padding:12px 20px;border-radius:12px}
.sample-ad-leaderboard img{width:60px;height:60px;object-fit:contain}.sample-ad-leaderboard div{flex:1}.sample-ad-leaderboard strong{font-size:18px;display:block}.sample-ad-leaderboard span{display:block;margin-top:4px}.sample-ad-leaderboard b{white-space:nowrap}
.catalog-tall-section{grid-column:1/-1!important;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;min-width:0}
.catalog-tall-tests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.catalog-tall-tests>.card{box-sizing:border-box;min-width:0}.catalog-half-promo{display:flex;justify-content:center}
.sample-ad-halfpage{width:300px;height:600px;gap:18px;padding:24px;background:linear-gradient(160deg,#e1f8f6,#fff,#edf3ff)}
.sample-ad-halfpage img{width:210px;height:230px;object-fit:contain}.sample-ad-halfpage b{margin-top:auto}
.sample-ad-medium{width:300px;height:250px;gap:8px}.sample-ad-medium img{width:96px;height:96px;object-fit:contain}.sample-ad-medium strong{font-size:20px}
@media(min-width:1088px){.catalog-test-grid:has(.sample-ad-medium)>:nth-last-child(-n+3){grid-column:span 4}}
@media(max-width:800px){.catalog-tall-section{grid-template-columns:1fr}.catalog-tall-tests{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-wide-promo{display:none}}
@media(max-width:500px){.catalog-tall-tests{grid-template-columns:1fr}}

.sample-ad-leaderboard,.sample-ad-halfpage,.sample-ad-medium{background:#fff}.sample-ad-halfpage img{width:250px;height:250px;border-radius:12px}

.sample-ad-halfpage img{height:210px;min-height:0;flex-shrink:0}.sample-ad-halfpage{gap:14px}

.sample-ad-chess{gap:2px;padding:6px 12px;justify-content:space-between}
.sample-ad-chess-intro{box-sizing:border-box;width:100%;min-width:0;font-size:12px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sample-ad-chess-open{box-sizing:border-box;display:flex;flex:1;min-height:0;width:100%;align-items:center;justify-content:center;flex-direction:column;gap:4px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:zoom-in}
.sample-ad-chess-open:hover{background:transparent}
.sample-ad-chess .sample-ad-chess-title{display:block;box-sizing:border-box;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.25;font-weight:700;color:#27415b}
.sample-ad-chess-board{container-type:inline-size;box-sizing:border-box;width:min(100%,216px);aspect-ratio:1;flex:none;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));overflow:hidden;border:2px solid #173756;border-radius:4px;box-shadow:0 2px 7px #10294820}
.sample-ad-chess-open>.sample-ad-chess-board{margin-top:3px}
.sample-ad-chess-square{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;font-family:"Segoe UI Symbol","DejaVu Sans",sans-serif;font-size:clamp(13px,12cqw,68px);line-height:1}
.sample-ad-chess-square.is-light{background:#f1e8d6}.sample-ad-chess-square.is-dark{background:#80a8b5}
.sample-ad-chess-square.is-white-piece{color:#fff;text-shadow:-1px -1px 0 #24415a,1px -1px 0 #24415a,-1px 1px 0 #24415a,1px 1px 0 #24415a,0 1px 2px #102948}
.sample-ad-chess-square.is-black-piece{color:#17324b;text-shadow:0 1px 1px #fff8}
.sample-ad-chess-caption{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:14px;color:#27415b;overflow:hidden}
.sample-ad-chess .sample-ad-chess-caption-detail{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.2;color:#61748a}
.chess-puzzle-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #b9cedf;border-radius:16px;background:#fff;color:#20354d;box-shadow:0 20px 80px #10294855}
.chess-puzzle-dialog::backdrop{background:#10233dcc}
.chess-puzzle-dialog-content{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px}
.chess-puzzle-dialog-content h2{margin:0;color:#102948;font-size:21px;text-align:center}
.chess-puzzle-dialog-title,.chess-puzzle-dialog-side{max-width:100%;margin:0;text-align:center;overflow-wrap:anywhere}
.chess-puzzle-dialog-title{font-weight:700}.chess-puzzle-dialog-side{font-size:13px;color:#61748a}
.chess-puzzle-dialog .sample-ad-chess-board{width:min(80vw,55vh,520px);max-width:100%}
.chess-puzzle-hint-button{margin-top:5px;padding:7px 14px;border:1px solid #9acbe2;border-radius:8px;background:#eefaff;color:#104e87;font:inherit;font-weight:700;cursor:pointer}
.chess-puzzle-hint-button:hover{background:#dff4fd}
.chess-puzzle-hint{max-width:100%;margin:0;text-align:center;overflow-wrap:anywhere;font-size:14px;line-height:1.4;color:#27415b}
.chess-puzzle-dialog-close{position:absolute;top:8px;right:8px;margin:0}
.chess-puzzle-dialog-close button{width:34px;height:34px;margin:0;padding:0;border:0;border-radius:50%;background:#eef4f8;color:#27415b;font-size:25px;line-height:1;cursor:pointer}
.chess-puzzle-dialog-close button:hover{background:#dceaf3}
