/* Closing navigation scoped to the table games page. */
.page-chess .related-section {
  padding: 48px 0;
  background: #edf6fc;
  color: #123453;
}
.page-chess .related-heading { gap: 20px; margin-bottom: 24px; }
.page-chess .related-heading h2 { font-size: 28px; line-height: 1.4; }
.page-chess .related-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  color: #0864b8;
  white-space: nowrap;
}
.page-chess .related-heading > a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.page-chess .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.page-chess .related-card {
  min-width: 0;
  min-height: 100px;
  padding: 20px 0 0;
  gap: 20px;
  border: 0;
  border-top: 1px solid #b6ccde;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #123453;
  font-size: 19px;
  line-height: 1.5;
  transition: color 180ms ease;
}
.page-chess .related-art { width: 64px; height: 64px; border: 0; }
.page-chess .related-card > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #0864b8;
  transition: transform 180ms ease;
}
.page-chess .related-card:focus-visible,
.page-chess .related-heading > a:focus-visible {
  outline: 3px solid #0864b8;
  outline-offset: 5px;
}
.page-chess .site-footer {
  padding: 40px 0;
  background: #071e33;
}
.page-chess .site-footer > .container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  width: min(1240px, calc(100% - 96px));
  gap: 24px 32px;
  padding-bottom: 0;
}
.page-chess .footer-logo { width: 190px; min-height: 44px; }
.page-chess .site-footer p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #b9cede; }
.page-chess .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  width: auto;
  order: initial;
}
.page-chess .site-footer nav a {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #c5d8e8;
  font-size: 14px;
  line-height: 1.5;
}
.page-chess .site-footer nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.page-chess .site-footer .button {
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #8aafcd;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.page-chess .site-footer a:focus-visible { outline: 3px solid #b5e6ff; outline-offset: 5px; }
@media (hover: hover) {
  .page-chess .related-card:hover { color: #0864b8; box-shadow: none; }
  .page-chess .related-card:hover > svg { transform: translateX(4px); }
  .page-chess .related-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .page-chess .site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
  .page-chess .site-footer .button:hover { background: #153b5b; }
}
@media (max-width: 1100px) {
  .page-chess .site-footer > .container { grid-template-columns: 1fr auto; width: calc(100% - 64px); }
  .page-chess .site-footer nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .page-chess .related-grid { gap: 20px; }
  .page-chess .related-card { gap: 12px; font-size: 18px; }
}
@media (max-width: 780px) {
  .page-chess .related-section { padding: 32px 0; }
  .page-chess .related-heading { gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
  .page-chess .related-heading h2 { font-size: 24px; }
  .page-chess .related-grid { grid-template-columns: 1fr; gap: 0; }
  .page-chess .related-card { min-height: 88px; padding: 16px 0; gap: 16px; font-size: 18px; }
  .page-chess .related-card:last-child { border-bottom: 1px solid #b6ccde; }
  .page-chess .related-art { width: 54px; height: 54px; }
  .page-chess .site-footer { padding: 32px 0; }
  .page-chess .site-footer > .container { grid-template-columns: 1fr; width: calc(100% - 36px); gap: 24px; }
  .page-chess .footer-logo { width: 170px; }
  .page-chess .site-footer p { margin-top: 8px; }
  .page-chess .site-footer nav {
    grid-row: auto;
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
    width: 100%;
  }
  .page-chess .site-footer .button { width: 100%; justify-content: center; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-chess .related-card,
  .page-chess .related-card > svg,
  .page-chess .site-footer .button { transition: none; }
  .page-chess .related-card:hover > svg { transform: none; }
}

/* Match the earlier pages’ back-to-top navigation. */
.page-chess .chess-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #294255;
  padding-top: 12px;
}
.page-chess .chess-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #c1d4e4;
  font-size: 14px;
  line-height: 1.5;
}
@media (hover: hover) {
  .page-chess .chess-footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}
