/*
 * Cambridge Aerospace / Ashby application theme
 * Version 1.2 | 31 October 2026
 * Tab alignment: centre both tab labels with flexbox and equal vertical padding.
 * Compatibility fix: every font-size uses a literal px value. Responsive
 * heading sizes use media queries instead of a CSS math function, following
 * the reported Ashby upload error: Invalid value for CSS property.
 *
 * INSTALL
 * Ashby > Admin > Job Boards > Theme (Job Board) > Job Board Options
 * > Custom CSS: upload this file. Organization Admin access is required.
 * Upload the light Cambridge Aerospace wordmark and square logo separately
 * in Ashby's logo settings. Preview an overview and application on mobile.
 *
 * DESIGN
 * Matches the dark Cambridge Aerospace role pages: charcoal, pale grey,
 * fine dividers, square controls and restrained typography. Control borders
 * are deliberately brighter than decorative dividers for readability.
 *
 * Fonts use locally installed Aptos with system fallbacks. There are no
 * network requests by default. Optional webfont and cloud-header examples
 * are commented out at the end. Website font responses were checked and
 * did not include the cross-origin header required for use from Ashby.
 *
 * IMPLEMENTATION
 * Uses Ashby's published .ashby-* hooks, semantic HTML and CSS variables.
 * The extra neutral/status tokens were observed in Ashby's current bundle;
 * these are less stable than the officially documented customization hooks.
 * No hashed classes, hidden fields, replacement labels or layout reordering.
 * Native validation, uploads, loading states and captcha visibility remain
 * under Ashby's control. This is CSS only, not a change to application logic.
 *
 * References:
 * https://www.cambridgeaerospace.com/careers
 * https://docs.ashbyhq.com/job-board-configuring-your-setup
 * https://www.ashbyhq.com/job_board_example_css/full-job-board.css
 */

/* 01. Brand palette and Ashby theme variables ------------------------------- */

:root {
  --ca-background: #141519;
  --ca-surface: #1b1e22;
  --ca-surface-hover: #252a30;
  --ca-text: #e1e4e7;
  --ca-text-muted: #aeb5bf;
  --ca-divider: #2a2d31;
  --ca-control-border: #747c86;
  --ca-focus: #e1e4e7;
  --ca-error: #ffb4af;
  --ca-error-surface: #351d20;
  --ca-success: #acddb9;
  --ca-success-surface: #192e23;
  --ca-font: "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;

  /* Public Ashby customization variables. !important wins over the inline
     brand colours Ashby places on <html>. Keep the values consistent here. */
  --colorAppBackground: var(--ca-background) !important;
  --colorPrimary900: var(--ca-text) !important;
  --colorPrimary600: var(--ca-text) !important;
  --widthMaxContent: 1120px;
  --widthMaxJobBoard: 800px;
  --widthMaxSubscriptionPreferences: 640px;
  --borderRadiusContainer: 0px !important;
  --borderRadiusControl: 0px !important;
  --borderRadiusButton: 0px !important;
  --fontFamily: var(--ca-font) !important;

  /* Current Ashby neutral tokens also colour the surrounding shell, menus,
     footer and ancillary controls that have no public .ashby-* hook. */
  --colorNeutral000: var(--ca-background) !important;
  --colorNeutral100: var(--ca-surface) !important;
  --colorNeutral200: var(--ca-divider) !important;
  --colorNeutral300: #434b55 !important;
  --colorNeutral400: var(--ca-control-border) !important;
  --colorNeutral500: var(--ca-text-muted) !important;
  --colorNeutral600: #c2c8d0 !important;
  --colorNeutral700: #d2d8df !important;
  --colorNeutral800: var(--ca-text) !important;
  --colorNeutral900: var(--ca-text) !important;
  --colorNeutral000A: rgba(20, 21, 25, 0) !important;
  --colorNeutral100A: rgba(225, 228, 231, 0.04) !important;
  --colorNeutral200A: rgba(225, 228, 231, 0.1) !important;
  --colorNeutral300A: rgba(225, 228, 231, 0.16) !important;
  --colorNeutral400A: rgba(225, 228, 231, 0.24) !important;
  --colorNeutral500A: rgba(225, 228, 231, 0.42) !important;
  --colorNeutral600A: rgba(225, 228, 231, 0.65) !important;
  --colorNeutral700A: rgba(225, 228, 231, 0.8) !important;
  --colorNeutral800A: rgba(225, 228, 231, 0.95) !important;
  --colorNeutral100Transparent: rgba(27, 30, 34, 0) !important;
  --colorNeutral600Transparent: rgba(194, 200, 208, 0.25) !important;
  --colorNeutralShadow: rgba(0, 0, 0, 0.3) !important;
  --colorPrimaryShadow: rgba(0, 0, 0, 0.3) !important;
  --colorShadowPrimaryXLight: rgba(225, 228, 231, 0.1) !important;
  --colorShadowPrimaryLight: rgba(225, 228, 231, 0.2) !important;
  --colorPrimary500A: rgba(225, 228, 231, 0.12) !important;
  --colorSecondary900: var(--ca-text) !important;

  /* Keep feedback distinguishable within a dark interface. */
  --colorNegative900: var(--ca-error) !important;
  --colorNegative800: var(--ca-error) !important;
  --colorNegative600: #ff918c !important;
  --colorNegative200: var(--ca-error-surface) !important;
  --colorPositive800: var(--ca-success) !important;
  --colorPositive600: #90cfa2 !important;
  --colorPositive200: var(--ca-success-surface) !important;
  --colorWarning900: #ead2a6 !important;
  --colorWarning800: #ead2a6 !important;
  --colorWarning600: #d7b989 !important;

  color-scheme: dark;
}

/* 02. Page, typography and links ------------------------------------------- */

html {
  background-color: var(--ca-background) !important;
}

body {
  margin: 0;
  background-color: var(--ca-background) !important;
  color: var(--ca-text) !important;
  font-family: var(--ca-font) !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--ca-text);
  color: var(--ca-background);
}

button,
input,
select,
textarea {
  font-family: var(--ca-font) !important;
}

a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.ashby-job-posting-description a,
.ashby-application-form-question-description a,
.ashby-application-form-section-header-description a,
.ashby-application-form-texting-consent-description a {
  color: var(--ca-text) !important;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* 03. Job header, panes and overview --------------------------------------- */

.ashby-job-posting-header {
  background-color: var(--ca-background) !important;
  color: var(--ca-text) !important;
  border-bottom: 1px solid var(--ca-divider);
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-block: 32px;
}

.ashby-job-posting-heading,
.ashby-job-board-heading {
  color: var(--ca-text) !important;
  font-family: var(--ca-font) !important;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane,
.ashby-job-posting-description-container,
.ashby-application-form-container,
.ashby-survey-form-container {
  min-width: 0;
  background-color: var(--ca-background) !important;
  color: var(--ca-text) !important;
  border-color: var(--ca-divider) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.65;
}

.ashby-job-posting-left-pane {
  border-right-color: var(--ca-divider) !important;
}

.ashby-job-posting-brief-title,
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level,
.ashby-department-heading,
.ashby-department-heading-level {
  color: var(--ca-text) !important;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

.ashby-job-posting-brief-details,
.ashby-job-board-heading-count,
.ashby-job-board-filters-label {
  color: var(--ca-text-muted) !important;
  line-height: 1.6;
}

.ashby-job-posting-description {
  color: var(--ca-text) !important;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* Rich-text editors can save inline colours; normalize prose without
   changing links, inline images, list semantics or application content. */
.ashby-job-posting-description :is(p, li, span, strong, em, h1, h2, h3, h4) {
  color: inherit !important;
}

.ashby-job-posting-description :is(h2, h3, h4) {
  margin-top: 1.75em;
  margin-bottom: 0.7em;
  font-weight: 600;
  line-height: 1.4;
}

.ashby-job-posting-description :is(ul, ol) {
  padding-inline-start: 1.5em;
}

.ashby-job-posting-description li + li {
  margin-top: 0.45em;
}

.ashby-job-posting-description :is(img, video) {
  max-width: 100%;
  height: auto;
}

.ashby-job-board-back-to-all-jobs-button {
  color: var(--ca-text-muted) !important;
  background-color: transparent !important;
  border-color: transparent !important;
  border-radius: 0 !important;
}

/* 04. Overview / application tabs ----------------------------------------- */

/* Ashby puts its public tab hook on a child span. Selection belongs to
   the containing [role="tab"], not to that span. */
.ashby-job-posting-right-pane [role="tab"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 0 !important;
  text-align: center !important;
  line-height: 1.4 !important;
  color: var(--ca-text-muted) !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  text-decoration: none;
}

.ashby-job-posting-right-pane-application-tab,
.ashby-job-posting-right-pane-overview-tab {
  display: block;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-align: center;
  color: inherit !important;
  font-family: var(--ca-font) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ashby-job-posting-right-pane [role="tab"][aria-selected="true"] {
  color: var(--ca-text) !important;
  background-color: var(--ca-surface) !important;
}

.ashby-job-posting-right-pane-tab-slider {
  background-color: var(--ca-text) !important;
  border-radius: 0 !important;
}

/* 05. Form sections and labels -------------------------------------------- */

.ashby-application-form-section-container {
  border-color: var(--ca-divider) !important;
  border-radius: 0 !important;
}

.ashby-application-form-section-header {
  border-bottom: 1px solid var(--ca-divider);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.ashby-application-form-section-header-title {
  color: var(--ca-text) !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

.ashby-application-form-field-entry {
  min-width: 0;
  margin-bottom: 24px;
}

.ashby-application-form-question-title {
  color: var(--ca-text) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.ashby-application-form-question-description,
.ashby-application-form-section-header-description,
.ashby-application-form-texting-consent-description {
  color: var(--ca-text-muted) !important;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* 06. Text, number, date, autocomplete and select controls ------------------ */

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-date,
.ashby-application-form-input-autocomplete,
.ashby-application-form-input-dropdown-select,
.ashby-job-board-filter {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  border: 1px solid var(--ca-control-border) !important;
  border-radius: 0 !important;
  box-shadow: none;
  font-family: var(--ca-font) !important;
  font-size: 16px !important;
  line-height: 1.5;
  caret-color: var(--ca-text);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-date,
.ashby-application-form-input-autocomplete {
  width: 100%;
  padding: 12px 14px;
}

/* Keep the dropdown's native/standard icon space and open/close behaviour. */
.ashby-application-form-input-dropdown-select {
  width: 100%;
  padding-block: 12px;
  padding-inline-start: 14px;
  padding-inline-end: 40px;
}

.ashby-application-form-input-dropdown-icon {
  color: var(--ca-text-muted) !important;
  pointer-events: none;
}

.ashby-application-form-input-textarea {
  min-height: 144px;
  resize: vertical;
}

.ashby-application-form-container ::placeholder,
.ashby-survey-form-container ::placeholder {
  color: var(--ca-text-muted) !important;
  opacity: 1;
}

.ashby-application-form-input-dropdown-select option {
  color: var(--ca-text);
  background-color: var(--ca-surface);
}

/* 07. Focus, disabled and validation states -------------------------------- */

/* Do not remove outlines from any controls. This also covers links and
   the submit button, which is outside the application form container. */
:is(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ca-focus) !important;
  outline-offset: 3px !important;
}

.ashby-application-form-container :is(input, textarea, select):focus,
.ashby-survey-form-container :is(input, textarea, select):focus {
  border-color: var(--ca-focus) !important;
}

.ashby-application-form-container :is(input, textarea, select):disabled,
.ashby-survey-form-container :is(input, textarea, select):disabled {
  color: var(--ca-text-muted) !important;
  background-color: var(--ca-background) !important;
  cursor: not-allowed;
  opacity: 0.65;
}

/* Use Ashby's reported validation state, rather than marking all empty
   required fields invalid before the applicant has interacted. */
.ashby-application-form-container [aria-invalid="true"],
.ashby-survey-form-container [aria-invalid="true"] {
  border-color: var(--ca-error) !important;
}

.ashby-application-form-field-entry [role="alert"],
.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
  color: var(--ca-error) !important;
}

.ashby-application-form-autofill-input-form-alert[data-highlight="positive"] {
  color: var(--ca-success) !important;
}

.ashby-application-form-autofill-input-form-alert {
  line-height: 1.6;
}

/* Browser-saved values should remain legible against the dark controls. */
.ashby-application-form-container input:autofill {
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
}

.ashby-application-form-container input:-webkit-autofill {
  -webkit-text-fill-color: var(--ca-text);
  -webkit-box-shadow: 0 0 0 1000px var(--ca-surface) inset;
  caret-color: var(--ca-text);
}

/* 08. Resume uploads, autofill and education entries ------------------------ */

.ashby-application-form-autofill-pane,
.ashby-application-form-autofill-uploader,
.ashby-application-form-autofill-input-root,
.ashby-application-form-input-file-dropzone {
  color: var(--ca-text) !important;
  background-color: var(--ca-surface) !important;
  border-color: var(--ca-control-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ashby-application-form-input-file-dropzone {
  border: 1px dashed var(--ca-control-border) !important;
  padding: 24px 20px;
}

.ashby-application-form-autofill-input-base-layer {
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  border-radius: 0 !important;
  line-height: 1.6;
}

.ashby-application-form-autofill-input-title,
.ashby-application-form-autofill-input-icon,
.ashby-application-form-input-file-item-name {
  color: var(--ca-text) !important;
  line-height: 1.5;
}

.ashby-application-form-autofill-input-description,
.ashby-application-form-input-file-dropzone-instructions {
  color: var(--ca-text-muted) !important;
  line-height: 1.6;
}

/* Never override display, opacity or pointer-events on Ashby's state
   overlays: data-state determines when each layer is active. */
.ashby-application-form-autofill-input-drag-layer,
.ashby-application-form-autofill-input-pending-layer {
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  border-color: var(--ca-focus) !important;
  border-radius: 0 !important;
  line-height: 1.6;
}

.ashby-application-form-input-file-item,
.ashby-application-form-input-education-entry {
  min-width: 0;
  color: var(--ca-text) !important;
  background-color: var(--ca-surface) !important;
  border-color: var(--ca-divider) !important;
  border-radius: 0 !important;
}

.ashby-application-form-input-file-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ashby-application-form-input-education-entry-header {
  color: var(--ca-text) !important;
  border-color: var(--ca-divider) !important;
}

/* 09. Buttons ------------------------------------------------------------- */

.ashby-application-form-input-file-dropzone-upload,
.ashby-application-form-input-education-add,
.ashby-application-form-input-yesno-option,
.ashby-application-form-autofill-input-base-layer button,
.ashby-application-form-autofill-uploader button {
  min-height: 44px;
  padding: 10px 18px;
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  border: 1px solid var(--ca-control-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--ca-font) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* The submit button is a sibling of .ashby-application-form-container. */
.ashby-application-form-submit-button,
.ashby-job-posting-description-container button {
  min-height: 48px;
  padding: 14px 24px;
  color: var(--ca-background) !important;
  background-color: var(--ca-text) !important;
  border: 1px solid var(--ca-text) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--ca-font) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.015em;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.ashby-application-form-input-file-item-delete,
.ashby-application-form-input-education-entry-delete,
.ashby-application-form-input-date-popup-header-button {
  color: var(--ca-text-muted) !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}

.ashby-application-form-submit-button:disabled,
.ashby-application-form-submit-button[aria-disabled="true"],
.ashby-application-form-submit-button[aria-busy="true"],
.ashby-job-posting-description-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 10. Choices, autocomplete results and date popups ------------------------ */

.ashby-application-form-container :is(input[type="checkbox"], input[type="radio"]),
.ashby-survey-form-container :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--ca-text);
}

.ashby-application-form-input-checkbox-group-option,
.ashby-application-form-input-radio-group-option {
  color: var(--ca-text) !important;
  border-color: var(--ca-control-border) !important;
  border-radius: 0 !important;
}

.ashby-application-form-input-checkbox-group-option-label,
.ashby-application-form-input-radio-group-option-label {
  color: var(--ca-text) !important;
  line-height: 1.6;
}

.ashby-application-form-input-checkbox-group-option-checkbox {
  border-radius: 0 !important;
}

.ashby-application-form-input-radio-group-option-radio {
  border-radius: 50% !important;
}

.ashby-application-form-input-yesno-option[aria-pressed="true"] {
  color: var(--ca-background) !important;
  background-color: var(--ca-text) !important;
  border-color: var(--ca-text) !important;
}

.ashby-application-form-input-checkbox-group-option[data-disabled]:not([data-disabled="false"]),
.ashby-application-form-input-radio-group-option[data-disabled]:not([data-disabled="false"]),
.ashby-application-form-input-yesno[data-disabled]:not([data-disabled="false"]) {
  opacity: 0.6;
  cursor: not-allowed;
}

.ashby-application-form-input-autocomplete-popup,
.ashby-application-form-input-date-popup {
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  border: 1px solid var(--ca-control-border) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.ashby-application-form-input-autocomplete-popup-result {
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  line-height: 1.6;
}

.ashby-application-form-input-autocomplete-popup-result[aria-selected="true"] {
  background-color: var(--ca-surface-hover) !important;
  outline: 1px solid var(--ca-control-border);
  outline-offset: -1px;
}

.ashby-application-form-input-autocomplete-popup-empty,
.ashby-application-form-input-autocomplete-popup-loading {
  color: var(--ca-text-muted) !important;
  line-height: 1.6;
}

.ashby-application-form-input-date-popup-header,
.ashby-application-form-input-date-popup-title {
  color: var(--ca-text) !important;
  border-color: var(--ca-divider) !important;
}

/* 11. Messages, job list, hover and small screens --------------------------- */

.ashby-application-form-success-container {
  background-color: var(--ca-success-surface) !important;
  color: var(--ca-success) !important;
  border: 1px solid var(--ca-success);
  border-radius: 0 !important;
  padding: 24px;
  line-height: 1.65;
}

.ashby-application-form-failure-container,
.ashby-application-form-blocked-application-container {
  background-color: var(--ca-error-surface) !important;
  color: var(--ca-error) !important;
  border: 1px solid var(--ca-error);
  border-radius: 0 !important;
  padding: 24px;
  line-height: 1.65;
}

.ashby-application-blocking-disclosure {
  background-color: var(--ca-surface) !important;
  color: var(--ca-text) !important;
  border: 1px solid var(--ca-control-border);
  border-radius: 0 !important;
  line-height: 1.65;
}

.ashby-job-posting-brief {
  background-color: transparent !important;
  color: var(--ca-text) !important;
  border-color: var(--ca-divider) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ashby-job-board-reset-filters-label {
  color: var(--ca-text) !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (hover: hover) {
  .ashby-job-posting-brief:hover,
  .ashby-job-posting-right-pane [role="tab"]:hover,
  .ashby-application-form-input-autocomplete-popup-result:hover,
  .ashby-application-form-input-file-dropzone-upload:not(:disabled):hover,
  .ashby-application-form-input-education-add:not(:disabled):hover,
  .ashby-application-form-input-yesno-option:not(:disabled):not([aria-pressed="true"]):hover {
    background-color: var(--ca-surface-hover) !important;
    color: var(--ca-text) !important;
  }

  .ashby-application-form-submit-button:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover,
  .ashby-job-posting-description-container button:not(:disabled):hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--ca-background) !important;
  }

  .ashby-job-board-back-to-all-jobs-button:hover {
    color: var(--ca-text) !important;
    text-decoration: underline;
  }

  .ashby-application-form-input-file-item-delete:hover,
  .ashby-application-form-input-education-entry-delete:hover {
    color: var(--ca-error) !important;
  }
}

@media (max-width: 700px) {
  .ashby-job-posting-header {
    padding-block: 24px;
  }

  .ashby-job-posting-heading,
  .ashby-job-board-heading {
    font-size: 26px;
  }

  .ashby-application-form-field-entry {
    margin-bottom: 20px;
  }

  .ashby-application-form-submit-button,
  .ashby-job-posting-description-container button {
    box-sizing: border-box;
    width: 100%;
  }

  .ashby-application-form-input-file-dropzone {
    padding: 20px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ashby-application-form-input-text,
  .ashby-application-form-input-textarea,
  .ashby-application-form-input-date,
  .ashby-application-form-input-autocomplete,
  .ashby-application-form-input-dropdown-select,
  .ashby-application-form-submit-button,
  .ashby-job-posting-description-container button {
    transition: none !important;
  }
}

/* Allow the browser/OS high-contrast palette to replace the theme. */
@media (forced-colors: active) {
  :root {
    --ca-background: Canvas;
    --ca-surface: Canvas;
    --ca-surface-hover: Canvas;
    --ca-text: CanvasText;
    --ca-text-muted: CanvasText;
    --ca-divider: CanvasText;
    --ca-control-border: ButtonText;
    --ca-focus: Highlight;
    --ca-error: CanvasText;
    --ca-error-surface: Canvas;
    --ca-success: CanvasText;
    --ca-success-surface: Canvas;
  }

  .ashby-application-form-submit-button,
  .ashby-application-form-submit-button:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover,
  .ashby-application-form-input-yesno-option[aria-pressed="true"] {
    background-color: Highlight !important;
    border-color: Highlight !important;
    color: HighlightText !important;
  }
}

/* 12. Optional brand assets (disabled by default) --------------------------- */

/*
 * OPTIONAL: exact webfont
 * Enable only after your font host permits cross-origin font requests from
 * https://jobs.ashbyhq.com (and any other actual Ashby document origin in use).
 * The website currently serves Aptos.ttf without that header. Alternatively,
 * replace the URL with an approved, CORS-enabled location for the same font.
 * Ashby's content-security policy must also permit that font source.
 * To enable: remove just the opening/closing comment markers around the
 * following CSS example. Leave this explanation commented out.
 */
/*
@font-face {
  font-family: "CA Aptos";
  src: url("https://www.cambridgeaerospace.com/fonts/Aptos.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ca-font: "CA Aptos", "Aptos", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
 */

/*
 * OPTIONAL: homepage cloud imagery in the job header.
 * Uncomment the CSS example below to enable it. The dark overlay protects text
 * contrast. This adds an image request to Cambridge Aerospace's website.
 * The main form remains on the solid dark background used by role pages.
 * Some embedded layouts omit this header hook; the solid theme still applies.
 */
/*
.ashby-job-posting-header {
  background-image:
    linear-gradient(90deg, rgba(20,21,25,.92), rgba(20,21,25,.78)),
    url("https://www.cambridgeaerospace.com/backgrounds/test_background.jpg");
  background-size: cover;
  background-position: center 42%;
}
 */
