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

/*
 * Edisyl — Ashby job board theme
 * Matches edisyl.com: warm paper background, ink type, rust accent,
 * Inter for text, JetBrains Mono for uppercase labels, 4px corners.
 *
 * Admin settings to pair with this file:
 *   Brand Color         #C34419  (rust; 5.05:1 on white)
 *   Brand Color (Dark)  #9E3411  (rust-2; 7.11:1 on white)
 *
 * Ashby only accepts :root variables, .ashby-* class selectors and @-rules.
 */

:root {
  --colorAppBackground: #F4F3EF;
  --colorPrimary600: #C34419;
  --colorPrimary900: #9E3411;

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

  --borderRadiusContainer: 4px;
  --borderRadiusControl: 4px;
  --borderRadiusButton: 4px;

  --fontFamily: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Job board (list page) ---------- */

.ashby-job-board-heading {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #14120F;
}

.ashby-job-board-heading-count {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #8B857C;
}

.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4E4A44;
}

.ashby-job-board-filter {
  background-color: #FFFFFF;
  border: 1px solid #DAD6CC;
  border-radius: 4px;
  color: #14120F;
}

/* Department / team headings read like the site's rust kicker labels */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C34419;
}

.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C34419;
}

/* Job cards. Ashby styles these as a divider list: it drops the first card's
   top border, shifts it 4px left and greys it on hover. !important overrides
   those rules so every card is a full, even box. */
.ashby-job-posting-brief {
  background-color: #FFFFFF !important;
  border: 1px solid #DAD6CC !important;
  border-radius: 4px !important;
  margin: 0 0 12px 0 !important;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.ashby-job-posting-brief:hover {
  background-color: #FFFFFF !important;
  border-color: #C34419 !important;
}

.ashby-job-posting-brief-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #14120F;
}

.ashby-job-posting-brief-details {
  color: #4E4A44;
}

/* ---------- Job posting page ---------- */

.ashby-job-board-back-to-all-jobs-button {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C34419;
}

.ashby-job-posting-heading {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #14120F;
}

/* Posting body sits on the page's paper background, like long-form content
   on edisyl.com. White is kept for small elements: job cards and inputs. */
.ashby-job-posting-left-pane,
.ashby-job-posting-description-container,
.ashby-job-posting-right-pane-application-tab,
.ashby-application-form-container,
.ashby-application-form-autofill-pane {
  background-color: transparent !important;
  box-shadow: none !important;
}

.ashby-job-posting-left-pane {
  color: #4E4A44;
  border-right: 1px solid #DAD6CC;
}

.ashby-job-posting-right-pane-tab-slider {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ashby-job-posting-description {
  font-size: 16px;
  line-height: 1.65;
  color: #14120F;
}

/* ---------- Application form ---------- */

.ashby-application-form-container,
.ashby-application-form-section-container {
  border-radius: 4px;
}

.ashby-application-form-section-header-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #14120F;
}

.ashby-application-form-section-header-description,
.ashby-application-form-question-description {
  color: #4E4A44;
}

.ashby-application-form-question-title {
  font-weight: 600;
  color: #14120F;
}

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-dropdown-select,
.ashby-application-form-input-date {
  background-color: #FFFFFF;
  border: 1px solid #DAD6CC;
  border-radius: 4px;
  color: #14120F;
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus {
  border-color: #C34419;
  outline: 2px solid rgba(195, 68, 25, 0.18);
  outline-offset: 0;
}

/* Ashby already draws a dashed frame around the resume dropzone */
.ashby-application-form-input-file-dropzone {
  background-color: transparent;
  border: none;
}

.ashby-application-form-autofill-input-root {
  background-color: #ECEAE4;
  border: 1px dashed #C9C4B8;
  border-radius: 4px;
}

.ashby-application-form-input-file-dropzone-instructions,
.ashby-application-form-autofill-input-description {
  color: #4E4A44;
}

.ashby-application-form-autofill-input-title {
  font-weight: 600;
  color: #14120F;
}

.ashby-application-form-input-yesno-option {
  border-radius: 4px;
}

/* Matches the "Apply for this Job" button, which has no class to style */
.ashby-application-form-submit-button {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 4px;
  box-shadow: none;
}

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