/* =========================================================
   모든 테마 공통 컴포넌트 (빌드 시 각 테마 theme.css 앞에 합쳐짐)
   blog.js 가 사용하는 상태 클래스와 검색 레이어만 정의합니다.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #111; color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.is-hidden { display: none !important; }
.dd { position: relative; }
.dd-panel { display: none; }
.dd.is-open .dd-panel { display: block; }
.m-nav { display: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 검색 레이어 */
.search-layer { position: fixed; inset: 0; z-index: 200; background: rgba(15, 18, 22, .5); display: none; padding: 10vh 16px; }
.search-layer.is-open { display: block; }
.search-box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.search-box input { width: 100%; border: 0; border-bottom: 2px solid var(--brand); font: inherit; font-size: 20px; padding: 8px 4px 12px; outline: none; background: transparent; }
.search-results { margin-top: 12px; max-height: 56vh; overflow-y: auto; }
.search-results a { display: block; padding: 12px 6px; border-bottom: 1px solid #eceef0; font-size: 15px; color: #1b1e22; }
.search-results a:hover { color: var(--brand); }
.search-results small { display: block; color: #8a9097; font-size: 12px; margin-top: 2px; }
.search-empty { color: #8a9097; padding: 16px 6px; font-size: 14px; }

/* =========================================================
   테마: notes — 미니멀 노트 웹진
   텍스트 중심, 날짜 목록, 얇은 선과 넓은 여백. 대표색(--brand)은 링크·포인트에만 사용
   ========================================================= */
:root {
  --brand: #0e6b6f; --brand-ink: #0a4f52; --brand-soft: #e7f3f2;
  --ink: #1a1a1a; --ink-2: #4a4a4a; --ink-3: #8c8c8c; --line: #e8e8e8; --bg: #ffffff; --bg-2: #f7f7f7;
  --wrap: 1680px; --gutter: clamp(18px, 4vw, 64px);
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.7; letter-spacing: -0.01em; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
a { transition: color .15s; }

/* 헤더 */
.nt-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nt-head-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.nt-name { font-weight: 700; font-size: 17px; margin-right: auto; }
.nt-nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--ink-2); }
.nt-nav a:hover, .nt-nav a.is-active { color: var(--brand); }
.nt-nav a.is-active { text-decoration: underline; text-underline-offset: 5px; }
.nt-icon { border: 0; background: none; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.nt-icon:hover { color: var(--brand); }
.menu-btn { display: none; }
.m-nav { display: none; }

/* 공통 */
.nt-muted { color: var(--ink-3); }
.nt-small { font-size: 13px; }
.nt-link, .nt-link-btn { color: var(--brand); font-weight: 600; }
.nt-link-btn { border: 0; background: none; padding: 0; font-size: 15px; }
.nt-link:hover, .nt-link-btn:hover { text-decoration: underline; }
.nt-sec { margin-top: clamp(56px, 6vw, 96px); }
.nt-sec.tight { margin-top: 24px; }
.nt-sec-title { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 96px); }
.load-more { margin-top: 20px; }

/* 소개 */
.nt-intro { padding-top: clamp(48px, 6vw, 104px); }
.nt-intro h1 { margin: 0 0 18px; max-width: 1100px; font-size: clamp(30px, 3.6vw, 56px); font-weight: 700; line-height: 1.2; letter-spacing: -0.04em; }
.nt-intro p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); max-width: 820px; }
.nt-intro .nt-muted a:hover { color: var(--brand); }

/* 추천 */
.nt-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 80px); }
.nt-pick-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.nt-pick-img img { width: 100%; height: 100%; object-fit: cover; }
.nt-pick h2 { margin: 10px 0 14px; font-size: clamp(24px, 2.4vw, 40px); line-height: 1.3; letter-spacing: -0.04em; font-weight: 700; }
.nt-pick h2 a:hover { color: var(--brand); }
.nt-pick p { margin: 0 0 16px; color: var(--ink-2); font-size: 17px; }

/* 목록 */
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-item { display: grid; grid-template-columns: 140px minmax(0, 1fr) 180px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.nt-item time { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nt-item h3 { margin: 0 0 4px; font-size: clamp(18px, 1.4vw, 21px); font-weight: 600; line-height: 1.45; letter-spacing: -0.03em; }
.nt-item a:hover h3 { color: var(--brand); }
.nt-item p { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-cat { font-size: 13.5px; color: var(--ink-3); text-align: right; }
.nt-cat a:hover { color: var(--brand); }
.nt-list.compact .nt-item { grid-template-columns: 120px minmax(0, 1fr); }
.nt-list.compact .nt-cat, .nt-list.compact .nt-item p { display: none; }
.nt-cats { list-style: none; margin: 0; padding: 0; }
.nt-cats li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nt-cats a:hover { color: var(--brand); }
.nt-cats span { color: var(--ink-3); font-size: 14px; }
.nt-pop { margin: 0; padding-left: 22px; }
.nt-pop li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.nt-pop li::marker { color: var(--brand); font-weight: 700; }
.nt-pop a:hover { color: var(--brand); }

/* 사람 */
.nt-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 48px; }
.nt-people article { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.nt-av { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; font-size: 24px; color: var(--ink-2); overflow: hidden; flex: none; }
.nt-people h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.nt-people h3 small { font-size: 13.5px; color: var(--brand); font-weight: 500; margin-left: 4px; }
.nt-people p { margin: 0 0 4px; color: var(--ink-2); font-size: 15px; }
.nt-people p.nt-muted { color: var(--ink-3); font-size: 13.5px; }

/* 정의 목록 / FAQ */
.nt-dl { margin: 0; }
.nt-dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nt-dl dt { color: var(--ink-3); font-size: 14.5px; }
.nt-dl dd { margin: 0; }
.nt-dl dd small { display: block; color: var(--ink-3); font-size: 13px; }
.nt-big { margin: 0 0 6px; font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.04em; }
.nt-faq details { border-bottom: 1px solid var(--line); }
.nt-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.nt-faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* 글 상세 */
.nt-article { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-top: clamp(40px, 5vw, 88px); align-items: start; }
.nt-article-side { position: sticky; top: 96px; font-size: 14px; }
.nt-side-meta { margin: 0 0 28px; }
.nt-side-meta div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.nt-side-meta dt { color: var(--ink-3); font-size: 12.5px; }
.nt-side-meta dd { margin: 2px 0 0; }
.nt-side-meta small { color: var(--ink-3); }
.nt-side-meta a:hover { color: var(--brand); }
.nt-toc strong { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.nt-toc ol { margin: 8px 0 0; padding-left: 18px; }
.nt-toc li { margin: 6px 0; }
.nt-toc a { color: var(--ink-2); }
.nt-toc a:hover, .nt-toc a.is-active { color: var(--brand); }
.nt-article-main { min-width: 0; max-width: 1200px; }
.nt-article-main h1 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 54px); font-weight: 700; line-height: 1.25; letter-spacing: -0.045em; }
.nt-lead { margin: 0 0 28px; font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); }
.nt-cover { margin: 0 0 36px; }
.nt-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nt-summary { border-left: 2px solid var(--brand); padding: 4px 0 4px 22px; margin-bottom: 32px; }
.nt-summary strong { display: block; font-size: 12.5px; color: var(--brand); margin-bottom: 6px; font-weight: 600; }
.nt-summary p { margin: 0; font-size: 19px; line-height: 1.7; }
.nt-summary ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); }
.nt-prose { font-size: 18px; line-height: 1.9; }
.nt-prose p { margin: 0 0 1.35em; }
.nt-prose h2 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -0.035em; margin: 2.2em 0 .7em; scroll-margin-top: 90px; }
.nt-prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.nt-prose figure { margin: 2em 0; }
.nt-prose figure img { width: 100%; height: auto; }
.nt-prose figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.nt-prose blockquote { margin: 2em 0; padding-left: 22px; border-left: 2px solid var(--ink); color: var(--ink-2); font-style: italic; }
.nt-prose ul, .nt-prose ol { padding-left: 1.3em; }
.nt-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.nt-prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15.5px; }
.nt-prose th, .nt-prose td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; }
.nt-prose thead th { color: var(--ink-3); font-weight: 600; }
.nt-prose caption { caption-side: bottom; font-size: 13px; color: var(--ink-3); padding-top: 8px; text-align: left; }
.nt-article-main .nt-faq h2, .nt-sources h2 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 56px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nt-sources ol { padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.nt-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 30px; font-size: 14.5px; }
.nt-tags a { color: var(--ink-2); }
.nt-tags a:hover { color: var(--brand); }
.nt-writer { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.nt-writer small { display: block; font-size: 12.5px; }
.nt-writer p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.nt-pn { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.nt-pn a:hover { color: var(--brand); }

/* 푸터 */
.nt-foot { margin-top: clamp(64px, 7vw, 120px); border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13.5px; color: var(--ink-3); }
.nt-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; color: var(--ink-2); }
.nt-foot nav a:hover { color: var(--brand); }
.nt-foot address { font-style: normal; line-height: 1.8; }
.nt-foot p { margin: 10px 0 0; }

/* 반응형 */
@media (max-width: 1100px) {
  .nt-article { grid-template-columns: minmax(0, 1fr); }
  .nt-article-side { position: static; order: 2; }
  .nt-side-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 860px) {
  .nt-nav { display: none; }
  .menu-btn { display: block; }
  .m-nav.is-open { display: block; position: fixed; inset: 65px 0 0; z-index: 45; background: var(--bg); padding: 12px 24px; overflow-y: auto; }
  .m-nav a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nt-two, .nt-pick { grid-template-columns: minmax(0, 1fr); }
  .nt-item { grid-template-columns: 110px minmax(0, 1fr); }
  .nt-cat { display: none; }
}
@media (max-width: 719px) {
  .nt-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nt-list.compact .nt-item { grid-template-columns: minmax(0, 1fr); }
  .nt-dl div { grid-template-columns: 100px minmax(0, 1fr); }
  .nt-prose { font-size: 16.5px; }
  .nt-people { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   생성기 전용 보조 스타일 (모든 테마 공통, theme.css 뒤에 합쳐짐)
   시안에는 없던 실제 데이터용 요소(사진 아바타, 핵심 포인트, 빈 목록 등)
   ========================================================= */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.key-points { margin: 12px 0 0; padding-left: 1.2em; }
.key-points li { margin: 4px 0; }
.empty-list { padding: 48px 0; text-align: center; color: #8a9097; }
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { margin: 0 0 12px; }
.notfound p { margin: 0 0 24px; color: #5b6168; }
.t-avatar, .p-dav, .a-av { overflow: hidden; }
.t-avatar img, .p-dav img, .a-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.t-logo img, .a-logo img, .p-wlogo img { height: 30px; width: auto; }
.ola-link { color: inherit; text-decoration: none; }
.ola-link:hover { text-decoration: underline; }
