@charset "utf-8";
/* ============================================================
   WORKNEST — 헤더 · 푸터 · 페이지 공통 골격
   ============================================================ */

/* ── 헤더 ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; gap: 18px;
}

/* 메인 상단의 어두운 무대 위에서는 헤더도 어둡게 */
.site-header.on-dark {
  background: transparent; border-bottom-color: transparent;
}
.site-header.on-dark .nav-link,
.site-header.on-dark .user-name { color: rgba(255,255,255,.86); }
.site-header.on-dark .nav-link:hover { color: #fff; }
.site-header.on-dark .brand-name { color: #fff; }
.site-header.on-dark .nav-toggle span { background: #fff; }

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
/* 심볼은 가로로 긴 붓글씨 마크(약 2.1:1)라 높이를 기준으로 맞춘다 */
.brand img { width: auto; height: 19px; }
.brand-name {
  font-size: 1.13rem; font-weight: 800; letter-spacing: .01em;
  color: var(--ink); transition: color .3s var(--ease);
}
.brand-name b { font-weight: 800; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; color: var(--gray);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--bg-mute); }
.nav-link.is-active { color: var(--blue); }
.site-header.on-dark .nav-link:hover { background: rgba(255,255,255,.12); }
.site-header.on-dark .nav-link.is-active { color: #fff; }

.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }
.site-header.on-dark .nav-sep { background: rgba(255,255,255,.22); }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}
.site-header.on-dark .user-chip { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.user-name { font-size: .88rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  background: var(--brand-gradient); flex-shrink: 0;
}
.user-avatar-fallback {
  display: grid; place-items: center;
  color: #fff; font-size: .82rem; font-weight: 700;
}

/* 모바일 메뉴 버튼 */
.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  border-radius: var(--r-sm); place-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .28s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 푸터 ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 90px;
  padding: 56px 0 40px;
  background: var(--navy); color: rgba(255,255,255,.62);
  font-size: .89rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { display: inline-flex; }
.footer-slogan { color: rgba(255,255,255,.86); font-weight: 600; margin-bottom: 6px; }
.footer-desc { line-height: 1.7; }

.footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .88rem; margin-bottom: 12px; letter-spacing: .02em; }
.footer-col a { display: block; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; padding-top: 22px; font-size: .82rem;
}
.footer-bottom .learn { letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ── 페이지 공통 ──────────────────────────────────────────── */
.page-head {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.page-head h1 { margin: 12px 0 10px; }
.page-head .lead { max-width: 640px; }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--gray-3); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--gray-3); }

.section { padding: 74px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 620px; margin-bottom: 38px; }
.section-head h2 { margin: 12px 0 12px; }

/* 빈 상태 안내 */
.empty-state {
  padding: 60px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  background: var(--bg-soft); color: var(--gray);
}
.empty-state strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 14px 20px 20px; margin-left: 0;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 14px; border-radius: var(--r-sm); color: var(--ink); }
  .nav-sep { width: 100%; height: 1px; margin: 8px 0; }
  .user-chip { justify-content: flex-start; margin-bottom: 6px; background: var(--bg-soft) !important; border-color: var(--line) !important; }
  .user-name { max-width: none; color: var(--ink) !important; }
  .site-header.on-dark .nav-link { color: var(--ink); }
  .site-header.on-dark .nav-link.is-active { color: var(--blue); }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .site-footer { margin-top: 60px; padding: 42px 0 34px; }
  .footer-links { gap: 30px; }
  .page-head { padding: 36px 0 26px; }
}
