:root {
  --tc-bg: #f2f4f6;
  --tc-surface: #ffffff;
  --tc-surface-soft: #f9fafb;
  --tc-ink: #191f28;
  --tc-sub: #4e5968;
  --tc-muted: #8b95a1;
  --tc-blue: #3182f6;
  --tc-blue-soft: #e8f3ff;
  --tc-blue-ink: #1b64da;
  --tc-line: #e5e8eb;
  --tc-red: #f04452;
  --tc-red-soft: #ffeeee;
  --tc-header: rgba(242, 244, 246, 0.86);
  --tc-radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tc-bg: #101013;
    --tc-surface: #202027;
    --tc-surface-soft: #2a2a33;
    --tc-ink: #f0f0f2;
    --tc-sub: #b2b2bb;
    --tc-muted: #8b95a1;
    --tc-blue: #3485fa;
    --tc-blue-soft: #1d2a3f;
    --tc-blue-ink: #8cbcff;
    --tc-line: #33333d;
    --tc-red: #f66570;
    --tc-red-soft: #3a2226;
    --tc-header: rgba(16, 16, 19, 0.86);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--tc-bg);
  color: var(--tc-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tc-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tc-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

.doc-masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--tc-header);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}

.doc-masthead-interior {
  max-width: 720px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tc-ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.doc-wordmark:hover {
  text-decoration: none;
}

.doc-wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}

.doc-go-little {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--tc-blue-soft);
  color: var(--tc-blue-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.doc-go-little:hover {
  text-decoration: none;
}

.doc-core {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.doc-cover {
  padding: 16px 4px 20px;
}

.doc-preline {
  margin: 0 0 6px;
  color: var(--tc-blue);
  font-size: 14px;
  font-weight: 600;
}

.doc-cover h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc-cover p {
  margin: 10px 0 0;
  color: var(--tc-sub);
  font-size: 15px;
}

.doc-aux {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-aux span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--tc-surface);
  color: var(--tc-sub);
  font-size: 13px;
  font-weight: 500;
}

.doc-contents {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--tc-surface);
  border-radius: var(--tc-radius);
}

.doc-contents-heading {
  margin: 0 0 10px;
  color: var(--tc-muted);
  font-size: 13px;
  font-weight: 600;
}

.doc-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-contents a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tc-surface-soft);
  color: var(--tc-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.doc-contents a:hover {
  background: var(--tc-blue-soft);
  color: var(--tc-blue-ink);
  text-decoration: none;
}

.doc-tile {
  margin: 0 0 12px;
  padding: 24px 20px;
  background: var(--tc-surface);
  border-radius: var(--tc-radius);
}

.doc-tile h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-tile h2 .doc-digit {
  color: var(--tc-blue);
  margin-right: 6px;
}

.doc-tile h3 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.doc-tile p {
  margin: 0 0 10px;
  color: var(--tc-sub);
}

.doc-tile p:last-child,
.doc-tile ul:last-child,
.doc-tile ol:last-child {
  margin-bottom: 0;
}

.doc-tile strong {
  color: var(--tc-ink);
}

.doc-feed {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: pg;
}

.doc-feed > li {
  position: relative;
  padding: 0 0 0 28px;
  margin: 0 0 10px;
  color: var(--tc-sub);
  counter-increment: pg;
}

.doc-feed > li::before {
  content: counter(pg);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--tc-surface-soft);
  color: var(--tc-sub);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.doc-points {
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  color: var(--tc-sub);
}

.doc-points li {
  margin: 0 0 6px;
}

.doc-lanes {
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tc-line);
}

.doc-lanes li {
  display: grid;
  grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tc-line);
  font-size: 15px;
}

.doc-lanes li > b {
  color: var(--tc-muted);
  font-weight: 600;
}

.doc-lanes li > span {
  color: var(--tc-ink);
}

@media (max-width: 360px) {
  .doc-lanes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.doc-jot {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--tc-blue-soft);
  color: var(--tc-blue-ink);
  font-size: 15px;
}

.doc-jot.now-warn {
  background: var(--tc-red-soft);
  color: var(--tc-red);
}

.doc-jot strong {
  color: inherit;
}

.doc-rungs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-rung {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 12px;
  padding: 22px 20px;
  background: var(--tc-surface);
  border-radius: var(--tc-radius);
}

.doc-rung-zero {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--tc-blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-rung h2 {
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-rung p {
  margin: 0 0 8px;
  color: var(--tc-sub);
  font-size: 15px;
}

.doc-rung p:last-child,
.doc-rung ul:last-child {
  margin-bottom: 0;
}

.doc-rung .doc-points {
  font-size: 15px;
}

.doc-marker {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--tc-red-soft);
  color: var(--tc-red);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

.doc-trail {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tc-surface-soft);
  color: var(--tc-ink);
  font-weight: 600;
}

.doc-qna details {
  border-top: 1px solid var(--tc-line);
}

.doc-qna details:first-of-type {
  border-top: 0;
}

.doc-qna summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  position: relative;
  font-weight: 600;
  color: var(--tc-ink);
}

.doc-qna summary::-webkit-details-marker {
  display: none;
}

.doc-qna summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--tc-muted);
  border-bottom: 2px solid var(--tc-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.doc-qna details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.doc-qna details p {
  margin: 0 0 16px;
}

.doc-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin: 20px 0 8px;
  border-radius: 16px;
  background: var(--tc-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.doc-go:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

.doc-pagefoot {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  color: var(--tc-muted);
  font-size: 13px;
}

.doc-pagefoot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.doc-pagefoot a {
  color: var(--tc-sub);
  font-weight: 500;
}

.doc-pagefoot a[aria-current="page"] {
  color: var(--tc-ink);
  font-weight: 700;
}

.doc-pagefoot p {
  margin: 0 0 4px;
}

@media (min-width: 640px) {
  .doc-core {
    padding-top: 32px;
  }

  .doc-cover h1 {
    font-size: 34px;
  }

  .doc-tile,
  .doc-rung {
    padding: 28px;
  }
}
