/* ═══════════════════════════════════════════════════════════
   백링크 정보 허브 — B2B 클린 / 라이트·뉴트럴 / 장문 가독성 우선
   금지: 다크 네온, 화려 그라데이션 히어로, 배지 벽
   ═══════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  --bg:          #FBFBFA;
  --surface:     #FFFFFF;
  --surface-2:   #F4F5F3;
  --surface-3:   #EDEFEC;

  --ink:         #14171A;
  --ink-2:       #464C54;
  --ink-3:       #737A83;
  --ink-4:       #98A0A8;

  --line:        #E3E5E1;
  --line-2:      #D2D6CF;
  --line-3:      #B9BEB5;

  --accent:      #1B4B8F;
  --accent-2:    #123566;
  --accent-soft: #EDF2FA;
  --accent-line: #C3D3EA;

  --warn:        #7A5411;
  --warn-bg:     #FDF7EA;
  --warn-line:   #E7D2A4;

  --ok:          #1F6B4A;
  --ok-bg:       #EEF6F1;
  --ok-line:     #BEDCCB;

  --maxw:        1180px;
  --measure:     72ch;
  --radius:      10px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 2px rgba(20,23,26,.04), 0 1px 1px rgba(20,23,26,.03);
  --shadow-md:   0 2px 4px rgba(20,23,26,.04), 0 8px 24px -12px rgba(20,23,26,.14);

  --header-h:    60px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: -0.003em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: .06em; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* 그리드·플렉스 자식은 기본 min-width:auto 때문에 표·코드가 뷰포트를 밀어낸다 */
.doc__grid > *, .grid > *, .hero__grid > *, .ftr__grid > *, .channels > *, .minicards > * { min-width: 0; }
.prose, .prose > * { min-width: 0; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 헤더 ─────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,251,250,.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__sub {
  display: none; font-size: 12px; font-weight: 500; color: var(--ink-3);
  letter-spacing: 0; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-2);
}
@media (min-width: 1080px) { .brand__sub { display: inline; } }

.nav { display: none; margin-left: auto; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 2px; }
}
.nav a {
  display: inline-block; padding: 7px 10px; border-radius: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--surface-3); }

.hdr__cta { margin-left: auto; }
@media (min-width: 1000px) { .hdr__cta { margin-left: 8px; } }
@media (max-width: 400px) {
  .hdr__cta.btn--sm { padding: 8px 10px; font-size: 13.5px; }
  .brand { font-size: 15px; gap: 7px; }
}

.burger {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface); cursor: pointer; color: var(--ink);
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { position: relative; display: block; width: 17px; height: 1.6px; background: currentColor; border-radius: 2px; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* 모바일 드로어 */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--bg); overflow-y: auto;
  padding: 12px 20px 40px;
  border-top: 1px solid var(--line);
}
@media (min-width: 1000px) { .drawer { display: none !important; } }
.drawer__group + .drawer__group { margin-top: 18px; }
.drawer__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-4); margin: 0 0 6px; padding: 0 4px;
}
.drawer a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 11px 12px; border-radius: 9px; text-decoration: none;
  color: var(--ink); font-weight: 550; font-size: 15.5px;
}
.drawer a small { color: var(--ink-3); font-weight: 450; font-size: 13px; }
.drawer a:hover, .drawer a[aria-current="page"] { background: var(--surface-2); }
.drawer .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ── 버튼 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(.5px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-3); }
.btn--quiet { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn--quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn--sm { padding: 8px 13px; font-size: 14px; border-radius: 8px; }
.btn--lg { padding: 13px 22px; font-size: 16px; }
.btn__arrow { font-size: 1.05em; line-height: 1; translate: 0 -.02em; }

.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 히어로 ───────────────────────────────────────────── */
.hero { position: relative; padding: 52px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 76px 0 60px; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 58% 78% at 96% 6%, #000, transparent 74%);
          mask-image: radial-gradient(ellipse 58% 78% at 96% 6%, #000, transparent 74%);
  opacity: .8;
}
.hero__in { position: relative; }
.hero__grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 48px; align-items: start; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 5px 12px;
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

h1, .h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 1.15rem + 2.5vw, 2.85rem);
  line-height: 1.24; letter-spacing: -.032em; font-weight: 750;
}
.hero__lead {
  margin: 0 0 24px; max-width: 46ch;
  font-size: clamp(1rem, .96rem + .28vw, 1.14rem);
  line-height: 1.72; color: var(--ink-2);
}
.hero__note { margin: 20px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* 히어로 사이드 — 다루는 것/다루지 않는 것 */
.scope {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md);
}
@media (min-width: 720px) { .scope { padding: 24px; } }
.scope__h {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-4);
}
.scope__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.scope__list li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: 14.5px; line-height: 1.6; }
.scope__list li i { font-style: normal; font-weight: 700; line-height: 1.55; }
.scope__list li span { min-width: 0; }
.scope__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-4); }
.scope--do  li i { color: var(--ok); }
.scope--no  li i { color: var(--ink-4); }
.scope--no  li { color: var(--ink-3); }
.scope__div { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ── 섹션 ─────────────────────────────────────────────── */
.section { padding: 52px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section__head { max-width: 62ch; margin: 0 0 32px; }
.section__kicker {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-4);
}
.section__h {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 1.15rem + 1.05vw, 1.95rem);
  line-height: 1.34; letter-spacing: -.026em; font-weight: 720;
}
.section__lead { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; }

/* ── 카드 그리드 ──────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
a.card:hover { border-color: var(--line-3); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card__num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--ink-4); letter-spacing: .04em;
}
.card__h { margin: 0; font-size: 17px; font-weight: 680; letter-spacing: -.02em; line-height: 1.45; }
.card__p {
  margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.card__more {
  margin-top: auto; padding-top: 12px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
}
a.card:hover .card__more { gap: 9px; }
.card__more span { transition: none; }

/* ── 캐러셀 (홈 전용, 4슬라이드) ──────────────────────── */
.carousel { position: relative; }
.carousel__track {
  display: flex; flex-wrap: nowrap;
  gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 86%; }
@media (min-width: 700px)  { .slide { flex-basis: 47%; } }
@media (min-width: 1000px) { .slide { flex-basis: 30.5%; } }
.slide {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.slide__ix {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 12.5px; font-weight: 700; font-family: var(--mono);
}
.slide__h { margin: 4px 0 0; font-size: 18px; font-weight: 690; letter-spacing: -.022em; }
.slide__p { margin: 0; font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }
.slide__cta { margin-top: auto; padding-top: 14px; }

.carousel__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.carousel__btn {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface);
  color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1;
}
.carousel__btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-3); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__dots { display: flex; gap: 6px; margin-left: 4px; }
.carousel__dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line-3); cursor: pointer;
}
.carousel__dot[aria-current="true"] { background: var(--accent); width: 20px; border-radius: 4px; }

/* ── 신화 vs 사실 / 표 ───────────────────────────────── */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); margin: 22px 0;
}
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 460px; }
thead th {
  text-align: left; font-weight: 680; color: var(--ink);
  background: var(--surface-2); padding: 11px 14px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
tbody th, tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.65; text-align: left;
}
tbody th { font-weight: 620; color: var(--ink); }
tbody td { color: var(--ink-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FCFCFB; }

/* ── 본문(prose) ─────────────────────────────────────── */
.prose { max-width: var(--measure); font-size: 16px; line-height: 1.82; color: var(--ink); }
.prose > p { margin: 0 0 20px; }
.prose > p:first-child { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose strong { font-weight: 680; color: var(--ink); }

.prose .sec-h {
  position: relative; scroll-margin-top: calc(var(--header-h) + 20px);
  margin: 48px 0 14px; padding-top: 4px;
  font-size: clamp(1.22rem, 1.1rem + .55vw, 1.42rem);
  line-height: 1.42; letter-spacing: -.024em; font-weight: 700;
}
.prose .sec-h:first-child { margin-top: 0; }
.prose h3.sec-h { font-size: 1.08rem; margin-top: 34px; }

.prose code {
  font-family: var(--mono); font-size: .875em;
  background: var(--surface-3); border: 1px solid var(--line);
  padding: .1em .38em; border-radius: 5px;
  white-space: normal; overflow-wrap: anywhere;
}
.prose a.route code { white-space: nowrap; }
.prose a.route { text-decoration: none; }
.prose a.route code {
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent);
}
.prose a.route:hover code { background: #E2EAF6; }

.list { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; }
.list li { position: relative; padding-left: 20px; line-height: 1.72; }
.list li::before {
  content: ""; position: absolute; left: 3px; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-3);
}

.steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps > li {
  counter-increment: step; position: relative;
  padding-left: 40px; min-height: 26px; line-height: 1.72;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: .18em;
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}

.checklist {
  margin: 4px 0 24px; padding: 16px 18px; list-style: none; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; padding: 7px 0; }
.checklist input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: .28em 0 0; flex: none;
  border: 1.5px solid var(--line-3); border-radius: 5px; background: var(--surface);
  cursor: pointer; display: grid; place-content: center;
}
.checklist input:checked { background: var(--accent); border-color: var(--accent); }
.checklist input:checked::after {
  content: ""; width: 9px; height: 5px; border: 2px solid #fff;
  border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px;
}
.checklist label { cursor: pointer; line-height: 1.65; font-size: 15px; }
.checklist input:checked + label { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-3); }

.callout {
  margin: 24px 0; padding: 16px 18px;
  border: 1px solid var(--line); border-left: 3px solid var(--line-3);
  border-radius: var(--radius); background: var(--surface);
}
.callout p { margin: 0; line-height: 1.72; font-size: 15.5px; }
.callout__label {
  font-size: 12px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-4); margin: 0 0 6px !important;
}
.callout--note { background: var(--accent-soft); border-color: var(--accent-line); border-left-color: var(--accent); }
.callout--note .callout__label { color: var(--accent); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #C79A3A; }
.callout--warn .callout__label { color: var(--warn); }

.codeblock {
  position: relative; margin: 22px 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.codeblock pre { margin: 0; padding: 18px 18px; overflow-x: auto; }
.codeblock code {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.95;
  background: none; border: 0; padding: 0; white-space: pre; color: var(--ink-2);
}
.codeblock__copy {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 5px 11px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.codeblock__copy:hover { background: var(--surface-2); color: var(--ink); }
.codeblock__copy[data-done] { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }

/* ── 아코디언(FAQ) ───────────────────────────────────── */
.faq {
  margin: 20px 0 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 18px; font-weight: 620; font-size: 15.5px; line-height: 1.6;
  color: var(--ink);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: .42em;
  width: 8px; height: 8px; border-right: 1.8px solid var(--ink-4); border-bottom: 1.8px solid var(--ink-4);
  rotate: 45deg; transition: rotate .18s ease;
}
.faq__item[open] > summary::after { rotate: -135deg; }
.faq__item > summary:hover { background: var(--surface-2); }
.faq__a { padding: 0 18px 18px; }
.faq__a p { margin: 0 0 10px; font-size: 15px; line-height: 1.78; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* ── Docspace형 CORE 레이아웃 ─────────────────────────── */
.doc { padding: 0 0 64px; }
.doc__grid { display: grid; gap: 28px; }
@media (min-width: 940px) {
  .doc__grid { grid-template-columns: 224px minmax(0,1fr); gap: 40px; align-items: start; }
}
@media (min-width: 1220px) {
  .doc__grid { grid-template-columns: 224px minmax(0,1fr) 244px; gap: 44px; }
}

.docnav { display: none; }
@media (min-width: 940px) {
  .docnav {
    display: block; position: sticky; top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
    padding-right: 8px; font-size: 14px;
  }
}
.docnav__label {
  margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-4);
}
.docnav__group + .docnav__group { margin-top: 24px; }
.docnav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docnav__list a {
  display: block; padding: 6px 10px; border-radius: 7px;
  color: var(--ink-2); text-decoration: none; line-height: 1.5;
}
.docnav__list a:hover { background: var(--surface-2); color: var(--ink); }
.docnav__list a[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent); font-weight: 640;
}

.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc__list a {
  display: block; padding: 5px 10px; border-radius: 7px;
  border-left: 2px solid transparent; margin-left: -2px;
  color: var(--ink-3); text-decoration: none; font-size: 13.5px; line-height: 1.5;
}
.toc__list a:hover { color: var(--ink); background: var(--surface-2); }
.toc__list a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 620; background: var(--accent-soft); }
.toc__list li.lvl-3 a { padding-left: 20px; font-size: 13px; }
.toc__filter {
  width: 100%; margin: 0 0 10px; padding: 7px 11px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  font: inherit; font-size: 13.5px; color: var(--ink);
}
.toc__filter::placeholder { color: var(--ink-4); }
.toc__empty { padding: 6px 10px; font-size: 13px; color: var(--ink-4); }

.docaside { display: none; }
@media (min-width: 1220px) {
  .docaside { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
}
.sidecta {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
}
.sidecta__h { margin: 0 0 8px; font-size: 15px; font-weight: 680; letter-spacing: -.02em; }
.sidecta__p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.sidecta .btn { width: 100%; }
.sidecta__links { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.sidecta__links a { font-size: 13.5px; text-decoration: none; color: var(--ink-2); }
.sidecta__links a:hover { color: var(--accent); }

/* 모바일 목차 */
.toc-m { margin: 0 0 28px; }
@media (min-width: 940px) { .toc-m { display: none; } }
.toc-m > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); font-size: 14.5px; font-weight: 620;
}
.toc-m > summary::-webkit-details-marker { display: none; }
.toc-m > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-right: 1.8px solid var(--ink-4); border-bottom: 1.8px solid var(--ink-4);
  rotate: 45deg; transition: rotate .18s ease;
}
.toc-m[open] > summary::after { rotate: -135deg; }
.toc-m__body {
  margin-top: 8px; padding: 10px; max-height: 46vh; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}

/* 읽기 진행 바 */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 70; transition: width .1s linear;
}

/* ── 페이지 헤더(하위 페이지) ────────────────────────── */
.phead { padding: 30px 0 26px; border-bottom: 1px solid var(--line); background: var(--surface); margin-bottom: 34px; }
@media (min-width: 940px) { .phead { padding: 40px 0 34px; margin-bottom: 44px; } }
.phead h1 { margin: 10px 0 12px; font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
.phead__desc { margin: 0; max-width: 60ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.phead__meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-3); }
.phead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.phead__meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-3); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--ink-4); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ── 페이지 하단 ─────────────────────────────────────── */
.nextcta {
  margin: 52px 0 0; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.nextcta__h { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.022em; }
.nextcta__p { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.nextcta__links { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.nextcta__links a { text-decoration: none; color: var(--ink-2); }
.nextcta__links a:hover { color: var(--accent); }

.pager { display: grid; gap: 10px; margin: 32px 0 0; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a {
  display: grid; gap: 3px; padding: 15px 18px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pager a:hover { border-color: var(--line-3); box-shadow: var(--shadow-sm); }
.pager small { font-size: 12px; color: var(--ink-4); font-weight: 600; letter-spacing: .04em; }
.pager strong { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.pager .pager--next { text-align: right; }

/* ── 문의 채널 ───────────────────────────────────────── */
.channels { display: grid; gap: 12px; margin: 0 0 8px; }
@media (min-width: 640px) { .channels { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
a.channel:hover { border-color: var(--line-3); box-shadow: var(--shadow-md); transform: translateY(-1px); color: inherit; }
.channel__ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-content: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.channel--kakao .channel__ic { background: #FEE500; border-color: #E9D400; }
.channel__t { display: grid; gap: 2px; min-width: 0; }
.channel__t strong { font-size: 15.5px; font-weight: 660; letter-spacing: -.02em; }
.channel__t small { font-size: 13px; color: var(--ink-3); }
.channel[aria-disabled="true"] { opacity: .62; pointer-events: none; }

.todo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--warn); background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: 999px; padding: 2px 9px;
}

/* ── 푸터 ─────────────────────────────────────────────── */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding: 44px 0 32px; margin-top: 64px; }
.ftr__grid { display: grid; gap: 30px; }
@media (min-width: 760px)  { .ftr__grid { grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)); gap: 32px; } }
.ftr__brand { display: grid; gap: 10px; align-content: start; }
.ftr__brand .brand { font-size: 16px; }
.ftr__brand p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); max-width: 34ch; }
.ftr__label { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-4); }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr__list a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ftr__list a:hover { color: var(--accent); }
.ftr__bot {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; gap: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7;
}
@media (min-width: 760px) { .ftr__bot { grid-template-columns: 1fr auto; align-items: end; } }
.ftr__note { margin: 0; max-width: 70ch; }
.ftr__dom { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }

/* ── 404 ─────────────────────────────────────────────── */
.nf { padding: 80px 0; text-align: center; }
.nf__code { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; color: var(--ink-4); margin: 0 0 14px; }
.nf .btnrow { justify-content: center; margin-top: 24px; }

@media print {
  .hdr, .docnav, .docaside, .toc-m, .progress, .carousel__ctrl, .nextcta, .pager, .ftr { display: none !important; }
  body { background: #fff; }
  .prose { max-width: none; }
}

/* ── 스펙 목록 (라벨:값) ─────────────────────────────── */
.spec {
  margin: 22px 0; padding: 4px 0; display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.spec__row { display: grid; gap: 2px; padding: 13px 18px; }
.spec__row + .spec__row { border-top: 1px solid var(--line); }
@media (min-width: 620px) { .spec__row { grid-template-columns: 92px minmax(0,1fr); gap: 16px; align-items: baseline; } }
.spec dt {
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3);
  white-space: nowrap;
}
.spec dd { margin: 0; font-size: 15px; line-height: 1.72; color: var(--ink-2); }

/* ── 미니 카드 그리드 (본문 내 대비 블록) ────────────── */
.minicards { display: grid; gap: 12px; margin: 22px 0 26px; }
@media (min-width: 620px) { .minicards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .minicards--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.minicard {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--line-2);
  border-radius: var(--radius); padding: 17px 18px;
}
.minicard--ok   { border-top-color: var(--ok);  background: var(--ok-bg); border-color: var(--ok-line); }
.minicard--warn { border-top-color: #C79A3A;    background: var(--warn-bg); border-color: var(--warn-line); }
.minicard__h { margin: 0 0 9px; font-size: 15px; font-weight: 700; letter-spacing: -.018em; line-height: 1.5; }
.minicard--ok .minicard__h   { color: var(--ok); }
.minicard--warn .minicard__h { color: var(--warn); }
.minicard__p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.minicard__l { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.minicard__p + .minicard__l { margin-top: 9px; }
.minicard__l li { position: relative; padding-left: 17px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.minicard__l li::before {
  content: ""; position: absolute; left: 2px; top: .66em;
  width: 5px; height: 5px; border-radius: 1.5px; background: var(--line-3);
}
.minicard--ok   .minicard__l li::before { background: var(--ok); }
.minicard--warn .minicard__l li::before { background: #C79A3A; }

/* ── FAQ 질문 검색 ───────────────────────────────────── */
.qsearch {
  margin: 0 0 30px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  max-width: var(--measure);
}
.qsearch__label {
  display: block; margin: 0 0 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4);
}
.qsearch__input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg); font: inherit; font-size: 15px; color: var(--ink);
}
.qsearch__input::placeholder { color: var(--ink-4); }
.qsearch__hint { margin: 9px 0 0; font-size: 13px; color: var(--ink-3); }
.qsearch__hint[data-hit] { color: var(--accent); font-weight: 600; }
.faq__item mark { background: #FFF2C2; color: inherit; padding: 0 1px; border-radius: 2px; }
.prose .sec-h[hidden] { display: none; }

/* 채널이 하나뿐일 때 — 폭이 늘어지지 않도록 */
.channels--one { grid-template-columns: 1fr; max-width: 420px; }
.channels--one .channel { padding: 20px 22px; }

/* 스코프 카드 제목 — 계획 H2 그대로 (히어로 안이라 크기만 절제) */
.scope__h2 {
  margin: 0 0 16px; padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 700; letter-spacing: -.022em; line-height: 1.45;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
