/* ============================================================
   수업 자료(노트) 읽는 화면 — /notes/{slug}/ (templates/reader.php)
   틀 = 정본 v4 13.6 「읽기」의 변형: 본문 900(10/20 운영자 「본문의 너비를 좀 넓혀봅시다」 — 처음엔 720).
   사이트 공통 칸 1,260 안에서 왼쪽 목차 240 + 사이 64 를 빼면 900 이 거의 끝이다(칸을 이 쪽만 넓히지 않는다 — v4 6.7).
   겉틀 = 현장 강의 실습 페이지(css/onsite-class-v2.css)와 같다 — 사이트 위 메뉴 · 바닥글을 감추고 로고만(운영자 고르기).

   2026-10-20 운영자 「노션을 넘어 오빠두 노트만의 장점」:
     · 왼쪽에 고정된 목차(1080px 이상) — 지금 읽는 세션은 초록 글자 + 왼쪽 2px 표시(정본 4.5 「지금 위치」), 그 세션의 소제목만 펼쳐 보인다.
       그보다 좁으면 위 줄 [목차] → 아래에서 올라오는 판(창 모서리 12 — 정본 v4 창).
     · 세션 = 애플 FAQ 아코디언(apple.com 실측 2026-10-20: 줄마다 가는 선 · 오른쪽 ⊕ 가 열면 45° 돌아 × · 질문 24/600)을
       우리 글자 크기로(세션 제목 20/600) — 맨 바깥 세션 묶음 .nbk-secs(render.php 가 싼다). 안쪽 접기는 왼쪽 얇은 › .
     · 「펼침 버튼(▶)을 누르세요」 안내 문장은 목차가 대신한다(본문에서 지웠다).
   노션처럼 읽기 쉽게: 글 16/1.75 · 블록 사이 12 · 목록 줄 사이 8 · 프롬프트 복사 · 그림 크게 보기.
   같은 날 밤 운영자 7가지(간격 · 링크 · 콜아웃 · 영상 · 파일): 관련 영상과 본문 영상은 그림 왼쪽 · 제목 오른쪽 줄(누르면 큰 창) · 링크 모양 자동 ·
   콜아웃 높이 350 · 본문 파일은 폭 560 카드 — 정본 v4 13.6 ⑥.

   ⭐ 글자색 · 바탕색(nbk-c-* · nbk-bg-* · nbk-mk-*)은 쓴 사람이 고른 「내용 색」이다(노션 아홉 색) — 정본 회색·초록에 잇지 않고
      이 파일의 --nbk-* 리터럴로 둔다(규칙 파일 「사용자가 고르는 색은 자기 이름 리터럴」). 채도 낮은 노션 값 그대로.
   ⛔ 그라디언트 · !important · 왼쪽 색 막대(콜아웃) 없음. 그림 · 칸 8px, 단추 · 꼬리표 6px, 창 12px.
      초록 = 본문 링크 · 목차 지금 칸 · 채운 단추만. ⊕ · › 는 Lucide(circle-plus · chevron-right) 선 아이콘이다(원 모양 단추가 아니다).
   ============================================================ */

/* ── 사이트 겉틀: 위 메뉴 · 꼬리 감춤(로고만 남김), GeneratePress 폭 제한 해제 ── */
body.nbr-page { background: var(--surface-white, #fff); }
/* html 을 앞에 붙여 한 단 무겁게 — 머리글 CSS(nav2 · pcf)가 같은 무게로 뒤에 실려 이겼다(실측 · 라이브 재생 화면 live-player.css 와 같은 방식) */
html body.nbr-page #oppadu-nav,
html body.nbr-page .pcf-r1,
html body.nbr-page .pcf-r2,
html body.nbr-page .pcf-sub,
html body.nbr-page .pcf-allmenu,
html body.nbr-page .oppadu-nav2-msearch, /* 휴대폰 위 검색창 — 머리글 밖에 따로 있다(실측) */
html body.nbr-page .site-footer { display: none; }
body.nbr-page #page,
body.nbr-page #content,
body.nbr-page .site-content {
	display: block;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
body.nbr-page .copy-btn { display: none; } /* 사이트 공용 코드 복사 단추 — 이 화면은 자체 [복사] */
html.nbr-lock { overflow: hidden; } /* 휴대폰 목차 판이 열린 동안 뒤 글이 같이 밀리지 않게 */

.nbr {
	--nbk-ink: var(--gray-900, #181818);
	--nbk-text: var(--text-primary, #343434);
	--nbk-sub: var(--text-secondary, #545454);
	--nbk-muted: var(--text-muted, #727272);
	--nbk-line: var(--gray-200, #e7e7e7);
	--nbk-soft: var(--gray-50, #f7f7f7);
	--nbk-chip: var(--gray-100, #f4f4f4);
	--nbk-link: var(--primary, #037450);
	--nbk-doc: 900px;
	--nbk-toc: 240px;
	/* 블록 간격(10/20 밤 운영자 「li 항목 간격 · 줄 간격/문단 간격 · 콜아웃 위 여백」) — 블록 사이 12 · 목록 줄 사이 8 · 한 문단 안 줄바꿈 6 */
	--nbk-gap: 12px;
	--nbk-li-gap: 8px;
	--nbk-br: 6px;
	--nbk-bar: 56px; /* 위 줄 높이 — 휴대폰은 52 */
	/* 노션 아홉 색 — 글자 */
	--nbk-t-gray: #787774;   --nbk-t-brown: #9f6b53;  --nbk-t-orange: #d9730d;
	--nbk-t-yellow: #cb912f; --nbk-t-green: #448361;  --nbk-t-blue: #337ea9;
	--nbk-t-purple: #9065b0; --nbk-t-pink: #c14c8a;   --nbk-t-red: #d44c47;
	/* 노션 아홉 색 — 바탕 */
	--nbk-b-gray: #f1f1ef;   --nbk-b-brown: #f4eeee;  --nbk-b-orange: #fbecdd;
	--nbk-b-yellow: #fbf3db; --nbk-b-green: #edf3ec;  --nbk-b-blue: #e7f3f8;
	--nbk-b-purple: #f6f3f9; --nbk-b-pink: #faf1f5;   --nbk-b-red: #fdebec;
	/* 아이콘(Lucide 선 아이콘 — mask 로 글자색을 입힌다) */
	--nbk-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8M12 8v8'/%3E%3C/svg%3E");
	--nbk-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
	--nbk-i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h.01M3 12h.01M3 18h.01M8 6h13M8 12h13M8 18h13'/%3E%3C/svg%3E");
	--nbk-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	--nbk-i-dl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E");
	--nbk-i-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
	--nbk-i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
	--nbk-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	color: var(--nbk-text);
	background: var(--surface-white, #fff);
	font-size: 16px;
	line-height: 1.75;
	word-break: keep-all;
	overflow-wrap: anywhere;
	-webkit-text-size-adjust: 100%;
}
.nbr *, .nbr *::before, .nbr *::after { box-sizing: border-box; }
.nbr :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, pre) { margin: 0; padding: 0; }
.nbr :where(button) {
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
	cursor: pointer; line-height: inherit; text-transform: none; letter-spacing: 0; box-shadow: none;
}
.nbr :where(button):hover, .nbr :where(button):focus { background: none; color: inherit; }
.nbr :where(a) { color: inherit; text-decoration: none; }
.nbr :where(img) { max-width: 100%; height: auto; }
.nbr :focus-visible { outline: 2px solid var(--nbk-link); outline-offset: 2px; }

/* ── 위 줄: 로고 · 자료 위치 · [목차](좁은 화면) · [편집] ── */
.nbr-top { border-bottom: 1px solid var(--nbk-line); background: var(--surface-white, #fff); }
.nbr-top-in {
	display: flex; align-items: center; gap: 16px;
	max-width: 1260px; height: var(--nbk-bar); margin: 0 auto; padding: 0 24px;
}
.nbr-logo { display: inline-flex; flex: none; }
.nbr-logo img { display: block; width: 84px; height: auto; }
.nbr-crumb {
	display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
	font-size: 13px; line-height: 1.4; color: var(--nbk-muted); white-space: nowrap; overflow: hidden;
}
.nbr-crumb a { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nbr-crumb a:hover { color: var(--nbk-ink); }
.nbr-crumb-sep { color: var(--gray-300, #d5d5d5); }
.nbr-crumb-now { overflow: hidden; text-overflow: ellipsis; color: var(--nbk-sub); }
.nbr-now { display: none; }
.nbr-top-act { margin-left: auto; display: flex; gap: 8px; flex: none; }
.nbr-edit, .nbr-tocbtn {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border: 1px solid var(--nbk-line); border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--nbk-sub);
}
.nbr-edit:hover, .nbr-tocbtn:hover { background: var(--nbk-soft); color: var(--nbk-ink); }
.nbr-tocbtn { display: none; }
.nbr-tocbtn-ic { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--nbk-i-list) center / 16px no-repeat; mask: var(--nbk-i-list) center / 16px no-repeat; }

/* ── 본문 칸 · 목차 칸 ── */
.nbr-main { position: relative; max-width: 1260px; margin: 0 auto; padding: 56px 24px 120px; }
.nbr-doc { max-width: var(--nbk-doc); margin: 0 auto; min-width: 0; }
.nbr-note {
	margin: 0 0 20px; padding: 10px 14px; border-radius: 8px;
	background: var(--nbk-soft); color: var(--nbk-sub); font-size: 14px; line-height: 1.5;
}
.nbr-head { margin-bottom: 32px; }
.nbr-icon { margin-bottom: 16px; font-size: 52px; line-height: 1; }
.nbr-icon img { display: block; width: 60px; height: 60px; object-fit: contain; border-radius: 8px; }
.nbr-title { font-size: 36px; line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; color: var(--nbk-ink); }
.nbr-meta { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--nbk-muted); }
/* 썸네일(헤더) — 제목 위 3:1(10/20 밤 운영자 「썸네일은 너무 크다 · 가로로 긴 분위기 있는 썸네일」 — 처음 16:9 · PC 900×300).
   그림은 Codex 가 쪽 주제로 그린 결 A 시네마틱 사진(어두운 책상 · 늦은 오후 햇빛 · 글자 없음 — 정본 v4 13.6 ④). 다른 비율은 가운데를 잘라 보인다.
   유튜브 그림이면 누르면 큰 창에서 재생(reader.js 7) · 썸네일이 있으면 쪽 아이콘은 뺀다 */
.nbr-cover { margin: 0 0 28px; }
.nbr-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 8px; background: var(--nbk-soft); }
.nbr-cover-a { position: relative; display: block; border-radius: 8px; }
.nbr-cover-cap { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--nbk-muted); }
.nbr-cover-cap-ic { flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.nbr-cover-a:hover .nbk-yt-play, .nbk-vrow:hover .nbk-yt-play { background: #ff0033; }

/* 바로가기 — 제목 바로 아래 큰 카드(10/21 운영자 시안 L1 「Product Hunt형」 — 로고 · 이름 · 한 줄 · 혜택 줄 + 오른쪽 채운 단추 · 카드 전체가 링크).
   혜택 줄 · 수수료 안내 한 줄은 쪽마다 고른다(「항상 수수료를 받는 건 아니고 클릭 확인용일 때가 많다」). 클릭 수는 reader.js 7절이 보낸다(대표 본인 화면은 세지 않는다).
   정본과 다른 점(운영자가 보고 고름): 혜택 줄 초록 글자 — 성공 글자색(--color-success-text)을 쓴다. */
.nbr-gos { display: grid; gap: 12px; }
.nbr-go { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--nbk-line); border-radius: 8px; color: var(--nbk-text); }
a.nbr-go:hover { background: var(--nbk-soft); }
.nbr-go-logo img { display: block; width: 56px; height: 56px; border-radius: 8px; object-fit: contain; background: var(--nbk-soft); }
.nbr-go-tx { display: flex; flex-direction: column; min-width: 0; }
.nbr-go-name { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--nbk-ink); overflow-wrap: anywhere; }
.nbr-go-desc { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--nbk-sub); }
.nbr-go-perk { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--color-success-text, #036546); }
.nbr-go-gift {
	flex: none; width: 15px; height: 15px; 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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / 15px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.nbr-go-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; max-width: 280px; min-height: 44px; padding: 10px 18px; border-radius: 6px; background: var(--brand-action, #059669); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; } /* 긴 단추 글자는 줄을 바꾼다(휴대폰에서 카드가 옆으로 넘치지 않게 — 10/21 검토) */
a.nbr-go:hover .nbr-go-btn { background: var(--brand-hover, #037450); }
.nbr-go-ext { flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--nbk-i-ext) center / 14px no-repeat; mask: var(--nbk-i-ext) center / 14px no-repeat; }
.nbr-go-disc { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--nbk-muted); }

/* 머리 칸 — 「예제 파일 · 보충 자료」 · 「관련 영상」(제목 바로 아래 · 오빠두 노트만의 칸) */
.nbr-x { margin-bottom: 36px; scroll-margin-top: 24px; }
.nbr-x-h { display: flex; align-items: baseline; gap: 6px; margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--nbk-ink); }
.nbr-x-n { font-size: 15px; font-weight: 500; color: var(--nbk-muted); }
.nbr-files-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nbk-line); border-radius: 8px; overflow: hidden; }
.nbr-files-list > li { margin: 0; }
.nbr-files-list > li + li { border-top: 1px solid var(--nbk-line); }
.nbr-file { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--nbk-text); }
a.nbr-file:hover { background: var(--nbk-soft); }
.nbr-file-ic {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 8px; background: var(--nbk-chip); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--nbk-sub);
}
.nbr-file-ic.is-link::before, .nbr-file-ic.is-pending::before { content: ""; width: 20px; height: 20px; background: var(--nbk-sub); }
.nbr-file-ic.is-link::before { -webkit-mask: var(--nbk-i-link) center / 20px no-repeat; mask: var(--nbk-i-link) center / 20px no-repeat; }
.nbr-file-ic.is-pending::before { background: var(--gray-400, #a2a2a2); -webkit-mask: var(--nbk-i-clock) center / 20px no-repeat; mask: var(--nbk-i-clock) center / 20px no-repeat; }
.nbr-file-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nbr-file-t { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--nbk-ink); overflow-wrap: anywhere; }
.nbr-file-m { font-size: 13px; line-height: 1.45; color: var(--nbk-muted); overflow-wrap: anywhere; }
.nbr-file.is-pending .nbr-file-t { color: var(--nbk-sub); }
.nbr-file-go {
	flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border: 1px solid var(--nbk-line); border-radius: 6px; background: var(--surface-white, #fff);
	font-size: 13px; font-weight: 600; color: var(--nbk-sub);
}
a.nbr-file:hover .nbr-file-go { border-color: var(--gray-300, #d5d5d5); color: var(--nbk-ink); }
.nbr-file-go-ic { width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--nbk-i-dl) center / 15px no-repeat; mask: var(--nbk-i-dl) center / 15px no-repeat; }
.nbr-file-go.is-link .nbr-file-go-ic { -webkit-mask-image: var(--nbk-i-ext); mask-image: var(--nbk-i-ext); }
.nbr-file-go.is-pending { border: 0; padding: 0; background: none; color: var(--gray-400, #a2a2a2); font-weight: 500; }
/* 관련 영상 — 위 「예제 파일」 상자와 같은 가는 선 상자 · 줄마다 그림 왼쪽 · 제목 오른쪽(10/20 밤 운영자 「좌측 썸네일 우측 설명」 — 처음엔 2열 큰 그림) */
.nbr-vids-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nbk-line); border-radius: 8px; overflow: hidden; }
.nbr-vids-list > li { margin: 0; }
.nbr-vids-list > li + li { border-top: 1px solid var(--nbk-line); }
.nbr-x + .nbr-body { margin-top: 4px; }

/* 영상 줄 — 관련 영상 · 본문 영상 같이(render.php oppadu_nb_video_row). 그림 200 × 16:9(휴대폰 132) · 누르면 큰 창(reader.js 4-2) */
.nbk-vrow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; color: var(--nbk-text); }
a.nbk-vrow:hover { background: var(--nbk-soft); }
.nbk-vrow-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--gray-900, #181818); }
.nbk-vrow-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nbk-vrow-th .nbk-yt-play { width: 44px; height: 30px; margin: -15px 0 0 -22px; border-radius: 8px; }
.nbk-vrow-th .nbk-yt-play::after { left: 18px; top: 9px; border-width: 6px 0 6px 10px; }
.nbk-vrow-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nbk-vrow-t {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--nbk-ink); overflow-wrap: anywhere;
}
.nbk-vrow-m { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--nbk-muted); }
.nbk-vrow-ic { flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E") center / 13px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* 영상 큰 창 — 썸네일 · 관련 영상을 누르면(재생 중 닫으면 iframe 을 지워 소리도 멈춘다) */
.nbr-vm {
	position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center;
	padding: 56px 24px 24px; background: rgba(17, 17, 17, 0.86);
}
.nbr-vm[hidden] { display: none; }
.nbr-vm-box { position: relative; width: min(1040px, 100%, calc((100vh - 120px) * 16 / 9)); }
.nbr-vm-frame { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.nbr-vm-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.nbr-vm-x { position: absolute; right: -6px; top: -46px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; color: #fff; }
.nbr .nbr-vm-x:hover, .nbr .nbr-vm-x:focus { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nbr-vm-x-ic { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--nbk-i-x) center / 24px no-repeat; mask: var(--nbk-i-x) center / 24px no-repeat; }

.nbr-tools { display: flex; justify-content: flex-end; margin: -16px 0 8px; }
.nbr-tool { font-size: 13px; font-weight: 600; color: var(--nbk-muted); padding: 4px 6px; border-radius: 6px; }
.nbr-tool:hover { color: var(--nbk-ink); background: var(--nbk-soft); }

/* 목차 — 넓은 화면: 왼쪽에 붙어 따라오는 칸 */
.nbr-toc { font-size: 14px; line-height: 1.45; }
.nbr-toc-hd { display: flex; align-items: center; gap: 12px; min-height: 24px; margin: 0 0 10px; padding-left: 16px; }
.nbr-toc-h { margin-right: auto; font-size: 13px; font-weight: 600; color: var(--nbk-ink); }
.nbr-toc-x { font-size: 12.5px; font-weight: 500; color: var(--nbk-muted); padding: 2px 0; }
.nbr-toc-x:hover { color: var(--nbk-ink); }
.nbr-toc-close { display: none; }
.nbr-toc-list, .nbr-toc-sub { list-style: none; margin: 0; padding: 0; }
.nbr-toc-list { overscroll-behavior: contain; scrollbar-width: thin; }
.nbr-toc-li, .nbr-toc-sub > li { margin: 0; }
.nbr-toc-a {
	display: block; padding: 6px 8px 6px 16px; color: var(--nbk-sub);
	box-shadow: inset 1px 0 0 var(--nbk-line); /* 목차 줄기 — 칸끼리 붙어 한 줄이 된다 */
}
/* 두 줄까지 — 줄임은 글자 칸에만(칸 여백에 셋째 줄이 비치지 않게) · 다 읽으려면 마우스를 올린다(title) */
.nbr-toc-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nbr-toc-a:hover { color: var(--nbk-ink); }
.nbr-toc-li.is-in > .nbr-toc-a { color: var(--nbk-ink); font-weight: 600; }
.nbr-toc-a.is-now { color: var(--nbk-link); font-weight: 600; box-shadow: inset 2px 0 0 var(--nbk-link); }
.nbr-toc-sub { display: none; }
.nbr-toc-li.is-open > .nbr-toc-sub { display: block; }
.nbr-toc-sub .nbr-toc-a { padding-left: 30px; font-size: 13px; color: var(--nbk-muted); }
.nbr-toc-sub .nbr-toc-a.is-now { color: var(--nbk-link); } /* 위 줄과 무게가 같아 지금 소제목이 회색으로 덮였다(10/20 검토) */
.nbr-dim { display: none; }

@media (min-width: 1080px) {
	.nbr-main.has-toc {
		display: grid; grid-template-columns: var(--nbk-toc) minmax(0, var(--nbk-doc));
		column-gap: 64px; align-items: start;
	}
	.nbr-main.has-toc > .nbr-doc { grid-column: 2; grid-row: 1; margin: 0; }
	.nbr-main.has-toc > .nbr-toc { grid-column: 1; grid-row: 1; position: sticky; top: 32px; }
	body.admin-bar .nbr-main.has-toc > .nbr-toc { top: 64px; }
	.nbr-toc-list { max-height: calc(100vh - 110px); overflow-y: auto; }
	body.admin-bar .nbr-toc-list { max-height: calc(100vh - 142px); }
}

/* ── 블록 ──
   간격은 위 토큰 셋으로만(처음엔 6 하나였는데 목록 안 문단만 테마 `li p` 16 이 붙어 들쭉날쭉했다 — render.php 가 목록 안 문단을 <div> 로 그린다).
   한 문단 안 줄바꿈(노션 Shift+Enter)은 <br> 대신 .nbk-br(블록 칸 · 높이 6) — 줄 높이만큼만 떨어져 문단과 구별이 안 됐다. */
.nbr-body > * + *, .nbk-tg-body > * + *, .nbk-kids > * + *, .nbk-col > * + *, .nbk-callout-body > * + * { margin-top: var(--nbk-gap); }
.nbk-br { display: block; height: var(--nbk-br); }
.nbk-br + .nbk-br { height: 1em; } /* 빈 줄(줄바꿈 두 번)은 묶음을 나눈 자리 — 한 칸 더 띄운다(처음엔 12 · 콜아웃 8 로 붙어 보였다 · 10/21 검토) */
.nbk-p { min-height: 1.75em; }
.nbk-p.nbk-blank { min-height: 1em; }
.nbk-kids { padding-left: 24px; }
.nbk-al-center { text-align: center; }
.nbk-al-right { text-align: right; }

/* 세션 묶음 — 애플 FAQ 아코디언: 줄마다 가는 선 · 오른쪽 ⊕(열면 45° 돌아 ×) */
.nbr-body > .nbk-secs { margin-top: 32px; }
.nbr-body > .nbk-secs:first-child { margin-top: 0; }
.nbr-body > :where(.nbk-secs) + * { margin-top: 32px; }
.nbk-secs { border-bottom: 1px solid var(--nbk-line); }
.nbk-secs > .nbk-tg { margin: 0; border-top: 1px solid var(--nbk-line); }
.nbk-secs > .nbk-tg > summary {
	display: flex; align-items: center; gap: 20px; margin: 0; padding: 20px 2px 20px 0;
	border-radius: 0; color: var(--nbk-ink);
}
.nbk-secs > .nbk-tg > summary::before { content: none; }
.nbk-secs > .nbk-tg > summary::after {
	content: ""; flex: none; width: 24px; height: 24px; margin-left: auto;
	background: var(--nbk-muted);
	-webkit-mask: var(--nbk-i-plus) center / 24px no-repeat;
	mask: var(--nbk-i-plus) center / 24px no-repeat;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.nbk-secs > .nbk-tg > summary:hover { background: none; }
.nbk-secs > .nbk-tg > summary:hover::after,
.nbk-secs > .nbk-tg[open] > summary::after { background: var(--nbk-ink); }
.nbk-secs > .nbk-tg[open] > summary::after { transform: rotate(45deg); }
.nbk-secs > .nbk-tg > summary :is(.nbk-h, .nbk-tg-t) {
	min-width: 0; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; /* 20 → 22(10/21 시안 A Mintlify 문서형 — 운영자 고름) */
}
.nbk-secs > .nbk-tg > .nbk-tg-body { padding: 0 0 40px; }

/* 제목 — 본문 바로 아래(세션 밖)와 세션 안을 다르게: 세션 제목(20)보다 세션 안 제목이 크지 않게 */
.nbk-h { color: var(--nbk-ink); scroll-margin-top: 24px; }
.nbk-h1 { font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; margin-top: 52px; }
.nbk-h2 { font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -0.012em; margin-top: 40px; }
.nbk-h3 { font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; margin-top: 28px; }
.nbk-tg-body .nbk-h1 { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; margin-top: 32px; }
.nbk-tg-body .nbk-h2 { font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; margin-top: 24px; }
.nbk-tg-body .nbk-h3 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0; margin-top: 20px; } /* 세션 안 제목 700 → 600(시안 A) */
.nbr-body > .nbk-h + *, .nbk-tg-body > .nbk-h + * { margin-top: 10px; }
.nbr-body > .nbk-h:first-child, .nbk-tg-body > .nbk-h:first-child { margin-top: 0; }
.nbk-tg, .nbk-secs > .nbk-tg { scroll-margin-top: 24px; }

/* 글자 꾸밈 */
.nbr-body strong { font-weight: 700; color: var(--nbk-ink); }
.nbr-body u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* 링크 — 모양은 자동으로(10/20 밤 운영자 「링크에는 스타일을 자동으로」): 쓴 사람이 고른 글자색 · 굵은 글씨와 상관없이 같은 초록 + 밑줄
   (노션에서 「파랑 + 굵게」로 온 링크가 굵은 글씨 규칙에 덮여 검정으로 보였다). 사이트 밖 주소 = 끝에 ↗ · 주소를 그대로 적은 링크 = 한 줄(넘치면 …). */
.nbk-a, .nbk-a :is(strong, em, u, s, span) { color: var(--nbk-link); }
.nbk-a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--nbk-link) 40%, transparent); }
.nbk-a:hover { text-decoration-color: currentColor; }
.nbk-a.is-ext::after {
	content: ""; display: inline-block; width: 0.75em; height: 0.75em; margin-left: 2px; vertical-align: -0.02em; background: currentColor;
	-webkit-mask: var(--nbk-i-ext) center / contain no-repeat; mask: var(--nbk-i-ext) center / contain no-repeat;
}
.nbk-a.is-url { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* ⚠️ 부모 테마 a:hover,a:focus,a:active{color:#1361a0}(0,1,1 · 모든 화면) 가 클래스 하나짜리 규칙을 이겨 파랑이 샌다(10/20 검토)
   → 링크 모양 칸은 .nbr 을 앞에 붙이고 상태마다 색을 다시 적는다. 색 값은 위 규칙과 같다. */
.nbr .nbk-a:is(:hover, :focus, :active) { color: var(--nbk-link); }
.nbr :is(.nbk-file, .nbk-bm, .nbk-pl):is(:hover, :focus, :active) { color: var(--nbk-text); }
.nbr .nbr-crumb a:is(:hover, :focus, :active) { color: var(--nbk-ink); }
.nbr .nbr-toc-a:is(:hover, :focus, :active) { color: var(--nbk-ink); }
.nbr .nbr-toc-a.is-now:is(:hover, :focus, :active) { color: var(--nbk-link); }
.nbr .nbr-edit:is(:hover, :focus, :active) { color: var(--nbk-ink); }
.nbr .nbr-btn:is(:hover, :focus, :active) { color: #fff; }
.nbr .nbr-btn--line:is(:hover, :focus, :active) { color: var(--nbk-ink); }
.nbr :is(.nbr-file, .nbk-vrow, .nbr-cover-a, .nbr-go):is(:hover, :focus, :active) { color: var(--nbk-text); }
.nbk-ic {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.88em;
	padding: 0.12em 0.36em; border-radius: 4px; background: var(--nbk-chip); color: var(--nbk-ink);
}
.nbk-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; object-fit: contain; border-radius: 3px; margin: 0 1px; }
.nbk-c-gray { color: var(--nbk-t-gray); }   .nbk-c-brown { color: var(--nbk-t-brown); }   .nbk-c-orange { color: var(--nbk-t-orange); }
.nbk-c-yellow { color: var(--nbk-t-yellow); } .nbk-c-green { color: var(--nbk-t-green); } .nbk-c-blue { color: var(--nbk-t-blue); }
.nbk-c-purple { color: var(--nbk-t-purple); } .nbk-c-pink { color: var(--nbk-t-pink); }   .nbk-c-red { color: var(--nbk-t-red); }
.nbk-mk-gray { background: var(--nbk-b-gray); }   .nbk-mk-brown { background: var(--nbk-b-brown); }   .nbk-mk-orange { background: var(--nbk-b-orange); }
.nbk-mk-yellow { background: var(--nbk-b-yellow); } .nbk-mk-green { background: var(--nbk-b-green); } .nbk-mk-blue { background: var(--nbk-b-blue); }
.nbk-mk-purple { background: var(--nbk-b-purple); } .nbk-mk-pink { background: var(--nbk-b-pink); }   .nbk-mk-red { background: var(--nbk-b-red); }
.nbk-mk-gray, .nbk-mk-brown, .nbk-mk-orange, .nbk-mk-yellow, .nbk-mk-green, .nbk-mk-blue, .nbk-mk-purple, .nbk-mk-pink, .nbk-mk-red { padding: 0 2px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nbk-bg-gray { background: var(--nbk-b-gray); }   .nbk-bg-brown { background: var(--nbk-b-brown); }   .nbk-bg-orange { background: var(--nbk-b-orange); }
.nbk-bg-yellow { background: var(--nbk-b-yellow); } .nbk-bg-green { background: var(--nbk-b-green); } .nbk-bg-blue { background: var(--nbk-b-blue); }
.nbk-bg-purple { background: var(--nbk-b-purple); } .nbk-bg-pink { background: var(--nbk-b-pink); }   .nbk-bg-red { background: var(--nbk-b-red); }
:is(.nbk-p, .nbk-h, .nbk-li)[class*="nbk-bg-"] { padding: 2px 6px; border-radius: 6px; }

/* 목록 */
.nbk-ul, .nbk-ol, .nbk-check { padding-left: 1.5em; }
.nbk-ul { list-style: disc; }
.nbk-ul .nbk-ul { list-style: circle; }
.nbk-ul .nbk-ul .nbk-ul { list-style: square; }
.nbk-ol { list-style: decimal; }
.nbk-ol .nbk-ol { list-style: lower-alpha; }
.nbk-ol .nbk-ol .nbk-ol { list-style: lower-roman; }
.nbk-li { padding-left: 2px; }
.nbk-li + .nbk-li { margin-top: var(--nbk-li-gap); }
.nbk-li > :is(.nbk-ul, .nbk-ol, .nbk-check) { margin-top: var(--nbk-li-gap); }
.nbk-li > :is(div, figure, details, blockquote, hr, .nbk-file, .nbk-bm, .nbk-pl) { margin-top: var(--nbk-gap); }
.nbk-li::marker { color: var(--gray-400, #a2a2a2); } /* 시안 A — 표식은 옅게 */
.nbk-check { list-style: none; padding-left: 0; }
.nbk-check > .nbk-li { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; padding-left: 0; }
.nbk-check .nbk-kids { grid-column: 2; padding-left: 0; }
.nbk-box { width: 16px; height: 16px; margin-top: 0.38em; border: 1.5px solid var(--gray-400, #a2a2a2); border-radius: 3px; }
.nbk-check .is-done .nbk-box { border-color: var(--brand-action, #059669); background: var(--brand-action, #059669); }
.nbk-check .is-done > .nbk-li-t { color: var(--nbk-muted); text-decoration: line-through; }
.nbk-check .nbk-li-t { min-width: 0; } /* 1fr 의 최소 폭이 한 줄로 그린 긴 주소(.nbk-a.is-url)만큼 늘어 휴대폰에서 넘치지 않게 */

/* 안쪽 접기(세션 안 · 목록 안) — 왼쪽 얇은 › 가 열면 아래로. 처음엔 접혀 있다(노션과 같다) */
.nbk-tg > summary {
	display: flex; align-items: flex-start; gap: 6px; list-style: none; cursor: pointer;
	padding: 2px 0; border-radius: 6px;
}
.nbk-tg > summary::-webkit-details-marker { display: none; }
.nbk-tg > summary::before {
	content: ""; flex: none; width: 20px; height: 20px; margin-top: var(--nbk-cv, 4px);
	background: var(--nbk-muted);
	-webkit-mask: var(--nbk-i-chev) center / 18px no-repeat;
	mask: var(--nbk-i-chev) center / 18px no-repeat;
	transition: transform 0.15s ease;
}
.nbk-tg[open] > summary::before { transform: rotate(90deg); }
.nbk-tg > summary:hover::before { background: var(--nbk-ink); }
.nbk-tg-t { min-width: 0; }
.nbk-tg > summary .nbk-h { margin-top: 0; }
/* › 를 첫 줄 가운데에 — (줄 높이 − 20) ÷ 2. 세션 밖(2단 안 등)은 큰 제목, 세션 안은 작은 제목 */
.nbk-tg-h1 > summary { --nbk-cv: 7px; }
.nbk-tg-h2 > summary { --nbk-cv: 5px; }
.nbk-tg-h3 > summary { --nbk-cv: 3px; }
.nbk-tg-body .nbk-tg-h1 > summary { --nbk-cv: 3px; }
.nbk-tg-body :is(.nbk-tg-h2, .nbk-tg-h3) > summary { --nbk-cv: 2px; }
.nbk-tg-body { padding: 8px 0 8px 26px; } /* 펼친 제목 바로 밑 글이 붙어 보였다(10/20 밤) — 위 4 → 8 */
.nbk-tg-h { margin-top: 14px; }
.nbk-tg-body > .nbk-tg-h:first-child { margin-top: 0; }

/* 인용 — 왼쪽 막대 대신 옅은 면(규칙: 왼쪽 색 막대 금지) */
.nbk-quote { padding: 12px 16px; border-radius: 8px; background: var(--nbk-soft); color: var(--nbk-sub); }
.nbk-quote > * + * { margin-top: 6px; }

/* 콜아웃 — 안은 조금 촘촘하게 · 긴 것은 높이 350 에서 안쪽으로 내려 본다(10/20 밤 운영자 「콜아웃도 최대 높이 제한」 — 코드 칸과 같은 350 · 테마 pre 규칙)
   10/21 시안 A 「Mintlify 문서형」(운영자 고름): 흰 바탕 + 가는 선 · 아이콘 없는 콜아웃은 왼쪽에 ⓘ · 쓴 사람이 고른 색은 그 옅은 면 + 같은 색 선 + 같은 색 ⓘ.
   왼쪽 색 막대가 아니라 둘레 선이다(규칙: 왼쪽 컬러바 금지) · 그림자 없음. */
.nbk-callout { --nbk-gap: 8px; --nbk-li-gap: 4px; --nbk-br: 4px; --nbk-co: var(--nbk-muted); display: flex; gap: 10px; padding: 14px 16px; border-radius: 8px; background: var(--surface-white, #fff); border: 1px solid var(--nbk-line); }
.nbk-callout.nbk-bg-gray { background: var(--surface-white, #fff); }
.nbk-callout.nbk-bg-brown { --nbk-co: var(--nbk-t-brown); background: color-mix(in srgb, var(--nbk-t-brown) 5%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-brown) 26%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-orange { --nbk-co: var(--nbk-t-orange); background: color-mix(in srgb, var(--nbk-t-orange) 7%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-orange) 26%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-yellow { --nbk-co: var(--nbk-t-yellow); background: color-mix(in srgb, var(--nbk-t-yellow) 8%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-yellow) 30%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-green { --nbk-co: var(--nbk-t-green); background: color-mix(in srgb, var(--nbk-t-green) 6%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-green) 26%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-blue { --nbk-co: var(--nbk-t-blue); background: color-mix(in srgb, var(--nbk-t-blue) 6%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-blue) 24%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-purple { --nbk-co: var(--nbk-t-purple); background: color-mix(in srgb, var(--nbk-t-purple) 6%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-purple) 24%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-pink { --nbk-co: var(--nbk-t-pink); background: color-mix(in srgb, var(--nbk-t-pink) 6%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-pink) 24%, var(--surface-white, #fff)); }
.nbk-callout.nbk-bg-red { --nbk-co: var(--nbk-t-red); background: color-mix(in srgb, var(--nbk-t-red) 6%, var(--surface-white, #fff)); border-color: color-mix(in srgb, var(--nbk-t-red) 24%, var(--surface-white, #fff)); }
.nbk-callout.is-noicon { position: relative; padding-left: 46px; }
.nbk-callout.is-noicon::before {
	content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; background: var(--nbk-co);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.nbk-callout-ic { flex: none; width: 24px; font-size: 20px; line-height: 1.5; text-align: center; }
.nbk-callout-ic img { width: 22px; height: 22px; margin-top: 3px; object-fit: contain; }
.nbk-callout-body { flex: 1; min-width: 0; max-height: 350px; overflow-y: auto; scrollbar-width: thin; }

/* 코드 · 프롬프트 — 흰 칸 + 가는 선 · 위 띠 아래 가는 선(10/21 시안 A — 처음엔 회색 면) */
.nbk-code { position: relative; border-radius: 8px; background: var(--surface-white, #fff); border: 1px solid var(--nbk-line); }
.nbk-code-bar { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 4px 8px 4px 14px; border-bottom: 1px solid var(--nbk-line); }
.nbk-code-lang { font-size: 12px; font-weight: 600; color: var(--nbk-muted); }
.nbk-copy {
	font-size: 12.5px; font-weight: 600; color: var(--nbk-sub);
	padding: 4px 10px; border-radius: 6px; border: 1px solid var(--nbk-line); background: var(--surface-white, #fff);
}
.nbk-copy:hover { color: var(--nbk-ink); border-color: var(--gray-300, #d5d5d5); }
.nbk-copy.is-done { color: var(--color-success-text, #036546); border-color: var(--color-success, #059669); }
.nbk-code pre {
	margin: 0; padding: 12px 16px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "D2Coding", monospace;
	font-size: 13.5px; line-height: 1.7; color: var(--nbk-ink); background: none; border: 0;
}
.nbk-code code { font: inherit; background: none; padding: 0; color: inherit; }

.nbk-hr { border: 0; height: 1px; background: var(--nbk-line); margin: 18px 0; }

/* 그림 — 크기 세 단계(10/20 운영자 「몇 가지 수치로 · 더 큰 이미지면 작게」): 단계마다 상자 안에 비율대로 줄여 넣는다.
   작게 320 × 320 · 보통 480 × 480(기본) · 크게 720 × 540. 상자보다 작은 그림은 늘리지 않는다(흐려진다) — 누르면 원래 크기로 크게 보기.
   --nbk-dw = render.php 가 원래 크기로 미리 센 보일 넓이(그림이 실리기 전에도 자리가 맞다). 모르는 그림은 상자 max 만으로 줄인다.
   단계 값은 render.php oppadu_nb_img_box · 편집기 schema.jsx IMG_BOX 와 같이 고친다. */
.nbk-img { --nbk-iw: 480px; --nbk-ih: 480px; max-width: var(--nbk-dw, var(--nbk-iw)); }
.nbk-img.is-s { --nbk-iw: 320px; --nbk-ih: 320px; }
.nbk-img.is-l { --nbk-iw: 720px; --nbk-ih: 540px; }
.nbk-img.nbk-al-center { margin-left: auto; margin-right: auto; }
.nbk-img.nbk-al-right { margin-left: auto; }
.nbk-img img {
	display: block; width: var(--nbk-dw, auto); max-width: 100%; height: auto; max-height: var(--nbk-ih);
	object-fit: contain; /* 셈이 1px 어긋나도 찌그러지지 않게 */
	border-radius: 8px; cursor: zoom-in; background: var(--nbk-soft);
}
.nbk-img.nbk-al-center img { margin-left: auto; margin-right: auto; }
.nbk-img.nbk-al-right img { margin-left: auto; }
.nbk-img figcaption, .nbk-yt figcaption, .nbk-video figcaption, .nbk-audio figcaption, .nbk-embed figcaption {
	margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--nbk-muted);
}

/* 본문 유튜브 — 가는 선 카드 하나(폭 640) 안에 영상 줄(10/20 밤 운영자 「임베딩된 영상도 이미지처럼 크기 제한」 — 처음엔 본문 폭 16:9 · 그 자리 재생) */
.nbk-yt { max-width: 640px; border: 1px solid var(--nbk-line); border-radius: 8px; overflow: hidden; }
.nbk-yt-play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px;
	border-radius: 12px; background: rgba(24, 24, 24, 0.78);
}
.nbk-yt-play::after {
	content: ""; position: absolute; left: 26px; top: 13px;
	border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.nbk-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: var(--gray-900, #181818); }
.nbk-embed iframe { aspect-ratio: auto; height: var(--nbk-h, 420px); background: var(--nbk-soft); }
/* 영상(10/21 — Mux MP4 · 그림과 같은 세 상자 · 정하지 않으면 「크게」) — --nbk-dw = render.php 가 가로세로로 미리 센 넓이(세로 영상은 높이 540 에 맞춰 좁다) */
.nbk-video { width: var(--nbk-dw, 720px); max-width: 100%; }
.nbk-video.nbk-al-center { margin-left: auto; margin-right: auto; }
.nbk-video.nbk-al-right { margin-left: auto; }
.nbk-video video { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--gray-900, #181818); }
.nbk-audio audio { display: block; width: 100%; max-width: 460px; }

/* 파일 · 링크 카드 · 준비 중 · 하위 쪽
   본문 중간 파일 = 머리 칸 「예제 파일」 줄과 같은 모양의 작은 카드(10/20 밤 운영자 「본문 중간에 파일을 넣은 경우 보기/쓰기」 — 처음엔 본문 폭 한 줄 · 받기 글자만):
   폭 560(보통 그림 480 언저리 — 눈이 오른쪽 끝 [받기]까지 멀리 안 간다) · 형식 칸 40 · 이름 15/600 · 크기 13 · [받기] 테두리 단추 6 */
.nbk-file, .nbk-bm, .nbk-pl {
	display: flex; align-items: center; gap: 12px; padding: 10px 14px;
	border: 1px solid var(--nbk-line); border-radius: 8px; color: var(--nbk-text);
}
.nbk-file:hover, .nbk-bm:hover, .nbk-pl:hover { background: var(--nbk-soft); }
.nbk-file { max-width: 560px; gap: 14px; padding: 12px 14px; }
.nbk-file-ic {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 8px; background: var(--nbk-chip);
	font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--nbk-sub);
}
.nbk-file-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nbk-file-name { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--nbk-ink); overflow-wrap: anywhere; }
.nbk-file-meta { font-size: 13px; line-height: 1.45; color: var(--nbk-muted); }
.nbk-file-meta:empty { display: none; }
.nbk-file-dl {
	flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border: 1px solid var(--nbk-line); border-radius: 6px; background: var(--surface-white, #fff);
	font-size: 13px; font-weight: 600; color: var(--nbk-sub);
}
.nbk-file:hover .nbk-file-dl { border-color: var(--gray-300, #d5d5d5); color: var(--nbk-ink); }
.nbk-file-dl-ic { width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--nbk-i-dl) center / 15px no-repeat; mask: var(--nbk-i-dl) center / 15px no-repeat; }
/* 링크 카드 — 노션 북마크 배치(10/21 운영자 「노션 북마크로」 + 「우리 규칙에 맞춤」 = 모서리 8 · 사이트 회색 · 제목 16/600).
   그림 왼쪽 104 × 154(노션 실측) · 위에 사이트 아이콘 20 · 제목 한 줄 · 설명 두 줄 · 맨 아래 주소 한 줄. 그림이 없는 사이트는 글만(높이는 글만큼).
   그림 · 아이콘은 NAS 가 줄여 둔 우리 사본(includes/links.php) — 편집기 schema.jsx Bookmark 와 같은 값. */
.nbk-bm { align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.nbk-bm.has-img { height: 156px; }
.nbk-bm-img { flex: none; width: 104px; background: var(--nbk-soft); }
.nbk-bm-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nbk-bm-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px 24px 14px; }
.nbk-bm:not(.has-img) .nbk-bm-tx { padding: 14px 20px; }
.nbk-bm-ic { display: block; width: 20px; height: 20px; margin-bottom: 6px; }
.nbk-bm-ic img { display: block; width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.nbk-bm-t { font-size: 16px; font-weight: 600; line-height: 22px; color: var(--nbk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbk-bm-d { margin-top: 3px; font-size: 13px; line-height: 18px; color: var(--nbk-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nbk-bm-u { margin-top: auto; padding-top: 8px; font-size: 13px; line-height: 18px; color: var(--nbk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 낮은 카드(10/30 운영자 「링크카드 높이를 높게(현행) 또는 낮게(새 스타일)로 선택」 — 블록 size 'short'):
   높이 88 · 그림 132 × 88(사이트 그림 1.91:1 이 덜 잘린다) · 제목 15 한 줄 · 설명 한 줄 · 아이콘 16 은 주소 줄 앞으로(노션 북마크처럼) */
.nbk-bm--short.has-img { height: 88px; }
.nbk-bm--short .nbk-bm-img { width: 132px; }
.nbk-bm--short .nbk-bm-tx, .nbk-bm--short:not(.has-img) .nbk-bm-tx {
	display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; padding: 10px 16px;
}
.nbk-bm--short .nbk-bm-t, .nbk-bm--short .nbk-bm-d { grid-column: 1 / -1; }
.nbk-bm--short .nbk-bm-t { font-size: 15px; line-height: 20px; }
.nbk-bm--short .nbk-bm-d { margin-top: 2px; -webkit-line-clamp: 1; }
.nbk-bm--short .nbk-bm-ic { grid-row: 3; align-self: center; width: 16px; height: 16px; margin: 6px 6px 0 0; }
.nbk-bm--short .nbk-bm-ic img { width: 16px; height: 16px; }
.nbk-bm--short .nbk-bm-u { grid-row: 3; grid-column: 2; margin-top: 6px; padding-top: 0; font-size: 12.5px; line-height: 16px; }
.nbk-bm--short .nbk-bm-tx:not(:has(.nbk-bm-ic)) .nbk-bm-u { grid-column: 1 / -1; }
.nbk-pending { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--nbk-soft); }
.nbk-pending-ic {
	flex: none; width: 22px; height: 22px; background: var(--nbk-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / 22px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.nbk-pending-tx { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--nbk-muted); }
.nbk-pending-tx strong { font-size: 14px; color: var(--nbk-sub); }
.nbk-pl { padding: 8px 12px; border-color: transparent; margin-left: -12px; }
.nbk-pl:hover { border-color: transparent; }
.nbk-pl-ic { flex: none; width: 22px; font-size: 18px; line-height: 1; text-align: center; }
.nbk-pl-ic img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; display: block; }
.nbk-pl-ic--doc {
	height: 20px; background: var(--nbk-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E") center / 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.nbk-pl-t { font-weight: 600; color: var(--nbk-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--nbk-line); }
.nbk-pl-tag { flex: none; font-size: 12px; font-weight: 600; color: var(--nbk-sub); padding: 1px 8px; border-radius: 6px; background: var(--nbk-chip); }
.nbr-kids { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--nbk-line); display: flex; flex-direction: column; gap: 2px; }

/* 표 — 휴대폰은 가로로 밀어 본다 */
.nbk-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nbk-table table { border-collapse: collapse; width: max(100%, var(--nbk-tw, 0px)); min-width: 100%; font-size: 14.5px; line-height: 1.6; margin: 0; }
.nbk-table th, .nbk-table td { border: 1px solid var(--nbk-line); padding: 8px 10px; vertical-align: top; text-align: left; }
.nbk-table th { background: var(--nbk-soft); font-weight: 600; color: var(--nbk-ink); }

/* 2단 — 휴대폰은 한 줄씩 */
.nbk-cols { display: grid; grid-template-columns: var(--nbk-cols, 1fr 1fr); gap: 24px; align-items: start; }
.nbk-col { min-width: 0; }

/* 그림 크게 보기 */
.nbr-lb {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	padding: 24px; background: rgba(17, 17, 17, 0.86); cursor: zoom-out;
}
.nbr-lb[hidden] { display: none; }
.nbr-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

/* 잠김 · 없음 */
.nbr-main--gate { padding-top: 96px; }
.nbr-gate { max-width: 520px; margin: 0 auto; text-align: center; }
.nbr-gate-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--nbk-sub); padding: 3px 8px; border-radius: 6px; background: var(--nbk-chip); margin-bottom: 14px; }
.nbr-gate-t { font-size: 26px; line-height: 1.35; font-weight: 700; color: var(--nbk-ink); }
.nbr-gate-d { margin-top: 10px; font-size: 15px; color: var(--nbk-sub); }
.nbr-gate-act { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.nbr-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px;
	border-radius: 6px; font-size: 14px; font-weight: 600; color: #fff; background: var(--brand-action, #059669);
}
.nbr-btn:hover { background: var(--brand-hover, #037450); color: #fff; }
.nbr-btn--line { color: var(--nbk-sub); background: var(--surface-white, #fff); border: 1px solid var(--nbk-line); }
.nbr-btn--line:hover { background: var(--nbk-soft); color: var(--nbk-ink); }

/* ── 좁은 화면(태블릿 · 휴대폰): 위 줄이 붙어 따라오고 [목차] → 아래에서 올라오는 판 ── */
@media (max-width: 1079px) {
	.nbr.has-toc .nbr-top { position: sticky; top: 0; z-index: 60; }
	.nbr.has-toc .nbr-crumb { display: none; }
	.nbr.has-toc .nbr-now {
		display: block; flex: 1; min-width: 0; margin: 0;
		font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--nbk-sub);
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}
	.nbr-tocbtn { display: inline-flex; }
	.nbr.has-toc :is(.nbk-h, .nbk-tg, .nbr-x) { scroll-margin-top: calc(var(--nbk-bar) + 16px); }

	.nbr-toc {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001;
		display: none; flex-direction: column; max-height: min(78vh, 680px);
		padding: 16px 8px calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--surface-white, #fff); border-radius: 12px 12px 0 0;
		box-shadow: 0 -8px 32px rgba(17, 17, 17, 0.16);
	}
	.nbr.is-toc-open .nbr-toc { display: flex; }
	.nbr-toc-hd { padding: 0 4px 0 16px; margin-bottom: 8px; }
	.nbr-toc-h { font-size: 15px; }
	.nbr-toc-x { font-size: 13px; }
	.nbr-toc-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 6px; color: var(--nbk-sub); }
	.nbr-toc-close-ic { width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--nbk-i-x) center / 20px no-repeat; mask: var(--nbk-i-x) center / 20px no-repeat; }
	.nbr-toc-list { flex: 1; min-height: 0; overflow-y: auto; }
	.nbr-toc-a { padding: 10px 12px 10px 16px; font-size: 15px; }
	.nbr-toc-sub .nbr-toc-a { padding-left: 30px; font-size: 14px; }
	.nbr.is-toc-open .nbr-dim { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(17, 17, 17, 0.36); }
}
/* 관리자 막대(대표 계정)가 위에 붙어 있으면 그 아래에 */
@media (min-width: 601px) and (max-width: 1079px) {
	body.admin-bar .nbr.has-toc .nbr-top { top: 46px; }
}
@media (min-width: 783px) and (max-width: 1079px) {
	body.admin-bar .nbr.has-toc .nbr-top { top: 32px; }
}

/* 휴대폰 */
@media (max-width: 760px) {
	.nbr { --nbk-bar: 52px; }
	.nbr-top-in { padding: 0 16px; gap: 12px; }
	.nbr-crumb { display: none; }
	.nbr-main { padding: 28px 16px 80px; }
	.nbr-head { margin-bottom: 24px; }
	.nbr-title { font-size: 26px; line-height: 1.3; }
	.nbr-icon { font-size: 44px; }
	.nbr-icon img { width: 52px; height: 52px; }
	.nbk-h1 { font-size: 22px; }
	.nbk-h2 { font-size: 20px; }
	.nbk-h3 { font-size: 17px; }
	.nbk-tg-body .nbk-h1 { font-size: 18px; }
	.nbk-tg-body .nbk-h2 { font-size: 17px; }
	.nbk-secs > .nbk-tg > summary { gap: 16px; padding: 16px 0; }
	.nbk-secs > .nbk-tg > summary :is(.nbk-h, .nbk-tg-t) { font-size: 19px; }
	.nbk-secs > .nbk-tg > summary::after { width: 22px; height: 22px; -webkit-mask-size: 22px; mask-size: 22px; }
	.nbk-secs > .nbk-tg > .nbk-tg-body { padding-bottom: 32px; }
	.nbk-tg-body { padding-left: 20px; }
	.nbk-code pre { font-size: 13px; }
	.nbk-callout { padding: 12px 14px; }
	.nbk-callout.is-noicon { padding-left: 40px; }
	.nbk-callout.is-noicon::before { left: 13px; top: 15px; }
	.nbr-go { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
	.nbr-go-logo img { width: 44px; height: 44px; }
	.nbr-go-name { font-size: 17px; }
	.nbr-go-btn { grid-column: 1 / -1; max-width: none; min-height: 42px; padding: 8px 16px; }
	.nbk-cols { grid-template-columns: 1fr; gap: 12px; }
	.nbr-cover { margin-bottom: 20px; }
	.nbr-x { margin-bottom: 28px; }
	.nbr-file { gap: 12px; padding: 12px 14px; }
	.nbr-file-ic { width: 36px; height: 36px; }
	.nbr-file-go { padding: 0 10px; }
	.nbk-vrow { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 10px; }
	.nbk-vrow-t { font-size: 14px; }
	.nbk-file { gap: 12px; }
	.nbk-file-ic { width: 36px; height: 36px; }
	.nbk-file-dl { padding: 0 10px; }
	.nbr-vm { padding: 56px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.nbk-tg > summary::before,
	.nbk-secs > .nbk-tg > summary::after { transition: none; }
}

@media print {
	.nbr-top, .nbr-toc, .nbr-dim, .nbr-tools, .nbk-copy, .nbr-vm, .nbr-file-go { display: none; }
	.nbr-main, .nbr-main.has-toc { display: block; padding: 0; }
	.nbr-doc { max-width: none; }
	.nbk-tg-body { display: block; }
	.nbk-secs > .nbk-tg > summary::after { content: none; }
	.nbk-callout-body { max-height: none; overflow: visible; } /* 인쇄 땐 안쪽 스크롤 칸이 펼쳐지지 않아 350 아래가 잘린다 */
	.nbk-a.is-url { display: inline; white-space: normal; }
}
