/* Scoped to the English chess comparison drafts. */
.chess-comparison-page .chess-matrix-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin: 24px 0 18px; }
.chess-comparison-page .chess-matrix-scroll:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.chess-matrix { width: 100%; min-width: 680px; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.chess-matrix caption { padding: 16px; text-align: left; color: var(--muted); font-size: 13px; }
.chess-matrix th, .chess-matrix td { padding: 16px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); overflow-wrap: break-word; }
.chess-matrix thead th { color: var(--text); background: var(--surface); font-size: 15px; }
.chess-matrix th:first-child { width: 22%; }
.chess-matrix tbody th { font-weight: 600; color: var(--text); }
.chess-matrix td { color: var(--muted); }
.chess-matrix td:last-child, .chess-matrix thead th:last-child { background: rgba(61, 212, 181, .055); }
.chess-matrix td span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.55; }
.chess-comparison-page .matrix-scroll-hint { display: none; }
.chess-comparison-page .chess-walkthrough { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 24px; padding: 0; list-style: none; counter-reset: step; }
.chess-walkthrough li { counter-increment: step; min-width: 0; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; }
.chess-walkthrough li > p { flex: 1; }
.chess-walkthrough .resource-shot { margin: 24px auto 0; }
.chess-walkthrough h3::before { content: counter(step) ". "; color: var(--teal); }
.chess-comparison-page .resource-shot img { border-radius: 0; width: 100%; height: auto; }
/* Compact feature matrices for the two English chess comparisons. */
.chess-matrix-symbols { min-width: 0; }
.chess-matrix-symbols th:first-child { width: 40%; }
.chess-matrix-symbols td, .chess-matrix-symbols thead th:not(:first-child) { text-align: center; vertical-align: middle; }
.chess-matrix-symbols tbody th { vertical-align: middle; }
.chess-comparison-page .chess-feature-mark { display: inline-block; font-size: 23px; line-height: 1.1; font-weight: 700; }
.chess-comparison-page .chess-feature-yes { color: #70e2ad; }
.chess-comparison-page .chess-feature-limited { color: #ffd276; }
.chess-comparison-page .chess-feature-no { color: #a9b0bf; }
.chess-matrix-symbols td .chess-feature-note { margin-top: 5px; font-size: 12px; line-height: 1.35; }
.chess-comparison-page .chess-matrix-key { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0 0 14px; font-size: 12px; }
.chess-matrix-key > span { display: inline-flex; align-items: center; gap: 7px; }
.chess-comparison-page .chess-matrix-key .chess-feature-mark { font-size: 17px; }
@media (max-width: 520px) {
  .chess-matrix-symbols { font-size: 12px; }
  .chess-matrix-symbols th:first-child { width: 34%; }
  .chess-matrix-symbols th, .chess-matrix-symbols td { padding: 13px 5px; }
  .chess-matrix-symbols thead th { font-size: 11px; white-space: nowrap; }
  .chess-matrix-symbols thead th:first-child { white-space: normal; }
  .chess-matrix-symbols tbody th { padding-left: 9px; }
  .chess-matrix-symbols td .chess-feature-note { font-size: 10px; }
  .chess-comparison-page .chess-matrix-key { gap: 8px 14px; font-size: 11px; }
}
@media (max-width: 720px) {
  .chess-comparison-page .matrix-scroll-hint { display: block; font-size: 12px; margin: 0; }
  .chess-comparison-page .chess-matrix-scroll { margin-top: 12px; }
}
@media (max-width: 520px) {
  .chess-comparison-page .chess-walkthrough { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chess-walkthrough .resource-shot { width: min(240px, 100%); }
}

/* Longer tournament product names may wrap at their word boundary. */
.chess-matrix-tournaments thead th { white-space: normal; }
