/*
 * Valkai Ashby job board theme
 * Updated: 2026-07-16
 *
 * Upload in Ashby: Admin > Job Boards > Theme (Job Board) > Custom CSS
 * Brand source of truth: https://www.valkai.com/
 */

@font-face {
  font-family: "Miletus Grotesk";
  src: url("https://www.valkai.com/_astro/fonts/7552af78d3761d25.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Miletus Grotesk";
  src: url("https://www.valkai.com/_astro/fonts/45e852ddb1ca5ec3.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  /* Ashby theme variables */
  --colorPrimary900: #761d1b;
  --colorPrimary600: #982623;
  --widthMaxJobBoard: 1040px;
  --borderRadiusContainer: 3px;
  --borderRadiusControl: 3px;
  --borderRadiusButton: 3px;
  --fontFamily: "Miletus Grotesk", Arial, sans-serif;
  --colorAppBackground: #fffcf6;

  /* Valkai palette */
  --valkai-cream: #fffcf6;
  --valkai-ink: #1c1816;
  --valkai-red: #982623;
  --valkai-red-dark: #761d1b;
  --valkai-muted: #6d6560;
  --valkai-line: rgba(28, 24, 22, 0.18);
  --valkai-red-wash: rgba(152, 38, 35, 0.055);
  --valkai-white-wash: rgba(255, 255, 255, 0.5);
}

html {
  background: var(--valkai-cream);
}

body {
  background: var(--valkai-cream);
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--valkai-red);
  color: var(--valkai-cream);
}

a {
  color: var(--valkai-red);
  text-decoration-color: rgba(152, 38, 35, 0.38);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--valkai-red-dark);
  text-decoration-color: currentColor;
}

/* Wordmark uploaded in Ashby's Logos section */
img[alt="Valkai"] {
  width: 168px !important;
  height: auto !important;
  max-height: 52px;
  object-fit: contain;
}

/* Board heading and filters */
body .ashby-job-board-heading {
  margin: 76px 0 34px;
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

body .ashby-job-board-heading-count {
  color: var(--valkai-red);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.01em;
  vertical-align: super;
}

body .ashby-job-board-filters-label {
  color: var(--valkai-muted);
  font-family: var(--fontFamily);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body .ashby-job-board-filter {
  min-height: 48px;
  border: 1px solid var(--valkai-line);
  border-radius: var(--borderRadiusControl);
  background: var(--valkai-white-wash);
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
}

body .ashby-job-board-filter:hover,
body .ashby-job-board-filter:focus {
  border-color: var(--valkai-red);
  outline: none;
}

body .ashby-job-board-reset-filters-label {
  color: var(--valkai-red);
  font-size: 13px;
  font-weight: 500;
}

/* Department and team groups */
body .ashby-department-heading {
  margin-top: 58px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--valkai-line);
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

body .ashby-department-heading-level {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

body .ashby-job-posting-brief-department-heading {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--valkai-red);
  font-family: var(--fontFamily);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

body .ashby-job-posting-brief-department-heading-level {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

body .ashby-job-posting-brief-list {
  margin: 0;
}

body .ashby-job-posting-brief {
  position: relative;
  margin: 0;
  padding: 24px 54px 25px 2px;
  border-bottom: 1px solid var(--valkai-line);
  border-radius: 0;
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease, padding-left 160ms ease;
}

body .ashby-job-posting-brief::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: var(--valkai-red);
  content: "";
  transform: translateY(-50%) rotate(45deg);
  transition: right 160ms ease;
}

body .ashby-job-posting-brief:hover {
  padding-left: 16px;
  background: var(--valkai-red-wash);
}

body .ashby-job-posting-brief:hover::after {
  right: 10px;
}

body .ashby-job-posting-brief-title {
  margin: 0 0 6px;
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

body .ashby-job-posting-brief-details {
  color: var(--valkai-muted);
  font-family: var(--fontFamily);
  font-size: 14px;
  line-height: 1.45;
}

/* Job detail page */
body .ashby-job-posting-header {
  border-bottom: 1px solid var(--valkai-line);
  background: var(--valkai-cream);
}

body .ashby-job-board-back-to-all-jobs-button {
  color: var(--valkai-red);
}

body .ashby-job-posting-heading {
  margin: 28px 0 36px;
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

body .ashby-job-posting-left-pane {
  border-radius: 0;
  background: transparent;
  color: var(--valkai-ink);
}

body .ashby-job-posting-right-pane {
  border: 1px solid var(--valkai-line);
  border-radius: var(--borderRadiusContainer);
  background: var(--valkai-white-wash);
  color: var(--valkai-ink);
}

body .ashby-job-posting-right-pane h2,
body .ashby-job-posting-right-pane h3 {
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
  font-weight: 500;
  letter-spacing: -0.015em;
}

body .ashby-job-posting-right-pane-overview-tab,
body .ashby-job-posting-right-pane-application-tab {
  color: var(--valkai-muted);
  font-family: var(--fontFamily);
  font-weight: 500;
}

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

/* Application form */
.ashby-application-form-container,
.ashby-survey-form-container {
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
}

.ashby-application-form-section-container {
  border-color: var(--valkai-line);
}

.ashby-application-form-section-header-title,
.ashby-application-form-question-title,
.ashby-application-form-autofill-input-title {
  color: var(--valkai-ink);
  font-weight: 500;
}

.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(--valkai-muted);
}

.ashby-application-form-autofill-uploader,
.ashby-application-form-autofill-input-root,
.ashby-application-form-autofill-input-base-layer {
  border-color: var(--valkai-line);
  border-radius: var(--borderRadiusControl);
  background: rgba(255, 252, 246, 0.72);
}

body .ashby-application-form-autofill-uploader button {
  border: 1px solid var(--valkai-red);
  border-radius: var(--borderRadiusButton);
  background: transparent;
  color: var(--valkai-red);
  font-family: var(--fontFamily);
  font-weight: 500;
}

body .ashby-application-form-autofill-uploader button:hover {
  background: var(--valkai-red-wash);
  color: var(--valkai-red-dark);
}

.ashby-application-form-container input,
.ashby-application-form-container textarea,
.ashby-application-form-container select,
.ashby-survey-form-container input,
.ashby-survey-form-container textarea,
.ashby-survey-form-container select {
  border: 1px solid rgba(28, 24, 22, 0.32);
  border-radius: var(--borderRadiusControl);
  background: rgba(255, 255, 255, 0.56);
  color: var(--valkai-ink);
  font-family: var(--fontFamily);
}

.ashby-application-form-container input:focus,
.ashby-application-form-container textarea:focus,
.ashby-application-form-container select:focus,
.ashby-survey-form-container input:focus,
.ashby-survey-form-container textarea:focus,
.ashby-survey-form-container select:focus {
  border-color: var(--valkai-red);
  box-shadow: 0 0 0 3px rgba(152, 38, 35, 0.12);
  outline: none;
}

body .ashby-application-form-submit-button.ashby-application-form-submit-button {
  min-height: 50px;
  border: 1px solid var(--valkai-red) !important;
  border-radius: var(--borderRadiusButton) !important;
  background: var(--valkai-red) !important;
  color: var(--valkai-cream) !important;
  font-family: var(--fontFamily) !important;
  font-size: 15px;
  font-weight: 500 !important;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body .ashby-application-form-submit-button.ashby-application-form-submit-button:hover {
  border-color: var(--valkai-red-dark) !important;
  background: var(--valkai-red-dark) !important;
  transform: translateY(-1px);
}

.ashby-application-form-success-container {
  border: 1px solid rgba(152, 38, 35, 0.28);
  border-radius: var(--borderRadiusContainer);
  background: var(--valkai-red-wash);
  color: var(--valkai-ink);
}

.ashby-application-form-failure-container,
.ashby-application-form-blocked-application-container,
.ashby-application-form-autofill-input-form-alert[data-highlight="negative"] {
  border-radius: var(--borderRadiusContainer);
}

@supports selector(a:has(> img[alt="Valkai"])) {
  a:has(> img[alt="Valkai"]) {
    color: var(--valkai-ink);
  }

  a:has(> .ashby-job-posting-brief) {
    color: inherit;
    text-decoration: none;
  }
}

@media (max-width: 760px) {
  :root {
    --widthMaxJobBoard: 100%;
  }

  body {
    font-size: 15px;
  }

  img[alt="Valkai"] {
    width: 118px !important;
    max-height: 42px;
  }

  body .ashby-job-board-heading {
    margin-top: 44px;
    margin-bottom: 24px;
    font-size: 38px;
  }

  body .ashby-department-heading {
    margin-top: 42px;
  }

  body .ashby-job-posting-brief {
    padding-top: 20px;
    padding-right: 36px;
    padding-bottom: 21px;
  }

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

  body .ashby-job-posting-brief:hover {
    padding-left: 8px;
  }

  body .ashby-job-posting-heading {
    margin-top: 20px;
    margin-bottom: 28px;
    font-size: 38px;
  }

  body .ashby-job-posting-right-pane {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .ashby-job-posting-brief,
  body .ashby-job-posting-brief::after,
  body .ashby-application-form-submit-button.ashby-application-form-submit-button {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body .ashby-job-posting-header,
  body .ashby-job-posting-right-pane {
    border-color: #bbb;
    background: #fff;
  }
}
