/* Echelon careers — adapted from the supplied Inter / Manrope design system.
   Upload this file in Ashby > Job Board Options > Custom CSS.
   Brand Color: #0B314C | Brand Color (Dark): #07243A
   Plain CSS: no Tailwind build or app-relative /fonts assets required.
   Font sizes use pixel values and media queries for upload compatibility.
   Public hooks: https://www.ashbyhq.com/job_board_example_css/full-job-board.css
   Structural :has() rules use the public hooks and verified Echelon logo markup.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ec-atlantic: #0b314c;
  --ec-atlantic-dark: #07243a;
  --ec-background: #ffffff;
  --ec-card: #ffffff;
  --ec-text: #262626;
  --ec-muted: #626974;
  --ec-border: #e5e7eb;
  --ec-hover: #f4f8fb;
  --ec-heading: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ec-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --colorAppBackground: var(--ec-background);
  --colorPrimary600: var(--ec-atlantic);
  --colorPrimary900: var(--ec-atlantic-dark);
  --fontFamily: var(--ec-heading);
  --widthMaxContent: 1040px;
  --widthMaxJobBoard: 880px;
  --widthMaxSubscriptionPreferences: 640px;
  --borderRadiusContainer: 12px;
  --borderRadiusControl: 8px;
  --borderRadiusButton: 8px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Align the heading, filters, and roles to the same content edge. */
div:has(> .ashby-job-board-heading) {
  margin: 12px 24px 0;
}
div:has(> .ashby-department-heading) {
  margin-left: 12px;
  margin-right: 12px;
}

/* Keep the uploaded artwork, at a scale that leaves the roles in focus. */
img[alt='Echelon'][src*='/org-theme-wordmark/'] {
  width: 196px;
  height: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

/* Listing masthead only; the posting page retains its native back navigation. */
body:has(.ashby-job-board-heading) ul:has(> li > a > img[alt='Echelon']) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--widthMaxJobBoard);
  min-height: 100px;
  margin: 0 auto;
  padding: 24px;
}

:root .ashby-job-board-heading,
:root .ashby-job-posting-heading {
  color: var(--ec-text);
  font-family: var(--ec-heading);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

:root .ashby-job-board-heading {
  margin: 16px 0 28px;
  font-size: 32px;
  font-weight: 500;
}

/* Keep the live result count available to assistive technology, not visible. */
:root .ashby-job-board-heading-count {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:root .ashby-job-board-filters-label {
  color: var(--ec-muted);
  font-family: var(--ec-heading);
  font-size: 12px;
  font-weight: 500;
}

/* These parents have no public class; anchor only to the supported select hook.
   Native mobile filter disclosure remains controlled by Ashby. */
@media (min-width: 800px) {
  div:has(> div > .ashby-job-board-filter) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  div:has(> .ashby-job-board-filter) {
    width: auto;
    min-width: 0;
  }
}

:root .ashby-job-board-filter {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 32px 11px 13px;
  border: 0;
  border-bottom: 1px solid #b1b7bf;
  border-radius: 0;
  background-color: var(--ec-card);
  color: var(--ec-text);
  font-family: var(--ec-heading);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 150ms ease;
}

:root .ashby-job-board-filter:hover {
  border-color: var(--ec-atlantic);
}

:root .ashby-job-board-reset-filters-label {
  color: var(--ec-atlantic);
  font-family: var(--ec-heading);
  font-size: 12px;
}

:root .ashby-department-heading,
:root .ashby-department-heading-level {
  color: var(--ec-text);
  font-family: var(--ec-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-transform: none;
}

:root .ashby-department-heading {
  margin: 30px 0 14px;
}

:root .ashby-job-posting-brief-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ec-border);
}

:root .ashby-job-posting-brief-list > a {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
}

:root .ashby-job-posting-brief {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--ec-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 150ms ease;
}


:root .ashby-job-posting-brief-list > a:hover .ashby-job-posting-brief,
:root .ashby-job-posting-brief-list > a:focus-visible .ashby-job-posting-brief {
  background-color: #fafafa;
  box-shadow: none;
}

:root .ashby-job-posting-brief-title {
  margin: 0 0 9px;
  color: var(--ec-atlantic);
  font-family: var(--ec-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

:root .ashby-job-posting-brief-details,
:root .ashby-job-posting-brief-details p {
  color: var(--ec-muted);
  font-family: var(--ec-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

:root .ashby-job-posting-brief-details p {
  margin: 0;
}

:root .ashby-job-posting-brief-details p + p {
  margin-top: 5px;
  padding: 0;
  background: transparent;
  color: var(--ec-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Details and application: the same fonts, cards, and control sizing. */
:root .ashby-job-posting-left-pane {
  align-self: start;
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  background-color: var(--ec-card);
  box-shadow: none;
}

:root .ashby-job-posting-description-container,
:root .ashby-application-form-section-container {
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  background-color: var(--ec-card);
  box-shadow: none;
}

:root .ashby-job-posting-description,
:root .ashby-job-posting-description p,
:root .ashby-job-posting-description li {
  color: #40464f;
  font-family: var(--ec-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: break-word;
}

:root .ashby-job-posting-description :is(h1, h2, h3) {
  margin-top: 1.6em;
  color: var(--ec-text);
  font-family: var(--ec-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

:root .ashby-job-posting-description a {
  color: var(--ec-atlantic);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:root .ashby-application-form-question-title,
:root .ashby-application-form-section-header-title {
  color: var(--ec-text);
  font-family: var(--ec-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

:root .ashby-application-form-input-text,
:root .ashby-application-form-input-textarea,
:root .ashby-application-form-input-dropdown-select,
:root .ashby-application-form-input-autocomplete {
  min-height: 46px;
  font-family: var(--ec-heading);
  font-size: 16px;
}

:root .ashby-application-form-submit-button {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--ec-heading);
  font-size: 15px;
  font-weight: 500;
}

:root .ashby-job-board-filter:focus-visible,
:root .ashby-job-board-reset-filters-label:focus-visible,
:root .ashby-job-posting-brief-list > a:focus-visible,
:root .ashby-job-board-back-to-all-jobs-button:focus-visible,
:root .ashby-application-form-submit-button:focus-visible,
:root .ashby-application-form-container :is(input, textarea, select, button):focus-visible {
  outline: 2px solid var(--ec-atlantic);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  :root .ashby-job-posting-heading {
    font-size: 28px;
  }
  body:has(.ashby-job-board-heading) ul:has(> li > a > img[alt='Echelon']) {
    min-height: 88px;
    padding: 22px 24px;
  }
  img[alt='Echelon'][src*='/org-theme-wordmark/'] {
    width: 168px;
    max-height: 44px;
  }
  :root .ashby-job-board-heading {
    gap: 10px;
    margin: 12px 0 24px;
    font-size: 28px;
  }
  :root .ashby-department-heading {
    margin-top: 24px;
  }
  :root .ashby-job-posting-brief {
    padding: 24px 0;
  }
  :root .ashby-job-posting-brief-title {
    font-size: 18px;
    letter-spacing: -0.02em;
  }
  /* Native selects keep a 16px type size to avoid iOS focus zoom. */
  :root .ashby-job-board-filter {
    font-size: 16px;
  }
}

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