:root {
  /* fallback (페이지별 :root가 없을 때만 사용) */
  --green-main: #2f5d50;
  --green-deep: #1e3d33;
  --text-main: #222222;
  --text-sub: #777777;
  --line: #e4e4e4;
  --white: #ffffff;
}

/* site-header.ejs 전용: 헤더 상단 우측(로그인/회원가입/로그아웃) */
.header-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-top-right a {
  margin-left: 0; /* 기존 페이지별 스타일과 충돌 방지 */
}

/* 로그아웃 버튼 */
.logout-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
  color: var(--text-main);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.logout-btn:hover {
  background: linear-gradient(180deg, #ffffff, #ececec);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

.logout-btn:focus-visible {
  outline: 3px solid rgba(47, 93, 80, 0.25);
  outline-offset: 2px;
}

/* 관리자 페이지 링크도 버튼 톤에 맞춰 살짝 정리(선택) */
.header-top-right .admin-menu {
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   상단 네비게이션(카테고리) - list.ejs 기준으로 통일
========================= */
.header-wrap .main-nav-row {
  display: flex;
  justify-content: center; /* 네비게이션 중앙 정렬 */
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 12px 40px 0;
  position: relative; /* 블로그 링크 absolute 기준 */
  margin-top: 4px;
}

.header-wrap .main-nav {
  display: flex;
  justify-content: center;
  gap: 62px;
  font-size: 14px;
  text-align: center;
}

.header-wrap .nav-blog-link {
  position: absolute;
  right: 40px;
  font-size: 13px;
  color: var(--text-sub);
  transition: color 0.15s ease;
}

.header-wrap .nav-blog-link:hover {
  color: var(--green-main);
  text-decoration: underline;
}


