/* photoKam Radar 웹 — photokam.exapeaksoft.com
   원본: 2026-10-03 승인 시안(photokam-web.html)의 토큰 · 크기 · 모양을 그대로 옮겼다.
   배치: 위 고정 띠 + (소개) 어두운 "암실" 무대 위 앱 화면 → 밝은 종이 위 기능 · 전후 비교 / (설명서) 왼쪽 고정 목차 + 본문.
   글자 크기는 시안 그대로 둔다(사용자가 두 번 "너무 크다" 해서 줄인 크기). 맨 아래 "시안에 없던 것" 절만 이 사이트에서 더했다. */
:root {
  --paper: #f3f6f4;      /* 바탕 — 녹색 기운의 옅은 회색 */
  --surface: #ffffff;
  --ink: #16201c;
  --ink-2: #4b5853;
  --ink-3: #6f7c77;
  --line: #d9e1dd;
  --brand: #15b81c;      /* 레이더 녹색(표식 · 채움) */
  --brand-text: #0d7a13; /* 글자로 쓸 때(대비 4.5 이상) */
  --brand-wash: #e3f4e4;
  --stage: #151c23;      /* 앱 화면을 올리는 어두운 무대 */
  --stage-2: #1d2630;
  --stage-ink: #e8edeb;
  --stage-ink-2: #9fb0a8;
  --stage-line: #2b3640;
  --auto: #a8721f;       /* 앱의 "자동" 호박색 */
  --auto-wash: #f7ecd9;
  --warn-wash: #fbefe6;
  --warn-ink: #8a4515;
  --display: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  --surface-2: #f6f9f7;   /* 상자 안의 칩 · 표 머리 */
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.05), 0 6px 18px rgba(16, 24, 20, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1216; --surface: #19232b; --surface-2: #223039; --ink: #eef3f1; --ink-2: #c4cec9; --ink-3: #98a6a0; --line: #34434e;
    --brand: #2bd833; --brand-text: #63e86a; --brand-wash: #1c3d25;
    --stage: #0a0f13; --stage-2: #141c23; --stage-ink: #eef3f1; --stage-ink-2: #b5c3bc; --stage-line: #2c3a45;
    --auto: #ebbd6c; --auto-wash: #3d3118; --warn-wash: #3d2818; --warn-ink: #f7c7a1;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1216; --surface: #19232b; --surface-2: #223039; --ink: #eef3f1; --ink-2: #c4cec9; --ink-3: #98a6a0; --line: #34434e;
  --brand: #2bd833; --brand-text: #63e86a; --brand-wash: #1c3d25;
  --stage: #0a0f13; --stage-2: #141c23; --stage-ink: #eef3f1; --stage-ink-2: #b5c3bc; --stage-line: #2c3a45;
  --auto: #ebbd6c; --auto-wash: #3d3118; --warn-wash: #3d2818; --warn-ink: #f7c7a1;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.65; margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: var(--brand-text); }
img { max-width: 100%; height: auto; display: block; }   /* width · height 속성은 비율만 — 줄어들 때 찌그러지지 않게 */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1760px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 56px); }
.measure { max-width: 46em; }   /* 글 한 줄 — 한글 45~55자 */

/* ── 위 띠 ── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 48px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a, .tabs button { font: inherit; font-size: 13px; background: none; border: 0; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.tabs a[aria-current="page"], .tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-go { background: var(--brand); color: #06210a; }
.btn-go:hover { filter: brightness(1.06); }
.btn-ghost { color: inherit; border-color: currentColor; background: transparent; }

/* ── 소개: 무대 ── */
.stage { background: var(--stage); color: var(--stage-ink); padding-block: 40px 0; overflow: hidden; }
.stage .wrap { display: grid; gap: 26px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; }
.hero-copy { display: grid; gap: 12px; max-width: 640px; }
.hero-copy h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--stage-ink); }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-copy p { color: var(--stage-ink-2); font-size: 14.5px; max-width: 62ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn-ghost { color: var(--stage-ink); border-color: var(--stage-line); }
.hero-cta .note { font-size: 12px; color: var(--stage-ink-2); }
.app-frame { max-width: 1360px; border: 1px solid var(--stage-line); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--stage-2); box-shadow: 0 -20px 80px rgba(21, 184, 28, 0.08); }
.app-frame .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--stage-line); }
.app-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stage-line); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-block: 12px; border-top: 1px solid var(--stage-line); font-size: 12.5px; color: var(--stage-ink-2); }
.facts b { color: var(--stage-ink); font-weight: 500; }

/* ── 소개: 본문 ── */
.section { padding-block: 44px; }
.section-head { display: grid; gap: 6px; max-width: 46em; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(18px, 2vw, 22px); }
.section-head p { color: var(--ink-2); }
.compare-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.compare-side { display: grid; gap: 16px; min-width: 0; }
.compare-side h3 { font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip.auto { background: var(--auto-wash); color: var(--auto); border-color: transparent; }
/* 할인 남은 시간 — 글 속에서는 주황 바탕 굵은 글씨, 정품 카드에서는 가격 아래 큰 상자(숫자 크게 · 점이 깜빡임) */
.countdown { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--warn-wash); color: var(--warn-ink); font-size: .95em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown b { font-family: var(--mono); font-weight: 800; }
.countdown:empty { display: none; }
.plan .countdown { display: inline-flex; align-items: baseline; gap: 2px 7px; margin: 0; padding: 7px 14px 7px 12px; border-radius: 12px; border: 1.5px solid currentColor; font-family: var(--body, inherit); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.plan .countdown::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; align-self: center; animation: cd-pulse 1s ease-in-out infinite; }
.plan .countdown b { font-size: 24px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.plan .countdown:empty { display: none; }
@keyframes cd-pulse { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .plan .countdown::before { animation: none; } }
.chip.look { cursor: pointer; }
.chip.look:hover { color: var(--ink); }
.chip.look[aria-pressed="true"] { border-color: var(--brand); color: var(--ink); font-weight: 700; }
.pick { display: flex; gap: 6px; flex-wrap: wrap; }
.pick button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.pick button[aria-pressed="true"] { border-color: var(--brand); color: var(--ink); font-weight: 700; }

/* 전후 비교 — 앱의 "좌우 비교"처럼 가운데 선을 끈다 */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stage); aspect-ratio: 650 / 780; max-width: 100%; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.ba .tag { position: absolute; bottom: 12px; font-size: 12px; padding: 3px 10px; border-radius: 6px; background: rgba(10, 15, 19, 0.72); color: #ffffff; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.figure-note { font-size: 12px; color: var(--ink-3); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 18px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.feature p { color: var(--ink-2); font-size: 13.5px; }
.ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: currentColor; stroke: none; }
.t-tone { color: #b0791d; background: color-mix(in srgb, #e3b25e 20%, transparent); }
.t-detail { color: #1d8577; background: color-mix(in srgb, #4fc1b1 18%, transparent); }
.t-color { color: #b2477e; background: color-mix(in srgb, #e384b4 18%, transparent); }
.t-portrait { color: #c05a3c; background: color-mix(in srgb, #ee9a7c 20%, transparent); }
.t-crop { color: #2c6fb3; background: color-mix(in srgb, #6db0ec 18%, transparent); }
.t-mask { color: #2c8a4b; background: color-mix(in srgb, #6fcb8d 18%, transparent); }
.t-preset { color: #6a50c4; background: color-mix(in srgb, #ad97f2 18%, transparent); }
/* 스페셜 블랙 — 테마와 상관없이 검정 바탕 · 금빛 테두리(앱의 스페셜 블랙 칸과 같은 톤) */
.t-special { color: #d8b26a; background: linear-gradient(160deg, #1d1d20, #0b0b0d); box-shadow: inset 0 0 0 1px rgba(216, 178, 106, .45); }
:root[data-theme="dark"] .t-tone { color: #e3b25e; } :root[data-theme="dark"] .t-detail { color: #4fc1b1; } :root[data-theme="dark"] .t-color { color: #e384b4; }
:root[data-theme="dark"] .t-portrait { color: #ee9a7c; } :root[data-theme="dark"] .t-crop { color: #6db0ec; } :root[data-theme="dark"] .t-mask { color: #6fcb8d; } :root[data-theme="dark"] .t-preset { color: #ad97f2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-tone { color: #e3b25e; } :root:not([data-theme="light"]) .t-detail { color: #4fc1b1; } :root:not([data-theme="light"]) .t-color { color: #e384b4; }
  :root:not([data-theme="light"]) .t-portrait { color: #ee9a7c; } :root:not([data-theme="light"]) .t-crop { color: #6db0ec; } :root:not([data-theme="light"]) .t-mask { color: #6fcb8d; } :root:not([data-theme="light"]) .t-preset { color: #ad97f2; }
}
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shot { display: grid; gap: 10px; min-width: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; }
.plan.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan h3 { font-size: 15px; }
.plan .price { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.foot { border-top: 1px solid var(--line); padding-block: 20px; font-size: 12px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }

/* ── 설명서 ── */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding-block: 28px 56px; }
.onpage { display: none; }
@media (min-width: 1400px) {
  .guide { grid-template-columns: 230px minmax(0, 1fr) 190px; }
  .onpage { display: grid; gap: 6px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); align-self: start; font-size: 13px; }
  .onpage b { font-size: 12px; color: var(--ink-3); font-weight: 500; }
  .onpage a { color: var(--ink-2); text-decoration: none; padding: 3px 0 3px 12px; border-left: 2px solid var(--line); }
  .onpage a:hover { color: var(--ink); border-left-color: var(--brand); }
}
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); align-self: start; display: grid; gap: 14px; max-height: calc(100vh - 100px); overflow: hidden; font-size: 13px; grid-template-rows: auto auto minmax(0, 1fr); }   /* 찾기 칸은 그대로 두고 아래 목록(.toc-scroll)만 굴린다 */
.toc-scroll { display: grid; gap: 14px; align-content: start; min-height: 0; overflow: auto; }
.toc label { font-size: 12px; color: var(--ink-3); }
.toc input { font: inherit; width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc nav > ol > li > span { display: block; font-weight: 700; color: var(--ink); padding: 10px 0 4px; font-family: var(--display); }
.toc a { display: flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.toc a:hover { background: var(--surface); color: var(--ink); }
.toc a[aria-current="page"] { background: var(--brand-wash); color: var(--ink); font-weight: 700; }
.toc .dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.doc { min-width: 0; display: grid; gap: 26px; }
.doc > * { max-width: 100%; }
.doc p, .doc ul, .doc .lede, .doc .steps, .doc .callout, .doc .when, .doc .crumb, .doc .meta { max-width: 46em; }
.crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.doc-head { display: grid; gap: 14px; }
.doc-head h1 { font-size: clamp(21px, 2.3vw, 25px); display: flex; align-items: center; gap: 12px; }
.doc-head h1 .ico { width: 32px; height: 32px; border-radius: 9px; }
.doc-head h1 .ico svg { width: 20px; height: 20px; }
.lede { font-size: 14.5px; color: var(--ink-2); max-width: 62ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.when { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.when h2, .doc h2 { font-size: 16px; }
.doc section { display: grid; gap: 16px; }
.doc section > p { max-width: 65ch; color: var(--ink-2); }
.when ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.where { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; }
.where img { border-radius: var(--radius); border: 1px solid var(--line); }
.path { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 8px; }
.ui { font-family: var(--body); font-weight: 700; font-size: 0.92em; padding: 1px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
kbd { font-family: var(--mono); font-size: 0.85em; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); }
.table-box { max-width: 1100px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th, td { word-break: keep-all; overflow-wrap: anywhere; }   /* 한글 낱말 가운데서 끊지 않기 */
th { white-space: nowrap; }
th { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--paper); }
.steps li p { color: var(--ink-2); }
.callout { border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 4px; font-size: 13.5px; }
.callout b { font-family: var(--display); }
.callout.tip { background: var(--brand-wash); }
.callout.warn { background: var(--warn-wash); color: var(--warn-ink); }
.compare-doc { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.pager a { text-decoration: none; display: grid; gap: 2px; color: var(--ink); }
.pager small { color: var(--ink-3); }

[hidden] { display: none !important; }
@media (max-width: 900px) {
  .compare-row, .duo, .plans, .where, .compare-doc { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; max-height: none; }
  .toc, .toc-scroll { overflow: visible; }
  .tabs { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .ba .after, .ba .handle { transition: none; }
}

/* ════════════ 시안에 없던 것 — 이 사이트에서 더한 것(모두 위 토큰 · 모양을 다시 쓴다) ════════════ */

/* 본문으로 건너뛰기(키보드) */
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.skip:focus { top: 8px; }

/* 위 띠 — 휴대폰 폭에서 메뉴가 둘째 줄로 */
@media (max-width: 900px) {
  .top .wrap { gap: 6px 12px; padding-block: 6px; }
  .top .btn-go { order: 2; margin-left: auto; }
  .tabs { order: 3; width: 100%; }
}

/* 설명서 본문의 목록 · 소제목 · 코드 — .when ul 과 같은 결 */
.doc section ul, .doc section ol:not(.steps), .path ul, .path ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.doc li ul, .doc li ol { margin-top: 6px !important; }
.doc section ol:not(.steps) { max-width: 46em; }
.doc h3 { font-size: 15px; }
.doc h4 { font-family: var(--display); font-size: 14px; margin: 0; }
.doc strong { color: var(--ink); }
.callout strong, .callout.warn strong { color: inherit; }
.steps li > div { display: grid; gap: 4px; min-width: 0; }
/* 단계 그림(build.py step_pics) — 글자는 그림에 굽지 않고 그림 아래 글로, 번호는 그림 왼쪽 위에 */
.doc .steps.pics { max-width: 1100px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.steps.pics li { grid-template-columns: minmax(0, 1fr); position: relative; }
.steps.pics li::before { position: absolute; top: 10px; left: 10px; z-index: 1; }
.steps.pics li > div { gap: 6px; }
.steps.pics .shot img { width: 100%; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0 5px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.crumb a { color: inherit; }
.pager .next { text-align: right; margin-left: auto; }
.doc figure, .section figure { margin: 0; }
.duo.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-doc .ba { width: 100%; }
/* 본문 칸이 좁을 때(목차 옆 1000px 안팎 창) 그림 | 글 2단이 글 쪽을 너무 좁히지 않게 — 본문 폭으로 판단 */
.doc { container-type: inline-size; }
@container (max-width: 820px) {
  .where, .compare-doc { grid-template-columns: minmax(0, 1fr); }
  .where > figure, .compare-doc > .ba { max-width: 460px; }
  .doc .steps.pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 자주 묻는 것 — 눌러 펼치는 물음(.when 상자와 같은 결) */
.qa { display: grid; gap: 8px; max-width: 46em; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.qa summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--ink); }
.qa details[open] summary { margin-bottom: 8px; }
.qa .a { display: grid; gap: 8px; color: var(--ink-2); }
.qa .a ul, .qa .a ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* 목차 — 900px 이하에서 접는 "목차" · 검색 결과 */
.toc-fold > summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--ink); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.toc-fold > summary::-webkit-details-marker { display: none; }
.toc-fold > summary::after { content: " ▾"; color: var(--ink-3); }
.toc-fold[open] > summary::after { content: " ▴"; }
.toc-fold[open] > summary { margin-bottom: 4px; }
@media (min-width: 901px) { .toc-fold > summary { display: none; } }
.toc .home { font-weight: 700; color: var(--ink); }
.toc .results { display: grid; gap: 4px; }
.toc .results a { display: grid; gap: 2px; padding: 6px 10px; }
.toc .results b { color: var(--ink); font-weight: 700; }
.toc .results small { color: var(--ink-3); font-size: 12px; }
.toc .results p { color: var(--ink-3); font-size: 12px; padding: 4px 10px; }
mark { background: var(--brand-wash); color: var(--ink); border-radius: 3px; padding: 0 1px; }

/* 묶음 색이 없는 쪽의 머리 아이콘 */
.t-none { color: var(--ink-2); background: color-mix(in srgb, var(--ink-3) 14%, transparent); }

/* 설명서 · 내려받기 · 약관 — 왼쪽 목차가 없는 쪽 */
.guide.solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1400px) { .guide.solo { grid-template-columns: minmax(0, 1fr) 190px; } }

/* 내려받기 카드(.when 상자와 같은 결) */
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; max-width: 46em; }
.dl .chips { flex: 1 1 260px; }

/* 소개 — 인물 보정 네 칸 · 단추 줄 · 설명서 바로가기 */
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .features.four, .duo.n3 { grid-template-columns: minmax(0, 1fr); } }
.feature .more { font-size: 13px; color: var(--ink-3); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actions .note { font-size: 12px; color: var(--ink-3); }
.list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); max-width: 46em; }
.stack { display: grid; gap: 16px; min-width: 0; align-content: start; }
:where(.section .stack) > p { color: var(--ink-2); }
.section .qa { margin-top: 4px; }

/* 이용 약관 · 오픈소스 고지 */
.terms h2 small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--ink-3); }
.pre-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 70vh; overflow: auto; }
.pre-box pre { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink-2); white-space: pre; }
.doc details.file { display: grid; gap: 10px; }
.doc details.file > summary { cursor: pointer; font-family: var(--display); font-weight: 600; }
.doc details.file[open] > summary { margin-bottom: 10px; }

/* 인쇄 — 설명서 한 쪽을 종이로 */
@media print {
  .top, .toc, .onpage, .foot, .pager, .skip { display: none !important; }
  .guide { display: block; padding: 0; }
  body { background: #ffffff; color: #000000; }
  .qa details { break-inside: avoid; }
  .table-box { overflow: visible; }
  a { color: inherit; }
}

/* ════════════ 2026-10-04 디자인 고도화 — 사용자: "라운드 박스가 너무 어두워서 배경이랑 구분이 너무 안 돼. 전체적으로 침침한 느낌" ════════════
   다크 모드 바탕과 상자의 밝기 차이를 키우고(토큰), 상자마다 테두리 · 그림자, 팁 · 주의에 왼쪽 색 띠, 소제목에 밑줄을 둔다.
   한글은 낱말 가운데서 줄을 바꾸지 않는다(제목이 "고르/고"로 끊기던 것). 화면 모드 버튼(자동 · 밝게 · 어둡게). */
h1, h2, h3, h4, p, li, summary, figcaption, .lede, .note { word-break: keep-all; overflow-wrap: break-word; }
.hero-copy { max-width: min(100%, 1120px); }
.hero-copy p { max-width: 70ch; }

.when, .qa details, .dl, .plan, .table-box, .features, .pre-box, .toc-fold > summary { box-shadow: var(--shadow); }
.when { border-color: var(--line); }
.related a { box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.related a:hover { border-color: var(--brand); }
.feature { transition: background .15s; }
th { background: var(--surface-2); color: var(--ink-3); }
.ui { background: var(--surface-2); }
kbd { background: var(--surface-2); }

.callout { border-left: 3px solid transparent; padding-left: 14px; }
.callout.tip { border-left-color: var(--brand); }
.callout.warn { border-left-color: #e08a3c; }

.doc > section > h2, .doc > .when > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc > .when > h2 { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }

.toc a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
.toc nav > ol > li > span { color: var(--ink); letter-spacing: -0.01em; }
.onpage a { color: var(--ink-2); }

.qa summary { list-style: none; position: relative; padding-right: 22px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--ink-3); font-family: var(--mono); }
.qa details[open] summary::after { content: "−"; }

/* 화면 모드 버튼 — 자동(반쪽 원) · 밝게(해) · 어둡게(달) */
.top .theme { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.top .theme:hover { color: var(--ink); border-color: var(--ink-3); }
.top .theme span { width: 14px; height: 14px; border-radius: 50%; display: block; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.top .theme[data-mode="light"] span { background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); border-color: transparent; width: 10px; height: 10px; }
.top .theme[data-mode="dark"] span { background: transparent; border: 0; box-shadow: inset -4px -3px 0 0 currentColor; }
@media (max-width: 900px) { .top .theme { order: 2; } }

/* ── 목차 — 그룹과 항목을 눈으로 나눈다(2026-10-04) ──
   그룹: 아이콘 칩 · 굵은 제목 · 항목 수, 그룹 사이 구분선. 항목: 들여 쓰고 세로 안내선, 지금 쪽은 안내선 위 녹색 막대. */
.toc nav > ol { gap: 0; }
.toc nav > ol > li.grp { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.toc nav > ol > li > span.grp-h { display: flex; align-items: center; gap: 9px; padding: 0 8px 8px 4px; font-size: 13.5px; }
.toc .grp-h b { flex: 1; font-weight: 700; color: var(--ink); }
.toc .grp-h .gi { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.toc .grp-h .gi svg { width: 14px; height: 14px; }
.toc .grp-h small { font: 500 11px/18px var(--mono); color: var(--ink-3); min-width: 22px; text-align: center;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.toc li.grp.cur > .grp-h b { color: var(--brand-text); }
.toc li.grp.cur > .grp-h .gi { background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand-text); }
.toc li.grp > ol { margin: 0 0 2px 16px; padding-left: 9px; border-left: 1px solid var(--line); gap: 1px; }
.toc li.grp > ol a { position: relative; padding: 5px 10px; font-size: 13px; }
.toc li.grp > ol a[aria-current="page"] { box-shadow: none; }
.toc li.grp > ol a[aria-current="page"]::before { content: ""; position: absolute; left: -11px; top: 5px; bottom: 5px; width: 3px; border-radius: 3px; background: var(--brand); }
.toc li.grp > ol a:hover::before { content: ""; position: absolute; left: -11px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--ink-3); }
.toc li.grp > ol a[aria-current="page"]:hover::before { background: var(--brand); top: 5px; bottom: 5px; }
.toc .home { padding: 7px 10px 7px 4px; }

/* 언어 고르기(2026-10-05 사이트 다국어) — 화면 모드 버튼 옆, 눌러 펼치는 목록. 같은 쪽의 다른 언어 주소로 간다 */
.top .lang { position: relative; }
.top .lang > summary { list-style: none; height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; }
.top .lang > summary::-webkit-details-marker { display: none; }
.top .lang > summary:hover, .top .lang[open] > summary { color: var(--ink); border-color: var(--ink-3); }
.top .lang > summary svg { width: 16px; height: 16px; }
.top .lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 150px; display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.top .lang ul a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.top .lang ul a:hover { background: var(--surface-2); color: var(--ink); }
.top .lang ul a[aria-current="true"] { color: var(--brand-text); font-weight: 700; }
@media (max-width: 900px) { .top .lang { order: 2; } .top .lang ul { right: auto; left: 0; } }

/* 일본어 · 유럽 언어 쪽의 글꼴 — 한국어 쪽은 위 토큰 그대로 */
html:lang(ja) { --display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; }
html:lang(en), html:lang(de), html:lang(es), html:lang(fr) { --display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; --body: "Noto Sans", "Segoe UI", system-ui, sans-serif; }
html:lang(de) .tabs a, html:lang(fr) .tabs a, html:lang(es) .tabs a { white-space: nowrap; }
/* 유럽 언어 표 — 한글용 "아무 데서나 끊기"(overflow-wrap: anywhere)가 좁은 칸에서 낱말 가운데를 끊었다(Roughne ss). 낱말 단위로, 긴 낱말만 하이픈 */
html:lang(en) :is(th, td), html:lang(de) :is(th, td), html:lang(es) :is(th, td), html:lang(fr) :is(th, td) { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
