/* ─── 콘텐츠 파일 클래스 ─────────────────────── */

.content-body {
  border: 1px solid #e0e0e0;
  padding: 4rem 3rem 4rem 3rem;
  border-radius: 5px;
  margin-bottom: 4rem;
}

.content-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.content-category-icon {
  color: var(--orange);
  font-size: 12px;
}

.content-category-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-sub);
  letter-spacing: 0.5px;
}

.content-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin-bottom: 5rem;
  word-break: keep-all;
  text-align:center;
}

.content-title-2 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin-bottom: 1rem;
  word-break: keep-all;
  text-align:center;
}

.content-title-middle{
  font-size: clamp(1.4rem, 1.6vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin-bottom: 38px;
  word-break: keep-all;  
  text-align: center;
}

.content-sub-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.2px;
  margin: 50px 0 15px;
}
.color-cyan {
  color : var(--cyan);
}

.content-p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 18px;
  word-break: keep-all;
}

.content-p:last-child { margin-bottom: 0; }

.list-circle {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 2rem;
  margin-left: 15px;
  overflow: hidden;
}

.list-circle li {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 8px;
  word-break: keep-all;
}


.source-text {
  font-size: 15px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: 24px;
  text-align: right;
}

.author-p{
  font-size: 1.3rem;  
  text-align: right;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.table th, .table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size : 1.2rem;
}

.table th {
  background: var(--cyan);
  font-weight: 700;
  color: white;
}

/* 로딩 상태 */
.content-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.content-loading::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 0.8s linear infinite;
}

/* 원문자 */
.ul-numbered {
  list-style: none;
  padding: 0;
  counter-reset: num;
}

.ul-numbered li {
  counter-increment: num;
}

.ul-numbered li::before {
  content: counter(num) ". ";
  margin-right: 5px;
}

.ul-circle li::before { margin-right: 5px; }

.ul-circle li:nth-child(1)::before { content: "① "; }
.ul-circle li:nth-child(2)::before { content: "② "; }
.ul-circle li:nth-child(3)::before { content: "③ "; }
.ul-circle li:nth-child(4)::before { content: "④ "; }
.ul-circle li:nth-child(5)::before { content: "⑤ "; }
.ul-circle li:nth-child(6)::before { content: "⑥ "; }
.ul-circle li:nth-child(7)::before { content: "⑦ "; }
.ul-circle li:nth-child(8)::before { content: "⑧ "; }
.ul-circle li:nth-child(9)::before { content: "⑨ "; }

@media (max-width: 768px) {
  .content-title { font-size: 1.3rem; margin-bottom:2rem;}
  .content-title-2 { font-size: 1.3rem; margin-bottom:2rem;}  
  .content-body {
    border: 0px;
    padding: 0px;
  }
  .content-p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .list-circle li{
    font-size: 1rem;
  }
  .tab-btn {
    padding: 0px 10px;
    font-size: 1rem;
  }
  .table th, .table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size : 0.9rem;
  }
  .content-title-pre, .content-title-middle{
    font-size: 1.1rem;
  }
  .content-sub-title{
    font-size: 1.2rem;
  }
}
