/*
 * Goaly job board (jobs.ashbyhq.com/goaly, the site's Careers link) in the v2
 * style: the brand's cream and graphite with a soft brand gradient at the top,
 * a serif for headlines and a sans for text, white cards with soft lines,
 * brand chip cells, and black pill buttons.
 *
 * Upload in Ashby: Admin > Theme (Job Board) > Job Board Options > Custom CSS.
 * Also set Brand Color to #000000 and Brand Color (Dark) to #1D1916 there:
 * they colour Ashby's own buttons and links, which this file can't reach.
 * How, and what else to upload: README.md in this folder.
 *
 * Selectors are the ashby-* classes from Ashby's example file
 * (https://www.ashbyhq.com/job_board_example_css/full-job-board.css), plus
 * two rules on Ashby's own header and logo class names. Ashby's own rules can
 * load after this file, so the properties that must win carry !important.
 */

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

:root {
  --goaly-cream: #f2f1ee;
  --goaly-white: #ffffff;
  --goaly-black: #000000;
  --goaly-graphite: #1d1916;
  --goaly-pink: #f8c3f1;
  --goaly-blue: #6389dc;
  --goaly-green: #7cc8bb;
  --goaly-red: #e8623f;
  --goaly-line: #e4e1db;
  --goaly-line-strong: #cbc6bd;
  --goaly-muted: #6e675f;
  --goaly-font-display: "Orbikular", "Source Serif 4", Georgia, serif;
  --goaly-font-sans: "Altform", "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --goaly-shadow: 0 1px 2px rgba(29, 25, 22, 0.04), 0 8px 24px rgba(29, 25, 22, 0.05);
  --goaly-shadow-lg: 0 2px 4px rgba(29, 25, 22, 0.04), 0 18px 44px rgba(29, 25, 22, 0.09);
  --goaly-focus: 0 0 0 3px rgba(99, 137, 220, 0.22);

  /* Ashby's own variables. */
  --colorAppBackground: var(--goaly-cream);
  --colorPrimary600: var(--goaly-black);
  --colorPrimary900: var(--goaly-graphite);
  --borderRadiusContainer: 14px;
  --borderRadiusControl: 10px;
  --borderRadiusButton: 999px;
  --fontFamily: var(--goaly-font-sans);
}

/* The cream page with the brand gradient as a soft wash behind the header. */
body {
  background-color: var(--goaly-cream) !important;
  background-image:
    radial-gradient(38% 320px at 8% 0, rgba(248, 195, 241, 0.55), transparent 70%),
    radial-gradient(30% 280px at 34% 0, rgba(232, 98, 63, 0.18), transparent 70%),
    radial-gradient(34% 300px at 64% 0, rgba(124, 200, 187, 0.4), transparent 72%),
    radial-gradient(40% 340px at 94% 0, rgba(99, 137, 220, 0.38), transparent 75%) !important;
  background-repeat: no-repeat !important;
  color: var(--goaly-graphite);
  -webkit-font-smoothing: antialiased;
}

/* Ashby gives the header and logo no ashby-* class, so these two rules match
   its own class names: the header lets the gradient through, and multiply
   drops the white box of a PNG logo (the SVG logo is transparent anyway).
   Ashby makes the header sticky; with a see-through header the logo then sat
   still over the scrolling page, so the header scrolls away with it instead. */
div[class*="_navRoot_"] {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

img[class*="navLogoWordmarkImage"],
img[class*="navLogoSquareImage"] {
  mix-blend-mode: multiply;
}

/* --- Headlines: the serif ------------------------------------------- */
.ashby-job-board-heading,
.ashby-job-posting-heading,
.ashby-department-heading,
.ashby-application-form-section-header-title {
  font-family: var(--goaly-font-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em;
  color: var(--goaly-graphite);
}

.ashby-job-board-heading {
  display: block !important;
  margin-bottom: 20px !important;
  font-size: 2.5rem !important;
  line-height: 1.1 !important;
}

/* The count as a small pill next to the title. */
.ashby-job-board-heading-count {
  display: inline-block;
  margin-left: 10px;
  vertical-align: 0.45em;
  padding: 3px 12px;
  border: 1px solid var(--goaly-line);
  border-radius: 999px;
  background: var(--goaly-white);
  color: var(--goaly-muted);
  font-family: var(--goaly-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.ashby-job-posting-heading {
  font-size: 2.5rem !important;
  line-height: 1.1 !important;
}

/* Each department heading carries one brand "chip cell", as in the portal. */
.ashby-department-heading {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  margin: 40px 12px 14px !important;
  font-size: 1.5rem !important;
}

.ashby-department-heading::before {
  content: "";
  display: block !important;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--goaly-blue);
}

.ashby-department-heading:nth-of-type(4n + 2)::before { background: var(--goaly-green); }
.ashby-department-heading:nth-of-type(4n + 3)::before { background: var(--goaly-red); }
.ashby-department-heading:nth-of-type(4n + 4)::before { background: var(--goaly-pink); }

.ashby-department-heading-level {
  color: var(--goaly-graphite);
}

/* --- Filters ---------------------------------------------------------- */
.ashby-job-board-filters-label {
  color: var(--goaly-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ashby-job-board-filter {
  border: 1px solid var(--goaly-line-strong) !important;
  border-radius: 10px !important;
  background-color: var(--goaly-white) !important;
  color: var(--goaly-graphite);
}

.ashby-job-board-filter:hover {
  border-color: var(--goaly-graphite) !important;
}

.ashby-job-board-filter:focus {
  border-color: var(--goaly-graphite) !important;
  outline: none;
  box-shadow: var(--goaly-focus);
}

.ashby-job-board-reset-filters-label {
  color: var(--goaly-graphite);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Job list: white cards with a gap and an arrow --------------------- */
/* Ashby pulls the list 12px wider than the filters; this lines them up. */
.ashby-job-posting-brief-list {
  margin-right: 12px !important;
  margin-left: 12px !important;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

.ashby-job-posting-brief {
  position: relative;
  margin: 0 !important;
  padding: 20px 64px 20px 24px !important;
  border: 1px solid var(--goaly-line) !important;
  border-radius: 14px !important;
  background: var(--goaly-white) !important;
  box-shadow: var(--goaly-shadow) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ashby-job-posting-brief::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--goaly-muted);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 0.15s ease, transform 0.15s ease;
}

.ashby-job-posting-brief:hover {
  border-color: var(--goaly-graphite) !important;
  box-shadow: var(--goaly-shadow-lg) !important;
  transform: translateY(-1px);
}

.ashby-job-posting-brief:hover::after {
  color: var(--goaly-black);
  transform: translate(4px, -50%);
}

.ashby-job-posting-brief-title {
  margin: 0 0 6px !important;
  color: var(--goaly-graphite) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
}

.ashby-job-posting-brief-details,
.ashby-job-posting-brief-details p {
  margin: 0 !important;
  color: var(--goaly-muted) !important;
  font-size: 0.9375rem;
}

/* --- A job posting ---------------------------------------------------- */
.ashby-job-board-back-to-all-jobs-button {
  color: var(--goaly-graphite) !important;
}

/* Ashby paints both panes white; the details sit on the cream, the text in a card. */
.ashby-job-posting-left-pane {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--goaly-graphite);
}

.ashby-job-posting-description-container {
  padding: 32px 36px !important;
  border: 1px solid var(--goaly-line) !important;
  border-radius: 14px !important;
  background: var(--goaly-white) !important;
  box-shadow: var(--goaly-shadow) !important;
}

.ashby-job-posting-description {
  color: var(--goaly-graphite);
  font-size: 1rem;
  line-height: 1.65;
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3 {
  margin-top: 1.6em;
  font-family: var(--goaly-font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ashby-job-posting-description > :first-child,
.ashby-job-posting-description > :first-child > :first-child {
  margin-top: 0 !important;
}

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

.ashby-job-posting-right-pane-tab-slider {
  background: var(--goaly-black) !important;
}

/* --- Application form ------------------------------------------------- */
/* Two cards: "Autofill from resume", then the form. */
.ashby-application-form-autofill-pane {
  margin-bottom: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ashby-application-form-autofill-input-root {
  border: 1px solid var(--goaly-line) !important;
  border-radius: 14px !important;
  background: var(--goaly-white) !important;
  box-shadow: var(--goaly-shadow) !important;
}

.ashby-application-form-container {
  padding: 28px 36px 36px !important;
  border: 1px solid var(--goaly-line) !important;
  border-radius: 14px !important;
  background: var(--goaly-white) !important;
  box-shadow: var(--goaly-shadow) !important;
}

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

.ashby-application-form-question-title {
  color: var(--goaly-graphite);
  font-weight: 600;
}

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

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-dropdown-select,
.ashby-application-form-input-date,
.ashby-application-form-input-autocomplete {
  border-color: var(--goaly-line-strong) !important;
  border-radius: 10px !important;
  background-color: var(--goaly-white);
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus,
.ashby-application-form-input-dropdown-select:focus,
.ashby-application-form-input-autocomplete:focus {
  border-color: var(--goaly-graphite) !important;
  outline: none;
  box-shadow: var(--goaly-focus);
}

.ashby-application-form-input-file-dropzone {
  border-color: var(--goaly-line-strong) !important;
  border-radius: 14px !important;
  background-color: transparent !important;
}

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

.ashby-application-form-submit-button {
  border-radius: 999px !important;
  background: var(--goaly-black) !important;
  color: var(--goaly-cream) !important;
  font-weight: 600;
}

.ashby-application-form-submit-button:hover {
  background: var(--goaly-graphite) !important;
  box-shadow: 0 6px 18px rgba(29, 25, 22, 0.18);
}

.ashby-application-form-success-container,
.ashby-application-form-failure-container {
  border-radius: 14px;
}

/* --- Phones ----------------------------------------------------------- */
@media (max-width: 600px) {
  .ashby-job-board-heading,
  .ashby-job-posting-heading {
    font-size: 2rem !important;
  }

  .ashby-job-posting-brief {
    padding: 18px 52px 18px 20px !important;
  }

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

  .ashby-job-posting-description-container,
  .ashby-application-form-container {
    padding: 24px 20px !important;
  }
}
