/* Cartesia AI - Job Board CSS - Last Updated: 04/17/26  */

:root {
  --borderRadiusContainer: 4px;
  --borderRadiusControl: 4px;
  --borderRadiusButton: 4px;
  --borderWidthBold: 2px;
  --widthMaxJobBoard: 800px;
  --colorAppBackground: #ffffff;
  --colorPrimary900: #000000;
  --colorPrimary600: #181818;
  --colorNegative200: #fce8e8;
  --colorPositive200: #eafcec;
  --colorWarning800: #8c6d1f;
  --colorWarning600: #f4ca64;
  --colorNegative600: #dc3030;
  --colorPositive600: #29b458;
  --colorWarning900: #5c4813;
  /* FIX: Define --fontFamily so all var(--fontFamily) references resolve correctly */
  --fontFamily: 'Tiempos Text', serif;
}

/* FIX: font-weight and font-style must use valid CSS values (400/500/normal), not 'regular' or 'medium' */
@font-face {
  font-family: 'Tiempos Text';
  src: url('https://framerusercontent.com/assets/ZQbZBPUlYAJMEfaS8ycHNAeYvHo.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Tiempos Text Medium';
  src: url('https://framerusercontent.com/assets/OH8al6lg0DnsfgPu4ymseN1q8s.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter Display';
  src: url('https://framerusercontent.com/assets/bHYNJqzTyl2lqvmMiRRS6Y16Es.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* TARGET MAIN JOB BOARD */

/* Target Open Positions Header on Main Job Board */
@media (max-width: 768px) {
  .ashby-job-board-heading {
    padding: 1.25rem 1rem;
  }
}

.ashby-job-board-heading {
  color: #181818;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: -12px;
  padding-bottom: 16px;
  letter-spacing: -0.01em;
  background: white;
  border-bottom: 1.5px solid #181818;
  font-family: 'Tiempos Text', serif;
}

/* Target Number of Open Positions on Top of Main Job Board */
.ashby-job-board-heading-count {
  color: #cccccc;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Tiempos Text', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Target Header Title of Job Filter Dropdown Menu */
.ashby-job-board-filters-label {
  width: 100%;
  font-size: 14px;
  color: #7d8699;
  background-color: white;
  transition: all 0.15s ease;
  cursor: pointer;
  font-family: 'Tiempos Text', serif;
}

/* Target Job Board Filter Dropdown Menu */
.ashby-job-board-filter {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 16px;
  color: #181818;
  background-color: white;
  transition: all 0.15s ease;
  cursor: pointer;
  font-family: 'Tiempos Text', serif;
}

.ashby-job-board-filter:focus {
  outline: none;
  border-color: #181818;
  box-shadow: 0 0 0 1px #181818;
}

.ashby-job-board-filter:hover {
  border-color: #181818;
}

/* Target Department Header on Main Job Board (e.g. 'Engineering') */
.ashby-department-heading-level {
  color: #181818;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Tiempos Text', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Target CONTAINER of Department Header on Main Job Board (e.g. 'Engineering') */
.ashby-department-heading {
  color: #181818;
  font-weight: 600;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #181818;
  letter-spacing: -0.01em;
  font-family: 'Tiempos Text', serif;
}

/* Target Title of Individual Jobs on the Main Job Board */
.ashby-job-posting-brief-title {
  color: #181818;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-decoration: none;
  display: block;
  transition: color 0.15s ease;
  font-family: 'Tiempos Text Medium', serif;
  letter-spacing: -0.01em;
}

.ashby-job-posting-brief-title:hover {
  color: #000000;
}

/* Target Details of Individual Jobs on Main Job Board */
.ashby-job-posting-brief-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 14px;
  color: #666666;
  font-family: 'Tiempos Text', serif;
}

/* Target CONTAINER of Jobs Grouped by Dept on Main Job Board */
.ashby-job-posting-brief-list {
  margin: 0 auto;
  flex-direction: column;
  gap: 1rem;
}

/* Target CONTAINER of Individual Jobs within the Brief List */
.ashby-job-posting-brief {
  background: white;
  border: 0px solid #181818;
  border-radius: 4px;
  padding: 1rem;
  margin-left: -4px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.ashby-job-posting-brief:hover {
  background: #fafafa;
}

.ashby-job-posting-brief-department-heading {
  display: inline-block;
  background: #181818;
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-family: var(--fontFamily);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ashby-job-posting-brief-department-heading-level {
  display: inline-block;
  background: #f5f5f5;
  color: #666666;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Tiempos Text', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* END TARGET MAIN JOB BOARD */

/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* INDIVIDUAL JOB PAGES */

/* The heading/title of an individual job post */
.ashby-job-posting-heading {
  color: #181818;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-family: 'Tiempos Text Medium', serif;
}

/* Target headings (e.g. 'Location', 'Employment Type') in the left pane */
.ashby-job-posting-left-pane h2 {
  font-family: 'Tiempos Text', serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Target paragraphs <p> & unordered lists <ul> in the left pane */
.ashby-job-posting-left-pane p,
.ashby-job-posting-left-pane ul,
.ashby-job-posting-left-pane li {
  font-family: 'Tiempos Text', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #181818;
}

/* Target the "Application" and "Overview" tabs */
.ashby-job-posting-right-pane-application-tab,
.ashby-job-posting-right-pane-overview-tab {
  font-family: 'Tiempos Text', serif;
}

/* FIX: Target all body text in the right pane — p, ul, AND li — for consistent font and size */
.ashby-job-posting-right-pane p,
.ashby-job-posting-right-pane ul,
.ashby-job-posting-right-pane li {
  font-family: 'Tiempos Text', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #181818;
}

/* FIX: font-weight: 500 matches the loaded 'Tiempos Text Medium' weight */
.ashby-job-posting-right-pane p strong,
.ashby-job-posting-right-pane p b {
  font-family: 'Tiempos Text Medium', serif;
  font-weight: 500;
  color: #181818;
  letter-spacing: 0.03em;
}

/* Target H1 & H2 in the right pane of a job description */
.ashby-job-posting-right-pane h1,
.ashby-job-posting-right-pane h2 {
  font-family: 'Tiempos Text Medium', serif;
  color: #181818;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Target Ashby Survey Form */
.ashby-survey-form-container {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Target the CONTAINER for the entire 'Application' tab */
.ashby-application-form-container {
  background-color: white;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  font-family: 'Tiempos Text', serif;
}

.ashby-application-form-failure-container {
  background-color: #fce8e8;
  border-left: 2px solid #dc3030;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  color: #991b1b;
  font-family: var(--fontFamily);
  font-size: 0.875rem;
}

.ashby-application-form-field-entry {
  margin-bottom: 1.5rem;
}

.ashby-application-form-question-description {
  color: #666666;
  font-size: 0.813rem;
  margin-top: 0.25rem;
  line-height: 1.5;
  font-family: 'Tiempos Text', serif;
}

.ashby-application-form-question-title {
  color: #181818;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  font-family: 'Tiempos Text', serif;
  text-transform: capitalize;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  width: 100%;
  transition: all 0.15s ease;
  background-color: white;
  color: #181818;
  font-family: 'Tiempos Text', serif;
  line-height: 1.6;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #181818;
  box-shadow: 0 0 0 1px #181818;
}

.ashby-application-form-section-container {
  margin-bottom: 2.5rem;
}

.ashby-application-form-section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #181818;
}

.ashby-application-form-section-header-description {
  color: #666666;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.6;
  font-family: 'Tiempos Text', serif;
}

.ashby-application-form-section-header-title {
  color: #181818;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: 'Tiempos Text Medium', serif;
}

.ashby-application-form-submit-button {
  background: #181818;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  margin-top: 1rem;
  font-family: 'Inter Display', sans-serif;
  text-transform: capitalize;
  letter-spacing: 0.05em;
}

.ashby-application-form-submit-button:hover {
  background: #000000;
}

.ashby-application-form-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ashby-application-form-success-container {
  background: #eafcec;
  border-left: 2px solid #29b458;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  color: #065f46;
  font-weight: 500;
  font-family: var(--fontFamily);
  font-size: 0.875rem;
}
