/* ═══════════════════════════════════════════════════════
   CAREERS — job list, role detail, application form
═══════════════════════════════════════════════════════ */

/* ── Perks ──────────────────────────────────────────── */
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px;
  box-shadow: var(--sh-soft); transition: var(--t);
  position: relative; overflow: hidden;
}
.perk-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.perk-card:hover::before { transform: scaleY(1); }
.perk-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: var(--line-gold); }
.perk-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.perk-card h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 8px; }
.perk-card p { color: var(--stone); font-size: 0.85rem; line-height: 1.7; }

/* ── Job list ───────────────────────────────────────── */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  display: flex; align-items: center; gap: 30px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 34px;
  box-shadow: var(--sh-soft); transition: var(--t);
  color: inherit;
}
.job-card:hover {
  transform: translateY(-4px); box-shadow: var(--sh-lift);
  border-color: var(--line-gold);
}
.job-card__main { flex: 1; min-width: 0; }
.job-card__cta { flex-shrink: 0; }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.job-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--stone);
}
.job-tag--gold { background: var(--gold-tint); color: var(--gold-600); }
.job-tag--hot { background: #fdecea; color: #c0392b; }
.job-tag--closed { background: rgba(10,18,38,0.08); color: var(--stone); }
.job-card__title {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 1.3rem; line-height: 1.25; margin-bottom: 8px;
}
.job-card:hover .job-card__title { color: var(--gold-600); }
.job-card__summary { color: var(--stone); font-size: 0.9rem; line-height: 1.7; margin-bottom: 14px; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 20px; }
.job-card__meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.79rem; font-weight: 600; color: var(--stone-light);
}
.job-card__meta svg { color: var(--gold-500); }
.job-card__urgent { color: #c0392b !important; }
.job-card__urgent svg { color: #c0392b; }

.jobs-empty {
  text-align: center; padding: 70px 30px;
  background: var(--white); border: 1px dashed var(--line-gold);
  border-radius: var(--r-lg);
}
.jobs-empty__icon {
  width: 74px; height: 74px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
}
.jobs-empty h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.3rem; margin-bottom: 10px; }
.jobs-empty p { color: var(--stone); font-size: 0.92rem; line-height: 1.75; max-width: 480px; margin: 0 auto 24px; }

/* ── Role detail hero ───────────────────────────────── */
.job-hero {
  background:
    radial-gradient(1000px 420px at 82% -10%, rgba(184,146,42,0.16), transparent 60%),
    linear-gradient(140deg, var(--ink) 0%, var(--navy-700) 100%);
  padding: 180px 0 60px; color: var(--white);
  position: relative; overflow: hidden;
}
.job-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 100% at 20% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 20% 0%, #000 40%, transparent 100%);
}
.job-hero .container { position: relative; z-index: 1; }
.job-hero__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-300); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 26px; transition: gap var(--t);
}
.job-hero__back:hover { gap: 12px; }
.job-hero__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.job-hero .job-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.job-hero .job-tag--gold { background: var(--gold-500); color: var(--ink); }
.job-hero .job-tag--closed { background: rgba(229,115,115,0.22); color: #ffb4b4; }
.job-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1;
  letter-spacing: -0.015em; max-width: 860px;
}
.job-hero__summary {
  color: rgba(255,255,255,0.72); font-size: 1.02rem;
  line-height: 1.75; margin-top: 16px; max-width: 720px;
}
.job-hero__facts {
  display: flex; flex-wrap: wrap; gap: 44px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.job-fact__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-300); margin-bottom: 5px;
}
.job-fact__value { font-size: 0.94rem; font-weight: 600; color: var(--white); }

/* ── Role body ──────────────────────────────────────── */
.job-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }
.job-body__heading {
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: 1.4rem; margin: 38px 0 16px;
}
.job-body__heading:first-child { margin-top: 0; }
.job-body__text p { color: var(--stone); font-size: 0.97rem; line-height: 1.85; margin-bottom: 15px; }
.job-body__list { display: flex; flex-direction: column; gap: 12px; }
.job-body__list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--stone); font-size: 0.94rem; line-height: 1.7;
}
.job-body__list svg { color: var(--gold-500); flex-shrink: 0; margin-top: 4px; }

/* ── Apply panel ────────────────────────────────────── */
.job-apply { position: sticky; top: 110px; }
.job-apply__inner {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 36px 32px;
  box-shadow: var(--sh-lift);
}
.job-apply__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.35rem; }
.job-apply__note { color: var(--stone); font-size: 0.87rem; line-height: 1.7; margin: 8px 0 24px; }

.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 26px 18px; text-align: center;
  border: 1.5px dashed var(--line-gold); border-radius: var(--r-sm);
  background: var(--paper); color: var(--stone);
  font-size: 0.84rem; cursor: pointer; transition: var(--t);
}
.file-drop svg { color: var(--gold-500); }
.file-drop:hover, .file-drop.dragging { border-color: var(--gold-500); background: var(--gold-tint); }
.file-drop.has-file { border-style: solid; border-color: var(--gold-500); background: var(--gold-tint); color: var(--gold-600); font-weight: 600; }

/* ── Application submitted ──────────────────────────── */
.apply-done {
  max-width: 660px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 62px 46px;
  box-shadow: var(--sh-lift);
}
.apply-done__icon {
  width: 86px; height: 86px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
}
.apply-done__text { color: var(--stone); font-size: 0.98rem; line-height: 1.8; margin: 18px auto 30px; max-width: 480px; }
.apply-done__text strong { color: var(--ink); }
.apply-done__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* grid children must be allowed to shrink below their content width,
   otherwise wide form controls stretch the whole track */
.job-layout > * { min-width: 0; }
.job-apply__inner input,
.job-apply__inner select,
.job-apply__inner textarea { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
.job-body__list li { min-width: 0; word-break: break-word; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .job-layout { grid-template-columns: 1fr; gap: 44px; }
  .job-apply { position: static; }
}
@media (max-width: 720px) {
  .perks-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 24px; }
  .job-card__cta { width: 100%; }
  .job-card__cta .btn { width: 100%; justify-content: center; }
  .job-hero { padding: 140px 0 46px; }
  .job-hero__facts { gap: 26px; }
  .job-apply__inner { padding: 28px 22px; }
  .apply-done { padding: 44px 26px; }
}
