:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --bg: #0d1b2a; --surface: #14273b; --soft: #1b3350; --ink: #e8eef5; --muted: #a3b4c6;
  --accent: #f2b84b; --accent-ink: #0d1b2a; --accent-soft: #2a3f5c; --dark: #08121d; --dark-ink: #a3b4c6;
  --radius: 14px; --z-nav: 50;
  --font: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.nf-body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(16px, 0.9rem + 0.25vw, 18px)/1.75 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd98a; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nf-skip { position: absolute; left: var(--s4); top: -64px; background: var(--accent); color: #0d1b2a; padding: var(--s2) var(--s4); border-radius: var(--s2); z-index: 300; }
.nf-skip:focus { top: var(--s2); }
.nf-wrap { width: min(100% - 2 * var(--s4), 1120px); margin-inline: auto; }

.nf-head { background: var(--surface); position: sticky; top: 0; z-index: var(--z-nav); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nf-head-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.nf-brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; min-height: 44px; }
.nf-brand img { width: 36px; height: 36px; }
.nf-menu ul { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.nf-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nf-menu a:hover, .nf-menu a[aria-current="page"] { background: var(--accent-soft); color: #ffd98a; }

.nf-hero { background: linear-gradient(180deg, #102238 0%, var(--bg) 100%); padding-block: var(--s6); }
.nf-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; }
.nf-hero-in > * { min-width: 0; }
.nf-kicker { margin: 0 0 var(--s2); font-weight: 700; color: var(--accent); font-size: .9rem; letter-spacing: .02em; }
.nf-hero h1 { margin: 0 0 var(--s4); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.25; letter-spacing: -0.02em; }
.nf-hero-text p { margin: 0 0 var(--s4); max-width: 62ch; }
.nf-hero-fig { margin: 0; justify-self: center; width: min(100%, 435px); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.nf-hero-img { width: 100%; }

.nf-section { padding-block: var(--s6); }
.nf-h2 { margin: 0 0 var(--s5); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; }
.nf-h1 { margin: 0 0 var(--s4); font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); line-height: 1.3; letter-spacing: -0.02em; }
.nf-h3 { margin: 0 0 var(--s4); font-size: 1.125rem; }
.nf-lede { margin: 0 0 var(--s5); color: var(--muted); max-width: 68ch; }

.nf-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.nf-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.15000000000000002); }
.nf-card-media { display: block; background: var(--soft); aspect-ratio: 3 / 2; overflow: hidden; }
.nf-card-img { width: 100%; height: 100%; object-fit: cover; }
.nf-card-text { padding: var(--s4) var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.nf-meta { margin: 0; font-size: .875rem; color: var(--muted); }
.nf-card-title { margin: 0; font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.01em; }
.nf-card-title a { color: var(--ink); text-decoration: none; }
.nf-card-title a:hover { color: var(--accent); text-decoration: underline; }
.nf-card-ex { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-card-lead { margin-bottom: var(--s5); }
.nf-card-lead .nf-card-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }

.nf-chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.nf-chips a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24); }
.nf-chips a:hover { background: var(--accent-soft); color: #ffd98a; }
.nf-chips span { font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 var(--s2); }
.nf-chips-sm a { min-height: 32px; padding: 0 var(--s3); font-size: .85rem; background: var(--soft); box-shadow: none; }

.nf-crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .875rem; color: var(--muted); margin: 0 0 var(--s5); }
.nf-crumbs a { color: var(--muted); }
.nf-article-wrap { display: grid; gap: var(--s6); padding-block: var(--s5) var(--s6); }
.nf-article { min-width: 0; }
.nf-article-head h1 { margin: var(--s2) 0 var(--s3); font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem); line-height: 1.3; letter-spacing: -0.02em; }
.nf-article-fig { margin: var(--s5) 0; }
.nf-article-img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.nf-article-fig figcaption { margin-top: var(--s2); font-size: .8rem; color: var(--muted); }
.nf-prose { font-size: 1.0625rem; }
.nf-prose h2 { margin: var(--s6) 0 var(--s3); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); line-height: 1.4; }
.nf-prose h3 { margin: var(--s5) 0 var(--s2); font-size: 1.125rem; }
.nf-prose p { margin: 0 0 var(--s4); }
.nf-prose ul, .nf-prose ol { margin: 0 0 var(--s4); padding-left: var(--s5); }
.nf-prose li { margin-bottom: var(--s2); }
.nf-prose blockquote { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--s2); }
.nf-prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s5); font-size: .95rem; }
.nf-prose th, .nf-prose td { text-align: left; padding: var(--s2) var(--s3); background: var(--surface); }
.nf-prose th { background: var(--soft); }
.nf-prose tr + tr td { box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.24); }
.nf-back { margin: var(--s5) 0; padding: var(--s4); background: var(--soft); border-radius: var(--s3); font-size: .95rem; }
.nf-pager { display: grid; gap: var(--s3); margin-top: var(--s5); }
.nf-pager a { display: block; padding: var(--s4); background: var(--surface); border-radius: var(--s3); color: var(--ink); text-decoration: none; line-height: 1.5; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24); }
.nf-pager a:hover { background: var(--accent-soft); }
.nf-pager span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: var(--s1); }
.nf-aside { display: grid; gap: var(--s4); align-content: start; }
.nf-aside .nf-h3 { margin: 0; }
.nf-aside .nf-card-ex { display: none; }
.nf-list { padding-left: var(--s5); }

.nf-foot { background: var(--dark); color: var(--dark-ink); padding-block: var(--s6); margin-top: var(--s6); font-size: .95rem; }
.nf-foot p { margin: 0 0 var(--s2); }
.nf-foot a { color: #f2b84b; }
.nf-foot-name { font-weight: 700; font-size: 1.05rem; }
.nf-foot-name a { color: #e8eef5; text-decoration: none; }

@media (min-width: 640px) {
  .nf-pager { grid-template-columns: 1fr 1fr; }
  .nf-pager-next { text-align: right; }
}
@media (min-width: 900px) {
  .nf-hero { padding-block: calc(var(--s6) * 1.5); }
  .nf-hero-fig { order: -1; }
  .nf-hero-in { grid-template-columns: 435px minmax(0, 1fr); gap: calc(var(--s6) * 1.5); }
  .nf-card-lead { flex-direction: row; }
  .nf-card-lead .nf-card-media { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
  .nf-card-lead .nf-card-text { justify-content: center; padding: var(--s6); gap: var(--s3); }
  .nf-card-lead .nf-card-ex { -webkit-line-clamp: 5; font-size: 1rem; }
}
@media (min-width: 1100px) {
  .nf-article-wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--s6) * 1.5); }
  .nf-aside { position: sticky; top: calc(64px + var(--s5)); }
  .nf-aside .nf-card { flex-direction: row; }
  .nf-aside .nf-card-media { flex: 0 0 104px; aspect-ratio: 1; }
  .nf-aside .nf-card-text { padding: var(--s3); }
  .nf-aside .nf-card-title { font-size: .95rem; }
  .nf-aside .nf-meta { display: none; }
}
@media (max-width: 639px) {
  .nf-prose table, .nf-prose tbody, .nf-prose tr, .nf-prose td { display: block; width: 100%; }
  .nf-prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nf-prose tr { margin-bottom: var(--s4); background: var(--surface); border-radius: var(--s3); overflow: hidden; }
  .nf-prose td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
  .nf-menu a { padding: 0 var(--s3); }
}
@media (prefers-reduced-motion: no-preference) {
  .nf-card, .nf-chips a { transition: box-shadow .2s ease, background-color .2s ease; }
  .nf-card:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.30000000000000004); }
}
