/* 문서형 템플릿(theme.site.template = 'docs') — 마크업 src/docs.js · 동작 public/docs.js.
   데스크톱(≥1024px): 세로 헤어라인으로 나뉜 두 칸. 왼쪽은 화면 높이에 고정(로고·메뉴·목차), 오른쪽은 본문(최대 760px).
   휴대폰·태블릿: 왼쪽 칸이 위쪽 흰 바로 접히고, 메뉴 버튼이 메뉴+목차 시트를 연다.
   모든 규칙은 body.docs-page 아래 — 기본 템플릿에는 닿지 않는다. 액센트는 팀 색(--accent, 없으면 잉크) */
.docs-page {
  --d-ink: #17150f;
  --d-mute: rgba(23, 21, 15, .66); /* 흰 바탕 5.7:1 — 메뉴·부제 */
  --d-faint: rgba(23, 21, 15, .6); /* 흰 바탕 4.77:1 — 작은 글자(목차·라벨·푸터·powered)의 바닥(AA 4.5:1) */
  --d-line: rgba(23, 21, 15, .12);
  --d-hair: rgba(23, 21, 15, .08);
  --d-acc: var(--accent, #17150f);
  --d-acc-fg: #fff; /* 팀 색 단색 위 글자 — 밝은 팀 색이면 서버(src/docs.js accentVars)가 잉크로 바꾼다 */
  --d-acc-text: var(--d-ink); /* 흰 바탕 위 팀 색 글자 — 서버가 4.5:1이 될 때까지 어둡게 한 값 */
  --d-mono: 'JetBrains Mono', 'Pretendard Variable', Pretendard, ui-monospace, monospace; /* 영문·숫자는 모노, 한글은 Pretendard로 */
  --d-side: max(clamp(300px, 36vw, 560px), calc((100vw - 760px) / 2 - 140px)); /* 아주 넓은 화면에서는 본문이 가운데 근처로 */
  --d-gut: clamp(40px, 5vw, 76px);
  --d-col: 760px;
  --d-bar: 56px;
  background: #fff;
  color: var(--d-ink);
}
.docs-page .dshell { min-height: 100vh; }
.docs-page :is(h1, h2, h3, p, li, a, span) { word-break: keep-all; overflow-wrap: anywhere; }

/* 건너뛰기 */
.dskip { position: absolute; left: 12px; top: -60px; z-index: 90; padding: 10px 14px; background: var(--d-ink); color: #fff; font-size: 13px; font-weight: 600; border-radius: 4px; }
.dskip:focus { top: 12px; }

/* ── 왼쪽 칸 ── */
.dident { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; color: var(--d-ink); }
.dident strong { font-size: 19px; font-weight: 760; letter-spacing: -0.03em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dside .intro-logo { width: 28px; height: 28px; flex: none; object-fit: contain; filter: brightness(0); } /* 흰 칸 위 — 원래 색과 무관하게 잉크(위쪽 흰 바와 같은 규칙) */
.dside .intro-logo-txt { display: grid; place-items: center; border-radius: 7px; background: var(--d-ink); color: #fff; font-size: 13px; font-weight: 700; filter: none; }

.dnav { display: flex; flex-direction: column; margin-top: 44px; }
.dnav a { position: relative; display: flex; align-items: center; min-height: 34px; padding-left: 20px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--d-mute); transition: color var(--dur-1) var(--ease-out); }
.dnav a:hover { color: var(--d-ink); }
.dnav a.on { color: var(--d-ink); font-weight: 650; }
.dnav a.on::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--d-acc); }
.dnav a[data-nav-ext]::after { content: '↗'; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--d-faint); }
.dnav a[hidden] { display: none; }

.dtoc { position: relative; margin-top: 30px; padding-top: 30px; }
.dtoc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(to right, rgba(23, 21, 15, .3) 1px, transparent 1px) 0 0 / 4px 1px repeat-x; }
.dlabel { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.dlabel-en { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--d-faint); }
.dvh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dtoc ol { list-style: none; margin: 0; padding: 0; }
.dtoc a { position: relative; display: block; padding: 5px 0 5px 20px; font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--d-faint); transition: color var(--dur-1) var(--ease-out); } /* 메뉴와 같은 20px 기준선 */
/* 목차 막대 — 폭을 보간하지 않고 12×2 막대 하나를 scale(.667 .5 → 1): 스크롤 스파이마다 레이아웃이 돌지 않는다(§5.11) */
.dtoc a::before { content: ''; position: absolute; left: 0; top: calc(5px + .72em); width: 12px; height: 2px; margin-top: -.5px; background: rgba(23, 21, 15, .22); transform-origin: left center; scale: .667 .5; transition: scale var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.dtoc a:hover { color: var(--d-ink); }
.dtoc a.is-on { color: var(--d-ink); font-weight: 600; }
.dtoc a.is-on::before { scale: 1 1; background: var(--d-acc); }

.dside-foot { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.dside-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.dside-act { font-size: 13.5px; font-weight: 500; color: var(--d-mute); transition: color var(--dur-1) var(--ease-out); }
.dside-act:hover { color: var(--d-ink); }
.dside-act.is-p { color: var(--d-ink); font-weight: 650; }
.dside-act.is-p::after { content: ' →'; }
.dside-act.is-note { color: var(--d-faint); }
.dpowered { font-size: 12px; color: var(--d-faint); }
.dpowered strong { font-family: 'Cal Sans', var(--font); font-weight: 600; color: var(--d-mute); }

.dmenu-btn { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; white-space: nowrap; border: 1px solid var(--d-line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--d-ink); }
.dmenu-btn svg { width: 18px; height: 18px; }
.dmenu-btn > .is-x, .is-dopen .dmenu-btn > :not(.is-x) { display: none; }
.is-dopen .dmenu-btn > .is-x { display: block; }
.is-dopen .dmenu-btn { background: var(--d-ink); border-color: var(--d-ink); color: #fff; }
.dpanel-x { display: none; } /* JS가 없을 때만 — 시트를 닫는 링크 */

/* ── 오른쪽 칸 ── */
.dmain { min-width: 0; outline: none; overflow-x: clip; }
.dmain > .dhero, .dmain > [data-blocks], .dmain > .dpage, .dmain > .dfoot { max-width: var(--d-col); }
.dfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 120px; padding: 26px 0 44px; border-top: 1px solid var(--d-hair); font-size: 12.5px; color: var(--d-faint); }
.dfoot .intro-contact { display: inline; margin: 0; font-size: inherit; color: inherit; }
.dfoot .intro-contact a { color: var(--d-mute); }
.dfoot .intro-foot-note { display: inline; margin: 0; max-width: none; padding: 0; font-size: inherit; color: var(--d-mute); }
.dfoot .intro-foot-note[hidden] { display: none; }
.dfoot-pw { display: none; }
@media (min-width: 1024px) { .dfoot.is-bare { border-top-color: transparent; margin-top: 64px; } }
.dfoot-pw strong { font-family: 'Cal Sans', var(--font); font-weight: 600; color: var(--d-mute); }

/* 홈 — 편집형 히어로 */
.dhero { background: none !important; } /* 미리보기 브리지의 색 근사(히어로 그라디언트)가 흰 칸을 칠하지 않게 */
.dpill { display: inline-flex; align-items: stretch; max-width: 100%; height: 32px; margin-bottom: 30px; border: 1px solid var(--d-line); border-radius: 999px; background: #fff; font-size: 13px; line-height: 1; color: var(--d-ink); transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.dpill:hover { border-color: rgba(23, 21, 15, .24); box-shadow: 0 1px 2px rgba(23, 21, 15, .06); }
.dpill-k { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 12px 0 13px; font-weight: 650; }
.dpill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-acc); }
.dpill-dot.is-live { box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-acc) 18%, transparent); }
.dpill-a { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 0 12px; border-left: 1px solid var(--d-line); color: var(--d-mute); font-weight: 500; }
.dpill-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26em; }
.dpill svg { width: 13px; height: 13px; flex: none; }

.dhero .shero-kicker { margin: 0 0 16px; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--d-mute); text-shadow: none; }
.dhero .shero-kicker.is-mono { font-family: var(--d-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; } /* 영문·숫자만일 때만 모노 대문자(src/docs.js monoCls) */
.dh-text h1 { font-family: var(--font); font-size: clamp(38px, 3.8vw, 56px); font-weight: 640; line-height: 1.12; letter-spacing: -0.028em; color: var(--d-ink); text-wrap: balance; } /* 한글 제목 — 음절이 붙지 않는 자간 */
.dh-name { display: block; }
.dhero[data-font="display"] .dh-name { font-family: 'Cal Sans', var(--font); font-weight: 600; letter-spacing: -0.01em; }
.dhero[data-font="grotesk"] .dh-name { font-family: var(--font-grotesk); font-weight: 700; letter-spacing: -0.04em; }
.dhero[data-font="serif"] h1 { font-family: 'Noto Serif KR', serif; font-weight: 700; letter-spacing: -0.03em; }
.dh-text h1 .tagline { display: inline; margin: 0; font-size: inherit; color: rgba(23, 21, 15, .55); text-shadow: none; } /* 큰 글자라 3:1 기준 — 4.0:1 */
.dh-sub { max-width: 36em; margin-top: 22px; font-size: 17px; line-height: 1.65; letter-spacing: -0.012em; color: var(--d-mute); }

.dh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.dbtn { display: inline-flex; align-items: stretch; height: 46px; font-size: 14.5px; font-weight: 650; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; }
.dbtn .is-mono { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dbtn-p { overflow: hidden; border-radius: 3px; background: var(--d-acc); color: var(--d-acc-fg); transition: filter var(--dur-1) var(--ease-out); }
.dbtn-p:hover { filter: brightness(1.08); }
.dbtn-ic { display: grid; place-items: center; width: 46px; flex: none; background: rgba(0, 0, 0, .2); }
.dbtn-ic svg { width: 17px; height: 17px; }
.dbtn-p .dbtn-l { display: flex; align-items: center; padding: 0 22px 0 18px; }
.dbtn-s { position: relative; align-items: center; gap: 8px; padding: 0 16px 0 20px; background: rgba(23, 21, 15, .035); color: var(--d-ink); transition: background-color var(--dur-1) var(--ease-out); }
.dbtn-s:hover { background: rgba(23, 21, 15, .06); }
.dbtn-s svg { width: 15px; height: 15px; color: var(--d-mute); }
/* 모서리 꺾쇠 — 네 귀퉁이에 짧은 선 두 개씩 */
.dbtn-s::before { content: ''; position: absolute; inset: 0; pointer-events: none; --c: rgba(23, 21, 15, .55);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 7px no-repeat; }
.dbtn-note { align-items: center; padding: 0 18px; border: 1px dashed var(--d-line); color: var(--d-mute); font-weight: 500; }

/* 복사 막대 — 빗금 바탕 */
.dcopy { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 580px; height: 46px; margin-top: 16px; padding: 0 0 0 16px; border: 1px solid var(--d-line); color: var(--d-ink); text-align: left; cursor: pointer;
  background: repeating-linear-gradient(-45deg, rgba(23, 21, 15, .055) 0 1px, transparent 1px 7px), #fff; transition: border-color var(--dur-1) var(--ease-out); }
.dcopy:hover { border-color: rgba(23, 21, 15, .26); }
.dcopy:focus-visible { outline: 2px solid var(--d-acc); outline-offset: 2px; }
.dcopy-l { flex: none; font-size: 13px; font-weight: 650; }
.dcopy-u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--d-mute); background: none; padding: 0; }
.dcopy-ic { display: grid; place-items: center; align-self: stretch; width: 46px; flex: none; border-left: 1px solid var(--d-line); background: #fff; }
.dcopy-ic svg { width: 16px; height: 16px; }
.dcopy.is-done .dcopy-l { color: var(--d-acc-text); }

.dlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 34px; }
.dlinks .dlabel-en { margin-right: 2px; }
.dlink { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--d-mute); transition: color var(--dur-1) var(--ease-out); }
.dlink:hover { color: var(--d-ink); }
.dlink svg { width: 18px; height: 18px; }

.dphoto, .dplate { position: relative; margin-top: 56px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #ecebe8; }
.dphoto img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dphoto .shero-lqip { transition: none; }
.dplate { display: grid; place-items: center; background: radial-gradient(120% 95% at 28% 18%, var(--p2) 0%, var(--p1) 58%, var(--p3) 100%); }
.dplate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px; mask-image: radial-gradient(80% 80% at 50% 45%, #000, transparent); }
.dplate img { position: relative; z-index: 1; width: clamp(72px, 15%, 128px); height: auto; filter: brightness(0) invert(1); opacity: .96; }
.dplate b { position: relative; z-index: 1; font-family: 'Cal Sans', var(--font); font-size: clamp(36px, 7vw, 72px); font-weight: 600; color: #fff; letter-spacing: -0.02em; }

/* 블록 — 오른쪽 칸 폭에 맞춘다(원래 1060px 가운데 정렬 틀) */
.docs-page [data-blocks] .container, .docs-page .dpage .container, .docs-page .dpage .container-narrow { max-width: none; margin: 0; padding: 0; }
.docs-page [data-blocks] .sec { padding-top: 96px; }
.docs-page [data-blocks] .sec-head { margin-bottom: 22px; }
.docs-page .sec-head h2 { font-size: clamp(22px, 2vw, 27px); font-weight: 680; letter-spacing: -0.032em; line-height: 1.25; }
.docs-page .sec-eyebrow { font-family: var(--d-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--d-faint); margin-bottom: 8px; }
.docs-page :is(h2, h3)[id] { scroll-margin-top: 32px; }
.docs-page .nmq { overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.docs-page .nmq-track { padding: 0; }
.docs-page .nmq-static { -webkit-mask-image: none; mask-image: none; }
.docs-page .nmq-static .nmq-track { justify-content: flex-start; padding: 0; }
.docs-page .nmq-static .nmq-card { width: calc(50% - 9px); min-width: 260px; }
.docs-page .nmq-static .nmq-card:nth-child(odd):last-child { width: 100%; } /* 홀수 장이면 마지막 카드가 한 줄을 채운다(2+1로 비지 않게) */
.docs-page [data-blocks] :is(.news-feat, .erow, .land-member, .card, .mcard, .mcard-ph) { border-radius: 4px; } /* 히어로의 3px·2px 모서리 문법 */
.docs-page [data-blocks] .erow-date { border-radius: 3px; }
.docs-page .cta-band { margin-top: 104px; padding: 44px 0 0; border-top: 1px solid var(--d-hair); text-align: left; }
.docs-page .cta-band h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.04em; }
.docs-page .cta-band p { margin: 12px 0 26px; }
/* 가입 띠·소개 끝 가입 권유 — 히어로 주 버튼(.dbtn-p)과 같은 문법: 팀 색 단색 + 왼쪽 화살표 칸 */
.docs-page :is(.cta-band, .dpage .about-cta) .btn { position: relative; gap: 0; height: 46px; padding: 0 22px 0 64px; border: 0; border-radius: 3px; overflow: hidden; background: var(--d-acc); color: var(--d-acc-fg); font-size: 14.5px; font-weight: 650; letter-spacing: -0.005em; transition: filter var(--dur-1) var(--ease-out); }
.docs-page :is(.cta-band, .dpage .about-cta) .btn:hover { background: var(--d-acc); filter: brightness(1.08); }
.docs-page :is(.cta-band, .dpage .about-cta) .btn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 46px; background: rgba(0, 0, 0, .2); }
.docs-page :is(.cta-band, .dpage .about-cta) .btn::after { content: ''; position: absolute; left: 14.5px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.docs-page .land-events { max-width: none; }
.docs-page .land-about p { font-size: 16.5px; line-height: 1.8; }
.docs-page .blk-cards[data-n="3"], .docs-page .blk-cards[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 하위 페이지 — 원래 본문을 오른쪽 칸에. 가운데 정렬 머리는 왼쪽으로 */
.docs-page .intro-main.dpage { min-height: 0; padding: 104px 0 0; }
.docs-page .dpage .page-head { padding-top: 0; }
.docs-page .dpage .page-head h1, .docs-page .dpage > .container > .promo-eyebrow { letter-spacing: -0.035em; }
.docs-page .dpage .about-hero { text-align: left; padding: 0 0 36px; }
.docs-page .dpage .about-logo { margin: 0 0 22px; width: 56px; height: 56px; }
.docs-page .dpage .about-name { font-family: var(--font); font-weight: 700; letter-spacing: -0.04em; }
.docs-page .dpage .about-stats { justify-content: flex-start; }
.docs-page .dpage .about-cta { margin-top: 72px; padding: 40px 0 0; border: 0; border-top: 1px solid var(--d-hair); border-radius: 0; background: none; text-align: left; } /* 홈 가입 띠와 같은 헤어라인 띠 */
.docs-page .dpage .about-cta h2 { font-size: clamp(22px, 2vw, 27px); font-weight: 680; letter-spacing: -0.032em; }
.docs-page .dpage .about-stats span { font-family: var(--font); font-size: 12.5px; letter-spacing: .02em; font-variant-numeric: tabular-nums; } /* 한글 칩 — 모노 스택이면 한글이 OS 폴백 글꼴로 나온다 */
.docs-page .dpage .art-head { text-align: left; }
.docs-page .dpage :is(.art-byline, .art-meta, .art-eyebrow) { justify-content: flex-start; }
.docs-page .dpage .art { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
.docs-page .dpage .art.art-x { padding-top: 0; }
.docs-page .dpage .art-x > * { margin-left: 0; margin-right: 0; }
.docs-page .dpage .art-x .art-top { margin-bottom: 52px; }
.docs-page .dpage .art-x .art-head { text-align: left; padding-bottom: 44px; margin-bottom: 48px; }
.docs-page .dpage .art-x :is(.art-eyebrow, .art-byline) { justify-content: flex-start; }
.docs-page .dpage .art-x .art-title { margin: 16px 0 0; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.12; text-wrap: balance; }
.docs-page .dpage .art-x .art-title-long { font-size: clamp(28px, 2.8vw, 40px); }
.docs-page .dpage .art-x .art-deck { margin-left: 0; }

/* ── 미리보기(Studio) ── */
.docs-page.is-preview .dhero .shero-kicker.is-ghost { display: inline-block; padding: 3px 12px; border: calc(1px / var(--pick-s, 1)) dashed rgba(23, 21, 15, .4); border-radius: 999px; color: var(--d-mute); opacity: .8; }
.docs-page.is-preview .dhero .shero-logo { display: none; } /* 로고는 왼쪽 칸에만 — 브리지가 만든 히어로 로고는 숨긴다 */
.docs-page.is-preview .dhero.is-bgedit .dphoto { cursor: grab; }
.docs-page.is-preview .dhero.is-bgdrag .dphoto { cursor: grabbing; }

/* ── 데스크톱 — 두 칸 ── */
@media (min-width: 1024px) {
  .dshell { display: grid; grid-template-columns: var(--d-side) minmax(0, 1fr); }
  .dside { position: sticky; top: 0; height: 100vh; height: 100dvh; border-right: 1px solid var(--d-hair); }
  .dside-in { display: flex; flex-direction: column; align-items: flex-end; height: 100%; padding: 60px var(--d-gut) 34px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .dside-in::-webkit-scrollbar { display: none; }
  .dbar, .dpanel { width: 260px; max-width: 100%; }
  .dident { display: flex; } /* 긴 이름 — 칸 폭 안에서 말줄임(inline-flex면 내용 폭만큼 커져 헤어라인을 넘는다) */
  /* 짧은 화면에서 목차가 넘치면 아래를 흐리게 — 더 있다는 표시(스크롤은 docs.js가 현재 항목을 따라 맞춘다) */
  .dside-in.is-ovf { -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent); }
  .dpanel { display: flex; flex-direction: column; flex: 1 0 auto; }
  .dmenu-btn { display: none; }
  .dmain { padding: 0 var(--d-gut); }
  .dhero { padding-top: 104px; }
}

/* ── 휴대폰·태블릿 — 위쪽 흰 바 + 메뉴 시트 ── */
@media (max-width: 1023.98px) {
  .dside { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--d-hair); }
  .dbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--d-bar); padding: 0 16px; }
  .dident strong { font-size: 17px; }
  .dside .intro-logo { width: 26px; height: 26px; }
  .dpanel { display: none; }
  /* 시트 — 위쪽 바는 그대로 두고(메뉴 버튼이 닫기로 바뀐다) 그 아래를 덮는다 */
  html:not(.is-djs) .dpanel:target, .is-dopen .dpanel { position: fixed; top: var(--d-bar); left: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--d-hair); background: #fff; }
  .is-dopen .dpanel { animation: dsheet-in .22s cubic-bezier(.16, 1, .3, 1) both; }
  html:not(.is-djs) .dpanel:target .dpanel-x { display: block; align-self: flex-end; margin-top: 14px; font-size: 13px; color: var(--d-mute); }
  .dnav { margin-top: 14px; }
  .dnav a { min-height: 46px; font-size: 17px; }
  .dtoc a { padding-top: 8px; padding-bottom: 8px; font-size: 14.5px; }
  .dtoc a::before { top: calc(8px + .72em); }
  .dside-foot { padding-top: 36px; }
  .dside-act { font-size: 15px; }
  .dmain { padding: 0 20px; }
  .dhero { padding-top: 44px; }
  .dpill { margin-bottom: 24px; }
  .dh-text h1 { font-size: clamp(32px, 8.4vw, 44px); letter-spacing: -0.026em; }
  .dh-sub { font-size: 16px; margin-top: 16px; }
  .dh-cta { margin-top: 28px; }
  .dphoto, .dplate { margin-top: 40px; }
  .docs-page [data-blocks] .sec { padding-top: 72px; }
  .docs-page .intro-main.dpage { padding-top: 36px; }
  .docs-page :is(h2, h3)[id] { scroll-margin-top: calc(var(--d-bar) + 20px); }
  .dfoot { margin-top: 88px; }
  .dfoot-pw { display: inline; }
  /* 배경 스크롤 잠금은 html(뷰포트)에서만. body는 .intro-page의 overflow-y: auto가 평소 뷰포트로 넘어가는데, html을 잠그면 body가 스스로
     스크롤 칸이 되어 sticky 위쪽 바가 (스크롤되지 않은) body 맨 위로 돌아가 화면 밖으로 사라진다 — 잠근 동안 body는 visible */
  html.is-dlock { overflow: hidden; }
  html.is-dlock > body.docs-page { overflow: visible; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .dbar { padding: 0 28px; }
  .dmain { padding: 0 44px; }
  html:not(.is-djs) .dpanel:target, .is-dopen .dpanel { padding-left: 44px; padding-right: 44px; }
  .dhero { padding-top: 64px; }
}
@media (max-width: 520px) {
  .dh-cta { flex-direction: column; align-items: stretch; }
  .dbtn { justify-content: flex-start; }
  .dbtn-s { justify-content: space-between; padding-left: 18px; }
  .dcopy-u { display: none; }
  .dcopy { justify-content: space-between; padding-left: 18px; }
  .dpill-t { max-width: 12em; }
  .docs-page .nmq-static .nmq-card { width: 100%; min-width: 0; }
  .docs-page .blk-cards[data-n] { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { html:has(> body.docs-page) { scroll-behavior: smooth; } }
@keyframes dsheet-in { from { opacity: 0; transform: translateY(-6px); } }

/* 문서 사이 이동 — 왼쪽 칸(위쪽 바)은 제자리, 본문만 부드럽게 */
@view-transition { navigation: auto; }
.dside { view-transition-name: docs-side; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .is-dopen .dpanel { animation: none; }
  .dtoc a, .dtoc a::before { transition: none; }
}
