/* Chess guides (/catur): builds on article.css. */
.catur-page .guide-copy{max-width:780px}
.catur-hero{grid-template-columns:minmax(0,1fr) minmax(260px,400px)}
.catur-hero figure img{width:100%;height:auto;border-radius:14px}
.catur-page h3{font-size:20px;line-height:1.4;margin:28px 0 12px;color:#0c1b32}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:28px 0 0;padding:0}
.facts>div{background:#fff;border:1px solid #d4e1f0;border-radius:12px;padding:12px 16px}
.facts dt{font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#1c5caa}
.facts dd{margin:4px 0 0;font-size:15px;line-height:1.5;color:#17253a;font-weight:600}
.board-fig{margin:22px 0 28px;background:#fff;border:1px solid #d4e1f0;border-radius:16px;padding:14px}
.board-fig img{display:block;width:100%;max-width:460px;height:auto;margin:0 auto;border-radius:10px}
.board-fig figcaption{font-size:14px;line-height:1.6;color:#40556e;margin-top:12px}
.board-fig figcaption strong{color:#0c1b32}
.fig-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0 28px}
.fig-pair .board-fig{margin:0}
.tidy{padding-left:22px;margin:0 0 20px}.tidy li{margin-bottom:10px}
.tip{border-left:4px solid #2475c9;background:#eaf3ff;border-radius:0 12px 12px 0;padding:14px 18px;margin:20px 0 26px}
.tip strong{display:block;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:#1c5caa;margin-bottom:4px}
.tip p{margin:0;font-size:15px;line-height:1.7}
.tip.warn{border-left-color:#d97706;background:#fff6e5}.tip.warn strong{color:#b45309}
.table-wrap{overflow-x:auto;margin:18px 0 26px;border:1px solid #d4e1f0;border-radius:12px;background:#fff}
.data-table,.piece-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55}
.data-table th,.data-table td,.piece-table th,.piece-table td{padding:10px 14px;border-bottom:1px solid #e2eaf4;text-align:left;vertical-align:middle}
.data-table thead th,.piece-table thead th{background:#0c1b32;color:#fff;font-size:12px;letter-spacing:1px;text-transform:uppercase}
.data-table tbody tr:last-child>*,.piece-table tbody tr:last-child>*{border-bottom:0}
.piece-table img{display:block;width:56px;height:56px}
.piece-table tbody th{white-space:nowrap;color:#0c1b32}
.step-figs{list-style:none;counter-reset:step;padding:0;margin:20px 0}
.step-figs>li{counter-increment:step;position:relative;padding:0 0 4px 52px;margin-bottom:8px}
.step-figs>li::before{content:counter(step);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:#0c1b32;color:#facc15;font-weight:700;display:grid;place-items:center}
.step-figs>li::after{content:"";position:absolute;left:17px;top:42px;bottom:0;width:2px;background:#c7d8ed}
.step-figs>li:last-child::after{display:none}
.step-figs h3{margin:4px 0 8px;font-size:19px}
.step-figs .board-fig{margin:14px 0 22px}
details.faq{background:#fff;border:1px solid #d4e1f0;border-radius:12px;margin:0 0 10px;padding:0 18px}
details.faq summary{cursor:pointer;font-weight:700;padding:14px 0;color:#0c1b32}
details.faq p{margin:0 0 16px;font-size:15px}
.related-grid,.hub-grid{list-style:none;padding:0;margin:18px 0;display:grid;gap:14px}
.related-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.related-grid a,.hub-grid a{display:flex;flex-direction:column;gap:8px;height:100%;background:#fff;border:1px solid #d4e1f0;border-radius:14px;padding:12px;text-decoration:none;color:#0c1b32}
.related-grid a:hover,.hub-grid a:hover{border-color:#2475c9;box-shadow:0 8px 22px #163b6d1a}
.related-grid img{width:100%;height:120px;object-fit:contain}
.related-grid span{font-weight:700;font-size:14px;line-height:1.35}
.hub-hero{max-width:860px;padding:0 0 28px}
.hub-hero h1{font-size:clamp(30px,4vw,46px);line-height:1.2;letter-spacing:-1px;margin:0 0 18px;text-wrap:balance}
.hub-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin-bottom:40px}
.hub-grid img{width:100%;height:auto;aspect-ratio:16/9;border-radius:10px}
.hub-name{font-size:20px;font-weight:800;line-height:1.3}
.hub-origin{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#1c5caa}
.hub-sum{font-size:15px;line-height:1.6;color:#40556e}
.hub-compare{max-width:980px;margin:0 0 36px}
.hub-compare h2{font-size:clamp(23px,2.5vw,30px);margin:0 0 16px}
.hub-compare p{margin:0 0 18px}
.hub-compare a,.data-table a{color:#175ba5;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){
  .catur-hero{grid-template-columns:1fr}.catur-hero figure{max-width:none}
  .fig-pair{grid-template-columns:1fr}
  .board-fig{padding:10px;border-radius:12px}
  .step-figs>li{padding-left:44px}.step-figs>li::before{width:32px;height:32px}.step-figs>li::after{left:15px}
  .piece-table th,.piece-table td,.data-table th,.data-table td{padding:8px 10px;font-size:14px}
  .piece-table tbody th{white-space:normal}
}
