/* jinjja.win 공통: 흰 바탕, IBM Plex Sans KR */
:root {
  --bg: #ffffff;
  --panel: #f6f6f4;
  --ink: #111111;
  --ink2: #3b3d42;
  --muted: #74777e;
  --line: #e9e9e6;
  --hong: #c8553d;
  --hwang: #e0b13a;
  --nok: #5b8a63;
  --cheong: #2f5d8a;
  --pink: #d9879a;
  --nam: #2b3a55;
  --todo-bg: #fff1b8;
  --todo-ink: #6b4e00;
  --sd: linear-gradient(90deg, var(--hong) 0 16.6%, var(--hwang) 0 33.3%, var(--nok) 0 50%, var(--cheong) 0 66.6%, var(--pink) 0 83.3%, var(--nam) 0);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--ff, "IBM Plex Sans KR"), "IBM Plex Sans KR", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 20px 72px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-size: 17px; letter-spacing: -0.02em; }
.brand span { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); }
.lang button { border: 0; background: none; color: var(--muted); font: 500 13px/1 "IBM Plex Sans KR", sans-serif; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
nav.pages { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; font-size: 14px; }
nav.pages a { color: var(--muted); text-decoration: none; }
nav.pages a:hover { color: var(--ink); }
nav.pages a[aria-current="page"] { color: var(--ink); font-weight: 700; }
/* 문서 */
h1 { margin: 40px 0 6px; font-size: clamp(30px, 5vw, 40px); line-height: 1.2; letter-spacing: -0.03em; }
.meta { margin: 0 0 24px; font: 500 12.5px/1.6 var(--mono); color: var(--muted); }
.lead { margin: 0 0 28px; padding: 18px 20px; border-radius: 14px; background: var(--panel); color: var(--ink2); }
h2 { margin: 40px 0 10px; font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; }
h2 .no { display: inline-block; min-width: 3.4em; font: 500 13px/1 var(--mono); color: var(--hong); vertical-align: 2px; }
p, li { color: var(--ink2); }
ul, ol { padding-left: 22px; }
li + li { margin-top: 5px; }
strong { color: var(--ink); }
.key { padding: 16px 18px; border-left: 3px solid var(--hong); background: var(--panel); border-radius: 0 12px 12px 0; }
.tbl { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.55; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: var(--panel); font-weight: 700; white-space: nowrap; }
/* 항목·값 두 칸 표는 가로 스크롤 없이 휴대폰 폭에 맞춘다 */
table:has(tbody th) { min-width: 0; }
table:has(tbody th) th { width: 34%; white-space: normal; overflow-wrap: normal; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 5px; border-radius: 4px; font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; margin-top: 10px; padding: 14px 16px 14px 54px; border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 13px/26px var(--mono); text-align: center; }
.btn { display: inline-block; padding: 13px 20px; border-radius: 12px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; text-decoration: none; }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }
/* 바닥 */
.foot { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
/* 언어 전환: 고르지 않은 언어는 숨긴다 */
html[data-l="ko"] [lang="en"].t, html[data-l="en"] [lang="ko"].t { display: none !important; }
