@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&display=swap');

/* Upload this stylesheet in Ashby's Theme (Job Board) settings under Custom CSS. */

:root {
  --fontFamily: 'Assistant', sans-serif;
  --colorAppBackground: #ffffff;
  --colorPrimary900: #0d2a45;
  --colorPrimary600: #23527f;
  --widthMaxContent: 62rem;
  --widthMaxJobBoard: 62rem;
  --borderRadiusContainer: 6px;
  --borderRadiusControl: 6px;
  --borderRadiusButton: 6px;
}

body {
  color: #1f2937;
  font-family: var(--fontFamily);
  font-size: 16px;
  line-height: 1.625;
}

[class*='_topDescription_'],
[class*='_bottomDescription_'] {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: #f6fbff;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.625;
  text-align: left;
}

[class*='_topDescription_'] h2,
[class*='_bottomDescription_'] h2 {
  margin: 0 0 12px;
  color: #0d2a45;
  font-size: 20px;
  font-weight: 600;
}

[class*='_topDescription_'] p,
[class*='_bottomDescription_'] p {
  margin: 0 0 16px;
}

[class*='_topDescription_'] p:last-child,
[class*='_bottomDescription_'] p:last-child {
  margin-bottom: 0;
}

[class*='_bottomDescription_'] {
  margin-top: 32px;
  margin-bottom: 0;
  border-radius: 8px;
  text-align: center;
}

[class*='_bottomDescription_'] a {
  color: #23527f;
  text-decoration: underline;
}

footer[class*='_container_'] {
  margin-top: 24px;
}

footer[class*='_embedded_'],
footer a[aria-label='Learn more about Ashby'] {
  display: none;
}

.ashby-job-board-heading {
  margin: 0 0 24px;
  color: #0d2a45;
  font-size: 24px;
  font-weight: 600;
}

.ashby-job-board-filter {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: none;
  background-color: #ffffff;
  font-family: var(--fontFamily);
  font-size: 16px;
}

.ashby-department-heading {
  margin: 28px 0 12px;
  color: #6b7280;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
}

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

.ashby-job-posting-brief-list .ashby-job-posting-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid #e5e7eb !important;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.ashby-job-posting-brief-list:first-of-type > a:first-child .ashby-job-posting-brief {
  border-top: 0 !important;
}

.ashby-job-posting-brief-title {
  grid-column: 1;
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.ashby-job-posting-brief-details {
  grid-column: 1;
  margin-top: 4px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.ashby-job-posting-brief-details p {
  margin: 0 0 4px;
  font-size: 14px;
}

.ashby-job-posting-brief::after {
  content: 'Learn More';
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 8px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: #23527f;
  text-decoration: underline;
}

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

.ashby-job-posting-heading {
  padding-bottom: 16px;
  color: #0d2a45;
  font-size: 28px;
  font-weight: 600;
}

.ashby-job-posting-left-pane,
.ashby-job-posting-right-pane {
  border: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
}

.ashby-job-posting-left-pane:first-child {
  margin-top: 0;
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 0;
}

.ashby-job-posting-description {
  font-size: 16px;
  line-height: 1.625;
}

[class*='_details_'] {
  padding-bottom: 0;
}

.ashby-job-posting-description-container {
  padding-bottom: 8px;
}

.ashby-job-posting-description-container > a[href*='/application'] {
  display: block;
  margin-top: 32px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #0d2a45;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
}

.ashby-job-posting-description-container > a[href*='/application']:hover {
  background: #23527f;
}

.ashby-job-posting-description-container > a[href*='/application'] > button {
  display: none;
}

.ashby-job-posting-description-container > a[href*='/application']::after {
  content: 'Apply for this role';
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2 {
  color: #0d2a45;
  font-size: 24px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .ashby-job-posting-left-pane:first-child {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (min-width: 640px) {
  .ashby-job-posting-heading {
    font-size: 36px;
  }

  [class*='_departments_'] {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 0;
    align-items: start;
  }

  .ashby-department-heading {
    grid-column: 1;
    margin: 24px 0 0;
    text-align: center;
  }

  .ashby-job-posting-brief-list {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .ashby-job-posting-heading {
    margin: 0 -12px;
  }

  [class*='_details_'] {
    margin-bottom: 0;
  }

  .ashby-job-posting-left-pane:first-child,
  .ashby-job-posting-right-pane,
  .ashby-job-posting-description-container,
  .ashby-application-form-container {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }

  .ashby-job-posting-left-pane:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 0 24px;
  }

  .ashby-job-posting-left-pane > div {
    padding: 0;
    border: 0;
  }

  .ashby-job-posting-left-pane h2 {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .ashby-job-posting-right-pane > nav {
    margin-top: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
  }

  .ashby-job-posting-description-container,
  .ashby-application-form-container {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 639px) {
  [class*='_section_'] > [class*='_content_'] {
    margin-bottom: 0;
  }

  .ashby-job-posting-header ul {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .ashby-department-heading {
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid #e5e7eb;
  }

  .ashby-department-heading:first-child {
    border-top: 0;
  }

  .ashby-job-posting-brief-list .ashby-job-posting-brief {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0;
  }

  .ashby-job-posting-brief-list > a:first-child .ashby-job-posting-brief {
    border-top: 0 !important;
  }

  .ashby-job-posting-brief::after {
    display: none;
  }
}
