:root {
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #616e7c;
  --accent: #2f5bea;
  --line: #e4e7eb;
  --soft: #f5f7fa;
  --warn-bg: #fff8e6;
  --warn-line: #f0d48a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
header.top a.logo { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
header.top nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
.hero { background: var(--soft); padding: 64px 0; text-align: center; }
.hero h1 { font-size: 32px; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0; }
.badge { display: inline-block; margin-top: 20px; padding: 6px 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; font-size: 14px; }
section { padding: 40px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: 22px; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
th, td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
th { background: var(--soft); }
td.num, th.num { text-align: right; white-space: nowrap; }

/* 문서 페이지 */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: 26px; margin-bottom: 4px; }
.doc h2 { font-size: 18px; margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 16px; margin-top: 20px; }
.doc p { margin: 8px 0; }
.doc ol, .doc ul { padding-left: 24px; }
.doc li { margin: 2px 0; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.doc .cl { padding-left: 1.2em; text-indent: -1.2em; }
.doc .sub { margin-top: 4px; }
.toc { background: var(--soft); border-radius: 8px; padding: 14px 18px; margin: 20px 0; font-size: 14px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.note { background: var(--soft); padding: 12px 16px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }

footer { background: var(--soft); padding: 32px 0; color: var(--muted); font-size: 13px; }
footer p { margin: 2px 0; }
.footer-links { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 14px; }
.copy { margin-top: 12px !important; }
@media (max-width: 600px) {
  header.top nav { display: none; }
  .hero h1 { font-size: 26px; }
  .toc ol { columns: 1; }
  table { display: block; overflow-x: auto; }
}
@media print {
  header.top, footer, .toc { display: none; }
}
