/* Blog Visual Chess Board — static, non-interactive */

.blog-board-outer {
  margin: 28px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-board-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.blog-board-rank-labels {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  width: 18px;
  flex-shrink: 0;
}

.blog-board-rank-labels span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #888;
  line-height: 1;
}

.blog-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 280px;
  height: 280px;
  border: 2px solid #3a3a3a;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-board-sq {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  position: relative;
}

.blog-board-sq.light {
  background: #e8e8e8;
}

.blog-board-sq.dark {
  background: #2d5a2d;
}

.blog-board-sq.highlight {
  background: #f1d00a !important;
}

.blog-board-wp {
  color: #fff;
  text-shadow: -1px 0 #111, 0 1px #111, 1px 0 #111, 0 -1px #111;
}

.blog-board-bp {
  color: #1a1a1a;
}

.blog-board-sq-label {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 8px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #666;
  opacity: 0.65;
  line-height: 1;
}

.blog-board-file-labels {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 280px;
  margin-top: 2px;
}

.blog-board-file-labels span {
  text-align: center;
  font-size: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #888;
  padding: 2px 0;
}

.blog-board-caption {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  max-width: 300px;
}

/* Responsive — shrink on narrow screens */
@media (max-width: 380px) {
  .blog-board {
    width: 240px;
    height: 240px;
  }

  .blog-board-file-labels {
    width: 240px;
  }

  .blog-board-sq {
    font-size: 18px;
  }
}
