/* stylelint-disable */
/*
 * BillGO - Ashby job board custom CSS
 *
 * Styled to match billgo.com/join-us and the BillGO Exchange app:
 * Radio Canada type, Rich Black text, BillGO purples for anything clickable,
 * pill buttons and white cards on an off-white page.
 *
 * ASHBY ADMIN SETTINGS (Job Board Options) - set these too:
 *   Brand Color         #4E4ED0   BillGO Purple Medium (6.3:1 on white)
 *   Brand Color (Dark)  #2B2BA1   BillGO Purple Dark, used on hover (10.7:1 on white)
 * Ashby writes those two values onto the page itself, so they always win over
 * the --colorPrimary fallbacks below. Everything in this file reads them through
 * var(--colorPrimary600) and var(--colorPrimary900).
 */

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

:root {
  /* ---- BillGO tokens ---- */
  --billgo-rich-black: #2D2E37;      /* body text and headings */
  --billgo-gray-text: #616377;       /* secondary text (5.9:1 on white) */
  --billgo-gray-border: #7B93B8;     /* input and control borders (3.1:1, meets UI contrast) */
  --billgo-gray-divider: #E5E5F1;    /* Gray 3: hairlines and card borders */
  --billgo-surface: #FFFFFF;
  --billgo-page: #F7F9FB;            /* billgo.com careers section background */
  --billgo-blue: #1F8BFF;            /* Blue Medium: accents only, never text */
  --billgo-purple: #4E4ED0;          /* Purple Medium */
  --billgo-purple-dark: #2B2BA1;     /* Purple Dark */
  --billgo-purple-tint: #E8E8F9;     /* selected / hover fills (from the Exchange app) */
  --billgo-focus-ring: 0 0 0 3px rgba(78, 78, 208, 0.22);
  --billgo-card-shadow: 0 1px 2px rgba(45, 46, 55, 0.06), 0 9px 28px rgba(0, 0, 0, 0.04);
  --billgo-card-shadow-hover: 0 2px 4px rgba(45, 46, 55, 0.06), 0 14px 32px rgba(43, 43, 161, 0.12);

  /* ---- Ashby variables ---- */
  --colorAppBackground: var(--billgo-page);
  --colorPrimary900: #2B2BA1;        /* fallback only - Ashby admin value wins */
  --colorPrimary600: #4E4ED0;        /* fallback only - Ashby admin value wins */
  --borderRadiusContainer: 8px;
  --borderRadiusControl: 8px;
  --borderRadiusButton: 500px;       /* pill buttons, same as billgo.com */
  --fontFamily: "Radio Canada", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* =========================================================================
 * Page
 * ========================================================================= */

body {
  background-color: var(--colorAppBackground);
  color: var(--billgo-rich-black);
  font-family: var(--fontFamily);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Thin BillGO main gradient across the top of the page. Delete these two lines to remove it. */
  border-top: 4px solid var(--billgo-purple-dark);
  border-image: linear-gradient(90deg, #1F8BFF, #2B2BA1) 1;
}

::selection {
  background-color: var(--billgo-purple-tint);
  color: var(--billgo-rich-black);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--colorPrimary600);
  outline-offset: 2px;
}

/* =========================================================================
 * Job board (list of openings)
 * ========================================================================= */

.ashby-job-board-heading {
  color: var(--billgo-rich-black);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ashby-job-board-heading-count {
  color: var(--billgo-gray-text);
  font-size: inherit;
  font-weight: 500;
}

.ashby-job-board-filters-label {
  color: var(--billgo-gray-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ashby-job-board-filter {
  background-color: var(--billgo-surface);
  border: 1.5px solid var(--billgo-gray-border);
  border-radius: var(--borderRadiusControl);
  color: var(--billgo-rich-black);
  font-family: var(--fontFamily);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ashby-job-board-filter:hover {
  border-color: var(--colorPrimary600);
}

.ashby-job-board-filter:focus,
.ashby-job-board-filter:focus-visible {
  border-color: var(--colorPrimary600);
  box-shadow: var(--billgo-focus-ring);
  outline: none;
}

.ashby-job-board-reset-filters-label {
  background-color: var(--billgo-purple-tint);
  border-radius: var(--borderRadiusButton);
  color: var(--colorPrimary900);
  font-family: var(--fontFamily);
  font-weight: 600;
  transition: background-color 150ms ease;
}

.ashby-job-board-reset-filters-label:hover {
  background-color: #D9D9F4;
}

/* Department and team headings above each group of openings */
.ashby-department-heading {
  color: var(--billgo-rich-black);
  font-size: 18px;
  font-weight: 600;
}

/* Each opening: white card with a blue edge, like the cards on billgo.com/join-us */
.ashby-job-posting-brief {
  background-color: var(--billgo-surface);
  border-left: 3px solid var(--billgo-blue);
  border-radius: var(--borderRadiusContainer);
  box-shadow: var(--billgo-card-shadow);
  padding: 24px 28px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.ashby-job-posting-brief-list a:hover > .ashby-job-posting-brief,
.ashby-job-posting-brief-list a:focus-visible > .ashby-job-posting-brief {
  background-color: var(--billgo-surface);
  border-left-color: var(--colorPrimary600);
  box-shadow: var(--billgo-card-shadow-hover);
  transform: translateY(-1px);
}

.ashby-job-posting-brief-title {
  color: var(--billgo-rich-black);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 150ms ease;
}

.ashby-job-posting-brief-list a:hover > .ashby-job-posting-brief .ashby-job-posting-brief-title,
.ashby-job-posting-brief-list a:focus-visible > .ashby-job-posting-brief .ashby-job-posting-brief-title {
  color: var(--colorPrimary600);
}

.ashby-job-posting-brief-details {
  color: var(--billgo-gray-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================================================
 * Job posting page
 * ========================================================================= */

.ashby-job-board-back-to-all-jobs-button {
  color: var(--colorPrimary600);
  font-weight: 600;
}

.ashby-job-board-back-to-all-jobs-button:hover {
  color: var(--colorPrimary900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ashby-job-posting-header {
  background-color: var(--colorAppBackground);
}

.ashby-job-posting-heading {
  color: var(--billgo-rich-black);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Left pane: location, employment type, compensation */
.ashby-job-posting-left-pane {
  background-color: var(--billgo-surface);
  border-radius: var(--borderRadiusContainer);
  box-shadow: var(--billgo-card-shadow);
}

.ashby-job-posting-brief-department-heading {
  color: var(--billgo-rich-black);
}

/* Overview / Application tabs */
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-weight: 600;
}

.ashby-job-posting-right-pane-tab-slider {
  background-color: var(--colorPrimary600);
  border-radius: 3px;
}

/* Job description (rich text) */
.ashby-job-posting-description {
  color: var(--billgo-rich-black);
  font-size: 16px;
  line-height: 1.65;
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3,
.ashby-job-posting-description h4 {
  color: var(--billgo-rich-black);
  font-weight: 600;
  line-height: 1.3;
}

.ashby-job-posting-description h2 {
  font-size: 20px;
  margin-top: 1.6em;
}

.ashby-job-posting-description h3 {
  font-size: 18px;
  margin-top: 1.4em;
}

.ashby-job-posting-description strong,
.ashby-job-posting-description b {
  font-weight: 600;
}

.ashby-job-posting-description a {
  color: var(--colorPrimary600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ashby-job-posting-description a:hover {
  color: var(--colorPrimary900);
}

.ashby-job-posting-description li::marker {
  color: var(--billgo-blue);
}

/* =========================================================================
 * Application form
 * ========================================================================= */

.ashby-application-form-container {
  background-color: var(--billgo-surface);
}

.ashby-application-form-section-header-title {
  color: var(--billgo-rich-black);
  font-size: 20px;
  font-weight: 600;
}

.ashby-application-form-section-header-description,
.ashby-application-form-question-description,
.ashby-application-form-texting-consent-description {
  color: var(--billgo-gray-text);
}

.ashby-application-form-question-title {
  color: var(--billgo-rich-black);
  font-weight: 600;
}

/* Text, email, phone, URL, number, textarea and autocomplete inputs */
.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-autocomplete {
  background-color: var(--billgo-surface);
  border: 1.5px solid var(--billgo-gray-border);
  border-radius: var(--borderRadiusControl);
  color: var(--billgo-rich-black);
  font-family: var(--fontFamily);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus,
.ashby-application-form-input-autocomplete:focus {
  border-color: var(--colorPrimary600);
  box-shadow: var(--billgo-focus-ring);
  outline: none;
}

.ashby-application-form-input-text::placeholder,
.ashby-application-form-input-textarea::placeholder,
.ashby-application-form-input-autocomplete::placeholder {
  color: var(--billgo-gray-text);
  opacity: 1;
}

.ashby-application-form-input-autocomplete-popup-result[aria-selected="true"] {
  background-color: var(--billgo-purple-tint);
  color: var(--colorPrimary900);
}

/* Dropdowns */
.ashby-application-form-input-dropdown-select {
  border-color: var(--billgo-gray-border);
  border-radius: var(--borderRadiusControl);
  color: var(--billgo-rich-black);
  font-family: var(--fontFamily);
}

/* Checkboxes and radios */
.ashby-application-form-input-checkbox-group-option-checkbox {
  border-color: var(--billgo-gray-border);
  border-radius: 4px;
}

.ashby-application-form-input-checkbox-group-option[data-checked] .ashby-application-form-input-checkbox-group-option-checkbox {
  border-color: var(--colorPrimary600);
}

.ashby-application-form-input-radio-group-option-radio {
  accent-color: var(--colorPrimary600);
}

/* Yes / No buttons */
.ashby-application-form-input-yesno-option {
  border-color: var(--billgo-gray-border);
  color: var(--billgo-gray-text);
  font-family: var(--fontFamily);
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ashby-application-form-input-yesno-option:hover {
  color: var(--colorPrimary900);
}

.ashby-application-form-input-yesno-option[aria-pressed="true"] {
  background-color: var(--billgo-purple-tint);
  border-color: var(--colorPrimary600);
  color: var(--colorPrimary900);
}

/* Resume / file upload */
.ashby-application-form-input-file-dropzone-upload {
  border: 1.5px solid var(--colorPrimary600);
  border-radius: var(--borderRadiusButton);
  color: var(--colorPrimary600);
  font-family: var(--fontFamily);
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.ashby-application-form-input-file-dropzone-upload:hover {
  background-color: var(--billgo-purple-tint);
  color: var(--colorPrimary900);
}

.ashby-application-form-input-file-dropzone-instructions {
  color: var(--billgo-gray-text);
}

/* "Autofill from resume" box at the top of the form */
.ashby-application-form-autofill-input-root {
  background-color: var(--billgo-surface);
  border: 1px solid var(--billgo-gray-divider);
  border-radius: var(--borderRadiusContainer);
}

.ashby-application-form-autofill-input-root[data-state="drag"] {
  background-color: var(--billgo-purple-tint);
  border-color: var(--colorPrimary600);
}

.ashby-application-form-autofill-input-title {
  color: var(--billgo-rich-black);
  font-weight: 600;
}

.ashby-application-form-autofill-input-description {
  color: var(--billgo-gray-text);
}

/* Submit */
.ashby-application-form-submit-button {
  background-color: var(--colorPrimary600);
  border-radius: var(--borderRadiusButton);
  color: #FFFFFF;
  font-family: var(--fontFamily);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 150ms ease;
}

.ashby-application-form-submit-button:hover {
  background-color: var(--colorPrimary900);
}

.ashby-application-form-submit-button:focus-visible {
  box-shadow: var(--billgo-focus-ring);
  outline: 2px solid var(--colorPrimary900);
  outline-offset: 2px;
}

/* =========================================================================
 * Small screens and reduced motion
 * ========================================================================= */

@media (max-width: 640px) {
  .ashby-job-board-heading {
    font-size: 24px;
  }

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

  .ashby-job-posting-brief {
    padding: 20px;
  }

  .ashby-job-posting-brief-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .ashby-job-posting-brief-list a:hover > .ashby-job-posting-brief,
  .ashby-job-posting-brief-list a:focus-visible > .ashby-job-posting-brief {
    transform: none;
  }
}
