:root {
  --ashbyBrown: rgba(46, 22, 22, 1);
  --ashbyButtonBg: rgba(237, 231, 222, 1);
  --ashbyPink: rgba(255, 175, 244, 1);
  --ashbyTextOnBrown: #fffcf8;
  --ashbyTextOnBrownMuted: rgba(255, 252, 248, 0.6);
  --ashbyDivider: rgba(255, 252, 248, 0.12);
  --ashbyRadiusCard: 18px;
  --ashbyRadiusControl: 12px;
  --ashbyRadiusButton: 12px;

  --colorPrimary900: rgba(46, 22, 22, 1);
  --colorPrimary600: rgba(46, 22, 22, 1);
  --widthMaxJobBoard: none;
  --borderRadiusContainer: 18px;
  --borderRadiusControl: 12px;
  --borderRadiusButton: 12px;
  --fontFamily: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --colorAppBackground: transparent;
  --widthMaxJobBoard: 100%;
}

/* Global */
html,
body {
  background: transparent !important;
  font-family: var(--fontFamily) !important;
  font-size: 16px !important;
  color: var(--ashbyBrown) !important;
}

/* Remove forced Ashby backgrounds where possible */
.ashby-application-form-container,
.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane,
.ashby-job-posting-header,
.ashby-survey-form-container {
  background: transparent !important;
  box-shadow: none !important;
}

/* Heading */
.ashby-job-board-heading {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 0 2rem 0 !important;
  text-align: center !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
  padding-bottom: 1rem !important;
}

.ashby-job-board-heading::before {
  content: "Our open positions";
  display: block !important;
  width: 100% !important;
  color: var(--ashbyBrown) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 2.75rem !important;
  line-height: 1.05 !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
}

.ashby-job-board-heading-count,
.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
  display: none !important;
}

.ashby-job-board-filter {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem !important;
  border: 1px solid var(--ashbyBrown) !important;
  border-radius: var(--ashbyRadiusControl) !important;
  background-color: transparent !important;
  color: var(--ashbyBrown) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 14px 9px !important;
}

.ashby-job-board-filter:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--ashbyBrown) !important;
}

.ashby-job-board-filter option {
  background: #fffcf8 !important;
  color: var(--ashbyBrown) !important;
  font-size: 1rem !important;
}

/* Back button + submit button */
.ashby-job-board-back-to-all-jobs-button,
.ashby-application-form-submit-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  padding: 0.75rem 1rem !important;
  border: 0 !important;
  border-radius: var(--ashbyRadiusButton) !important;
  background: var(--ashbyButtonBg) !important;
  color: var(--ashbyBrown) !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease !important;
}

.ashby-job-board-back-to-all-jobs-button:hover,
.ashby-job-board-back-to-all-jobs-button:focus-visible,
.ashby-application-form-submit-button:hover,
.ashby-application-form-submit-button:focus-visible {
  background: var(--ashbyPink) !important;
  color: var(--ashbyBrown) !important;
  transform: translateY(-1px);
}

/* Department card */
.ashby-job-posting-brief {
  display: block !important;
  margin-bottom: 12px !important;
  padding: 1.75rem 2rem !important;
  border: 0 !important;
  border-radius: var(--ashbyRadiusCard) !important;
  background: var(--ashbyBrown) !important;
  box-shadow: none !important;
  color: var(--ashbyTextOnBrown) !important;
}

/* Department name */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level {
  margin: 0.5rem 0 0.5rem 0 !important;
  color: var(--ashbyBrown) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.5rem !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}

.ashby-job-posting-brief-details > p + p {
  color: inherit !important;
  font-size: inherit !important;
  margin-top: 0 !important;
}

/* Roles list */
.ashby-job-posting-brief-list {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Each role row */
.ashby-job-posting-brief-details {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  column-gap: 1rem !important;
  row-gap: 0.5rem !important;
  padding: 1rem 0 !important;
  border-top: 1px dashed var(--ashbyDivider) !important;
  background: transparent !important;
  color: var(--ashbyTextOnBrownMuted) !important;
}

.ashby-job-posting-brief-details:first-child {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.ashby-job-posting-brief-details:last-child {
  padding-bottom: 0 !important;
  color: var(--ashbyTextOnBrownMuted) !important;
}

/* Role name */
.ashby-job-posting-brief-title,
.ashby-job-posting-brief-title a {
  margin: 0 !important;
  color: var(--ashbyTextOnBrownMuted) !important;
  font-size: 1.125rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 180ms ease !important;
}

.ashby-job-posting-brief-title:hover,
.ashby-job-posting-brief-title:hover a,
.ashby-job-posting-brief-title a:hover,
.ashby-job-posting-brief-title a:focus-visible {
  color: var(--ashbyTextOnBrown) !important;
}

/* First metadata item after title */
.ashby-job-posting-brief-title + * {
  color: var(--ashbyTextOnBrownMuted) !important;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
}

/* Hide extra metadata blocks after first meta item */
.ashby-job-posting-brief-title + * ~ *:not(a):not(button):not([role="button"]):not(.ashby-job-posting-brief-title) {
  display: none !important;
}

/* Apply role button */
.ashby-job-posting-brief-details > a:last-child,
.ashby-job-posting-brief-details > div:last-child a,
.ashby-job-posting-brief-details button,
.ashby-job-posting-brief-details [role="button"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1rem !important;
  border: 0 !important;
  border-radius: var(--ashbyRadiusButton) !important;
  background: var(--ashbyButtonBg) !important;
  color: var(--ashbyBrown) !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease !important;
}

.ashby-job-posting-brief-details > a:last-child:hover,
.ashby-job-posting-brief-details > a:last-child:focus-visible,
.ashby-job-posting-brief-details > div:last-child a:hover,
.ashby-job-posting-brief-details > div:last-child a:focus-visible,
.ashby-job-posting-brief-details button:hover,
.ashby-job-posting-brief-details button:focus-visible,
.ashby-job-posting-brief-details [role="button"]:hover,
.ashby-job-posting-brief-details [role="button"]:focus-visible {
  background: var(--ashbyPink) !important;
  color: var(--ashbyBrown) !important;
  transform: translateY(-1px);
}

/* Detail-page heading */
.ashby-job-posting-heading {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.5rem 0 !important;
  padding-bottom: 0.5rem !important;
  text-align: center !important;
  color: var(--ashbyBrown) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 2rem !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}

/* Detail-page layout: remove width constraint */
.ashby-job-posting-header + * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ashby-job-posting-header + * > * {
  max-width: none !important;
}

/* Make job detail content wrappers stop looking boxed in */
.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane {
  max-width: none !important;
  box-shadow: none !important;
}

/* Make overview/application panel transparent */
.ashby-job-posting-right-pane [role="tabpanel"] {
  background: transparent !important;
  box-shadow: none !important;
}

.ashby-job-posting-right-pane [role="tabpanel"] > * {
  background: transparent !important;
}

/* General text defaults */
.ashby-application-form-question-title,
.ashby-application-form-question-description,
.ashby-application-form-section-header-title,
.ashby-application-form-section-header-description,
.ashby-application-form-texting-consent-description,
.ashby-application-form-field-entry,
.ashby-application-form-success-container,
.ashby-application-form-failure-container {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .ashby-job-board-heading {
    margin-bottom: 3rem !important;
  }

  .ashby-job-board-heading::before {
    font-size: 2.25rem !important;
    white-space: normal !important;
  }

  .ashby-job-posting-brief {
    padding: 1.25rem !important;
    border-radius: 16px !important;
  }

  .ashby-department-heading,
  .ashby-job-posting-brief-department-heading,
  .ashby-job-posting-brief-department-heading-level {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .ashby-job-posting-brief-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem !important;
  }

  .ashby-job-posting-brief-details > p:first-child {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    max-width: 100% !important;
  }

  .ashby-job-posting-brief-details > p + p {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    max-width: 100% !important;
  }

  .ashby-job-posting-brief-title,
  .ashby-job-posting-brief-title a {
    font-size: 1.125rem !important;
  }

  .ashby-job-posting-brief-title + * {
    font-size: 0.875rem !important;
  }

  .ashby-job-posting-brief-details > a:last-child,
  .ashby-job-posting-brief-details > div:last-child a,
  .ashby-job-posting-brief-details button,
  .ashby-job-posting-brief-details [role="button"] {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    margin-top: 0.25rem !important;
    padding: 0.7rem 0.95rem !important;
    font-size: 1rem !important;
  }

  .ashby-job-board-filter {
    padding: 0.5rem 2.1rem 0.5rem 0.75rem !important;
    font-size: 1rem !important;
  }
}