.contents {
  color: #1f2937;
  line-height: 1.75;
}

/* =========================
   List / Table
========================= */
.contents .substance .listBox {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  table-layout: fixed;
}

.contents .substance .listBox thead {
  background: #f8fafc;
}

.contents .substance .listBox thead tr {
  border-bottom: 1px solid #e5e7eb;
}

.contents .substance .listBox .listTitle {
  padding: 13px 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #1f2937;
  white-space: nowrap;
}

.contents .substance .listBox tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color .12s ease;
}

.contents .substance .listBox tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.contents .substance .listBox tbody tr:hover {
  background: #eef6fb;
}

.contents .substance .listBox .textList,
.contents .substance .listBox .textSmall {
  padding: 12px 12px;
  vertical-align: middle;
  color: #1f2937;
  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: #0c5175;
  font-weight: 700;
  text-decoration: none;
}

.contents .substance .listBox td.textList a:hover {
  color: #0284c7;
  text-decoration: underline;
}

.contents .substance .mobin {
  display: none;
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}

/* =========================
   Paging
========================= */
.contents .substance .paging {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.contents .substance .paging p {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
}

.contents .substance .paging p strong {
  display: inline-block;
  min-width: 32px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  font-weight: 800;
}

.contents .substance .paging p strong:hover {
  border-color: #0284c7;
  color: #0284c7;
}

/* =========================
   View
========================= */
.contents .substance .viewBox {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.contents .substance .subjectView {
  padding: 20px 18px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.contents .substance .subjectView h1 {
  margin: 0;
  font-size: clamp(22px, 2.9vw, 28px);
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #1f2937;
  line-height: 1.35;
}

.contents .substance .infoView {
  padding: 10px 18px 14px;
  color: rgba(55, 65, 81, .75);
  font-size: 13.5px;
  text-align: right;
}

.contents .substance .infoView strong {
  color: #1f2937;
}

.contents .substance .contentBox {
  padding: 22px 18px;
  background: #ffffff;
}

.contents .substance .contentBox p {
  margin: 0 0 16px;
  color: #1f2937;
}

.contents .substance .contentBox h2,
.contents .substance .contentBox h3 {
  margin: 26px 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
}

.contents .substance .contentBox a {
  color: #0c5175;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contents .substance .contentBox a:hover {
  background: #eef6fb;
}

/* =========================
   Prev / Next
========================= */
.contents .substance .prevBtn,
.contents .substance .nextBtn {
  float: left;
  margin: 0 0 14px 12px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  color: #0c5175;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: .12s ease;
}

.contents .substance .nextBtn {
  float: right;
}

.contents .substance .prevBtn:hover,
.contents .substance .nextBtn:hover {
  background: #eef6fb;
  border-color: #0284c7;
}

/* =========================
   Media / Code
========================= */
.contents .substance .contentBox img,
.contents .substance .contentBox video {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #ffffff;
  display: block;
  margin: 16px 0;
}

.contents .substance .contentBox pre,
.contents .substance .contentBox code {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.contents .substance .contentBox pre {
  padding: 14px;
  overflow: auto;
  margin: 12px 0 16px;
}

.contents .substance .contentBox code {
  padding: 2px 6px;
}

/* =========================
   Latest
========================= */
.latest {
  width: 100%;
  margin: 30px 0 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.latest .gal,
.latest .gallist {
  padding: 0;
  margin: 0;
}

.latest .listBox {
  width: 100%;
  border-collapse: collapse;
}

/* 제목 */
.latest .latestHead {
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  color: #1f2937;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

/* 목록 행 */
.latest .latestList {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  background: #ffffff;
  transition: background-color .12s ease;
}

/* 링크 */
.latest .latestList a {
  color: #0c5175;
  text-decoration: none;
}

.latest .latestList:hover a {
  color: #0284c7;
  text-decoration: underline;
}

/* 날짜 */
.latest .textRight {
  text-align: right;
}

.latest .textSmall {
  font-size: 12px;
  color: #6b7280;
}
