/* ============================================================
   DFIR Dominican — Jobs Board: cards, filters, drawer
   ============================================================ */

/* ── Page header band ────────────────────────────────────── */
.board-head { padding: 48px 0 28px; border-bottom: 1px solid var(--line-2); }
.board-head h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; }
.board-head .lede { color: var(--text-2); font-size: 16px; max-width: 620px; margin-top: 14px; line-height: 1.6; }

.board-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.stat {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 14px 18px; background: var(--bg-surface); min-width: 130px;
}
.stat .v { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--text); }
.stat .v.cyan { color: var(--cyan); }
.stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }

/* ── Filter bar ──────────────────────────────────────────── */
.filters { position: sticky; top: var(--nav-h); z-index: 400;
  background: var(--bg-nav); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.filters-inner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box i, .search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search-box input { padding-left: 38px; height: 42px; }
.filters .select { width: auto; min-width: 124px; flex-shrink: 0; height: 42px; padding-top: 0; padding-bottom: 0; }
.filter-clear-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 13px; height: 42px;
  border-radius: var(--r-md);
  border: 1px solid rgba(0,180,230,0.45);
  background: rgba(0,180,230,0.08);
  color: var(--cyan);
  font-size: 14px; font-family: var(--font-body);
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
}
.filter-clear-btn:hover { background: rgba(0,180,230,0.16); border-color: var(--cyan); }
.filter-clear-btn i { width: 14px; height: 14px; }

.board-subbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 14px; flex-wrap: wrap; gap: 12px; }
.result-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.result-count b { color: var(--cyan); }
.sort-group { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ── Job grid ────────────────────────────────────────────── */
.job-grid { display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }

.job-card {
  display: block;
  background: var(--bg-surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 18px 20px; cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.2s var(--ease), background 0.16s var(--ease);
}
.job-card:hover { border-color: var(--line-3); transform: translateY(-2px); background: var(--bg-surface-2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,180,230,0.12); }
.job-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.job-card-score { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; }
.job-score-tier { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.job-card-main { min-width: 0; }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.job-company { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 15px; font-weight: 700; margin-top: 4px; }
.job-card-top .company-logo, .job-card-top .company-logo-fallback { width: 44px; height: 44px; border-radius: 8px; font-size: 20px; }
.company-logo { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; background: #fff; padding: 2px; flex-shrink: 0; }
.company-logo-fallback { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: var(--bg-elevated); border: 1px solid var(--line-2); color: var(--cyan); font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.job-company i { width: 14px; height: 14px; color: var(--text-3); }

.job-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.job-meta-date { margin-left: auto; }
.job-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }
.job-meta-item i { width: 14px; height: 14px; }

.job-card-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.job-salary { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--text); }
.job-salary i { width: 15px; height: 15px; color: var(--cyan); }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255,255,255,0.015); }
.job-source { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.job-source i { width: 13px; height: 13px; }

.badge i { width: 12px; height: 12px; }

.job-empty { text-align: center; padding: 70px 20px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Pagination ──────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 48px; flex-wrap: wrap; }
.pager-num, .pager-arrow {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: var(--text-2); background: var(--bg-surface);
  transition: all 0.14s var(--ease);
}
.pager-num:hover, .pager-arrow:hover:not([disabled]) { border-color: var(--line-3); color: var(--text); background: var(--bg-surface-2); }
.pager-num.on { color: var(--cyan); border-color: rgba(0,180,230,0.45); background: rgba(0,180,230,0.08); }
.pager-arrow i { width: 16px; height: 16px; }
.pager-arrow[disabled] { opacity: 0.35; cursor: not-allowed; }
.pager-info { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); margin-left: 10px; }
.pager-info b { color: var(--cyan); }
.job-empty i { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--line-3); }

@media (max-width: 640px) {
  .job-card { padding: 16px; }
  .job-card-foot { gap: 12px; }
  .job-source { margin-left: 0; }
}

/* ── Detail drawer ───────────────────────────────────────── */
#jobDrawerRoot { position: fixed; inset: 0; z-index: 800; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(3,6,10,0.7); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.25s var(--ease); }
.drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 94vw);
  background: var(--bg-page); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform 0.32s var(--ease); overflow-y: auto;
  box-shadow: -30px 0 80px rgba(0,0,0,0.5); }
#jobDrawerRoot.open { pointer-events: auto; }
#jobDrawerRoot.open .drawer-scrim { opacity: 1; }
#jobDrawerRoot.open .drawer { transform: translateX(0); }
.drawer-body { padding: 28px 30px 40px; position: relative; }
.drawer-close { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: all 0.14s var(--ease); }
.drawer-close:hover { color: var(--text); border-color: var(--line-3); background: rgba(255,255,255,0.04); }
.drawer-close i { width: 17px; height: 17px; }

.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 14px; }
.drawer-title { font-size: 26px; font-weight: 800; line-height: 1.1; }
.drawer-company { color: var(--cyan); font-size: 16px; font-weight: 700; margin-top: 8px; }
.drawer-score { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.drawer-score-tier { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.drawer-badges-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 22px; }
.drawer-badges { display: flex; flex-wrap: wrap; gap: 8px; max-width: 380px; }
.drawer-salary { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(0,180,230,0.06), transparent); }
.drawer-salary-val { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text); margin-top: 8px; }
.drawer-salary-val span { font-size: 13px; color: var(--text-3); font-weight: 400; }

.drawer-section { margin-top: 30px; }
.drawer-section .mono-label { margin-bottom: 14px; }
.bd-list { display: flex; flex-direction: column; gap: 14px; }
.bd-row-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.bd-row-head .mono { font-family: var(--font-mono); color: var(--text); }
.bd-row-head em { color: var(--text-4); font-style: normal; font-size: 11px; }
.bd-track { height: 7px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bd-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }
.bd-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

.drawer-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.drawer-actions { display: flex; gap: 10px; margin-top: 32px; position: sticky; bottom: 0; }

/* expired listing drawer — reference only */
.drawer-expired .drawer-body > *:not(.drawer-close):not(.drawer-actions) { opacity: 0.6; }
.job-expired-note { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); text-align: right; }
