/* ── Hardware Jobs Board styles (shared design tokens) ───────────── */

.jb-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.jb-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.jb-filters .select,
.jb-filters .input {
  flex: 1;
  min-width: 140px;
}

.jb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── View toggle (Detail / List), mirrors the Trainings/Tools switcher ── */
.jb-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}
.jb-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  background: var(--bg-card);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.jb-view-btn:last-child {
  border-right: none;
}
.jb-view-btn:hover {
  color: var(--text-base);
}
.jb-view-btn.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-400, #22d3ee);
}

/* Per-card views/applicants line */
.jb-stats {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* List view: compact rows — tighter padding, no skill chips, inline stats */
.jb-list.jb-view-list .jb-card {
  padding: 12px 16px;
}
.jb-list.jb-view-list .jb-skills {
  display: none;
}
.jb-list.jb-view-list .jb-stats {
  margin-top: 6px;
}

.jb-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.jb-card:hover {
  border-color: var(--accent, #06b6d4);
  transform: translateY(-1px);
}
.jb-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}
.jb-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.jb-company {
  color: var(--text-sub);
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.jb-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.jb-salary {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-base);
  white-space: nowrap;
}
.jb-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.jb-skill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.jb-posted {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.jb-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
}

.jb-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* Detail page */
.jb-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .jb-detail-grid {
    grid-template-columns: 1fr;
  }
}
.jb-desc {
  line-height: 1.75;
  font-size: 0.9375rem;
  color: var(--text-sub);
}
.jb-desc h3 {
  margin: 1.2em 0 0.4em;
  font-size: 1rem;
  color: var(--text-base);
}
.jb-desc ul {
  padding-left: 1.2rem;
  margin: 0.5em 0;
}
.jb-desc ul ul {
  list-style-type: circle;
  margin: 0.2em 0;
}
.jb-desc ul ul ul {
  list-style-type: square;
}
.jb-desc li {
  margin-bottom: 0.3em;
}
.jb-side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: 90px;
}
.jb-side-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.jb-side-row:last-of-type {
  border-bottom: none;
}
.jb-side-label {
  color: var(--text-muted);
}
.jb-side-value {
  font-weight: 600;
  text-align: right;
}

/* Post page */
.jb-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.jb-form .full {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .jb-form {
    grid-template-columns: 1fr;
  }
}
.jb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.jb-table th,
.jb-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.jb-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
