:root {
  --yellow: #ffd400;
  --yellow-soft: #fff8d6;
  --yellow-line: #f1df8e;
  --ink: #1d1d1b;
  --muted: #5c5a52;
  --line: #ece6c8;
  --link: #6b4f00;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #fff; border-bottom: 4px solid var(--yellow); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); font-size: 1rem; font-weight: 900; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.site-header nav a:hover { background: var(--yellow-soft); }
.site-header nav a[aria-current=page] { background: var(--yellow); }

.hero { background: linear-gradient(180deg, var(--yellow-soft), #fff); padding: 36px 0 24px; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border-radius: 999px; background: var(--yellow); font-size: .85rem; font-weight: 700; }
.lead { font-size: 1.06rem; color: #33312b; }

h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.3; }
h2 { margin: 34px 0 12px; padding-left: 12px; border-left: 5px solid var(--yellow); font-size: 1.2rem; line-height: 1.4; }
h3 { margin: 18px 0 6px; font-size: 1.02rem; }
p, li { margin: 0 0 10px; }
ul, ol { margin: 0 0 12px; padding-left: 1.3em; }

.button { display: inline-block; padding: 10px 16px; border: 1px solid #e6c000; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; }
.button:hover { background: #ffdd33; }

.card { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card > :last-child, .card li:last-child { margin-bottom: 0; }
.note { background: var(--yellow-soft); border-color: var(--yellow-line); }
.toc { margin-top: 24px; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }

.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li { position: relative; counter-increment: step; margin-bottom: 10px; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); font-size: .9rem; font-weight: 800; line-height: 26px; text-align: center; }
.steps strong { display: block; margin-bottom: 2px; }

.table-wrap { margin: 14px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { padding: 10px 12px 0; text-align: left; font-weight: 700; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--yellow-soft); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; }

footer { margin-top: 44px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer p { margin-bottom: 6px; }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 26px 0 18px; }
  .steps li { padding-left: 46px; }
  .steps li::before { left: 11px; }
  .toc ol { columns: 1; }
  td:first-child { white-space: normal; }
}
