/**
 * jobs.css — 인재채용 (/jobs)
 * SSOT: docs/design-md/wooseok.md · personality.md · craft.md · section-stack.md
 * 카드는 채용공고만. Why·FISH·CTA는 밴드.
 */
@import url('../wh-tokens.css');

#wehome-no-history-logo {
  display: none !important;
}

.nav.clean {
  display: none !important;
}

#content.jobs-page {
  font-family: var(--wh-ff);
  -webkit-font-smoothing: antialiased;
  background: var(--wh-bg-stay);
  padding: 0 !important;
  padding-bottom: calc(var(--bar-h, 66px) + env(safe-area-inset-bottom) + var(--wh-space-4xl)) !important;
  min-height: 100vh;
  color: var(--wh-tx);
  overflow-x: clip;
}

#content.jobs-page a,
#content.jobs-page a:hover,
#content.jobs-page a:focus,
#content.jobs-page a:active {
  text-decoration: none !important;
}

#content.jobs-page a:focus-visible {
  outline: 2px solid var(--wh-focus-ring);
  outline-offset: 2px;
}

/* ── Hero ── */
.jobs-hero {
  display: flex;
  flex-direction: column;
  gap: var(--wh-stack-lg);
  padding: 96px 20px var(--wh-space-xl);
  background: var(--wh-bg-stay);
  max-width: 720px;
  margin: 0 auto;
}

.jobs-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--wh-stack-md);
  min-width: 0;
}

.jobs-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--wh-brand-tint);
  border: 1px solid var(--wh-info-bd);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: var(--wh-text-xs);
  font-weight: 700;
  color: var(--wh-brand);
  letter-spacing: -0.2px;
}

.jobs-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wh-brand);
  flex-shrink: 0;
}

.jobs-hero-title {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  font-weight: 800;
  color: var(--wh-tx);
  line-height: var(--wh-lh-tight);
  letter-spacing: var(--wh-tracking-title);
  margin: 0;
  word-break: keep-all;
}

.jobs-hero-sub {
  margin: 0;
  max-width: 36em;
  font-size: var(--wh-text-base);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  letter-spacing: var(--wh-tracking-body);
  word-break: keep-all;
}

.jobs-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wh-inline-sm, 8px);
  margin-top: 4px;
}

.jobs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--wh-bd);
  font-size: var(--wh-text-xs);
  font-weight: 600;
  color: var(--wh-tx2);
}

.jobs-hero-visual {
  margin: 0;
  min-height: 220px;
}

.jobs-hero-graphic {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-height: 220px;
  padding: 28px 24px;
  background: var(--wh-brand);
  color: #fff;
  border-radius: var(--wh-radius-md, 20px);
}

.jobs-hero-graphic span {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.jobs-hero-graphic-x {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  opacity: 0.55;
  margin: 2px 0;
}

.jobs-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 22px;
  margin-top: var(--wh-stack-xs);
  border-radius: var(--wh-radius-sharp);
  background: var(--wh-brand);
  color: #fff !important;
  font-size: var(--wh-text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  touch-action: manipulation;
}

.jobs-cta-primary:hover,
.jobs-cta-primary:focus-visible {
  background: var(--wh-brand-hover);
  color: #fff !important;
}

.jobs-cta-primary:focus-visible {
  outline: 2px solid var(--wh-focus-ring);
  outline-offset: 2px;
}

/* ── Sections ── */
.jobs-section {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--wh-space-5xl) 20px 0;
}

.jobs-section-title {
  font-family: var(--wh-ff-display);
  font-size: var(--wh-text-section);
  font-weight: 800;
  color: var(--wh-tx);
  letter-spacing: var(--wh-tracking-title);
  margin: 0 0 var(--wh-stack-xs);
  word-break: keep-all;
}

.jobs-section-lead {
  margin: 0 0 var(--wh-stack-lg);
  font-size: var(--wh-text-sm);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  word-break: keep-all;
}

/* ── Why — full-bleed brand band ── */
.jobs-why-band {
  width: 100vw;
  margin: var(--wh-space-5xl) 0 0;
  margin-left: calc(50% - 50vw);
  background: var(--wh-brand);
  color: #fff;
  padding: 56px 20px;
}

.jobs-why-inner {
  max-width: 720px;
  margin: 0 auto;
}

.jobs-why-kicker {
  margin: 0 0 12px;
  font-size: var(--wh-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.jobs-why-title {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: var(--wh-lh-tight);
  letter-spacing: var(--wh-tracking-title);
  margin: 0 0 28px;
  word-break: keep-all;
  color: #fff;
}

.jobs-why-keys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jobs-why-keys li {
  font-size: var(--wh-text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.jobs-why-keys li:first-child {
  padding-top: 0;
  border-top: 0;
}

/* ── FISH — 2×2, watermark, no card ── */
.jobs-fish-band {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--wh-space-5xl) 20px 0;
}

.jobs-fish-inner {
  position: relative;
}

.jobs-fish-kicker {
  margin: 0 0 8px;
  font-size: var(--wh-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-brand);
}

.jobs-fish-title {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: var(--wh-tracking-title);
  margin: 0 0 8px;
  color: var(--wh-tx);
}

.jobs-fish-lead {
  margin: 0 0 28px;
  font-size: var(--wh-text-sm);
  color: var(--wh-tx2);
  word-break: keep-all;
}

.jobs-fish-mark {
  position: absolute;
  top: -8px;
  right: -8px;
  font-family: var(--wh-ff-display);
  font-size: clamp(4.5rem, 22vw, 8rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--wh-brand);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.jobs-fish-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.jobs-fish-item {
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.jobs-fish-item h3 {
  margin: 0 0 8px;
  font-family: var(--wh-ff-display);
  font-size: var(--wh-text-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wh-tx);
  word-break: keep-all;
}

.jobs-fish-item p {
  margin: 0;
  font-size: var(--wh-text-sm);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  word-break: keep-all;
}

/* ── Roles (cards only here) ── */
.jobs-role-list {
  display: flex;
  flex-direction: column;
  gap: var(--wh-stack-sm);
}

.jobs-role {
  background: var(--wh-card);
  border: 1px solid var(--wh-bd);
  border-radius: var(--wh-radius-md, 20px);
  box-shadow: var(--wh-shadow-listing);
  overflow: hidden;
}

.jobs-role-open {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--wh-inline-md, 12px);
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: var(--wh-inset-lg);
  min-height: var(--wh-touch-min, 44px);
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.jobs-role-open:focus-visible {
  outline: 2px solid var(--wh-focus-ring);
  outline-offset: -2px;
}

.jobs-role-summary-text {
  min-width: 0;
  flex: 1;
}

.jobs-role-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.jobs-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wh-info-bg);
  border: 1px solid var(--wh-info-bd);
  color: var(--wh-brand);
  font-size: var(--wh-text-xs);
  font-weight: 700;
}

.jobs-role-loc {
  font-size: var(--wh-text-xs);
  font-weight: 600;
  color: var(--wh-tx3);
}

.jobs-role-title {
  display: block;
  margin: 0 0 6px;
  font-size: var(--wh-text-lg);
  font-weight: 800;
  color: var(--wh-tx);
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.jobs-role-summary-desc {
  margin: 0;
  font-size: var(--wh-text-sm);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  word-break: keep-all;
}

.jobs-role-go {
  flex-shrink: 0;
  color: var(--wh-tx3);
  margin-top: 4px;
}

.jobs-role-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 20px;
  border-radius: var(--wh-radius-sharp);
  background: var(--wh-brand);
  color: #fff !important;
  font-size: var(--wh-text-sm);
  font-weight: 700;
  touch-action: manipulation;
}

.jobs-role-apply:hover,
.jobs-role-apply:focus-visible {
  background: var(--wh-brand-hover);
  color: #fff !important;
}

.jobs-role-apply:focus-visible {
  outline: 2px solid var(--wh-focus-ring);
  outline-offset: 2px;
}

html.jobs-modal-lock,
html.jobs-modal-lock body {
  overflow: hidden;
}

.jobs-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.jobs-modal[hidden] {
  display: none;
}

.jobs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
}

.jobs-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 92vh;
  background: var(--wh-card);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--wh-shadow-listing-hover, 0 16px 40px rgba(0, 0, 0, 0.18));
}

.jobs-modal-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 8px 0;
  flex-shrink: 0;
}

.jobs-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wh-tx);
  cursor: pointer;
}

.jobs-modal-close:focus-visible {
  outline: 2px solid var(--wh-focus-ring);
  outline-offset: 2px;
}

.jobs-modal-scroll {
  overflow: auto;
  padding: 4px 24px 20px;
  -webkit-overflow-scrolling: touch;
}

.jobs-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.jobs-modal-title {
  margin: 0 0 8px;
  font-family: var(--wh-ff-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wh-tx);
  word-break: keep-all;
}

.jobs-modal-lead {
  margin: 0 0 8px;
  font-size: var(--wh-text-sm);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  word-break: keep-all;
}

.jobs-modal-scroll h4 {
  margin: 28px 0 12px;
  font-size: var(--wh-text-sm);
  font-weight: 800;
  color: var(--wh-tx);
}

.jobs-modal-scroll ul {
  margin: 0;
  padding-left: 1.35em;
}

.jobs-modal-scroll li {
  font-size: var(--wh-text-sm);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  margin-bottom: 10px;
  word-break: keep-all;
}

.jobs-modal-scroll li::marker {
  color: var(--wh-brand);
}

.jobs-modal-foot {
  flex-shrink: 0;
  padding: 12px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--wh-card);
}

.jobs-modal-foot .jobs-role-apply {
  width: 100%;
}

/* ── Team — no card ── */
.jobs-team-kicker {
  margin: 0 0 8px;
  font-size: var(--wh-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-brand);
}

.jobs-team-visual {
  margin: 16px 0 24px;
  overflow: hidden;
  border-radius: 4px;
}

.jobs-team-visual img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.jobs-team-quote {
  margin: 0 0 var(--wh-stack-sm);
  font-family: var(--wh-ff-display);
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 800;
  line-height: var(--wh-lh-tight);
  letter-spacing: var(--wh-tracking-title);
  color: var(--wh-tx);
  word-break: keep-all;
}

.jobs-team-lead {
  margin: 0;
  font-size: var(--wh-text-sm);
  line-height: var(--wh-lh-body);
  color: var(--wh-tx2);
  word-break: keep-all;
}

/* ── Apply — brand band ── */
.jobs-apply-band {
  width: 100vw;
  margin: var(--wh-space-5xl) 0 0;
  margin-left: calc(50% - 50vw);
  background: var(--wh-brand);
  color: #fff;
  padding: 56px 20px 48px;
}

.jobs-apply-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jobs-apply-heading {
  font-family: var(--wh-ff-display);
  font-size: clamp(1.4rem, 4.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: var(--wh-tracking-title);
  margin: 0 0 12px;
  color: #fff;
  word-break: keep-all;
}

.jobs-apply-lead {
  margin: 0 0 18px;
  font-size: var(--wh-text-base);
  line-height: var(--wh-lh-body);
  color: rgba(255, 255, 255, 0.88);
  word-break: keep-all;
}

.jobs-apply-email {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--wh-ff-display);
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.03em;
}

.jobs-apply-email:hover,
.jobs-apply-email:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
}

.jobs-cta-on-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 22px;
  margin-bottom: 22px;
  border-radius: var(--wh-radius-sharp);
  background: #fff;
  color: var(--wh-brand) !important;
  font-size: var(--wh-text-base);
  font-weight: 700;
  touch-action: manipulation;
}

.jobs-cta-on-brand:hover,
.jobs-cta-on-brand:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: var(--wh-brand-hover) !important;
}

.jobs-cta-on-brand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.jobs-apply-meta {
  margin: 0 0 4px;
  font-size: var(--wh-text-xs);
  line-height: var(--wh-lh-body);
  color: rgba(255, 255, 255, 0.68);
  word-break: keep-all;
}

.jobs-apply-meta a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline !important;
}

.jobs-apply-meta a:hover,
.jobs-apply-meta a:focus-visible {
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  html.sp-force-desktop-ui .jobs-role.wh-lift:hover {
    box-shadow: var(--wh-shadow-listing-hover);
  }
}

@media (min-width: 1024px) {
  html.sp-force-desktop-ui #content.jobs-page {
    max-width: min(1040px, calc(100vw - 80px));
    margin-left: auto;
    margin-right: auto;
    padding-top: calc(var(--sp-dt-header-h, 108px) + 32px) !important;
    padding-bottom: 0 !important;
    background: var(--wh-bg-stay) !important;
  }

  html.sp-force-desktop-ui .jobs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    max-width: none;
    padding: 24px 24px var(--wh-space-3xl);
    gap: 40px;
  }

  html.sp-force-desktop-ui .jobs-hero-title {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
  }

  html.sp-force-desktop-ui .jobs-hero-graphic {
    min-height: 340px;
    padding: 40px 36px;
  }

  html.sp-force-desktop-ui .jobs-hero-graphic span {
    font-size: clamp(2.2rem, 3.2vw, 3rem);
  }

  html.sp-force-desktop-ui .jobs-section,
  html.sp-force-desktop-ui .jobs-fish-band {
    max-width: none;
    padding: var(--wh-space-5xl) 24px 0;
  }

  html.sp-force-desktop-ui .jobs-why-inner,
  html.sp-force-desktop-ui .jobs-apply-inner {
    max-width: none;
    padding: 0 24px;
  }

  html.sp-force-desktop-ui .jobs-why-band,
  html.sp-force-desktop-ui .jobs-apply-band {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  html.sp-force-desktop-ui .jobs-why-keys {
    flex-direction: row;
    gap: 0;
  }

  html.sp-force-desktop-ui .jobs-why-keys li {
    flex: 1;
    padding: 0 28px 0 0;
    border-top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.05rem;
  }

  html.sp-force-desktop-ui .jobs-why-keys li:last-child {
    padding-right: 0;
    border-right: 0;
  }

  html.sp-force-desktop-ui .jobs-fish-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  html.sp-force-desktop-ui .jobs-fish-item:nth-child(1),
  html.sp-force-desktop-ui .jobs-fish-item:nth-child(2) {
    border-top: 0;
    padding-top: 0;
  }

  html.sp-force-desktop-ui .jobs-fish-mark {
    font-size: 10rem;
    top: -24px;
    right: 0;
  }

  html.sp-force-desktop-ui .jobs-team-visual img {
    height: 380px;
  }

  html.sp-force-desktop-ui .jobs-modal {
    align-items: center;
    padding: 24px;
  }

  html.sp-force-desktop-ui .jobs-modal-dialog {
    width: min(640px, 100%);
    max-height: 85vh;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce),
html.wh-reduce-motion {
  .wh-lift,
  .wh-pressable {
    transition: none !important;
  }
}
