/*
 * Jack & Jill: Ashby job board theme
 * Upload in Ashby: Admin > Job Boards > Theme (Job Board) > Custom CSS.
 * Board: https://jobs.ashbyhq.com/jack-jill-external-ats
 *
 * Values follow docs/brand/design-system.md (Series A). Class names are
 * Ashby's stable `ashby-*` hooks; anything else in their DOM is hashed and
 * can change without notice, so don't target it.
 *
 * Diatype and Marist are licensed (see the README in each folder under
 * landing_page/public/fonts). They are referenced from our own site, never
 * copied into Ashby.
 */

/* stylelint-disable */

@font-face {
  font-family: "ABC Diatype";
  src: url("https://www.jackandjill.ai/fonts/Diatype/ABCDiatype-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("https://www.jackandjill.ai/fonts/Diatype/ABCDiatype-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("https://www.jackandjill.ai/fonts/Diatype/ABCDiatype-Medium.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Marist";
  src: url("https://www.jackandjill.ai/fonts/Marist/ABCMarist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --jj-charcoal: #100f0f;
  --jj-white: #ffffff;
  --jj-paper: #f9f9f6;
  --jj-clay: #f2f2eb;
  --jj-stone: #ebe9e1;
  --jj-ink: rgb(16 15 15 / 1);
  --jj-ink-84: rgb(16 15 15 / 0.84);
  --jj-ink-72: rgb(16 15 15 / 0.72);
  --jj-ink-62: rgb(16 15 15 / 0.62);
  --jj-ink-60: rgb(16 15 15 / 0.6);
  --jj-ink-45: rgb(16 15 15 / 0.45);
  --jj-ink-40: rgb(16 15 15 / 0.4);
  --jj-ink-12: rgb(16 15 15 / 0.12);
  --jj-ink-10: rgb(16 15 15 / 0.1);
  --jj-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --jj-sans: "ABC Diatype", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jj-serif: "ABC Marist", ui-serif, Georgia, serif;

  /* Ashby tokens, remapped */
  --fontFamily: var(--jj-sans);
  --fontWeightMediumBold: 500;
  --fontWeightHeavyBold: 500;
  --letterSpacingTight: -0.01em;

  --colorAppBackground: var(--jj-paper);
  --colorPrimary900: var(--jj-charcoal);
  --colorPrimary600: var(--jj-charcoal);
  --colorSecondary900: var(--jj-charcoal);

  /* Ashby's neutral ramp drives text, borders and fills. All ink is
     charcoal at an opacity step, never a separate grey. */
  --colorNeutral800: var(--jj-ink);
  --colorNeutral700: var(--jj-ink-62);
  --colorNeutral600: var(--jj-ink-60);
  --colorNeutral500: var(--jj-ink-40);
  --colorNeutral400: var(--jj-ink-12);
  --colorNeutral300: var(--jj-ink-10);
  --colorNeutral200: var(--jj-stone);
  --colorNeutral100: var(--jj-clay);
  --colorNeutral000: var(--jj-white);

  --widthMaxJobBoard: 720px;
  --borderRadiusContainer: 4px;
  --borderRadiusControl: 5px;
  --borderRadiusButton: 9999px;

  --transitionDurationFast: 150ms;
  --transitionDuration: 200ms;
  --transitionFunction: var(--jj-ease-out);
}

html,
body {
  background: var(--jj-paper);
  color: var(--jj-ink);
  font-family: var(--jj-sans);
  font-feature-settings: "ss07";
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  accent-color: var(--jj-charcoal);
}

::selection {
  background: #ffd862;
  color: var(--jj-charcoal);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Job board: heading and filters */

.ashby-job-board-heading,
.ashby-job-board-heading-count {
  font-family: var(--jj-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--jj-ink);
  font-variant-numeric: tabular-nums;
}

.ashby-job-board-filters-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--jj-ink-62);
}

.ashby-job-board-filter {
  min-height: 48px;
  padding: 0 14px;
  background-color: var(--jj-white);
  border: 1px solid var(--jj-ink-10);
  border-radius: 5px;
  font-size: 16px;
  color: var(--jj-ink);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.ashby-job-board-filter:focus {
  border-color: var(--jj-ink-40);
  box-shadow: 0 0 0 1px var(--jj-ink-40);
}

.ashby-job-board-reset-filters-label {
  font-size: 14px;
  color: var(--jj-ink-60);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease-out;
}

/* Job board: departments and role rows */

.ashby-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.022em;
  color: var(--jj-ink);
}

.ashby-job-posting-brief-list a {
  text-decoration: none;
}

/* Roles are hairline rows, not cards. Ashby's inline padding and margin
   line the title up with the department heading, so only the block axis
   changes. */
.ashby-job-posting-brief-list .ashby-job-posting-brief {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--jj-stone);
  border-radius: 0;
  box-shadow: none;
}

/* Each row is the first child of its own link, and from 768px Ashby drops
   the rule on every first child. The doubled class outranks that. */
.ashby-job-posting-brief-list > a + a > .ashby-job-posting-brief.ashby-job-posting-brief {
  border-top: 1px solid var(--jj-stone);
}

.ashby-job-posting-brief-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--jj-ink);
}

.ashby-job-posting-brief-details {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--jj-ink-60);
}

/* Job posting page */

/* Ashby frames these panes as shadowed cards on phones. Flat surfaces
   carry no shadow here, so they sit on the Paper ground instead. */
.ashby-job-posting-header,
.ashby-job-posting-left-pane,
.ashby-job-posting-description-container,
.ashby-application-form-container,
.ashby-application-form-autofill-pane,
nav:has(.ashby-job-posting-right-pane-tab-slider) {
  background: transparent;
  box-shadow: none;
}

.ashby-job-board-back-to-all-jobs-button {
  color: var(--jj-ink-62);
  transition: color 150ms ease-out;
}

.ashby-job-posting-heading {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--jj-ink);
}

.ashby-job-posting-left-pane h2 {
  font-size: 14px;
  font-weight: 400;
  color: var(--jj-ink-60);
}

.ashby-job-posting-left-pane p {
  font-size: 16px;
  color: var(--jj-ink);
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-weight: 500;
  transition: color 150ms ease-out;
}

.ashby-job-posting-right-pane-tab-slider {
  background: var(--jj-charcoal);
  border-radius: 9999px;
}

.ashby-job-posting-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--jj-ink-72);
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3,
.ashby-job-posting-description strong,
.ashby-job-posting-description b {
  font-weight: 500;
  color: var(--jj-ink);
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.ashby-job-posting-description a {
  color: var(--jj-ink);
  text-decoration: underline;
}

/* Application form */

.ashby-application-form-section-header-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--jj-ink);
}

.ashby-application-form-section-header-description,
.ashby-application-form-question-description,
.ashby-application-form-autofill-input-description,
.ashby-application-form-texting-consent-description {
  color: var(--jj-ink-62);
}

.ashby-application-form-question-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--jj-ink);
}

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-dropdown-select,
.ashby-application-form-input-autocomplete input {
  min-height: 48px;
  padding: 0 14px;
  background: var(--jj-white);
  border: 1px solid var(--jj-ink-10);
  border-radius: 5px;
  font-family: var(--jj-sans);
  font-size: 16px;
  color: var(--jj-ink);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.ashby-application-form-input-textarea {
  min-height: 76px;
  padding: 12px 14px;
  line-height: 20px;
}

.ashby-application-form-input-text::placeholder,
.ashby-application-form-input-textarea::placeholder {
  color: var(--jj-ink-45);
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus,
.ashby-application-form-input-dropdown-select:focus,
.ashby-application-form-input-autocomplete input:focus {
  border-color: var(--jj-ink-40);
  box-shadow: 0 0 0 1px var(--jj-ink-40);
  outline: none;
}

.ashby-application-form-autofill-input-root {
  background: var(--jj-white);
  border: 1px solid var(--jj-ink-10);
  border-radius: 4px;
}

.ashby-application-form-input-file {
  background: var(--jj-white);
  border: 1px dashed var(--jj-ink-12);
  border-radius: 5px;
}

.ashby-application-form-input-file-dropzone-instructions {
  font-weight: 400;
  color: var(--jj-ink-60);
}

/* Yes / No as a segmented pair */
.ashby-application-form-input-yesno-option {
  min-height: 44px;
  background: var(--jj-white);
  border: 1px solid var(--jj-ink-10);
  font-weight: 500;
  color: var(--jj-ink-62);
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

.ashby-application-form-input-yesno-option[aria-pressed="true"] {
  background: var(--jj-charcoal);
  border-color: var(--jj-charcoal);
  color: var(--jj-paper);
}

.ashby-application-form-input-radio-group-option-label,
.ashby-application-form-input-checkbox-group-option-label {
  color: var(--jj-ink);
}

/* Buttons: every action is a capsule */

.ashby-application-form-submit-button,
.ashby-application-form-input-file-dropzone-upload,
.ashby-application-form-autofill-input-root button,
.ashby-application-form-input-education-add {
  border-radius: 9999px;
  font-family: var(--jj-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    color 150ms ease-out,
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    box-shadow 150ms ease-out,
    transform 150ms ease-out;
}

/* Primary: the one charcoal capsule in view */
.ashby-application-form-submit-button {
  min-height: 44px;
  padding: 0 20px;
  background: var(--jj-charcoal);
  border: 0;
  box-shadow: none;
  color: var(--jj-paper);
  font-size: 16px;
}

/* Secondary: Clay */
.ashby-application-form-input-file-dropzone-upload,
.ashby-application-form-autofill-input-root button,
.ashby-application-form-input-education-add {
  min-height: 36px;
  padding: 0 16px;
  background: var(--jj-clay);
  border: 0;
  box-shadow: none;
  color: var(--jj-ink);
  font-size: 14px;
}

.ashby-application-form-submit-button:active,
.ashby-application-form-input-file-dropzone-upload:active,
.ashby-application-form-autofill-input-root button:active,
.ashby-application-form-input-education-add:active {
  transform: scale(0.96);
}

.ashby-application-form-submit-button:disabled,
.ashby-application-form-submit-button[aria-disabled="true"] {
  opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) {
  .ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .ashby-job-board-reset-filters-label:hover,
  .ashby-job-board-back-to-all-jobs-button:hover {
    color: var(--jj-ink);
  }

  .ashby-job-posting-right-pane-overview-tab:hover,
  .ashby-job-posting-right-pane-application-tab:hover {
    color: var(--jj-ink);
  }

  .ashby-application-form-submit-button:hover {
    background: rgb(16 15 15 / 0.9);
  }

  .ashby-application-form-input-file-dropzone-upload:hover,
  .ashby-application-form-autofill-input-root button:hover,
  .ashby-application-form-input-education-add:hover {
    background: var(--jj-stone);
  }

  .ashby-application-form-input-yesno-option:not([aria-pressed="true"]):hover {
    background: var(--jj-clay);
    color: var(--jj-ink);
  }
}

@media (max-width: 767px) {
  .ashby-job-board-heading,
  .ashby-job-board-heading-count {
    font-size: 32px;
    line-height: 1.18;
  }

  .ashby-job-posting-heading {
    font-size: 32px;
    line-height: 1.18;
  }

  .ashby-application-form-submit-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ashby-application-form-submit-button:active,
  .ashby-application-form-input-file-dropzone-upload:active,
  .ashby-application-form-autofill-input-root button:active,
  .ashby-application-form-input-education-add:active {
    transform: none;
  }
}
