/* =========================================================
   Ashby embedded job board: custom styles
   Upload in Ashby: Admin > Job Boards > Theme (Job Board) > Custom CSS
   (or host it and allow-list the URL, then use __Ashby.settings.customCssUrl)
   ========================================================= */

/* ---------- 1. Font (Aeonik) ----------
   Replace the URLs below with publicly reachable .woff2 files.
   Make sure the font licence covers web use, and that the host sends
   "Access-Control-Allow-Origin" (the board runs on jobs.ashbyhq.com). */
@font-face {
  font-family: "Aeonik";
  src: url("https://cdn.prod.website-files.com/69ebb86c9c3cd78bac500783/69ebc01d2a7d3992e45e22b1_AeonikTRIAL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("https://cdn.prod.website-files.com/69ebb86c9c3cd78bac500783/69ebc01d0dab16d0fc40392e_AeonikTRIAL-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Design tokens ---------- */
:root {
  --fontFamily: "Aeonik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --widthMaxJobBoard: 100%;

}

body {
  background: transparent;
  font-family: "Aeonik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #082724;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ---------- 3. Hide default board header ---------- */
.ashby-job-board-heading,
.ashby-job-board-heading-count {
  display: none;
}

/* Department headings (only appear if "Group by teams" is on in Ashby) */
h2.ashby-department-heading {
  margin: 48px 0 16px;
}
h2.ashby-department-heading:first-of-type {
  margin-top: 0;
}
span.ashby-department-heading-level {
  font-family: "Aeonik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #144944;
}

/* ---------- 4. Card grid ---------- */
.ashby-job-posting-brief-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e3e6e3;
  border-left: 1px solid #e3e6e3;
}

.ashby-job-posting-brief-list a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ashby-job-posting-brief {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 32px;
  background: transparent;
  border: 0;
  border-right: 1px solid #e3e6e3;
  border-bottom: 1px solid #e3e6e3;
  border-radius: 0;
  box-shadow: none;
}

.ashby-job-posting-brief:hover {
  background: transparent;
}

/* ---------- 5. Tags (details move above the title) ---------- */
.ashby-job-posting-brief-details {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  opacity: 1;
  font-size: 14px;
  color: #082724;
}

/* Each detail item becomes a pill */
.ashby-job-posting-brief-details > * {
  margin: 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: #d4efdf;
  color: #082724;
  font-size: 14px;
  line-height: 1.2;
}

/* 1st tag = country/location, 2nd tag = position */
.ashby-job-posting-brief-details > *:nth-child(1) {
  background: #f6f9d3;
}
.ashby-job-posting-brief-details > *:nth-child(2) {
  background: #d4efdf;
}

/* The design shows two tags only; hide any extras */
.ashby-job-posting-brief-details > *:nth-child(n + 3) {
  display: none;
}

/* Hide the "•" separators Ashby inserts between details (if present) */
.ashby-job-posting-brief-details [aria-hidden="true"],
.ashby-job-posting-brief-details [class*="separator"],
.ashby-job-posting-brief-details [class*="dot"] {
  display: none;
}

/* ---------- 6. Title ---------- */
h3.ashby-job-posting-brief-title {
  margin: 72px 0 28px;
  font-family: "Aeonik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  color: #144944;
}

/* ---------- 7. "See job opening" link ---------- */
.ashby-job-posting-brief::after {
  content: "See job opening";
  align-self: flex-start;
  font-size: 16px;
  line-height: 1.3;
  color: #082724;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.ashby-job-posting-brief:hover::after {
  text-decoration-thickness: 2px;
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 991px) {
  .ashby-job-posting-brief-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h3.ashby-job-posting-brief-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .ashby-job-posting-brief-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .ashby-job-posting-brief {
    padding: 24px;
  }
  h3.ashby-job-posting-brief-title {
    margin-top: 48px;
    font-size: 24px;
  }
}
