/* Scope job board theme for Ashby
   Upload in Ashby: Admin > Theme (Job Board) > Custom CSS.
   In the same Theme screen, set the darker primary colour to #111111 and keep
   the lighter one at #D75418. Ashby writes those two onto the page itself, so
   the values in this file cannot override them.
   Colours, type and button shape are taken from getscope.ai. */

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

:root {
  --colorPrimary900: #111111;
  --colorPrimary600: #D75418;
  --colorAppBackground: #FFFDF7;
  --fontFamily: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --borderRadiusContainer: 2px;
  --borderRadiusControl: 2px;
  --borderRadiusButton: 2px;

  --scopeInk: #111111;
  --scopeCream: #FFFDF7;
  --scopeOrange: #D75418;
  --scopeJasper: #CC2200;
  --scopeLava: #801500;
  --scopeLine: #E4E1DC;
  --scopeMuted: #928E8B;
  --scopeMono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Band artwork, rebuilt from the Figma gradient for a black background.
     Layers, top to bottom: a fade to black from the left; a diagonal fade
     to black towards the bottom left; film grain (light and dark flecks);
     the diagonal stripes;
     the colour sweep (Scope orange brightening to the right). The two fades
     keep the grain, stripes and colour in the top-right corner only. */
  --scopeBand:
    linear-gradient(to right, #111111 28%, rgba(17, 17, 17, 0.6) 46%, rgba(17, 17, 17, 0) 64%),
    linear-gradient(212deg, rgba(17, 17, 17, 0) 4%, rgba(17, 17, 17, 0.35) 14%, rgba(17, 17, 17, 0.7) 24%, rgba(17, 17, 17, 0.92) 33%, #111111 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.4 0 0 0 -0.62'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0 0 0 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.35'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.45'/%3E%3C/svg%3E"),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0) 64px, rgba(255, 232, 205, 0.18) 65.5px, rgba(0, 0, 0, 0.16) 67px),
    linear-gradient(to right, #D75418 30%, #E05A16 55%, #EA6A1E 74%, #F2802A 89%, #F79A3C 100%);
}

body {
  overflow-x: clip;
  background-color: var(--scopeCream);
  color: var(--scopeInk);
}

/* ---------- All open roles page ---------- */

.ashby-job-board-heading {
  margin-top: 56px;
  color: var(--scopeInk);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ashby-job-board-heading-count {
  color: var(--scopeMuted);
}

.ashby-department-heading {
  margin: 48px 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--scopeInk);
}
.ashby-department-heading-level {
  color: var(--scopeInk);
  font-family: var(--scopeMono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The doubled class is needed to outrank Ashby's own row spacing. */
.ashby-job-posting-brief-list .ashby-job-posting-brief {
  width: auto;
  margin: 0 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--scopeLine);
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}
.ashby-job-posting-brief-title {
  color: var(--scopeInk);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: var(--scopeOrange);
}
.ashby-job-posting-brief-details {
  margin-top: 6px;
  color: var(--scopeMuted);
  font-family: var(--scopeMono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Role page: dark band with logo, back link and title ---------- */

/* The band is two elements (header and title). Fixing the gradient to the
   screen keeps them lined up so there is no seam between them. */
.ashby-job-posting-header,
.ashby-job-posting-heading {
  background-color: var(--scopeInk);
  background-image: var(--scopeBand);
  /* Grain (third layer) scrolls with the page; the rest is fixed to the screen. */
  background-attachment: fixed, fixed, scroll, fixed, fixed;
  background-size: auto, auto, 220px 220px, auto, auto;
}
.ashby-job-posting-header {
  position: static;
  height: auto;
}
.ashby-job-posting-header ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 88px;
  height: auto;
  padding: 32px 24px 24px;
}
.ashby-job-posting-header ul li:first-child {
  align-self: flex-start;
}
.ashby-job-posting-header li {
  margin: 0;
  text-align: left;
}
/* Turns the logo white on the dark band, whatever colour the uploaded file is. */
.ashby-job-posting-header img {
  width: auto;
  height: 40px;
  filter: brightness(0) invert(1);
}

.ashby-job-board-back-to-all-jobs-button {
  gap: 10px;
  padding: 10px 16px;
  border-radius: 2px;
  background-color: var(--scopeOrange);
  color: var(--scopeInk);
  font-family: var(--scopeMono);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.ashby-job-board-back-to-all-jobs-button::after {
  content: "Open roles";
}
.ashby-job-board-back-to-all-jobs-button svg,
.ashby-job-board-back-to-all-jobs-button path {
  fill: currentColor;
}
.ashby-job-board-back-to-all-jobs-button:hover {
  background-color: var(--scopeCream);
}
.ashby-job-board-back-to-all-jobs-button:focus-visible {
  outline: 2px solid var(--scopeCream);
  outline-offset: 3px;
}

/* The title sits in a centred column. Negative side margins stretch it to
   both screen edges and matching padding keeps the text where it was. The
   negative top margin pulls it up over a gap Ashby leaves above the title. */
.ashby-job-posting-heading {
  margin: -40px calc(50% - 50vw) 0;
  padding: 40px calc(50vw - 50%) 72px;
  color: var(--scopeCream);
  font-family: var(--fontFamily);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Role page: details column ---------- */

.ashby-job-posting-left-pane {
  border: 0;
  background-color: transparent;
  box-shadow: none;
}
.ashby-job-posting-left-pane h2 {
  color: var(--scopeMuted);
  font-family: var(--scopeMono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ashby-job-posting-left-pane p {
  color: var(--scopeInk);
  font-size: 17px;
}

/* ---------- Role page: tabs and description ---------- */

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-family: var(--scopeMono);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ashby-job-posting-right-pane-tab-slider {
  background-color: var(--scopeOrange);
}

.ashby-job-posting-description-container {
  background-color: transparent;
  box-shadow: none;
}
.ashby-job-posting-description {
  color: var(--scopeInk);
  font-size: 17px;
  line-height: 1.6;
}
.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3 {
  margin: 40px 0 12px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ashby-job-posting-description a {
  color: var(--scopeOrange);
}

/* ---------- Buttons: apply, upload, submit ---------- */

.ashby-job-posting-right-pane button,
.ashby-application-form-submit-button {
  border-color: var(--scopeInk);
  border-radius: 2px;
  background-color: var(--scopeInk);
  box-shadow: none;
  color: var(--scopeCream);
  font-family: var(--scopeMono);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ashby-job-posting-right-pane button:hover,
.ashby-application-form-submit-button:hover {
  border-color: var(--scopeOrange);
  background-color: var(--scopeOrange);
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  /* Plain black band on phones; the gradient is desktop only. */
  .ashby-job-posting-header,
  .ashby-job-posting-heading {
    background-image: none;
  }
  /* On phones Ashby makes the Overview / Application tabs sticky, leaving room
     above them for its own sticky header. This theme lets that header scroll
     away, so the tabs stick to the very top instead. */
  .ashby-job-posting-right-pane nav {
    top: 0;
    border-bottom: 1px solid var(--scopeLine);
    background-color: var(--scopeCream);
    box-shadow: none;
  }
  .ashby-job-posting-header ul {
    gap: 48px;
  }
  .ashby-job-board-heading {
    font-size: 36px;
  }
  .ashby-job-posting-heading {
    padding-bottom: 40px;
    font-size: 40px;
  }
  .ashby-job-posting-brief-title {
    font-size: 20px;
  }
}
