/* 회사형 정보 사이트 테마 — 공통 CSS. 색·글꼴·모양은 site/skin.css 의 변수로 바꾼다 */
:root {
	--bg: #ffffff;
	--surface: #f6f7f9;
	--surface-2: #eef0f4;
	--ink: #111827;
	--ink-2: #4b5563;
	--ink-3: #6b7280;
	--line: #e5e7eb;
	--brand: #1d4ed8;
	--brand-ink: #ffffff;
	--brand-soft: #e8efff;
	--accent: #e11d48;
	--ok: #15803d;
	--warn: #b45309;
	--font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--font-head: var(--font-body);
	--font-num: var(--font-body);
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
	--shadow-lg: 0 10px 40px rgba(17, 24, 39, .12);
	--maxw: 1200px;
	--midw: 880px;
	--header-h: 68px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font-body); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em;
	word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: var(--midw); }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.ico { display: inline-block; vertical-align: -0.2em; flex: none; }

/* 버튼 */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { color: var(--brand-ink); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); background: var(--bg); }
.btn-ghost:hover { border-color: var(--brand); }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
	border: 1px solid transparent; background: transparent;
}
.icon-btn:hover { background: var(--surface); color: var(--brand); }

/* 위 띠 */
.topbar { background: var(--ink); color: rgba(255,255,255,.78); font-size: 13px; }
.topbar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar-nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-nav a:hover { color: #fff; }
@media (max-width: 760px) { .topbar-nav { display: none; } }

/* 머리 */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--brand); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand-en { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line); }
.gnav { flex: 1; }
.gnav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gnav-list a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.gnav-list a:hover { color: var(--ink); background: var(--surface); }
.gnav-list .current-menu-item > a, .gnav-list .current-menu-ancestor > a, .gnav-list .current-post-ancestor > a { color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
	.brand-en { display: none; }
	.nav-toggle { display: inline-grid; }
	.header-cta { display: none; }
	.gnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
	.gnav.is-open { display: block; }
	.gnav-list { flex-direction: column; padding: 10px 16px 18px; }
	.gnav-list a { padding: 12px 10px; font-size: 16px; }
}
.search-panel { border-top: 1px solid var(--line); background: var(--bg); padding: 18px 0; }

/* 검색 */
.search-form { display: flex; align-items: center; gap: 8px; position: relative; width: 100%; }
.search-form .search-ico { position: absolute; left: 14px; color: var(--ink-3); display: inline-flex; }
.search-form input {
	flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 42px; border-radius: var(--radius);
	border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
.search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-form .btn { height: 48px; }
.search-big { margin-top: 24px; max-width: 640px; }

/* 섹션 */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0 88px; }
.section-alt { background: var(--surface); }
@media (max-width: 760px) { .section { padding: 60px 0; } }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.sec-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.sec-desc { margin-top: 12px; color: var(--ink-2); max-width: 640px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.more:hover { color: var(--brand); }
@media (max-width: 640px) { .sec-head { flex-direction: column; align-items: flex-start; } }

/* 격자·카드 */
.grid { display: grid; gap: 24px; }
.grid > *, .article-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-ph { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.card-cat { font-size: 13px; font-weight: 700; color: var(--brand); }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.45; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-3); display: flex; gap: 12px; align-items: center; }

/* 경로 */
.crumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--ink-3); }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumb a:hover { color: var(--brand); }

/* 페이지 머리 */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-lead { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 720px; }
.page-lead p { margin: 0; }
.archive-count { margin-top: 14px; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.empty { padding: 40px 0; color: var(--ink-2); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0; }
.chip-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.notfound { text-align: left; }

/* 글 */
.article-head { padding: 48px 0 32px; }
.article-cat { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.article-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.25; }
.article-lead { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.article-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { margin: 0 auto 8px; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; padding-top: 32px; padding-bottom: 72px; }
.article-side { order: 0; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 1024px) {
	.article-grid { grid-template-columns: minmax(0, 1fr); max-width: var(--midw); gap: 0; }
	.side-sticky { position: static; }
	.article-side .toc { margin-bottom: 28px; }
}
.toc { border-left: 2px solid var(--line); padding-left: 16px; font-size: 14px; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { color: var(--ink-3); display: block; line-height: 1.5; }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--font-num); font-size: 12px; opacity: .7; }
.toc a:hover, .toc a.is-active { color: var(--brand); }
@media (max-width: 1024px) { .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; } }

.box-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.box-h { font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.summary-box { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 36px; }
.summary-box .box-title { color: var(--brand); }
.summary-box ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* 본문 */
.prose { font-size: 17px; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; font-weight: 800; margin-top: 2.2em; padding-top: .4em; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 1.8em; }
.prose h4 { font-size: 17px; font-weight: 700; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .lead { font-size: 18px; color: var(--ink-2); }
.prose-page { padding: 48px 0 96px; }
.prose code { font-size: .9em; background: var(--surface); padding: 2px 6px; border-radius: 4px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.6em 0; }
.prose table, .tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td, .tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .tbl thead th { background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.prose tbody tr:last-child td, .tbl tbody tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num, .tbl .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* 본문 부품 (REST 글에서도 쓰는 클래스) */
.callout { border-radius: var(--radius); padding: 16px 20px; background: var(--surface); border-left: 4px solid var(--ink-3); }
.callout > * + * { margin-top: .5em; }
.callout.note { border-left-color: var(--brand); background: var(--brand-soft); }
.callout.tip { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--bg)); }
.callout.warn { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.6em 0; }
.spec > div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.spec dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.spec dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.steps { list-style: none; padding: 0 !important; counter-reset: st; display: grid; gap: 14px; }
.steps > li { counter-increment: st; position: relative; padding: 14px 18px 14px 60px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 !important; }
.steps > li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; font-family: var(--font-num); }
.steps > li strong:first-child { display: block; }
.pc { display: inline-block; min-width: 2.1em; padding: 1px 5px; margin: 1px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font-family: var(--font-num); font-weight: 700; font-size: .92em; text-align: center; line-height: 1.5; white-space: nowrap; }


/* 바로잡기·FAQ·출처 */
.checks-box { margin-top: 48px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; }
.checks p { display: flex; gap: 10px; align-items: flex-start; }
.checks .wrong { color: var(--ink-3); }
.checks .wrong span { text-decoration: line-through; text-decoration-color: var(--accent); }
.checks .wrong .ico { color: var(--accent); margin-top: 4px; }
.checks .right { font-weight: 600; }
.checks .right .ico { color: var(--ok); margin-top: 4px; }
.faq { margin-top: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-a { padding: 0 0 20px; color: var(--ink-2); }
.faq-a p + p { margin-top: .6em; }
.sources { margin-top: 40px; font-size: 14px; color: var(--ink-3); }
.sources ul { margin: 0; padding-left: 18px; }
.tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 14px; padding: 4px 12px; background: var(--surface); border-radius: 999px; color: var(--ink-2); }
.related { background: var(--surface); padding: 72px 0; }

/* 쪽번호 */
.pagination { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; }
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 바닥 */
.site-footer { background: var(--footer-bg, #0f172a); color: var(--footer-ink, rgba(255,255,255,.72)); padding: 64px 0 0; font-size: 15px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { color: var(--footer-mark, #fff); }
.site-footer .brand-en { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.5); }
.footer-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-about { margin-top: 16px; max-width: 380px; line-height: 1.75; }
.footer-mail { margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.footer-mail a:hover, .footer-col a:hover, .footer-legal a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.footer-col-title { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 28px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .footer-in { grid-template-columns: 1fr; gap: 36px; } }

/* 다크 모드 토글 아이콘 */
.when-dark { display: none; }
[data-theme="dark"] .when-dark { display: inline-flex; }
[data-theme="dark"] .when-light { display: none; }

/* 위로가기(mu-plugin) 와 겹침 방지 */
@media print { .site-header, .site-footer, .article-side, .related { display: none; } }

/* 넓은 화면: 글 제목·표지를 본문 단(목차 옆)과 같은 선에 맞춘다 */
@media (min-width: 1025px) {
	.article-head .wrap-mid, .article-cover.wrap-mid { max-width: calc(240px + 56px + 760px + 48px); padding-left: calc(24px + 240px + 56px); }
}

/* 데이터 부품: 수치 타일, 막대 (REST 글에서도 쓴다) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0; }
.stats > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.stats strong { display: block; font-family: var(--font-num); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--brand); }
.stats span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.bar { display: inline-block; vertical-align: middle; width: 88px; height: 8px; margin-left: 10px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v, 0) * 1%); background: var(--brand); border-radius: 4px; }
.pc.r { color: var(--card-red, #c62828); }
