/*
 * postkit 방문자 화면. 모든 클래스는 pk- 로 시작한다(사이트 CSS 와 섞이지 않게).
 * 색·간격은 아래 변수만 바꾸면 된다 - 사이트별로는 custom.css 에서 :root 변수를 덮어쓴다.
 * 색 기준: url.kr 웹진(블루그레이 #50586C).
 */
:root {
  --pk-accent: #50586C;
  --pk-accent-dark: #3D4456;
  --pk-accent-soft: #DCE2F0;
  --pk-bg: #F4F5F9;
  --pk-surface: #FFFFFF;
  --pk-muted-bg: #ECEEF4;
  --pk-text: #2C3040;
  --pk-text-2: #5A5F72;
  --pk-text-3: #737990;
  --pk-line: #D8DBE6;
  --pk-line-2: #E8EAF2;
  --pk-link: #2F5FA8;
  --pk-ok: #1E7B34;
  --pk-warn: #9A5B00;
  --pk-danger: #B42318;
  --pk-font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --pk-mono: ui-monospace, SFMono-Regular, Consolas, "D2Coding", monospace;
  --pk-radius: 12px;
  --pk-radius-sm: 8px;
  --pk-shadow: 0 1px 3px rgba(30, 30, 46, .05);
  --pk-wrap: 1180px;
  --pk-read: 760px;
}

html { scrollbar-gutter: stable; }
body.pk { display: flex; flex-direction: column; min-height: 100vh; margin: 0;background: var(--pk-bg); color: var(--pk-text); font-family: var(--pk-font); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
.pk *, .pk *::before, .pk *::after { box-sizing: border-box; }
.pk a { color: inherit; }
.pk img { max-width: 100%; height: auto; }
.pk :focus-visible { outline: 3px solid var(--pk-link); outline-offset: 2px; border-radius: 4px; }
.pk-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.pk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pk-skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--pk-accent); color: #fff !important; border-radius: var(--pk-radius-sm); text-decoration: none; }
.pk-skip:focus { top: 12px; }
.pk-main { flex: 1 0 auto; }
.pk-wrap { max-width: var(--pk-wrap); margin: 0 auto; padding: 32px 20px 56px; }
.pk-narrow { max-width: 820px; }

/* ---------- 머리 ---------- */
.pk-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--pk-line-2); backdrop-filter: saturate(160%) blur(8px); }
.pk-header-inner { max-width: var(--pk-wrap); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.pk-logo { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--pk-accent-dark) !important; white-space: nowrap; }
.pk-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pk-nav::-webkit-scrollbar { display: none; }
.pk-nav a { padding: 6px 12px; border-radius: 999px; font-size: 15px; color: var(--pk-text-2); text-decoration: none; white-space: nowrap; }
.pk-nav a:hover { background: var(--pk-muted-bg); color: var(--pk-text); }
.pk-nav a.on { background: var(--pk-accent); color: #fff; }
.pk-header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pk-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--pk-text-2); cursor: pointer; text-decoration: none; }
.pk-icon-btn:hover { background: var(--pk-muted-bg); color: var(--pk-text); }
.pk-icon-btn .pk-icon { width: 20px; height: 20px; }
.pk-write-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--pk-accent); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.pk-write-btn:hover { background: var(--pk-accent-dark); }
.pk-menu-btn { display: none; }
.pk-search { border-top: 1px solid var(--pk-line-2); background: var(--pk-surface); }
.pk-search form { max-width: 720px; margin: 0 auto; padding: 14px 20px; display: flex; gap: 8px; }
.pk-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--pk-line); border-radius: var(--pk-radius-sm); font: inherit; font-size: 16px; }
.pk-search button { width: 48px; height: 48px; border: 0; border-radius: var(--pk-radius-sm); background: var(--pk-accent); color: #fff; cursor: pointer; }
.pk-mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 16px 16px; border-top: 1px solid var(--pk-line-2); background: var(--pk-surface); }
.pk-mobile-nav[hidden] { display: none; }
.pk-mobile-nav a { padding: 12px; border-radius: var(--pk-radius-sm); text-decoration: none; font-size: 15px; }
.pk-mobile-nav a:hover { background: var(--pk-muted-bg); }

/* ---------- 첫 화면·목록 ---------- */
.pk-hero { background: var(--pk-accent); color: #fff; text-align: center; padding: 56px 20px 52px; }
.pk-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); line-height: 1.3; letter-spacing: -0.02em; }
.pk-hero p { margin: 12px auto 0; font-size: 17px; color: rgba(255, 255, 255, .85); }
.pk-list-head { margin-bottom: 20px; }
.pk-list-head h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }
.pk-list-head p { margin: 0; color: var(--pk-text-3); font-size: 15px; }
.pk-list-head a { color: var(--pk-link); }
.pk-layout-switch { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 14px; }
.pk-layout-switch button { width: 40px; height: 40px; border: 1px solid var(--pk-line); border-radius: var(--pk-radius-sm); background: var(--pk-surface); color: var(--pk-text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pk-layout-switch button[aria-pressed="true"] { border-color: var(--pk-accent); color: var(--pk-accent); background: var(--pk-accent-soft); }
.pk-posts { display: grid; gap: 20px; }
.pk-layout-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pk-card { background: var(--pk-surface); border: 1px solid var(--pk-line-2); border-radius: var(--pk-radius); overflow: hidden; transition: border-color .15s; }
.pk-card:hover { border-color: var(--pk-accent-soft); }
.pk-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.pk-card-thumb { aspect-ratio: 1200 / 630; background: var(--pk-muted-bg); overflow: hidden; }
.pk-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px 20px; background: linear-gradient(160deg, var(--pk-accent), var(--pk-accent-dark)); color: #fff; font-weight: 700; font-size: 17px; line-height: 1.45; text-align: center; overflow: hidden; }
.pk-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pk-card-cat { font-size: 13px; font-weight: 700; color: var(--pk-accent); }
.pk-card-title { margin: 0; font-size: 18px; line-height: 1.45; color: var(--pk-text); }
.pk-card-excerpt { margin: 0; font-size: 15px; color: var(--pk-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-card-date { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--pk-text-3); }
.pk-layout-card { grid-template-columns: 1fr; gap: 14px; }
.pk-layout-card .pk-card-link { flex-direction: row; }
.pk-layout-card .pk-card-thumb { width: 260px; flex: none; }
.pk-layout-list { grid-template-columns: 1fr; gap: 0; background: var(--pk-surface); border: 1px solid var(--pk-line-2); border-radius: var(--pk-radius); }
.pk-layout-list .pk-card { border: 0; border-radius: 0; border-bottom: 1px solid var(--pk-line-2); background: none; }
.pk-layout-list .pk-card:last-child { border-bottom: 0; }
.pk-layout-list .pk-card-thumb { display: none; }
.pk-layout-list .pk-card-body { padding: 18px 22px; }
.pk-empty { text-align: center; padding: 64px 20px; color: var(--pk-text-2); }
.pk-empty h1, .pk-empty h2 { margin: 12px 0 6px; font-size: 20px; color: var(--pk-text); }
.pk-empty-icon { width: 44px; height: 44px; color: var(--pk-text-3); }
.pk-empty a { color: var(--pk-link); }
.pk-404-code { font-size: 64px; font-weight: 800; color: var(--pk-accent-soft); margin: 0; line-height: 1; }

/* 쪽 번호 (관리 화면과 같이 쓴다) */
.pk-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pk-pager a, .pk-pager span { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pk-radius-sm); border: 1px solid var(--pk-line); background: var(--pk-surface); text-decoration: none; font-size: 15px; }
.pk-pager a:hover { border-color: var(--pk-accent); }
.pk-pager .on { background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; font-weight: 700; }
.pk-pager .off { color: var(--pk-line); }
.pk-pager .dots { border: 0; background: none; }

/* ---------- 글 보기 ---------- */
.pk-view { max-width: var(--pk-wrap); margin: 0 auto; padding: 28px 20px 64px; display: grid; grid-template-columns: minmax(0, var(--pk-read)); justify-content: center; gap: 0 40px; }
.pk-view.pk-has-toc { grid-template-columns: 220px minmax(0, var(--pk-read)); }
.pk-view.pk-has-toc .pk-related { grid-column: 2; }
.pk-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-top: 6px; }
.pk-toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--pk-text-3); letter-spacing: .04em; }
.pk-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--pk-line-2); }
.pk-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.5; color: var(--pk-text-2); text-decoration: none; }
.pk-toc .pk-toc-l3 a { padding-left: 26px; font-size: 13px; }
.pk-toc .pk-toc-l4 a { padding-left: 38px; font-size: 13px; }
.pk-toc a:hover { color: var(--pk-text); }
.pk-toc a.on { color: var(--pk-accent-dark); border-left-color: var(--pk-accent); font-weight: 700; }
.pk-article { background: var(--pk-surface); border: 1px solid var(--pk-line-2); border-radius: var(--pk-radius); padding: 40px 48px 32px; min-width: 0; }
.pk-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--pk-text-3); }
.pk-crumb a { text-decoration: none; }
.pk-crumb a:hover { color: var(--pk-text); text-decoration: underline; }
.pk-crumb .pk-icon { width: 14px; height: 14px; }
.pk-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24em; }
.pk-article-title { margin: 14px 0 16px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.35; letter-spacing: -0.02em; }
.pk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 20px; border-bottom: 1px solid var(--pk-line-2); font-size: 14px; color: var(--pk-text-3); }
.pk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pk-meta-cat { padding: 3px 10px; border-radius: 999px; background: var(--pk-accent-soft); color: var(--pk-accent-dark) !important; font-weight: 700; text-decoration: none; font-size: 13px; }
.pk-meta-admin { margin-left: auto; gap: 8px !important; }
.pk-meta-admin a { padding: 4px 10px; border: 1px solid var(--pk-line); border-radius: 6px; text-decoration: none; font-size: 13px; }
.pk-intro { margin: 24px 0 0; padding: 18px 20px; background: var(--pk-muted-bg); border-radius: var(--pk-radius-sm); }
.pk-intro-label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--pk-accent-dark); }
.pk-summary-text { margin: 0; font-size: 16px; color: var(--pk-text); }
.pk-series { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pk-line); }
.pk-summary + .pk-series { margin-top: 14px; }
.pk-intro > .pk-series:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pk-series-desc { margin: 0 0 6px; font-size: 14px; color: var(--pk-text-2); }
.pk-series ol { margin: 6px 0 0; padding-left: 22px; font-size: 15px; }
.pk-series li { margin: 3px 0; }
.pk-series a { color: var(--pk-link); }
.pk-disclosure { margin: 20px 0 0; padding: 10px 14px; border: 1px solid #B8DDBF; background: #F1FAF2; border-radius: var(--pk-radius-sm); font-size: 14px; color: var(--pk-text-2); }

/* 본문 */
.pk-content { margin-top: 28px; font-size: 17px; line-height: 1.85; }
.pk-content > :first-child { margin-top: 0; }
.pk-content p { margin: 0 0 1.15em; }
.pk-content h2 { margin: 2.2em 0 .8em; padding-bottom: .4em; border-bottom: 2px solid var(--pk-line-2); font-size: 24px; line-height: 1.4; scroll-margin-top: 84px; }
.pk-content h3 { margin: 1.8em 0 .6em; font-size: 20px; line-height: 1.45; scroll-margin-top: 84px; }
.pk-content h4 { margin: 1.5em 0 .5em; font-size: 18px; scroll-margin-top: 84px; }
.pk-content a { color: var(--pk-link); text-underline-offset: 3px; }
.pk-content ul, .pk-content ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.pk-content li { margin: .3em 0; }
.pk-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--pk-accent); background: var(--pk-muted-bg); border-radius: 0 var(--pk-radius-sm) var(--pk-radius-sm) 0; color: var(--pk-text-2); }
.pk-content blockquote p:last-child { margin-bottom: 0; }
.pk-content hr { border: 0; border-top: 1px solid var(--pk-line); margin: 2em 0; }
.pk-content img { border-radius: var(--pk-radius-sm); }
.pk-content figure { margin: 1.6em 0; }
.pk-content figure.image { text-align: center; }
.pk-content figure.image img { display: block; margin: 0 auto; }
.pk-content figure.image-style-side, .pk-content figure.image-style-align-right { float: right; max-width: 45%; margin: .3em 0 1em 1.4em; }
.pk-content figure.image-style-align-left { float: left; max-width: 45%; margin: .3em 1.4em 1em 0; }
.pk-content figcaption { margin-top: 8px; font-size: 14px; color: var(--pk-text-3); text-align: center; }
.pk-content figure.table { overflow-x: auto; display: block; }
.pk-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.pk-content th, .pk-content td { padding: 10px 12px; border: 1px solid var(--pk-line); text-align: left; vertical-align: top; }
.pk-content th { background: var(--pk-muted-bg); font-weight: 700; }
.pk-content pre { overflow-x: auto; padding: 16px; border-radius: var(--pk-radius-sm); background: #1F2330; color: #E6E8EF; font: 14px/1.6 var(--pk-mono); }
.pk-content :not(pre) > code { padding: 2px 6px; border-radius: 4px; background: var(--pk-muted-bg); font: .9em var(--pk-mono); }
.pk-content::after { content: ""; display: block; clear: both; }
.pk-content mark { padding: 0 2px; border-radius: 3px; }
.pk-content .marker-yellow { background: #FDF59A; }
.pk-content .marker-green { background: #C7F5C2; }
.pk-content .marker-pink { background: #FDD4E3; }
.pk-content .marker-blue { background: #CBE6FF; }
.pk-content .pen-red { background: none; color: #C92A2A; }
.pk-content .pen-green { background: none; color: #1E7B34; }

/* 쇼트코드 */
.pk-toc-box { margin: 1.6em 0; border: 1px solid var(--pk-line); border-radius: var(--pk-radius-sm); background: var(--pk-surface); font-size: 15px; }
.pk-toc-box summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.pk-toc-box summary::-webkit-details-marker { display: none; }
.pk-toc-box ul { margin: 0; padding: 4px 16px 14px 34px; }
.pk-toc-box .pk-toc-l3 { margin-left: 1em; }
.pk-toc-box .pk-toc-l4 { margin-left: 2em; }
.pk-code { margin: 1.4em 0; border-radius: var(--pk-radius-sm); overflow: hidden; background: #1F2330; }
.pk-code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: #2A2F3E; color: #A9AFC0; font-size: 13px; font-weight: 700; }
.pk-code-copy { height: 32px; padding: 0 12px; border: 1px solid #4A5063; border-radius: 6px; background: none; color: #E6E8EF; font-size: 13px; cursor: pointer; }
.pk-code-copy.pk-done { border-color: #6FCF7B; color: #6FCF7B; }
.pk-code pre { margin: 0; border-radius: 0; }
.pk-ibox { display: flex; gap: 12px; margin: 1.4em 0; padding: 16px 18px; border-radius: var(--pk-radius-sm); border: 1px solid; font-size: 16px; line-height: 1.7; }
.pk-ibox-icon .pk-icon { width: 22px; height: 22px; }
.pk-ibox-body { min-width: 0; }
.pk-ibox-body strong { display: block; margin-bottom: 2px; }
.pk-ibox-body p:last-child { margin-bottom: 0; }
.pk-ibox-info { background: #EEF4FC; border-color: #C5D8F2; color: #1D3F6E; }
.pk-ibox-tip { background: #EEF8F0; border-color: #C3E3CA; color: #1E5A2C; }
.pk-ibox-warning { background: #FFF6E6; border-color: #F2D9A6; color: #6E4A00; }
.pk-ibox-danger { background: #FDEEEE; border-color: #F2C6C3; color: #7A1D16; }
.pk-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: var(--pk-radius-sm); border: 2px solid var(--pk-accent); background: var(--pk-accent); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.pk-btn:hover { background: var(--pk-accent-dark); border-color: var(--pk-accent-dark); }
.pk-btn-outline { background: none; color: var(--pk-accent-dark) !important; }
.pk-btn-outline:hover { background: var(--pk-accent-soft); }
.pk-faq { margin: 1.6em 0; border-top: 1px solid var(--pk-line); }
.pk-faq-item { border-bottom: 1px solid var(--pk-line); }
.pk-faq-item summary { display: flex; gap: 12px; align-items: flex-start; padding: 16px 4px; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.pk-faq-item summary::-webkit-details-marker { display: none; }
.pk-faq-q, .pk-faq-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.pk-faq-q { background: var(--pk-accent); color: #fff; }
.pk-faq-mark { background: var(--pk-accent-soft); color: var(--pk-accent-dark); }
.pk-faq-a { display: flex; gap: 12px; padding: 0 4px 18px; font-size: 16px; color: var(--pk-text-2); }
.pk-ad { margin: 24px 0; text-align: center; overflow: hidden; }
.pk-autolink { font-weight: 600; }

/* 글 아래 */
.pk-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pk-adjacent a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--pk-line-2); border-radius: var(--pk-radius-sm); text-decoration: none; }
.pk-adjacent a:hover { border-color: var(--pk-accent); }
.pk-adjacent span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--pk-text-3); }
.pk-adjacent strong { font-size: 15px; line-height: 1.5; }
.pk-next { text-align: right; align-items: flex-end; }
.pk-article-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--pk-line-2); display: grid; gap: 16px; }
.pk-dates { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--pk-text-3); }
.pk-dates span { display: inline-flex; align-items: center; gap: 5px; }
.pk-author { padding: 18px 20px; border-radius: var(--pk-radius-sm); background: var(--pk-muted-bg); }
.pk-author p { margin: 0; }
.pk-author-label { font-size: 13px; color: var(--pk-text-3); }
.pk-author-name { font-weight: 800; font-size: 17px; }
.pk-author-bio { margin-top: 4px !important; font-size: 15px; color: var(--pk-text-2); }
.pk-author-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 14px; color: var(--pk-link); }
.pk-share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--pk-line); border-radius: 999px; background: var(--pk-surface); font: inherit; font-size: 15px; cursor: pointer; }
.pk-share-btn:hover { border-color: var(--pk-accent); }
.pk-share-btn.pk-done { border-color: var(--pk-ok); color: var(--pk-ok); }
.pk-related { margin-top: 28px; }
.pk-related h2 { font-size: 20px; margin: 0 0 12px; }
.pk-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pk-related a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 10px; border: 1px solid var(--pk-line-2); border-radius: var(--pk-radius-sm); background: var(--pk-surface); text-decoration: none; font-size: 15px; line-height: 1.5; }
.pk-related img { aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 6px; width: 100%; }
.pk-cta { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px); }
.pk-cta a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--pk-accent-dark); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(30, 30, 46, .25); }
.pk-cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-preview-bar { margin: 0; padding: 10px 16px; background: #FFF4D6; color: #6E4A00; text-align: center; font-weight: 700; font-size: 14px; }

/* 저자 소개 */
.pk-author-page-head { text-align: center; padding: 16px 0 24px; border-bottom: 1px solid var(--pk-line-2); margin-bottom: 24px; }
.pk-author-avatar { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--pk-accent-soft); color: var(--pk-accent-dark); }
.pk-author-page-head h1 { margin: 12px 0 4px; font-size: 30px; }
.pk-author-page-head p { margin: 0; color: var(--pk-text-2); }
.pk-author-more { text-align: center; margin-top: 28px; }

/* ---------- 꼬리 ---------- */
.pk-footer { border-top: 1px solid var(--pk-line-2); background: var(--pk-surface); }
.pk-footer-inner { max-width: var(--pk-wrap); margin: 0 auto; padding: 32px 20px 12px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.pk-footer-about strong { font-size: 17px; }
.pk-footer-about p { margin: 6px 0 0; font-size: 14px; color: var(--pk-text-2); }
.pk-footer-about a { color: var(--pk-link); }
.pk-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-content: flex-start; }
.pk-footer-nav a { padding: 6px 0; font-size: 14px; color: var(--pk-text-2); text-decoration: none; }
.pk-footer-nav a:hover { color: var(--pk-text); text-decoration: underline; }
.pk-copy { max-width: var(--pk-wrap); margin: 0 auto; padding: 12px 20px 28px; font-size: 13px; color: var(--pk-text-3); }
.pk-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--pk-line); background: var(--pk-surface); color: var(--pk-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--pk-shadow); }
.pk-top[hidden] { display: none; }
.pk-has-cta .pk-top { bottom: 84px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 991.98px) {
  .pk-view.pk-has-toc { grid-template-columns: minmax(0, var(--pk-read)); }
  .pk-view.pk-has-toc .pk-related { grid-column: auto; }
  .pk-toc { display: none; }
}
@media (max-width: 767.98px) {
  .pk-header-inner { height: 56px; gap: 8px; padding: 0 8px 0 16px; }
  .pk-nav { display: none; }
  .pk-menu-btn { display: inline-flex; }
  .pk-write-btn span { display: none; }
  .pk-write-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 10px; }
  .pk-wrap { padding: 24px 16px 48px; }
  .pk-hero { padding: 40px 16px 36px; }
  .pk-layout-card .pk-card-thumb { width: 116px; aspect-ratio: 1; }
  .pk-layout-card .pk-card-body { padding: 12px 14px; }
  .pk-layout-card .pk-card-excerpt { display: none; }
  .pk-card-title { font-size: 17px; }
  .pk-view { padding: 0 0 48px; }
  .pk-article { border-radius: 0; border-left: 0; border-right: 0; padding: 24px 16px; }
  .pk-content { font-size: 16px; }
  .pk-content h2 { font-size: 21px; }
  .pk-content h3 { font-size: 18px; }
  .pk-content figure.image-style-side, .pk-content figure.image-style-align-right, .pk-content figure.image-style-align-left { float: none; max-width: 100%; margin: 1.4em 0; }
  .pk-adjacent { grid-template-columns: 1fr; }
  .pk-next { text-align: left; align-items: flex-start; }
  .pk-related { padding: 0 16px; }
  .pk-related ul { grid-template-columns: 1fr 1fr; }
  .pk-footer-inner { grid-template-columns: 1fr; gap: 12px; padding: 24px 16px 8px; }
  .pk-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .pk-meta-admin { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pk *, .pk *::before, .pk *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .pk-header, .pk-footer, .pk-toc, .pk-top, .pk-cta, .pk-share, .pk-ad, .pk-related, .pk-layout-switch { display: none !important; }
  .pk-article { border: 0; padding: 0; }
}
