/*
Theme Name: Zeroboard Classic
Theme URI: https://old.choonsiklee.com
Author: Local migration
Description: Classic Zeroboard-inspired theme for reviewing imported old site posts.
Version: 1.0.15
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: zeroboard-classic
*/

:root {
  --zbc-bg: #f7f7f7;
  --zbc-paper: #ffffff;
  --zbc-border: #d9d9d9;
  --zbc-border-soft: #eeeeee;
  --zbc-text: #4f5358;
  --zbc-muted: #8f949b;
  --zbc-link: #3f4650;
  --zbc-link-hover: #6f7782;
  --zbc-header: #f2f2f2;
  --zbc-rule: #cfcfcf;
  --zbc-body-font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --zbc-heading-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--zbc-bg);
}

body {
  margin: 0;
  color: var(--zbc-text);
  background: var(--zbc-bg);
  font-family: var(--zbc-body-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--zbc-link);
  text-decoration: none;
}

a:hover {
  color: var(--zbc-link-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
}

.site-wrap {
  width: min(940px, calc(100% - 24px));
  margin: 18px auto 28px;
  background: var(--zbc-paper);
  border: 1px solid var(--zbc-border);
}

.site-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--zbc-border);
  background: linear-gradient(#ffffff, #f7f7f7);
}

.site-title {
  margin: 0;
  color: #3f4650;
  font-family: var(--zbc-heading-font);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.site-title a {
  color: inherit;
}

.site-description {
  margin: 7px 0 0;
  color: var(--zbc-muted);
  font-size: 16px;
}

.board-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--zbc-border);
  background: #fbfbfb;
}

.board-nav a {
  display: block;
  padding: 8px 13px;
  border-right: 1px solid var(--zbc-border-soft);
  color: #777777;
  font-size: 16px;
  line-height: 1.2;
}

.board-nav a:hover,
.board-nav .current-cat a {
  background: #f0f0f0;
  color: #444444;
}

.site-main {
  padding: 20px 26px 26px;
}

.board-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--zbc-rule);
}

.board-titlebar h1 {
  margin: 0;
  color: #3f4650;
  font-family: var(--zbc-heading-font);
  font-size: 21px;
  font-weight: 600;
}

.board-count {
  color: var(--zbc-muted);
  font-size: 15px;
  white-space: nowrap;
}

.post-list {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--zbc-border-soft);
}

.post-list th,
.post-list td {
  padding: 7px 7px;
  border-bottom: 1px solid var(--zbc-border-soft);
  vertical-align: middle;
}

.post-list th {
  color: #7f858d;
  background: var(--zbc-header);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.post-list td {
  color: var(--zbc-text);
  font-size: 16px;
}

.post-list .col-no {
  width: 58px;
  color: #aaaaaa;
  text-align: center;
}

.post-list .col-title {
  width: auto;
}

.post-list .col-author {
  width: 110px;
  text-align: center;
}

.post-list .col-date {
  width: 92px;
  color: #888888;
  text-align: center;
}

.post-list .comment-count {
  color: #9a9a9a;
  font-size: 15px;
}

.post-list .category-label {
  color: #999999;
  font-size: 15px;
}

.post-list tr:hover td {
  background: #fcfcfc;
}

.post-list tr.is-current td {
  background: #eeeeee;
  color: #444444;
  font-weight: 700;
}

.recent-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.recent-board {
  border: 1px solid var(--zbc-border);
  background: #ffffff;
}

.recent-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--zbc-border);
  background: var(--zbc-header);
}

.recent-board-header h2 {
  margin: 0;
  color: #555555;
  font-family: var(--zbc-heading-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.recent-board-header h2 a {
  color: inherit;
}

.recent-board-more {
  color: #999999;
  font-size: 14px;
  white-space: nowrap;
}

.recent-post-list {
  border-top: 0;
}

.recent-post-list td {
  padding: 6px 8px;
}

.recent-post-list .col-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-post-list .col-date {
  width: 88px;
  font-size: 14px;
}

.single-board {
  border-top: 2px solid var(--zbc-rule);
}

.single-board-list {
  margin-top: 22px;
}

.board-titlebar-bottom {
  margin-bottom: 0;
  border-top: 2px solid var(--zbc-rule);
  border-bottom-width: 1px;
  padding-top: 10px;
}

.post-list-bottom {
  margin-top: 0;
}

.single-board-pagination {
  margin-top: 12px;
  padding-top: 10px;
}

.single-title {
  margin: 0;
  padding: 11px 10px;
  border-bottom: 1px solid var(--zbc-border-soft);
  background: var(--zbc-header);
  color: #3f4650;
  font-family: var(--zbc-heading-font);
  font-size: 22px;
  font-weight: 600;
}

.single-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 16px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--zbc-border-soft);
  color: #888888;
  font-size: 15px;
}

.entry-content {
  min-height: 140px;
  padding: 24px 12px 28px;
  color: var(--zbc-text);
  font-size: 17px;
  line-height: 1.75;
}

.entry-content p {
  margin: 0 0 1em;
}

.entry-content a {
  text-decoration: underline;
}

.entry-content figure {
  margin: 18px 0;
  text-align: center;
}

.entry-content figure img,
.entry-content > p > img {
  padding: 0;
  border: 0;
  background: transparent;
}

.entry-content figcaption {
  margin-top: 6px;
  color: #888888;
  font-size: 15px;
}

.guestbook-list {
  border-top: 2px solid var(--zbc-rule);
}

.guestbook-entry {
  margin: 0 0 16px;
  border: 1px solid var(--zbc-border);
  background: #ffffff;
}

.guestbook-entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--zbc-border-soft);
  background: var(--zbc-header);
}

.guestbook-entry-header-meta-only {
  justify-content: flex-end;
}

.guestbook-entry-title {
  margin: 0;
  color: #3f4650;
  font-size: 18px;
  font-weight: 500;
}

.guestbook-entry-title a {
  color: inherit;
}

.guestbook-entry-meta {
  color: #888888;
  font-size: 15px;
  white-space: nowrap;
}

.guestbook-entry-content {
  padding: 14px 12px 16px;
  color: var(--zbc-text);
  font-size: 17px;
  line-height: 1.75;
}

.guestbook-entry-content p {
  margin: 0 0 0.9em;
}

.legacy-attachments {
  margin: 20px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--zbc-border);
  background: #fafafa;
  text-align: left;
}

.legacy-attachments-title {
  margin: 0 0 7px;
  color: #666666;
  font-size: 15px;
  font-weight: 700;
}

.legacy-attachments ul {
  margin: 0;
  padding-left: 18px;
}

.legacy-attachments li {
  margin: 3px 0;
  color: #888888;
  font-size: 15px;
}

.legacy-videos {
  margin: 22px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--zbc-border);
  background: #fafafa;
}

.legacy-videos-title {
  margin: 0 0 9px;
  color: #666666;
  font-size: 15px;
  font-weight: 700;
}

.legacy-video {
  margin: 12px 0;
  text-align: left;
}

.legacy-video video {
  display: block;
  width: min(520px, 100%);
  height: auto;
  border: 1px solid var(--zbc-border);
  background: #111111;
}

.legacy-video figcaption {
  margin-top: 5px;
  color: #888888;
  font-size: 15px;
}

.legacy-video-embeds {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
}

.legacy-video-embed {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: var(--legacy-video-ratio, 16 / 9);
  overflow: hidden;
  background: #111111;
}

.legacy-video-embed::before {
  content: "";
  display: block;
  padding-top: var(--legacy-video-padding, 56.25%);
}

@supports (aspect-ratio: 16 / 9) {
  .legacy-video-embed::before {
    display: none;
  }
}

.legacy-video-embed iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111111;
}

.legacy-ruffle {
  margin: 22px 0 0;
  width: calc(100% + 24px);
  margin-right: -12px;
  margin-left: -12px;
  padding: 0;
  border: 1px solid var(--zbc-border);
  background: #fafafa;
}

.legacy-ruffle-title {
  display: none;
}

.legacy-flash {
  width: 100%;
  margin: 0;
  text-align: left;
}

.legacy-flash object,
.legacy-flash embed,
.legacy-flash ruffle-object,
.legacy-flash ruffle-embed,
.legacy-flash ruffle-player {
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none;
  aspect-ratio: 380 / 270;
  height: auto !important;
  min-height: 0;
  border: 1px solid var(--zbc-border);
  background: #111111;
}

.legacy-flash ruffle-object,
.legacy-flash ruffle-embed,
.legacy-flash ruffle-player {
  min-height: 0;
}

.legacy-flash figcaption {
  display: none;
}

.post-nav-links,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--zbc-border-soft);
}

.pagination .page-numbers,
.post-nav-links a {
  min-width: 26px;
  padding: 3px 8px;
  border: 1px solid var(--zbc-border);
  background: #ffffff;
  color: #777777;
  text-align: center;
  font-size: 15px;
}

.pagination .current,
.post-nav-links a:hover {
  background: #eeeeee;
  color: #444444;
}

.comment-area {
  margin-top: 22px;
  border-top: 2px solid var(--zbc-rule);
}

.comment-area h2 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--zbc-border-soft);
  background: var(--zbc-header);
  color: #666666;
  font-family: var(--zbc-heading-font);
  font-size: 17px;
  font-weight: 600;
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-item {
  padding: 10px;
  border-bottom: 1px solid var(--zbc-border-soft);
}

.comment-meta {
  margin-bottom: 5px;
  color: #888888;
  font-size: 15px;
}

.comment-author {
  color: #555555;
  font-weight: 700;
}

.comment-content {
  color: #666666;
  font-size: 17px;
  line-height: 1.75;
}

.comment-content p {
  margin: 0 0 0.8em;
}

.site-footer {
  padding: 12px 26px;
  border-top: 1px solid var(--zbc-border);
  color: var(--zbc-muted);
  background: #fafafa;
  font-size: 13px;
  text-align: center;
}

.empty-board {
  padding: 32px 10px;
  border-bottom: 1px solid var(--zbc-border-soft);
  color: #999999;
  text-align: center;
}

.empty-board-compact {
  padding: 15px 10px;
  border-bottom: 0;
  font-size: 14px;
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-wrap {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .site-header,
  .site-main,
  .site-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .board-nav a {
    padding: 9px 10px;
  }

  .post-list .col-no,
  .post-list .col-author {
    display: none;
  }

  .post-list .col-date {
    width: 72px;
  }

  .recent-board-grid {
    grid-template-columns: 1fr;
  }

  .recent-post-list .col-date {
    width: 78px;
  }

  .single-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
