/* The Search Jobs page, matching jobfairx.com/jobs. Every rule sits under .jb-page so the site's older styles stay out. */
.jb-page {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e6e9ef;
  --bg: #f6f8fc;
  --white: #fff;
  --green: #0f9d58;
  --green-soft: #e9f7ef;
  display: block;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 70vh;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
}
.jb-page * {
  box-sizing: border-box;
  font-family: inherit;
  letter-spacing: inherit;
}
.jb-page [hidden] {
  display: none !important;
}
.jb-page .jb-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.jb-page .jb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Search band ---- */
.jb-page .jb-searchbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 18px;
}
.jb-page .jb-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
}
.jb-page .jb-field-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.jb-page .jb-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
}
.jb-page .jb-field:focus-within {
  border-color: var(--blue);
}
.jb-page .jb-fico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}
.jb-page .jb-searchbar .jb-field input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
}
/* The site's own inputs draw a blue underline on focus. */
.jb-page .jb-searchbar .jb-field input:focus,
.jb-page .jb-searchbar .jb-field input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}
.jb-page .jb-searchbar .jb-field input::placeholder {
  color: var(--muted);
  font-weight: 400;
  opacity: 1;
}
.jb-page .jb-field input::-webkit-search-cancel-button {
  display: none;
}
.jb-page .jb-clear {
  flex: 0 0 auto;
  display: inline-flex;
  margin: 0;
  padding: 4px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.jb-page .jb-clear svg {
  width: 16px;
  height: 16px;
}
.jb-page .jb-clear:hover {
  color: var(--ink);
}
.jb-page .jb-btn-search {
  flex: 0 0 auto;
  height: 52px;
  margin: 0;
  padding: 0 30px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
}
.jb-page .jb-btn-search:hover {
  background: var(--blue-dark);
}

.jb-page .jb-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  max-height: 288px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.jb-page .jb-dropdown-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  color: var(--slate);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.jb-page .jb-dropdown-item:last-child {
  border-bottom: 0;
}
.jb-page .jb-dropdown-item:hover {
  background: #f1f5fb;
  color: var(--ink);
}
.jb-page .jb-dropdown-item.jb-place {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jb-page .jb-dropdown-item.jb-place svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
}
.jb-page .jb-addr-main {
  color: var(--ink);
}
.jb-page .jb-addr-sub {
  color: var(--muted);
  margin-left: 5px;
}

/* ---- Job list ---- */
.jb-page .jb-body {
  padding: 22px 24px 64px;
}
.jb-page .jb-split {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.jb-page .jb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jb-page .jb-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.jb-page .jb-card:hover {
  border-color: #c9d3e6;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.jb-page .jb-card.jb-sel {
  border-color: var(--blue);
  box-shadow: 0 0 0 1.5px var(--blue) inset;
}
.jb-page .jb-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.jb-page .jb-badge-new {
  display: inline-flex;
  align-items: center;
  background: #fceef5;
  color: #c02566;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}
.jb-page .jb-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.jb-page .jb-title a,
.jb-page .jb-title a:hover,
.jb-page .jb-title a:focus {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.jb-page .jb-co {
  font-size: 14px;
  color: var(--slate);
  margin-top: 4px;
}
.jb-page .jb-loc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.jb-page .jb-loc svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.jb-page .jb-pay {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-top: 6px;
}
.jb-page .jb-type {
  font-size: 13.5px;
  color: var(--slate);
  margin-top: 3px;
}
.jb-page .jb-est-note {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 2px 12px;
}
.jb-page .jb-posted {
  font-size: 12.5px;
  color: var(--muted);
}
/* The posted date follows the city on its line. */
.jb-page .jb-loc svg ~ .jb-posted::before {
  content: '\00B7';
  margin: 0 6px 0 2px;
}

.jb-page .jb-pager {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 0;
}
.jb-page .jb-btn-ghost,
.jb-page .jb-btn-ghost:focus {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  padding: 9px 22px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
}
.jb-page .jb-btn-ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: #f1f5fb;
}

/* ---- Detail panel ---- */
.jb-page .jb-detail {
  position: sticky;
  /* Clears the site's header bar, which pins to the top once the page scrolls. */
  top: 118px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  max-height: calc(100vh - 136px);
  display: flex;
  flex-direction: column;
}
.jb-page .jb-d-scroll {
  flex: 1;
  overflow-y: auto;
}
.jb-page .jb-d-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
  padding: 28px 30px 16px;
}
.jb-page .jb-d-content {
  padding: 0 30px 26px;
}
.jb-page .jb-d-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.jb-page .jb-d-co {
  display: block;
  font-size: 16px;
  color: var(--slate);
  margin-top: 6px;
  font-weight: 600;
}
.jb-page .jb-d-loc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.jb-page .jb-d-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 11px;
  border-radius: 8px;
  margin-top: 14px;
}
.jb-page .jb-d-cta {
  margin: 20px 0 6px;
}
.jb-page .jb-btn-primary,
.jb-page .jb-btn-primary:focus {
  background: var(--blue);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.jb-page .jb-btn-primary:hover {
  color: #fff;
  background: var(--blue-dark);
}
.jb-page .jb-btn-primary svg {
  width: 16px;
  height: 16px;
}
/* Compact sticky header, only while the detail pane is scrolled */
.jb-page .jb-d-head.jb-stuck {
  padding: 14px 30px 12px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 16px -14px rgba(15, 23, 42, 0.18);
}
.jb-page .jb-d-head.jb-stuck .jb-d-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.jb-page .jb-d-head.jb-stuck .jb-d-co,
.jb-page .jb-d-head.jb-stuck .jb-d-loc,
.jb-page .jb-d-head.jb-stuck .jb-d-pay {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  font-size: 12px;
}
.jb-page .jb-d-head.jb-stuck .jb-d-pay {
  background: none;
  padding: 0;
  border-radius: 0;
}
.jb-page .jb-d-head.jb-stuck .jb-d-meta > :not(:first-child)::before {
  content: '\00B7';
  margin: 0 7px;
  color: var(--muted);
  font-weight: 400;
}
.jb-page .jb-d-head.jb-stuck .jb-d-cta {
  margin: 10px 0 0;
}
.jb-page .jb-sec-h {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 10px;
  letter-spacing: -0.01em;
}
.jb-page .jb-d-body {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.65;
  word-break: break-word;
}
/* Feed HTML: the site's own heading, paragraph and list sizes are kept off it. */
.jb-page .jb-d-body p,
.jb-page .jb-d-body ul,
.jb-page .jb-d-body ol,
.jb-page .jb-d-body li,
.jb-page .jb-d-body h1,
.jb-page .jb-d-body h2,
.jb-page .jb-d-body h3,
.jb-page .jb-d-body h4,
.jb-page .jb-d-body h5,
.jb-page .jb-d-body h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
}
.jb-page .jb-d-body p {
  margin-bottom: 12px;
}
.jb-page .jb-d-body ul,
.jb-page .jb-d-body ol {
  list-style: none;
  margin: 0 0 12px 18px;
}
.jb-page .jb-d-body li {
  margin-bottom: 6px;
}
.jb-page .jb-d-body h1,
.jb-page .jb-d-body h2,
.jb-page .jb-d-body h3,
.jb-page .jb-d-body strong,
.jb-page .jb-d-body b {
  color: var(--ink);
}
.jb-page .jb-d-body strong,
.jb-page .jb-d-body b {
  font-weight: bolder;
}
.jb-page .jb-d-body a {
  color: var(--blue);
  font-weight: inherit;
}
.jb-page .jb-d-body img {
  max-width: 100%;
  height: auto;
}

.jb-page .jb-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 60px 0;
}

/* ---- Tablet: drop the detail panel, single column ---- */
@media (max-width: 900px) {
  .jb-page .jb-split {
    grid-template-columns: 1fr;
  }
  .jb-page .jb-detail {
    display: none;
  }
}

/* ---- Mobile (<=640px): the whole card is the tap target ---- */
@media (max-width: 640px) {
  .jb-page .jb-wrap {
    padding: 0 16px;
  }
  .jb-page .jb-body {
    padding: 18px 16px 56px;
  }
  .jb-page .jb-search-row {
    flex-direction: column;
    gap: 10px;
  }
  .jb-page .jb-field-wrap {
    flex: none;
    width: 100%;
  }
  .jb-page .jb-searchbar .jb-field input {
    font-size: 16px; /* 16px = no iOS zoom-on-focus */
  }
  .jb-page .jb-btn-search {
    display: none; /* the keyboard search key submits the form */
  }
  .jb-page .jb-card {
    position: relative;
    padding: 16px 17px;
    border-radius: 12px;
  }
  .jb-page .jb-title {
    font-size: 18px;
    line-height: 24px;
    color: #2d2d2d;
  }
  .jb-page .jb-title a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
  }
  .jb-page .jb-co,
  .jb-page .jb-loc {
    font-size: 14px;
  }
}
