/* CopyBuffer 안내 페이지 — 자바스크립트 없음, 외부 글꼴 없음 */
:root {
  --bg: #fcfdff;
  --surface: #ffffff;
  --surface-2: #f2f4fb;
  --ink: #2e2230;
  --muted: #645767;
  --line: #e9ebf5;
  --accent: #5b45d6;
  --accent-soft: #ece8ff;
  --mint: #1f8a66;
  --mint-soft: #ddf6ec;
  --pink: #d6456e;
  --pink-soft: #ffe4ec;
  --code-bg: #1f1a26;
  --code-ink: #f1ecf6;
  --code-dim: #a99db3;
  --hero: linear-gradient(160deg, #eef0ff 0%, #e6ecff 55%, #e8f4ff 100%);
  --shadow: 0 1px 2px rgba(46, 34, 48, .06), 0 8px 28px rgba(122, 74, 110, .10);
  --radius: 18px;
  --max: 1100px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121a;
    --surface: #1f1a25;
    --surface-2: #261f2d;
    --ink: #f4eef6;
    --muted: #b7abbd;
    --line: #352c3d;
    --accent: #b5a8ff;
    --accent-soft: #2e2852;
    --mint: #7fe0bd;
    --mint-soft: #173a2f;
    --pink: #ff9ab7;
    --pink-soft: #3d1f2b;
    --code-bg: #0f0c13;
    --hero: linear-gradient(160deg, #1a1830 0%, #191d34 55%, #141f33 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(en) body, body:lang(en) { word-break: normal; overflow-wrap: break-word; }
/* 일본어·중국어: 그 언어 글꼴을 먼저 (한국어 글꼴로 한자가 그려지지 않게), 글자 단위 줄바꿈 + 금칙 처리 */
body:lang(ja), .lang-menu a:lang(ja), .lang-links a:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
body:lang(zh-Hant), .lang-menu a:lang(zh-Hant), .lang-links a:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
body:lang(zh-Hans), .lang-menu a:lang(zh-Hans), .lang-links a:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
body:lang(ja), body:lang(zh) { word-break: normal; overflow-wrap: break-word; line-break: strict; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .4em; text-align: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface); color: var(--ink); font-size: .85em; line-height: 1.6;
}
:not(pre) > code { background: var(--accent-soft); color: var(--ink); padding: .1em .35em; border-radius: 5px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* 머리말 */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav .lang { border: 1px solid var(--line); }
@media (max-width: 760px) { .site-nav > a:not(.lang):not(.cta-small) { display: none; } }
/* 언어 고르기 — 자바스크립트 없이 details 로 펼친다 */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .95rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: "▾"; margin-left: 4px; font-size: .8em; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: var(--ink); background: var(--surface-2); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; list-style: none; margin: 0; padding: 6px; min-width: 9.5em; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.site-nav .lang-menu a { display: block; white-space: nowrap; }
.lang-menu a[aria-current="page"], .lang-links a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.cta-small { background: var(--ink); color: var(--bg) !important; font-weight: 700; }
.cta-small:hover { background: var(--ink) !important; opacity: .9; }

/* 첫 화면 */
.hero { background: var(--hero); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 36px; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; }
.meta li::before { content: "✓ "; color: var(--mint); font-weight: 700; }

/* 패널 모형 */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: .9rem; }
.mock-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-search { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mock-search b { color: var(--ink); font-weight: 600; }
.mock-caret { width: 2px; height: 1.1em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mock-caret { animation: none; } }
.mock-tabs { display: flex; background: var(--surface-2); border-radius: 8px; padding: 2px; font-size: .78rem; }
.mock-tabs span { padding: 2px 8px; border-radius: 6px; color: var(--muted); white-space: nowrap; }
.mock-tabs .on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mock-body { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 260px; }
@media (max-width: 480px) { .mock-body { grid-template-columns: 1fr; } .mock-preview { display: none; } }
.mock-list { list-style: none; margin: 0; padding: 6px; border-right: 1px solid var(--line); }
.mock-list li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; }
.mock-list li .t { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.mock-list .sel { background: var(--accent); color: #fff; }
.mock-list .sel .n { color: rgba(255,255,255,.75); }
.mock-list .n { color: var(--muted); font-size: .75rem; width: 1.4em; flex: none; }
.mock-list .tag { font-size: .68rem; padding: 0 6px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-weight: 700; flex: none; }
.mock-list .sel .tag { background: rgba(255,255,255,.2); color: #fff; }
.mock-list .mark { color: var(--pink); font-weight: 800; flex: none; }
.thumb { width: 22px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, #ffd1dc, #c9bfff); flex: none; }
.mock-preview { padding: 14px; color: var(--muted); font-size: .82rem; }
.mock-preview pre { margin: 0 0 10px; white-space: pre-wrap; color: var(--ink); font-size: .8rem; background: var(--surface-2); padding: 10px; border-radius: 8px; }
.mock-foot { border-top: 1px solid var(--line); padding: 8px 14px; color: var(--muted); font-size: .76rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* 구역 */
section { padding: 84px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }
section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-bottom: 36px; }

/* 한눈에 */
.summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .summary { grid-template-columns: 1fr; } }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }

/* 기능 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 14px; background: var(--accent-soft); }
.card.mint .ico { background: var(--mint-soft); }
.card.pink .ico { background: var(--pink-soft); }
.card p { color: var(--muted); margin-bottom: .6em; }
.card .keys { font-size: .88rem; color: var(--muted); margin: 0; }

/* 코드 */
pre.code { background: var(--code-bg); color: var(--code-ink); border-radius: 14px; padding: 20px 22px; overflow-x: auto; line-height: 1.65; margin: 0 0 18px; }
pre.code .c { color: var(--code-dim); }
pre.code .p { color: #ffb3c9; user-select: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 6px; background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--mint); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.45em + 3px); width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: .88rem; color: var(--muted); font-weight: 700; }
tbody th { font-weight: 700; }
td.good { color: var(--mint); font-weight: 700; }
td.bad { color: var(--pink); font-weight: 600; }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: .9rem; caption-side: bottom; }

/* 맞는 분 / 안 맞는 분 */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
.fit ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.fit li { margin-bottom: 8px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* 다운로드 */
.download { text-align: center; }
.download .icon-big { width: 128px; height: 128px; margin: 0 auto 18px; display: block; }
.price { font-size: 1.1rem; color: var(--muted); }
.price strong { color: var(--ink); font-size: 1.6rem; }
.launch { display: inline-block; margin: 0 0 6px; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .95rem; }
.launch strong { color: var(--accent); }
.download .actions { justify-content: center; }
.small { font-size: .88rem; color: var(--muted); }

/* 안내 문서 */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 84px; align-self: start; font-size: .92rem; }
@media (max-width: 900px) { .toc { position: static; } }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc article h2 { margin-top: 2.2em; padding-top: .4em; scroll-margin-top: 80px; }
.doc article h2:first-of-type { margin-top: 0; }
.doc article h3 { margin-top: 1.6em; scroll-margin-top: 80px; }
.doc article .table-wrap { margin: 0 0 1.2em; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.2em; }
.note.warn { background: var(--pink-soft); }
.updated { color: var(--muted); font-size: .9rem; }

/* 꼬리말 */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-footer a { color: var(--muted); }
.site-footer .lang-links { flex-basis: 100%; margin-left: 0; }

/* 간격 도우미 (인라인 style 없이 — CSP style-src 'self') */
.mt-lg { margin-top: 48px; }
.mt-sm { margin-top: 18px; }
.download .lede { margin-left: auto; margin-right: auto; }
.h1-sub { display: block; margin-top: .35em; font-size: .52em; font-weight: 700; letter-spacing: -0.01em; color: var(--accent); }
.mock-preview pre { white-space: pre; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; }
/* 격자 안의 긴 내용(코드·URL)이 화면 밖으로 밀어내지 않게 */
.hero .wrap > *, .summary > *, .split > *, .fit > *, .doc > *, .mock-body > *, .grid > * { min-width: 0; }
.mock { max-width: 100%; }
/* 선택된 줄: 강조색 위 글자색 (다크 모드에선 강조색이 밝아서 어두운 글자) */
:root { --on-accent: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --on-accent: #15121a; } }
.mock-list .sel, .mock-list .sel .tag { color: var(--on-accent); }
.mock-list .sel .n { color: var(--on-accent); opacity: .7; }
/* 열이 많은 비교표는 좁은 화면에서 옆으로 스크롤 */
table.wide { min-width: 600px; }
table.wide th, table.wide td { overflow-wrap: normal; }
@media (max-width: 480px) {
  th, td { padding: 10px 12px; }
  .facts div { grid-template-columns: 5.5em 1fr; }
}
.doc-head { padding-top: 48px; max-width: 46em; }
.doc-head + .doc { padding-top: 24px; }
.note p:last-child { margin-bottom: 0; }

/* 키캡 묶음 [[⌘⇧V]] — 키 사이를 조금 띄운다 */
.combo { display: inline-flex; gap: 2px; vertical-align: baseline; white-space: nowrap; }
.combo kbd { min-width: 1.5em; }

/* 머리말: 아이콘·언어 메뉴 */
.brand img { border-radius: 7px; }
.lang-menu .globe { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.lang-menu ul { max-height: calc(100vh - 90px); overflow-y: auto; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .lang-menu .lang-name { display: none; }
  .lang-menu .globe { margin-right: 0; }
  .site-nav a.cta-small { padding: 6px 10px; }
}

/* 일본어·중국어 제목: 문장부호 뒤(<wbr>)에서만 줄을 바꾸고, 너무 긴 덩어리는 알아서 끊는다 */
body:lang(ja) :is(h1, h2, h3), body:lang(zh) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
body:lang(hi) h1, body:lang(hi) h2 { line-height: 1.4; letter-spacing: 0; }

/* 가이드 목록 (첫 화면 · 가이드 모음 · 관련 가이드) */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.guide-list a { position: relative; display: block; height: 100%; padding: 22px 52px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list h2, .guide-list h3 { font-size: 1.08rem; margin: 0 0 .4em; color: var(--ink); }
.guide-list p { margin: 0; color: var(--muted); font-size: .94rem; }
.guide-list .arrow { position: absolute; right: 20px; top: 24px; width: 20px; height: 20px; color: var(--accent); }

/* 가이드 글 */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.doc-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
.doc-head .lede { font-size: 1.08rem; color: var(--muted); }
.answer { margin: 22px 0 0; padding: 18px 22px; background: var(--mint-soft); border-radius: 14px; border-left: 4px solid var(--mint); }
.answer .label { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mint); }
.answer p:last-child { margin-bottom: 0; }
.doc.single { grid-template-columns: minmax(0, 46em); }
.prose > p, .prose li { max-width: 46em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose pre.code { margin: 0 0 1.2em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 48px 0 0; padding: 22px; background: var(--hero); border: 1px solid var(--line); border-radius: var(--radius); }
.cta img { width: 48px; height: 48px; flex: none; }
.cta div { flex: 1 1 260px; }
.cta p { margin: 0; color: var(--muted); }
.cta .cta-title { color: var(--ink); font-weight: 800; font-size: 1.1rem; margin-bottom: 2px; }
.related { margin-top: 48px; }
.related h2 { font-size: 1.3rem; margin-top: 0 !important; }
.download .lede { max-width: 34em; }

/* Furl — 히어로 가짜 메뉴 막대 */
.mock.menubars{display:flex;flex-direction:column;gap:.75rem;margin:0;max-width:440px}
.menubar{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(#2a2730,#1b1922);color:#e9e6ef;border-radius:12px;padding:.5rem .8rem;font-size:.82rem;box-shadow:0 10px 30px rgba(0,0,0,.22)}
.menubar .mb-app{font-weight:600;opacity:.95}
.menubar .mb-right{display:flex;align-items:center;gap:.55rem}
.menubar .mb-group{display:flex;gap:.45rem;align-items:center}
.menubar .mb-ico{width:14px;height:14px;border-radius:4px;background:rgba(255,255,255,.6)}
.menubar .mb-chevron{font-weight:800;font-size:1.05rem;line-height:1;opacity:.95}
.menubar.collapsed .mb-chevron{color:#b9abff}
.menubar .mb-sys{opacity:.82;font-variant-numeric:tabular-nums}
.mock-cap{margin:.15rem 0 0;font-size:.85rem;opacity:.72;text-align:center}
