/* ---------- JD TALENT: dark editorial job-ticker theme ---------- */

:root {
  --bg: #131310;
  --bg-raise: #1b1b16;
  --bg-card: #201f19;
  --ink: #f2f0e6;
  --ink-soft: #b3b0a1;
  /* Lifted from #7d7a6c (4.3:1, at the WCAG floor) to 5.4:1. This colour
     carries locations, dates and labels, half of every job card. */
  --ink-faint: #8d8a7b;
  --line: #2e2d25;
  --line-strong: #3d3b30;
  --lime: #ffb224;
  --lime-ink: #131310;
  --lime-dim: rgba(255, 178, 36, .14);
  --lime-hover: #ffc251;
  --hero-glow: rgba(255, 178, 36, .10);
  --mercor: #b1a4ff;
  --micro: #7fd8e8;
  --handshake: #ff9ecb;
  --sa: #ffc46b;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

::selection { background: var(--lime); color: var(--lime-ink); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--lime);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .14em;
}
.header-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 18px;
}
.site-nav { margin-left: auto; display: flex; gap: 22px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--lime); }

/* ---------- Ticker strip ---------- */

.ticker {
  background: var(--lime);
  color: var(--lime-ink);
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
}
.tick b { font-weight: 700; }
.tick-sep { opacity: .35; }
.tick-live { display: inline-flex; align-items: center; gap: 7px; }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime-ink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Board layout: jobs are the first screen ---------- */

.board-wrap { padding: 14px 0 34px; }
/* The board now sits below a hero rather than at the top of the page, so its
   heading needs room and the panel is shortened to match: heading plus panel
   should still fit one screen once the board is scrolled to. */
.board-head { margin-bottom: 14px; }
.board-head .strip-title { margin-bottom: 6px; }
.board-head .strip-note { margin: 0; }
.board-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Sidebar. Deliberately not sticky: the wheel over this column should move
   the page, which is the half of the split the job panel does not handle. */
.board-side { align-self: start; }
.board-headline {
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.board-headline em {
  font-style: normal;
  color: var(--lime);
}
.board-sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Sidebar call to action: the board is a sample, so there has to be a way to
   ask for what is not on it. */
.side-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.side-cta .btn-primary,
.side-cta .btn-ghost {
  padding: 9px 14px;
  font-size: 13.5px;
  border-radius: 9px;
}

.side-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.side-filters { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.side-filters .side-label { margin-bottom: 2px; }

.chip {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-weight: 600;
}
.chip-n {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .65;
}
.chip-n:empty { display: none; }

.side-sort { margin-top: 26px; }
#job-sort {
  font-family: var(--font-display);
  font-size: 14px;
  background: var(--bg-raise);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
}

/* Board */
/* The panel is one viewport tall and split into three rows: toolbar, the
   scrolling list, and the pager. Only the middle row scrolls, so the wheel
   over a card moves the list while the wheel over the sidebar moves the page.
   The pager sits outside the scrolling row, which is what stops it from
   being welded to a half-cut card the way an inner scroller did before. */
.board {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-raise);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* dvh so mobile browser chrome does not push the pager off screen.
     The subtracted figure is the header, ticker and the wrap's top padding. */
  height: calc(100vh - 132px);
  height: calc(100dvh - 132px);
  min-height: 420px;
}
.board-toolbar, .pager { flex: 0 0 auto; }
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.search-wrap { position: relative; flex: 1; }
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}
#job-search {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#job-search::placeholder { color: var(--ink-faint); }
#job-search:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.result-count,
.board-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}
/* Separated from the result count, which changes as you filter, while these
   describe the board as a whole. */
.board-stats {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.board-stats b { color: var(--lime); font-weight: 700; }

/* The only scrolling region on the board. min-height:0 is what lets a flex
   child shrink below its content and actually scroll; without it the panel
   grows to fit every card and the page scrolls instead.
   overscroll-behavior stops the page from taking over once the list bottoms
   out, so the wheel does not jump to the footer mid-list. */
.job-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Below the list's min-width the row scrolls sideways instead of being
     clipped by the panel, which was cutting "ref $3,000" to "ref $3,00". */
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
}
.job-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.job-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid var(--bg-raise);
}

/* A row needs this much to show a readable title beside its five columns.
   Narrower than this and the panel scrolls rather than truncating further. */
.job-list { display: flex; flex-direction: column; min-width: 780px; }

/* One line per role. Stacking the title over its tags cost 28px a row, which
   is most of a screen across a page of 80. The title takes the space it needs
   and truncates; the tags hold their width on the right. */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .12s;
}
.job-card:hover { background: var(--bg-card); }
.job-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.job-title {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  min-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-new { margin-left: 8px; }
.job-card:hover .job-title { color: var(--lime); }
.badge-new {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 1px 7px;
  border-radius: 99px;
}
/* Three fixed columns, so network, location and pay line up down the list
   rather than shifting with the length of whatever sits next to them. */
.job-tags {
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  /* Column widths must follow the DOM order buildCard uses: network,
     location, pay, posted, referral. Getting those last two the wrong way
     round put "ref $3,000" in the date column, where it silently truncated to
     "ref $3,00" with no overflow to scroll to. Pay is widest because a salary
     range spends every character ("$180,000 - $230,000 / year"); location is
     squeezed hardest, being "Remote" on most rows, and truncates with the
     full text on hover. */
  grid-template-columns: 84px 92px 186px 62px 92px;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.tag-loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-source { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-source.mercor    { color: var(--mercor); }
.tag-source.micro     { color: var(--micro); }
.tag-source.handshake { color: var(--handshake); }
.tag-source.sa        { color: var(--sa); }
.tag-pay { color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; }
.tag-posted { text-align: right; white-space: nowrap; opacity: .8; }

/* The referral fee the platform pays us. Labelled rather than bare, so it is
   never mistaken for part of the rate next to it. */
.tag-bonus {
  /* Deliberately not clipped: an amount is either shown in full or the column
     is wrong, and a visible overflow makes that obvious instead of quiet. */
  text-align: right;
  white-space: nowrap;
  color: var(--lime);
  font-weight: 700;
}
.tag-bonus i { font-style: normal; color: var(--ink-faint); font-weight: 400; }

.job-apply {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lime-ink);
  background: var(--lime);
  border-radius: 8px;
  padding: 9px 16px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .15s, transform .15s;
}
.job-card:hover .job-apply { opacity: 1; transform: none; }

.scroll-sentinel { height: 4px; }

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state p { margin-bottom: 16px; }
.btn-reset {
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
}
.btn-reset:hover { background: var(--lime); color: var(--lime-ink); }

/* ---------- Lower strips ---------- */

.strip-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.strip-title::before {
  content: "▞ ";
  color: var(--lime);
}

.how-section {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--bg-raise);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
}
.step h3 { margin: 8px 0 6px; font-size: 17px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

.networks-section {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
}
.strip-note {
  max-width: 620px;
  margin: -14px 0 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.network-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-raise);
}
.network-card h3 { font-size: 16px; margin-bottom: 6px; }
.network-card p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .brand-name { font-size: 14px; }
.footer-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  max-width: 640px;
}

/* ---------- Responsive ---------- */

/* Between these widths the sidebar is the cheapest thing to shrink: it buys
   the panel enough room to show a whole row without scrolling sideways. */
@media (max-width: 1240px) {
  .board-grid { grid-template-columns: 236px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 960px) {
  .board-grid { grid-template-columns: 1fr; gap: 24px; }
  .board-side { position: static; }
  /* Stacked on a phone there is no second column to scroll independently, so
     the panel goes back to its natural height and the page does the scrolling. */
  .board { height: auto; min-height: 0; }
  .job-scroll { overflow-y: visible; }
  .board-headline br { display: none; }
  .side-filters { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side-filters .side-label { width: 100%; }
  .side-sort { margin-top: 16px; }
  .steps, .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-stats { display: none; }
  .header-tag { display: none; }
}
@media (max-width: 560px) {
  .steps, .network-grid { grid-template-columns: 1fr; }
  .job-apply { opacity: 1; transform: none; padding: 8px 12px; }
  /* Too narrow for title and tags side by side, so go back to two lines. */
  .job-main { display: block; }
  .job-list { min-width: 0; }
  .job-title { white-space: normal; min-width: 0; }
  .job-tags { margin-left: 0; margin-top: 5px; display: flex; gap: 12px;
               flex-wrap: wrap; }
  .tag-pay { text-align: left; }
  .result-count { display: none; }
}

/* ---------- Employers page ---------- */

.emp-hero {
  border-bottom: 1px solid var(--line);
  padding: 56px 0 52px;
  background:
    radial-gradient(900px 380px at 8% -10%, var(--hero-glow), transparent 60%),
    var(--bg);
}
.emp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 40px;
  align-items: start;
}
/* Grid child: min-width:0 stops long words forcing the column wider than
   its track, which would push the panel off-screen. */
.emp-hero-copy { min-width: 0; }

.emp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}
.emp-title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.emp-title em {
  font-style: normal;
  color: var(--lime);
}
.emp-lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.emp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.emp-microcopy {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.emp-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raise);
  padding: 24px;
}
.emp-panel-title {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.emp-facts > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.emp-facts > div:first-child { border-top: 0; padding-top: 0; }
.emp-facts dt {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--lime);
  margin-bottom: 3px;
}
.emp-facts dd { font-size: 14px; color: var(--ink); }

.emp-pricing {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--bg-raise);
}
.price-card-main { border-color: var(--line-strong); background: var(--bg-card); }
.price-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.price-figure {
  margin: 10px 0 18px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1.06;
}
.price-figure span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.price-list { list-style: none; }
.price-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.price-list li:first-child { border-top: 0; }
.price-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
}
.price-notes h3 { font-size: 16px; margin-bottom: 14px; }
.faq > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.faq > div:first-child { border-top: 0; padding-top: 0; }
.faq dt { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.faq dd { font-size: 13.5px; color: var(--ink-soft); }

.emp-contact {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  background:
    radial-gradient(700px 300px at 90% 120%, var(--hero-glow), transparent 60%),
    var(--bg);
}
.emp-contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.emp-contact-title {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}
.emp-contact-sub {
  margin-top: 10px;
  max-width: 52ch;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.emp-contact-cta { text-align: right; }
.emp-contact-cta .emp-microcopy { text-align: right; }
.site-footer .footer-note a { color: var(--ink-soft); }

@media (max-width: 900px) {
  .emp-hero-inner,
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .emp-contact-cta,
  .emp-contact-cta .emp-microcopy { text-align: left; }
}

/* Employer link in the job-board nav: the one route from candidate side to
   the employer pitch, so it should not read as just another nav item. */
.site-nav a.nav-cta {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--lime);
}
.site-nav a.nav-cta:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

@media (max-width: 560px) {
  .emp-title br { display: none; }
  .emp-actions .btn-primary,
  .emp-actions .btn-ghost { flex: 1 1 100%; text-align: center; }
}

/* ---------- Pagination ---------- */

.pager {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
/* Whatever card the scroll boundary lands on gets cut. Fading it into the
   panel above the pager makes that read as "more below" instead of a
   half-drawn row. */
.pager::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 36px;
  background: linear-gradient(to top, var(--bg-raise), transparent);
  pointer-events: none;
}
.pager:empty { display: none; }
.pg {
  min-width: 36px;
  padding: 7px 11px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pg:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.pg.current {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}
.pg:disabled { opacity: .35; cursor: default; }
.pg-gap { color: var(--ink-faint); padding: 0 2px; font-size: 13px; }
