/* 용어 페이지 보강 블록(scripts/apply-term-extras.js 가 넣는 요소 전용). style.css 는 건드리지 않는다. */

/* 표: 좁은 화면에서는 래퍼 안에서만 좌우로 스크롤한다(페이지 전체가 밀리지 않게). */
.te-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 12px 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}
.te-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.te-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.te-table th,
.te-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.te-table thead th {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.te-table tbody th {
  font-weight: 600;
  color: var(--text);
  min-width: 7em;
}
.te-table tbody tr:last-child th,
.te-table tbody tr:last-child td { border-bottom: 0; }

/* 소제목·보조 문구 */
.te-sub {
  margin: 22px 0 6px;
  font-size: 1.02rem;
  color: var(--text);
}
.te-note {
  margin: 4px 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* 실제 논문 인용 */
.te-quotes {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
}
.te-quotes li { margin: 0 0 14px; }
.te-quote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.te-cite {
  margin: 4px 0 0;
  padding-left: 14px;
  font-size: 0.84rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.te-cite a { color: var(--accent); }

/* 참고 문헌 */
.te-refs {
  margin: 8px 0 8px;
  padding-left: 1.4em;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}
.te-refs li { margin: 0 0 6px; overflow-wrap: anywhere; }

/* 본문 보조 요소 */
main h2 + .te-table-wrap { margin-top: 8px; }
main code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
