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

:root {
  --bg: #131310;
  --bg-raise: #1b1b16;
  --bg-card: #201f19;
  --ink: #f2f0e6;
  --ink-soft: #b3b0a1;
  --ink-faint: #7d7a6c;
  --line: #2e2d25;
  --line-strong: #3d3b30;
  --lime: #ffb224;
  --lime-ink: #131310;
  --lime-dim: rgba(255, 178, 36, .14);
  --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: 28px 0 56px; }
.board-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Sidebar */
.board-side { position: sticky; top: 24px; }
.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);
}

.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 */
.board {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-raise);
  overflow: hidden;
}
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  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 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* Scrollable list — fills the viewport */
.job-scroll {
  height: calc(100vh - 210px);
  min-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.job-scroll::-webkit-scrollbar { width: 10px; }
.job-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid var(--bg-raise);
}

.job-list { display: flex; flex-direction: column; }

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 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; }
.job-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.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;
}
.job-tags {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.tag-source { font-weight: 700; }
.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; }

.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;
}
.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 ---------- */

@media (max-width: 960px) {
  .board-grid { grid-template-columns: 1fr; gap: 24px; }
  .board-side { position: static; }
  .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; }
  .job-scroll { height: 68vh; }
  .steps, .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-tag { display: none; }
}
@media (max-width: 560px) {
  .steps, .network-grid { grid-template-columns: 1fr; }
  .job-apply { opacity: 1; transform: none; padding: 8px 12px; }
  .result-count { display: none; }
}
