/* ─────────────────────────────────────────────────────
   EZYPATTERN — 패턴 노트 (실무 글)
   site.css · guide.css 다음에 읽는다. 색은 site.css 토큰을 그대로 쓴다.
   ───────────────────────────────────────────────────── */
.g-hero h1 { text-wrap: balance; word-break: keep-all; }
.n-art, .n-list, .g-lead { word-break: keep-all; overflow-wrap: anywhere; }
.n-body .g-toc ol { grid-template-columns: 1fr; }
.n-body .g-toc li { list-style: none; }
.n-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.n-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 34px; padding-bottom: 80px; }
.n-art { min-width: 0; max-width: 760px; }
.n-art h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.35; letter-spacing: -.03em; font-weight: 800; scroll-margin-top: 84px; text-wrap: balance; }
.n-art h2:first-child { margin-top: 0; }
.n-art h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.n-art p, .n-art li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.n-art p { margin: 0 0 14px; }
.n-art ul, .n-art ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 4px; }
.n-art b { color: var(--ink); }
.n-art a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.n-formula { margin: 14px 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 600; line-height: 1.8; color: var(--ink); font-variant-numeric: tabular-nums; overflow-x: auto; }
.n-formula small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.n-note { margin: 14px 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.n-tw { overflow-x: auto; margin: 10px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.n-tb { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.n-tb th, .n-tb td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.n-tb tr:last-child td { border-bottom: 0; }
.n-tb thead th { font-size: 12.5px; font-weight: 800; color: var(--ink-3); background: var(--bg); }
.n-tb td.num, .n-tb th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.n-tb tbody th { font-weight: 700; color: var(--ink); }
.n-steps { list-style: none; padding: 0 !important; counter-reset: st; }
.n-steps li { counter-increment: st; position: relative; padding-left: 40px; }
.n-steps li::before { content: counter(st); position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13.5px; line-height: 26px; text-align: center; }
.n-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.n-faq details:last-child { border-bottom: 1px solid var(--line); }
.n-faq summary { cursor: pointer; font-weight: 750; font-size: 16px; color: var(--ink); }
.n-faq details p { margin: 8px 0 0; }
.n-ask { margin: 6px 0 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.n-ask .ccard { color: inherit; text-decoration: none !important; }
.n-ask .ct > b { font-size: 16px; word-break: normal; overflow-wrap: anywhere; }
.n-ask .ct > span { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.n-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.n-cta .btn { height: 44px; padding: 0 18px; border-radius: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.n-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-top: 30px; padding-bottom: 80px; }
.n-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: inherit; }
.n-card:hover { border-color: var(--line-2); }
.n-card .k { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.n-card h2 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; font-weight: 800; }
.n-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.n-card .more { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
@media (max-width: 900px) { .n-body { grid-template-columns: 1fr; gap: 0; } .n-body .g-toc { display: none; } }
