:root {
  --paper: #f7f3ec;
  --sheet: #fffdf9;
  --ink: #27231f;
  --navy: #253144;
  --muted: #746d67;
  --line: #d9d0c5;
  --terracotta: #ad543a;
  --gold: #9b8235;
  --serif: "Noto Serif KR", Georgia, serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
}
a { color: inherit; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 30; padding: 9px 13px; background: var(--navy); color: white; }
.skip-link:focus { top: 15px; }
.content-header { border-bottom: 1px solid var(--line); background: rgb(247 243 236 / 94%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 48px));
  min-height: 78px;
  margin: auto;
}
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--terracotta); border-radius: 50%; color: var(--terracotta); font-family: var(--serif); font-size: 21px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); }
.brand small { color: var(--muted); font-size: 9px; }
.content-nav { display: flex; gap: 25px; }
.content-nav a { font-size: 12px; text-decoration: none; }
.content-breadcrumb {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 24px;
  color: var(--muted);
  font-size: 11px;
}
.content-breadcrumb ol {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-breadcrumb li {
  min-width: 0;
  overflow-wrap: anywhere;
}
.content-breadcrumb li + li::before {
  margin-right: 6px;
  color: var(--line);
  content: "›";
}
.content-breadcrumb a { text-underline-offset: 3px; }
.content-breadcrumb a:focus-visible,
.article-trust a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.document-hero {
  width: min(900px, calc(100% - 48px));
  margin: auto;
  padding: 105px 0 75px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0; color: var(--gold); font-family: Georgia, serif; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.document-hero h1 { max-width: 780px; margin: 18px 0 0; color: var(--navy); font-family: var(--serif); font-size: clamp(40px, 6vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: 1.35; }
.document-hero > p:last-child { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: 17px; }
.content-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 680px);
  gap: 70px;
  width: min(940px, calc(100% - 48px));
  margin: auto;
  padding: 80px 0 120px;
}
.content-layout-wide {
  grid-template-columns: minmax(0, 1fr);
  width: min(900px, calc(100% - 48px));
}
.content-layout-wide .article-body { width: 100%; }
.toc { position: sticky; top: 30px; align-self: start; }
.toc strong { display: block; margin-bottom: 13px; color: var(--gold); font-family: Georgia, serif; font-size: 10px; letter-spacing: .13em; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 11px; text-decoration: none; }
.article-body section + section { margin-top: 55px; padding-top: 45px; border-top: 1px solid var(--line); }
.article-body h2 { margin: 0 0 18px; color: var(--navy); font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.45; }
.article-body h3 { margin: 28px 0 8px; color: var(--navy); font-family: var(--serif); font-size: 19px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 9px; }
.article-trust {
  margin-top: 55px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--muted);
  font-size: 12px;
}
.article-trust h2 {
  margin-bottom: 14px;
  font-size: 19px;
}
.article-trust dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}
.article-trust dt {
  color: var(--navy);
  font-weight: 700;
}
.article-trust dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.article-trust p { margin: 14px 0 0; }
.note, .checklist { margin-top: 28px; padding: 25px 28px; border: 1px solid var(--line); background: var(--sheet); }
.note strong, .checklist strong { color: var(--terracotta); font-family: var(--serif); }
.checklist ul { margin-bottom: 0; padding-left: 20px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.guide-card { min-height: 210px; padding: 27px; border: 1px solid var(--line); background: var(--sheet); text-decoration: none; }
.guide-card span { color: var(--gold); font-family: Georgia, serif; font-size: 10px; }
.guide-card h2 { margin: 18px 0 9px; color: var(--navy); font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.guide-card p { margin: 0; color: var(--muted); font-size: 12px; }
.guide-card-featured {
  grid-column: 1 / -1;
  min-height: auto;
  border-color: #c6ae8b;
  background: #f3eadc;
}
.guide-card-featured h2 { font-size: 25px; }
.guide-download {
  position: relative;
  padding: 64px 52px;
  overflow: hidden;
  border: 1px solid #d3c4ae;
  background: var(--sheet);
  box-shadow: 0 18px 54px rgb(72 58 46 / 10%);
  text-align: center;
}
.download-paper::before {
  position: absolute;
  inset: 14px;
  border: 1px solid #e2d5c2;
  pointer-events: none;
  content: "";
}
.download-paper > * {
  position: relative;
  z-index: 1;
}
.guide-download h2 { margin-top: 14px; }
.guide-download > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.guide-action-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 60px; }
.article-nav a { padding: 18px; border: 1px solid var(--line); background: var(--sheet); font-size: 12px; text-decoration: none; }
.article-nav a:last-child { text-align: right; }
.content-footer { padding: 42px max(24px, calc((100vw - 1080px) / 2)); border-top: 1px solid var(--line); background: #efe9df; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer-inner strong { font-family: var(--serif); }
.footer-inner p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.footer-links a { font-size: 10px; text-decoration: none; }
.copyright { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .header-inner { width: calc(100% - 32px); min-height: 66px; }
  .content-nav a:not(:last-child) { display: none; }
  .document-hero { width: calc(100% - 40px); padding: 75px 0 55px; }
  .content-breadcrumb { width: calc(100% - 40px); padding-top: 18px; }
  .document-hero h1 { font-size: 40px; }
  .document-hero > p:last-child { font-size: 15px; }
  .content-layout { grid-template-columns: 1fr; gap: 35px; width: calc(100% - 40px); padding: 55px 0 90px; }
  .toc { position: static; display: flex; gap: 8px; overflow-x: auto; }
  .toc strong { display: none; }
  .toc a { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); background: var(--sheet); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: auto; }
  .guide-download { padding: 54px 24px; }
  .article-trust { padding: 21px 20px; }
  .article-trust dl { grid-template-columns: 1fr; gap: 2px; }
  .article-trust dd + dt { margin-top: 8px; }
  .download-links { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
