/* Careers page (career.html). Loaded after job-details.css, landing.css and pages.css.
   Uses the site tokens from landing.css. Sizes are in px because job-details.css
   sets the root font size to 62.5%. */

.cr-container {
  width: min(1280px, 100% - 2 * var(--lp-gutter));
  margin-inline: auto;
}

.cr-hero,
.cr-openings,
.cr-job-area {
  font-family: var(--lp-font);
}

.cr-hero p,
.cr-openings p,
.cr-job-area p,
.cr-hero h1,
.cr-openings h2,
.cr-openings h3,
.cr-job-area h2,
.cr-job-area h3,
.cr-job-area h5,
.cr-job-area h6 {
  margin: 0;
}

/* ---------- Shared pieces ---------- */
.cr-icon-tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(221, 0, 255, 0.22), rgba(135, 83, 255, 0.12));
  color: var(--lp-mauve);
  font-size: 18px;
}

.cr-icon-tile--lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 24px;
}

.cr-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  font-family: var(--lp-font-label);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--lp-lilac);
  white-space: nowrap;
}

.cr-count::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffa1;
  box-shadow: 0 0 0 4px rgba(125, 255, 161, 0.15);
}

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

.cr-panel {
  padding: 32px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.14) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}

/* ---------- Hero ---------- */
.cr-hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(45% 80% at 30% -15%, rgba(106, 44, 255, 0.75) 0%, rgba(106, 44, 255, 0.3) 45%, rgba(106, 44, 255, 0) 100%),
    radial-gradient(35% 70% at 85% 40%, rgba(221, 0, 255, 0.18) 0%, rgba(221, 0, 255, 0) 100%),
    radial-gradient(30% 70% at 0% 30%, rgba(34, 91, 255, 0.35) 0%, rgba(34, 91, 255, 0) 100%),
    var(--lp-hero-base);
}

.cr-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--lp-bg));
  pointer-events: none;
}

.cr-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.cr-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 4px;
  font-family: var(--lp-font-label);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1px;
  color: var(--lp-white);
}

.cr-eyebrow i {
  color: var(--lp-mauve);
}

.cr-hero__title {
  font-family: var(--lp-font-display);
  font-size: clamp(40px, 5vw, 72px) !important;
  font-weight: 400 !important;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--lp-white);
}

/* job-details.css sets a fixed size on every span. */
.cr-hero__title span {
  font-size: inherit !important;
}

.cr-hero__lead {
  max-width: 560px;
  font-size: 18px !important;
  line-height: 28px;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.85);
}

.cr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.cr-hero__actions .lp-btn {
  gap: 10px;
}

.cr-hero__actions .lp-btn i {
  font-size: 14px;
}

/* Decorative orbit artwork */
.cr-hero__art {
  display: flex;
  justify-content: center;
}

.cr-orbit {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
}

.cr-orbit__ring {
  position: absolute;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
}

.cr-orbit__ring--outer {
  inset: 0;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  animation: cr-spin 60s linear infinite;
}

.cr-orbit__ring--inner {
  inset: 18%;
  background: radial-gradient(circle, rgba(153, 33, 254, 0.25) 0%, rgba(153, 33, 254, 0) 70%);
}

.cr-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32%;
  aspect-ratio: 1;
  border: 1px solid #dcd5e1;
  border-radius: 28px;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.35) 3.685%, rgba(18, 0, 33, 0.7) 70.864%);
  box-shadow: 0 0 40px 0 #6a2cff;
  color: var(--lp-white);
  font-size: clamp(32px, 4vw, 48px);
  transform: translate(-50%, -50%);
}

.cr-orbit__bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  background: rgba(18, 0, 33, 0.75);
  color: var(--lp-mauve);
  font-size: 22px;
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
  animation: cr-float 6s ease-in-out infinite;
}

.cr-orbit__bubble--a { top: 4%; left: 50%; margin-left: -32px; }
.cr-orbit__bubble--b { bottom: 14%; left: 2%; animation-delay: -2s; }
.cr-orbit__bubble--c { bottom: 14%; right: 2%; animation-delay: -4s; }

@keyframes cr-spin {
  to { transform: rotate(360deg); }
}

@keyframes cr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Openings ---------- */
.cr-openings {
  padding: 24px 0 64px;
  scroll-margin-top: calc(var(--lp-header-h) + 16px);
}

.cr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.cr-section-head__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cr-section-title {
  font-family: var(--lp-font-display);
  font-size: clamp(30px, 3.2vw, 45px) !important;
  font-weight: 500 !important;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--lp-offwhite);
}

.cr-carousel-nav {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cr-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--lp-white-60);
  border-radius: 8px;
  color: var(--lp-white-60);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cr-arrow:hover,
.cr-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lp-white);
}

.is-single-slide .cr-carousel-nav,
.is-single-slide .cr-indicators {
  display: none;
}

/* Bootstrap carousel, re-laid out as a card row */
#jobCarousel .carousel-inner {
  padding: 4px;
  margin: -4px;
}

.cr-slide {
  display: grid;
  grid-template-columns: repeat(var(--cr-per-slide, 3), minmax(0, 1fr));
  gap: 24px;
}

.cr-indicators {
  position: static;
  margin: 28px 0 0;
}

.cr-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.cr-indicators .active {
  width: 24px;
  border-radius: 4px;
  background: var(--lp-mauve);
  opacity: 1;
}

/* Job card */
.cr-job-card.job-details-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.14) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cr-job-card.job-details-card:hover {
  transform: translateY(-4px);
  border-color: var(--lp-white-60);
  box-shadow: none;
}

.cr-job-card.job-details-card:focus-visible {
  outline: 2px solid var(--lp-mauve);
  outline-offset: 2px;
}

.cr-job-card.job-details-card.active {
  border-color: var(--lp-mauve);
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.32) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
  box-shadow: 0 0 32px 0 rgba(106, 44, 255, 0.45);
}

.cr-job-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cr-job-card__type {
  padding: 4px 12px;
  border: 1px solid var(--lp-line-soft);
  border-radius: 999px;
  font-size: 12px !important;
  line-height: 18px;
  color: var(--lp-lilac);
  white-space: nowrap;
}

.cr-job-card__title {
  overflow: hidden;
  font-family: var(--lp-font-display);
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 30px;
  color: var(--lp-white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-job-card__dept {
  margin-top: 4px !important;
  font-family: var(--lp-font-label);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.cr-job-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.cr-job-card__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px !important;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.cr-job-card__meta span {
  font-size: 14px !important;
}

.cr-job-card__meta i {
  width: 16px;
  color: var(--lp-mauve);
  text-align: center;
}

.cr-job-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--lp-line-soft);
  font-size: 14px !important;
  font-weight: 500;
  color: var(--lp-white);
}

.cr-job-card__cta i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.cr-job-card:hover .cr-job-card__cta i,
.cr-job-card.active .cr-job-card__cta i {
  transform: translateX(4px);
}

.cr-job-card.active .cr-job-card__cta {
  color: var(--lp-mauve);
}

/* Loading skeleton */
.cr-loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 82px;
}

.cr-skeleton {
  height: 300px;
  border: 1px solid var(--lp-line-soft);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 70%) 0 0 / 200% 100%;
  animation: lp-shimmer 1.4s linear infinite;
}

/* fetchJobs hides the loader with style.display = "none". */
.cr-loading[style*="none"] {
  display: none !important;
}

/* Empty state */
.cr-empty {
  max-width: 620px;
  margin: 24px auto 0;
  padding: 56px 40px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.14) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
  text-align: center;
}

.cr-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(221, 0, 255, 0.22), rgba(135, 83, 255, 0.12));
  color: var(--lp-mauve);
  font-size: 28px;
}

.cr-empty__title {
  margin-bottom: 10px !important;
  font-family: var(--lp-font-display);
  font-size: 26px !important;
  font-weight: 500 !important;
  color: var(--lp-offwhite);
}

.cr-empty__text {
  max-width: 440px;
  margin-inline: auto !important;
  font-size: 16px !important;
  line-height: 24px;
  color: var(--lp-muted);
}

/* ---------- Job details ---------- */
.cr-job-area {
  scroll-margin-top: calc(var(--lp-header-h) + 16px);
}

.cr-job-area .job-details-content {
  padding: 16px 0 var(--lp-section-gap);
}

.cr-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    "header apply"
    "facts apply"
    "requirements apply";
  align-items: start;
  gap: 24px 32px;
}

.cr-job__header { grid-area: header; }
.cr-facts { grid-area: facts; }
.cr-job__requirements { grid-area: requirements; }
.cr-apply { grid-area: apply; }

.cr-job__header {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.35) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
}

.cr-job__header::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 0, 255, 0.25) 0%, rgba(221, 0, 255, 0) 70%);
  pointer-events: none;
}

.cr-job__heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cr-job__dept {
  font-family: var(--lp-font-label);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-lilac);
}

.cr-job__title {
  margin-top: 4px !important;
  font-family: var(--lp-font-display);
  font-size: clamp(28px, 3vw, 40px) !important;
  font-weight: 500 !important;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--lp-white);
  overflow-wrap: anywhere;
}

.cr-job__desc {
  position: relative;
  max-width: 720px;
  margin-top: 20px !important;
  font-size: 16px !important;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.85);
}

.cr-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: rgba(18, 0, 33, 0.35);
  font-size: 14px !important;
  line-height: 20px;
  color: var(--lp-white);
}

.cr-chip i {
  color: var(--lp-mauve);
  font-size: 13px;
}

.cr-chip--salary {
  border-color: transparent;
  background: var(--lp-white);
  color: #000;
  font-weight: 600;
}

.cr-chip--salary i {
  color: #6a2cff;
}

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

.cr-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--lp-line-soft);
  border-radius: 12px;
  background: rgba(18, 0, 33, 0.35);
}

.cr-fact > i {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(153, 33, 254, 0.2);
  color: var(--lp-mauve);
  font-size: 14px;
}

.cr-fact h6 {
  margin-bottom: 4px !important;
  font-family: var(--lp-font-label);
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.cr-fact p {
  font-size: 16px !important;
  font-weight: 500;
  line-height: 22px;
  color: var(--lp-white);
  overflow-wrap: anywhere;
}

.cr-panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-line-soft);
  font-family: var(--lp-font-display);
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--lp-offwhite);
}

.cr-panel__title i {
  color: var(--lp-mauve);
  font-size: 18px;
}

/* HTML delivered by the jobs API */
.job-requirements-content p,
.job-requirements-content li {
  font-size: 15px !important;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.job-requirements-content p + p {
  margin-top: 12px !important;
}

.job-requirements-content ul,
.job-requirements-content ol {
  margin: 8px 0 0;
  padding-left: 22px;
  list-style: disc;
}

.job-requirements-content ol {
  list-style: decimal;
}

.job-requirements-content li::marker {
  color: var(--lp-mauve);
}

.job-requirements-content li + li {
  margin-top: 6px;
}

.job-requirements-content strong {
  color: var(--lp-white);
}

.job-requirements-content a {
  color: var(--lp-mauve);
}

/* Apply card */
.cr-apply {
  position: sticky;
  top: calc(var(--lp-header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 40px 0 rgba(106, 44, 255, 0.3);
}

.cr-apply__title {
  font-family: var(--lp-font-label);
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-lilac);
}

.cr-apply__role {
  font-family: var(--lp-font-display);
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.25;
  color: var(--lp-white);
  overflow-wrap: anywhere;
}

.cr-apply__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--lp-line-soft);
  border-bottom: 1px solid var(--lp-line-soft);
  list-style: none;
}

.cr-apply__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.85);
}

.cr-apply__meta i {
  width: 16px;
  color: var(--lp-mauve);
  text-align: center;
}

.cr-apply__salary {
  font-size: 20px !important;
  font-weight: 600;
  color: var(--lp-white);
}

.cr-apply .cr-apply__btn {
  min-height: 52px;
  margin: 4px 0 0;
  font-size: 17px;
}

/* ---------- Application popup ---------- */
.job-details-application-popup {
  padding: 24px;
}

.job-details-application-form {
  width: 100%;
  max-width: 720px;
  max-height: min(88vh, 820px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 60px 0 rgba(106, 44, 255, 0.45);
}

#jobApplicationForm {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.job-details-form-header {
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 0;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.35) 3.685%, rgba(18, 0, 33, 0.9) 70.864%);
}

.cr-form-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.job-details-form-header h3 {
  font-family: var(--lp-font-display);
  font-size: 22px !important;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.job-details-form-header h3 span,
.job-details-form-header p {
  font-size: inherit;
}

.job-details-form-header p {
  font-size: 14px !important;
  color: var(--lp-muted);
}

.job-details-form-content {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 28px;
}

.job-details-form-section + .job-details-form-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-line-soft);
}

.job-details-form-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--lp-font-label);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-lilac);
}

.job-details-form-section h4 i {
  color: var(--lp-mauve);
}

.job-details-form-label {
  font-size: 14px !important;
  color: var(--lp-white);
}

.job-details-form-label span {
  font-size: inherit;
}

.job-details-form-label .file-badge {
  font-size: 11px !important;
}

.job-details-form-control {
  min-height: 46px;
  font-size: 15px;
}

.job-details-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border-style: dashed;
  border-color: var(--lp-line);
  border-radius: 12px;
}

.job-details-file-upload i {
  margin: 0;
  color: var(--lp-mauve);
  font-size: 28px;
}

.job-details-file-upload #fileName {
  color: var(--lp-white) !important;
  font-size: 14px !important;
  overflow-wrap: anywhere;
}

.job-details-form-footer {
  padding: 18px 28px;
  border-radius: 0;
  border-top-color: var(--lp-line-soft);
}

.job-details-close-btn,
.job-details-submit-form-btn {
  min-height: 46px;
  padding: 10px 24px;
  font-size: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cr-job {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .cr-loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cr-loading .cr-skeleton:nth-child(3) {
    display: none;
  }
}

@media (max-width: 900px) {
  .cr-hero {
    padding: 56px 0 40px;
  }

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

  .cr-hero__art {
    display: none;
  }

  /* Apply card moves up, right under the job title. */
  .cr-job {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "apply"
      "facts"
      "requirements";
  }

  .cr-apply {
    position: static;
  }
}

@media (max-width: 767px) {
  .cr-loading {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .cr-loading .cr-skeleton:nth-child(n + 2) {
    display: none;
  }

  .cr-section-head {
    align-items: center;
  }

  .cr-arrow {
    width: 44px;
    height: 44px;
  }

  .cr-job__header,
  .cr-panel {
    padding: 24px;
  }

  .cr-job__heading {
    align-items: flex-start;
    gap: 16px;
  }

  .cr-icon-tile--lg {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .cr-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cr-fact {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .cr-empty {
    padding: 40px 24px;
  }
}

@media (max-width: 576px) {
  .cr-hero__title {
    font-size: 40px !important;
  }

  .cr-hero__lead {
    font-size: 16px !important;
    line-height: 24px;
  }

  .cr-hero__actions .lp-btn {
    width: 100%;
  }

  /* The same count is shown again beside "Current Openings". */
  #openingsCountHero {
    display: none;
  }

  .cr-section-head__text {
    gap: 10px;
  }

  /* Popup becomes a full-screen sheet on phones. */
  .job-details-application-popup {
    padding: 0;
  }

  .job-details-application-form {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }

  .job-details-form-header,
  .job-details-form-content,
  .job-details-form-footer {
    padding-inline: 20px;
  }

  .job-details-form-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .job-details-close-btn,
  .job-details-submit-form-btn {
    flex: 1;
    padding-inline: 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .job-details-close-btn {
    flex: 0 1 35%;
  }
}

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

  .cr-fact {
    flex-direction: row;
  }
}
