/* ==========================================================================
   Nest Recruitment — Jobs CSS
   Scoped to job pages. Inherits all design tokens from style.css.
   ========================================================================== */

/* ── Shared utilities ───────────────────────────────────────────────── */

.button--primary {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 14px 24px;
  background: var(--nest-cta-gradient);
  color: var(--nest-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: var(--nest-cta-shadow);
  white-space: nowrap;
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  background: var(--nest-cta-gradient-hover);
  box-shadow: 0 20px 42px rgba(1, 93, 177, 0.36);
  outline: none;
}

.button--ghost {
  appearance: none;
  border: 1px solid rgba(9, 24, 40, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 14px 24px;
  background: transparent;
  color: var(--nest-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--nest-electric);
  background: rgba(13, 94, 168, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(9, 24, 40, 0.12);
  outline: none;
}

/* ── Unique Jobs Archive (Atelier) ─────────────────────────────────── */

.jobs-atelier {
  background:
    radial-gradient(circle at 12% -2%, rgba(13, 94, 168, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 95% 12%, rgba(192, 146, 82, 0.08) 0%, transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
}

.main-content--jobs.jobs-atelier {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.jobs-atelier .nest-container {
  width: min(1240px, calc(100% - 48px));
}

.jobs-atelier-hero {
  position: relative;
  padding: clamp(5.6rem, 10vw, 8.2rem) 0 clamp(2.2rem, 4vw, 3.4rem);
  overflow: hidden;
}

.jobs-atelier-hero__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(120deg, rgba(13, 94, 168, 0.03) 0, rgba(13, 94, 168, 0.03) 1px, transparent 1px, transparent 20px),
    linear-gradient(130deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
}

.jobs-atelier-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(1rem, 2vw, 1.8rem);
  align-items: start;
}

.jobs-atelier-hero__content {
  border-radius: 28px;
  border: 1px solid rgba(13, 94, 168, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(1.8rem, 3vw, 3rem);
  box-shadow: 0 24px 44px rgba(9, 24, 40, 0.08);
  min-height: 100%;
}

.jobs-atelier-hero__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nest-electric);
}

.jobs-atelier-hero__title {
  margin: 0.9rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  max-width: 19ch;
  color: #0e2741;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.jobs-atelier-hero__title span {
  display: block;
  color: #1b5d9c;
}

.jobs-atelier-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 58ch;
  color: #4d6784;
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  line-height: 1.68;
}

.jobs-atelier-hero__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.jobs-atelier-hero__panel {
  border-radius: 28px;
  border: 1px solid rgba(9, 24, 40, 0.08);
  background:
    linear-gradient(148deg, #071b31 0%, #0e3c69 100%);
  padding: clamp(1.3rem, 2.1vw, 1.8rem);
  box-shadow: 0 28px 44px rgba(4, 20, 36, 0.25);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.jobs-atelier-stat {
  border: 1px solid rgba(237, 242, 247, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.jobs-atelier-stat__value {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--nest-white);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.jobs-atelier-stat__label {
  display: block;
  margin-top: 0.38rem;
  color: rgba(237, 242, 247, 0.75);
  font-size: 0.85rem;
}

.jobs-atelier-process {
  padding: clamp(0.6rem, 1.8vw, 1rem) 0 clamp(1.6rem, 3vw, 2.3rem);
}

.jobs-atelier-process__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jobs-atelier-process__step {
  border-radius: 18px;
  border: 1px solid rgba(13, 94, 168, 0.14);
  background: rgba(255, 255, 255, 0.82);
  padding: 1.2rem 1rem;
}

.jobs-atelier-process__index {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5f81a5;
  font-weight: 700;
}

.jobs-atelier-process__step h2 {
  margin: 0.35rem 0 0;
  color: #133457;
  font-size: 1.28rem;
  font-family: var(--font-title);
  font-weight: 600;
}

.jobs-atelier-process__step p {
  margin: 0.55rem 0 0;
  color: #4d6784;
  font-size: 0.95rem;
  line-height: 1.58;
}

.jobs-atelier-types {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.jobs-atelier-types__label {
  color: #6a809a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.jobs-atelier-types__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jobs-atelier-types__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(13, 94, 168, 0.2);
  background: rgba(13, 94, 168, 0.08);
  color: #1b5d9c;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.jobs-atelier-types__chips a:hover,
.jobs-atelier-types__chips a:focus-visible {
  background: rgba(13, 94, 168, 0.14);
  border-color: rgba(13, 94, 168, 0.38);
  color: #0e3d6b;
  outline: none;
}

@media (max-width: 960px) {
  .jobs-atelier .nest-container {
    width: min(1240px, calc(100% - 34px));
  }

  .jobs-atelier-hero__inner {
    grid-template-columns: 1fr;
  }

  .jobs-atelier-hero__panel,
  .jobs-atelier-process__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Filters bar ────────────────────────────────────────────────────── */

.jobs-filters {
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.9) 0%, rgba(242, 247, 252, 0.72) 100%);
  border-top: 1px solid rgba(9, 24, 40, 0.05);
  border-bottom: 1px solid rgba(9, 24, 40, 0.08);
  box-shadow: 0 10px 28px rgba(9, 24, 40, 0.06);
  position: sticky;
  top: 72px;
  z-index: 200;
}

.jobs-filters__form {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(9, 24, 40, 0.08);
  box-shadow: 0 12px 32px rgba(9, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jobs-filters__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.jobs-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.jobs-filters__label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nest-steel);
}

.jobs-filters__input,
.jobs-filters__select {
  width: 100%;
  padding: 0.72em 1em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--nest-primary);
  background: var(--nest-bg);
  border: 1.5px solid rgba(9, 24, 40, 0.12);
  border-radius: var(--nest-radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.jobs-filters__input:focus,
.jobs-filters__select:focus {
  border-color: var(--nest-electric);
  box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.12);
}

.jobs-filters__select-wrap {
  position: relative;
}

.jobs-filters__select {
  padding-right: 2.6em;
  cursor: pointer;
}

.jobs-filters__chevron {
  position: absolute;
  right: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nest-steel);
  pointer-events: none;
}

.jobs-filters__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.jobs-filters__submit {
  padding: 0.72em 1.6em;
  position: relative;
}

.jobs-filters__submit svg {
  opacity: 0.95;
}

.jf-badge {
  position: absolute;
  top: -0.4em;
  right: -0.4em;
  min-width: 1.4em;
  height: 1.4em;
  background: var(--nest-gold);
  color: var(--nest-white);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3em;
  line-height: 1;
}

.jobs-filters__reset {
  font-size: 0.875rem;
  color: var(--nest-steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.jobs-filters__reset:hover {
  color: var(--nest-primary);
}

@media (max-width: 1080px) {
  .jobs-filters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .jobs-filters__form {
    width: min(1240px, calc(100% - 24px));
    padding: 0.85rem;
  }
  .jobs-filters__grid {
    grid-template-columns: 1fr;
  }

  .jobs-filters__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ── Jobs listing section ───────────────────────────────────────────── */

.jobs-listing-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.jobs-listing-section--atelier {
  padding-top: clamp(2.2rem, 4.2vw, 3.2rem);
}

.jobs-listing-section__meta {
  font-size: 0.9rem;
  color: var(--nest-steel);
  margin-bottom: 2rem;
}

.jobs-listing-section__meta--atelier {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 94, 168, 0.14);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.46rem 0.9rem;
}

.jobs-listing-section__meta strong {
  color: var(--nest-primary);
  font-weight: 600;
}

/* ── Jobs grid ──────────────────────────────────────────────────────── */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem;
}

.jobs-grid--atelier {
  gap: 1.1rem;
}

.jobs-grid--single {
  grid-template-columns: minmax(320px, 440px);
  justify-content: start;
}

.jobs-grid--related {
  margin-top: 0;
}

/* ── Job card ───────────────────────────────────────────────────────── */

.job-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.25, 1, 0.5, 1) var(--reveal-delay, 0s),
              transform 0.72s cubic-bezier(0.25, 1, 0.5, 1) var(--reveal-delay, 0s);
}

.job-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.job-card__inner {
  height: 100%;
  background: var(--nest-white);
  border: 1px solid rgba(9, 24, 40, 0.08);
  border-radius: var(--nest-radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 4px 20px rgba(9, 24, 40, 0.05);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  cursor: pointer;
}

.job-card__inner:hover {
  transform: translateY(-5px);
  box-shadow: var(--nest-shadow);
  border-color: rgba(13, 94, 168, 0.2);
}

.jobs-grid--atelier .job-card__inner {
  border-radius: 18px;
  background: linear-gradient(162deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 251, 255, 0.92) 100%);
  padding: 1.5rem;
  min-height: 240px;
}

.jobs-grid--atelier .job-card__inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(9, 24, 40, 0.12);
  border-color: rgba(13, 94, 168, 0.3);
}

.job-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.job-card__company-logo {
  width: 92px;
  height: 52px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(9, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.job-card__company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.job-card__type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nest-electric);
  background: rgba(13, 94, 168, 0.08);
  border-radius: 999px;
  padding: 0.25em 0.8em;
}

.job-card__hook {
  margin: 0.1rem 0 0;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #1f5f96;
  background: linear-gradient(90deg, rgba(13, 94, 168, 0.12) 0%, rgba(13, 94, 168, 0.04) 100%);
  border-left: 3px solid rgba(13, 94, 168, 0.42);
  border-radius: 0 10px 10px 0;
  padding: 0.42rem 0.62rem;
  max-width: fit-content;
}

.job-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  color: var(--nest-primary);
}

.job-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.job-card__title a:hover {
  color: var(--nest-electric);
}

.job-card__company {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--nest-steel);
  margin: 0;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.job-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.84rem;
  color: var(--nest-steel);
}

.job-card__excerpt {
  font-size: 0.92rem;
  color: rgba(9, 24, 40, 0.65);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(9, 24, 40, 0.07);
}

.job-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nest-electric);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.job-card__cta:hover {
  gap: 0.65em;
  color: var(--nest-primary);
}

/* ── Pagination ─────────────────────────────────────────────────────── */

.jobs-pagination {
  margin-top: 3.5rem;
}

.jobs-pagination--atelier {
  margin-top: 2.6rem;
}

.jobs-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jobs-pagination .page-numbers {
  min-width: 2.6em;
  height: 2.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nest-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid rgba(9, 24, 40, 0.12);
  color: var(--nest-primary);
  background: var(--nest-white);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.jobs-pagination .page-numbers.current,
.jobs-pagination .page-numbers:hover {
  background: var(--nest-electric);
  border-color: var(--nest-electric);
  color: var(--nest-white);
}

.jobs-pagination .prev,
.jobs-pagination .next {
  padding: 0 0.8em;
}

.jobs-atelier-process__index,
.jobs-pagination .page-numbers:not(.prev):not(.next) {
  display: none !important;
}

/* ── Empty state ────────────────────────────────────────────────────── */

.jobs-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.jobs-empty--atelier {
  border: 1px dashed rgba(13, 94, 168, 0.26);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.jobs-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--nest-fog);
  border-radius: 50%;
  margin-bottom: 2rem;
  color: var(--nest-steel);
}

.jobs-empty__title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.jobs-empty__text {
  font-size: 1rem;
  color: rgba(9, 24, 40, 0.6);
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* ── Single job hero ────────────────────────────────────────────────── */

.sjob-hero {
  background: linear-gradient(145deg, var(--nest-primary) 0%, #0f2a47 100%);
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  color: var(--nest-white);
}

.sjob-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  color: rgba(237, 242, 247, 0.65);
  margin-bottom: 2.5rem;
  text-decoration: none;
  transition: color 0.18s ease, gap 0.18s ease;
}

.sjob-back:hover {
  color: var(--nest-white);
  gap: 0.65em;
}

.sjob-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.sjob-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.sjob-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3em 0.9em;
}

.sjob-badge--type {
  background: rgba(125, 200, 245, 0.15);
  color: var(--nest-sky);
}

.sjob-badge--cat {
  background: rgba(192, 146, 82, 0.18);
  color: var(--nest-gold);
}

.sjob-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.8rem;
  color: var(--nest-white);
}

.sjob-hero__company {
  font-size: 1rem;
  color: rgba(237, 242, 247, 0.7);
  margin: 0;
  font-weight: 500;
}

.sjob-hero__company a {
  color: var(--nest-sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sjob-hero__company-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.8rem;
}

.sjob-hero__company-logo {
  width: 96px;
  height: 54px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(237, 242, 247, 0.2);
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sjob-hero__company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sjob-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.sjob-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.9rem;
  color: rgba(237, 242, 247, 0.75);
}

.sjob-hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  flex-shrink: 0;
}

.sjob-apply-btn {
  font-size: 1.05rem;
  padding: 0.95em 2em;
  white-space: nowrap;
}

.sjob-hero__reassurance {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  color: rgba(237, 242, 247, 0.55);
  margin: 0;
}

@media (max-width: 760px) {
  .sjob-hero__inner {
    grid-template-columns: 1fr;
  }
  .sjob-hero__cta-wrap {
    align-items: flex-start;
  }
}

/* ── Single job layout ──────────────────────────────────────────────── */

.sjob-layout {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.sjob-layout__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* Content */
.sjob-content__body {
  font-size: 1.02rem;
  line-height: 1.78;
  color: rgba(9, 24, 40, 0.85);
}

.sjob-content__body h2,
.sjob-content__body h3 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
  color: var(--nest-primary);
}

.sjob-content__body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(9, 24, 40, 0.07);
}

.sjob-content__body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.sjob-content__body ul,
.sjob-content__body ol {
  padding-left: 0;
  list-style: none;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sjob-content__body ul li {
  padding-left: 1.6em;
  position: relative;
}

.sjob-content__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--nest-electric);
  border-radius: 50%;
}

.sjob-content__body ol {
  counter-reset: none;
}

.sjob-content__body ol li {
  padding-left: 1.6em;
  position: relative;
  counter-increment: none;
}

.sjob-content__body ol li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--nest-electric);
  border-radius: 50%;
}

.sjob-content__body strong {
  font-weight: 600;
  color: var(--nest-primary);
}

.sjob-content__body a {
  color: var(--nest-electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sidebar */
.sjob-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 88px;
}

.sjob-sidebar__card {
  background: var(--nest-white);
  border: 1px solid rgba(9, 24, 40, 0.09);
  border-radius: var(--nest-radius-xl);
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(9, 24, 40, 0.05);
}

.sjob-sidebar__card--apply {
  background: linear-gradient(145deg, var(--nest-primary) 0%, #0f2a47 100%);
  border-color: transparent;
  text-align: center;
}

.sjob-sidebar__card--apply .sjob-sidebar__card-title {
  color: var(--nest-white);
}

.sjob-sidebar__card--apply .sjob-sidebar__card-note {
  color: rgba(237, 242, 247, 0.6);
}

.sjob-sidebar__card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1.2rem;
  color: var(--nest-primary);
}

.sjob-sidebar__apply-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.sjob-sidebar__card-note {
  font-size: 0.8rem;
  color: var(--nest-steel);
  margin: 0;
}

.sjob-sidebar__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sjob-sidebar__details li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(9, 24, 40, 0.07);
}

.sjob-sidebar__details li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sjob-sidebar__detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nest-steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.sjob-sidebar__detail-value {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.9rem;
  color: var(--nest-primary);
  font-weight: 500;
  text-align: right;
}

/* Trust block */
.sjob-sidebar__card--trust {
  background: var(--nest-fog);
  border-color: transparent;
}

.sjob-trust {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sjob-trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(9, 24, 40, 0.75);
  font-weight: 500;
}

.sjob-trust__item svg {
  color: var(--nest-electric);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .sjob-layout__grid {
    grid-template-columns: 1fr;
  }
  .sjob-sidebar {
    position: static;
    order: -1;
  }
}

/* ── Apply section ──────────────────────────────────────────────────── */

#apply {
  scroll-margin-top: 124px;
}

.sjob-apply-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(13, 94, 168, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(192, 146, 82, 0.1) 0%, transparent 30%),
    linear-gradient(180deg, #eef3f8 0%, #e8eef5 100%);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(9, 24, 40, 0.07);
}

.sjob-apply-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.sjob-apply-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.sjob-apply-section__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nest-gold);
  margin: 0 0 1rem;
}

.sjob-apply-section__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin: 0 0 0.8rem;
}

.sjob-apply-section__lead {
  font-size: 1rem;
  color: rgba(9, 24, 40, 0.65);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.7;
}

.sjob-apply-form-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--nest-radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 24px 46px rgba(17, 41, 68, 0.1);
  border: 1px solid rgba(9, 24, 40, 0.08);
  backdrop-filter: blur(3px);
}

/* ── Application form ───────────────────────────────────────────────── */

.apply-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.apply-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.apply-form__field--full {
  grid-column: 1 / -1;
}

.apply-form__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nest-primary);
  letter-spacing: 0.04em;
}

.apply-form__required {
  color: #e53e3e;
  margin-left: 0.2em;
}

.apply-form__input,
.apply-form__select,
.apply-form__textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--nest-primary);
  background: var(--nest-bg);
  border: 1.5px solid rgba(9, 24, 40, 0.12);
  border-radius: var(--nest-radius-md);
  padding: 0.78em 1.1em;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-form__input:focus,
.apply-form__select:focus,
.apply-form__textarea:focus {
  border-color: var(--nest-electric);
  box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.12);
}

.apply-form__select {
  cursor: pointer;
}

.apply-form__textarea {
  resize: vertical;
  min-height: 130px;
}

/* CV upload zone */
.apply-form__upload {
  position: relative;
  border: 2px dashed rgba(9, 24, 40, 0.15);
  border-radius: var(--nest-radius-lg);
  background: var(--nest-bg);
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.apply-form__upload:focus-visible {
  outline: none;
  border-color: var(--nest-electric);
  box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.14);
}

.apply-form__upload.is-dragover {
  border-color: var(--nest-electric);
  background: rgba(13, 94, 168, 0.04);
}

.apply-form__upload.has-file {
  border-color: #38a169;
  background: rgba(56, 161, 105, 0.04);
}

.apply-form__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.apply-form__upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2.2rem 1.5rem;
  text-align: center;
  pointer-events: none;
}

.apply-form__upload-ui svg {
  color: var(--nest-steel);
}

.apply-form__upload-label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--nest-primary);
  font-weight: 500;
}

.apply-form__upload-label span {
  display: block;
  font-size: 0.82rem;
  color: var(--nest-steel);
  font-weight: 400;
  margin-top: 0.2rem;
}

.apply-form__upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 94, 168, 0.1);
  color: var(--nest-electric);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.62em 1.1em;
}

.apply-form__upload-filename {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #38a169;
}

.apply-form__hint {
  font-size: 0.78rem;
  color: var(--nest-steel);
  text-align: center;
  padding-bottom: 0.8rem;
  margin: 0;
}

/* Custom checkbox */
.apply-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(9, 24, 40, 0.7);
  line-height: 1.55;
}

.apply-form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.apply-form__checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(9, 24, 40, 0.2);
  border-radius: 5px;
  margin-top: 0.12em;
  transition: border-color 0.18s ease, background 0.18s ease;
  position: relative;
}

.apply-form__checkbox:checked + .apply-form__checkbox-custom {
  background: var(--nest-electric);
  border-color: var(--nest-electric);
}

.apply-form__checkbox:checked + .apply-form__checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 3px 3px 3px 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.apply-form__checkbox-label a {
  color: var(--nest-electric);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Status */
.apply-form__status {
  padding: 1rem 1.2rem;
  border-radius: var(--nest-radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 1rem;
}

.apply-form__status--success {
  background: rgba(56, 161, 105, 0.1);
  color: #276749;
  border: 1px solid rgba(56, 161, 105, 0.25);
}

.apply-form__status--error {
  background: rgba(229, 62, 62, 0.08);
  color: #9b2c2c;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Footer */
.apply-form__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.apply-form__submit {
  font-size: 1rem;
  padding: 0.9em 2em;
}

.apply-form__footer-note {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  color: var(--nest-steel);
  margin: 0;
}

/* Spinner */
.apply-form__spinner {
  animation: nestSpin 0.8s linear infinite;
}

@keyframes nestSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .apply-form__grid {
    grid-template-columns: 1fr;
  }
  .apply-form__field--full {
    grid-column: 1;
  }
}

/* ── Related jobs section ───────────────────────────────────────────── */

.sjob-related {
  background: var(--nest-white);
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 1px solid rgba(9, 24, 40, 0.07);
}

.sjob-related__header {
  text-align: center;
  margin-bottom: 3rem;
}

.sjob-related__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nest-gold);
  margin: 0 0 0.8rem;
}

.sjob-related__title {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  margin: 0;
}

.sjob-related__footer {
  text-align: center;
  margin-top: 3rem;
}

/* ── WP Job Manager plugin output normalisation ─────────────────────── */

.job-manager-form .fieldset-submit {
  display: none !important;
}

.job-manager-form,
#job-manager-job-dashboard {
  all: unset;
  display: block;
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .jobs-hero__orb,
  .job-card,
  .job-card__inner {
    animation: none;
    transition: none;
  }

  .job-card {
    opacity: 1;
    transform: none;
  }
}
