/* ==========================================================================
   MYLEASE Careers — BNP Paribas–style listing & job detail
   ========================================================================== */

body.page-careers.page-modern {
  background: #fff;
  color: #1a1a1a;
}

/* Expert Tip–style callout (shared) */
.cr-callout-tip {
  background: rgba(215, 25, 32, 0.05);
  border: 1px solid rgba(215, 25, 32, 0.15);
  border-left: 4px solid var(--color-primary);
  border-radius: 16px;
}

/* Breadcrumb */
.cr-breadcrumb {
  padding: calc(var(--header-height) + 20px) 24px 0;
  background: #fff;
}

.cr-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  list-style: none;
  font-size: 13px;
  color: #64748b;
}

.cr-breadcrumb__list.cr-callout-tip {
  padding: 14px 24px;
}

.cr-breadcrumb__list a {
  color: #64748b;
  text-decoration: none;
}

.cr-breadcrumb__list a:hover {
  color: var(--color-primary);
}

.cr-breadcrumb__sep {
  color: #cbd5e1;
}

.cr-breadcrumb__current {
  color: var(--color-primary);
  font-weight: 600;
}

.cr-breadcrumb__brand {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Listing header */
.cr-offers-head {
  padding: 24px 24px 32px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cr-offers-head__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.cr-offers-head__content {
  min-width: 0;
}

.cr-offers-head__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.cr-offers-head__title {
  margin: 0 0 16px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}

.cr-offers-head__intro {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.65;
  color: #4b5563;
}

/* Board: filters + results */
.cr-board {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.cr-filters__panel {
  padding: 24px;
  background: #f8f9fb;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.cr-filters__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.cr-filters__search,
.cr-filters__select {
  width: 100%;
  min-height: 44px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.cr-filters__clear {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cr-results__count {
  margin: 0 0 20px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.25;
  color: #111827;
}

/* Job offer rows (listing) */
.cr-offers-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-offer-row {
  border-bottom: 0;
}

.cr-offer-row__link {
  display: block;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cr-offer-row__link.cr-callout-tip:hover {
  background: rgba(215, 25, 32, 0.08);
  box-shadow: 0 8px 24px rgba(215, 25, 32, 0.08);
  transform: translateY(-1px);
}

.cr-offer-row__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
  color: #111827;
  font-weight: 600;
}

.cr-offer-row__link:hover .cr-offer-row__title {
  color: var(--color-primary);
}

.cr-offer-row__meta {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.cr-offer-row--empty {
  padding: 32px 8px;
  color: #64748b;
  line-height: 1.7;
}

.cr-results__empty {
  margin: 16px 0 0;
  color: #64748b;
}

/* Promo + why apply */
.cr-promo {
  padding: 40px 24px;
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cr-promo__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cr-promo__title {
  margin: 0 0 10px;
  font-size: 24px;
  color: #111827;
}

.cr-promo__text {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.cr-why-apply {
  padding: 56px 24px 72px;
  background: #fff;
}

.cr-why-apply__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.cr-why-apply__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.cr-why-apply__title {
  margin: 0 0 28px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  color: #111827;
}

.cr-why-apply__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cr-why-apply__grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111827;
}

.cr-why-apply__grid p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

/* Job detail header */
.cr-job-header {
  padding: 28px 24px 32px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cr-job-header__inner {
  max-width: 820px;
  margin: 0 auto;
}

.cr-job-header__title {
  margin: 0 0 16px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  color: #111827;
  letter-spacing: -0.02em;
}

.cr-job-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cr-header-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.cr-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cr-meta-strip__item {
  min-width: 0;
}

.cr-meta-strip__label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.cr-meta-strip__value {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.cr-offers-head__intro[hidden] {
  display: none;
}

/* Job body content */
.cr-job-body {
  padding: 40px 24px 64px;
  background: #fff;
}

.cr-job-body__inner {
  max-width: 820px;
  margin: 0 auto;
}

.cr-prose__section {
  margin-bottom: 24px;
  padding: 24px 28px;
}

.cr-prose__section.cr-callout-tip {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cr-prose__section.cr-callout-tip:last-child {
  margin-bottom: 0;
}

.cr-prose__heading {
  margin: 0 0 14px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
}

.cr-prose__p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
  max-width: 68ch;
}

.cr-prose__list {
  margin: 0 0 16px;
  padding-left: 1.35rem;
  color: #374151;
  line-height: 1.75;
  font-size: 16px;
  max-width: 68ch;
}

.cr-prose__list li {
  margin-bottom: 10px;
}

/* Apply section */
.cr-apply {
  padding: 56px 24px 72px;
  background: #f8f9fb;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cr-apply__inner {
  max-width: 760px;
  margin: 0 auto;
}

.cr-apply__title {
  margin: 0 0 8px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  color: #111827;
  text-align: center;
}

.cr-apply__subtitle {
  margin: 0 0 32px;
  text-align: center;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.cr-apply__form {
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
}

/* Related jobs */
.cr-related {
  padding: 48px 24px 72px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cr-related__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.cr-related__title {
  margin: 0 0 24px;
  font-family: 'Chillax', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 28px);
  color: #111827;
}

.cr-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cr-related__item a {
  display: block;
  padding: 20px;
  background: #f8f9fb;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cr-related__item a:hover {
  border-color: rgba(215, 25, 32, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.cr-related__item-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.cr-related__item-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Form */
.cr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cr-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-form-field--full {
  grid-column: 1 / -1;
}

.cr-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.cr-form-field input,
.cr-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.cr-form-field input:focus,
.cr-form-field textarea:focus {
  outline: 2px solid rgba(215, 25, 32, 0.2);
  border-color: var(--color-primary);
}

.cr-form-field input[type='file'] {
  padding: 10px 12px;
  background: #f8fafc;
}

.cr-form-hint {
  font-weight: 400;
  color: #64748b;
}

.cr-form-submit {
  width: 100%;
  margin-top: 8px;
}

.cr-form-error {
  margin: 12px 0 0;
  color: #b91c1c;
  font-size: 14px;
}

.cr-form-error[hidden] {
  display: none;
}

.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  min-height: 48px;
  padding: 11px 20px;
  font-family: var(--ds-font-family);
  font-size: var(--ds-text-btn);
  font-weight: var(--ds-weight-semibold);
  line-height: var(--ds-leading-snug);
  border-radius: var(--ds-radius-btn);
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--ds-transition-base),
    color var(--ds-transition-base),
    border-color var(--ds-transition-base),
    box-shadow var(--ds-transition-base),
    transform var(--ds-transition-base),
    opacity var(--ds-transition-base);
}

.cr-btn--primary {
  background-color: var(--ds-color-primary-red);
  color: var(--ds-color-white);
  box-shadow: var(--ds-shadow-btn-primary);
}

.cr-btn--primary:hover {
  background-color: var(--ds-color-primary-red-dark);
  box-shadow: var(--ds-shadow-btn-primary-hover);
  transform: translateY(-1px);
}

.cr-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Unavailable */
.cr-unavailable {
  max-width: 640px;
  margin: 80px auto;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  text-align: center;
}

.cr-unavailable__title {
  margin: 0 0 12px;
  font-size: 26px;
  color: #111827;
}

.cr-unavailable__text {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.7;
}

.cr-unavailable .cr-btn {
  margin-top: 4px;
}

.cr-unavailable__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.cr-unavailable__cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .cr-board {
    grid-template-columns: 1fr;
  }

  .cr-filters__panel {
    position: static;
  }

  .cr-why-apply__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cr-form-grid {
    grid-template-columns: 1fr;
  }

  .cr-apply__form {
    padding: 24px 20px;
  }
}
