@font-face {
  font-family: "Pretendard";
  src: url("../customer-docs/assets/fonts/Pretendard-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../customer-docs/assets/fonts/Pretendard-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../customer-docs/assets/fonts/Pretendard-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black-100: #171717;
  --black-80: #636366;
  --black-60: #6f6f74;
  --black-40: #c7c7cc;
  --black-20: #e5e5ea;
  --black-10: #f2f2f7;
  --black-5: #f9f9fb;
  --primary: #ff3770;
  --primary-dark: #c91850;
  --primary-soft: #fff1f5;
  /* Nelper 마케팅 CTA와 같은 코럴. 상담 유도에만 쓰고 문서 강조에는 --primary 를 쓴다. */
  --coral: #f3514b;
  --coral-dark: #d93f3a;
  --coral-soft: #fff4f3;
  --blue-soft: #eef5ff;
  --blue: #2869c7;
  --green-soft: #edf8f3;
  --green: #147650;

  /* 모션. 값을 흩어놓지 않고 여기서만 정한다. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 300ms;
}

/* 등장 모션은 transform·opacity 만 쓴다. 레이아웃을 밀지 않아야 앱 iframe 안에서
   본문 위치가 흔들리지 않는다. 지연은 짧게 유지해 읽기를 늦추지 않는다. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
}

@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black-100);
  background: #fff;
  font-family: "Pretendard", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 7px;
  color: #fff;
  background: var(--black-100);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--black-20);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img {
  width: 91px;
  height: auto;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid var(--black-20);
  color: var(--black-60);
  font-size: 13px;
}

.site-header nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 26px;
  /* 브랜드는 왼쪽에 두고 nav + 상담 CTA를 오른쪽에 붙인다 */
  margin-left: auto;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--black-80);
  font-size: 13px;
  font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--black-100);
}

.site-header nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
}

/* 마케팅 퍼널 연결 — 상담 CTA와 제품 소개 밴드. 코럴은 여기서만 쓴다. */
.cta-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--coral);
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cta-button:hover {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.cta-button.ghost {
  border-color: var(--black-20);
  color: var(--black-100);
  background: #fff;
}

.cta-button.ghost:hover {
  border-color: var(--black-40);
  background: var(--black-5);
}

.site-header .cta-button {
  margin-left: 20px;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  padding: 20px 24px;
  border: 1px solid rgb(243 81 75 / 20%);
  border-radius: 12px;
  background: var(--coral-soft);
}

.intro-band .eyebrow {
  margin: 0 0 6px;
  color: var(--coral-dark);
}

.intro-band h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.intro-actions {
  display: flex;
  flex: none;
  gap: 10px;
}

/* 문서 하단 상담 넛지. 본문을 방해하지 않게 배경만 얇게 깐다. */
.doc-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--black-20);
  border-radius: 12px;
  background: var(--black-5);
}

.doc-cta-band p {
  margin: 0;
  color: var(--black-80);
  font-size: 13px;
}

.doc-cta-band strong {
  color: var(--black-100);
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--black-20);
}

.breadcrumb,
.breadcrumbs {
  color: var(--black-60);
  font-size: 12px;
  font-weight: 500;
}

.breadcrumb {
  margin: 0 0 6px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 30px;
}

.breadcrumbs a:hover {
  color: var(--black-100);
}

.page-heading h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.page-heading p:not(.breadcrumb) {
  margin: 6px 0 0;
  color: var(--black-60);
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-badge {
  min-height: 22px;
  padding: 0 7px;
}

.status-badge.new {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.status-badge.improved {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-badge.fixed {
  color: var(--green);
  background: var(--green-soft);
}

.latest-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--black-20);
  border-radius: 12px;
  background: var(--black-5);
}

.latest-copy {
  display: flex;
  align-items: start;
  gap: 16px;
}

.version-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black-60);
  font-size: 11px;
}

code {
  padding: 3px 6px;
  border: 1px solid var(--black-20);
  border-radius: 5px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.latest-panel h2 {
  margin: 7px 0 4px;
  font-size: 16px;
  line-height: 1.45;
}

.latest-panel p {
  margin: 0;
  color: var(--black-80);
  font-size: 13px;
}

.text-link {
  flex: none;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section {
  padding: 40px 0 8px;
}

.home-section + .home-section {
  padding-top: 48px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--black-60);
  font-size: 12px;
}

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

.document-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--black-20);
  border-radius: 12px;
  background: #fff;
}

.document-card:hover {
  border-color: var(--black-40);
  background: var(--black-5);
}

.document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
}

.document-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.document-card p {
  margin: 0;
  color: var(--black-60);
  font-size: 12px;
  line-height: 1.55;
}

.arrow,
.topic-arrow {
  color: var(--black-40);
  font-size: 18px;
}

.document-card:hover .arrow,
.topic-card:hover .topic-arrow {
  color: var(--primary);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--black-20);
  border-radius: 12px;
}

.feature-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-right: 1px solid var(--black-20);
  border-bottom: 1px solid var(--black-20);
  font-size: 13px;
  font-weight: 500;
}

.feature-list a:nth-child(3n) {
  border-right: 0;
}

.feature-list a:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature-list a:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.feature-list span {
  color: var(--black-60);
  font-size: 10px;
  font-weight: 500;
}

.download-list {
  overflow: hidden;
  border: 1px solid var(--black-20);
  border-radius: 12px;
}

.download-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--black-20);
}

.download-list > div:last-child {
  border-bottom: 0;
}

.download-list strong {
  font-size: 13px;
}

.download-list span {
  display: flex;
  gap: 8px;
}

.download-list a {
  padding: 4px 8px;
  border: 1px solid var(--black-20);
  border-radius: 6px;
  color: var(--black-80);
  font-size: 11px;
  font-weight: 600;
}

.download-list a:hover {
  color: var(--primary-dark);
  border-color: var(--black-40);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  min-height: 84px;
  margin: 56px auto 0;
  border-top: 1px solid var(--black-20);
  color: var(--black-60);
  font-size: 11px;
}

/* Standalone web documentation */
.docs-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.docs-sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 28px 18px 44px;
  border-right: 1px solid var(--black-20);
  background: var(--black-5);
}

.doc-version {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--black-80);
  white-space: nowrap;
}

.doc-version > span {
  flex: none;
  font-size: 11px;
  font-weight: 600;
}

.app-select {
  position: relative;
  width: 220px;
  max-width: 54vw;
  min-width: 0;
}

.app-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--black-20);
  border-radius: 8px;
  color: var(--black-100);
  background: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease);
}

.app-select-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-select-trigger svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--black-40);
}

.app-select-trigger:focus-visible {
  border-color: var(--primary);
  outline: 0;
}

.app-select-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--black-20);
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 10%),
    0 4px 6px -4px rgb(0 0 0 / 10%);
  list-style: none;
  transform-origin: top;
}

.app-select-list[hidden] {
  display: none;
}

.app-select-list li[aria-selected="true"] button {
  background: var(--black-5);
}

.app-select-list button {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--black-80);
  background: transparent;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.app-select-list button:hover,
.app-select-list button:focus-visible {
  outline: 0;
  background: #fafafa;
}

.docs-sidebar > .doc-version {
  gap: 4px;
  height: 36px;
  margin-bottom: 12px;
  padding: 2px 2px 2px 10px;
  border: 1px solid var(--black-20);
  border-radius: 8px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.docs-sidebar > .doc-version .app-select {
  flex: 1;
  width: auto;
  max-width: none;
}

.docs-sidebar > .doc-version .app-select-trigger {
  height: 26px;
  padding: 0 8px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.docs-sidebar > .doc-version .app-select-trigger:hover,
.docs-sidebar > .doc-version .app-select-trigger[aria-expanded="true"] {
  background: var(--black-5);
}

.docs-search-open,
.docs-search-hero {
  border: 1px solid var(--black-20);
  color: var(--black-80);
  background: #fff;
  cursor: pointer;
}

.docs-search-open {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin-bottom: 20px;
  padding: 0 10px;
  border-radius: 9px;
  text-align: left;
}

.docs-search-open > span {
  margin-right: 8px;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1;
}

.docs-search-open strong {
  flex: 1;
  color: var(--black-100);
  font-size: 12px;
}

.docs-search-open kbd,
.docs-search-hero kbd,
.docs-search-field kbd {
  padding: 2px 6px;
  border: 1px solid var(--black-20);
  border-radius: 5px;
  color: var(--black-60);
  background: var(--black-5);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
}

.docs-search-open:hover,
.docs-search-hero:hover {
  border-color: var(--black-40);
  box-shadow: 0 5px 18px rgb(15 23 42 / 5%);
}

.docs-sidebar-title {
  display: block;
  margin: 0 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.docs-sidebar nav {
  display: grid;
  gap: 2px;
}

.docs-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--black-80);
  font-size: 13px;
  line-height: 1.4;
}

.docs-sidebar nav a span {
  flex: none;
  color: var(--black-60);
  font-size: 9px;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a[aria-current="page"] {
  color: var(--black-100);
  background: #fff;
}

.docs-sidebar nav a[aria-current="page"] {
  box-shadow: inset 2px 0 var(--primary);
  font-weight: 700;
}

.topic-picker {
  display: none;
}

.docs-main {
  justify-self: center;
  width: min(100%, 1180px);
  min-width: 0;
  padding: 40px 64px 88px;
}

.docs-landing {
  width: min(100%, 1160px);
}

.docs-heading {
  max-width: 720px;
  padding: 18px 0 32px;
  border-bottom: 1px solid var(--black-20);
}

.docs-search-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, 560px);
  min-height: 58px;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: left;
}

.docs-search-hero > span:first-child {
  color: var(--primary-dark);
  font-size: 24px;
  line-height: 1;
}

.docs-search-hero > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.docs-search-hero strong {
  color: var(--black-100);
  font-size: 13px;
}

.docs-search-hero small {
  color: var(--black-60);
  font-size: 11px;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.docs-heading h1,
.topic-heading h1 {
  margin: 8px 0 10px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.docs-heading h1 {
  font-size: 30px;
}

.docs-heading p,
.topic-heading p {
  margin: 0;
  color: var(--black-80);
  line-height: 1.75;
}

.docs-heading p {
  font-size: 15px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.topic-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 132px;
  padding: 19px;
  border: 1px solid var(--black-20);
  border-radius: 11px;
  background: #fff;
}

.topic-card:hover {
  border-color: var(--black-40);
  background: var(--black-5);
}

.topic-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 700;
}

.topic-card h2 {
  margin: 3px 0 6px;
  font-size: 16px;
  line-height: 1.4;
}

.topic-card p {
  margin: 0;
  color: var(--black-60);
  font-size: 13px;
  line-height: 1.55;
}

.docs-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 210px;
  gap: 52px;
  align-items: start;
}

.docs-article {
  min-width: 0;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
  color: var(--black-60);
  font-size: 11px;
  font-weight: 600;
}

.topic-heading {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--black-20);
}

.topic-heading h1 {
  font-size: clamp(27px, 3vw, 34px);
}

.topic-heading p {
  max-width: 720px;
  font-size: 15px;
}

.topic-body {
  padding-top: 6px;
}

.topic-body h2,
.topic-body h3,
.topic-body h4 {
  color: var(--black-100);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.topic-body h2 {
  margin: 42px 0 13px;
  padding-top: 2px;
  font-size: 20px;
}

.topic-body h3 {
  margin: 28px 0 10px;
  font-size: 16px;
}

.topic-body h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.topic-body p,
.topic-body li,
.topic-body td,
.topic-body th,
.topic-body dd,
.topic-body dt {
  color: var(--black-80);
  font-size: 15px;
  line-height: 1.72;
}

.topic-body p {
  margin: 9px 0;
}

.topic-body .lead {
  margin: 28px 0 8px;
  color: var(--black-80);
  font-size: 15px;
  line-height: 1.75;
}

.topic-body .small {
  font-size: 12px;
}

.topic-body .muted {
  color: var(--black-60);
}

.topic-body ul,
.topic-body ol {
  margin: 12px 0;
  padding-left: 22px;
}

.topic-body li + li {
  margin-top: 6px;
}

.topic-body a {
  color: var(--primary-dark);
  font-weight: 500;
}

.topic-body .cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.topic-body .cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-body .card {
  padding: 16px;
  border: 1px solid var(--black-20);
  border-radius: 10px;
  background: var(--black-5);
}

.topic-body .card-number {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 700;
}

.topic-body .card h3,
.topic-body .card h4 {
  margin-top: 0;
}

.topic-body .card p {
  margin-bottom: 0;
  font-size: 12px;
}

.topic-body .figure,
.topic-body .figure-grid {
  margin: 18px 0 26px;
}

.topic-body .figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-body figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--black-20);
  border-radius: 12px;
  background: var(--black-5);
}

.topic-body figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  cursor: zoom-in;
}

.image-lightbox {
  max-width: min(1280px, 94vw);
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 94vh;
  border-radius: 12px;
  background: #fff;
  cursor: zoom-out;
  object-fit: contain;
}

.image-lightbox::backdrop {
  background: rgb(0 0 0 / 72%);
}

.topic-body figcaption {
  padding: 9px 12px;
  border-top: 1px solid var(--black-20);
  color: var(--black-60);
  font-size: 11px;
  line-height: 1.5;
}

.topic-body .callout,
.topic-body .key-point {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--black-20);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  color: var(--black-80);
  background: var(--black-5);
  font-size: 13px;
}

.topic-body .callout.warning {
  border-left-color: #e2a300;
}

.topic-body .callout-title {
  display: block;
  margin-bottom: 4px;
  color: var(--black-100);
  font-weight: 700;
}

.topic-body .table-scroll {
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--black-20);
  border-radius: 10px;
}

.topic-body table {
  width: 100%;
  border-collapse: collapse;
}

.topic-body th,
.topic-body td {
  min-width: 108px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--black-20);
  text-align: left;
  vertical-align: top;
}

.topic-body th {
  color: var(--black-80);
  background: var(--black-5);
  font-weight: 700;
}

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

.topic-body .check {
  color: var(--green);
}

.topic-body .cross {
  color: var(--black-60);
}

.topic-body .tag {
  display: inline-flex;
  margin: 2px;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--black-80);
  background: var(--black-10);
  font-size: 10px;
  font-weight: 700;
}

.topic-body .tag.coral {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.topic-body .tag.green {
  color: var(--green);
  background: var(--green-soft);
}

.topic-body .faq {
  margin: 14px 0;
}

.topic-body .faq dt {
  margin-top: 12px;
  padding: 12px 14px 0;
  border: 1px solid var(--black-20);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--black-100);
  background: var(--black-5);
  font-weight: 700;
}

.topic-body .faq dd {
  margin: 0;
  padding: 6px 14px 12px;
  border: 1px solid var(--black-20);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--black-5);
}

.topic-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--black-20);
}

.topic-pagination a {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--black-20);
  border-radius: 9px;
}

.topic-pagination a:hover {
  border-color: var(--black-40);
  background: var(--black-5);
}

.topic-pagination span {
  color: var(--black-60);
  font-size: 10px;
}

.topic-pagination strong {
  font-size: 12px;
  font-weight: 600;
}

.topic-pagination .next {
  text-align: right;
}

.article-toc {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--black-20);
}

.article-toc[hidden] {
  display: none;
}

.article-toc strong {
  margin-bottom: 8px;
  color: var(--black-100);
  font-size: 11px;
}

.article-toc a {
  padding: 4px 0;
  color: var(--black-60);
  font-size: 11px;
  line-height: 1.45;
}

.article-toc a[data-level="3"] {
  padding-left: 10px;
}

.article-toc a:hover,
.article-toc a[aria-current="true"] {
  color: var(--primary-dark);
}

.docs-search-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: min(9vh, 72px) 18px 24px;
}

.docs-search-layer[hidden] {
  display: none;
}

.docs-search-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(15 23 42 / 42%);
  backdrop-filter: blur(3px);
  cursor: default;
}

.docs-search-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(760px, 82vh);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(15 23 42 / 22%);
}

.docs-search-dialog > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
}

.docs-search-dialog h2 {
  margin: 3px 0 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.docs-search-dialog > header button {
  padding: 4px 0;
  border: 0;
  color: var(--black-60);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.docs-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 24px;
  padding: 0 13px;
  border: 1px solid var(--black-40);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.docs-search-field > span {
  color: var(--primary-dark);
  font-size: 22px;
}

.docs-search-field input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  color: var(--black-100);
  background: transparent;
  font-size: 14px;
}

.docs-search-field input::placeholder {
  color: var(--black-60);
}

.docs-search-status {
  margin: 17px 24px 8px;
  color: var(--black-60);
  font-size: 11px;
  font-weight: 600;
}

.docs-search-results {
  min-height: 180px;
  overflow-y: auto;
  padding: 0 12px 16px;
}

.docs-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
  background: var(--black-5);
}

.docs-search-result > span:first-child {
  display: grid;
  gap: 2px;
}

.docs-search-result strong {
  font-size: 14px;
}

.docs-search-result small {
  overflow: hidden;
  color: var(--black-60);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-result > span:last-child {
  align-self: start;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 9px;
  font-weight: 700;
}

.docs-search-empty {
  padding: 36px 20px;
  color: var(--black-60);
  text-align: center;
  font-size: 13px;
}

html.is-searching,
html.is-searching body {
  overflow: hidden;
}

/* Versioned release center */
.release-center {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 140px);
  margin: 0 auto;
}

.release-center-heading {
  position: relative;
  z-index: 2;
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--black-20);
}

.release-center-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.release-center-heading > p:last-of-type {
  margin: 6px 0 0;
  color: var(--black-60);
  font-size: 13px;
}

.release-picker {
  display: none;
}

.release-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 48px;
  padding-top: 32px;
}

.release-layout.single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.release-layout.single .release-detail {
  width: 100%;
  max-width: 920px;
}

.release-archive {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 24px;
  border-right: 1px solid var(--black-20);
}

.release-archive-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 10px;
  font-size: 12px;
}

.release-archive-heading span,
.release-archive time {
  color: var(--black-60);
  font-size: 10px;
}

.release-archive nav {
  display: grid;
  gap: 3px;
}

.release-archive nav a {
  position: relative;
  display: block;
  padding: 11px 10px;
  border-radius: 8px;
  color: var(--black-80);
}

.release-archive nav a:hover {
  background: var(--black-5);
}

.release-archive nav a[aria-current="page"] {
  color: var(--black-100);
  background: var(--primary-soft);
}

.release-archive nav a[aria-current="page"]::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 1px;
  background: var(--primary);
  content: "";
}

.release-archive-meta,
.release-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-archive code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 10px;
}

.latest-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.release-archive strong,
.release-archive time {
  display: block;
}

.release-archive strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-detail {
  min-width: 0;
  max-width: 836px;
}

.release-detail-heading {
  padding: 3px 0 38px;
}

.release-meta {
  color: var(--black-60);
  font-size: 11px;
}

.release-meta code {
  color: var(--black-80);
}

.release-detail-heading h2 {
  max-width: 720px;
  margin: 18px 0 10px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.release-detail-heading > p {
  max-width: 720px;
  margin: 0;
  color: var(--black-80);
  font-size: 15px;
  line-height: 1.75;
}

.release-item {
  scroll-margin-top: 72px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--black-20);
}

.release-item-copy {
  max-width: 700px;
}

.release-item h2 {
  margin: 13px 0 7px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.release-item p,
.release-item li {
  color: var(--black-80);
  font-size: 13px;
}

.release-item p {
  margin: 0;
  line-height: 1.7;
}

.release-item ul {
  margin: 16px 0 19px;
  padding-left: 20px;
}

.release-item li + li {
  margin-top: 4px;
}

.release-image {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--black-20);
  border-radius: 12px;
  background: var(--black-5);
}

.release-image img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.release-loading,
.release-empty,
.release-error {
  margin: 48px 0;
  padding: 28px;
  border: 1px solid var(--black-20);
  border-radius: 12px;
  color: var(--black-60);
  background: var(--black-5);
}

.release-empty strong,
.release-error strong {
  color: var(--black-100);
}

.release-empty p,
.release-error p {
  margin: 4px 0 14px;
}

.release-error button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--black-20);
  border-radius: 7px;
  color: var(--black-100);
  background: #fff;
  cursor: pointer;
}

html.is-embed .site-header,
html.is-embed .site-footer {
  display: none;
}

/* 제품 안에서 도움말을 읽는 기존 고객에게 상담 유도를 보이지 않는다. */
html.is-embed .intro-band,
html.is-embed .doc-cta-band {
  display: none;
}

html.is-embed .doc-version {
  display: none;
}

html.is-embed .docs-layout {
  min-height: 100vh;
}

html.is-embed .docs-sidebar {
  top: 0;
  height: 100vh;
}

html.is-embed .docs-main {
  padding-top: 28px;
}

html.is-embed .breadcrumbs {
  display: none;
}

html.is-embed .article-toc {
  top: 28px;
}

html.is-embed .release-center {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
}

html.is-embed .release-center-heading,
html.is-embed .release-archive {
  display: none;
}

html.is-embed .release-layout,
html.is-embed .release-layout.single {
  display: block;
  padding-top: 32px;
}

html.is-embed .release-detail {
  width: 100%;
  max-width: none;
}

/* ── 모션 ───────────────────────────────────────────────────────────────
   기존 hover/focus 규칙에 전환만 얹는다. 색·보더·배경·그림자·transform 만 다루므로
   레이아웃을 밀지 않는다. 앱 iframe 안에서도 본문 위치가 흔들리지 않아야 한다. */

a,
button,
select,
input,
.arrow,
.topic-arrow,
.document-card,
.topic-card,
.docs-search-result,
.release-archive nav a {
  transition:
    color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    background-color var(--dur-1) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}

.document-card:hover,
.topic-card:hover {
  transform: translateY(-2px);
}

.document-card:hover .arrow,
.topic-card:hover .topic-arrow {
  transform: translateX(3px);
}

.feature-list a:hover,
.download-list a:hover,
.topic-pagination a:hover {
  transform: translateY(-1px);
}

.docs-search-open:active,
.docs-search-hero:active,
.document-card:active,
.topic-card:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .page-shell > *,
  .docs-main > *,
  .release-center > * {
    animation: rise var(--dur-3) var(--ease) both;
  }

  /* 목록은 살짝 순차로 들어온다. 총 지연은 120ms 이내로 묶어 읽기를 늦추지 않는다. */
  .document-grid > *,
  .topic-grid > *,
  .feature-list > *,
  .download-list > * {
    animation: rise var(--dur-3) var(--ease) both;
  }

  .document-grid > :nth-child(n + 2),
  .topic-grid > :nth-child(n + 2),
  .feature-list > :nth-child(n + 2),
  .download-list > :nth-child(n + 2) {
    animation-delay: 40ms;
  }

  .document-grid > :nth-child(n + 4),
  .topic-grid > :nth-child(n + 4),
  .feature-list > :nth-child(n + 5),
  .download-list > :nth-child(n + 3) {
    animation-delay: 80ms;
  }

  .topic-grid > :nth-child(n + 7),
  .feature-list > :nth-child(n + 9) {
    animation-delay: 120ms;
  }

  .docs-search-layer:not([hidden]) .docs-search-backdrop {
    animation: fade var(--dur-2) var(--ease) both;
  }

  .docs-search-layer:not([hidden]) .docs-search-dialog {
    animation: pop var(--dur-2) var(--ease) both;
  }

  .app-select-list:not([hidden]) {
    animation: popover-in 150ms ease-out;
  }

  .image-lightbox[open] {
    animation: pop var(--dur-2) var(--ease) both;
  }

  .image-lightbox[open]::backdrop {
    animation: fade var(--dur-2) var(--ease) both;
  }
}

@media (max-width: 1280px) {
  .docs-article-layout {
    display: block;
  }

  .docs-article {
    max-width: 800px;
    margin: 0 auto;
  }

  .article-toc {
    display: none;
  }
}

@media (max-width: 1024px) {
  .release-center {
    width: min(820px, calc(100% - 48px));
  }

  .release-picker {
    display: grid;
    gap: 6px;
    max-width: 100%;
    margin-top: 22px;
    color: var(--black-60);
    font-size: 11px;
    font-weight: 600;
  }

  .release-picker .app-select {
    width: 100%;
    max-width: none;
  }

  .release-layout {
    display: block;
    padding-top: 30px;
  }

  .release-archive {
    display: none;
  }

  .release-detail {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-list a,
  .feature-list a:nth-child(3n) {
    border-right: 1px solid var(--black-20);
    border-bottom: 1px solid var(--black-20);
  }

  .feature-list a:nth-child(2n) {
    border-right: 0;
  }

  .feature-list a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    display: none;
  }

  .topic-picker {
    position: sticky;
    top: 56px;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(210px, 0.8fr) auto minmax(220px, 1.2fr);
    gap: 10px;
    align-items: end;
    padding: 10px 24px;
    border-bottom: 1px solid var(--black-20);
    background: rgb(249 249 251 / 97%);
  }

  .topic-select {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .topic-select > span {
    color: var(--black-60);
    font-size: 10px;
    font-weight: 600;
  }

  .topic-select .app-select {
    width: 100%;
    max-width: none;
  }

  .topic-picker .docs-search-open {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding-right: 13px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .docs-main {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 28px 32px 72px;
  }

  html.is-embed .topic-picker {
    top: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 52px;
    padding: 0 18px;
    /* nav이 가로 스크롤로 줄어들 때 로고에 붙지 않게 한다 */
    gap: 14px;
  }

  .brand img {
    width: 82px;
  }

  .brand span {
    display: none;
  }

  /* 상담 CTA는 항상 보여야 하니 nav 쪽을 가로 스크롤로 접는다. */
  .site-header nav {
    gap: 14px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  /* ponytail: 500px 아래에서만 nav가 실제로 넘친다. 스크롤이 있다는 걸 오른쪽
     페이드로만 알린다. 접히는 메뉴가 필요해지면 그때 버튼을 만든다. */
  @media (max-width: 500px) {
    .site-header nav {
      -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
      mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
    }
  }

  .site-header nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .site-header .cta-button {
    min-height: 32px;
    margin-left: 12px;
    padding: 0 12px;
    font-size: 12px;
  }

  .intro-band,
  .doc-cta-band {
    flex-direction: column;
    align-items: start;
  }

  .intro-actions {
    width: 100%;
  }

  .intro-actions .cta-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .topic-picker {
    top: 52px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topic-picker > .doc-version {
    grid-column: 1 / -1;
  }

  .topic-picker > .doc-version > span {
    display: none;
  }

  .page-shell,
  .release-center,
  .site-footer {
    width: calc(100% - 36px);
  }

  .page-heading,
  .latest-panel,
  .section-title {
    align-items: start;
    flex-direction: column;
  }

  .page-heading {
    padding-top: 24px;
  }

  .latest-copy {
    flex-direction: column;
  }

  .document-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list a,
  .feature-list a:nth-child(2n),
  .feature-list a:nth-child(3n),
  .feature-list a:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--black-20);
  }

  .feature-list a:last-child {
    border-bottom: 0;
  }

  .topic-picker {
    top: 52px;
    padding: 8px 18px;
  }

  .docs-search-hero kbd {
    display: none;
  }

  .docs-search-dialog {
    max-height: 88vh;
    border-radius: 14px;
  }

  .docs-search-dialog > header {
    padding: 18px 18px 14px;
  }

  .docs-search-field {
    margin: 0 18px;
  }

  .docs-search-status {
    margin-right: 18px;
    margin-left: 18px;
  }

  .docs-main,
  html.is-embed .docs-main {
    padding: 22px 18px 56px;
  }

  .breadcrumbs {
    margin-bottom: 22px;
  }

  .docs-heading {
    padding-top: 8px;
  }

  .docs-heading h1 {
    font-size: 27px;
  }

  .topic-heading h1 {
    font-size: 27px;
  }

  .topic-body .cards,
  .topic-body .cards.three,
  .topic-body .figure-grid {
    grid-template-columns: 1fr;
  }

  .topic-pagination {
    grid-template-columns: 1fr;
  }

  .topic-pagination .next {
    text-align: left;
  }

  .release-center-heading {
    padding: 28px 0 22px;
  }

  .release-layout {
    padding-top: 24px;
  }

  .release-detail-heading {
    padding-bottom: 30px;
  }

  .release-detail-heading h2 {
    margin-top: 14px;
    font-size: 25px;
  }

  .release-detail-heading > p {
    font-size: 14px;
  }

  .release-item {
    padding: 32px 0 38px;
  }

  .release-item h2 {
    font-size: 18px;
  }

  .release-image {
    margin-top: 20px;
    border-radius: 9px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* 0 이 아니라 1ms 로 둔다. animation-fill-mode: both 의 최종 상태는 유지해야
     등장 애니메이션 대상이 투명하게 남지 않는다. */
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
