:root {
  --widthMaxContent: 1200px;
}

body {
  background: #FAF9F1 !important;
}

/* Hide "Open Positions" heading */
.ashby-job-board-heading {
  display: none !important;
}

/* Department / team headings (both allowed families covered) */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  margin: 48px 0 24px 0 !important;
}

.ashby-department-heading:first-child,
.ashby-job-posting-brief-department-heading:first-child {
  margin: 0 0 24px 0 !important;
}

/* Job list */
.ashby-job-posting-brief-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

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

.ashby-job-posting-brief-list a:hover {
  text-decoration: none !important;
}

/* Job card */
.ashby-job-posting-brief {
  position: relative !important;
  margin-top: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #F0F0F0 !important;
  border-radius: 24px !important;
  box-shadow: 0 3px 15px rgba(16, 24, 40, 0.08) !important;
  padding: 24px 80px 24px 24px !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.ashby-job-posting-brief:hover {
  opacity: 0.8 !important;
  transform: translateY(-4px) !important;
}

.ashby-job-posting-brief-title {
  margin: 0 0 12px 0 !important;
  color: #1B1B2E !important;
  font-weight: 400 !important;
  font-size: 21px !important;
  line-height: 32px !important;
}

.ashby-job-posting-brief-details p {
  margin: 0 !important;
  color: #403E6B !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 20px !important;
  text-transform: uppercase !important;
}

.ashby-job-posting-brief::after {
  content: "" !important;
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 24px !important;
  height: 24px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23007364' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") !important;
}

/* Back to all jobs */
.ashby-job-board-back-to-all-jobs-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: #F7866D !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 26px !important;
}

.ashby-job-board-back-to-all-jobs-button svg {
  width: 24px !important;
  height: 24px !important;
}

.ashby-job-board-back-to-all-jobs-button svg path {
  fill: #F7866D !important;
}

/* Job posting title */
.ashby-job-posting-heading {
  margin: 0 !important;
  color: #1B1B2E !important;
  font-weight: 400 !important;
  font-size: 24px !important;
  line-height: 1.4 !important;
}

/* Two-pane container (reached via :has, no allowed class on it) */
div:has(> .ashby-job-posting-left-pane) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 80px !important;
}

/* Left pane (details card) */
.ashby-job-posting-left-pane {
  align-self: flex-start !important;
  flex: 0 0 378px !important;
  width: 378px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
  border: 1px solid #F0F0F0 !important;
  border-radius: 24px !important;
  box-shadow: 0 3px 15px rgba(16, 24, 40, 0.08) !important;
  padding: 24px !important;
}

.ashby-job-posting-left-pane p {
  margin: 0 !important;
  color: #1B1B2E !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  line-height: 26px !important;
}

/* Right pane */
.ashby-job-posting-right-pane {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
  background: transparent !important;
}

.ashby-job-posting-right-pane div {
  background: transparent !important;
}

/* Tabs (base style) */
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  padding: 0 40px 16px 0 !important;
  text-decoration: none !important;
  color: #1B1B2E !important;
  font-size: 17px !important;
  line-height: 26px !important;
}

/* Description body */
.ashby-job-posting-right-pane p {
  margin: 0 !important;
  color: #1B1B2E !important;
  font-size: 17px !important;
  line-height: 26px !important;
}

.ashby-job-posting-right-pane strong {
  font-weight: 500 !important;
}

.ashby-job-posting-right-pane ul {
  margin: 0 !important;
  padding-left: 22px !important;
}

.ashby-job-posting-right-pane li p {
  margin: 0 !important;
}

.ashby-job-posting-right-pane a {
  color: #F7866D !important;
}

/* Apply / submit button */
.ashby-application-form-submit-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  padding: 10px 20px !important;
  background: #F7866D !important;
  border: none !important;
  border-radius: 24px !important;
  cursor: pointer !important;
  color: #1B1B2E !important;
  font-family: "GT Pressura Mono", monospace !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 24px !important;
}

/* Hide "Powered by Ashby" footer */
footer {
  display: none !important;
}

@media (max-width: 768px) {
  div:has(> .ashby-job-posting-left-pane) {
    flex-direction: column !important;
    gap: 32px !important;
  }

  .ashby-department-heading-level,
  .ashby-job-posting-brief-department-heading-level {
    font-size: 20px !important;
  }

  .ashby-job-posting-brief-title {
    font-size: 17px !important;
    line-height: 26px !important;
  }

  .ashby-job-posting-brief-details p {
    font-size: 11px !important;
    line-height: 18px !important;
  }

  .ashby-job-posting-brief {
    padding: 18px !important;
  }

  .ashby-job-posting-brief::after {
    display: none !important;
  }

  .ashby-job-posting-left-pane {
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  .ashby-job-posting-heading {
    font-size: 21px !important;
  }

  .ashby-job-posting-right-pane-overview-tab,
  .ashby-job-posting-right-pane-application-tab {
    padding: 0 24px 16px 0 !important;
    font-size: 15px !important;
  }

  .ashby-job-posting-right-pane p,
  .ashby-job-posting-left-pane p {
    font-size: 15px !important;
    line-height: 24px !important;
  }
}
