[data-hdjv-config][hidden], [data-hdjv-job][hidden], .hdjv-aside[hidden],
.hdjv-surface[hidden], .hdjv-empty[hidden], .hdjv-dialog:not([open]) {
  display: none !important;
}

.hdjv-surface, .hdjv-empty, .hdjv-dialog {
  box-sizing: border-box;
  color: #183748;
  font: 16px/1.55 system-ui, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}

.hdjv-surface {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: inherit;
  background: #fff;
}

.hdjv-top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 16px;
  background: #f5f8fa;
  border-bottom: 1px solid #d7e2e9;
}

:is(.hdjv-surface, .hdjv-empty) .hdjv-heading {
  margin: 0;
  color: #12384d;
  font: 750 17px/1.35 system-ui, sans-serif;
}

.hdjv-surface .hdjv-close, .hdjv-surface .hdjv-full {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #12384d;
  border-radius: 8px;
  background: #fff;
  color: #12384d;
  font: 700 15px/1.4 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  cursor: pointer;
}

.hdjv-surface .hdjv-close:hover {
  background: #edf3f6;
}

.hdjv-surface .hdjv-full {
  margin: 0 0 16px;
  border-color: #cf192a;
  background: #cf192a;
  color: #fff;
}

.hdjv-surface .hdjv-full:hover {
  border-color: #af1323;
  background: #af1323;
  color: #fff;
}

.hdjv-surface :is(.hdjv-heading, .hdjv-close, .hdjv-full):focus-visible {
  outline: 3px solid #087c86;
  outline-offset: 3px;
}

.hdjv-body {
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.hdjv-surface .hdjv-title {
  margin: 0 0 6px;
  color: #12384d;
  font: 750 clamp(21px, 3vw, 27px)/1.2 system-ui, sans-serif;
}

.hdjv-surface .hdjv-summary, .hdjv-surface .hdjv-status {
  margin: 0 0 12px;
  color: #425c6c;
}

.hdjv-surface .hdjv-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.hdjv-flags > li {
  padding: 3px 8px;
  border: 1px solid #d7e2e9;
  border-radius: 6px;
  background: #f5f8fa;
  color: #12384d;
  font: 650 13px/1.35 system-ui, sans-serif;
}

.hdjv-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.hdjv-fact {
  min-width: 0;
  padding: 7px 9px;
  background: #f5f8fa;
  border-radius: 6px;
}

.hdjv-fact dt {
  color: #425c6c;
  font-size: 13px;
  font-weight: 700;
}

.hdjv-fact dd {
  margin: 0;
}

.hdjv-surface .hdjv-description-heading {
  margin: 0 0 8px;
  color: #12384d;
  font: 750 18px/1.35 system-ui, sans-serif;
}

.hdjv-surface .hdjv-description {
  margin: 0;
  white-space: pre-wrap;
}

.hdjv-surface .hdjv-truncated {
  margin: 8px 0 0;
  color: #425c6c;
  font-size: 14px;
}

.hdjv-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hdjv-dialog {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 88vh;
  max-height: 88dvh;
  margin: 0;
  padding: 0;
  border: 1px solid #a7bdca;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -10px 32px #12384d33;
  overflow: hidden;
}

.hdjv-dialog .hdjv-body {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.hdjv-dialog::backdrop {
  background: rgb(14 39 54 / 62%);
}

html.hdjv-modal-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  div.job_listings.hdjv-ready {
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    align-items: start;
    column-gap: clamp(14px, 2vw, 24px);
  }

  div.job_listings.hdjv-ready > :not(ul.job_listings):not(.hdjv-aside) {
    grid-column: 1 / -1;
  }

  div.job_listings.hdjv-ready > ul.job_listings {
    grid-column: 1;
    min-width: 0;
  }

  div.job_listings.hdjv-ready > .hdjv-aside {
    position: sticky;
    top: calc(90px + var(--wp-admin--admin-bar--height, 0px));
    grid-column: 2;
    min-width: 0;
    /* Reserve identical space for the empty and selected states. */
    height: clamp(11rem, calc(100vh - 110px - var(--wp-admin--admin-bar--height, 0px)), 38rem);
    height: clamp(11rem, calc(100dvh - 110px - var(--wp-admin--admin-bar--height, 0px)), 38rem);
    margin: 0;
  }

  .hdjv-aside > :is(.hdjv-surface, .hdjv-empty) {
    max-height: 100%;
    border: 1px solid #a7bdca;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px #12384d14;
    overflow: hidden;
  }

  .hdjv-empty {
    padding: 18px 20px;
    background: #f5f8fa;
  }

  .hdjv-empty > p {
    margin: 6px 0 0;
    color: #425c6c;
  }

  body div.job_listings.hdjv-ready[data-post_id] > ul.job_listings > li.job_listing > a {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: start;
    padding: 14px !important;
  }

  body div.job_listings.hdjv-ready[data-post_id] > ul.job_listings > li.job_listing > a > img.company_logo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 48px;
    height: 44px;
  }

  body div.job_listings.hdjv-ready[data-post_id] > ul.job_listings > li.job_listing > a > :is(.position, .location, ul.meta) {
    grid-column: 2;
    text-align: left;
  }

  div.job_listings.hdjv-ready > ul.job_listings > li[data-hdjv-current] > a {
    outline: 2px solid #087c86;
    outline-offset: -3px;
    background: #edf6f7;
  }

  .hdjv-aside .hdjv-body {
    padding: 18px 20px;
  }
}
