@import url("./design-system/tokens.css?v=20260730-nohover1");
@import url("./design-system/components.css?v=20260730-footer2");

.jb-company-pages {
  padding-block: var(--jb-space-5) var(--jb-space-8);
}

.jb-company-heading {
  max-width: 56rem;
  margin-bottom: var(--jb-space-4);
}

.jb-company-filters {
  display: grid;
  grid-template-columns: minmax(24rem, 1.4fr) minmax(18rem, 1fr) minmax(18rem, 1fr) auto;
  align-items: end;
  gap: var(--jb-space-3);
  padding: var(--jb-space-4);
  border: 1px solid var(--jb-color-border);
  background: var(--jb-color-surface-subtle);
}

.jb-company-filters .jb-form-group {
  margin: 0;
}

.jb-company-filters__actions {
  display: flex;
  align-items: center;
  gap: var(--jb-space-3);
  min-height: var(--jb-size-control);
}

.jb-company-filters__actions .jb-button {
  min-height: var(--jb-size-control);
  margin: 0;
  white-space: nowrap;
}

.jb-company-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--jb-space-4);
  margin-block: var(--jb-space-5) var(--jb-space-3);
}

.jb-company-results-heading h2,
.jb-company-results-heading p {
  margin: 0;
}

.jb-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jb-space-4);
  align-items: stretch;
}

.jb-company-profile {
  display: grid;
  gap: var(--jb-space-6);
}

.jb-company-profile__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jb-space-6);
  padding: var(--jb-space-6);
  border: 1px solid var(--jb-color-border);
  background: var(--jb-color-surface-subtle);
}

.jb-company-profile__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: var(--jb-space-5);
}

.jb-company-profile__logo {
  display: grid;
  width: 8rem;
  height: 8rem;
  flex: 0 0 8rem;
  place-items: center;
  border: 1px solid var(--jb-color-border);
  border-radius: var(--jb-radius-md);
  background: var(--jb-color-surface);
  object-fit: cover;
  font-size: var(--jb-text-xl);
  font-weight: var(--jb-font-weight-bold);
}

.jb-company-profile__intro {
  min-width: 0;
}

.jb-company-profile__trust {
  margin-top: var(--jb-space-2);
}

.jb-company-profile__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: var(--jb-space-2);
}

.jb-company-profile__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--jb-color-border);
}

.jb-company-profile__facts > div {
  padding: var(--jb-space-4) var(--jb-space-5);
}

.jb-company-profile__facts > div + div {
  border-left: 1px solid var(--jb-color-border);
}

.jb-company-profile__facts dt {
  color: var(--jb-color-text-muted);
  font-size: var(--jb-text-sm);
}

.jb-company-profile__facts dd {
  margin: var(--jb-space-1) 0 0;
  font-weight: var(--jb-font-weight-bold);
}

.jb-company-profile__content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(24rem, 1fr);
  gap: var(--jb-space-6);
}

.jb-company-profile__content > :only-child {
  grid-column: 1 / -1;
  max-width: 76rem;
}

.jb-company-profile__about,
.jb-company-profile__content > section,
.jb-company-profile__jobs {
  min-width: 0;
}

.jb-company-profile__prose {
  max-width: 72rem;
  margin-top: var(--jb-space-3);
}

.jb-company-profile__prose > :first-child {
  margin-top: 0;
}

.jb-company-profile__prose > :last-child {
  margin-bottom: 0;
}

.jb-company-profile__media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--jb-space-3);
  margin-top: var(--jb-space-3);
}

.jb-company-profile__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--jb-radius-md);
}

.jb-company-profile__jobs {
  padding-top: var(--jb-space-6);
  border-top: 1px solid var(--jb-color-border);
  scroll-margin-top: var(--jb-space-4);
}

.jb-company-profile__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--jb-space-4);
  margin-bottom: var(--jb-space-4);
}

.jb-company-profile__section-head p {
  margin-bottom: 0;
}

.jb-company-profile__role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jb-space-4);
}

@media (max-width: 56rem) {
  .jb-company-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jb-company-filters__actions {
    align-self: end;
  }

  .jb-company-profile__hero,
  .jb-company-profile__section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .jb-company-profile__content {
    grid-template-columns: 1fr;
  }

  .jb-company-profile__role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .jb-company-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .jb-company-filters {
    grid-template-columns: 1fr;
    padding: var(--jb-space-3);
  }

  .jb-company-filters__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jb-company-filters__actions .jb-button {
    width: 100%;
  }

  .jb-company-profile__hero {
    padding: var(--jb-space-4);
  }

  .jb-company-profile__identity {
    align-items: flex-start;
  }

  .jb-company-profile__logo {
    width: 6.4rem;
    height: 6.4rem;
    flex-basis: 6.4rem;
  }

  .jb-company-profile__actions,
  .jb-company-profile__actions .jb-button {
    width: 100%;
  }

  .jb-company-profile__facts {
    grid-template-columns: 1fr;
  }

  .jb-company-profile__facts > div + div {
    border-top: 1px solid var(--jb-color-border);
    border-left: 0;
  }

  .jb-company-profile__role-grid {
    grid-template-columns: 1fr;
  }
}
