@font-face { font-family: Pretendard; src: url('../assets/pretendard.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #191f28; --ink-2: #333d4b; --muted: #4e5968; --muted-2: #6b7684;
  --line: #e5e8eb; --line-2: #d1d6db; --bg: #fff; --bg-soft: #f9fafb; --bg-gray: #f2f4f6;
  --blue: #3182f6; --blue-ink: #1b64da; --blue-soft: #e8f3ff; --blue-line: #b9d6ff;
  --radius: 14px; --radius-lg: 20px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(25,31,40,.06);
  --ease: cubic-bezier(.22,1,.36,1);
  --page: 1200px;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-synthesis: none;
  line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-gray); color: var(--ink-2); padding: .1em .4em; border-radius: 6px; }
mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* ── 톤 ── */
.tone-blue { --t-bg: #e8f3ff; --t-fg: #1b64da; }
.tone-coral { --t-bg: #ffeeee; --t-fg: #c22f37; }
.tone-orange { --t-bg: #fff0e5; --t-fg: #a1450f; }
.tone-teal { --t-bg: #e2f6f5; --t-fg: #0b6b6f; }
.tone-yellow { --t-bg: #fff4d1; --t-fg: #7d5800; }
.tone-green { --t-bg: #e5f7ec; --t-fg: #17693b; }
.tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--t-bg); color: var(--t-fg); flex-shrink: 0; }
.tile .ic { width: 22px; height: 22px; }
.tile-sm { width: 32px; height: 32px; border-radius: 10px; }
.tile-sm .ic { width: 18px; height: 18px; }
.tile-lg { width: 48px; height: 48px; border-radius: 14px; }
.tile-lg .ic { width: 26px; height: 26px; }
.tile-xl { width: 60px; height: 60px; border-radius: 18px; }
.tile-xl .ic { width: 32px; height: 32px; }

/* 상태 레이블 — 색과 글자를 함께 */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; padding: 3px 10px; border-radius: 999px; background: var(--s-bg); color: var(--s-fg); line-height: 1.5; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.tone-success { --s-bg: #e5f7ec; --s-fg: #17693b; }
.status.tone-warning { --s-bg: #fff4d1; --s-fg: #7d5200; }
.status.tone-danger { --s-bg: #ffeceb; --s-fg: #b4232b; }
.status.tone-info { --s-bg: #e8f3ff; --s-fg: #1b64da; }
.status.tone-neutral { --s-bg: #f2f4f6; --s-fg: #4e5968; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--bg-gray); color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.chip-link { color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.chip-link:hover { border-color: var(--blue-line); color: var(--blue-ink); text-decoration: none; background: var(--blue-soft); }
.chip-who { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--bg-gray); color: var(--muted); letter-spacing: 0; vertical-align: 2px; }
.badge-http { background: var(--ink); color: #fff; }
.badge-cat { background: var(--blue-soft); color: var(--blue-ink); }
a.badge:hover { text-decoration: none; background: #d6e8ff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: #1957c2; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--muted-2); }
.btn-ghost[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-ink); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .875rem; border-radius: 10px; }
.btn .ic { width: 18px; height: 18px; }

/* ── 머리말 ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--page); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 96px; height: auto; }
.brand-sub { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 1.2; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { background: var(--bg-gray); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue-ink); font-weight: 700; background: var(--blue-soft); }
.header-search { margin-left: auto; width: 280px; }
.header-search[hidden] { display: none; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; height: 40px; padding: 0 12px; font-weight: 600; font-size: .875rem; }

/* ── 검색창 ── */
.search { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; height: 44px; padding-left: 40px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(49,130,246,.15); }
.search .search-ic { position: absolute; left: 12px; color: var(--muted-2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: .9375rem; padding-right: 8px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: var(--muted-2); }
.search-btn { border: 0; background: transparent; color: var(--blue-ink); font-weight: 700; padding: 0 14px; height: 100%; border-radius: 0 10px 10px 0; font-size: .9375rem; }
.search-btn:hover { background: var(--blue-soft); }
.search-big { height: 64px; border-radius: 18px; padding-left: 56px; box-shadow: var(--shadow); border-color: var(--line); }
.search-big .search-ic { left: 20px; width: 24px; height: 24px; }
.search-big input { font-size: 1.0625rem; }
.search-big .search-btn { background: var(--blue-ink); color: #fff; margin: 8px; height: 46px; border-radius: 12px; padding: 0 22px; }
.search-big .search-btn:hover { background: #1957c2; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(25,31,40,.14); padding: 6px; max-height: 420px; overflow-y: auto; text-align: left; }
.suggest [role=option] { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .9375rem; }
.suggest [role=option][aria-selected="true"], .suggest [role=option]:hover { background: var(--bg-gray); }
.sg-type { flex-shrink: 0; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg-gray); border-radius: 6px; padding: 2px 7px; }
[aria-selected="true"] .sg-type, [role=option]:hover .sg-type { background: #fff; }
.sg-title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
.header-search .suggest { left: auto; right: 0; width: min(460px, calc(100vw - 32px)); }
.sg-all { color: var(--blue-ink); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px !important; }
.sg-all .ic { width: 18px; height: 18px; }

/* ── 페이지 공통 ── */
.page { max-width: var(--page); margin: 0 auto; padding: 24px 24px 72px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }
.list-head { margin: 20px 0 28px; max-width: 760px; }
.list-head h1 { font-size: 2.25rem; letter-spacing: -.03em; line-height: 1.25; font-weight: 800; }
.list-head p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }
.list-head .search { margin-top: 18px; max-width: 640px; }
.result-count { color: var(--muted); font-size: .9375rem; margin: 8px 0 16px; }

/* ── 홈 ── */
.page-home { padding-top: 0; }
.page-home > .band:first-child { margin-top: 48px; }
.hero { position: relative; padding: 64px 24px 56px; background: linear-gradient(180deg, #f2f7ff 0%, #f8fbff 55%, #fff 100%); border-bottom: 1px solid var(--line); text-align: center; overflow: hidden; }
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-ink); font-size: .9375rem; background: #fff; border: 1px solid var(--blue-line); border-radius: 999px; padding: 5px 14px 5px 10px; }
.eyebrow .ic { width: 18px; height: 18px; }
.hero h1 { font-size: 3rem; line-height: 1.2; letter-spacing: -.04em; font-weight: 800; margin: 18px 0 12px; }
.hero-lead { color: var(--muted); font-size: 1.125rem; margin-bottom: 28px; }
.popular { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.popular > span { font-size: .875rem; color: var(--muted); font-weight: 600; }
.popular ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-dots { position: absolute; inset: 0; pointer-events: none; }
.hero-dots i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--t-fg); opacity: .18; }
.hero-dots i:nth-child(1) { left: 9%; top: 26%; width: 18px; height: 18px; }
.hero-dots i:nth-child(2) { left: 14%; top: 74%; }
.hero-dots i:nth-child(3) { right: 12%; top: 22%; width: 16px; height: 16px; }
.hero-dots i:nth-child(4) { right: 7%; top: 58%; width: 22px; height: 22px; }
.hero-dots i:nth-child(5) { left: 4%; top: 48%; width: 8px; height: 8px; }
.band { margin-top: 56px; }
.band-h { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9375rem; }
.more .ic { width: 16px; height: 16px; }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.audience a { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.audience a:hover { text-decoration: none; border-color: var(--blue-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.aud-text { flex: 1; display: grid; gap: 2px; }
.aud-text strong { font-size: 1.0625rem; }
.aud-text span { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.card-arrow { color: var(--muted-2); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.topic:hover { text-decoration: none; border-color: var(--blue-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.topic .tile { margin-bottom: 10px; }
.topic strong { font-size: 1.1875rem; letter-spacing: -.02em; }
.topic span { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.topic em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: .8125rem; font-weight: 700; color: var(--blue-ink); }
.ind-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-strip a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .9375rem; background: #fff; }
.ind-strip a:hover { text-decoration: none; border-color: var(--blue-line); background: var(--blue-soft); }
.ind-strip .tile-sm { border-radius: 50%; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.code-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.code-box > p { color: var(--muted); font-size: .9375rem; }
.code-form { display: flex; gap: 8px; margin-top: 14px; }
.code-form input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: #fff; }
.code-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(49,130,246,.15); }
.code-msg { min-height: 1.5em; font-size: .875rem; color: #b4232b; margin-top: 6px; }
.mini-h { font-size: .9375rem; font-weight: 700; margin: 10px 0 10px; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reason-chips a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 6px; color: var(--ink); }
.reason-chips a:hover { text-decoration: none; border-color: var(--blue-line); }
.reason-chips code { background: transparent; color: var(--muted); font-size: .8125rem; padding: 0; }
.contact-band { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.contact-band .cb-text { display: flex; align-items: center; gap: 16px; }
.contact-band h2 { font-size: 1.25rem; font-weight: 800; }
.contact-band p { color: #c5ccd6; font-size: .9375rem; margin-top: 2px; }
.contact-band .tile { background: rgba(255,255,255,.12); color: #fff; }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.contact-band .btn-ghost:hover { background: rgba(255,255,255,.1); }
.contact-band :focus-visible { outline-color: #8fc0ff; }

/* ── 링크 목록 ── */
.link-list { border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; color: var(--ink); }
.link-list a:hover { text-decoration: none; background: var(--bg-soft); }
.link-list a:hover .ll-title { color: var(--blue-ink); }
.ll-type { flex-shrink: 0; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg-gray); border-radius: 6px; padding: 2px 7px; }
.ll-title { flex: 1; font-weight: 500; }
.ll-arrow { color: var(--muted-2); width: 18px; height: 18px; }

/* ── 목록 화면 ── */
.fam { margin-top: 36px; }
.fam-h { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.ind-grid, .doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ind-card, .doc-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.ind-card:hover, .doc-card:hover { text-decoration: none; border-color: var(--blue-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.ind-card .tile { margin-bottom: 8px; }
.ind-card strong, .doc-card strong { font-size: 1.0625rem; letter-spacing: -.01em; }
.ind-tag, .doc-card span { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.ind-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.ind-meta span { font-size: .8125rem; font-weight: 600; color: var(--ink-2); background: var(--bg-gray); border-radius: 6px; padding: 2px 8px; }
.doc-card em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.doc-card-icon { flex-direction: row; align-items: flex-start; gap: 14px; }
.dc-text { display: flex; flex-direction: column; gap: 4px; }
.dc-text em { padding-top: 6px; }

/* ── 문서 화면 ── */
.article-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; margin-top: 20px; align-items: start; }
.article-grid.has-toc { grid-template-columns: 236px minmax(0, 1fr) 200px; }
.side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding-bottom: 16px; }
.side-box summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .9375rem; padding: 6px 0 10px; cursor: pointer; }
.side-box summary::-webkit-details-marker { display: none; }
.side-caret { width: 18px; height: 18px; transition: transform .2s; }
.side-box[open] .side-caret { transform: rotate(180deg); }
.side-group { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 14px 0 4px 10px; }
.side nav a { display: block; padding: 7px 10px; border-radius: 8px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.side nav a:hover { background: var(--bg-gray); text-decoration: none; }
.side nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.article { min-width: 0; max-width: 760px; }
.art-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; color: var(--blue-ink); }
.art-head h1 { font-size: 2rem; line-height: 1.3; letter-spacing: -.03em; font-weight: 800; margin: 6px 0 8px; }
.lead { color: var(--muted); font-size: 1.0625rem; }
.meta { display: grid; gap: 6px; margin-top: 14px; font-size: .875rem; }
.meta div { display: flex; gap: 10px; }
.meta dt { flex-shrink: 0; min-width: 44px; white-space: nowrap; color: var(--muted); font-weight: 600; }
.meta dd { color: var(--ink-2); }
.article-body > h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 14px; scroll-margin-top: 88px; }
.article-body > p, .article-body > .bullets, .article-body > .steps, .article-body > .callout, .article-body > .table-wrap, .article-body > .checks { margin-top: 14px; }
.article-body > p:first-child { margin-top: 24px; }
.article-body p { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.bullets { display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 18px; color: var(--ink-2); line-height: 1.7; }
.bullets li::before { content: ''; position: absolute; left: 4px; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.step-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; font-size: .9375rem; }
.steps h3 { font-size: 1.0625rem; font-weight: 700; margin: 4px 0 4px; }
.steps p { color: var(--muted); line-height: 1.7; }
.fix-steps { counter-reset: f; display: grid; gap: 10px; margin-top: 14px; }
.fix-steps li { counter-increment: f; position: relative; padding: 14px 16px 14px 52px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; line-height: 1.7; color: var(--ink-2); }
.fix-steps li::before { content: counter(f); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-ink); color: #fff; font-weight: 800; font-size: .8125rem; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; align-items: flex-start; }
.callout .ic { margin-top: 3px; }
.callout p { margin: 0 !important; line-height: 1.7; }
.callout-info { background: var(--blue-soft); color: var(--blue-ink); }
.callout-info p { color: #1e3a66 !important; }
.callout-warn { background: #fff7e0; color: #7d5200; }
.callout-warn p { color: #4d3500 !important; }
.cat-intro { margin-bottom: 8px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { text-align: left; padding: 12px 14px; font-size: .875rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: #fff; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); line-height: 1.6; }
thead th { background: var(--bg-soft); font-size: .8125rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
.matrix td, .matrix thead th:not(:first-child) { text-align: center; }
.matrix td.yes { color: var(--blue-ink); font-weight: 800; }
.matrix td.no { color: var(--line-2); }
.checks { display: grid; gap: 10px; }
.check { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.check[open] { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(49,130,246,.06); }
.check summary, .faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.check summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.check-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-gray); font-size: .8125rem; font-weight: 800; color: var(--muted); }
.check[open] .check-n { background: var(--blue-ink); color: #fff; }
.check-q { flex: 1; }
.check-caret { margin-left: auto; color: var(--muted-2); transition: transform .2s; }
details[open] > summary .check-caret { transform: rotate(180deg); }
.check-body { padding: 0 16px 14px 54px; display: grid; gap: 8px; }
.faq { display: grid; gap: 8px; margin-top: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; }
.faq summary span { flex: 1; }
.faq details > p { padding: 0 16px 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 18px; }
.facts div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.facts dd { font-weight: 700; color: var(--ink); margin-top: 2px; line-height: 1.45; font-size: .9375rem; }
.cap-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.cap-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cap-group h3 { font-size: .875rem; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cap-group h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.cap-core { --dot: #17693b; } .cap-on { --dot: #3182f6; } .cap-optional { --dot: #d19a00; } .cap-off { --dot: #b0b8c1; } .cap-planned { --dot: #b0b8c1; }
.cap-group ul { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9375rem; }
.cap-group li { color: var(--ink-2); }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.module-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.module-card h3 { font-size: 1.0625rem; font-weight: 800; }
.module-used { font-size: .8125rem !important; color: var(--muted) !important; margin-top: -6px !important; }
.module-card dl { display: grid; gap: 6px; }
.module-card dt { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.module-card dt .ic { width: 16px; height: 16px; }
.module-card dt:first-of-type .ic { color: #17693b; }
.module-card dt:last-of-type .ic { color: #b4232b; }
.module-card dd { font-size: .9375rem; color: var(--ink-2); line-height: 1.65; }
.module-states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; }
.module-states .chip { font-size: .8125rem; padding: 2px 9px; }
.reason-list { display: grid; gap: 8px; margin-top: 14px; }
.reason-list a { display: grid; grid-template-columns: 150px 1fr auto 18px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.reason-list a:hover { text-decoration: none; border-color: var(--blue-line); background: var(--bg-soft); }
.reason-list .reason-text { font-size: .9375rem; line-height: 1.55; }
.reason-list code { font-size: .8125rem; background: transparent; color: var(--muted); }
.who-row { display: flex; flex-wrap: wrap; gap: 8px; }
.err-code { background: none; padding: 0; font-size: 1.75rem; color: var(--ink); letter-spacing: -.01em; word-break: break-all; }
.screen-text { margin: 4px 0 10px; padding: 12px 16px; border-left: 4px solid var(--line-2); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-weight: 700; color: var(--ink); line-height: 1.6; font-size: 1.0625rem; }
.st-label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.tone-line-warning { border-left-color: #e0a100; } .tone-line-danger { border-left-color: #e5484d; } .tone-line-info { border-left-color: var(--blue); } .tone-line-neutral { border-left-color: #8b95a1; }
.art-head .btn-sm { margin-top: 12px; }
.code-sample { margin-top: 12px; background: #0f1720; color: #e6edf3; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.code-sample code { background: none; color: inherit; padding: 0; }
.feedback { margin-top: 48px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.feedback h2 { font-size: 1.0625rem; font-weight: 800; }
.fb-buttons { display: flex; gap: 8px; margin-top: 12px; }
.fb-result:not(:empty) { margin-top: 14px; display: grid; gap: 12px; justify-items: start; }
.fb-result p { color: var(--ink-2); }
.related { margin-top: 36px; }
.related h2 { font-size: 1.125rem; font-weight: 800; margin-bottom: 10px; }
.ind-strip-sm a { font-size: .875rem; }
.toc { position: sticky; top: 88px; font-size: .875rem; border-left: 1px solid var(--line); padding-left: 16px; }
.toc h2 { font-size: .8125rem; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); line-height: 1.45; }
.toc a:hover { color: var(--blue-ink); text-decoration: none; }
.contact-mail { margin-top: 14px; }

/* ── 오류 코드 목록 ── */
.filters { display: grid; gap: 14px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .875rem; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.fchip span { color: var(--muted); font-weight: 500; }
.fchip:hover { background: var(--bg-soft); }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip[aria-pressed="true"] span { color: #c5ccd6; }
.filter-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.field { display: grid; gap: 4px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.field-grow { flex: 1; min-width: 220px; }
.field select, .field input { height: 42px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; font-weight: 500; color: var(--ink); font-size: .9375rem; }
.field select:focus, .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(49,130,246,.15); }
.etable th[scope=row] { white-space: nowrap; }
.etable th[scope=row] a { font-weight: 700; }
.etable th[scope=row] code { background: transparent; padding: 0; color: var(--blue-ink); font-size: .9rem; }
.http { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.e-title { font-weight: 600; color: var(--ink); }
.e-sum { display: block; font-size: .875rem; color: var(--muted); margin-top: 4px; }
.e-cat, .e-who { font-size: .875rem; white-space: nowrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .bullets { text-align: left; max-width: 460px; margin: 16px auto 0; }
.empty-ic { width: 36px; height: 36px; color: var(--muted-2); margin: 0 auto 10px; display: block; }
.empty-lg { margin-top: 32px; }
.empty-lg h1 { font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
.empty-lg .search { max-width: 520px; margin: 20px auto 0; }

/* ── 검색 결과 ── */
.sr-group { margin-top: 26px; }
.sr-group h2 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.sr-group h2 span { font-size: .8125rem; color: var(--muted); background: var(--bg-gray); border-radius: 999px; padding: 0 8px; }
.sr-list { border-top: 1px solid var(--line); }
.sr-list li { border-bottom: 1px solid var(--line); }
.sr-list a { display: grid; gap: 2px; padding: 14px 4px; color: var(--ink); }
.sr-list a:hover { text-decoration: none; background: var(--bg-soft); }
.sr-list strong { color: var(--blue-ink); font-weight: 700; }
.sr-list span { font-size: .9375rem; color: var(--muted); }

/* ── 바닥글 ── */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 36px 24px 44px; display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 32px; font-size: .875rem; color: var(--muted); }
.footer-brand img { width: 84px; }
.footer-brand p { margin-top: 10px; line-height: 1.6; }
.footer-links ul { display: grid; gap: 8px; }
.footer-links a { color: var(--ink-2); }
.footer-meta { display: grid; gap: 6px; line-height: 1.6; }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .article-grid.has-toc { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
  .header-search { width: 220px; }
  .site-nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 960px) {
  .header-inner { height: 60px; gap: 12px; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(25,31,40,.08); padding: 8px 16px 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 1rem; }
  .header-search { position: absolute; top: 60px; left: 0; right: 0; width: auto; margin: 0; padding: 8px 16px 10px; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav.open ~ .header-search { display: none; }
  body:has(.header-search:not([hidden])) main { padding-top: 62px; }
  .article-grid, .article-grid.has-toc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
  .side-box summary { padding: 10px 0; }
  .side-box[open] nav { padding-bottom: 10px; }
  .audience, .topic-grid, .ind-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .page { padding: 16px 16px 56px; }
  .header-inner { padding: 0 16px; }
  .brand img { width: 84px; }
  .brand-sub { font-size: 1rem; }
  .hero { padding: 40px 16px 36px; }
  .hero-dots { display: none; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .fchip { flex-shrink: 0; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 20px; }
  .search-big { height: 56px; padding-left: 46px; border-radius: 16px; }
  .search-big .search-ic { left: 15px; }
  .search-big .search-btn { padding: 0 14px; height: 42px; margin: 6px; }
  .search-big input { font-size: 1rem; }
  .band { margin-top: 40px; }
  .audience, .topic-grid, .ind-grid, .doc-grid, .module-grid, .cap-groups { grid-template-columns: 1fr; }
  .list-head h1 { font-size: 1.75rem; }
  .art-head { flex-direction: column; gap: 12px; }
  .art-head h1 { font-size: 1.625rem; }
  .err-code { font-size: 1.375rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .reason-list a { grid-template-columns: 1fr 18px; }
  .reason-list .reason-text { grid-column: 1; }
  .reason-list code { grid-column: 1; }
  .reason-list .ll-arrow { grid-row: 1 / span 3; grid-column: 2; }
  .contact-band { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .etable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .etable, .etable tbody, .etable tr, .etable th, .etable td { display: block; width: 100%; }
  .etable tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .etable th, .etable td { border: 0; padding: 2px 0; }
  .etable th[scope=row] { display: flex; align-items: baseline; gap: 8px; white-space: normal; }
  .etable .http { display: inline; margin: 0; }
  .etable .e-cat, .etable .e-who { display: inline; width: auto; color: var(--muted); font-size: .8125rem; }
  .etable .e-cat::after { content: ' · '; }
  .table-wrap:has(.etable) { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .side, .toc, .feedback, .site-footer, .contact-band { display: none !important; }
  .article-grid { display: block; }
}

.code-links { display: flex; flex-wrap: wrap; gap: 8px; }
.code-links a code { color: var(--blue-ink); }

/* 문장 속 링크는 색과 밑줄로 함께 구분한다 */
.article-body p a:not(.btn), .bullets a, .fix-steps a, .check-body a, .empty a, .faq a, .callout a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.code-links a { text-decoration: none !important; }
