@font-face { font-family: "NSNeo"; src: url("../fonts/glbat-neo-regular.woff?v=533f513b"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NSNeo"; src: url("../fonts/glbat-neo-bold.woff?v=4af6fd64"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NSNeo"; src: url("../fonts/glbat-neo-extrabold.woff?v=da67bf5a"); font-weight: 800; font-style: normal; font-display: swap; }
/* 연희 블로그 테마 — Katen 위에 덮는 한 장 (2026-10-31 · 해솔)
   한 뼈대 + 사이트별 색 · 제목 글꼴. 글꼴은 장부 「써도 됨」 OFL만(나눔스퀘어 네오 · 마루 부리). */


:root {
  --ink: #1f2933; --ink-2: #52606d; --line: #d9dee5;
  --bg: #ffffff; --bg-soft: #f4f6f9; --card: #ffffff;
  --accent: #1f4e8c; --accent-soft: #e6eef8; --accent-ink: #ffffff;
  --title-font: "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --title-weight: 800;
  --body-font: "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
html[data-site="policy"] { --accent: #1f4e8c; --accent-soft: #e6eef8; --bg-soft: #f3f6fa; }
html[data-site="health"] { --accent: #24704f; --accent-soft: #e4f2ea; --bg-soft: #f2f7f4; }
html[data-site="nyang"]  { --accent: #6b4423; --accent-soft: #f6e9da; --bg: #fffaf2; --bg-soft: #fbf1e3; --card: #fffdf8; --line: #e8d9c4;
                           --title-font: "Maru", "AppleMyungjo", "Apple SD Gothic Neo", "Malgun Gothic", serif; --title-weight: 700; }

/* QC-01 흔들림 0 */
html { scrollbar-gutter: stable; }

/* QC-09 · 14 글꼴 · 글자 단계 */
body { font-family: var(--body-font); font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--bg); word-break: keep-all; }
h1, h2, h3, h4, h5, h6, .post-title, .widget-title, .section-title, .logo-text { font-family: var(--title-font); font-weight: var(--title-weight); color: var(--ink); letter-spacing: -0.01em; }
.post-single .post-header .title { font-size: 36px; line-height: 1.35; }
.post-content { font-size: 17px; }
.post-content h2 { font-size: 26px; margin: 48px 0 16px; line-height: 1.4; }
.post-content h3 { font-size: 21px; margin: 32px 0 12px; }
.post-content p, .post-content li { color: var(--ink); }
.meta, .meta a, .breadcrumb-item, .breadcrumb-item a, .excerpt { color: var(--ink-2) !important; font-size: 14px; }
.post.post-grid .post-title { font-size: 19px; line-height: 1.45; }

/* Katen 분홍 → 사이트 색 */
.category-badge, .btn-default, .page-item.active .page-link { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }
a { color: var(--accent); }
.post-title a, .navbar-nav .nav-link { color: var(--ink); }
.post-title a:hover, .navbar-nav .nav-link:hover { color: var(--accent); }
.tag { border-color: var(--line); color: var(--ink-2); }
.icon-button { background: var(--accent) !important; box-shadow: none !important; }
.burger-icon, .burger-icon::before, .burger-icon::after { background: #fff; }
.widget, .post.post-grid.bordered, .post-single { background: var(--card); border-color: var(--line); }
.widget-header .wave { display: none; }
.widget-title { font-size: 18px; }
header, footer { background: var(--bg); }
footer { border-top: 1px solid var(--line); }

/* 로고 */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: inline-block; flex: none; }
html[data-site="nyang"] .logo-mark { border-radius: 50% 50% 46% 46%; }
.logo-mark-lg { width: 56px; height: 56px; margin-bottom: 12px; }
.logo-text { font-size: 22px; line-height: 1.1; color: var(--ink); display: flex; flex-direction: column; }
.logo-text small { font-family: var(--body-font); font-size: 11px; font-weight: 400; color: var(--ink-2); letter-spacing: 0.04em; }

/* 홈 머리 띠 */
.hero-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0; margin-bottom: 32px; }
.site-tagline { font-size: 28px; margin: 0; }
.page-header { background: var(--bg-soft); padding: 40px 0; margin-bottom: 32px; }
.section-header { margin: 40px 0 20px; }
.section-title { font-size: 22px; }
.lead-post { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 24px; }
.lead-title { font-size: 28px; line-height: 1.4; margin: 14px 0 10px; }
.lead-title a { color: var(--ink); }
.lead-post .excerpt { margin-bottom: 12px; }
.lead-img { display: block; }

/* 글 안 상자 · 표 · 차례 · 광고 자리 */
.callout { display: flex; flex-direction: column; gap: 4px; background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: 8px; margin: 24px 0; }
.callout strong { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.post-content table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 16px; }
.post-content th, .post-content td { vertical-align: top; line-height: 1.6; padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.post-content th { background: var(--bg-soft); font-weight: 700; }
.widget-toc { position: sticky; top: 16px; }
.toc { margin: 0; padding-left: 20px; } .toc li { margin: 6px 0; } .toc a { color: var(--ink); }
.widget-about .about-text { color: var(--ink-2); }

/* QC-12 터치 44px */
.navbar-nav .nav-link, .footer-links a, .pagination .page-link, .tag, .widget .list a, .breadcrumb-item a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a { margin-left: 18px; color: var(--ink-2); }
.icon-button { width: 44px; height: 44px; }
.post-grid .category-badge, .post-header .category-badge, .lead-post .category-badge { min-height: 30px; padding: 4px 12px; display: inline-flex; align-items: center; }

/* QC-02 폭 · QC-11 폰 여백 */
@media (min-width: 1400px) { .container-xl { max-width: 1240px; } }
@media (max-width: 767px) {
  .container-xl { padding-left: 16px; padding-right: 16px; }
  .post-single .post-header .title { font-size: 28px; }
  .post-content h2 { font-size: 23px; } .post-content h3 { font-size: 19px; }
  .lead-post { grid-template-columns: 1fr; padding: 16px; } .lead-title { font-size: 23px; }
  .site-tagline { font-size: 22px; }
  .footer-links a { margin: 0 14px 0 0; }
}

/* QC 맞춤 2차 (10-31) */
.post-content p, .post-content li { font-size: 17px; }
.post-content th, .post-content td { color: var(--ink); }
.site-logo { min-height: 44px; }
.toc a { display: block; padding: 10px 0; }
.toc li { margin: 0; }
.post-list-sm .post-title a { display: inline-block; min-height: 44px; padding: 4px 0; }

/* Production adapter: real content, native navigation, no demo or ad slots. */
:root { color-scheme: light; --title-font: "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --body-font: "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[data-site="nyang"] { --title-font: "Maru", "Apple SD Gothic Neo", "Malgun Gothic", serif; }
html { overflow-wrap: break-word; scrollbar-gutter: stable; }
body { min-width: 0; }
.site-wrapper { overflow: visible; }
.site-notice { font-family: var(--body-font); background: var(--accent-soft); padding: 10px max(16px, calc((100% - 1140px)/2)); font-size: 14px; line-height: 1.6; }
.site-header { border-bottom: 1px solid var(--line); }
.header-default { padding: 0; border: 0; }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 24px 12px; }
.site-brand { flex: none; color: var(--ink); text-decoration: none; }
.site-brand-names strong { font-family: var(--title-font); font-size: 24px; font-weight: var(--title-weight); color: var(--ink); }
.site-brand-names small { font-family: var(--body-font); }
.site-mark { color: var(--accent); }
.header-tagline { font-size: 14px; color: var(--ink-2); margin: 0; }
.header-navigation { width: 100%; min-width: 0; }
.site-header nav.menu-row { margin: 0; padding-block: 2px; gap: 6px 24px; }
.menu-row a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--ink); }
.main-content { min-height: 50vh; padding: 32px 0 56px; }
.home-intro { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px max(16px, calc((100% - 1140px)/2)); margin: -32px 0 32px; }
.home-intro h1 { font-size: 28px; margin-bottom: 12px; line-height: 1.4; }
.home-intro > p { font-size: 16px; max-width: 760px; margin-bottom: 0; }
.home-promises { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 20px; }
.home-promise { flex: 1 1 180px; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.home-promise svg { display: none; }
.home-promise h2 { font-size: 15px; margin: 0 0 4px; }
.home-promise p { font-size: 14px; line-height: 1.6; }
.home-latest { margin-bottom: 32px; }
.home-latest > h2 { font-size: 20px; margin-bottom: 16px; }
.featured-post { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: none; }
.featured-post:not(:has(.featured-image)) { grid-template-columns: 1fr; }
.featured-image { order: 2; }
.featured-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.featured-copy { order: 1; padding: 0; min-width: 0; }
.featured-copy h3 { font-size: 28px; line-height: 1.4; margin: 0 0 12px; }
.featured-copy p { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.featured-copy time, .post-card time { font-size: 14px; color: var(--ink-2); }
.post-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.post-list .post-card { display: flex; flex-direction: column; min-width: 0; padding: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: none; overflow: hidden; }
.post-list .post-card h2, .post-list .post-card > p, .post-list .post-card > time { margin-inline: 20px; }
.post-list .post-card h2 { font-size: 19px; line-height: 1.45; margin-top: 18px; margin-bottom: 12px; }
.post-list .post-card h2 a { color: var(--ink); text-decoration: none; }
.post-list .post-card > p { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin-top: 0; }
.post-list .post-card > time { margin-top: auto; }
.post-list .post-card .post-thumbnail { float: none; display: block; width: 100%; margin: 0; }
.post-list .post-card .post-thumb { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.more-posts { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.more-posts > h2 { font-size: 22px; }
.more-posts .post-card { display: flow-root; border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 16px; }
.more-posts .post-card h2 { font-size: 19px; line-height: 1.5; margin: 0 0 8px; }
.more-posts .post-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.home-categories { margin-top: 32px; }
.category-tile { box-shadow: none; background: var(--bg-soft); color: var(--accent); font-size: 15px; }
.list-header { background: var(--bg-soft); padding: 28px; margin-bottom: 28px; border-radius: 8px; }
.list-header h1 { font-size: 36px; }
.policy-sidebar { min-width: 0; }
.policy-sidebar .sidebar { height: 100%; }
.widget { border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 24px; background: var(--card); }
.widget-title { font-size: 18px; margin: 0 0 16px; }
.widget-about p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.widget a { color: var(--ink); }
.widget .list { margin: 0; padding: 0; list-style: none; }
.widget .list li { margin: 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.widget .list a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.sidebar-recent { margin: 0; padding: 0; list-style: none; }
.sidebar-recent li + li { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.sidebar-recent a { display: block; min-height: 44px; font-size: 16px; line-height: 1.5; }
.sidebar-recent time { display: block; color: var(--ink-2); font-size: 14px; }
.breadcrumb-nav { font-size: 14px; margin: 0 0 20px; }
.breadcrumb-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.post-single { padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.post-single .post-header { border-bottom: 0; margin: 0 0 24px; padding-bottom: 0; }
.post-single .post-header .title { font-size: 36px; line-height: 1.35; margin-bottom: 18px; }
.post-meta, .post-meta time { font-size: 14px; color: var(--ink-2); }
.post-content .prose { padding-top: 0; font-size: 17px; line-height: 1.75; }
.post-content .prose p, .post-content .prose li { font-size: 17px; }
.post-content .prose h2 { font-size: 26px; }
.post-content .prose h3 { font-size: 21px; }
.prose table { table-layout: fixed; width: 100%; }
.prose th:first-child, .prose td:first-child { width: 30%; }
td, th { vertical-align: top; }
.prose figure { max-width: 640px; }
.post-hero img { height: auto; width: 100%; border-radius: 8px; }
.application-box { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; }
.application-box dl { grid-template-columns: minmax(6rem,30%) minmax(0,1fr); }
.application-box dd { overflow-wrap: anywhere; }
.sources, .policy-note { border-color: var(--line); border-radius: 8px; }
.policy-note { background: var(--bg-soft); }
.post-byline { line-height: 1.75; }
.desktop-toc { display: none; }
.post-toc a, .desktop-toc a { display: block; min-height: 44px; padding-block: 8px; color: var(--ink); text-decoration: none; }
.sidebar-toc { position: sticky; top: 16px; }
.sidebar-toc:empty { display: none; }
.desktop-toc h2 { font-size: 18px; margin: 0 0 12px; }
.desktop-toc ol { padding-left: 20px; margin: 0; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { margin: 0; min-height: 44px; }
.pagination a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 992px) {
  .post-content .post-toc { display: none; }
  .desktop-toc { display: block; }
  .sidebar-toc { display: block; }
}
@media (max-width: 991px) {
  .sidebar-toc { display: none; }
  .policy-sidebar .sidebar { height: auto; }
}
@media (max-width: 767px) {
  .header-inner { padding-block: 18px 8px; }
  .header-tagline { font-size: 13px; }
  .home-intro { padding-inline: 16px; }
  .home-intro h1, .list-header h1 { font-size: 28px; }
  .featured-post { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .featured-image { order: 0; }
  .featured-copy h3 { font-size: 23px; }
  .post-single { padding: 20px 16px; }
  .post-single .post-header .title { font-size: 28px; }
  .post-content .prose h2 { font-size: 23px; }
  .post-content .prose h3 { font-size: 19px; }
}
@media (max-width: 575px) {
  .post-list { grid-template-columns: minmax(0,1fr); }
  .home-promises { gap: 16px; }
  .home-promise { flex-basis: 100%; }
  .application-box dl { grid-template-columns: 1fr; }
}

.site-brand { min-height: 44px; }
.post-single .post-meta, .post-single .post-meta time, .post-single .post-byline { font-size: 14px; }


/* Katen policy fix1: reviewer touch/copy/spacing/card corrections. */
.post-single .post-header .category-badge {
  min-height: 44px;
  padding: 10px 12px;
}
.main-content { padding-top: 0; }
.home-intro { margin-top: 0; padding-block: 16px; }
.list-header { margin-top: 0; padding-top: 16px; }
.post-card > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  max-height: 5.25em;
  overflow: hidden;
}


/* Katen policy fix2: match the rendered pager and reset vendor spacing/list decoration. */
nav[aria-label="쪽 나눔"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
nav[aria-label="쪽 나눔"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
}
main.main-content { margin-top: 0; }
.policy-sidebar .widget ul.list li {
  display: grid;
  grid-template-columns: max-content minmax(16px, 1fr) max-content;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  line-height: 1.6;
  border-bottom: 0;
}
.policy-sidebar .widget ul.list li > a {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
}
.policy-sidebar .widget ul.list li > span {
  grid-column: 3;
  grid-row: 1;
  float: none;
  white-space: nowrap;
  text-align: right;
}
.policy-sidebar .widget ul.list li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: auto;
  min-width: 0;
  height: 0;
  background: none;
  border-top: 1px dotted var(--line);
}


/* Katen layout: let the page grow to the viewport and keep the last TOC reachable. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > .site-wrapper { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.site-wrapper > main.main-content { flex: 1; }
.site-notice, .site-header, .site-footer { flex-shrink: 0; }
.sidebar-toc { max-height: calc(100vh - 32px); overflow-y: auto; }


/* Separate formal-page cards from the header without moving article pages. */
.row:has(> .article-column > .formal-page) { padding-top: 24px; }
