:root { --accent: #0f766e; --ink: #1f2328; --muted: #57606a; --line: #d0d7de; --soft: #f6f8fa; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
       font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.bar { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.back { color: var(--accent); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }
main { max-width: 860px; margin: 0 auto; padding: 28px 16px 40px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 16px; }
h2 { font-size: 1.08rem; margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
p { margin: 6px 0; }
.pre { color: var(--muted); }
.np { padding-left: 1.5em; text-indent: -1.5em; }
.num { display: inline-block; width: 1.5em; text-indent: 0; color: var(--accent); }
.sub { padding-left: 2.4em; text-indent: -1em; }
.note { font-size: 0.92rem; color: var(--muted); padding-left: 1.3em; text-indent: -1.3em; }
.box { border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 10px 14px; margin: 8px 0 8px 1.5em; }
.box .bi { padding-left: 1em; }
table.pt { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.9rem; line-height: 1.55; }
table.pt th, table.pt td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
table.pt th { background: var(--soft); white-space: nowrap; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; padding: 16px; text-align: center; }
@media (max-width: 640px) {
  table.pt, table.pt thead, table.pt tbody, table.pt tr, table.pt th, table.pt td { display: block; width: 100%; }
  table.pt thead { display: none; }
  table.pt tr { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; padding: 4px 0; }
  table.pt td { border: 0; padding: 4px 10px; }
  .box { margin-left: 0; }
}
@media print { .bar, .foot { display: none; } main { padding: 0; } }
