.contents {
  --wb-text: #111827;          /* 본문 진한 회색 */
  --wb-muted: #111827;         /* 설명/메타 회색 */
  --wb-border: #e5e7eb;        /* 진한 경계선 회색 */
  --wb-zebra: #f9fafb;      /* 지브라 줄 배경 */
  --wb-hover: #f9fafb;      /* hover 시 배경 */
  color: var(--wb-text);
  line-height: 1.7;
}

/* 테이블 기본 */
.contents .substance .listBox {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  table-layout: fixed;
}

/* 헤더 */
.contents .substance .listBox thead {
  background: #fff;
}
.contents .substance .listBox thead tr {
  border-bottom: 1px solid var(--wb-border);
}
.contents .substance .listBox .listTitle {
  padding: 12px 12px;
  font-weight: 800;
  color: var(--wb-text);
  white-space: nowrap;
}
.contents .substance .listBox thead tr td:last-child {
  border-right: 0;
}

/* 본문 행 */
.contents .substance .listBox tbody tr {
  border-bottom: 1px solid var(--wb-border);
}
.contents .substance .listBox tbody tr:nth-child(odd) {
  background: var(--wb-zebra);
}
.contents .substance .listBox tbody tr:hover {
  background: var(--wb-hover);
}

/* 셀 공통 */
.contents .substance .listBox .textList,
.contents .substance .listBox .textSmall {
  padding: 12px 12px;
  vertical-align: middle;
  color: var(--wb-text);
  word-break: break-word;
}

/* 번호/날짜/조회 중앙정렬 */
.contents .substance .listBox .textCenter { text-align: center; }

/* 최소 너비 유틸 */
.contents .substance .listBox .min60 { width: 60px; }
.contents .substance .listBox .min80 { width: 80px; }

/* 제목 셀: 한 줄 말줄임 + 링크 스타일 */
.contents .substance .listBox td.textList:first-child + td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contents .substance .listBox td.textList a {
  color: var(--wb-text);
  font-weight: 700;
  text-decoration: none;
}
.contents .substance .listBox td.textList a:hover {
  color: var(--wb-muted);
  text-decoration: underline;
}

/* 모바일 전용 정보(mobin) 기본 숨김 → 모바일에서만 보임 */
.contents .substance .mobin {
  display: none;
  color: var(--wb-muted);
  font-size: 13px;
  margin-top: 6px;
}

/* pagination */
.contents .substance .paging {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.contents .substance .paging p {
  margin: 0;
  font-size: 14px;
  color: var(--wb-text);
}
.contents .substance .paging p strong {
  display: inline-block;
  min-width: 32px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

/* 반응형: 720px 이하에서 작성자/날짜/조회 컬럼 숨김 + mobin 노출 */
@media (max-width: 720px) {
  .contents .substance .listBox .mobnone { display: none; }

  .contents .substance .listBox .min60 { width: 54px; }

  .contents .substance .listBox td.textList:first-child + td {
    white-space: normal;
  }

  .contents .substance .mobin {
    display: inline-block;
  }
}

/* 카드 래퍼 */
.contents .substance .viewBox {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  overflow: hidden;
}

/* 제목 영역 */
.contents .substance .subjectView {
  padding: 18px 16px 10px;
  border-bottom: 1px solid var(--wb-border);
}
.contents .substance .subjectView h1 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--wb-text);
}

/* 메타 정보 (작성자/조회수/작성일) */
.contents .substance .infoView {
  padding: 10px 16px 14px;
  color: rgba(17, 24, 39, .72); /* var(--wb-muted)에서 톤 다운 */
  font-size: 14px;
  text-align:right;
}
.contents .substance .infoView strong { color: var(--wb-text); }
.contents .substance .infoView time { white-space: nowrap; }

/* 본문 */
.contents .substance .contentBox {
  padding: 18px 16px;
  vertical-align: top;
  background: #fff;
}
.contents .substance .contentBox p {
  margin: 0 0 14px;
  color: var(--wb-text);
}
.contents .substance .contentBox h2,
.contents .substance .contentBox h3 {
  margin: 20px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--wb-text);
}
.contents .substance .contentBox a {
  color: var(--wb-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contents .substance .contentBox a:hover {
  background: var(--wb-hover);
}

/* 이전글 버튼 */
.contents .substance .prevBtn {
  float: left;
  margin: 0 0 12px 12px;
  padding: 6px 10px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: #fff;
  color: var(--wb-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.contents .substance .prevBtn:hover {
  background: var(--wb-hover);
}

/* 다음글 버튼 */
.contents .substance .nextBtn {
  float: right;
  margin: 0 0 12px 12px;
  padding: 6px 10px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: #fff;
  color: var(--wb-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.contents .substance .nextBtn:hover {
  background: var(--wb-hover);
}

/* 본문 내 미디어 기본값 */
.contents .substance .contentBox img,
.contents .substance .contentBox video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  display: block;
  margin: 10px 0;
}

/* 코드/인용문(필요 시) */
.contents .substance .contentBox pre,
.contents .substance .contentBox code {
  background: var(--wb-zebra);
  border: 1px solid var(--wb-border);
  border-radius: 8px;
}
.contents .substance .contentBox pre {
  padding: 12px;
  overflow:auto;
  margin: 10px 0 14px;
}
.contents .substance .contentBox code { padding: 2px 6px; }

/* 댓글 박스 */
.contents .substance .commBox {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  overflow: hidden;
}
.contents .substance .commBox .noReply {
  padding: 18px 16px;
  text-align: center;
  color: rgba(17, 24, 39, .72);
  font-size: 14px;
  background: #fff;
}

/* 유틸 */
.contents .substance .clear { clear: both; }

/* 반응형 */
@media (max-width: 720px) {
  .contents .substance .subjectView { padding: 16px 14px 8px; }
  .contents .substance .infoView { padding: 8px 14px 12px; font-size: 13px; }
  .contents .substance .contentBox { padding: 14px; }
  .contents .substance .contentBox article { max-width: none; }
  .contents .substance .nextBtn { font-size: 13px; padding: 5px 9px; }
}


.latest {
  width: 100%;
  margin: 30px 0px 20px 0px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.latest .gal {
  padding: 0;
}

.latest .listBox {
  width: 100%;
  border-collapse: collapse;
}

.latestHead {
  padding: 10px 12px;
  font-weight: bold;
  font-size: 1rem;
  color: var(--wb-text);
  background-color: var(--wb-zebra);
  border-bottom: 1px solid var(--wb-border);
}

.latestLink {
  text-align: right;
  padding: 10px 12px;
  color: var(--wb-text);
  background-color: var(--wb-zebra);
  border-bottom: 1px solid var(--wb-border);
}

.latestLink a {
  color: var(--wb-muted);
  text-decoration: none;
}

.latestLink a:hover {
  text-decoration: underline;
}

.latestList {
  padding: 10px 12px;
  border-bottom: 1px solid var(--wb-border);
  font-size: 0.95rem;
  color: var(--wb-text);
}

.latestList a {
  color: var(--wb-text);
  text-decoration: none;
}

.latestList a:hover {
  background-color: var(--wb-hover);
}

.textRight {
  text-align: right;
  color: var(--wb-muted);
}

.textSmall {
  font-size: 0.85rem;
  color: var(--wb-muted);
}

.latest .listBox tr:nth-child(even) td.latestList {
  background-color: var(--wb-zebra);
}

