:root {
  --bg: #f2f3f8;
  --surface: #ffffff;
  --sub: #f7f8fb;
  --line: #e2e5ee;
  --text: #2b2f38;
  --strong: #14171f;
  --muted: #697383;
  --primary: #2b6bf3;
  --primary-strong: #1d4fc0;
  --primary-weak: #ebf2ff;
  --radius: 16px;
  color-scheme: light;
}
/* 다크 테마: 고른 값(data-theme)이 먼저, 고른 적 없으면 컴퓨터 설정을 따른다 */
:root[data-theme="dark"] {
  --bg: #0f1218;
  --surface: #171b23;
  --sub: #1c212b;
  --line: #2a303c;
  --text: #d9dde6;
  --strong: #f4f6fa;
  --muted: #9aa3b2;
  --primary: #4b83f7;
  --primary-strong: #8db0ff;
  --primary-weak: #1b2a4a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218;
    --surface: #171b23;
    --sub: #1c212b;
    --line: #2a303c;
    --text: #d9dde6;
    --strong: #f4f6fa;
    --muted: #9aa3b2;
    --primary: #4b83f7;
    --primary-strong: #8db0ff;
    --primary-weak: #1b2a4a;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  /* 글자를 눌러도 선택되거나 글자 커서가 생기지 않게 (링크·버튼은 손가락 커서 그대로) */
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}
img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
}
a,
button,
summary {
  cursor: pointer;
}
a {
  color: var(--primary-strong);
}
h1,
h2,
h3 {
  color: var(--strong);
  margin: 0;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}
/* 좁은 글 칸: 페이지 제목과 같은 왼쪽 선에서 시작하고, 글줄만 760px로 */
.narrow {
  width: min(1120px, 100% - 32px);
}
.narrow > * {
  max-width: 760px;
}

/* 위쪽 바 */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
}
.logo-mark {
  flex: none;
  border-radius: 22%;
}
.top nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.top nav a {
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.top nav a:hover {
  color: var(--strong);
  background: var(--sub);
}
/* 지금 보고 있는 페이지 */
.top nav a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--primary-weak);
}
/* 좁은 화면: 메뉴를 로고 아래 한 줄로 (옆으로 밀어서 보기) */
@media (max-width: 860px) {
  .top-in {
    flex-wrap: wrap;
    height: auto;
    row-gap: 4px;
    padding: 10px 0 8px;
  }
  .top nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .top nav::-webkit-scrollbar {
    display: none;
  }
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.btn-main {
  min-height: 56px;
  padding: 0 28px;
  background: var(--primary);
  color: #fff;
  font-size: 1.0625rem;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-main:hover {
  background: var(--primary-strong);
}
:root[data-theme="dark"] .btn-main:hover {
  background: #3a73f0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-main:hover {
    background: #3a73f0;
  }
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  background: var(--primary-weak);
  color: var(--primary-strong);
  font-size: 0.9375rem;
}

/* 첫 화면 */
.hero {
  padding: 72px 0 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-strong);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  margin: 20px 0 28px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
}
.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.dl-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
/* 내려받기: Windows · 맥 버튼 두 개 (내 컴퓨터에 맞는 쪽이 진한 버튼) */
.btn-sub {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--strong);
  font-size: 1.0625rem;
}
.btn-sub:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cta + .dl-meta {
  margin-top: 12px;
}
@media (max-width: 560px) {
  .cta .dl-btn {
    width: 100%;
  }
}
.note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-art {
  display: grid;
  place-items: center;
}
.hero-art img {
  width: min(360px, 80%);
}
@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }
  .hero-in {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .hero-art img {
    width: 200px;
  }
}

/* 앱 화면 */
.shot {
  padding: 24px 0 48px;
}
.frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(20 23 31 / 0.12);
}
.frame img {
  display: block;
  width: 100%;
}

/* 구역 */
.sec {
  padding: 72px 0;
}
.sec-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  letter-spacing: -0.01em;
}
.sec-lead {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 40em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}
@media (max-width: 860px) {
  .grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.sec-alt .card {
  background: var(--sub);
}
.card h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--primary-weak);
  color: var(--primary-strong);
  font-weight: 800;
}
.plain {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

/* 사용 방법 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--sub);
  border: 1px solid var(--line);
  text-align: center;
}
.steps img {
  height: 120px;
  width: auto;
  object-fit: contain;
}
.steps h3::before {
  content: counter(s) ". ";
  color: var(--primary);
}
.steps h3 {
  font-size: 1.0625rem;
  margin-top: 8px;
}
.steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* 안전 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checks li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}
.checks b {
  color: var(--strong);
}
.fine {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 자주 묻는 질문 */
details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sub);
}
summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--strong);
  cursor: pointer;
}
details p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--muted);
}

/* 아래 */
.foot {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.foot-in > a:last-child {
  margin-left: auto;
}

/* 다크 모드: 마스코트 색은 그대로, 바깥에 얇은 밝은 테두리 (마스코트 가이드 §6.4) */
:root[data-theme="dark"] img.mascot {
  filter: drop-shadow(1.5px 0 0 #fbfafa) drop-shadow(-1.5px 0 0 #fbfafa) drop-shadow(0 1.5px 0 #fbfafa)
      drop-shadow(0 -1.5px 0 #fbfafa);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.mascot {
    filter: drop-shadow(1.5px 0 0 #fbfafa) drop-shadow(-1.5px 0 0 #fbfafa) drop-shadow(0 1.5px 0 #fbfafa)
      drop-shadow(0 -1.5px 0 #fbfafa);
  }
}

/* 테마 바꾸기 버튼 */
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}
.theme-btn:hover {
  color: var(--strong);
  border-color: var(--primary);
}
.theme-btn svg {
  width: 20px;
  height: 20px;
}
/* 바뀔 테마의 그림을 보여 준다: 화이트일 때 달, 다크일 때 해 */
.theme-btn .sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .moon {
  display: none;
}
:root[data-theme="dark"] .theme-btn .sun {
  display: block;
}
@media (max-width: 860px) {
  .top .theme-btn {
    margin-left: auto;
  }
  .top .btn-small {
    margin-left: 0;
  }
}

/* 본문으로 건너뛰기 (키보드 사용자용, 누르기 전엔 숨김) */
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* 하위 페이지 머리 */
.page-head {
  padding: 56px 0 8px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}
.page-head .sec-lead {
  margin-bottom: 0;
}
.sec-tight {
  padding-top: 24px;
}

/* 첫 화면의 바로가기 카드 */
.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .card-link:hover {
    transform: none;
  }
}
.more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* 페이지 끝 다음 안내 */
.next-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.text-link {
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.side-art {
  justify-self: center;
  width: min(280px, 70%);
}
.howto {
  margin: 20px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
}
.howto b {
  color: var(--strong);
}
.plain-lg {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 버전 기록: 쪽 번호 */
.ver-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}
.ver-page {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ver-page:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--strong);
}
.ver-page[aria-current="page"] {
  background: var(--primary);
  color: #fff;
  cursor: default;
}
.ver-page:disabled:not([aria-current]) {
  opacity: 0.35;
  cursor: default;
}
.ver-gap {
  min-width: 24px;
  text-align: center;
  color: var(--muted);
}
.ver-count {
  margin-top: 8px;
  text-align: center;
}

/* 버전 기록: 날짜별로 묶고, 버전은 한 줄씩 접어 둔다 (최신만 펼침) */
.ver-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.versions {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.versions .ver-date {
  margin-bottom: 10px;
  letter-spacing: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}
.ver-rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
details.ver {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
details.ver + details.ver {
  border-top: 1px solid var(--line);
}
.ver > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  list-style: none;
  font-weight: 400;
  color: var(--text);
}
.ver > summary::-webkit-details-marker {
  display: none;
}
.ver > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s;
}
.ver[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.ver > summary:hover {
  background: var(--sub);
}
.ver-name {
  flex: none;
  min-width: 4.5em;
  font-weight: 800;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.ver-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.ver-sum {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9375rem;
}
.ver-body {
  padding: 0 20px 18px calc(20px + 4.5em + 12px);
}
.ver-body ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 52em;
  color: var(--muted);
}
.ver-body b {
  color: var(--strong);
}
.ver-dl {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.ver-dl:hover {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .ver > summary {
    padding: 12px 16px;
    gap: 10px;
  }
  .ver-body {
    padding: 0 16px 16px;
  }
}

/* 첫 화면 카드 아이콘 */
.ico svg {
  width: 22px;
  height: 22px;
}

/* 좁은 화면: 메뉴가 더 있으면 가장자리를 흐리게 (옆으로 밀 수 있다는 표시) */
@media (max-width: 860px) {
  .top nav.more-r {
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  .top nav.more-l {
    -webkit-mask-image: linear-gradient(270deg, #000 80%, transparent);
    mask-image: linear-gradient(270deg, #000 80%, transparent);
  }
  .top nav.more-l.more-r {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  }
}

/* 휴대폰: 구역 간격·카드 여백을 줄인다 */
@media (max-width: 560px) {
  .hero {
    padding-top: 24px;
  }
  .hero-art img {
    width: 150px;
  }
  .lead {
    margin: 14px 0 20px;
    font-size: 1.0625rem;
  }
  .shot {
    padding: 8px 0 24px;
  }
  .sec {
    padding: 44px 0;
  }
  .sec-tight {
    padding-top: 20px;
  }
  .sec-lead {
    margin: 8px 0 20px;
    font-size: 1rem;
  }
  .card {
    padding: 18px;
  }
  .grid {
    gap: 12px;
  }
  .ico {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  .page-head {
    padding-top: 32px;
  }
  .foot {
    padding: 24px 0 32px;
  }
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .foot-in > a:last-child {
    margin-left: 0;
  }
}

/* ── 가이드(문서): 왼쪽 목차 + 본문 ── */
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0 72px;
}
.doc-side {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
details.doc-toc {
  margin: 0;
  border: 0;
  background: none;
}
.doc-toc > summary {
  display: none;
}
.doc-group {
  margin: 18px 0 6px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.doc-group:first-of-type {
  margin-top: 0;
}
.doc-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}
.doc-toc a:hover {
  background: var(--sub);
  color: var(--strong);
}
.doc-toc a[aria-current="page"] {
  background: var(--primary-weak);
  color: var(--primary-strong);
  font-weight: 700;
}
.doc-main {
  min-width: 0;
  max-width: 46em;
}
.doc-crumb {
  margin: 0 0 8px;
  min-height: 1.2em;
  font-size: 0.875rem;
  color: var(--muted);
}
.doc-crumb a {
  color: var(--muted);
}
.doc-main h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}
.doc-desc {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 1.0625rem;
}
.doc-main h2 {
  margin: 40px 0 12px;
  padding-top: 8px;
  font-size: 1.375rem;
  scroll-margin-top: 80px;
}
.doc-main h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}
.doc-main p,
.doc-main li {
  color: var(--text);
}
.doc-main ul,
.doc-main ol {
  padding-left: 22px;
}
.doc-main li + li {
  margin-top: 6px;
}
.doc-main code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sub);
  border: 1px solid var(--line);
  font-size: 0.875em;
  word-break: break-all;
}
.doc-lead {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--primary-weak);
  color: var(--strong);
}
.doc-note {
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: var(--sub);
  font-size: 0.9375rem;
}
.doc-ex {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: inherit;
  color: var(--strong);
  white-space: pre-wrap;
}
.doc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.doc-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc-box ol {
  margin: 0;
}
.doc-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.9375rem;
}
.doc-table th,
.doc-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.doc-table tr:last-child td {
  border-bottom: 0;
}
.doc-table th {
  background: var(--sub);
  color: var(--strong);
  font-size: 0.875rem;
}
.doc-shot {
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc-shot img {
  display: block;
  width: 100%;
}
/* 가이드 홈: 바로가기 카드 */
.doc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 8px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.doc-card:hover {
  border-color: var(--primary);
}
.doc-card strong {
  color: var(--strong);
}
.doc-card span {
  color: var(--muted);
  font-size: 0.875rem;
}
.doc-quick {
  margin: 0;
  padding: 0 !important;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.doc-quick li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin: 0 !important;
}
.doc-quick li + li {
  border-top: 1px solid var(--line);
}
.doc-quick a {
  flex: none;
  font-weight: 700;
  text-decoration: none;
}
/* 문제 해결: 접는 질문 */
.doc-faq details {
  margin-top: 10px;
  background: var(--surface);
}
.doc-faq details p {
  margin: 0;
}
/* 이전·다음 */
.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
}
.doc-pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--strong);
  font-weight: 700;
  text-decoration: none;
}
.doc-pager a:hover {
  border-color: var(--primary);
}
.doc-pager small {
  font-weight: 400;
  color: var(--muted);
}
.doc-next {
  text-align: right;
}
@media (max-width: 860px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }
  .doc-side {
    position: static;
    max-height: none;
  }
  details.doc-toc {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .doc-toc > summary {
    display: block;
    padding: 12px 16px;
  }
  .doc-toc[open] {
    padding-bottom: 10px;
  }
  .doc-group {
    padding: 0 16px;
  }
  .doc-toc ul {
    padding: 0 6px;
  }
  .doc-cols,
  .doc-cards {
    grid-template-columns: 1fr;
  }
  .doc-quick li {
    flex-direction: column;
    gap: 2px;
  }
  .doc-table {
    display: block;
    overflow-x: auto;
  }
}
.doc-table td:first-child {
  min-width: 5.5em;
}
@media (max-width: 860px) {
  .doc-toc > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .doc-toc > summary::after {
    content: "▾";
    color: var(--muted);
  }
  .doc-toc[open] > summary::after {
    content: "▴";
  }
}


/* ── 보안 소식 (security.html) ── */
.sf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.sf-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
}
button.sf-stat {
  cursor: pointer;
  transition: border-color 0.15s;
}
button.sf-stat:hover {
  border-color: var(--primary);
}
.sf-stat b {
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.sf-stat.is-info b {
  font-size: 1.125rem;
  padding: 5px 0 4px;
}
.sf-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scroll-margin-top: 80px;
}
.sf-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.sf-tabs button em {
  font-style: normal;
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sub);
  color: var(--muted);
}
.sf-tabs button[aria-selected="true"] {
  background: var(--primary-weak);
  color: var(--primary-strong);
}
.sf-tabs button[aria-selected="true"] em {
  background: var(--primary);
  color: #fff;
}
.sf-lead {
  margin: 0 0 14px;
  color: var(--text);
  max-width: 52em;
}
.sf-lead code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sub);
  border: 1px solid var(--line);
  font-size: 0.875em;
}
.sf-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 14px;
}
.sf-tools input[type="search"] {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--strong);
  font: inherit;
}
.sf-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  cursor: pointer;
}
.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sf-chips button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
}
.sf-chips button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-weak);
  color: var(--primary-strong);
}

/* 표 (PC) — 머리줄과 각 줄이 같은 칸 나눔을 쓴다 */
.sf-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.sf-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-head,
.sf-line {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}
.sf-t-kev .sf-head,
.sf-t-kev .sf-line {
  grid-template-columns: 84px 150px minmax(0, 1fr) 150px 72px 14px;
}
.sf-t-pkg .sf-head,
.sf-t-pkg .sf-line {
  grid-template-columns: 84px minmax(0, 1fr) 230px 56px 64px;
}
.sf-t-news .sf-head,
.sf-t-news .sf-line {
  grid-template-columns: 84px 150px minmax(0, 1fr);
}
.sf-head {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--sub);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}
.sf-row + .sf-row {
  border-top: 1px solid var(--line);
}
button.sf-line {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.sf-line:hover,
.sf-row:hover > div.sf-line {
  background: var(--sub);
}
.sf-line > span {
  min-width: 0;
}
.c-date {
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.c-id {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-strong);
  font-variant-numeric: tabular-nums;
}
.c-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.c-main strong,
.sf-strong {
  color: var(--strong);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-t-news .sf-strong {
  white-space: normal;
  font-weight: 600;
}
a.sf-strong {
  text-decoration: none;
}
a.sf-strong:hover {
  text-decoration: underline;
  color: var(--primary-strong);
}
.c-main small {
  color: var(--muted);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-ver {
  font-size: 0.8125rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-ver b {
  color: var(--primary-strong);
}
.c-ver b.is-warn {
  color: var(--sev-c);
}
.c-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s;
}
.sf-line[aria-expanded="true"] .c-chev {
  transform: rotate(225deg) translate(-2px, -2px);
}
.sf-detail {
  padding: 0 20px 16px calc(20px + 84px + 16px);
  font-size: 0.9375rem;
  color: var(--text);
}
.sf-detail p {
  margin: 6px 0 0;
  max-width: 60em;
}
.sf-name {
  font-weight: 700;
  color: var(--strong);
}
.sf-links {
  font-size: 0.875rem;
  color: var(--muted);
}
.sf-links a {
  font-weight: 700;
  text-decoration: none;
}
.sf-badge,
.sf-tag,
.sf-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.sf-tag {
  background: var(--sub);
  border: 1px solid var(--line);
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-kind {
  background: var(--primary-weak);
  color: var(--primary-strong);
}
:root {
  --sev-c: #d93838;
  --sev-h: #e2691f;
  --sev-m: #e9b824;
}
:root[data-theme="dark"] {
  --sev-c: #f05d5d;
  --sev-h: #f28a45;
  --sev-m: #f2c94c;
}
.sf-badge.is-c {
  background: var(--sev-c);
  color: #fff;
}
.sf-badge.is-h {
  background: var(--sev-h);
  color: #fff;
}
.sf-badge.is-m {
  background: var(--sev-m);
  color: #2b2200;
}
.sf-badge.is-l,
.sf-badge.is-u {
  background: var(--sub);
  color: var(--muted);
  border: 1px solid var(--line);
}
.sf-empty {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}
.sf-credit {
  margin-top: 20px;
}

/* 휴대폰·좁은 화면: 표 대신 카드 모양 */
@media (max-width: 860px) {
  .sf-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sf-stat {
    padding: 12px 14px;
  }
  .sf-stat b {
    font-size: 1.375rem;
  }
  .sf-head {
    display: none;
  }
  .sf-t-kev .sf-line,
  .sf-t-pkg .sf-line,
  .sf-t-news .sf-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 12px 16px;
  }
  .c-main {
    order: 4;
    flex-basis: 100%;
  }
  .c-date {
    order: 3;
    margin-left: auto;
  }
  .c-id,
  .c-sev,
  .c-src {
    order: 1;
  }
  .c-flag,
  .c-eco {
    order: 2;
  }
  .c-kind,
  .c-ver {
    order: 5;
    flex-basis: 100%;
    white-space: normal;
  }
  .c-chev {
    display: none;
  }
  .c-main strong,
  .c-main small {
    white-space: normal;
  }
  .sf-detail {
    padding: 0 16px 14px;
  }
  .sf-tools input[type="search"] {
    flex-basis: 100%;
    min-width: 0;
    max-width: none;
  }
  .sf-tabs {
    width: 100%;
  }
  .sf-tabs button {
    flex: 1;
    justify-content: center;
    padding: 9px 6px;
    font-size: 0.875rem;
  }
}

/* ── 가이드 PC 다듬기: 왼쪽 목차 구분선, 오른쪽 "이 페이지에서", 검색, 카드 아이콘, 그림, 단계 번호 ── */
.doc {
  gap: 40px;
}
.doc.has-onpage {
  grid-template-columns: 230px minmax(0, 1fr) 190px;
}
.doc-side {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.doc-main {
  max-width: 48em;
}
.doc-main h2 {
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc-main h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.doc-main > ol:not(.doc-results) {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.doc-main > ol:not(.doc-results) > li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  min-height: 26px;
}
.doc-main > ol:not(.doc-results) > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-weak);
  color: var(--primary-strong);
  font-size: 0.8125rem;
  font-weight: 800;
}
.doc-main > ol > li + li {
  margin-top: 10px;
}
.doc-onpage {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 0.875rem;
}
.doc-onpage p {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.doc-onpage ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.doc-onpage a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}
.doc-onpage a:hover {
  color: var(--strong);
}
.doc-onpage a[aria-current] {
  border-left-color: var(--primary);
  color: var(--primary-strong);
  font-weight: 700;
}
@media (max-width: 1180px) {
  .doc.has-onpage {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .doc-onpage {
    display: none;
  }
}
/* 검색 */
.doc-search {
  position: relative;
  margin-bottom: 14px;
}
.doc-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697383' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 11px center;
  color: var(--strong);
  font: inherit;
  font-size: 0.9375rem;
}
.doc-search.is-big {
  margin: 0 0 20px;
}
.doc-search.is-big input {
  height: 52px;
  padding-left: 42px;
  border-radius: 14px;
  background-position: 15px center;
  font-size: 1.0625rem;
  box-shadow: 0 6px 20px rgb(20 23 31 / 0.06);
}
.doc-results {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  min-width: 300px;
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(20 23 31 / 0.16);
}
.doc-results li + li {
  margin-top: 0 !important;
}
.doc-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.doc-results a:hover,
.doc-results a:focus {
  background: var(--sub);
}
.doc-results strong {
  color: var(--strong);
  font-size: 0.875rem;
}
.doc-results span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.doc-noresult {
  padding: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
/* 가이드 홈 카드 아이콘 */
.doc-card-ico {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--primary-weak);
  color: var(--primary-strong);
}
.doc-card-ico svg {
  width: 20px;
  height: 20px;
}
/* 본문 그림 */
.doc-fig {
  margin: 18px 0;
}
.doc-fig img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgb(20 23 31 / 0.1);
}
.doc-fig figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (max-width: 860px) {
  .doc-side {
    padding-right: 0;
    border-right: 0;
  }
  .doc-results {
    min-width: 0;
  }
}

/* 자주 묻는 질문: 왼쪽 질문 + 오른쪽 도움 카드 */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.faq-list details:first-child {
  margin-top: 0;
}
.faq-list details,
.doc-faq details {
  background: var(--surface);
}
.faq-list summary,
.doc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker,
.doc-faq summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after,
.doc-faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s;
}
.faq-list details[open] > summary::after,
.doc-faq details[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.faq-side {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq-side h2 {
  font-size: 1.0625rem;
}
.faq-side p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
.faq-side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.faq-side-link:hover {
  background: var(--sub);
}
.faq-side-link strong {
  color: var(--strong);
  font-size: 0.9375rem;
}
.faq-side-link span {
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .faq-side {
    position: static;
  }
}

/* 페이지 끝 "내려받기" 줄: 빈 곳에 떠 있지 않게 띠 모양으로 */
.sec:has(> .next-links) {
  padding-top: 32px;
}
.next-links {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--primary-weak), var(--surface) 70%);
}
@media (max-width: 860px) {
  .doc.has-onpage {
    grid-template-columns: 1fr;
  }
}

/* ── 요금제 ── */
.price-sandbox {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
}
.price-card.is-reco {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.price-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}
.price-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.price-tag {
  margin: 4px 0 0;
  color: var(--muted);
}
.price-num {
  margin: 14px 0 6px;
  color: var(--muted);
}
.price-num b {
  color: var(--strong);
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.price-list {
  flex: 1;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
}
.price-list li {
  position: relative;
  padding-left: 22px;
}
.price-list li + li {
  margin-top: 6px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.price-cta {
  width: 100%;
  justify-content: center;
}
.price-cta:disabled {
  opacity: 0.6;
  cursor: default;
}
.price-small {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.price-key,
.price-how {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
}
.price-key h2,
.price-how h2 {
  font-size: 1.25rem;
}
.price-key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.price-key-row code {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sub);
  color: var(--strong);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: all;
}
.price-steps {
  margin: 12px 0 0;
  color: var(--muted);
}
.price-foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (max-width: 860px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 정책 페이지 (약관·환불·개인정보) ── */
.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.1875rem;
}
.legal p,
.legal li {
  line-height: 1.75;
}
.legal ul,
.legal ol {
  padding-left: 1.2em;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal th,
.legal td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-draft {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sub);
  color: var(--muted);
  font-size: 0.8125rem;
}
.foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
