: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;
}

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

/* Remove any forced board background 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: hide original text and inject exact casing */
.ashby-job-board-heading {
  position: relative !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;
}

.ashby-job-board-heading::before {
  content: "Our open positions";
  display: inline-block;
  color: var(--ashbyBrown);
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 2.75rem;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}

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

/* Filters */
.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: 0 !important;
  border-radius: var(--ashbyRadiusControl) !important;
  background-color: var(--ashbyBrown) !important;
  color: var(--ashbyTextOnBrown) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23fffcf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !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;
}

.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: grid !important;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) !important;
  gap: 2rem !important;
  align-items: start !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;
}

/* Department name */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  margin: 0 !important;
  color: var(--ashbyTextOnBrown) !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;
}

/* Roles list on the right */
.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;
}

.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;
}

/* 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;
}

/* Country text
   This assumes the first element immediately after the title is the country */
.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 job-meta blocks after the country
   This is brittle. If Ashby's DOM differs, this won't be exact. */
.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 {
  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;
}

/* 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: 1.5rem !important;
  }

  .ashby-job-board-heading::before {
    font-size: 2.25rem;
  }

  .ashby-job-posting-brief {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
    border-radius: 16px !important;
  }

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

  .ashby-job-posting-brief-details {
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 0.75rem !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;
  }
}