/* ==========================================================================
   Careers portal. Uses the shared tokens in rl-components.css so it matches
   the rest of the site (gold accents, Manrope headings, cream panels, cards).
   ========================================================================== */

.rl-careers { color: var(--rl-ink); }
.rl-careers p,
.rl-careers li { text-align: left !important; hyphens: manual !important; }

/* Intro (below the standard page banner) */
.rl-careers-intro { text-align: center; max-width: 820px; margin: 0 auto 8px; }
.rl-careers-intro .rl-page-title { display: inline-block; }
.rl-careers-intro .rl-page-title::after { margin-left: auto; margin-right: auto; }
.rl-careers-intro p { text-align: center !important; color: var(--rl-ink-muted); line-height: 1.8; }

.rl-kicker {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--rl-gold);
  border-radius: 999px;
  color: var(--rl-gold-deep);
  font-family: var(--rl-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Job cards */
.rl-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.rl-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rl-border);
  border-top: 4px solid var(--rl-gold);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rl-job-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(42, 36, 28, 0.12); }
.rl-job-card h3 { font-family: var(--rl-font-heading); font-weight: 800; font-size: 18px !important; line-height: 1.3; margin: 0 0 4px; color: #000; }
.rl-job-card h3 a { color: inherit; text-decoration: none; }
.rl-job-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.rl-job-card .rl-job-dept { font-size: 13px; color: var(--rl-gold-deep); font-weight: 700; margin: 0 0 10px; }
.rl-job-card p.rl-job-summary { font-size: 14px !important; color: var(--rl-ink-muted); margin: 0 0 14px; flex: 1 1 auto; }
.rl-job-card .rl-job-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rl-job-card .rl-job-foot small { color: var(--rl-ink-muted); font-size: 12px; }
.rl-job-card .rl-btn { position: relative; z-index: 1; min-height: 40px; padding: 8px 16px; font-size: 13px; }
.rl-featured {
  position: absolute; top: -4px; right: 16px;
  background: var(--rl-gold-deep); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 0 0 6px 6px;
}

.rl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.rl-tags li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--rl-cream);
  border: 1px solid var(--rl-border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--rl-ink);
  margin: 0;
}
.rl-tags li i { color: var(--rl-gold-deep); }

/* Empty state and general application block */
.rl-empty,
.rl-general-cta {
  text-align: center;
  background: var(--rl-cream-warm);
  border: 1px dashed var(--rl-gold);
  border-radius: var(--rl-radius);
  padding: 32px 20px;
}
.rl-empty h3,
.rl-general-cta h2 { font-family: var(--rl-font-heading); font-weight: 800; font-size: 20px !important; color: #000; }
.rl-empty p,
.rl-general-cta p { text-align: center !important; color: var(--rl-ink-muted); max-width: 620px; margin: 0 auto 16px; }
.rl-general-cta { margin-top: 36px; border-style: solid; border-color: var(--rl-border); border-top: 4px solid var(--rl-gold); }

/* Job detail */
.rl-breadcrumb { font-size: 13px; margin-bottom: 14px; }
.rl-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.rl-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--rl-ink-muted); }
.rl-breadcrumb a { color: var(--rl-gold-deep); }
.rl-job-header .rl-page-title { text-transform: none; letter-spacing: 0; }
.rl-job-section h2 {
  font-family: var(--rl-font-heading);
  font-weight: 700;
  font-size: 18px !important;
  color: #000;
  margin: 28px 0 10px;
}
.rl-job-section ul { padding-left: 20px; }
.rl-job-section li { margin-bottom: 6px; line-height: 1.7; }
.rl-facts { border: 1px solid var(--rl-border); border-radius: var(--rl-radius); background: var(--rl-cream); padding: 18px; }
.rl-facts dl { margin: 0; }
.rl-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--rl-ink-muted); font-weight: 700; }
.rl-facts dd { margin: 0 0 12px; font-weight: 600; }
.rl-facts .rl-btn { width: 100%; }
@media (min-width: 992px) { .rl-sticky-side { position: sticky; top: 110px; } }

.rl-closed-banner { background: #fff4f2; border-left: 4px solid var(--rl-danger); padding: 14px 16px; border-radius: 0 var(--rl-radius) var(--rl-radius) 0; margin-bottom: 20px; }
.rl-closed-banner p { margin: 0; }

/* Application form */
.rl-apply {
  margin-top: 36px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--rl-border);
  border-top: 4px solid var(--rl-gold);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
  scroll-margin-top: 110px;
}
.rl-apply h2 { font-family: var(--rl-font-heading); font-weight: 800; font-size: 20px !important; color: #000; margin: 0 0 4px; }
.rl-apply .rl-help { font-size: 13px; color: var(--rl-ink-muted); margin: 0 0 18px; }
.rl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.rl-form-grid .rl-span-2 { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .rl-form-grid { grid-template-columns: 1fr; } }
.rl-form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--rl-ink); }
.rl-form-field .rl-req { color: var(--rl-danger); }
.rl-form-field .rl-hint { display: block; font-size: 12.5px; color: var(--rl-ink-muted); margin-top: 4px; }
.rl-form-field textarea.rl-field { min-height: 120px; resize: vertical; }
.rl-form-field input[type="file"].rl-field { padding: 8px; }
.rl-field[aria-invalid="true"] { border-color: var(--rl-danger); }
.rl-field-error { display: block; color: var(--rl-danger); font-size: 13px; font-weight: 600; margin-top: 4px; }
.rl-error-summary {
  border: 2px solid var(--rl-danger);
  border-radius: var(--rl-radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #fff8f7;
}
.rl-error-summary h3 { font-size: 16px !important; color: var(--rl-danger); margin: 0 0 6px; font-weight: 700; }
.rl-error-summary ul { margin: 0; padding-left: 18px; }
.rl-error-summary a { color: var(--rl-danger); }
.rl-consent-box { margin-top: 18px; padding: 14px 16px; background: var(--rl-cream); border-radius: var(--rl-radius); }
.rl-consent-box .rl-check { margin-bottom: 10px; }
.rl-apply-actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rl-apply-actions .rl-btn { min-width: 200px; }

/* Mobile sticky "Apply Now" */
.rl-sticky-apply { display: none; }
@media (max-width: 991.98px) {
  .rl-sticky-apply {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--rl-border);
    box-shadow: 0 -8px 24px rgba(28, 26, 23, 0.1);
  }
  .rl-sticky-apply .rl-btn { width: 100%; }
  body.rl-has-sticky-apply .footerbg { padding-bottom: 80px !important; }
  body.rl-has-sticky-apply .contact-float { bottom: 90px; }
}

/* Success / withdraw panels */
.rl-reference {
  display: inline-block;
  font-family: var(--rl-font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 10px 18px;
  border: 2px dashed var(--rl-gold);
  border-radius: var(--rl-radius);
  background: var(--rl-cream);
  margin: 6px 0 16px;
}

.rl-careers-intro .rl-kicker,
.rl-careers .card-body .rl-kicker { display: block; width: -moz-fit-content; width: fit-content; margin: 0 auto 12px; }
.rl-filter-actions .rl-btn { flex: 0 1 220px; }

.rl-consent-box .rl-form-notice { font-size: 14px !important; line-height: 1.6; color: var(--rl-ink-muted); margin-bottom: 12px; }
@media (max-width: 991.98px) {
  body.rl-has-sticky-apply .contact-float { bottom: 84px !important; }
  .rl-sticky-apply.is-hidden { transform: translateY(110%); }
  .rl-sticky-apply { transition: transform 0.2s ease; }
}

/* Form fields (used by the application form) */
.rl-field {
  width: 100%; min-height: 44px; padding: 9px 12px;
  border: 1px solid #8d8d8d; border-radius: var(--rl-radius);
  background: #fff; color: var(--rl-ink); font-size: 15px;
}
.rl-field:focus { outline: 3px solid var(--rl-gold); outline-offset: 0; border-color: var(--rl-gold-deep); }

/* Careers landing sections */
.rl-careers-intro { margin-bottom: 8px; }
.rl-careers > .container > section { margin-top: 56px; }
.rl-section-title {
  font-family: var(--rl-font-heading); font-weight: 800; color: #000;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  text-align: center; margin: 0 0 24px;
}
.rl-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px; margin-left: 6px;
  border-radius: 999px; background: var(--rl-gold-soft); color: var(--rl-gold-deep);
  font-size: 15px; vertical-align: 4px;
}
.rl-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rl-why-card {
  background: var(--rl-cream); border: 1px solid var(--rl-border); border-radius: 12px;
  padding: 22px 20px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rl-why-card:hover { transform: translateY(-3px); box-shadow: var(--rl-shadow); }
.rl-why-card i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  background: var(--rl-ink); color: var(--rl-gold); font-size: 18px;
}
.rl-why-card h3 { font-family: var(--rl-font-heading); font-weight: 800; font-size: 16px !important; color: #000; margin: 0 0 6px; }
.rl-why-card p { font-size: 14px !important; color: var(--rl-ink-muted); margin: 0; line-height: 1.65; }
.rl-tags--center { justify-content: center; gap: 10px; }
.rl-tags--center li { padding: 8px 16px; font-size: 14px; background: #fff; }

.rl-steps-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 0; }
.rl-steps-list li { counter-increment: step; position: relative; padding: 54px 18px 18px; border-top: 3px solid var(--rl-gold); background: #fff; border-radius: 0 0 12px 12px; box-shadow: var(--rl-shadow); }
.rl-steps-list li::before {
  content: counter(step); position: absolute; top: 16px; left: 18px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--rl-ink); color: var(--rl-gold);
  font-family: var(--rl-font-heading); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.rl-steps-list strong { display: block; font-family: var(--rl-font-heading); font-size: 16px; color: #000; margin-bottom: 4px; }
.rl-steps-list span { font-size: 14px; color: var(--rl-ink-muted); line-height: 1.6; }

@media (max-width: 991.98px) {
  .rl-why-grid, .rl-steps-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .rl-why-grid, .rl-steps-list { grid-template-columns: 1fr; }
  .rl-careers > .container > section { margin-top: 40px; }
}
