/* ==========================================================================
   Careers cluster — shared by the listing page (/careers/) and the job-detail
   template (/careers/<slug>/). Loaded after site.css + inner.css.
   Sections: gradient hero (coral->purple, no image), editable job list,
   "Didn't find" CTA card, job rich-text body, application form, back-link.
   ========================================================================== */

/* -------------------------------------------------- gradient hero (T18) */
/* Full-bleed coral->purple vertical gradient. No image (pure CSS). Centered
   white text + animated down-chevron. Shared by listing + job pages; only the
   descr copy differs (set per page in the markup). */
.careers-hero {
  position: relative;
  background: linear-gradient(180deg, rgb(218, 68, 83) 0%, rgb(137, 33, 107) 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0 128px;
}
.careers-hero .wrap { max-width: 900px; }
.careers-hero-uptitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 30px;
}
.careers-hero-title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.careers-hero-descr {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  max-width: 660px;
  margin: 0 auto;
}
/* animated down-chevron */
.careers-hero-arrow {
  display: block;
  width: 34px;
  height: 34px;
  margin: 56px auto 0;
  border-right: 3px solid rgba(255, 255, 255, .9);
  border-bottom: 3px solid rgba(255, 255, 255, .9);
  transform: rotate(45deg);
  animation: careers-chevron 1.8s ease-in-out infinite;
}
@keyframes careers-chevron {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(10px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .careers-hero-arrow { animation: none; }
}

/* ------------------------------------------------ editable job list */
/* Repeating card list between the hero and the "Didn't find" card.
   See the HTML comment in careers/index.html for how to add/remove a job. */
.job-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--tint);
  border: 1px solid #E4E8F0;
  border-radius: 22px;
  padding: 26px 34px;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.job-card:hover {
  border-color: var(--red);
  box-shadow: 0 14px 34px rgba(13, 18, 64, .08);
  transform: translateY(-2px);
}
.job-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.job-card-loc {
  flex: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  background: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  white-space: nowrap;
}
.job-card-arrow { flex: none; color: var(--red); font-size: 22px; line-height: 1; }

/* ------------------------------------------------ "Didn't find" card */
.didnt-find {
  max-width: 760px;
  margin: 0 auto;
  background: #f0f4f8;
  border-radius: 45px;
  padding: 44px 56px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
.didnt-find-illus { width: 100%; height: auto; }
.didnt-find-head {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 14px;
}
.didnt-find-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}
.didnt-find-text a { color: var(--red); text-decoration: underline; }

/* ==========================================================================
   Job-detail page
   ========================================================================== */
.job-body { max-width: 720px; margin: 0 auto; }
.job-body h1 {
  font-size: clamp(28px, 3.6vw, 34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 34px;
}
.job-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 34px 0 14px;
}
.job-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 14px;
}
.job-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.job-body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}
.job-body a { color: var(--red); text-decoration: underline; }

/* ------------------------------------------------ application form */
.job-form { max-width: 640px; margin: 40px auto 0; }
.job-form-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin: 44px 0 26px;
}
.job-field { margin-bottom: 22px; }
.job-field label {
  display: block;
  font-size: 15px;
  color: var(--body);
  margin-bottom: 8px;
}
.job-form .t-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 13px 16px;
}
.job-form textarea.t-input { min-height: 136px; resize: vertical; }
.job-form .t-input:focus { outline: none; border-color: var(--red); }

/* CV upload */
.job-upload { margin-bottom: 18px; }
.job-upload .t-input-title { font-size: 15px; color: var(--body); margin-bottom: 8px; }
.job-upload-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
}
.job-upload-btn:hover { background: var(--red-dark); }
.job-upload-name { font-size: 14px; color: var(--body); margin-left: 12px; }

/* privacy checkbox */
.job-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--body);
  margin: 18px 0 28px;
}
.job-consent input { margin-top: 2px; flex: none; }
.job-consent a { color: var(--red); text-decoration: underline; }

.job-form .t-form__submit { text-align: center; }
.job-submit {
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 7px;
  padding: 15px 46px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 0, 0, .18);
}
.job-submit:hover { background: var(--red-dark); }

/* ------------------------------------------------ back link */
.job-back-wrap { text-align: center; padding-top: 30px; }
.job-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
.job-back img { width: 26px; height: 26px; }
.job-back:hover { color: var(--red); }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .careers-hero { padding: 64px 0 84px; }
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 24px;
  }
  .job-card-arrow { display: none; }
  .didnt-find {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    border-radius: 22px;
    padding: 34px 26px;
  }
  .didnt-find-illus { width: 180px; margin: 0 auto; }
  .job-form-heading { font-size: 22px; }
}
