/* ==========================================================================
   공용 크롬 — 상단 네비게이션(.nav)과 하단 푸터(.foot)
   /deus, 로그인 계열, 분석 페이지가 모두 이 파일 하나를 링크한다.

   주의: 분석 페이지들은 각자 고유한 본문 CSS 를 갖고 있다.
   그래서 이 파일은 전역 element 선택자(body, a, *)를 쓰지 않고
   전부 .nav / .foot 아래로 스코프한다. 본문 레이아웃에 영향을 주지 않는다.
   ========================================================================== */

:root {
  --brand: #082275;
  --brand-600: #123aa8;
  --brand-500: #2354d6;
  --brand-050: #eef2fd;

  --ink: #141824;
  --ink-soft: #4a5364;
  --muted: #8590a2;

  --line: #e4e8f0;
  --surface: #ffffff;
  --surface-2: #f7f9fc;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 34, 117, .05), 0 8px 24px rgba(8, 34, 117, .06);

  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

.nav *, .foot * { box-sizing: border-box; }

/* ------------------------------------------------------------ navigation */
.nav {
  box-sizing: border-box;
  font-family: var(--sans);
  line-height: 1.65;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav a { color: inherit; text-decoration: none; }

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.nav__brand img { height: 30px; width: auto; display: block; }
.nav__name { font-weight: 700; font-size: 1.02rem; color: var(--brand); letter-spacing: -.01em; }

.nav__links { display: flex; gap: 30px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 6px 0; transition: color .15s; }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--brand-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.nav__links a:hover { color: var(--brand); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__account { display: flex; align-items: center; gap: 10px; }
.nav__account form { margin: 0; }

/* .nav a { color: inherit } 보다 명시도를 높여야 색이 적용된다.
   로그인/Permission 은 <a>, 로그아웃은 <button> 이라 스코프를 붙이지 않으면 색이 갈린다. */
.nav .nav__ghost {
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 15px;
  transition: border-color .15s, color .15s;
}
.nav .nav__ghost:hover { border-color: var(--brand-500); color: var(--brand); }

.nav .nav__login {
  display: inline-block;
  font-family: var(--sans);
  font-size: .88rem; font-weight: 600;
  color: #fff; background: var(--brand);
  border: 0; border-radius: 9px; padding: 9px 20px;
  cursor: pointer;
  transition: background .15s;
}
.nav .nav__login:hover { background: var(--brand-600); }

/* ---------------------------------------------------------------- footer */
.foot {
  box-sizing: border-box;
  font-family: var(--sans);
  line-height: 1.65;
  background: var(--brand);
  color: rgba(255, 255, 255, .68);
  padding: 40px 0;
  margin-top: 64px;
  font-size: .82rem;
}
.foot a { color: #fff; font-weight: 500; text-decoration: none; }
.foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { padding: 0 20px; gap: 16px; }
  .foot { padding: 28px 0; margin-top: 40px; }
  .foot__inner { padding: 0 20px; }
}
