/* Silmadit 문서형 홈페이지(결정 677·679·680) — 문서 한 장이 곧 쪽: 상단 막대 + 종이(제목·분류·정보상자·목차·번호 문단·각주·관련 문서).
   글꼴: Pretendard(SIL OFL 1.1)를 문서 글자만 담아 이름을 바꾼 서브셋 Silmadit Doc Sans(scripts/subset_homepage_font.py, assets/fonts/OFL.txt). */
@font-face { font-family: "Silmadit Doc Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/doc-sans-400.woff") format("woff"); }
@font-face { font-family: "Silmadit Doc Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/doc-sans-700.woff") format("woff"); }
@font-face { font-family: "Silmadit Doc Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/doc-sans-800.woff") format("woff"); }
:root {
  /* 글자 규격(docs/design-references/homepage-type-scale.md) — 모든 쪽은 이 토큰만 쓴다 */
  --fs-2xs: 12px; --fs-xs: 13px; --fs-sm: 14px; --fs-md: 15px; --fs-lg: 17px;
  --fs-h3: 20px; --fs-h2: 24px; --fs-h1: 34px; --fs-display: 30px;
  --fw-regular: 400; --fw-bold: 700; --fw-heavy: 800;
  --lh-body: 1.75; --lh-ui: 1.6; --lh-list: 1.9; --lh-head: 1.3;
  --toc-1-fs: var(--fs-sm); --toc-1-fw: var(--fw-regular);  /* 목차 1단계(번호 n.) — 대문·문서 안 목차 공통 */
  --toc-2-fs: var(--fs-sm); --toc-2-fw: var(--fw-regular);  /* 목차 2단계(n.m.·묶음 아래 문서) */
  --ls-h1: -0.6px; --ls-head: -0.4px; --ls-label: 0.04em;
  --bg: #eef1f5;          /* 종이 바깥 */
  --paper: #ffffff;       /* 문서 종이 */
  --ink: #101e30;         /* 본문 */
  --muted: #566376;       /* 보조 글자 */
  --line: #d6dde6;        /* 칸·밑줄 */
  --surface: #f5f7fa;     /* 표 머리·상자 바탕 */
  --navy: #203864;        /* 제품 색(정보상자 머리·단추) */
  --on-navy: #ffffff;
  --link: #24508f;        /* 문서 사이 링크 */
  --link-visited: #4a3f8f;
  --pending: #8a96a6;     /* 시안 범위 밖 문서 링크 */
  --mark: #b9680f;        /* 각주 번호·'추후 지원' 등 소수 강조 */
  --focus: #3c78c8;
  --sky: #4475b4;          /* 진한 하늘색(로고 #9DB8DA를 흰 글자 대비 4.7:1이 되게 진하게, 680 B안) */
  --on-sky: #ffffff;       /* 흰 글자 */
  --sky-hover: #36619a;    /* 누르기 전 강조: 더 진하게(흰 글자 대비 6.3:1) */
  --show-navy: inline-block;
  --show-light: none;
  --slogan: #f0a548;      /* 슬로건(남색 띠 위) */
  --overlay: rgba(8, 14, 24, 0.82);
  --f-head: "Silmadit Doc Sans", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-body: "Silmadit Doc Sans", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-num: "Silmadit Doc Sans", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b121c; --paper: #121b28; --ink: #e3e9f1; --muted: #9aa8ba; --line: #263449; --surface: #172233;
    --navy: #2b4a80; --on-navy: #ffffff; --link: #8db6ea; --link-visited: #b4a8ef; --pending: #6d7b8e; --mark: #e7a24c;
    --focus: #8db6ea; --show-navy: none; --show-light: inline-block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b121c; --paper: #121b28; --ink: #e3e9f1; --muted: #9aa8ba; --line: #263449; --surface: #172233;
  --navy: #2b4a80; --on-navy: #ffffff; --link: #8db6ea; --link-visited: #b4a8ef; --pending: #6d7b8e; --mark: #e7a24c;
  --focus: #8db6ea; --show-navy: none; --show-light: inline-block; color-scheme: dark;
}


* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--fs-md); line-height: var(--lh-body); margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 상단 막대 */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 20px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--f-head); font-weight: var(--fw-heavy); font-size: var(--fs-h3); letter-spacing: var(--ls-head); }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand .m-navy { display: var(--show-navy); }
.brand .m-light { display: var(--show-light); }
.brand b { font-weight: var(--fw-heavy); color: var(--link); }
.top-nav { display: flex; gap: 18px; font-size: var(--fs-sm); }
.top-nav a { color: var(--muted); }
.top-nav a[aria-current="page"] { color: var(--ink); font-weight: var(--fw-bold); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input { width: 300px; height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 0 12px 0 34px; font: inherit; font-size: var(--fs-sm); border-radius: 3px; }
.search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search-list { position: absolute; top: 40px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line);
  margin: 0; padding: 4px 0; list-style: none; box-shadow: 0 6px 18px rgba(16, 30, 48, 0.12); max-height: 320px; overflow-y: auto; }
.search-list a { display: block; padding: 6px 12px; color: var(--ink); font-size: var(--fs-sm); }
.search-list a small { color: var(--muted); margin-left: 6px; }
.search-list a[aria-selected="true"], .search-list a:hover { background: var(--surface); text-decoration: none; }
.search-empty { padding: 6px 12px; color: var(--muted); font-size: var(--fs-sm); }
.search-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; }
.search-btn svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 3px;
  background: var(--navy); color: var(--on-navy); font-size: var(--fs-sm); font-weight: var(--fw-bold); border: 1px solid var(--navy); white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* 문서 종이 */
.wrap { max-width: 1180px; margin: 0 auto; padding-block: 24px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.doc { background: var(--paper); border: 1px solid var(--line); padding: 28px 36px 36px; }
.doc::after { content: ""; display: block; clear: both; }
.doc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.doc-h h1 { margin: 0; font-family: var(--f-head); font-weight: var(--fw-heavy); font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: var(--ls-h1); text-wrap: balance; }
.doc-h .sub { color: var(--muted); font-size: var(--fs-md); }
.doc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 8px 0 22px; font-size: var(--fs-xs); color: var(--muted); }
.cats { display: flex; flex-wrap: wrap; gap: 0; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.cats span, .cats a { padding: 2px 10px; }
.cats span { font-weight: var(--fw-bold); color: var(--ink); border-right: 1px solid var(--line); }
.cats a + a { border-left: 1px solid var(--line); }

/* 정보상자 */
.infobox { float: right; width: 320px; margin: 0 0 20px 28px; border: 1px solid var(--line); font-size: var(--fs-sm); line-height: var(--lh-ui); }
.infobox .ib-h { background: var(--navy); color: var(--on-navy); text-align: center; padding: 10px 12px; }
.infobox .ib-h strong { display: block; font-family: var(--f-head); font-size: var(--fs-h3); font-weight: var(--fw-heavy); }
.infobox .ib-h span { font-size: var(--fs-2xs); opacity: 0.85; }
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td { border-top: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.infobox th { width: 84px; background: var(--surface); font-weight: var(--fw-bold); white-space: nowrap; }
.infobox .ib-media { border-top: 1px solid var(--line); padding: 10px; background: var(--surface); }
.infobox .ib-media img { display: block; width: 100%; border: 1px solid var(--line); }

/* 목차 */
.toc { display: inline-block; min-width: 280px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 10px 18px 12px; margin: 0 0 8px; font-size: var(--fs-sm); }
.toc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-family: var(--f-head); font-size: var(--fs-lg); }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "펼치기"; margin-left: auto; font-family: var(--f-body); font-weight: var(--fw-regular); font-size: var(--fs-2xs); color: var(--link); }
.toc[open] > summary::after { content: "접기"; }
.toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.toc ol ol { padding-left: 22px; margin: 0; }
.toc li { line-height: var(--lh-list); }
.toc > ol > li, .toc .toc-group > details > summary { font-size: var(--toc-1-fs); font-weight: var(--toc-1-fw); }
.toc ol ol li { font-size: var(--toc-2-fs); font-weight: var(--toc-2-fw); }
.toc .n { color: var(--link); font-family: var(--f-num); font-variant-numeric: tabular-nums; margin-right: 6px; }
.toc a { color: var(--ink); }

/* 번호 문단 */
.sec { clear: none; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font-family: var(--f-head); font-weight: var(--fw-heavy); font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--ls-head); cursor: pointer; }
h3.sec-h { font-size: var(--fs-h3); margin-top: 26px; border-bottom-style: dashed; }
.sec-h .num { flex: none; white-space: nowrap; font-family: var(--f-num); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }  /* 번호는 좁은 화면에서도 한 줄(4.3.이 4./3.으로 갈리지 않게) */
.sec-h .t { min-width: 0; }
.sec-h .fold { margin-left: auto; align-self: center; flex: none; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.sec-h .fold svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform 0.15s; }
.sec-h .fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sec-b > :first-child { margin-top: 0; }
.doc p, .doc ul, .doc ol.plain { max-width: 74ch; }
.doc ul { padding-left: 20px; margin: 8px 0 12px; }
.doc li { margin: 2px 0; }
.doc li::marker { color: var(--muted); }
.io { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; margin: 10px 0 14px; max-width: 74ch; border: 1px solid var(--line); font-size: var(--fs-sm); }
.io dt, .io dd { margin: 0; padding: 6px 12px; border-top: 1px solid var(--line); }
.io dt:first-of-type, .io dt:first-of-type + dd { border-top: 0; }
.io dt { background: var(--surface); font-weight: var(--fw-bold); white-space: nowrap; }
.note { color: var(--muted); font-size: var(--fs-sm); }
strong.mark { color: var(--mark); }  /* 본문에서 꼭 알아야 할 한 문장(라이선스 귀속 등) */
.tag { display: inline-block; font-size: var(--fs-2xs); line-height: var(--lh-ui); padding: 0 6px; border: 1px solid currentColor; color: var(--mark); border-radius: 2px; vertical-align: 2px; font-family: var(--f-body); font-weight: var(--fw-bold); letter-spacing: 0; }

/* 명령 줄(5.2 등록): 좁은 화면에서 페이지가 아니라 이 칸만 가로로 밀림 */
pre.cmd { max-width: 100%; overflow-x: auto; }

/* 표 */
.tscroll { overflow-x: auto; margin: 10px 0 16px; }
.wtable { border-collapse: collapse; font-size: var(--fs-sm); line-height: var(--lh-ui); min-width: 100%; }
.wtable th, .wtable td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.wtable thead th { background: var(--surface); white-space: nowrap; }
.wtable tbody th { background: var(--surface); font-weight: var(--fw-bold); white-space: nowrap; }
.wtable td.c { text-align: center; }

/* 문서 사이 링크 */
a.pending { color: var(--pending); text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* 시연 영상 */

/* 각주 */
sup.fn a { font-family: var(--f-num); font-size: var(--fs-2xs); color: var(--mark); padding: 0 1px; }
.footnotes { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.footnotes ol { list-style: none; padding: 0; margin: 0; }
.footnotes li { display: flex; gap: 6px; }
.footnotes li a.back { color: var(--mark); font-family: var(--f-num); flex: none; }
.footnotes li:target { background: var(--surface); }

/* 관련 문서: 같은 폭 칸으로 줄을 꽉 채움 */
.related { margin-top: 26px; border: 1px solid var(--line); }
.related h2 { margin: 0; padding: 8px 14px; font-family: var(--f-head); font-size: var(--fs-lg); font-weight: var(--fw-heavy); background: var(--surface); border-bottom: 1px solid var(--line); }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); max-width: none; }
.related li { margin: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-left: -1px; margin-top: -1px; }
.related a { display: block; padding: 10px 14px; text-align: center; font-weight: var(--fw-bold); }

/* 대문 */
.front-lead { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
/* 단추는 칸 폭에 맞춰 줄을 바꾼다(넓으면 셋이 한 줄, 좁으면 둘·하나) — 가장 긴 글자가 잘리지 않는 폭이 한 칸의 최소 */
.front-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 8px; margin-top: 16px; max-width: 640px; }
.front-actions .btn { height: 44px; padding: 0 8px; font-size: var(--fs-md); white-space: nowrap; }
.front-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
/* 칸이 네 변 선을 모두 갖고 왼쪽·위로 1px 겹친다 — 줄이 덜 찬 자리 위에서도 칸이 닫히고, 올려 둔 칸의 배경이 이웃 선을 덮지 않는다.
   바깥 선: 왼쪽·위는 테두리, 오른쪽·아래는 안쪽 그림자(끝 열·끝 줄 칸의 선과 같은 자리) */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border: solid var(--line); border-width: 1px 0 0 1px; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); margin: 10px 0 8px; }
.doc-grid a { display: block; padding: 14px 16px; border: 1px solid var(--line); margin: -1px 0 0 -1px; color: var(--ink); }
.doc-grid a:hover { background: var(--surface); text-decoration: none; }
.doc-grid strong { display: block; font-family: var(--f-head); font-size: var(--fs-lg); font-weight: var(--fw-heavy); color: var(--link); }
.doc-grid a.pending strong { color: var(--pending); }
.doc-grid a.pending { text-decoration: none; }
.doc-grid span { font-size: var(--fs-xs); color: var(--muted); line-height: var(--lh-ui); display: block; margin-top: 2px; }

/* 시안 표시 */
.foot nav { display: flex; gap: 14px; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: var(--fs-md); }
  .top-in { gap: 10px; }
  .top-nav { display: none; }
  .search { display: none; position: absolute; left: 0; right: 0; top: 56px; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .search.open { display: block; }
  .search input { width: 100%; }
  .search svg { left: calc(max(16px, env(safe-area-inset-left, 0px)) + 10px); top: 18px; }
  .search-list { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: 48px; }
  .search-btn { display: inline-flex; align-items: center; justify-content: center; }
  .top .btn { padding: 0 12px; }
  .wrap { padding-block: 0 32px; padding-left: 0; padding-right: 0; }
  .doc { border-width: 0 0 1px; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); }
  .doc-h h1 { font-size: var(--fs-h1); }
  .infobox { float: none; width: 100%; margin: 0 0 16px; }
  .toc { display: block; min-width: 0; }
  .sec-h { font-size: var(--fs-h2); margin-top: 28px; }
  h3.sec-h { font-size: var(--fs-lg); }
  .front-lead { grid-template-columns: minmax(0, 1fr); }
  .front-actions { max-width: none; }
  .related ul { grid-template-columns: 1fr 1fr; }
  .tscroll .wtable { min-width: 600px; }
  .foot { padding-top: 16px; }
}
/* 좁은 화면: 대문 단추 셋을 한 줄씩(글자가 잘리지 않게) */
@media (max-width: 480px) { .front-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sec-h .fold svg { transition: none; } }

/* ── 모바일 문서 메뉴 ── */
.menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 0; }
.menu-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
.m-menu { border-top: 1px solid var(--line); background: var(--paper); padding-block: 8px 14px; }
/* 메뉴 판 내용은 머리 줄(.top-in)·본문(.wrap)과 같은 최대 폭·왼쪽 시작선 */
.m-in { max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.m-menu p { margin: 8px 0 6px; font-size: var(--fs-2xs); color: var(--muted); font-weight: var(--fw-bold); }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.m-grid a { display: block; padding: 10px 12px; text-align: center; font-weight: var(--fw-bold); color: var(--ink);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-left: -1px; margin-top: -1px; }
.m-grid a[aria-current="page"] { background: var(--surface); color: var(--link); }
.m-grid a.pending { color: var(--pending); }

/* ── 대문 슬로건 머리 표: 남색 띠(상징 + 슬로건) 아래 항목 칸 ── */
.banner { border: 1px solid var(--line); margin: 0 0 22px; }
.bn-band { background: var(--navy); color: var(--on-navy); display: flex; align-items: center; justify-content: center; gap: 24px; padding: 20px 24px; }
.bn-mark { width: 128px; height: 128px; flex: none; }  /* 오른쪽 글자 네 줄 높이에 맞춘 왼쪽 한 칸(11-22 사용자 시안 B) */
.bn-slogan { display: grid; gap: 2px; text-align: left; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.bn-label { font-size: var(--fs-2xs); letter-spacing: var(--ls-label); opacity: 0.75; }
.bn-slogan strong { font-family: var(--f-head); font-weight: var(--fw-heavy); font-size: var(--fs-display); line-height: var(--lh-head); letter-spacing: var(--ls-h1); color: var(--slogan); }
.bn-en { font-size: var(--fs-sm); opacity: 0.88; letter-spacing: var(--ls-label); }
.bn-rows { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.bn-rows th, .bn-rows td { border-top: 1px solid var(--line); padding: 9px 14px; text-align: left; vertical-align: middle; }
.bn-rows th { width: 96px; background: var(--surface); white-space: nowrap; }
.bn-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0 !important; }
.bn-products a { display: block; padding: 9px 6px; text-align: center; font-weight: var(--fw-bold); border-left: 1px solid var(--line); white-space: nowrap; }
.bn-products a:first-child { border-left: 0; }

/* ── 시연 영상: 화면에 보이면 소리 없이 재생, 누르면 크게 보기 ── */

/* ── 바닥글 ── */
.foot { display: block; max-width: 1180px; margin: 0 auto; padding-block: 0 28px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }  /* 결정 726: 본문(.wrap)과 같은 좌우 여백 */
.foot-in { display: grid; grid-template-columns: auto auto 1fr; gap: 14px 40px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 30px; height: 30px; }
.foot-brand .m-navy { display: var(--show-navy); }
.foot-brand .m-light { display: var(--show-light); }
.foot-brand strong { display: block; font-family: var(--f-head); font-weight: var(--fw-heavy); color: var(--ink); font-size: var(--fs-md); }
.foot-brand span { font-size: var(--fs-2xs); }
.foot-info { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; }
.foot-info dt { font-weight: var(--fw-bold); color: var(--ink); }
.foot-info dd { margin: 0; user-select: all; }
.foot-links { display: flex; gap: 16px; justify-content: flex-end; }
.foot-copy { margin-top: 12px; font-size: var(--fs-2xs); }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .brand { font-size: var(--fs-lg); }
  .bn-band { padding: 14px 16px; gap: 14px; }
  .bn-mark { width: 72px; height: 72px; }
  .bn-slogan { padding-left: 14px; }
  .bn-slogan strong { font-size: var(--fs-h2); }
  .bn-rows th { width: 64px; padding-inline: 10px; }
  .bn-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-products a { border-top: 1px solid var(--line); }
  .bn-products a:nth-child(-n+2) { border-top: 0; }
  .bn-products a:nth-child(odd) { border-left: 0; }
  .bn-products a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .foot-in { grid-template-columns: 1fr; gap: 12px; }
  .foot-links { justify-content: space-between; }
}

/* ── 엠버 점 로고(운영 로고와 같은 SVG): 밝은 바탕은 남색 글자, 어두운 바탕·남색 띠는 밝은 글자 ── */
.brand .wm { height: 24px; width: auto; }
.foot-brand .wm { height: 20px; width: auto; }
.wm-dark { display: var(--show-navy); }
.wm-light { display: var(--show-light); }
.foot-brand > div { display: grid; gap: 2px; }
.bn-wm { height: 34px; width: auto; display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .brand .wm { height: 20px; } .bn-wm { height: 26px; } }

/* ── 운영 추가: 본문 바로가기·로고 글자·모바일 메뉴(site.js의 is-open)·분류·옮김 쪽 ── */
.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); }
.brand .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-menu { display: none; }
.cats em { font-style: normal; padding: 2px 10px; color: var(--muted); }
.cats em + em { border-left: 1px solid var(--line); }
.infobox.side { float: none; width: auto; margin: 0; }
.top .beta { padding-inline: 12px; }
.moved-list { columns: 2; column-gap: 32px; padding-left: 20px; }
.moved-list li { break-inside: avoid; }

/* ── 시연 영상: demos.js가 링크 자리에 작은 영상 칸을 만든다(화면에 보이면 소리 없이 재생, 누르면 크게 보기) ── */
.demo { margin: 12px 0 18px; max-width: 560px; }

/* ── 고객지원 문의 유형 단추(결정 588): 같은 줄을 꽉 채움 ── */
.inquiry-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; max-width: 74ch; }
.inquiry-kinds .btn { flex: 1 1 auto; min-height: 44px; }
.inquiry-kinds .btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* ── 설명서 목록 ── */
.manual-list { list-style: none; padding: 0; margin: 10px 0; }
.manual-list a { font-weight: var(--fw-bold); }

/* ── WTB 원본 ↔ 결과 전환 판([결과 보기]/[원본 보기], site.js의 data-flip) ── */
.ba { border: 1px solid var(--line); background: var(--paper); max-width: 74ch; margin: 10px 0 16px; }
.ba-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); transition: background-color 0.45s, color 0.45s; }
.ba-state { font-weight: var(--fw-bold); }
.ba-toggle { flex: none; padding: 4px 12px; border: 1px solid var(--navy); border-radius: 2px; background: transparent; color: var(--link); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.ba-stage { position: relative; min-height: 330px; }
.ba-side { position: absolute; inset: 0; padding: 14px; overflow-x: auto; transition: opacity 0.45s, transform 0.45s, visibility 0.45s; }
.ba-after { opacity: 0; visibility: hidden; transform: scale(1.02); }
.ba-lab-after { display: none; }
.ba[data-flip="true"] .ba-after { opacity: 1; visibility: visible; transform: none; }
.ba[data-flip="true"] .ba-before { opacity: 0; visibility: hidden; }
.ba[data-flip="true"] .ba-head { background: var(--navy); color: var(--on-navy); }
.ba[data-flip="true"] .ba-toggle { border-color: var(--on-navy); color: var(--on-navy); }
.ba[data-flip="true"] .ba-lab-after { display: inline; }
.ba[data-flip="true"] .ba-lab-before { display: none; }
.ba table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.ba th, .ba td { padding: 5px 8px; text-align: left; white-space: nowrap; }
.ba th.n, .ba td.n { text-align: right; }
.ba-before th { background: var(--surface); border: 1px solid var(--line); font-weight: var(--fw-regular); }
.ba-before td { border: 1px solid var(--line); }
.ba-before .odd, .ba-after .was { color: var(--mark); }
.ba-after table { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.ba-after th { background: var(--surface); border-bottom: 1px solid var(--ink); font-weight: var(--fw-bold); }
.ba-after td { border-bottom: 1px solid var(--line); }
.ba-after .std { color: var(--link); font-weight: var(--fw-bold); }
.ba-after .was { font-size: var(--fs-2xs); }
.ba-note { margin: 10px 0 0; font-size: var(--fs-2xs); color: var(--muted); }

@media (max-width: 760px) {
  .m-menu.is-open { display: block; }
  .top .beta { display: none; }
  .moved-list { columns: 1; }
  .ba-stage { min-height: 350px; }
}
@media (prefers-reduced-motion: reduce) { .ba-side, .ba-head { transition: none; } }

/* ── 680 댓글 반영: 분류 줄, 머리 줄 이용 문서 ── */
.cats-line { margin: 26px 0 0; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-xs); color: var(--muted); max-width: none; }
.cats-line span { font-weight: var(--fw-bold); color: var(--ink); margin-right: 6px; }
.nav-sep { width: 1px; height: 14px; background: var(--line); align-self: center; }
.top-nav { gap: 14px; }
/* 680 v4: 문서 9개 + 검색창은 머리 줄(최대 1180px)에 들어가지 않아 글자가 쪼개짐 → 모든 폭에서 ☰ 메뉴(문서 틀과 같은 묶음)로 연다 */
.top-nav { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; }
.m-menu.is-open { display: block; }
/* PC: 묶음마다 문서 수(--n)만큼 같은 폭 칸으로 줄을 꽉 채운다(양쪽 정렬) */
@media (min-width: 761px) { .m-grid { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); } }
/* 모바일(2칸): 홀수 개 묶음의 마지막 칸은 한 줄을 다 쓴다 */
@media (max-width: 760px) { .m-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  }

@media (max-width: 760px) { :root { --fs-h3: 17px; --fs-h2: 21px; --fs-h1: 28px; --fs-display: 24px; } }

/* ── 680 v3: 나무위키식 하위 문서 머리(제목 '상위/문서', 분류 줄, 상위 문서 안내, 문서 틀) ── */
.h1-parent { color: var(--muted); font-weight: var(--fw-bold); }
.cats-line { margin: 8px 0 0; }
/* 분류·상위 문서 상자도 문서 틀과 같은 본문 폭(.doc p의 74ch 제한을 받지 않게) */
.doc .cats-line, .doc .parent-doc { max-width: none; }
.parent-doc { margin: 8px 0 0; padding: 6px 12px; border: 1px solid var(--line); font-size: var(--fs-sm); max-width: none; }
.parent-doc > span { color: var(--muted); margin-right: 4px; font-size: var(--fs-2xs); }
.navbox { margin: 8px 0 20px; border: 1px solid var(--line); font-size: var(--fs-sm); line-height: var(--lh-ui); }
.navbox summary { cursor: pointer; padding: 6px 12px; background: var(--navy); color: var(--on-navy); font-weight: var(--fw-bold); list-style: none;
  display: flex; justify-content: space-between; }
.navbox summary::-webkit-details-marker { display: none; }
.navbox summary::after { content: "펼치기"; font-weight: var(--fw-regular); font-size: var(--fs-xs); opacity: 0.85; }
.navbox[open] summary::after { content: "접기"; }
.navbox table { width: 100%; border-collapse: collapse; }
.navbox th, .navbox td { border-top: 1px solid var(--line); padding: 6px 12px; text-align: left; vertical-align: top; }
.navbox th { width: 1%; background: var(--surface); white-space: nowrap; }
.navbox td strong { color: var(--ink); }

/* ── 목차 묶음: 누르면 하위 문단·문서가 펼쳐짐 ── */
.toc .toc-group details > summary { list-style: none; cursor: pointer; color: var(--ink); display: block; }
.toc .toc-group details > summary::-webkit-details-marker { display: none; }
.toc .toc-group details > summary::before { content: "▸"; display: inline-block; width: 14px; color: var(--muted); font-size: var(--fs-2xs); }
.toc .toc-group details[open] > summary::before { content: "▾"; }
.toc .toc-group details > ol { padding-left: 36px; }

/* ── 개발자 팁: 기능마다 '언제 쓰면 무엇을 얻는지' 한 문장 ── */
.tips { list-style: none; padding: 0; margin: 8px 0 12px; border: 1px solid var(--line); border-left: 3px solid var(--navy); background: var(--surface); }
.tips li { padding: 8px 14px; margin: 0; }
.tips li + li { border-top: 1px solid var(--line); }
.tips b { color: var(--link); }

/* ── 다운로드·베타 키 신청 단추(대문·요금): 진한 하늘색 #4475B4 + 흰 글자(대비 4.7:1, 680 B안) ── */
.btn.sky { background: var(--sky); color: var(--on-sky); border-color: var(--sky); }
.btn.sky:hover { filter: none; background: var(--sky-hover); border-color: var(--sky-hover); }
