/* ═══════════════════════════════════════════════════════════════════════════
   Interface Ashby Careers – careers.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.ia-ashby-wrap {
  font-family: inherit;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Filters row ─────────────────────────────────────────────────────────── */
.ia-ashby-wrap .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

/* ── Department pills ────────────────────────────────────────────────────── */
.ia-ashby-wrap .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.ia-ashby-wrap .pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ia-ashby-wrap .pill:hover {
  border-color: #473BCE;
  color: #473BCE;
}

.ia-ashby-wrap .pill.is-active {
  background: #473BCE;
  border-color: #473BCE;
  color: #fff;
}

/* ── Search box ──────────────────────────────────────────────────────────── */
.ia-ashby-wrap .search {
  flex-shrink: 0;
}

.ia-ashby-wrap .searchbox {
  position: relative;
  display: flex;
  align-items: center;
}

.ia-ashby-wrap .searchbox svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #98a2b3;
  pointer-events: none;
}

.ia-ashby-wrap .jobSearch {
  padding: 8px 12px 8px 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  color: #101828;
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ia-ashby-wrap .jobSearch:focus {
  border-color: #473BCE;
  box-shadow: 0 0 0 3px rgba(71, 59, 206, 0.12);
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.ia-ashby-wrap .emptyState {
  display: block;
  padding: 32px;
  text-align: center;
  color: #667085;
  font-size: 15px;
}

.ia-ashby-wrap .emptyState.empty {
  display: none;
}

/* ── Job list ────────────────────────────────────────────────────────────── */
.ia-ashby-wrap .jobList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ia-ashby-wrap .job.is-hidden {
  display: none;
}

/* ── Accordion (details/summary) ─────────────────────────────────────────── */
.ia-ashby-wrap .job {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ia-ashby-wrap .job[open],
.ia-ashby-wrap .job.is-open {
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

/* Remove default disclosure triangle */
.ia-ashby-wrap summary {
  list-style: none;
}

.ia-ashby-wrap summary::-webkit-details-marker {
  display: none;
}

.ia-ashby-wrap .job__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.ia-ashby-wrap .job__title {
  font-size: 16px;
  font-weight: 600;
  color: #101828;
  flex: 1 1 auto;
}

/* ── Meta row ────────────────────────────────────────────────────────────── */
.ia-ashby-wrap .job_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ia-ashby-wrap .job_meta_item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #667085;
}

.ia-ashby-wrap .job_meta_item img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.ia-ashby-wrap .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #f0effe;
  color: #473BCE;
}

/* ── Toggle chevron ──────────────────────────────────────────────────────── */
.ia-ashby-wrap .job__toggle {
  display: flex;
  align-items: center;
  color: #667085;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ia-ashby-wrap .job.is-open .job__toggle {
  transform: rotate(180deg);
}

/* ── Job body (expanded) ─────────────────────────────────────────────────── */
.ia-ashby-wrap .job__body {
  padding: 0 24px 24px;
}

.ia-ashby-wrap .job__divider {
  height: 1px;
  background: #eaecf0;
  margin-bottom: 20px;
}

.ia-ashby-wrap .job__description {
  font-size: 14px;
  line-height: 1.7;
  color: #344054;
  margin-bottom: 20px;
}

/* Prose inside description */
.ia-ashby-wrap .job__description h1,
.ia-ashby-wrap .job__description h2,
.ia-ashby-wrap .job__description h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #101828;
}

.ia-ashby-wrap .job__description ul,
.ia-ashby-wrap .job__description ol {
  padding-left: 20px;
  margin: 8px 0;
}

.ia-ashby-wrap .job__description li {
  margin-bottom: 4px;
}

.ia-ashby-wrap .job__description p {
  margin: 0 0 10px;
}

/* Loading spinner text */
.ia-ashby-wrap .job__loading {
  color: #98a2b3;
  font-style: italic;
}

/* ── Apply button ────────────────────────────────────────────────────────── */
.ia-ashby-wrap .job__apply_now {
  display: inline-block;
  padding: 10px 24px;
  background: #473BCE;
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
}

.ia-ashby-wrap .job__apply_now:hover {
  background: #3930a8;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ia-ashby-wrap .filters {
    flex-direction: column;
  }

  .ia-ashby-wrap .jobSearch {
    width: 100%;
    min-width: 0;
  }

  .ia-ashby-wrap .job__top {
    padding: 16px;
  }

  .ia-ashby-wrap .job__body {
    padding: 0 16px 16px;
  }

  .ia-ashby-wrap .job_meta {
    gap: 8px;
  }
}
