:root {
  --bg: #14121f;
  --surface: #1f1c2e;
  --line: #3a3556;
  --text: #f4f1ea;
  --muted: #a39fb8;
  --accent: #ffd23f;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
a {
  color: var(--accent);
}
.home {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 800;
  text-decoration: none;
}
h1 {
  margin: 0 0 4px;
  font-size: 28px;
}
.meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}
h2 {
  margin: 32px 0 8px;
  font-size: 19px;
}
p,
li {
  color: #e2dfd8;
}
ul,
ol {
  padding-left: 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 14px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid var(--line);
}
th {
  background: var(--surface);
  white-space: nowrap;
}
.scroll {
  overflow-x: auto;
}
/* 인쇄(학교 제출용): 흰 바탕·검은 글자, 링크·버튼 숨김 */
@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --muted: #444;
    --line: #999;
    color-scheme: light;
  }
  p,
  li,
  td,
  th {
    color: #000 !important;
  }
  .home,
  .no-print {
    display: none;
  }
  th {
    background: #eee !important;
    color: #000 !important;
  }
  td,
  th {
    border-color: #999 !important;
  }
  main {
    padding: 0;
  }
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 52px;
  margin: 8px 0;
  border-radius: 12px;
  background: var(--surface);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #231c00;
  font-weight: 800;
  text-align: center;
  line-height: 26px;
}
.qa dt {
  margin-top: 16px;
  font-weight: 800;
}
.qa dd {
  margin: 4px 0 0;
  color: #e2dfd8;
}
.print-btn {
  font: inherit;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #231c00;
  font-weight: 800;
  cursor: pointer;
}
