/* 헤더·푸터 — 다른 사이트에 embed.js로 붙여도 깨지지 않도록 nori- 접두사로만 스타일링 */
.nori-header, .nori-footer {
  --nori-bg: rgba(255,255,255,.82);
  --nori-text: #18181b;
  --nori-muted: #71717a;
  --nori-line: #e7e7ea;
  --nori-hover: #f2f2f4;
  --nori-surface: #fff;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--nori-text);
  box-sizing: border-box;
  line-height: 1.4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nori-header, :root:not([data-theme="light"]) .nori-footer {
    --nori-bg: rgba(20,20,23,.82);
    --nori-text: #ececf0;
    --nori-muted: #9a9aa3;
    --nori-line: #2a2a30;
    --nori-hover: #232328;
    --nori-surface: #1b1b1f;
  }
}
:root[data-theme="dark"] .nori-header, :root[data-theme="dark"] .nori-footer {
    --nori-bg: rgba(20,20,23,.82);
    --nori-text: #ececf0;
    --nori-muted: #9a9aa3;
    --nori-line: #2a2a30;
    --nori-hover: #232328;
    --nori-surface: #1b1b1f;
}
.nori-header *, .nori-footer * { box-sizing: border-box; }
.nori-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nori-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nori-line);
}
.nori-header-in {
  max-width: 1040px; margin: 0 auto; height: 56px; padding: 0 16px;
  display: flex; align-items: center; gap: 20px;
}
.nori-brand {
  font-weight: 750; font-size: 17px; letter-spacing: -.02em;
  color: var(--nori-text); text-decoration: none; white-space: nowrap;
}
.nori-brand::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  background: var(--nori-accent, #3b6cf6); margin-right: 8px; vertical-align: 1px;
}
.nori-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nori-nav::-webkit-scrollbar { display: none; }
.nori-nav a {
  color: var(--nori-muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s;
}
.nori-nav a:hover { color: var(--nori-text); background: var(--nori-hover); }
.nori-user { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nori-ic {
  position: relative; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 9px; color: var(--nori-muted);
}
.nori-ic:hover { background: var(--nori-hover); color: var(--nori-text); }
.nori-header svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nori-badge {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--nori-accent, #3b6cf6); color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nori-login {
  font-size: 14px; font-weight: 600; text-decoration: none; color: #fff;
  background: var(--nori-accent, #3b6cf6); padding: 7px 14px; border-radius: 9px;
}
.nori-me { position: relative; margin-left: 4px; }
.nori-me summary { list-style: none; cursor: pointer; display: flex; }
.nori-me summary::-webkit-details-marker { display: none; }
.nori-me summary img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; background: var(--nori-hover); }
.nori-drop {
  position: absolute; right: 0; top: 42px; min-width: 190px; padding: 6px;
  background: var(--nori-surface); border: 1px solid var(--nori-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.nori-drop a, .nori-drop button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px;
  color: var(--nori-text); text-decoration: none; font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer;
}
.nori-drop a:hover, .nori-drop button:hover { background: var(--nori-hover); }
.nori-drop a b { display: block; }
.nori-drop a small { color: var(--nori-muted); }
.nori-drop form { margin: 0; border-top: 1px solid var(--nori-line); margin-top: 4px; padding-top: 4px; }
.nori-burger { display: none; color: var(--nori-muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.nori-burger svg.i { width: 22px; height: 22px; }

@media (max-width: 720px) {
  .nori-header-in { gap: 8px; }
  .nori-burger { display: inline-flex; order: -1; }
  .nori-nav {
    display: none; position: absolute; left: 0; right: 0; top: 56px; flex-direction: column;
    padding: 8px; background: var(--nori-surface); border-bottom: 1px solid var(--nori-line);
  }
  .nori-nav a { padding: 11px 12px; font-size: 15.5px; }
  .nori-nav-toggle:checked ~ .nori-nav { display: flex; }
}

.nori-footer { border-top: 1px solid var(--nori-line); margin-top: 48px; }
.nori-footer-in {
  max-width: 1040px; margin: 0 auto; padding: 28px 16px 40px;
  color: var(--nori-muted); font-size: 13.5px; text-align: center;
}
.nori-footer a { color: var(--nori-muted); }
.nori-footer a:hover { color: var(--nori-text); }
.nori-dot { margin: 0 8px; }
