/* /docs 글 전용 스타일. 공통 모양은 prompts.css 와 사이트 기본 스타일을 그대로 쓴다. */

.docs-article h2 {
  scroll-margin-top: 84px;
}

.docs-article h3 {
  margin: 22px 0 6px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -.02em;
  word-break: keep-all;
}

.docs-article p {
  word-break: keep-all;
}

.docs-answer {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--lime);
  box-shadow: var(--shadow-hard-sm);
}

.docs-answer h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.docs-answer p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.75;
}

.docs-toc {
  margin: 22px 0 6px;
  padding: 14px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}

.docs-toc h2 {
  margin: 0 0 6px;
  font-size: 15px;
}

.docs-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 20px;
}

.docs-toc a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
}

.docs-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.docs-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  line-height: 1.75;
  word-break: keep-all;
}

.docs-callout {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--ink);
  border-left-width: 6px;
  border-radius: 12px;
  background: var(--paper);
}

.docs-callout strong {
  display: block;
  margin-bottom: 4px;
}

.docs-callout p {
  margin: 0;
  line-height: 1.75;
}

.docs-table caption {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.docs-table th,
.docs-table td {
  vertical-align: top;
}

.docs-checked {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.docs-card .prompt-card-body {
  padding: 20px;
}

/* 표: 열 너비를 고르게 나누고, 좁은 화면에서는 옆으로 밀어서 본다 */
.docs-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}

.docs-table th:first-child {
  width: 21%;
}

.docs-table th,
.docs-table td {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.docs-tools {
  min-width: 680px;
}

.docs-tools thead th:nth-child(1) { width: 17%; }
.docs-tools thead th:nth-child(2) { width: 45%; }
.docs-tools thead th:nth-child(3) { width: 14%; }
.docs-tools thead th:nth-child(4) { width: 10%; }
.docs-tools thead th:nth-child(5) { width: 14%; }

/* prompts.css 표는 코드용이라 둘째 칸을 줄바꿈 없이 두고 첫 칸에 고정폭 글꼴을 쓴다. 글 표에서는 되돌린다. */
.docs-table td:nth-child(2),
.docs-table tbody th,
.docs-table td {
  white-space: normal;
}

.docs-table tbody th {
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.docs-table tbody th a {
  font-family: inherit;
}
