:root {
  --yellow: #FFC746;
  --yellow-deep: #F2B324;
  --yellow-soft: #FFF1C9;
  --green: #35D27D;
  --ink: #14110D;
  --ink-2: #3B362E;
  --ink-3: #6C6457;
  --bg: #F7F7F7;
  --bg-card: #FFFFFF;
  --border: #ECE7DC;
  --shadow-sm: 0 1px 2px rgba(20, 17, 13, 0.06), 0 2px 8px rgba(20, 17, 13, 0.04);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 960px;
  --maxw-nav: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(20, 17, 13, 0.3);
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top .15s ease;
}

.skip:focus { top: 16px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 247, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner,
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--maxw-nav);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.brand-wordmark {
  height: 22px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 64px 0 34px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(820px 380px at 50% 0%, rgba(255, 199, 70, 0.28), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 199, 70, 0.18);
  border: 1px solid rgba(242, 179, 36, 0.35);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--yellow-deep);
}

h1 {
  margin: 22px 0 12px;
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-3);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.meta span,
.switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 34px 0 80px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink-3);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover { color: var(--ink); }

.doc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 34px;
}

.summary-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg);
}

.summary-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.summary-item span {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
}

section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

p { margin: 0 0 14px; }

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li + li { margin-top: 6px; }

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--yellow-soft);
  border: 1px solid rgba(242, 179, 36, 0.35);
  color: var(--ink-2);
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: var(--bg);
  color: var(--ink-2);
  font-weight: 800;
}

tr:last-child td { border-bottom: 0; }

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.switcher a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.64);
  padding: 32px 0 56px;
  font-size: 14px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover { color: #fff; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .summary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-inner,
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 12px;
    line-height: 1.4;
  }

  .hero { padding-top: 42px; }
  .doc { border-radius: 16px; }
}
