/*
  Gridwise styles for the Ashby job board.
  Upload in Ashby: Admin > Theme (Job Board) > Job Board Options > Custom CSS.
  Applies to jobs.ashbyhq.com/gridwise and the board embedded on gridwise.io/careers.
*/

/* The website's font, TT Norms Pro, loaded from the Webflow site's own font files. */
@font-face {
  font-family: "Tt Norms Pro";
  src: url("https://cdn.prod.website-files.com/693147a965e7b9aee335db32/6931492804b188904015aea6_TT%20Norms%20Pro%20Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tt Norms Pro";
  src: url("https://cdn.prod.website-files.com/693147a965e7b9aee335db32/69314929032446e77f73a84e_TT%20Norms%20Pro%20Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tt Norms Pro";
  src: url("https://cdn.prod.website-files.com/693147a965e7b9aee335db32/6931492807ae3a300d8d1e3f_TT%20Norms%20Pro%20Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
body h1,
body h2,
body h3,
body h4,
body p,
body li,
body a,
body span,
body div,
body label,
body button,
body input,
body select,
body textarea {
  font-family: "Tt Norms Pro", Arial, sans-serif !important;
}

/* Job cards on the list, matching the cards gridwise.io/careers used before:
   white, 8px corners, 24px by 40px padding, violet title, gray details, "View role" on the right. */
.ashby-job-posting-brief {
  position: relative !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  padding: 24px 160px 24px 40px !important;
}

.ashby-job-posting-brief-title {
  margin: 0 !important;
  color: #434fbd !important;
  font-size: 24px !important;
  line-height: 30px !important;
  font-weight: 500 !important;
}

.ashby-job-posting-brief-details,
.ashby-job-posting-brief-details p {
  margin: 0 !important;
  color: #78716c !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
}

.ashby-job-posting-brief::after {
  content: "View role";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: #434fbd;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

/* On phones, stack "View role" under the details instead of on the right. */
@media (max-width: 640px) {
  .ashby-job-posting-brief {
    padding: 20px 24px !important;
  }

  .ashby-job-posting-brief::after {
    position: static;
    display: block;
    margin-top: 8px;
    transform: none;
  }
}

/* Match the website's off-white page background (Webflow warm gray 50, #FAFAF9).
   Job cards on the list and form inputs stay white, like the site's own cards. */
body,
.ashby-job-posting-left-pane,
.ashby-job-posting-description-container,
.ashby-application-form-container,
.ashby-application-form-autofill-pane {
  background-color: #fafaf9 !important;
}

/* Job description spacing. Ashby's defaults put 8px above a paragraph and nothing between bullets. */
.ashby-job-posting-description p {
  margin: 0 0 16px !important;
  line-height: 1.6 !important;
}

.ashby-job-posting-description h2 {
  margin: 40px 0 12px !important;
}

.ashby-job-posting-description h3 {
  margin: 28px 0 10px !important;
}

.ashby-job-posting-description > :first-child {
  margin-top: 0 !important;
}

.ashby-job-posting-description ul,
.ashby-job-posting-description ol {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

.ashby-job-posting-description li {
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
}

/* The editor wraps each bullet's text in a paragraph; keep bullet spacing from the li rule only. */
.ashby-job-posting-description li p {
  margin: 0 !important;
}
