@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500&family=Inter:wght@300;400;500;600;700&display=swap");

/* =========================================================
   Worksome — Ashby job board theme
   Archivo Medium headlines · Inter body · one radius (10px)
   ========================================================= */

/* stylelint-disable */

:root {
  /* --- Worksome brand tokens --- */
  --wsPurple: #6a54f4;        /* Indigo — signature */
  --wsPurpleDark: #5a45e0;    /* derived hover/press shade, not in the token file */
  --wsLavender: #c6b9ff;      /* Indigo 200 */
  --wsLavenderPale: #e8e2ff;  /* Indigo 100 — tinted panels */
  --wsInk: #0e0d12;           /* headings, dark surfaces */
  --wsBody: #2a2832;          /* body text */
  --wsMuted: #595959;         /* captions, meta */
  --wsDivider: #efefef;
  --wsYellow: #ffc800;        /* accent only */
  --wsCoral: #f15c30;         /* accent only */

  --colorAppBackground: #ffffff;
  --colorPrimary900: var(--wsPurpleDark);
  --colorPrimary600: var(--wsPurple);

  --widthMaxContent: 880px;
  --widthMaxJobBoard: 880px;
  --widthMaxSubscriptionPreferences: 600px;

  /* Brand has exactly one radius: 10px. Pills are 999px. */
  --borderRadiusContainer: 10px;
  --borderRadiusControl: 10px;
  --borderRadiusButton: 10px;

  --fontFamily: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --fontFamilyDisplay: "Archivo", Arial, sans-serif;
}

body {
  color: var(--wsBody);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Headlines: Archivo Medium only. Never bold. ---------- */
.ashby-job-board-heading,
.ashby-job-posting-heading,
.ashby-job-posting-brief-title,
.ashby-department-heading,
.ashby-application-form-section-header-title {
  font-family: var(--fontFamilyDisplay);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--wsInk);
}

.ashby-job-board-heading {
  font-size: 48px;
  line-height: 1.02;
  margin-bottom: 8px;
}

.ashby-job-board-heading-count {
  font-family: var(--fontFamily);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;          /* eyebrow — never stretched */
  color: var(--wsPurple);
}

.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 12px;
}

.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  font-family: var(--fontFamily);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--wsPurple);
}

/* ---------- Job cards ---------- */
.ashby-job-posting-brief {
  margin-bottom: 12px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--wsDivider);
  border-radius: var(--borderRadiusContainer);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ashby-job-posting-brief:hover {
  border-color: var(--wsPurple);
  background: var(--wsLavenderPale);
}

/* keep card text readable on the tinted hover background */
.ashby-job-posting-brief:hover .ashby-job-posting-brief-title { color: var(--wsInk); }
.ashby-job-posting-brief:hover .ashby-job-posting-brief-details { color: var(--wsBody); }

.ashby-job-posting-brief-title {
  font-size: 20px;
  line-height: 1.2;
}

.ashby-job-posting-brief-details {
  font-size: 15px;
  color: var(--wsMuted);
  margin-top: 4px;
}

/* ---------- Filters ---------- */
.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--wsMuted);
}

.ashby-job-board-reset-filters-label:hover { color: var(--wsPurple); }

.ashby-job-board-filter {
  border: 1px solid var(--wsDivider);
  border-radius: var(--borderRadiusControl);
  font-family: var(--fontFamily);
  font-size: 15px;
  color: var(--wsInk);
}

.ashby-job-board-filter:focus {
  border-color: var(--wsPurple);
  outline: 2px solid var(--wsLavender);
  outline-offset: 1px;
}

/* ---------- Posting page ---------- */
.ashby-job-posting-heading { font-size: 40px; line-height: 1.02; }

.ashby-job-posting-header { border-bottom: 1px solid var(--wsDivider); padding-bottom: 24px; }

.ashby-job-posting-description { font-size: 16px; line-height: 1.6; color: var(--wsBody); }
.ashby-job-posting-description h2,
.ashby-job-posting-description h3 {
  font-family: var(--fontFamilyDisplay);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--wsInk);
}
.ashby-job-posting-description a { color: var(--wsPurple); text-underline-offset: 3px; }

/* ---------- Back to all jobs (pill) ----------
   Ashby's default hover flips the label and arrow to white.
   All states are pinned to ink so the pill never goes unreadable. */
.ashby-job-board-back-to-all-jobs-button {
  font-family: var(--fontFamily);
  font-weight: 600;
  font-size: 14px;
  color: var(--wsInk);
  background: transparent;
  border: 1px solid var(--wsInk);
  border-radius: 999px;
  padding: 10px 20px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ashby-job-board-back-to-all-jobs-button:hover,
.ashby-job-board-back-to-all-jobs-button:focus-visible,
.ashby-job-board-back-to-all-jobs-button:active {
  background: var(--wsLavenderPale);
  color: var(--wsInk);
}

/* icon + any inner span must follow the text colour, not stay white */
.ashby-job-board-back-to-all-jobs-button *,
.ashby-job-board-back-to-all-jobs-button:hover *,
.ashby-job-board-back-to-all-jobs-button:focus-visible *,
.ashby-job-board-back-to-all-jobs-button:active * {
  color: var(--wsInk);
  fill: currentColor;
  stroke: currentColor;
}

.ashby-job-board-back-to-all-jobs-button:focus-visible {
  outline: 2px solid var(--wsLavender);
  outline-offset: 2px;
}

.ashby-job-posting-right-pane-tab-slider { background: var(--wsPurple); }

/* ---------- Form ---------- */
.ashby-application-form-section-header-title { font-size: 24px; }
.ashby-application-form-section-header-description,
.ashby-application-form-question-description {
  font-size: 14px;
  color: var(--wsMuted);
}
.ashby-application-form-question-title { font-weight: 600; font-size: 15px; color: var(--wsInk); }

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-dropdown,
.ashby-application-form-input-autocomplete,
.ashby-application-form-input-date {
  font-family: var(--fontFamily);
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: var(--borderRadiusControl);
  background: #ffffff;
  color: var(--wsInk);
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus,
.ashby-application-form-input-dropdown:focus-within,
.ashby-application-form-input-autocomplete:focus-within,
.ashby-application-form-input-date:focus {
  border-color: var(--wsPurple);
  outline: 2px solid var(--wsLavender);
  outline-offset: 1px;
}

/* Selected states — purple, never blue */
.ashby-application-form-input-radio-group-option[data-checked],
.ashby-application-form-input-checkbox-group-option[data-checked] { color: var(--wsInk); }
.ashby-application-form-input-radio-group-option-radio[data-checked],
.ashby-application-form-input-checkbox-group-option-checkbox[data-checked] {
  background: var(--wsPurple);
  border-color: var(--wsPurple);
}
.ashby-application-form-input-yesno-option[aria-pressed="true"] {
  background: var(--wsPurple);
  border-color: var(--wsPurple);
  color: #ffffff;
}
.ashby-application-form-input-autocomplete-popup-result[aria-selected="true"] {
  background: var(--wsLavenderPale);
  color: var(--wsInk);
}

/* Resume dropzone + AI autofill */
.ashby-application-form-input-file-dropzone {
  border: 1.5px dashed var(--wsLavender);
  border-radius: var(--borderRadiusContainer);
  background: var(--wsLavenderPale);
}
.ashby-application-form-input-file-dropzone:hover { border-color: var(--wsPurple); }
.ashby-application-form-input-file-dropzone-upload { color: var(--wsPurple); font-weight: 600; }
.ashby-application-form-input-file-item {
  border: 1px solid var(--wsDivider);
  border-radius: var(--borderRadiusControl);
}

.ashby-application-form-autofill-input-root { border-radius: var(--borderRadiusContainer); }
.ashby-application-form-autofill-input-icon { color: var(--wsPurple); }
.ashby-application-form-autofill-input-form-alert[data-highlight="positive"] { color: var(--wsPurple); }
.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] { color: var(--wsCoral); }

/* ---------- Submit ---------- */
.ashby-application-form-submit-button {
  background: var(--wsPurple);
  color: #ffffff;
  font-family: var(--fontFamily);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--borderRadiusButton);
  padding: 14px 32px;
  transition: background-color 0.15s ease;
}
.ashby-application-form-submit-button:hover { background: var(--wsPurpleDark); color: #ffffff; }
.ashby-application-form-submit-button:focus-visible {
  outline: 2px solid var(--wsLavender);
  outline-offset: 2px;
}

.ashby-application-form-success-container {
  background: var(--wsLavenderPale);
  border: 1px solid var(--wsLavender);
  border-radius: var(--borderRadiusContainer);
}
.ashby-application-form-failure-container {
  background: #fdf0eb;
  border: 1px solid var(--wsCoral);
  border-radius: var(--borderRadiusContainer);
}
.ashby-application-blocking-disclosure,
.ashby-application-form-texting-consent-description {
  font-size: 13px;
  color: #7f7f7f;
}
