/* SUBOX 스킨 게시판 (/board/{code}, skin=subox) — home.css · pages.css 위에 얹는다 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sb-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.sb-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sb-cats a {
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 800;
}
.sb-cats a.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.sb-search {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.sb-search .inp {
  height: 40px;
  width: 200px;
}
.sb-count {
  margin: 18px 0 12px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 700;
}
.sb-count b {
  color: var(--ink);
}
.sb-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
}
.sb-posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sb-sum {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.sb-pager a {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-weight: 800;
  font-size: 14px;
}
.sb-pager a.on {
  background: var(--sun);
}
.sb-pager svg {
  width: 16px;
  height: 16px;
}
.sb-write {
  text-align: right;
  margin-top: 16px;
}

/* 글 보기 */
.sb-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 820px;
  margin: 28px auto 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
}
.sb-crumbs svg {
  width: 14px;
  height: 14px;
}
.sb-crumbs a:hover {
  color: var(--ink);
}
.sb-post {
  max-width: 820px;
  margin: 12px auto 0;
  padding: clamp(22px, 4vw, 44px);
}
.sb-post-h {
  border-bottom: 2px dashed var(--hair);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.sb-cat {
  display: inline-block;
  background: var(--sun);
  color: #161513;
  border: 2px solid var(--line);
  border-radius: 99px;
  padding: 2px 12px;
  font-size: 12.5px;
  font-weight: 900;
}
.sb-post-h h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
  margin-top: 12px;
}
.sb-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 700;
}
.sb-prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  word-break: keep-all;
}
.sb-prose > * + * {
  margin-top: 14px;
}
.sb-prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin-top: 32px;
  padding-left: 12px;
  border-left: 5px solid var(--sun);
  line-height: 1.35;
}
.sb-prose h3 {
  font-size: 18px;
  margin-top: 24px;
}
.sb-prose ul,
.sb-prose ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.sb-prose li {
  background: var(--sun-soft);
  border-radius: 12px;
  padding: 10px 14px;
  color: #161513;
  line-height: 1.7;
}
:root[data-theme="dark"] .sb-prose li {
  background: rgba(255, 201, 40, 0.1);
  color: var(--ink);
}
.sb-prose b,
.sb-prose strong {
  font-weight: 800;
}
.sb-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid var(--line);
}
.sb-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sb-files {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 6px;
}
.sb-files a {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.sb-files svg {
  width: 16px;
  height: 16px;
}
.sb-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sb-try {
  margin-top: 30px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sb-try b {
  margin-right: auto;
  font-size: 14.5px;
}
.sb-manage {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
}
.sb-manage a,
.sb-manage button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sb-manage svg {
  width: 15px;
  height: 15px;
}
.sb-nb {
  max-width: 820px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sb-nb a {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-nb a:hover {
  background: var(--sun-soft);
}
.sb-nb small {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 800;
}
.sb-nb b {
  font-size: 14.5px;
  line-height: 1.45;
}
.sb-nb .sb-nb-next {
  text-align: right;
}
.sb-related {
  margin-top: 44px;
}
.sb-comments {
  max-width: 820px;
  margin: 10px auto 50px;
  background: var(--card);
  border-radius: 13px;
  border: 2px solid var(--ink);
}
.sb-comments h2 small {
  font-size: 15px;
  color: var(--ink-3);
}
.sb-cm-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 12px;
}
.sb-cm-form textarea {
  flex: 1;
  min-height: 64px;
  padding: 10px 12px;
  resize: vertical;
}
.sb-cm-login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  border: 2px dashed var(--hair);
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
}
.sb-cm-login svg {
  width: 16px;
  height: 16px;
}
.sb-cm-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.sb-cm-list li {
  border-top: 1px solid var(--hair);
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.65;
}
.sb-cm-list li.reply {
  margin-left: 24px;
}
.sb-cm-h small {
  color: var(--ink-3);
  margin-left: 4px;
}
.sb-cm-del {
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 900px) {
  .sb-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .sb-posts {
    grid-template-columns: 1fr;
  }
  .sb-search {
    margin-left: 0;
    width: 100%;
  }
  .sb-search .inp {
    flex: 1;
    width: auto;
  }
  .sb-nb {
    grid-template-columns: 1fr;
  }
  .sb-nb .sb-nb-next {
    text-align: left;
  }
  .sb-try b {
    width: 100%;
  }
}
/* 좋아요 · 스크랩 · 공유 */
.sb-acts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.sb-acts form {
  margin: 0;
}
.sb-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform 0.1s;
}
.sb-act:hover {
  transform: translateY(-1px);
}
.sb-act svg {
  width: 16px;
  height: 16px;
}
.sb-act.on {
  background: var(--sun);
  color: #161513;
}
.sb-act.on svg {
  fill: currentColor;
}
