/* pidget.neolab.net — Pidget Editor 소개와 개인정보 처리방침. 편집기와 같은 색 체계 (web/src/index.css) */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e9edf3;
  --text: #232c3d;
  --muted: #5b6b85;
  --faint: #7d8da3;
  --brand: #0d66d0;
  --brand-soft: #eef6ff;
  --head: #141a26;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141d;
    --surface: #171c27;
    --line: #262d3b;
    --text: #d9dee7;
    --muted: #9aa6ba;
    --faint: #7d8da3;
    --brand: #6cb4ff;
    --brand-soft: #16243a;
    --head: #f1f4f8;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR',
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-underline-offset: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-weight: 700;
  color: var(--head);
  text-decoration: none;
  font-size: 17px;
}
nav a {
  margin-left: 16px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover {
  color: var(--brand);
}

main.wrap {
  padding-top: 40px;
  padding-bottom: 56px;
}
h1 {
  color: var(--head);
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 12px;
}
h2 {
  color: var(--head);
  font-size: 20px;
  margin: 40px 0 10px;
  padding-top: 8px;
}
h3 {
  color: var(--head);
  font-size: 16px;
  margin: 20px 0 6px;
}
p,
ul,
ol {
  margin: 0 0 12px;
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin: 4px 0;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin: 14px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-scroll {
  overflow-x: auto;
  margin: 12px 0 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td code {
  white-space: nowrap;
  font-size: 13px;
}

.toc {
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
  padding-left: 20px;
}
.toc li {
  break-inside: avoid;
}
@media (max-width: 560px) {
  .toc {
    columns: 1;
  }
  h1 {
    font-size: 25px;
  }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--faint);
  font-size: 13px;
}
footer.site p {
  margin: 2px 0;
}
