:root {
  color-scheme: light;
  --ink: #142039;
  --muted: #58657c;
  --line: #dfe6f0;
  --paper: #ffffff;
  --wash: #f3f7fc;
  --brand: #175ed1;
  --brand-dark: #0d3f97;
  --accent: #eaf2ff;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5ff 0, var(--wash) 20rem, var(--paper) 42rem);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}
a { color: var(--brand-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--brand); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }
.site-header {
  border-bottom: 1px solid rgba(20, 32, 57, .1);
  background: rgba(255, 255, 255, .88);
}
.header-inner, main, .site-footer {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}
.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}
nav { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  padding: .4rem .65rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: .55rem;
}
nav a[aria-current="page"], nav a:hover { color: var(--brand-dark); background: var(--accent); }
main { padding-block: 4.5rem 5rem; }
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--brand-dark);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 4vw, 1.75rem); }
h3 { margin: 1.5rem 0 .45rem; font-size: 1.06rem; }
.lead { max-width: 44rem; margin: 1.15rem 0 0; color: var(--muted); font-size: 1.08rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.toc, .notice, section {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(27, 53, 91, .055);
}
.toc h2 { font-size: 1.05rem; }
.toc ol { columns: 2; column-gap: 2rem; margin-bottom: 0; padding-left: 1.3rem; }
.toc li { break-inside: avoid; margin: .3rem 0; }
.notice { border-left: .3rem solid var(--brand); background: var(--accent); }
.notice strong { display: block; margin-bottom: .25rem; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .35rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--wash); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 3rem; min-height: 2.2rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.05rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  font-weight: 800;
}
.callout-link { display: inline-block; margin-top: .5rem; font-weight: 750; }
.site-footer { padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .25rem 0; }
code { padding: .1rem .35rem; border-radius: .3rem; background: var(--wash); font-size: .92em; }
@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .85rem; }
  nav { justify-content: flex-start; }
  main { padding-top: 3rem; }
  .toc ol { columns: 1; }
  .table-scroll { overflow-x: auto; }
  .data-table { min-width: 38rem; }
}
@media print {
  body { background: white; }
  .site-header, .toc, .skip-link { display: none; }
  main { padding: 0; width: 100%; }
  section, .notice { box-shadow: none; break-inside: avoid; }
}
