/* 공통 스타일 — 색은 전부 변수. 기본은 다크, 라이트는 :root[data-theme=light] 오버라이드 */
:root{
  color-scheme:dark;
  --bg:#0f1214; --surface:#171b1f; --surface2:#1e2328; --line:#2a3036; --line2:#3a424a;
  --text:#e8ecef; --text2:#a4adb6; --text3:#6f7a84;
  --accent:#2bd47d; --accent-ink:#06210f; --accent-weak:#12301f;
  --new:#7aa7ff; --new-weak:#18264a;
  --warn:#f2b54a; --warn-weak:#352a12;
  --bad:#ff7b6e; --bad-weak:#3a1c19;
  --mark:#5a4d10;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.25);
  --radius:14px;
  --header-bg:color-mix(in srgb,var(--bg) 85%,transparent);
}
:root[data-theme=light]{
  color-scheme:light;
  --bg:#f5f7f6; --surface:#ffffff; --surface2:#f0f3f1; --line:#e2e7e4; --line2:#cfd6d2;
  --text:#14201a; --text2:#56645c; --text3:#8b978f;
  --accent:#0aa35a; --accent-ink:#ffffff; --accent-weak:#e3f6eb;
  --new:#2563eb; --new-weak:#e3ecff;
  --warn:#a35a00; --warn-weak:#fdf1d8;
  --bad:#c0392b; --bad-weak:#fdecea;
  --mark:#fff0a0;
  --shadow:0 1px 2px rgba(16,24,20,.05),0 8px 24px rgba(16,24,20,.06);
  --header-bg:#ffffff;
}
:root[data-theme=light] .nv-theme-btn .ico-moon,
:root:not([data-theme=light]) .nv-theme-btn .ico-sun{display:none}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);
  font-family:"Pretendard Variable",Pretendard,"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  font-size:15px;line-height:1.55;letter-spacing:-.01em}
a{color:var(--accent)}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}

/* 헤더 */
.nv-header{position:sticky;top:0;z-index:50;background:var(--header-bg);
  backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.nv-header-inner{max-width:1120px;margin:0 auto;padding:0 16px;height:60px;display:flex;align-items:center;gap:20px}
.nv-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);flex-shrink:0}
.nv-logo{width:32px;height:32px;display:block}
:root[data-theme=light] .logo-dark,:root:not([data-theme=light]) .logo-light{display:none}
.nv-brand-text{display:flex;flex-direction:column;line-height:1.15}
.nv-brand-text b{font-size:15px}
.nv-brand-text small{font-size:11px;color:var(--text3)}
.nv-nav{display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.nv-nav a{color:var(--text2);text-decoration:none;padding:7px 12px;border-radius:8px;font-size:14px;white-space:nowrap}
.nv-nav a:hover{color:var(--accent);background:var(--accent-weak)}
.nv-nav a[aria-current=page]{color:var(--accent);font-weight:700;background:var(--accent-weak)}
.nv-theme-btn{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text2);
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;flex-shrink:0}
.nv-theme-btn:hover{color:var(--accent);border-color:var(--accent)}
.nv-theme-btn svg{width:17px;height:17px}

.nv-main{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:32px 16px 56px}

/* 푸터 */
.nv-footer{border-top:1px solid var(--line);padding:24px 16px 32px;background:var(--surface)}
.nv-footer-inner{max-width:1120px;margin:0 auto}
.nv-footer-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:10px}
.nv-footer-copy{font-size:13px;color:var(--text2)}
.nv-footer-copy a{color:inherit;font-weight:700;text-decoration:none}
.nv-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;color:var(--text3)}
.nv-footer-links a{color:var(--text2);text-decoration:none}
.nv-footer-links a:hover,.nv-footer-copy a:hover{color:var(--accent)}
.nv-footer-note{margin:0;font-size:12px;line-height:1.7;color:var(--text3);max-width:820px}

/* 공용 부품 */
.page-head{margin-bottom:24px}
.eyebrow{display:inline-block;font-size:12.5px;font-weight:700;color:var(--accent);margin-bottom:6px}
.page-head h1{font-size:clamp(24px,4vw,32px);line-height:1.25;margin:0 0 8px;letter-spacing:-.03em}
.page-head p{margin:0;color:var(--text2)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:var(--accent);color:var(--accent-ink);
  padding:10px 18px;border-radius:10px;cursor:pointer;font-weight:700;text-decoration:none;white-space:nowrap}
.btn:hover{filter:brightness(1.06)}
.btn.ghost{background:var(--surface);color:var(--text);border:1px solid var(--line);font-weight:500}
.btn.ghost:hover{border-color:var(--line2);filter:none}
.btn:disabled{opacity:.4;cursor:default;filter:none}
.chip{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.6}
.chip.ok{background:var(--accent-weak);color:var(--accent)}
.chip.new{background:var(--new-weak);color:var(--new)}
.chip.warn{background:var(--warn-weak);color:var(--warn)}
.chip.bad{background:var(--bad-weak);color:var(--bad)}
.muted{color:var(--text2)}
