/* Manual native-scroll carousel. Original card content, artwork and typefaces retained. */
.facts {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
/* Hide only the scrollbar chrome; native scrolling remains available. */
.facts::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.facts .fact {
  flex: 0 0 calc((100% - 40px) / 3.25);
  width: auto;
  min-width: 0;
  overflow: hidden;
  height: auto;
  aspect-ratio: 1;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.facts .fact-art {
  transform: scale(var(--fact-scale, 1));
  transform-origin: top left;
}
.facts:focus-visible {
  outline: 3px solid #5d99ff;
  outline-offset: 5px;
  border-radius: 8px;
}
@media (max-width: 700px) {
  /* Reference: two complete cards and a generous preview of the third. */
  .facts {
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 6px;
    width: calc(100% + 24px);
    margin-right: -24px;
  }
  .facts .fact {
    flex-basis: calc((100% - 24px) / 2.7);
    min-width: 100px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .facts {
    scroll-behavior: auto;
  }
}
/* Optical centering: lift the complete text group, not the artwork or card. */
.facts .fact > div {
  transform: translateY(calc(-6px * var(--fact-scale, 1)));
}

/* Text and artwork share the same original 250px card coordinate system. */
.facts .fact > div {
  flex: none;
  width: 250px;
  transform: translateY(calc(-6px * var(--fact-scale, 1))) scale(var(--fact-scale, 1));
  transform-origin: center;
}
.facts .fact-label {
  font-size: 20px;
  line-height: 40.514px;
  letter-spacing: 2px;
}
.facts .fact h3 {
  font-size: 32px;
  line-height: 40.514px;
  letter-spacing: 1.6px;
}
.facts .salary-main {
  gap: 3px;
}
.facts .salary-main small {
  font-size: 18.178px;
}
.facts .salary-main strong {
  font-size: 47.084px;
}
.facts .salary h3 {
  font-size: 34.126px;
  letter-spacing: 0;
}

/* Desktop is the original four-column layout, never a carousel. */
@media (min-width: 701px) {
  .facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(20 * var(--unit));
    overflow: visible;
    scroll-snap-type: none;
    overscroll-behavior-x: auto;
    padding-bottom: 0;
  }
  .facts .fact {
    width: 100%;
    min-width: 0;
    scroll-snap-align: none;
  }
  .job-meta .job-address-break {
    display: none;
  }
  .job-body .job-meta li:first-child > span:not(.job-meta-icon) {
    white-space: nowrap;
  }
}
