/* note.css — 행복 노트 글·목록 화면 (note.html · notes/*.html · 404.html, 2026-10-31 note.html 에서 나눔) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.top-nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
footer { text-align: center; }

.yj-nt { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.yj-nt-head { text-align: center; margin-bottom: 40px; }
.yj-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--ed-accent); margin-bottom: 10px; }
.yj-nt-head h1 { font-family: var(--ed-serif); font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.4; color: var(--ed-ink); }
.yj-nt-head p { margin-top: 10px; font-size: 14px; color: var(--ed-muted); line-height: 1.7; }
.yj-nt-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.yj-nt-meta .el { font-size: 12px; font-weight: 700; color: var(--ed-accent); padding: 1px 8px; border: 1px solid var(--ed-line-strong); border-radius: var(--ed-r-full); }
.yj-nt-meta .date { font-size: 13px; color: var(--ed-muted); }

.yj-nt-lead { margin: 0 0 28px; padding-left: 16px; border-left: 2px solid var(--ed-ink); font-family: var(--ed-serif); font-size: 17px; font-weight: 500; line-height: 1.85; color: var(--ed-ink); }
.yj-nt-fig { margin: 0 0 28px; }
.yj-nt-fig img, .yj-nt-fig video { display: block; width: 100%; height: auto; border-radius: var(--ed-r-md, 8px); background: var(--ed-bg-sub); }
.yj-nt-fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ed-muted); text-align: center; }
.yj-nt-body p { font-size: 16.5px; line-height: 1.95; color: var(--ed-text); margin-bottom: 1.2em; }
.yj-nt-quote { margin: 8px 0 28px; padding: 18px 20px; background: var(--ed-accent-soft); border-radius: var(--ed-r-md, 8px); }
.yj-nt-quote p { font-family: var(--ed-serif); font-size: 16.5px; line-height: 1.85; color: var(--ed-ink); }
.yj-nt-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--ed-sub); }

.yj-nt-clue { margin: 36px 0 0; padding: 22px 20px; border-top: 1px solid var(--ed-ink); border-bottom: 1px solid var(--ed-line); text-align: center; }
.yj-nt-clue .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ed-accent); }
.yj-nt-clue p { margin-top: 8px; font-family: var(--ed-serif); font-size: 18px; font-weight: 600; line-height: 1.7; letter-spacing: -0.02em; color: var(--ed-ink); }
.yj-nt-try { margin-top: 24px; }
.yj-nt-try h2 { font-size: 14px; font-weight: 700; color: var(--ed-ink); margin-bottom: 8px; }
.yj-nt-try li { margin-left: 1.2em; font-size: 15.5px; line-height: 1.85; color: var(--ed-text); }
.yj-nt-links { margin-top: 24px; font-size: 14px; line-height: 1.8; }
.yj-nt-links h2 { font-size: 14px; font-weight: 700; color: var(--ed-ink); margin-bottom: 4px; }
.yj-nt-links a { color: var(--ed-text); text-underline-offset: 3px; word-break: break-all; }
.yj-nt-links a:hover { color: var(--ed-ink); }
.yj-nt-body a.yj-nt-ref { color: var(--ed-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ed-accent); text-underline-offset: 3px; }
.yj-nt-body a.yj-nt-ref:hover { color: var(--ed-accent); }
.yj-nt-body sup { font-size: 12px; line-height: 0; }
.yj-nt-body sup a { padding: 0 4px; color: var(--ed-accent); font-weight: 700; text-decoration: none; }
.yj-nt-refs { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ed-line-strong); }
.yj-nt-refs h2 { font-size: 14px; font-weight: 700; color: var(--ed-ink); margin-bottom: 8px; }
.yj-nt-refs ol { list-style: none; }
.yj-nt-refs li { display: flex; gap: 8px; padding: 12px 8px; border-radius: var(--ed-r-md, 8px); scroll-margin-top: 72px; transition: background-color var(--ed-t-fast) ease; }
.yj-nt-refs li + li { border-top: 1px solid var(--ed-line); }
.yj-nt-refs li:target { background: var(--ed-accent-soft); }
.yj-nt-refs .num { flex: none; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--ed-accent); }
.yj-nt-refs .info { flex: 1; min-width: 0; }
.yj-nt-refs .kind { font-size: 12px; font-weight: 700; color: var(--ed-sub); }
.yj-nt-refs .name { margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--ed-ink); }
.yj-nt-refs .desc { margin-top: 2px; font-size: 14px; line-height: 1.7; color: var(--ed-muted); }
.yj-nt-refs .go {
  display: inline-flex; align-items: center; height: 44px; margin-top: 6px; padding: 0 16px; border: 1px solid var(--ed-line-strong);
  border-radius: var(--ed-r-full); font-size: 14px; font-weight: 500; color: var(--ed-ink); text-decoration: none;
  transition: border-color var(--ed-t-fast) ease;
}
.yj-nt-refs .go:hover { border-color: var(--ed-ink); }
.yj-nt-know { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--ed-ink); }
.yj-nt-know > h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ed-accent); margin-bottom: 4px; }
.yj-nt-know .yj-know-item:last-child { border-bottom: 0; }
.yj-nt-know .yj-know-more { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ed-ink); text-underline-offset: 3px; }
.yj-nt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.yj-nt-tags span { font-size: 12px; color: var(--ed-sub); padding: 2px 10px; border: 1px solid var(--ed-line-strong); border-radius: var(--ed-r-full); }

.yj-nt-list { border-top: 1px solid var(--ed-ink); }
.yj-nt-none { padding: 48px 0; text-align: center; font-size: 15px; color: var(--ed-muted); }
.yj-nt-footnote { position: relative; margin: 4px 0 0; padding-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ed-muted); }
.yj-nt-footnote::before { content: ''; position: absolute; top: 0; left: 0; width: 48px; border-top: 1px solid var(--ed-line); }
.yj-nt-note { margin-top: 40px; font-size: 13px; line-height: 1.8; color: var(--ed-muted); text-align: center; }
.yj-nt-back { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.yj-nt-back a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--ed-line-strong);
  border-radius: var(--ed-r-full); font-size: 14px; font-weight: 500; color: var(--ed-ink); text-decoration: none;
  transition: border-color var(--ed-t-fast) ease;
}
.yj-nt-back a:hover { border-color: var(--ed-ink); }
@media (max-width: 640px) {
  .yj-nt { padding: 36px 20px 96px; }
  .yj-nt-body p { font-size: 16px; }
}

/* 이어 읽기 (2026-10-31) */
.yj-nt-pager { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--ed-ink); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yj-nt-pager h2 { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ed-accent); margin-bottom: 4px; }
.yj-nt-pager a, .yj-nt-pager .none { display: block; min-height: 44px; padding: 12px 14px; border: 1px solid var(--ed-line-strong); border-radius: var(--ed-r-md, 8px); font-size: 15px; line-height: 1.55; color: var(--ed-ink); text-decoration: none; word-break: keep-all; }
.yj-nt-pager a:hover { border-color: var(--ed-ink); }
.yj-nt-pager span { display: block; font-size: 12px; font-weight: 700; color: var(--ed-sub); margin-bottom: 2px; }
.yj-nt-pager .next { grid-column: 2; }
.yj-nt-pager .none { font-size: 14px; color: var(--ed-muted); border-style: dashed; }
@media (max-width: 640px) { .yj-nt-pager { grid-template-columns: 1fr; } .yj-nt-pager .next { grid-column: 1; } }
