/* 코드한컷 업로더 — 정적 사이트 공통 스타일. 외부 글꼴·스크립트·이미지 없음. */
:root {
  --ink: #17212b;
  --paper: #f4f6f8;
  --sheet: #ffffff;
  --muted: #56626e;
  --rule: #d7dde3;
  --link: #1d5bb8;
  --slate: #e5b100;
  --code-bg: #eef1f4;
  --focus: #e5b100;
  --measure: 70ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ebf0;
    --paper: #12171d;
    --sheet: #1a2129;
    --muted: #a3afba;
    --rule: #2e3843;
    --link: #8ab6ff;
    --code-bg: #232c36;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, .skip:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* 머리: 슬레이트(클래퍼보드) 줄무늬 띠 하나만 장식으로 쓴다 */
.masthead { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.masthead::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--slate) 14px 28px);
}
.masthead-inner {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark span { font-weight: 500; color: var(--muted); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; display: inline-block; }
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--slate); }

main { max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 2rem 1rem 3rem; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.3; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 2.5rem 0 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p, li { max-width: var(--measure); }
.lede { font-size: 1.15rem; color: var(--ink); margin: 0 0 1rem; }
.meta { color: var(--muted); font-size: 0.92rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 0.3rem; }

/* 권한 표 — 좁은 화면에서는 행을 블록으로 쌓는다 */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; background: var(--sheet); }
td code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 0.75rem; background: var(--sheet); }
  td { border-bottom: none; padding: 0.45rem 0.8rem; }
  td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
}

.note { border-left: 4px solid var(--slate); background: var(--sheet); padding: 0.75rem 1rem; margin: 1.25rem 0; max-width: var(--measure); }
.note p { margin: 0.25rem 0; }
.placeholder { background: #fff2b3; color: #3d3200; padding: 0 0.3em; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .placeholder { background: #5a4a00; color: #fff2b3; } }
section[lang="en"] { margin-top: 3rem; }

footer { border-top: 1px solid var(--rule); background: var(--sheet); }
.footer-inner { max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 1.25rem 1rem 2rem; color: var(--muted); font-size: 0.9rem; }
.footer-inner ul { list-style: none; padding: 0; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.footer-inner p { margin: 0.25rem 0; }

@media print {
  .masthead::before, nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
