/* Defense Unicorns job board and application theme.
   Upload this file under Admin > Job Boards > Theme (Job Board) > Custom CSS. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Martian+Mono:wght@300;400;600&family=Teko:wght@600;700&display=swap");

/* The approved wordmark, scaled without distorting its proportions. */
img[src*="/org-theme-wordmark/"] {
  width: 412px;
  height: auto;
  max-width: 90vw;
  max-height: none;
}

/* Board title and posting count. */
.ashby-job-board-heading {
  padding-top: 48px;
  color: #021f49;
  font-family: "Teko", Impact, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.ashby-job-board-heading-count {
  display: inline-block;
  margin: 0 0 0 8px;
  color: #021f49;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
}

/* Department headings. Target both the heading and Ashby's inner span. */
.ashby-department-heading,
.ashby-department-heading-level {
  color: #021f49;
  font-family: "Teko", Impact, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.ashby-department-heading {
  margin-top: 56px;
}

/* Small labels and listing details retain Ashby's default grays. */
.ashby-job-board-filters-label {
  color: #6b7280;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Quieter controls, with Ashby's native select arrow and keyboard behavior. */
.ashby-job-board-filter {
  color: #021f49;
  background-color: #ffffff;
  border: 1px solid rgba(2, 31, 73, 0.24);
  border-radius: 8px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

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

.ashby-job-board-filter:focus-visible {
  border-color: #002d82;
  outline: 2px solid #002d82;
  outline-offset: 2px;
}

.ashby-job-posting-brief-details {
  margin-top: 6px;
  color: #545b6d;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}

/* Keep Ashby's plain text listings; round only their existing hover surface. */
.ashby-job-posting-brief,
.ashby-job-posting-brief:hover,
.ashby-job-posting-brief:focus-within {
  border-radius: 14px;
}

.ashby-job-posting-brief {
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ashby-job-posting-brief:hover,
.ashby-job-posting-brief:focus-within {
  background-color: rgba(31, 223, 255, 0.08);
  box-shadow: 0 5px 14px rgba(2, 31, 73, 0.08);
  transform: translateY(-2px);
}

/* Position detail page: keep the title strong without changing job copy. */
.ashby-job-posting-heading {
  padding-top: 48px;
  margin-bottom: 28px;
  color: #021f49;
  font-family: "Teko", Impact, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Ashby exposes the sidebar pane, but not separate classes for its labels. */
.ashby-job-posting-left-pane h2 {
  color: #545b6d;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-family: "Teko", Impact, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.ashby-job-posting-right-pane-tab-slider {
  background-color: #002d82;
}

.ashby-job-posting-right-pane a[aria-selected="false"]:hover {
  border-bottom: 2px solid #021f49 !important;
}

/* Rich-text section headings are smaller, stronger, and easier to scan. */
.ashby-job-posting-description h1 {
  margin-top: 32px !important;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ashby-job-posting-description h1 strong {
  font-weight: 700;
}

.ashby-job-posting-description h3 {
  margin-top: 32px !important;
}

.ashby-job-posting-right-pane button {
  box-shadow: none !important;
  font-family: "Martian Mono", "Courier New", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.14px;
  text-transform: uppercase;
}

/* Secondary upload actions are smaller and lighter than Submit Application. */
.ashby-job-posting-right-pane .ashby-application-form-autofill-input-base-layer button,
.ashby-job-posting-right-pane .ashby-application-form-input-file-dropzone-upload {
  font-size: 12px;
  border-width: 1px !important;
}

/* Application validation summary, on desktop and mobile. */
.ashby-application-form-container > [role="alert"] {
  padding: 32px 24px 28px !important;
  background-color: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #e53600 !important;
  box-shadow: none !important;
}

.ashby-application-form-container > [role="alert"] > h2 {
  color: #e53600 !important;
  font-family: "Teko", Impact, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
}

.ashby-application-form-container > [role="alert"] li,
.ashby-application-form-container > [role="alert"] li p {
  color: #374151 !important;
}

.ashby-application-form-container > [role="alert"] li button {
  color: #1f2937 !important;
  font-family: "Inter", Arial, sans-serif;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: none !important;
  text-transform: none;
}

.ashby-application-form-container > [role="alert"] li button:hover,
.ashby-application-form-container > [role="alert"] li button:focus-visible {
  color: #002d82 !important;
}

/* Ashby's 16px description text is reduced slightly for denser reading. */
.ashby-job-posting-description p,
.ashby-job-posting-description li {
  font-size: 15px;
  line-height: 1.55;
}

.ashby-job-posting-description > p {
  margin-bottom: 16px !important;
}

@media (prefers-reduced-motion: reduce) {
  .ashby-job-posting-brief {
    transition: none;
  }
}

@media (max-width: 640px) {
  img[src*="/org-theme-wordmark/"] {
    content: url("https://app.ashbyhq.com/api/images/org-theme-logo/6a8b3a3f-6e16-444d-a0da-55ede02bd160/db7ba82e-576b-4adc-9f3e-3342e2c72222/fa1670d7-0160-43e6-b324-0ea819e55448.png");
    width: 64px;
    height: 64px;
    max-width: none;
    object-fit: contain;
  }

  .ashby-job-posting-brief {
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* Remove raised mobile surfaces around position details and form content. */
  .ashby-job-posting-left-pane,
  .ashby-job-posting-right-pane nav[role="tablist"],
  .ashby-job-posting-description-container,
  .ashby-application-form-container {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Ashby's resume autofill keeps a two-column grid at phone widths. */
  .ashby-application-form-autofill-input-base-layer > div {
    grid-template-areas: "header" "description" "cta" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
  }

  .ashby-application-form-autofill-input-base-layer > div > div:last-child {
    width: 100%;
    margin-top: 12px;
  }

  .ashby-application-form-autofill-input-base-layer button {
    width: 100%;
    justify-content: center;
  }

  /* Keep Ashby's absolute underline anchored while the tabs scroll away. */
  .ashby-job-posting-right-pane nav[role="tablist"] {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
  }

  .ashby-job-board-heading {
    padding-top: 36px;
    font-size: 36px;
  }

  .ashby-department-heading,
  .ashby-department-heading-level {
    font-size: 26px;
  }

  .ashby-job-posting-heading {
    padding-top: 32px;
    margin-bottom: 20px;
    font-size: 32px;
  }

  .ashby-job-posting-right-pane-overview-tab,
  .ashby-job-posting-right-pane-application-tab {
    font-size: 22px;
  }
}

@media (max-width: 640px) and (hover: hover) {
  .ashby-job-posting-brief:hover {
    background-color: rgba(31, 223, 255, 0.08) !important;
    box-shadow: 0 5px 14px rgba(2, 31, 73, 0.08) !important;
    transform: translateY(-2px) !important;
  }
}

/* Hero Blue header on position details and application pages. */
.ashby-job-posting-header {
  background-color: #002d82 !important;
}

.ashby-job-posting-header .ashby-job-board-back-to-all-jobs-button {
  color: #ffffff !important;
}

.ashby-job-posting-header .ashby-job-board-back-to-all-jobs-button svg,
.ashby-job-posting-header .ashby-job-board-back-to-all-jobs-button svg path {
  fill: #ffffff !important;
}

/* The logo's sticky header wrapper on listings and position pages. */
div:has(> ul > li > a > img[src*="/org-theme-wordmark/"]) {
  background-color: #002d82 !important;
  height: auto !important;
}

div:has(> ul > li > a > img[src*="/org-theme-wordmark/"]) > ul {
  height: auto !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

