:root {
  --bg: #f7f4f8; --surface: #ffffff; --ink: #1d1722; --muted: #5c5465; --line: #e3dbe7; --head: #f2ecf4;
  --accent: #b3471c; --accent-soft: #fbeae0; --link: #8f3b13;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d16; --surface: #1b1520; --ink: #eee8f1; --muted: #aa9fb3; --line: #342a3c; --head: #241c2b;
    --accent: #f0915a; --accent-soft: #2e1d1a; --link: #f4ab7c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.75 "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  word-break: keep-all; overflow-wrap: break-word;
}
a { color: var(--link); }
img { max-width: 100%; }
.top { background: linear-gradient(180deg, #140c1b 0%, #2b1535 58%, #5a2340 100%); color: #fff; border-bottom: 3px solid #e7813f; }
.top-inner { max-width: 900px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand b { display: block; font-size: 18px; line-height: 1.2; }
.brand small { display: block; font-size: 12px; line-height: 1.3; color: #e9cdbd; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 14px; }
.nav a { color: #f1e2e9; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: #f2c14e; }
.wrap { max-width: 900px; margin: 0 auto; padding: 28px 20px 56px; }
.wrap.doc { max-width: 800px; }
h1 { font-size: 28px; line-height: 1.3; margin: 4px 0 6px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.4; margin: 42px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.45; margin: 26px 0 8px; }
p, ul, ol { margin: 8px 0; }
ul, ol { padding-left: 22px; }
li { margin: 3px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.langs { font-size: 14px; margin: 0 0 6px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 18px; margin: 18px 0; }
.summary > b { display: block; }
.note { color: var(--muted); font-size: 14px; }
.en { color: var(--muted); font-size: 14.5px; border-left: 2px solid var(--line); padding-left: 12px; }
.tbl { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.55; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--head); font-weight: 600; }
th small { font-weight: 400; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.k { white-space: nowrap; }
table.num td, table.num th { white-space: nowrap; }
hr.sep { border: 0; border-top: 2px dashed var(--line); margin: 60px 0 26px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-inner { max-width: 900px; margin: 0 auto; padding: 16px 20px 30px; }
.foot a { color: inherit; }
.foot .biz { margin: 0 0 6px; line-height: 1.7; }
table.kv th { width: 34%; font-weight: 600; }
table.kv th small { display: block; }
table.kv tbody tr:last-child th { border-bottom: 0; }
.hero { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; }
.hero img { width: 104px; height: 104px; border-radius: 22px; box-shadow: 0 6px 18px rgba(20, 8, 24, .35); }
.hero h1 { margin: 0; }
.sub { margin: 2px 0 8px; color: var(--muted); }
.chip { display: inline-block; font-size: 13px; line-height: 1.5; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); }
.lead { font-size: 17px; max-width: 62ch; }
.lead.en { font-size: 15px; border-left: 0; padding-left: 0; }
.shot { margin: 24px 0 8px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.shot figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.card:hover { border-color: var(--accent); }
.card b { display: block; font-size: 16px; }
.card span { display: block; font-size: 13px; color: var(--muted); }
pre.lic { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font: 13px/1.6 ui-monospace, Consolas, "D2Coding", monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
@media (max-width: 600px) {
  h1 { font-size: 25px; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 2px 0; white-space: normal; text-align: left; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  table.stack td:first-child { font-size: 15px; font-weight: 700; padding-bottom: 4px; }
  table.stack td:first-child::before { display: none; }
  table.num th, table.num td { padding: 7px 6px; font-size: 13px; }
}
