:root {
  --header-h: 64px;
  --announce-h: 64px;
  --topbar-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --sidebar-padding: 32px;
  --top-offset-px: calc(var(--header-h)+var(--announce-h));
  --topbar-gap: 32px;
}

/* ───────────────── careers 전용 헤더 오버라이드 ───────────────── */
body.careers .site-header a:hover,
body.careers .site-header button:hover {
  background: none !important;
  opacity: 1 !important;
}

/* hero-mode: 인트로가 보일 때 투명 */
body.careers.hero-mode .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
}
body.careers.hero-mode .site-header .logo a,
body.careers.hero-mode .site-header .top-nav a {
  color: #fff !important;
}
body.careers.hero-mode .top-nav a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* scrolled: 스크롤 내려왔을 때 유리(흰 배경) */
body.careers .site-header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
}
body.careers .site-header.scrolled .logo a,
body.careers .site-header.scrolled .top-nav a {
  color: #222 !important;
}
body.careers .site-header.scrolled .top-nav a:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* 메뉴 열림: 오버레이 배경은 ::before가 담당 */
body.careers .site-header.menu-open {
  background: transparent !important;
  backdrop-filter: none !important;
}
body.careers .site-header.menu-open::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  opacity: 1;
  z-index: 0;
}
body.careers .site-header.menu-open > * {
  position: relative;
  z-index: 1;
}
body.careers .site-header.menu-open .logo a,
body.careers .site-header.menu-open .top-nav a {
  color: #222 !important;
}

/* ★ Apply 탭 등에서 강제로 유리 상태 – hero-mode보다 뒤에 둬서 항상 우선 */
body.careers.header-glass .site-header {
  background: rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06) !important;
}
body.careers.header-glass .site-header .logo a,
body.careers.header-glass .site-header .top-nav a {
  color: #0a0a0a !important;
}
body.careers.header-glass .top-nav a:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}
/* hero-mode와 header-glass가 동시에 있을 때도 header-glass가 승리 */
body.careers.hero-mode.header-glass .site-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
}
/* 메뉴 열림 + header-glass 일관 처리 */
body.careers.header-glass .site-header.menu-open {
  background: transparent !important;
  backdrop-filter: none !important;
}
body.careers.header-glass .site-header.menu-open::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  opacity: 1;
  z-index: 0;
}
body.careers.header-glass .site-header.menu-open > * {
  position: relative;
  z-index: 1;
}

/* ───────────────── 레이아웃 ───────────────── */
.intro-section,
.jobs-wrapper,
.job-detail {
  margin-top: 0;
}

.jobs-wrapper {
  padding: 0 clamp(20px, 5vw, 48px) 120px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.job-detail {
  padding: 64px clamp(20px, 5vw, 48px) 100px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

/* ───────────────── 리스트/카드 ───────────────── */
.job-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.job-card-link:hover .job-card {
  border-color: #cfcfcf;
}
.job-card {
  cursor: pointer;
}

.jobs-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin: 60px 0 32px;
}
.job-card {
  position: relative;
  padding: 32px 28px;
  margin-bottom: 14px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, transform 0.12s ease;
}
.job-card-link:hover .job-card {
  transform: translateY(-2px);
}
.job-main {
  margin-right: 48px;
}
.job-position {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0 0 8px;
}
.job-meta {
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.bookmark {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 32px;
  right: 28px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bookmark svg {
  width: 22px;
  height: 22px;
  stroke: #8a8a8a;
}
.bookmark:hover svg {
  stroke: #0a0a0a;
}

.tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tag-box .tag {
  padding: 6px 14px;
  font-weight: 600;
  font-size: 13px;
  color: #404040;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fafafa;
  transition: 0.12s;
}
.tag-box .tag:hover {
  background: #f0f0f0;
  border-color: #c8c8c8;
}

/* ───────────────── 상세 상단/탭 ───────────────── */
.detail-topbar {
  position: sticky;
  top: calc(var(--top-offset-px) + var(--safe-top) + 16px);
  height: var(--topbar-h);
  z-index: 1999;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: none;
  box-sizing: border-box;
  pointer-events: none;
}
.back-button {
  pointer-events: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #0a0a0a;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease;
}
.back-button:hover {
  background: rgba(245, 245, 245, 0.92);
}
.back-button:active {
  transform: translateY(-50%) scale(0.98);
}
.back-button:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}
.chevron-left {
  width: 22px;
  height: 22px;
}

.detail-topbar + .detail-header {
  margin-top: var(--topbar-gap);
}
.detail-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0a0a0a;
}
.detail-meta {
  color: #6b6b6b;
  font-size: 16px;
  margin: 0;
}

.detail-nav {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  border-bottom: 1px solid #e6e6e6;
}
.tab-button {
  background: none;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  color: #6b6b6b;
  border-bottom: 2px solid transparent;
}
.tab-button.active {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
}

.detail-content {
  padding: 8px 0 0;
}
.detail-content h2 {
  font-size: 20px;
  margin: 24px 0 8px;
}
.detail-content ul {
  margin: 0 0 12px 20px;
}
.x {
  margin-bottom: 28px;
}

.apply-embed {
  margin-top: 12px;
}
.apply-note {
  color: #6e7a8a;
  font-size: 13px;
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

/* ───────────────── 인트로 ───────────────── */
.intro-section {
  background: #0a0a0a !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h));
  gap: 0 !important;
  padding: 0 5%;
}
.intro-message {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: pre-line;
  max-width: 680px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.intro-show {
  opacity: 1 !important;
}

/* ───────────────── 모바일 ───────────────── */
@media (max-width: 768px) {
  .job-position {
    font-size: 22px;
  }
  .job-meta {
    font-size: 15px;
  }
  .back-button {
    padding: 9px 12px;
  }
}
